// ==UserScript== // @name MAL-Sync DEV // @namespace https://greasyfork.org/users/92233 // @description Integrates MyAnimeList into various sites, with auto episode tracking. // @version 0.4.5 // @author lolamtisch@gmail.com // @license GPL-3.0 // @iconURL https://raw.githubusercontent.com/lolamtisch/MALSync/master/assets/icons/icon128.png // @downloadURL https://greasyfork.org/scripts/372847-mal-sync/code/MAL-Sync.user.js // @updateURL https://greasyfork.org/scripts/372847-mal-sync/code/MAL-Sync.meta.js // @grant GM_xmlhttpRequest // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant GM_listValues // @grant GM_addStyle // @grant GM_getResourceText // @grant GM.xmlHttpRequest // @grant GM.getValue // @grant GM.setValue // @noframes // @match *://myanimelist.net/anime/* // @match *://myanimelist.net/manga/* // @match *://myanimelist.net/animelist/* // @match *://myanimelist.net/mangalist/* // @match *://myanimelist.net/anime.php?id=* // @match *://myanimelist.net/manga.php?id=* // @match *://myanimelist.net/character/* // @match *://myanimelist.net/people/* // @match *://myanimelist.net/search/* // @match *://anilist.co/* // @match *://kissanime.ru/Anime/* // @match *://kissanime.to/Anime/* // @match *://kissmanga.com/Manga/* // @match *://*.9anime.to/watch/* // @match *://*.9anime.is/watch/* // @match *://*.9anime.ru/watch/* // @match *://*.9anime.ch/watch/* // @match *://*.crunchyroll.com/* // @match *://www.masterani.me/anime/info/* // @match *://www.masterani.me/anime/watch/* // @match *://*.mangadex.org/manga/* // @match *://*.mangadex.org/title/* // @match *://*.mangadex.org/chapter/* // @match *://mangarock.com/* // @match *://*.gogoanime.tv/* // @match *://*.gogoanime.io/* // @match *://*.gogoanime.in/* // @match *://*.gogoanime.se/* // @match *://*.gogoanime.sh/* // @match *://*.gogoanimes.co/* // @match *://*.anime4you.one/show/1/aid/* // @match *://*.www.turkanime.tv/video/* // @match *://*.www.turkanime.tv/anime/* // @match *://twist.moe/* // @match *://app.emby.media/* // @exclude *myanimelist.net/anime/season* // @exclude *crunchyroll.com/ // @exclude *crunchyroll.com // @exclude *crunchyroll.com/acct* // @exclude *crunchyroll.com/anime* // @exclude *crunchyroll.com/comics* // @exclude *crunchyroll.com/edit* // @exclude *crunchyroll.com/email* // @exclude *crunchyroll.com/forum* // @exclude *crunchyroll.com/home* // @exclude *crunchyroll.com/inbox* // @exclude *crunchyroll.com/library* // @exclude *crunchyroll.com/login* // @exclude *crunchyroll.com/manga* // @exclude *crunchyroll.com/newprivate* // @exclude *crunchyroll.com/news* // @exclude *crunchyroll.com/notifications* // @exclude *crunchyroll.com/order* // @exclude *crunchyroll.com/outbox* // @exclude *crunchyroll.com/pm* // @exclude *crunchyroll.com/search* // @exclude *crunchyroll.com/store* // @exclude *crunchyroll.com/user* // @exclude *crunchyroll.com/videos* // @exclude *crunchyroll.com/affiliate_iframeplayer* // @exclude *gogoanime*.*/ // @exclude *gogoanime*.*/*.html // @exclude *gogoanime*.*/anime-List* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js // @resource material.css https://code.getmdl.io/1.3.0/material.indigo-pink.min.css // @resource materialFont.css https://fonts.googleapis.com/icon?family=Material+Icons // @resource material.js https://greasyfork.org/scripts/377924-material-design-lite-mal-sync/code/material-design-lite%20MAL-Sync.js?version=671593 // @resource simpleBar.css https://unpkg.com/simplebar@3.0.0-beta.4/dist/simplebar.css // @resource simpleBar.js https://unpkg.com/simplebar@3.0.0-beta.4/dist/simplebar.js // @run-at document_start // @connect myanimelist.net // @connect kissanimelist.firebaseio.com // @connect graphql.anilist.co // @connect * // ==/UserScript== !function(modules) { var installedModules = {}; function __webpack_require__(moduleId) { if (installedModules[moduleId]) return installedModules[moduleId].exports; var module = installedModules[moduleId] = { i: moduleId, l: !1, exports: {} }; return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), module.l = !0, module.exports; } __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) { __webpack_require__.o(exports, name) || Object.defineProperty(exports, name, { enumerable: !0, get: getter }); }, __webpack_require__.r = function(exports) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(exports, "__esModule", { value: !0 }); }, __webpack_require__.t = function(value, mode) { if (1 & mode && (value = __webpack_require__(value)), 8 & mode) return value; if (4 & mode && "object" == typeof value && value && value.__esModule) return value; var ns = Object.create(null); if (__webpack_require__.r(ns), Object.defineProperty(ns, "default", { enumerable: !0, value: value }), 2 & mode && "string" != typeof value) for (var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); return ns; }, __webpack_require__.n = function(module) { var getter = module && module.__esModule ? function() { return module.default; } : function() { return module; }; return __webpack_require__.d(getter, "a", getter), getter; }, __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 63); }([ function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var userscriptLegacy = __webpack_require__(30), __awaiter = function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function(resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; const requestUserscriptLegacy = { xhr(method, url) { return __awaiter(this, void 0, void 0, function*() { return new Promise((resolve, reject) => { var request = { method: method, url: url, synchronous: !1, headers: [], data: null, onload: function(response) { console.log(response); var responseObj = { finalUrl: response.finalUrl, responseText: response.responseText, status: response.status }; resolve(responseObj); } }; "object" == typeof url && (request.url = url.url, request.headers = url.headers, request.data = url.data), GM_xmlhttpRequest(request); }); }); } }; var settings = __webpack_require__(31); __webpack_require__.d(__webpack_exports__, "storage", function() { return storage; }), __webpack_require__.d(__webpack_exports__, "request", function() { return request; }), __webpack_require__.d(__webpack_exports__, "settings", function() { return userscript_settings; }), __webpack_require__.d(__webpack_exports__, "type", function() { return type; }); var storage = userscriptLegacy.a, request = requestUserscriptLegacy, userscript_settings = settings.a, type = "userscript"; }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, "log", function() { return log; }), __webpack_require__.d(__webpack_exports__, "error", function() { return error; }), __webpack_require__.d(__webpack_exports__, "info", function() { return info; }); var log = Function.prototype.bind.call(console.log, console, "%cMAL-Sync", "background-color: #2e51a2; color: white; padding: 2px 10px; border-radius: 3px;"), error = Function.prototype.bind.call(console.error, console, "%cMAL-Sync", "background-color: #8f0000; color: white; padding: 2px 10px; border-radius: 3px;"), info = Function.prototype.bind.call(console.info, console, "%cMAL-Sync", "background-color: wheat; color: black; padding: 2px 10px; border-radius: 3px;"); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__), function(api, j, con, utils) { __webpack_require__.d(__webpack_exports__, "urlPart", function() { return urlPart; }), __webpack_require__.d(__webpack_exports__, "urlParam", function() { return urlParam; }), __webpack_require__.d(__webpack_exports__, "favicon", function() { return favicon; }), __webpack_require__.d(__webpack_exports__, "watching", function() { return watching; }), __webpack_require__.d(__webpack_exports__, "planTo", function() { return planTo; }), __webpack_require__.d(__webpack_exports__, "episode", function() { return episode; }), __webpack_require__.d(__webpack_exports__, "syncRegex", function() { return syncRegex; }), __webpack_require__.d(__webpack_exports__, "status", function() { return status; }), __webpack_require__.d(__webpack_exports__, "getselect", function() { return getselect; }), __webpack_require__.d(__webpack_exports__, "absoluteLink", function() { return absoluteLink; }), __webpack_require__.d(__webpack_exports__, "urlChangeDetect", function() { return urlChangeDetect; }), __webpack_require__.d(__webpack_exports__, "changeDetect", function() { return changeDetect; }), __webpack_require__.d(__webpack_exports__, "waitUntilTrue", function() { return waitUntilTrue; }), __webpack_require__.d(__webpack_exports__, "getUrlFromTags", function() { return getUrlFromTags; }), __webpack_require__.d(__webpack_exports__, "setUrlInTags", function() { return setUrlInTags; }), __webpack_require__.d(__webpack_exports__, "setResumeWaching", function() { return setResumeWaching; }), __webpack_require__.d(__webpack_exports__, "getResumeWaching", function() { return getResumeWaching; }), __webpack_require__.d(__webpack_exports__, "setContinueWaching", function() { return setContinueWaching; }), __webpack_require__.d(__webpack_exports__, "getContinueWaching", function() { return getContinueWaching; }), __webpack_require__.d(__webpack_exports__, "handleMalImages", function() { return handleMalImages; }), __webpack_require__.d(__webpack_exports__, "getMalToKissArray", function() { return getMalToKissArray; }), __webpack_require__.d(__webpack_exports__, "getTooltip", function() { return getTooltip; }), __webpack_require__.d(__webpack_exports__, "epPredictionUI", function() { return epPredictionUI; }), __webpack_require__.d(__webpack_exports__, "timeDiffToText", function() { return timeDiffToText; }), __webpack_require__.d(__webpack_exports__, "canHideTabs", function() { return canHideTabs; }), __webpack_require__.d(__webpack_exports__, "epPrediction", function() { return epPrediction; }), __webpack_require__.d(__webpack_exports__, "statusTag", function() { return statusTag; }), __webpack_require__.d(__webpack_exports__, "notifications", function() { return notifications; }), __webpack_require__.d(__webpack_exports__, "timeCache", function() { return timeCache; }), __webpack_require__.d(__webpack_exports__, "flashm", function() { return flashm; }), __webpack_require__.d(__webpack_exports__, "flashConfirm", function() { return flashConfirm; }), __webpack_require__.d(__webpack_exports__, "lazyload", function() { return lazyload; }), __webpack_require__.d(__webpack_exports__, "elementInViewport", function() { return elementInViewport; }); var __awaiter = function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function(resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; function urlPart(url, part) { try { return url.split("/")[part].split("?")[0]; } catch (e) { return; } } function urlParam(url, name) { var results = new RegExp("[?&]" + name + "=([^&#]*)").exec(url); return null == results ? null : decodeURI(results[1]) || 0; } function favicon(domain) { return -1 !== domain.indexOf("animeheaven") ? "http://animeheaven.eu/favicon.ico" : "https://www.google.com/s2/favicons?domain=" + domain; } function watching(type) { return "manga" == type ? "Reading" : "Watching"; } function planTo(type) { return "manga" == type ? "Plan to Read" : "Plan to Watch"; } function episode(type) { return "manga" == type ? "Chapter" : "Episode"; } var status, syncRegex = /(^settings\/.*|^resume\/.*|^continue\/.*|^.*\/Offset$|^updateCheckTime$|^tempVersion$)/; function getselect(data, name) { var temp = data.split('name="' + name + '"')[1].split("")[0]; if (!(temp.indexOf('selected="selected"') > -1)) return ""; temp = temp.split(" -1) return temp[i].split('value="')[1].split('"')[0]; } function absoluteLink(url, domain) { return void 0 === url ? url : (url.startsWith("http") || ("/" !== url.charAt(0) && (url = "/" + url), url = domain + url), url); } function urlChangeDetect(callback) { var currentPage = window.location.href; return setInterval(function() { currentPage != window.location.href && (currentPage = window.location.href, callback()); }, 1e3); } function changeDetect(callback, func) { var currentPage = func(); return setInterval(function() { var temp = func(); void 0 !== temp && currentPage != temp && (currentPage = func(), callback()); }, 1e3); } function waitUntilTrue(condition, callback) { var Interval = null; return Interval = setInterval(function() { condition() && (clearInterval(Interval), callback()); }, 1e3); } function getUrlFromTags(tags) { if (api.settings.get("malTags")) return /malSync::[\d\D]+::/.test(tags) ? atobURL(tags.split("malSync::")[1].split("::")[0]) : /last::[\d\D]+::/.test(tags) ? atobURL(tags.split("last::")[1].split("::")[0]) : void 0; function atobURL(encoded) { try { return atob(encoded); } catch (e) { return encoded; } } } function setUrlInTags(url, tags) { if (!api.settings.get("malTags")) return tags; var addition = "malSync::" + btoa(url) + "::"; return tags = /(last|malSync)::[\d\D]+::/.test(tags) ? tags.replace(/(last|malSync)::[^\^]*?::/, addition) : tags + "," + addition; } function setResumeWaching(url, ep, type, id) { return __awaiter(this, void 0, void 0, function*() { return api.storage.set("resume/" + type + "/" + id, { url: url, ep: ep }); }); } function getResumeWaching(type, id) { return __awaiter(this, void 0, void 0, function*() { if (api.settings.get("malResume")) return api.storage.get("resume/" + type + "/" + id); }); } function setContinueWaching(url, ep, type, id) { return __awaiter(this, void 0, void 0, function*() { return api.storage.set("continue/" + type + "/" + id, { url: url, ep: ep }); }); } function getContinueWaching(type, id) { return __awaiter(this, void 0, void 0, function*() { if (api.settings.get("malContinue")) return api.storage.get("continue/" + type + "/" + id); }); } function handleMalImages(url) { return -1 !== url.indexOf("questionmark") ? api.storage.assetUrl("questionmark.gif") : url; } function getMalToKissArray(type, id) { return __awaiter(this, void 0, void 0, function*() { return new Promise((resolve, reject) => { var url = "https://kissanimelist.firebaseio.com/Data2/Mal" + type + "/" + id + "/Sites.json"; api.request.xhr("GET", url).then(response => __awaiter(this, void 0, void 0, function*() { var json = j.$.parseJSON(response.responseText); for (var pageKey in json) { var page = json[pageKey]; if (api.settings.get(pageKey)) for (var streamKey in page) { var stream = page[streamKey], streamUrl = "https://kissanimelist.firebaseio.com/Data2/" + stream + "/" + encodeURIComponent(streamKey) + ".json", cache = yield api.storage.get("MalToKiss/" + stream + "/" + encodeURIComponent(streamKey), null); if (void 0 !== cache) var streamJson = cache; else { var streamRespose = yield api.request.xhr("GET", streamUrl); streamJson = j.$.parseJSON(streamRespose.responseText); api.storage.set("MalToKiss/" + stream + "/" + encodeURIComponent(streamKey), streamJson); } "Crunchyroll" == pageKey && (streamJson.url = streamJson.url + "?season=" + streamKey), json[pageKey][streamKey] = streamJson; } else con.log(pageKey + " is deactivated"), delete json[pageKey]; } con.log("Mal2Kiss", json), resolve(json); })); }); }); } function getTooltip(text, style = "", direction = "top") { var rNumber = Math.floor(1e3 * Math.random() + 1); return '
contact_support
' + text + "
"; } function epPredictionUI(malid, type = "anime", callback) { return __awaiter(this, void 0, void 0, function*() { utils.epPrediction(malid, function(pre) { return __awaiter(this, void 0, void 0, function*() { pre || callback(!1); var updateCheckTime = yield api.storage.get("updateCheckTime"), aniCache = yield api.storage.get("mal/" + malid + "/aniSch"), elCache = void 0; if (void 0 !== updateCheckTime && updateCheckTime && "0" != updateCheckTime && (elCache = yield api.storage.get("updateCheck/" + type + "/" + malid)), !1 !== pre || void 0 !== elCache) { var UI = { tag: "", text: "", color: "", colorStyle: "", tagEpisode: !1, prediction: pre, aniCache: aniCache, elCache: elCache }, airing = pre.airing, episode = pre.episode; if (void 0 !== aniCache) { var timestamp = 1e3 * aniCache.nextEpTime; if (Date.now() < timestamp) { episode = aniCache.currentEp; var delta = (timestamp - Date.now()) / 1e3; pre.diffDays = Math.floor(delta / 86400), delta -= 86400 * pre.diffDays, pre.diffHours = Math.floor(delta / 3600) % 24, delta -= 3600 * pre.diffHours, pre.diffMinutes = Math.floor(delta / 60) % 60, delta -= 60 * pre.diffMinutes; } else Date.now() - timestamp < 864e5 && (episode = aniCache.currentEp + 1); } void 0 !== elCache && void 0 === elCache.error && (elCache.finished || (airing = !0), elCache.newestEp && "" != elCache.newestEp && void 0 !== elCache.newestEp && (episode = elCache.newestEp, UI.color = "red")), "" != UI.color && (UI.colorStyle = "background-color: #00ff0057;"), airing ? (pre.airing && (UI.text = "Next episode estimated in " + pre.diffDays + "d " + pre.diffHours + "h " + pre.diffMinutes + "m"), episode && (UI.tag = '[' + episode + "]", UI.tagEpisode = episode)) : pre && (UI.text = 'Airing in ' + (7 * pre.diffWeeks + pre.diffDays) + "d " + pre.diffHours + "h " + pre.diffMinutes + "m "), callback(UI); } }); }); }); } function timeDiffToText(delta) { var text = ""; delta /= 1e3; var diffDays = Math.floor(delta / 86400); delta -= 86400 * diffDays, diffDays && (text += diffDays + "d "); var diffHours = Math.floor(delta / 3600) % 24; delta -= 3600 * diffHours, diffHours && diffDays < 2 && (text += diffHours + "h "); var diffMinutes = Math.floor(delta / 60) % 60; return delta -= 60 * diffMinutes, diffMinutes && !diffDays && diffHours < 3 && (text += diffMinutes + "min "), text; } function canHideTabs() { return "undefined" != typeof browser && void 0 !== browser.tabs.hide; } function epPrediction(malId, callback) { return __awaiter(this, void 0, void 0, function*() { if (api.settings.get("epPredictions")) { var timestamp = yield api.storage.get("mal/" + malId + "/release"); if (void 0 !== timestamp) { var airing = 1, episode = 0; if (Date.now() < timestamp && (airing = 0), airing) var delta = Math.abs(Date.now() - timestamp) / 1e3; else delta = Math.abs(timestamp - Date.now()) / 1e3; var diffWeeks = Math.floor(delta / 604800); delta -= 604800 * diffWeeks, airing && (delta = 604800 - delta); var diffDays = Math.floor(delta / 86400); delta -= 86400 * diffDays; var diffHours = Math.floor(delta / 3600) % 24; delta -= 3600 * diffHours; var diffMinutes = Math.floor(delta / 60) % 60; delta -= 60 * diffMinutes, airing && (episode = diffWeeks - (new Date().getFullYear() - new Date(timestamp).getFullYear()), ++episode > 50 && (episode = 0)); var maxEp = yield api.storage.get("mal/" + malId + "/release"); if (void 0 === maxEp || episode < maxEp) return void callback({ timestamp: timestamp, airing: airing, diffWeeks: diffWeeks, diffDays: diffDays, diffHours: diffHours, diffMinutes: diffMinutes, episode: episode }); } callback(!1); } }); } function statusTag(status, type, id) { var info = { anime: { 1: { class: "watching", text: "CW", title: "Watching" }, 2: { class: "completed", text: "CMPL", title: "Completed" }, 3: { class: "on-hold", text: " HOLD", title: "On-Hold" }, 4: { class: "dropped", text: "DROP", title: "Dropped" }, 6: { class: "plantowatch", text: "PTW", title: "Plan to Watch" } }, manga: { 1: { class: "reading", text: "CR", title: "Reading" }, 2: { class: "completed", text: "CMPL", title: "Completed" }, 3: { class: "on-hold", text: " HOLD", title: "On-Hold" }, 4: { class: "dropped", text: "DROP", title: "Dropped" }, 6: { class: "plantoread", text: "PTR", title: "Plan to Read" } } }; if ($.each([ 1, 2, 3, 4, 6 ], function(i, el) { info.anime[info.anime[el].title] = info.anime[el], info.manga[info.manga[el].title] = info.manga[el]; }), status) { var tempInfo = info[type][status]; return ` ${tempInfo.text}`; } return !1; } function notifications(url, title, message, iconUrl = "") { var messageObj = { type: "basic", title: title, message: message, iconUrl: iconUrl }; con.log("Notification", url, messageObj), api.storage.get("notificationHistory").then(history => { void 0 === history && (history = []), history.length >= 10 && history.shift(), history.push({ url: url, title: messageObj.title, message: messageObj.message, iconUrl: messageObj.iconUrl, timestamp: Date.now() }), api.storage.set("notificationHistory", history); }); try { return chrome.notifications.create(url, messageObj); } catch (e) { con.error(e); } } function timeCache(key, dataFunction, ttl) { return __awaiter(this, void 0, void 0, function*() { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function*() { var value = yield api.storage.get(key); if (void 0 !== value && new Date().getTime() < value.timestamp) resolve(value.data); else { var result = yield dataFunction(); api.storage.set(key, { data: result, timestamp: new Date().getTime() + ttl }).then(() => { resolve(result); }); } })); }); } function flashm(text, options) { j.$("#flash-div-top").length || (api.storage.addStyle('.flashinfo{ transition: max-height 2s; } .flashinfo:hover{ max-height:5000px !important; z-index: 2147483647; } .flashinfo .synopsis{ transition: max-height 2s, max-width 2s ease 2s; } .flashinfo:hover .synopsis{ max-height:9999px !important; max-width: 500px !important; transition: max-height 2s; } #flashinfo-div{ z-index: 2; transition: 2s; } #flashinfo-div:hover, #flashinfo-div.hover{ z-index: 2147483647; } #flash-div-top, #flash-div-bottom, #flashinfo-div{ font-family: "Helvetica","Arial",sans-serif; color: white; font-size: 14px; font-weight: 400; line-height: 17px; } #flash-div-top h2, #flash-div-bottom h2, #flashinfo-div h2{ font-family: "Helvetica","Arial",sans-serif; color: white; font-size: 14px; font-weight: 700; line-height: 17px; padding: 0; margin: 0; } #flash-div-top a, #flash-div-bottom a, #flashinfo-div a{ color: #DF6300; }'), j.$("body").after('
')), con.log("[Flash] Message:", text); var colorF = "#323232"; if (void 0 !== options && void 0 !== options.error && options.error) colorF = "#3e0808"; var flashdiv = "#flash-div-bottom"; void 0 !== options && void 0 !== options.position && options.position && (flashdiv = "#flash-div-" + options.position); var messClass = "flash"; if (void 0 !== options && void 0 !== options.type && options.type) { var tempClass = "type-" + options.type; j.$(flashdiv + " ." + tempClass + ", #flashinfo-div ." + tempClass).removeClass(tempClass).fadeOut({ duration: 1e3, queue: !1, complete: function() { j.$(this).remove(); } }), messClass += " " + tempClass; } var mess = '"; if (void 0 !== options && void 0 !== options.hoverInfo && options.hoverInfo) { mess = '", j.$("#flashinfo-div").addClass("hover"); var flashm = j.$(mess).appendTo("#flashinfo-div"); } else flashm = j.$(mess).appendTo(flashdiv); return void 0 !== options && void 0 !== options.permanent && options.permanent ? flashm.slideDown(800) : void 0 !== options && void 0 !== options.hoverInfo && options.hoverInfo ? flashm.slideDown(800).delay(4e3).queue(function() { j.$("#flashinfo-div").removeClass("hover"), flashm.css("max-height", "8px"); }) : flashm.slideDown(800).delay(4e3).slideUp(800, () => { j.$(this).remove(); }), flashm; } function flashConfirm(message, type, yesCall = (() => {}), cancelCall = (() => {})) { return __awaiter(this, void 0, void 0, function*() { return new Promise(function(resolve, reject) { var flasmessage = flashm(message = '
' + message + '
', { permanent: !0, position: "top", type: type }); flasmessage.find(".Yes").click(function(evt) { j.$(evt.target).parentsUntil(".flash").remove(), resolve(!0), yesCall(); }), flasmessage.find(".Cancel").click(function(evt) { j.$(evt.target).parentsUntil(".flash").remove(), resolve(!1), cancelCall(); }); }); }); } !function(status) { status[status.watching = 1] = "watching", status[status.completed = 2] = "completed", status[status.onhold = 3] = "onhold", status[status.dropped = 4] = "dropped", status[status.planToWatch = 6] = "planToWatch"; }(status || (status = {})); var lazyloaded = !1, lazyimages = new Array(); function lazyload(doc, scrollElement = ".simplebar-scroll-content") { function loadImage(el, fn) { if (!j.$(el).is(":visible")) return !1; if (j.$(el).hasClass("lazyBack")) j.$(el).css("background-image", "url(" + el.getAttribute("data-src") + ")").removeClass("lazyBack"); else { var img = new Image(), src = el.getAttribute("data-src"); img.onload = function() { el.parent ? el.parent.replaceChild(img, el) : el.src = src, fn && fn(); }, img.src = src; } } for (var i = 0; i < lazyimages.length; i++) $(lazyimages[i]).addClass("init"); lazyimages = new Array(); var query = doc.find("img.lazy.init, .lazyBack.init"), processScroll = function() { for (var i = 0; i < lazyimages.length; i++) utils.elementInViewport(lazyimages[i], 600) && loadImage(lazyimages[i], function() { lazyimages.splice(i, i); }), $(lazyimages[i]).length || lazyimages.splice(i, i); }; for (i = 0; i < query.length; i++) lazyimages.push(query[i]), $(query[i]).removeClass("init"); processScroll(), lazyloaded || (lazyloaded = !0, doc.find(scrollElement).scroll(function() { processScroll(); })); } function elementInViewport(el, horizontalOffset = 0) { var rect = el.getBoundingClientRect(); return rect.top >= 0 && rect.left >= 0 && rect.top - horizontalOffset <= (window.innerHeight || document.documentElement.clientHeight); } }.call(this, __webpack_require__(0), __webpack_require__(3), __webpack_require__(1), __webpack_require__(2)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, "$", function() { return $; }); var $ = jQuery; }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) { var hook, options = "function" == typeof scriptExports ? scriptExports.options : scriptExports; if (render && (options.render = render, options.staticRenderFns = staticRenderFns, options._compiled = !0), functionalTemplate && (options.functional = !0), scopeId && (options._scopeId = "data-v-" + scopeId), moduleIdentifier ? (hook = function(context) { (context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (context = __VUE_SSR_CONTEXT__), injectStyles && injectStyles.call(this, context), context && context._registeredComponents && context._registeredComponents.add(moduleIdentifier); }, options._ssrRegister = hook) : injectStyles && (hook = shadowMode ? function() { injectStyles.call(this, this.$root.$options.shadowRoot); } : injectStyles), hook) if (options.functional) { options._injectStyles = hook; var originalRender = options.render; options.render = function(h, context) { return hook.call(context), originalRender(h, context); }; } else { var existing = options.beforeCreate; options.beforeCreate = existing ? [].concat(existing, hook) : [ hook ]; } return { exports: scriptExports, options: options }; } __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(api, utils, con) { function translateList(aniStatus, malStatus = null) { var list = { CURRENT: 1, PLANNING: 6, COMPLETED: 2, DROPPED: 4, PAUSED: 3, REPEATING: 1 }; return null != malStatus ? Object.keys(list).find(key => list[key] === malStatus) : list[aniStatus]; } function accessToken() { return api.settings.get("anilistToken"); } function errorHandling(res, silent = !1) { void 0 !== res.errors && res.errors.forEach(error => { switch (error.status) { case 400: silent || utils.flashm('Please Authenticate Here', { error: !0 }); break; case 404: silent || utils.flashm("anilist: " + error.message, { error: !0 }); break; default: throw silent || utils.flashm("anilist: " + error.message, { error: !0 }), error.message; } }); } function aniListToMal(anilistId, type) { var variables = { id: anilistId, type: type.toUpperCase() }; return api.request.xhr("POST", { url: "https://graphql.anilist.co", headers: { "Content-Type": "application/json", Accept: "application/json" }, data: JSON.stringify({ query: "\n query ($id: Int, $type: MediaType) {\n Media (id: $id, type: $type) {\n id\n idMal\n }\n }\n ", variables: variables }) }).then(response => { var res = JSON.parse(response.responseText); return con.log(res), errorHandling(res), res.data.Media.idMal; }); } __webpack_require__.d(__webpack_exports__, "d", function() { return translateList; }), __webpack_require__.d(__webpack_exports__, "a", function() { return accessToken; }), __webpack_require__.d(__webpack_exports__, "c", function() { return errorHandling; }), __webpack_require__.d(__webpack_exports__, "b", function() { return aniListToMal; }); }).call(this, __webpack_require__(0), __webpack_require__(2), __webpack_require__(1)); }, function(module, exports) { module.exports = function(useSourceMap) { var list = []; return list.toString = function() { return this.map(function(item) { var content = function(item, useSourceMap) { var content = item[1] || "", cssMapping = item[3]; if (!cssMapping) return content; if (useSourceMap && "function" == typeof btoa) { var sourceMapping = (sourceMap = cssMapping, "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */"), sourceURLs = cssMapping.sources.map(function(source) { return "/*# sourceURL=" + cssMapping.sourceRoot + source + " */"; }); return [ content ].concat(sourceURLs).concat([ sourceMapping ]).join("\n"); } var sourceMap; return [ content ].join("\n"); }(item, useSourceMap); return item[2] ? "@media " + item[2] + "{" + content + "}" : content; }).join(""); }, list.i = function(modules, mediaQuery) { "string" == typeof modules && (modules = [ [ null, modules, "" ] ]); for (var alreadyImportedModules = {}, i = 0; i < this.length; i++) { var id = this[i][0]; "number" == typeof id && (alreadyImportedModules[id] = !0); } for (i = 0; i < modules.length; i++) { var item = modules[i]; "number" == typeof item[0] && alreadyImportedModules[item[0]] || (mediaQuery && !item[2] ? item[2] = mediaQuery : mediaQuery && (item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"), list.push(item)); } }, list; }; }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(api) { __webpack_require__.d(__webpack_exports__, "a", function() { return entryClass; }), __webpack_require__.d(__webpack_exports__, "b", function() { return userList; }); var _MyAnimeList_entryClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10), _MyAnimeList_userList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11), _AniList_entryClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23), _AniList_userList__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24); function getSyncMode() { return api.settings.get("syncMode"); } function entryClass(url, miniMAL = !1, silent = !1) { return "MAL" == getSyncMode() ? new _MyAnimeList_entryClass__WEBPACK_IMPORTED_MODULE_0__.a(url, miniMAL) : new _AniList_entryClass__WEBPACK_IMPORTED_MODULE_2__.a(url, miniMAL, silent); } function userList(status = 1, localListType = "anime", callbacks, username = null, offset = 0, templist = []) { return "MAL" == getSyncMode() ? _MyAnimeList_userList__WEBPACK_IMPORTED_MODULE_1__.b(status, localListType, callbacks, username, offset, templist) : _AniList_userList__WEBPACK_IMPORTED_MODULE_3__.a(status, localListType, callbacks, username, offset, templist); } }).call(this, __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.d(__webpack_exports__, "b", function() { return pages; }), __webpack_require__.d(__webpack_exports__, "a", function() { return pageSearch; }); var _Kissanime_main__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33), _Kissmanga_main__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34), _nineAnime_main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35), _Crunchyroll_main__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36), _Masterani_main__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37), _Mangadex_main__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38), _Mangarock_main__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39), _Gogoanime_main__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(40), _Anime4you_main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41), _Turkanime_main__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(42), _Twistmoe_main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43), _Emby_main__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(44); const pages = { Kissanime: _Kissanime_main__WEBPACK_IMPORTED_MODULE_0__.a, Kissmanga: _Kissmanga_main__WEBPACK_IMPORTED_MODULE_1__.a, nineAnime: _nineAnime_main__WEBPACK_IMPORTED_MODULE_2__.a, Crunchyroll: _Crunchyroll_main__WEBPACK_IMPORTED_MODULE_3__.a, Masterani: _Masterani_main__WEBPACK_IMPORTED_MODULE_4__.a, Mangadex: _Mangadex_main__WEBPACK_IMPORTED_MODULE_5__.a, Mangarock: _Mangarock_main__WEBPACK_IMPORTED_MODULE_6__.a, Gogoanime: _Gogoanime_main__WEBPACK_IMPORTED_MODULE_7__.a, Anime4you: _Anime4you_main__WEBPACK_IMPORTED_MODULE_8__.a, Turkanime: _Turkanime_main__WEBPACK_IMPORTED_MODULE_9__.a, Twistmoe: _Twistmoe_main__WEBPACK_IMPORTED_MODULE_10__.a, Emby: _Emby_main__WEBPACK_IMPORTED_MODULE_11__.a }, pageSearch = { Kissanime: { name: "Kissanime", type: "anime", domain: "kissanime.ru", searchUrl: titleEncoded => "", completeSearchTag: (title, linkContent) => '' }, Kissmanga: { name: "Kissmanga", type: "manga", domain: "kissmanga.com", searchUrl: titleEncoded => "", completeSearchTag: (title, linkContent) => '' }, Crunchyroll: { name: "Crunchyroll", type: "anime", domain: "www.crunchyroll.com", searchUrl: titleEncoded => "http://www.crunchyroll.com/search?q=" + titleEncoded }, nineAnime: { name: "9Anime", type: "anime", domain: "9anime.to", googleSearchDomain: "9anime.to/watch", searchUrl: titleEncoded => "https://www1.9anime.to/search?keyword=" + titleEncoded }, MasterAnime: { name: "MasterAnime", type: "anime", domain: "www.masterani.me", googleSearchDomain: "www.masterani.me/anime/info/", searchUrl: titleEncoded => "https://www.masterani.me/anime?search=" + titleEncoded }, Gogoanime: { name: "Gogoanime", type: "anime", domain: "www.gogoanime.in", searchUrl: titleEncoded => "http://gogoanimes.co/search.html?keyword=" + titleEncoded }, Turkanime: { name: "Turkanime", type: "anime", domain: "www.turkanime.tv/", searchUrl: titleEncoded => "https://www.google.com/search?q=" + titleEncoded + "+site:turkanime.tv/anime/", googleSearchDomain: "turkanime.tv/anime/" }, Mangadex: { name: "Mangadex", type: "manga", domain: "mangadex.org", searchUrl: titleEncoded => "https://mangadex.org/quick_search/" + titleEncoded }, Mangarock: { name: "Mangarock", type: "manga", domain: "mangarock.com", searchUrl: titleEncoded => "https://mangarock.com/search?q=" + titleEncoded }, AniList: { name: "AniList", type: "anime", domain: "anilist.co", searchUrl: titleEncoded => "https://anilist.co/search/anime?sort=SEARCH_MATCH&search=" + titleEncoded }, AniListManga: { name: "AniList", type: "manga", domain: "anilist.co", searchUrl: titleEncoded => "https://anilist.co/search/manga?sort=SEARCH_MATCH&search=" + titleEncoded } }; }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(api) { __webpack_require__.d(__webpack_exports__, "a", function() { return providerTemplates; }); var _MyAnimeList_templates__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48), _AniList_templates__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); function providerTemplates() { return "MAL" == api.settings.get("syncMode") ? _MyAnimeList_templates__WEBPACK_IMPORTED_MODULE_0__.a : _AniList_templates__WEBPACK_IMPORTED_MODULE_1__.a; } }).call(this, __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(utils, con, api, j) { __webpack_require__.d(__webpack_exports__, "a", function() { return entryClass; }); var __awaiter = function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function(resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; class entryClass { constructor(url, miniMAL = !1) { this.url = url, this.miniMAL = miniMAL, this.name = "", this.totalEp = NaN, this.addAnime = !1, this.login = !1, this.wrong = !1, this.id = utils.urlPart(url, 4), this.type = utils.urlPart(url, 3); } init() { return this.update(); } getDisplayUrl() { return this.url; } update() { var editUrl = "https://myanimelist.net/ownlist/" + this.type + "/" + this.id + "/edit?hideLayout"; return con.log("Update MAL info", editUrl), api.request.xhr("GET", editUrl).then(response => { if (response.finalUrl.indexOf("myanimelist.net/login.php") > -1 || response.responseText.indexOf("Unauthorized") > -1) return this.login = !1, void con.error("User not logged in"); this.login = !0, this.animeInfo = this.getObject(response.responseText); }); } getEpisode() { return "manga" == this.type ? this.animeInfo[".add_manga[num_read_chapters]"] : this.animeInfo[".add_anime[num_watched_episodes]"]; } setEpisode(ep) { ep + "" == "" && (ep = 0), "manga" == this.type && (this.animeInfo[".add_manga[num_read_chapters]"] = parseInt(ep + "")), this.animeInfo[".add_anime[num_watched_episodes]"] = parseInt(ep + ""); } getVolume() { return "manga" == this.type && this.animeInfo[".add_manga[num_read_volumes]"]; } setVolume(ep) { "manga" != this.type ? con.error("You cant set Volumes for animes") : this.animeInfo[".add_manga[num_read_volumes]"] = ep; } getStatus() { return "manga" == this.type ? this.animeInfo[".add_manga[status]"] : this.animeInfo[".add_anime[status]"]; } setStatus(status) { "manga" == this.type && (this.animeInfo[".add_manga[status]"] = status), this.animeInfo[".add_anime[status]"] = status; } getScore() { return "manga" == this.type ? this.animeInfo[".add_manga[score]"] : this.animeInfo[".add_anime[score]"]; } setScore(score) { "manga" == this.type && (this.animeInfo[".add_manga[score]"] = score), this.animeInfo[".add_anime[score]"] = score; } getRewatching() { return "manga" == this.type ? this.animeInfo[".add_manga[is_rereading]"] : this.animeInfo[".add_anime[is_rewatching]"]; } setRewatching(rewatching) { "manga" == this.type && (this.animeInfo[".add_manga[is_rereading]"] = rewatching), this.animeInfo[".add_anime[is_rewatching]"] = rewatching; } setCompletionDateToNow() { var Datec = new Date(); "" === this.animeInfo[".add_anime[finish_date][day]"] || "" === this.animeInfo[".add_manga[finish_date][day]"] ? ("manga" == this.type && (this.animeInfo[".add_manga[finish_date][year]"] = Datec.getFullYear(), this.animeInfo[".add_manga[finish_date][month]"] = Datec.getMonth() + 1, this.animeInfo[".add_manga[finish_date][day]"] = Datec.getDate()), this.animeInfo[".add_anime[finish_date][year]"] = Datec.getFullYear(), this.animeInfo[".add_anime[finish_date][month]"] = Datec.getMonth() + 1, this.animeInfo[".add_anime[finish_date][day]"] = Datec.getDate()) : con.error("Completion date already set"); } setStartingDateToNow() { var Datec = new Date(); "" === this.animeInfo[".add_anime[start_date][day]"] || "" === this.animeInfo[".add_manga[start_date][day]"] ? ("manga" == this.type && (this.animeInfo[".add_manga[start_date][year]"] = Datec.getFullYear(), this.animeInfo[".add_manga[start_date][month]"] = Datec.getMonth() + 1, this.animeInfo[".add_manga[start_date][day]"] = Datec.getDate()), this.animeInfo[".add_anime[start_date][year]"] = Datec.getFullYear(), this.animeInfo[".add_anime[start_date][month]"] = Datec.getMonth() + 1, this.animeInfo[".add_anime[start_date][day]"] = Datec.getDate()) : con.info("Start date already set"); } getStreamingUrl() { var tags = this.animeInfo[".add_anime[tags]"]; return "manga" == this.type && (tags = this.animeInfo[".add_manga[tags]"]), utils.getUrlFromTags(tags); } setStreamingUrl(url) { var tags = this.animeInfo[".add_anime[tags]"]; "manga" == this.type && (tags = this.animeInfo[".add_manga[tags]"]), tags = utils.setUrlInTags(url, tags), "manga" != this.type ? this.animeInfo[".add_anime[tags]"] = tags : this.animeInfo[".add_manga[tags]"] = tags; } getRating() { return __awaiter(this, void 0, void 0, function*() { return new Promise((resolve, reject) => { var url = ""; url = "anime" == this.type ? "https://myanimelist.net/includes/ajax.inc.php?t=64&id=" + this.id : "https://myanimelist.net/includes/ajax.inc.php?t=65&id=" + this.id, api.request.xhr("GET", url).then(response => { try { resolve(response.responseText.split("Score:")[1].split("<")[0]); } catch (e) { con.error("Could not get rating", e), reject(); } }); }); }); } setResumeWaching(url, ep) { return __awaiter(this, void 0, void 0, function*() { return utils.setResumeWaching(url, ep, this.type, this.id); }); } getResumeWaching() { return __awaiter(this, void 0, void 0, function*() { return utils.getResumeWaching(this.type, this.id); }); } setContinueWaching(url, ep) { return __awaiter(this, void 0, void 0, function*() { return utils.setContinueWaching(url, ep, this.type, this.id); }); } getContinueWaching() { return __awaiter(this, void 0, void 0, function*() { return utils.getContinueWaching(this.type, this.id); }); } getImage() { return __awaiter(this, void 0, void 0, function*() { return api.request.xhr("GET", this.url).then(response => { var data = response.responseText, image = ""; try { image = data.split("js-scrollfix-bottom")[1].split(' { var This = this, url = "https://myanimelist.net/ownlist/" + this.type + "/" + this.id + "/edit"; if (this.addAnime) { var imgSelector = "malSyncImg" + this.id, flashConfirmText = `\n Is "${this.name}" correct?\n
\n \n
\n \x3c!--[How to correct entries]--\x3e\n `; return This.miniMAL && (flashConfirmText = `\n Add "${this.name}" to MAL?`), "anime" == this.type ? (url = "https://myanimelist.net/ownlist/anime/add?selected_series_id=" + this.id, utils.flashConfirm(flashConfirmText, "add", function() { continueCall(); }, function() { wrongCall(); })) : (url = "https://myanimelist.net/ownlist/manga/add?selected_manga_id=" + this.id, utils.flashConfirm(flashConfirmText, "add", function() { continueCall(); }, function() { wrongCall(); })), void (This.miniMAL || (this.getImage().then(image => { j.$("#" + imgSelector).attr("src", image); }), j.$(".Yes").text("YES"), j.$(".Cancel").text("NO"))); } var watchCounter = ".add_anime[num_watched_times]", rewatchText = "Rewatch Anime?", rewatchFinishText = "Finish rewatching?"; function wrongCall() { if (This.wrong = !0, !This.miniMAL) { var miniButton = j.$("button.open-info-popup"); "none" != miniButton.css("display") ? miniButton.click() : (miniButton.click(), miniButton.click()); } } function continueCall() { var parameter = ""; j.$.each(This.animeInfo, function(index, value) { "." == index.toString().charAt(0) && (".add_anime[is_rewatching]" !== index && ".add_manga[is_rereading]" !== index || 0 !== parseInt(value)) && (parameter += encodeURIComponent(index.toString().substring(1)) + "=" + encodeURIComponent(value) + "&"); }), con.log("[SET] URL:", url), con.log("[SET] Object:", This.animeInfo), api.request.xhr("POST", { url: url, data: parameter, headers: { "Content-Type": "application/x-www-form-urlencoded" } }).then(response => { response.responseText.indexOf("Successfully") >= 0 ? (con.log("Update Succeeded"), resolve()) : (con.error("Update failed"), reject()); }); } "manga" == this.type && (watchCounter = ".add_manga[num_read_times]", rewatchText = "Reread Manga?", rewatchFinishText = "Finish rereading?"), this.getStatus() != status.completed || 1 !== this.getEpisode() || 1 === this.totalEp || 1 === this.getRewatching() ? this.getStatus() != status.completed || this.getEpisode() !== this.totalEp || 1 !== this.getRewatching() ? continueCall() : utils.flashConfirm(rewatchFinishText, "add", () => { this.setRewatching(0), "" === this.animeInfo[watchCounter] ? this.animeInfo[watchCounter] = 1 : this.animeInfo[watchCounter] = parseInt(this.animeInfo[watchCounter]) + 1, continueCall(); }, function() { continueCall(); }) : utils.flashConfirm(rewatchText, "add", () => { this.setRewatching(1), continueCall(); }, function() { con.log("Rewatching denial"); }); }); } getObject(data) { var anime, getselect = utils.getselect; if (void 0 === data.split('
-1 && (this.addAnime = !0), data = data.split('")[0], this.totalEp = parseInt(data.split('id="totalEpisodes">')[1].split("<")[0]), this.name = data.split('')[1].split("<")[0], anime[".anime_id"] = parseInt(data.split('name="anime_id"')[1].split('value="')[1].split('"')[0]), anime[".aeps"] = parseInt(data.split('name="aeps"')[1].split('value="')[1].split('"')[0]), anime[".astatus"] = parseInt(data.split('name="astatus"')[1].split('value="')[1].split('"')[0]), anime[".add_anime[status]"] = parseInt(getselect(data, "add_anime[status]")), data.split('name="add_anime[is_rewatching]"')[1].split(">")[0].indexOf('checked="checked"') >= 0 && (anime[".add_anime[is_rewatching]"] = 1), anime[".add_anime[num_watched_episodes]"] = parseInt(data.split('name="add_anime[num_watched_episodes]"')[1].split('value="')[1].split('"')[0]), isNaN(anime[".add_anime[num_watched_episodes]"]) && (anime[".add_anime[num_watched_episodes]"] = ""), anime[".add_anime[score]"] = getselect(data, "add_anime[score]"), anime[".add_anime[start_date][month]"] = getselect(data, "add_anime[start_date][month]"), anime[".add_anime[start_date][day]"] = getselect(data, "add_anime[start_date][day]"), anime[".add_anime[start_date][year]"] = getselect(data, "add_anime[start_date][year]"), anime[".add_anime[finish_date][month]"] = getselect(data, "add_anime[finish_date][month]"), anime[".add_anime[finish_date][day]"] = getselect(data, "add_anime[finish_date][day]"), anime[".add_anime[finish_date][year]"] = getselect(data, "add_anime[finish_date][year]"), anime[".add_anime[tags]"] = data.split('name="add_anime[tags]"')[1].split(">")[1].split("<")[0], anime[".add_anime[priority]"] = getselect(data, "add_anime[priority]"), anime[".add_anime[storage_type]"] = getselect(data, "add_anime[storage_type]"), anime[".add_anime[storage_value]"] = data.split('name="add_anime[storage_value]"')[1].split('value="')[1].split('"')[0], anime[".add_anime[num_watched_times]"] = data.split('name="add_anime[num_watched_times]"')[1].split('value="')[1].split('"')[0], anime[".add_anime[rewatch_value]"] = getselect(data, "add_anime[rewatch_value]"), anime[".add_anime[comments]"] = data.split('name="add_anime[comments]"')[1].split(">")[1].split("<")[0], anime[".add_anime[is_asked_to_discuss]"] = getselect(data, "add_anime[is_asked_to_discuss]"), "" == anime[".add_anime[is_asked_to_discuss]"] && (anime[".add_anime[is_asked_to_discuss]"] = 0), anime[".add_anime[sns_post_type]"] = getselect(data, "add_anime[sns_post_type]"), anime[".submitIt"] = data.split('name="submitIt"')[1].split('value="')[1].split('"')[0], con.log("[GET] Object:", anime), anime) : ((anime = {})[".csrf_token"] = data.split("'csrf_token'")[1].split("'")[1].split("'")[0], data.indexOf("Add Manga") > -1 && (this.addAnime = !0), data = data.split('")[0], this.totalEp = parseInt(data.split('id="totalChap">')[1].split("<")[0]), this.totalVol = parseInt(data.split('id="totalVol">')[1].split("<")[0]), this.name = data.split('')[1].split("<")[0], anime[".entry_id"] = parseInt(data.split('name="entry_id"')[1].split('value="')[1].split('"')[0]), anime[".manga_id"] = parseInt(data.split('name="manga_id"')[1].split('value="')[1].split('"')[0]), anime.volumes = parseInt(data.split('id="volumes"')[1].split('value="')[1].split('"')[0]), anime.mstatus = parseInt(data.split('id="mstatus"')[1].split('value="')[1].split('"')[0]), anime[".add_manga[status]"] = parseInt(getselect(data, "add_manga[status]")), data.split('name="add_manga[is_rereading]"')[1].split(">")[0].indexOf('checked="checked"') >= 0 && (anime[".add_manga[is_rereading]"] = 1), anime[".add_manga[num_read_volumes]"] = parseInt(data.split('name="add_manga[num_read_volumes]"')[1].split('value="')[1].split('"')[0]), isNaN(anime[".add_manga[num_read_volumes]"]) && (anime[".add_manga[num_read_volumes]"] = ""), anime[".add_manga[num_read_chapters]"] = parseInt(data.split('name="add_manga[num_read_chapters]"')[1].split('value="')[1].split('"')[0]), isNaN(anime[".add_manga[num_read_chapters]"]) && (anime[".add_manga[num_read_chapters]"] = ""), anime[".add_manga[score]"] = getselect(data, "add_manga[score]"), anime[".add_manga[start_date][month]"] = getselect(data, "add_manga[start_date][month]"), anime[".add_manga[start_date][day]"] = getselect(data, "add_manga[start_date][day]"), anime[".add_manga[start_date][year]"] = getselect(data, "add_manga[start_date][year]"), anime[".add_manga[finish_date][month]"] = getselect(data, "add_manga[finish_date][month]"), anime[".add_manga[finish_date][day]"] = getselect(data, "add_manga[finish_date][day]"), anime[".add_manga[finish_date][year]"] = getselect(data, "add_manga[finish_date][year]"), anime[".add_manga[tags]"] = data.split('name="add_manga[tags]"')[1].split(">")[1].split("<")[0], anime[".add_manga[priority]"] = getselect(data, "add_manga[priority]"), anime[".add_manga[storage_type]"] = getselect(data, "add_manga[storage_type]"), anime[".add_manga[num_retail_volumes]"] = data.split('name="add_manga[num_retail_volumes]"')[1].split('value="')[1].split('"')[0], anime[".add_manga[num_read_times]"] = data.split('name="add_manga[num_read_times]"')[1].split('value="')[1].split('"')[0], anime[".add_manga[reread_value]"] = getselect(data, "add_manga[reread_value]"), anime[".add_manga[comments]"] = data.split('name="add_manga[comments]"')[1].split(">")[1].split("<")[0], anime[".add_manga[is_asked_to_discuss]"] = getselect(data, "add_manga[is_asked_to_discuss]"), "" == anime[".add_manga[is_asked_to_discuss]"] && (anime[".add_manga[is_asked_to_discuss]"] = 0), anime[".add_manga[sns_post_type]"] = getselect(data, "add_manga[sns_post_type]"), anime[".submitIt"] = data.split('name="submitIt"')[1].split('value="')[1].split('"')[0], con.log("[GET] Object:", anime), anime); } } }).call(this, __webpack_require__(2), __webpack_require__(1), __webpack_require__(0), __webpack_require__(3)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(con, utils, api) { function userList(status = 1, localListType = "anime", callbacks, username = null, offset = 0, templist = []) { if (con.log("[UserList]", "username: " + username, "status: " + status, "offset: " + offset), null == username) return callback = function(usernameTemp) { 0 == usernameTemp ? (utils.flashm("Please log in on MyAnimeList!"), void 0 !== callbacks.fullListCallback && callbacks.fullListCallback([]), void 0 !== callbacks.finishCallback && callbacks.finishCallback()) : userList(status, localListType, callbacks, usernameTemp, offset, templist); }, void api.request.xhr("GET", "https://myanimelist.net/editlist.php?hideLayout").then(response => { var username = !1; try { username = response.responseText.split('USER_NAME = "')[1].split('"')[0]; } catch (e) {} con.log("[Username]", username), callback(username); }); var callback, url = "https://myanimelist.net/" + localListType + "list/" + username + "/load.json?offset=" + offset + "&status=" + status; api.request.xhr("GET", url).then(response => { var data = JSON.parse(response.responseText); if (data = prepareData(data, localListType), void 0 !== callbacks.singleCallback) { data.length || callbacks.singleCallback(!1, 0, 0); for (var i = 0; i < data.length; i++) callbacks.singleCallback(data[i], i + offset + 1, data.length + offset); } void 0 !== callbacks.fullListCallback && (templist = templist.concat(data)), data.length > 299 ? void 0 !== callbacks.continueCall ? callbacks.continueCall(function() { userList(status, localListType, callbacks, username, offset + 300, templist); }) : userList(status, localListType, callbacks, username, offset + 300, templist) : (void 0 !== callbacks.fullListCallback && callbacks.fullListCallback(templist), void 0 !== callbacks.finishCallback && callbacks.finishCallback()); }); } function prepareData(data, listType) { for (var newData = [], i = 0; i < data.length; i++) { var el = data[i]; "anime" === listType ? newData.push({ id: el.anime_id, type: listType, title: el.anime_title, url: "https://myanimelist.net" + el.anime_url, watchedEp: el.num_watched_episodes, totalEp: el.anime_num_episodes, image: el.anime_image_path, tags: el.tags, airingState: el.anime_airing_status }) : newData.push({ id: el.manga_id, type: listType, title: el.manga_title, url: "https://myanimelist.net" + el.manga_url, watchedEp: el.num_read_chapters, totalEp: el.manga_num_chapters, image: el.manga_image_path, tags: el.tags, airingState: el.anime_airing_status }); } return newData; } __webpack_require__.d(__webpack_exports__, "b", function() { return userList; }), __webpack_require__.d(__webpack_exports__, "a", function() { return prepareData; }); }).call(this, __webpack_require__(1), __webpack_require__(2), __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(utils, j, con) { var timer, _minimalApp_settings_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56), _minimalApp_overview_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59), _minimalApp_recommendations_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57), _minimalApp_bookmarks_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60), _minimalApp_search_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26), _minimalApp_updateCheck_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55), _minimalApp_reviews_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54), ignoreCurrentTab = !0, ignoreNullBase = !1, popupStorage_fetch = function() { return JSON.parse(localStorage.getItem("VUE-MAL-SYNC") || "[]"); }, popupStorage_save = function(state) { localStorage.setItem("VUE-MAL-SYNC", JSON.stringify(state)); }; __webpack_exports__.a = { components: { overviewVue: _minimalApp_overview_vue__WEBPACK_IMPORTED_MODULE_1__.a, recommendationsVue: _minimalApp_recommendations_vue__WEBPACK_IMPORTED_MODULE_2__.a, reviewsVue: _minimalApp_reviews_vue__WEBPACK_IMPORTED_MODULE_6__.a, bookmarksVue: _minimalApp_bookmarks_vue__WEBPACK_IMPORTED_MODULE_3__.a, searchVue: _minimalApp_search_vue__WEBPACK_IMPORTED_MODULE_4__.a, updateCheckVue: _minimalApp_updateCheck_vue__WEBPACK_IMPORTED_MODULE_5__.a, settingsVue: _minimalApp_settings_vue__WEBPACK_IMPORTED_MODULE_0__.a }, data: () => ({ tabs: { overview: { title: "overview", scroll: 0 }, reviews: { title: "reviews", scroll: 0 }, recommendations: { title: "recommendations", scroll: 0 }, settings: { title: "settings", scroll: 0 }, bookmarks: { title: "bookmarks", scroll: 0, state: 1, type: "anime" }, search: { title: "search", scroll: 0, type: "anime", keyword: "" }, updateCheck: { title: "updateCheck", scroll: 0 } }, keyword: "", currentTab: "settings", renderUrl: "", history: [], baseFallback: "", page: null }), computed: { base: function() { return this.page ? this.page.malObj ? this.page.malObj.url : (this.renderUrl = "", "") : this.baseFallback; }, utils: function() { return utils; }, backbutton: function() { return this.history.length > 0; }, backbuttonSearchStyle: function() { return this.backbutton ? { "margin-left": "-17px" } : { "margin-left": "-57px" }; }, backbuttonBookStyle: function() { return this.backbutton ? { left: "40px" } : { left: "0px" }; }, popOver: function() { return this.currentTab === this.tabs.bookmarks.title || (this.currentTab === this.tabs.search.title || this.currentTab === this.tabs.updateCheck.title); }, navigation: function() { return !this.popOver && !this.onlySettings; }, onlySettings: function() { return "" === this.renderUrl; }, bookIcon: function() { j.$(this.$el); return "bookmarks" === this.currentTab ? this.onlySettings ? "settings" : "collections_bookmark" : "book"; } }, mounted: function() { if (this.isPopup()) { var state = popupStorage_fetch(); void 0 !== state && void 0 !== state.currentTab && (ignoreNullBase = !0, this.setCurrent(state)); } }, updated: function() { this.isPopup() && popupStorage_save(this.getCurrent(this.currentTab)); }, watch: { renderUrl: function(url, oldUrl) {}, currentTab: function(tab, oldtab) { this.tabs[oldtab].scroll = this.getScroll(), this.$nextTick(() => { this.setScroll(this.tabs[tab].scroll); }), ignoreCurrentTab ? ignoreCurrentTab = !1 : (this.currentTab === this.tabs.bookmarks.title && this.history.push(this.getCurrent(oldtab)), this.currentTab === this.tabs.search.title && this.history.push(this.getCurrent(oldtab)), this.currentTab === this.tabs.updateCheck.title && this.history.push(this.getCurrent(oldtab))); }, keyword: function(keyword) { "" !== keyword ? this.selectTab("search") : this.selectTab("overview"); }, base: function(base, oldBase) { if (base !== oldBase) { for (;this.history.length > 0; ) this.history.pop(); this.fill(base, !0); } } }, methods: { selectTab(selectedTab) { !this.onlySettings || "overview" !== selectedTab && "reviews" !== selectedTab && "recommendations" !== selectedTab || (selectedTab = "settings"), con.log("Tab Changed", selectedTab), this.currentTab = selectedTab; }, getScroll() { return j.$(this.$el).find(".simplebar-scroll-content").first().scrollTop(); }, setScroll(scroll) { return j.$(this.$el).find(".simplebar-scroll-content").first().scrollTop(scroll); }, isPopup: () => !!j.$("#Mal-Sync-Popup").length, fill(url, isBase = !1) { j.$(this.$el); return null == url ? (this.isPopup() && this.selectTab("bookmarks"), !1) : /^https:\/\/myanimelist.net\/(anime|manga)\/\d+/i.test(url) ? (isBase || this.history.push(this.getCurrent(this.currentTab)), this.renderUrl = url, this.currentTab = "overview", !0) : (this.isPopup() && this.selectTab("bookmarks"), !1); }, fillBase(url) { con.log("Fill Base", url, this.history), ignoreNullBase && null === url || (this.baseFallback = url), "" === url && (this.renderUrl = url); }, setPage(page) { this.page = page, void 0 === this.page.malObj && this.$set(this.page, "malObj", void 0); }, backbuttonClick() { con.log("History", this.history), this.history.length > 0 && this.setCurrent(this.history.pop()); }, bookClick() { j.$(this.$el); "book" !== this.bookIcon ? this.selectTab("overview") : this.selectTab("bookmarks"); }, keywordSet() { clearTimeout(timer), timer = setTimeout(() => { this.tabs.search.keyword = this.keyword; }, 300); }, getCurrent(tab, url = this.renderUrl) { return { renderUrl: url, currentTab: tab, tabData: $.extend(!0, {}, this.tabs[tab]) }; }, setCurrent(historyElement) { con.log("Set Current", historyElement), void 0 !== historyElement.tabData.keyword && (this.keyword = historyElement.tabData.keyword), this.tabs[historyElement.currentTab] = historyElement.tabData, this.renderUrl = historyElement.renderUrl, this.currentTab !== historyElement.currentTab && (ignoreCurrentTab = !0), this.currentTab = historyElement.currentTab; } } }; }).call(this, __webpack_require__(2), __webpack_require__(3), __webpack_require__(1)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(api, con) { var _components_settingsCheckbox_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62), _components_tooltip_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25), _correction_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61); __webpack_exports__.a = { components: { correction: _correction_vue__WEBPACK_IMPORTED_MODULE_2__.a, tooltip: _components_tooltip_vue__WEBPACK_IMPORTED_MODULE_1__.a, checkbox: _components_settingsCheckbox_vue__WEBPACK_IMPORTED_MODULE_0__.a }, props: { page: { type: Object, default: null } }, mounted: function() { api.request.xhr("GET", "https://kissanimelist.firebaseio.com/Data2/Notification/Contributer.json").then(response => { try { this.contributer = JSON.parse(response.responseText.replace(/(^"|"$)/gi, "").replace(/\\"/g, '"')); } catch (e) { return void con.error("Contributer Could not be retieved", e); } con.log("Contributer", contr); }); }, methods: { myOpen: function() { this.isOpen = !this.isOpen; } }, data: function() { return { contributer: [], isOpen: !1, options: api.settings.options, version: { link: `https://malsync.lolamtisch.de/changelog#${api.storage.version()}`, img: `https://img.shields.io/badge/Changelog-${api.storage.version()}-green.svg?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAtxQTFRFAAAARj1Hw158LyQzRDRBVF54Ew0ZXqvnIx4labLsQEFTdsD7ZpPC////VE1SNCg3Nik7PS1CSzBKWjRXczBXjjBUsTZd0WuILSUyMiU2MiI2Nyc9dypNoClRbC5INTQ+YXKMMCQ7PyQ/WitFKx4vFxchT16CRStIPSY6TSQ6jjhScb33TViCpCROni9VYKzqTlN+qDBZXK3sYi5JXbHyQzNGXLLzTTZOW6/wQC5EX67sNSw7Y67qWa3vLCUzMCo1uc3fXq3rWa/yLCgxSEdKZa7nV6rrWrDyKCEsMzA1aLDpYbLyYbj6SUJgPj5VLy87e8D6csP+c8r/d9L/fNT+esnydLbgcKfOa5vDdJ/MQi5GSjFLTTFOYi9PWS1NUS9OTTFPRzFLSDJMTTBMXjBPaS5NZzBVgTdjczVfbjVhXjVaTjRTQzJMSzRNTzVOTzNLai1ShzJcjjNdiDNeejRhbDVhWzZbSzRRQzFKQjJKUDNMiyxPYy9UlzBfyDBlpjJgcjJbajNfXDVaTDNRPzBHPTBHVDJNrDBZxSpaV1aBajBZkDNipzNjnTNjdDJdYzJcXDRZTzRQPzFHRzJHZTJNcS9MZ2WUcS9VcDNdezRgcjJeezNgZTNaTjNRRDFLQzJJQjNHQjJGWDJLUjJKYoK4cS5NWTFTWzRaWDJVbjRbWDNVSzNQRjJMUTRLSTVHSzRJjjZbfDdZYqXlhEZwVS5MSzRUVTNUczVbTjJRSTNOUDRMSTNLQTJISTNGczZUXjVRWrH0W3+1Ri9OSDJSSzNSTDNTRzJRRzNRSTNNQzJLPzFKPjJGPjFCOSw/W67vTWOORi5NSjJRSzNVTDRURTJRQTBNQTFKQzJKPjFINSw9XKrpSVyIQCxLRS9QRjJSQjJPRzRQUTROQjBFLyc1W6rrS22ePTRVQSxLSjNVSzZYTzZWUTJPOSw+Z778YqPWWnGcV1F/UkZxT0Nm////ch6M6QAAAFp0Uk5TAAAAAAAAAAAAAAAAAAABKH2/3+bIjTgFCm7a/f7nhRILifn9nRJx+v6JBC3b6UV//aPB3OTz5/bL3Y6oNuLuTAGA/ZsIEp79shwRhervmxwFQqDd+frjqksImWc25wAAAAFiS0dEDfa0YfUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEbSURBVBjTARAB7/4AAAABDg8QERITFBUWFwIAAAAAAxgZGhtaW1xdHB0eHwQAAAUgISJeX2BhYmNkZSMkJQYAACYnZmdoaWprbG1ubygpKgArLHBxcnN0dXZ3eHl6ey0uAC8wfH1+f4CBgoOEhYaHiDEAMomKi4yNjo+QkZKSk5SVMwA0lpeYmZqbnJ2en6ChoqM1ADakpaanqKmqq6ytrq+wsTcAOLKztLW2t7i5uru8vb6/OQA6wMHCw8TFxsfIycrLzM07ADw9zs/Q0dLT1NXW19jZPj8AQEFC2tvc3d7U3+Dh4uNDRAAHRUZH5OXm5+jp6uvsSEkIAAAJSktM7e7v8PHyTU5PCgAAAAALUFFSU1RVVldYWQwNAEGXdELuOiRkAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTA1LTE2VDEzOjM2OjI0KzAwOjAwK9TuQgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0wNS0xNlQxMzozNjoyNCswMDowMFqJVv4AAABGdEVYdHNvZnR3YXJlAEltYWdlTWFnaWNrIDYuNy44LTkgMjAxNC0wNS0xMiBRMTYgaHR0cDovL3d3dy5pbWFnZW1hZ2ljay5vcmfchu0AAAAAGHRFWHRUaHVtYjo6RG9jdW1lbnQ6OlBhZ2VzADGn/7svAAAAGHRFWHRUaHVtYjo6SW1hZ2U6OmhlaWdodAAxOTIPAHKFAAAAF3RFWHRUaHVtYjo6SW1hZ2U6OldpZHRoADE5MtOsIQgAAAAZdEVYdFRodW1iOjpNaW1ldHlwZQBpbWFnZS9wbmc/slZOAAAAF3RFWHRUaHVtYjo6TVRpbWUAMTUyNjQ3Nzc4NGTqj8oAAAAPdEVYdFRodW1iOjpTaXplADBCQpSiPuwAAABWdEVYdFRodW1iOjpVUkkAZmlsZTovLy9tbnRsb2cvZmF2aWNvbnMvMjAxOC0wNS0xNi82ODRlZmQxYzBmMTdmMzAxMjIzMWFmNzQ4YzhmYjJjYy5pY28ucG5nP6GaiQAAAABJRU5ErkJggg==` } }; } }; }).call(this, __webpack_require__(0), __webpack_require__(1)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(api) { __webpack_exports__.a = { props: { option: { type: String } }, computed: { value: { get: function() { return api.settings.get(this.option); }, set: function(value) { api.settings.set(this.option, value); } } } }; }).call(this, __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(j, utils) { var _components_tooltip_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25), _search_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); __webpack_exports__.a = { components: { tooltip: _components_tooltip_vue__WEBPACK_IMPORTED_MODULE_0__.a, searchVue: _search_vue__WEBPACK_IMPORTED_MODULE_1__.a }, props: { page: { type: Object, default: null } }, data: function() { return { malUrl: "", searchType: this.page.page.type, searchKeyword: "" }; }, watch: { url: function(url) { this.malUrl = this.url; }, wrong: function(wrong) { wrong && (this.$parent.$parent.currentTab = "settings"); } }, mounted: function() { this.malUrl = this.url, j.$(this.$el).closest("html").find("head").click(); var This = this; j.$(this.$el).on("click", ".searchItem", function(e) { e.preventDefault(), This.submit(j.$(this).attr("href")); }), this.wrong && (this.$parent.$parent.currentTab = "settings"); }, computed: { title: function() { return void 0 !== this.page.malObj ? this.page.malObj.name : "Not Found"; }, url: function() { return void 0 !== this.page.malObj ? this.page.malObj.url : ""; }, wrong: function() { return !(void 0 === this.page || void 0 === this.page.malObj || !this.page.malObj.wrong); }, offset: { get: function() { var offset = this.page.getOffset(); return 0 === offset ? "" : offset; }, set: function(offset) { null !== offset && ("" !== offset ? (this.page.setOffset(offset), utils.flashm("New Offset (" + offset + ") set.")) : (this.page.setOffset("0"), utils.flashm("Offset reset"))); } } }, methods: { submit: function(malUrl) { var toDatabase = !1; void 0 !== this.page.page.database && confirm("Submit database correction request?") && (toDatabase = "correction"), this.$set(this.page, "malObj", void 0), this.page.setCache(malUrl, toDatabase), utils.flashm("new url '" + malUrl + "' set.", !1), this.page.handlePage(); }, noMal: function() { this.submit(""); }, reset: function() { this.page.deleteCache(), this.$set(this.page, "malObj", void 0), utils.flashm("MyAnimeList url reset", !1), this.page.handlePage(); }, update: function() { this.submit(this.malUrl); } } }; }).call(this, __webpack_require__(3), __webpack_require__(2)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(j, api) { __webpack_require__(7); var _bookmarksItem_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); __webpack_exports__.a = { components: { bookmarksItem: _bookmarksItem_vue__WEBPACK_IMPORTED_MODULE_1__.a }, data: function() { return { items: [], loading: !0 }; }, props: { type: { type: String, default: "anime" }, keyword: { type: String, default: "" } }, mounted: function() { this.load(); }, activated: function() { this.$nextTick(() => { j.$(this.$el).closest("html").find("head").click(); }); }, watch: { keyword: function(type) { this.load(); }, type: function(type) { this.load(); } }, methods: { load: function() { this.loading = !0, api.request.xhr("GET", "https://myanimelist.net/search/prefix.json?type=" + this.type + "&keyword=" + this.keyword + "&v=1").then(response => { this.loading = !1; var searchResults = j.$.parseJSON(response.responseText); this.items = searchResults.categories[0].items; }); } } }; }).call(this, __webpack_require__(3), __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(utils, api) { __webpack_require__(7); __webpack_exports__.a = { data: function() { return { prediction: void 0, resumeUrl: null, continueUrl: null }; }, props: { item: { type: Object } }, mounted: async function() { if (void 0 === this.item.resume) { var resumeUrl = null, continueUrl = null, id = utils.urlPart(this.item.url, 4), type = utils.urlPart(this.item.url, 3), resumeUrlObj = await utils.getResumeWaching(type, id), continueUrlObj = await utils.getContinueWaching(type, id), curEp = parseInt(this.item.watchedEp.toString()); void 0 !== continueUrlObj && continueUrlObj.ep === curEp + 1 ? continueUrl = continueUrlObj.url : void 0 !== resumeUrlObj && resumeUrlObj.ep === curEp && (resumeUrl = resumeUrlObj.url), this.resumeUrl = resumeUrl, this.continueUrl = continueUrl; } void 0 === this.prediction && (this.setPrediction(), setInterval(() => { this.setPrediction(); }, 6e4)); }, watch: { prediction: function() { this.$parent.sortByPrediction(); } }, computed: { imageHi: function() { var imageHi = this.item.image, regexDimensions = /\/r\/\d*x\d*/g; return regexDimensions.test(imageHi) && (imageHi = imageHi.replace(/v.jpg$/g, ".jpg").replace(regexDimensions, "")), imageHi; }, barTotal: function() { return this.prediction && this.prediction.tagEpisode && !this.hasTotalEp ? this.prediction.tagEpisode > this.item.watchedEp ? Math.ceil(1.2 * this.prediction.tagEpisode) : Math.ceil(1.2 * this.item.watchedEp) : this.item.totalEp; }, hasTotalEp: function() { return 0 !== parseInt(this.item.totalEp); }, progress: function() { return "width: " + this.item.watchedEp / this.barTotal * 100 + "%;"; }, predictionBar: function() { var predictionProgress = this.prediction.tagEpisode / this.barTotal * 100, color = "orange"; return "" !== this.prediction.color && (color = this.prediction.color), "width: " + predictionProgress + "%; background-color: " + color; }, streamUrl: function() { return utils.getUrlFromTags(this.item.tags); }, preTexter: function() { var pre = this.prediction.prediction, diffDays = pre.diffDays, diffHours = pre.diffHours, diffMinutes = pre.diffMinutes; diffDays > 1 && diffHours > 12 && diffDays++; var text = ""; return diffDays > 1 ? text + diffDays + " Days" : (1 === diffDays && (text += diffDays + " Day "), diffHours > 1 ? text + diffHours + " Hours" : (1 === diffHours && (text += diffHours + " Hour "), text + diffMinutes + " mins")); } }, methods: { favicon: function(domain) { return utils.favicon(domain); }, assetUrl: function(asset) { return api.storage.assetUrl(asset); }, setPrediction: function() { utils.epPredictionUI(utils.urlPart(this.item.url, 4), utils.urlPart(this.item.url, 3), prediction => { this.prediction = prediction; }); } } }; }).call(this, __webpack_require__(2), __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(utils, api, j, con) { var _provider_provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7); __webpack_exports__.a = { data: function() { return { xhr: "", mal: { malObj: null, resumeUrl: null, continueUrl: null }, kiss2mal: {}, related: [], prediction: null, utils: utils }; }, props: { url: { type: String, default: "" } }, watch: { url: async function(url) { this.xhr = "", this.mal.malObj = null, this.mal.resumeUrl = null, this.mal.continueUrl = null, this.kiss2mal = {}, this.related = [], this.prediction = null, api.request.xhr("GET", this.url).then(response => { this.xhr = response.responseText, this.related = this.getRelated(), this.updateStatusTags(); }); var malObj = Object(_provider_provider__WEBPACK_IMPORTED_MODULE_0__.a)(this.url, !0); malObj.init().then(async () => { this.mal.malObj = malObj, this.mal.resumeUrl = await malObj.getResumeWaching(), this.mal.continueUrl = await malObj.getContinueWaching(); }), this.url.split("").length > 3 && (utils.getMalToKissArray(utils.urlPart(this.url, 3), utils.urlPart(this.url, 4)).then(links => { this.kiss2mal = links; }), utils.epPredictionUI(utils.urlPart(this.url, 4), utils.urlPart(this.url, 3), prediction => { this.prediction = prediction; })); } }, computed: { localType: function() { return this.url.split("/").length > 3 ? utils.urlPart(this.url, 3) : ""; }, editUrl: function() { return this.url.split("/").length > 3 ? `https://myanimelist.net/ownlist/${this.localType}/${utils.urlPart(this.url, 4)}/edit` : null; }, malStatus: { get: function() { return this.mal.malObj ? 0 === this.mal.malObj.getScore() ? 1 : this.mal.malObj.getStatus() : null; }, set: function(value) { this.mal.malObj && this.mal.malObj.setStatus(value); } }, malEpisode: { get: function() { return this.mal.malObj ? this.mal.malObj.addAnime ? null : this.mal.malObj.getEpisode() : null; }, set: function(value) { this.mal.malObj && this.mal.malObj.setEpisode(value); } }, malVolume: { get: function() { return this.mal.malObj ? this.mal.malObj.addAnime ? null : this.mal.malObj.getVolume() : null; }, set: function(value) { this.mal.malObj && this.mal.malObj.setVolume(value); } }, malScore: { get: function() { return this.mal.malObj ? 0 === this.mal.malObj.getScore() ? "" : this.mal.malObj.getScore() : null; }, set: function(value) { this.mal.malObj && this.mal.malObj.setScore(value); } }, statistics: function() { var stats = ""; try { var statsBlock = this.xhr.split("

Statistics

")[1].split("

")[0], tempHtml = j.$.parseHTML(statsBlock), statsHtml = '
    '; j.$.each(j.$(tempHtml).filter("div").slice(0, 5), function(index, value) { statsHtml += '
  • ', statsHtml += '', statsHtml += "", statsHtml += j.$(value).find(".dark_text").text(), statsHtml += "", statsHtml += '', statsHtml += null != j.$(value).find("span[itemprop=ratingValue]").height() ? j.$(value).find("span[itemprop=ratingValue]").text() : j.$(value).clone().children().remove().end().text(), statsHtml += "", statsHtml += "", statsHtml += "
  • "; }), stats = statsHtml += "
"; } catch (e) { console.log("[iframeOverview] Error:", e); } return stats; }, displayUrl: function() { return null != this.mal.malObj ? this.mal.malObj.getDisplayUrl() : this.url; }, image: function() { var image = ""; try { image = this.xhr.split("js-scrollfix-bottom")[1].split('')[1].split("<")[0]; } catch (e) { console.log("[iframeOverview] Error:", e); } return title; }, description: function() { var description = ""; try { description = this.xhr.split('itemprop="description">')[1].split("Alternative Titles

")[1].split("

")[0]).replace(/spaceit_pad/g, 'mdl-chip" style="margin-right: 5px;')).replace(/<\/span>/g, '')).replace(/<\/div>/g, "

"); } catch (e) { console.log("[iframeOverview] Error:", e); } return altTitle; }, streaming: function() { var streamhtml = null, malObj = this.mal.malObj; if (null == malObj) return null; var streamUrl = malObj.getStreamingUrl(); return void 0 !== streamUrl && (streamhtml = `\n
\n \n Continue ${utils.watching(malObj.type)}\n `, con.log("Resume", this.mal.resumeUrl, "Continue", this.mal.continueUrl), void 0 !== this.mal.continueUrl && this.mal.continueUrl && this.mal.continueUrl.ep === malObj.getEpisode() + 1 ? streamhtml += `\n Next Episode\n ` : void 0 !== this.mal.resumeUrl && this.mal.resumeUrl && this.mal.resumeUrl.ep === malObj.getEpisode() && (streamhtml += `\n Resume Episode\n `), streamhtml += "
\n "), streamhtml; }, characters: function() { var charArray = []; try { var characterBlock = this.xhr.split("detail-characters-list")[1].split("")[0], charHtml = j.$.parseHTML('
table"), (index, value) => { index || 1; var regexDimensions = /\/r\/\d*x\d*/g, charImg = j.$(value).find("img").first().attr("data-src"); charImg = regexDimensions.test(charImg) ? charImg.replace(regexDimensions, "") : "https://myanimelist.cdn-dena.com/images/questionmark_23.gif", charImg = utils.handleMalImages(charImg), charArray.push({ img: charImg, html: j.$(value).find(".borderClass .spaceit_pad").first().parent().html() }); }); } catch (e) { console.log("[iframeOverview] Error:", e); } return charArray; }, info: function() { var html = ""; try { var infoBlock = this.xhr.split("

Information

")[1].split("

")[0], infoData = j.$.parseHTML(infoBlock), infoHtml = '
    '; j.$.each(j.$(infoData).filter("div"), (index, value) => { infoHtml += '
  • ', infoHtml += '', infoHtml += "", infoHtml += j.$(value).find(".dark_text").text(), infoHtml += "", infoHtml += '', j.$(value).find(".dark_text").remove(), infoHtml += j.$(value).html(), infoHtml += "", infoHtml += "", infoHtml += "
  • "; }), infoHtml += this.externalLinks, html += '
    ' + (infoHtml += "
") + "

"; } catch (e) { console.log("[iframeOverview] Error:", e); } return html; }, externalLinks: function() { var html = ""; try { var infoBlock = this.xhr.split("

External Links

")[1].split("")[0] + "", infoData = j.$.parseHTML(infoBlock), infoHtml = ""; infoHtml += '
  • ', infoHtml += '', infoHtml += "", infoHtml += "External Links", infoHtml += "", infoHtml += '', j.$.each(j.$(infoData).find("a"), (index, value) => { index && (infoHtml += ", "), infoHtml += '' + j.$(value).text() + ""; }), infoHtml += "", infoHtml += "", html = infoHtml += "
  • "; } catch (e) { console.log("[iframeOverview] Error:", e); } return html; } }, methods: { malSync: function() { this.mal.malObj.sync().then(function() { utils.flashm("Updated"); }, function() { utils.flashm("Update failed", { error: !0 }); }); }, getMal2KissFavicon: function(streams) { return utils.favicon(streams[Object.keys(streams)[0]].url.split("/")[2]); }, getRelated: function() { var el = []; try { var relatedBlock = this.xhr.split("Related ")[1].split("")[1].split("

    ")[0], related = j.$.parseHTML(relatedBlock); j.$.each(j.$(related).filter("table").find("tr"), function(index, value) { var links = []; j.$(value).find(".borderClass").last().find("a").each(function(index, value) { links.push({ url: j.$(value).attr("href"), title: j.$(value).text(), statusTag: "" }); }), el.push({ type: j.$(value).find(".borderClass").first().text(), links: links }); }); } catch (e) { console.log("[iframeOverview] Error:", e); } return el; }, updateStatusTags: async function() { for (var relatedKey in this.related) { var relate = this.related[relatedKey]; for (var linkKey in relate.links) { var link = relate.links[linkKey], url = utils.absoluteLink(link.url, "https://myanimelist.net"); if (void 0 !== url) { var tag = await utils.timeCache("MALTAG/" + url, async function() { var malObj = Object(_provider_provider__WEBPACK_IMPORTED_MODULE_0__.a)(url, !0, !0); return await malObj.init(), utils.statusTag(malObj.getStatus(), malObj.type, malObj.id); }, 36e5); tag && (this.related[relatedKey].links[linkKey].statusTag = tag); } } } } } }; }).call(this, __webpack_require__(2), __webpack_require__(0), __webpack_require__(3), __webpack_require__(1)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(j, api) { __webpack_require__(7); __webpack_exports__.a = { data: function() { return { xhr: "" }; }, props: { url: { type: String, default: "" }, state: { type: Boolean, default: !1 } }, updated: function() { var minimal = j.$(this.$el); minimal.find(".js-similar-recommendations-button").addClass("nojs").click(function() { j.$(this).parent().find(".more").toggle(); }), minimal.find(".js-toggle-recommendation-button").addClass("nojs").click(function() { var revID = j.$(this).attr("data-id"); minimal.find("#recommend" + revID).css("display", "initial"), j.$(this).remove(); }), minimal.find("#malRecommendations .more .borderClass").addClass("mdl-shadow--2dp").css("padding", "10px"), minimal.find(".lazyload").each(function() { j.$(this).attr("src", j.$(this).attr("data-src")); }); }, watch: { url: async function(url) { this.xhr = "", this.state && api.request.xhr("GET", this.url + "/userrecs").then(response => { this.xhr = response.responseText; }); }, state: async function(state) { state && "" === this.xhr && api.request.xhr("GET", this.url + "/userrecs").then(response => { this.xhr = response.responseText; }); } }, computed: { recommendations: function() { try { var recommendationsBlock = this.xhr.split("Make a recommendation")[1].split("

    ")[1].split('
    { recommendationsHtml += '
    ', recommendationsHtml += '
    ', recommendationsHtml += j.$(value).find(".picSurround").html(), recommendationsHtml += "
    ", recommendationsHtml += '
    ', recommendationsHtml += '
    ', j.$(value).find(".button_edit, .button_add, td:eq(1) > div:eq(1) span").remove(), recommendationsHtml += j.$(value).find("td:eq(1) > div:eq(1)").html(), recommendationsHtml += "
    ", recommendationsHtml += '
    ', j.$(value).find('a[href^="/dbchanges.php?go=report"]').remove(), recommendationsHtml += j.$(value).find(".borderClass").html(), recommendationsHtml += "
    ", recommendationsHtml += '
    ', recommendationsHtml += void 0 !== j.$(value).find(".spaceit").html() ? j.$(value).find(".spaceit").html() : "", recommendationsHtml += '", recommendationsHtml += "
    ", recommendationsHtml += "
    ", recommendationsHtml += "
    "; }), recommendationsHtml += ""; } catch (e) { console.log("[iframeRecommendations] Error:", e); } return recommendationsHtml; } }, methods: {} }; }).call(this, __webpack_require__(3), __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(j) { var timer, _provider_provider_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7), _bookmarksItem_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); __webpack_exports__.a = { components: { bookmarksItem: _bookmarksItem_vue__WEBPACK_IMPORTED_MODULE_1__.a }, data: function() { return { items: [], loading: !0 }; }, props: { listType: { type: String, default: "anime" }, state: { type: Number, default: 1 } }, mounted: function() { this.load(); }, activated: function() { this.$nextTick(() => { j.$(this.$el).closest("html").find("head").click(); }); }, watch: { listType: function(type) { this.load(); }, state: function(state) { this.load(); } }, methods: { load: function() { this.loading = !0, _provider_provider_ts__WEBPACK_IMPORTED_MODULE_0__.b(this.state, this.listType, { fullListCallback: async list => { this.loading = !1, this.items = list; } }); }, sortByPrediction: function() { 1 !== this.state && "1" !== this.state || (clearTimeout(timer), timer = setTimeout(() => { var This = this, normalItems = [], preItems = [], watchedItems = []; function sortItems(a, b) { var vueA = This.$refs[a.id][0], vueB = This.$refs[b.id][0], preA = 99999999, preB = preA; return vueA.prediction && vueA.prediction.prediction && (preA = 1440 * vueA.prediction.prediction.diffDays + 60 * vueA.prediction.prediction.diffHours + vueA.prediction.prediction.diffMinutes), vueB.prediction && vueB.prediction.prediction && (preB = 1440 * vueB.prediction.prediction.diffDays + 60 * vueB.prediction.prediction.diffHours + vueB.prediction.prediction.diffMinutes), preA - preB; } this.items.forEach(item => { var vue = this.$refs[item.id][0]; vue.prediction && vue.prediction.prediction ? item.watchedEp < vue.prediction.tagEpisode ? preItems.push(item) : watchedItems.push(item) : normalItems.push(item); }), preItems = preItems.sort(sortItems).reverse(), watchedItems = watchedItems.sort(sortItems), this.items = preItems.concat(watchedItems, normalItems), this.$nextTick(() => { j.$(this.$el).closest(".simplebar-scroll-content").first().scroll(); }); }, 50)); } } }; }).call(this, __webpack_require__(3)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(con, api, utils) { var interva, _provider_provider_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7); __webpack_exports__.a = { data: function() { return { items: [], history: [] }; }, props: { listType: { type: String, default: "anime" } }, mounted: function() { this.load(), interva = setInterval(() => { this.load(); }, 5e3); }, destroyed: function() { clearInterval(interva); }, watch: { listType: function(type) { this.load(); } }, methods: { load: function() { _provider_provider_ts__WEBPACK_IMPORTED_MODULE_0__.b(1, this.listType, { fullListCallback: async list => { for (var i = 0; i < list.length; i++) { var el = list[i], episode = "", error = "", trColor = ""; con.log("el", el); var elCache = await api.storage.get("updateCheck/" + this.listType + "/" + el.id); con.log("elCache", elCache), void 0 !== elCache && (episode = elCache.newestEp + "/" + el.totalEp, trColor = "orange", elCache.finished && (error = "finished", trColor = "green"), void 0 !== elCache.error && (error = elCache.error, trColor = "red")), el.episode = episode, el.trColor = trColor, el.error = error; } this.items = list; } }), api.storage.get("notificationHistory").then(history => { history.forEach(entry => { var timeDiff = Date.now() - entry.timestamp; timeDiff = utils.timeDiffToText(timeDiff), timeDiff += "ago", entry.timeDiff = timeDiff; }), this.history = history.reverse(); }); }, deleteItem(item) { var delPath = "updateCheck/" + this.listType + "/" + item.id; con.log("delete", delPath, item), api.storage.remove(delPath), item.trColor = "black"; }, notificationTest() { utils.notifications("https://malsync.lolamtisch.de/", "MyAnimeList-Sync", "by lolamtisch", "https://cdn.myanimelist.net/images/anime/5/65187.jpg"); }, startCheck() { chrome.alarms.create("updateCheckNow", { when: Date.now() + 1e3 }), utils.flashm("Check started"); } } }; }).call(this, __webpack_require__(1), __webpack_require__(0), __webpack_require__(2)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(j, api) { __webpack_require__(7); __webpack_exports__.a = { data: function() { return { xhr: "" }; }, props: { url: { type: String, default: "" }, state: { type: Boolean, default: !1 } }, updated: function() { var minimal = j.$(this.$el); minimal.find(".js-toggle-review-button").addClass("nojs").click(function() { var revID = j.$(this).attr("data-id"); minimal.find("#review" + revID).css("display", "initial"), minimal.find("#revhelp_output_" + revID).remove(), j.$(this).remove(); }), minimal.find(".mb8 a").addClass("nojs").click(function() { var revID = j.$(this).attr("onclick").split("j.$('")[1].split("'")[0]; minimal.find(revID).toggle(); }); }, watch: { url: async function(url) { this.xhr = "", this.state && api.request.xhr("GET", this.url + "/reviews").then(response => { this.xhr = response.responseText; }); }, state: async function(state) { state && "" === this.xhr && api.request.xhr("GET", this.url + "/reviews").then(response => { this.xhr = response.responseText; }); } }, computed: { reviews: function() { var html = ""; try { var reviews = this.xhr.split("Reviews")[1].split("

    ")[0], reviewsData = j.$.parseHTML(reviews), reviewsHtml = ""; j.$.each(j.$(reviewsData).filter(".borderDark"), (index, value) => { reviewsHtml += '
    ', reviewsHtml += '
    ', j.$(value).find(".spaceit > div").css("max-width", "60%"), reviewsHtml += j.$(value).find(".spaceit").first().html(), reviewsHtml += "
    ", reviewsHtml += '
    ', j.$(value).find(".textReadability, .textReadability > span").contents().filter(function() { return 3 === this.nodeType && j.$.trim(this.nodeValue).length; }).wrap('

    '), j.$(value).find("br").css("line-height", "10px"), reviewsHtml += j.$(value).find(".textReadability").html(), reviewsHtml += "

    ", reviewsHtml += "
    "; }), html = reviewsHtml += ""; } catch (e) { console.log("[iframeReview] Error:", e); } return html; } }, methods: {} }; }).call(this, __webpack_require__(3), __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(utils, con, api, j) { __webpack_require__.d(__webpack_exports__, "a", function() { return entryClass; }); var _helper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5), __awaiter = function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function(resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; class entryClass { constructor(url, miniMAL = !1, silent = !1) { this.url = url, this.miniMAL = miniMAL, this.silent = silent, this.aniId = NaN, this.name = "", this.totalEp = NaN, this.addAnime = !1, this.login = !1, this.wrong = !1, this.displayUrl = "", this.type = utils.urlPart(url, 3), void 0 !== url && url.indexOf("myanimelist.net") > -1 ? this.id = utils.urlPart(url, 4) : void 0 !== url && url.indexOf("anilist.co") > -1 ? (this.id = NaN, this.aniId = utils.urlPart(url, 4)) : this.id = NaN; } init() { return this.update(); } getDisplayUrl() { return "" !== this.displayUrl && null != this.displayUrl ? this.displayUrl : this.url; } update() { con.log("Update AniList info", this.id ? "MAL: " + this.id : "AniList: " + this.aniId); var selectId = this.id, selectQuery = "idMal"; isNaN(this.id) && (selectId = this.aniId, selectQuery = "id"); var query = `\n query ($id: Int, $type: MediaType) {\n Media (${selectQuery}: $id, type: $type) {\n id\n idMal\n siteUrl\n episodes\n chapters\n volumes\n averageScore\n coverImage{\n large\n }\n title {\n userPreferred\n }\n mediaListEntry {\n status\n progress\n progressVolumes\n score(format: POINT_10)\n repeat\n notes\n }\n }\n }\n `, variables = { id: selectId, type: this.type.toUpperCase() }; return api.request.xhr("POST", { url: "https://graphql.anilist.co", headers: { Authorization: "Bearer " + _helper__WEBPACK_IMPORTED_MODULE_0__.a(), "Content-Type": "application/json", Accept: "application/json" }, data: JSON.stringify({ query: query, variables: variables }) }).then(response => { var res = JSON.parse(response.responseText); con.log(res), this.login = !0, _helper__WEBPACK_IMPORTED_MODULE_0__.c(res, this.silent), this.animeInfo = res.data.Media, this.aniId = this.animeInfo.id, isNaN(this.id) && this.animeInfo.idMal && (this.id = this.animeInfo.idMal), this.displayUrl = this.animeInfo.siteUrl, this.addAnime = !1, null === this.animeInfo.mediaListEntry && (this.addAnime = !0, this.animeInfo.mediaListEntry = { notes: "", progress: 0, progressVolumes: 0, repeat: 0, score: 0, status: "PLANNING" }), this.name = this.animeInfo.title.userPreferred, this.totalEp = this.animeInfo.episodes ? this.animeInfo.episodes : this.animeInfo.chapters, this.animeInfo.volumes && (this.totalVol = this.animeInfo.volumes); }); } getEpisode() { return this.animeInfo.mediaListEntry.progress; } setEpisode(ep) { ep + "" == "" && (ep = 0), this.animeInfo.mediaListEntry.progress = parseInt(ep + ""); } getVolume() { return "manga" == this.type && this.animeInfo.mediaListEntry.progressVolumes; } setVolume(ep) { "manga" != this.type ? con.error("You cant set Volumes for animes") : this.animeInfo.mediaListEntry.progressVolumes = ep; } getStatus() { return this.addAnime ? 0 : _helper__WEBPACK_IMPORTED_MODULE_0__.d(this.animeInfo.mediaListEntry.status); } setStatus(status) { "REPEATING" == this.animeInfo.mediaListEntry.status && 1 == parseInt(status.toString()) || (this.animeInfo.mediaListEntry.status = _helper__WEBPACK_IMPORTED_MODULE_0__.d(status, parseInt(status.toString()))); } getScore() { return this.animeInfo.mediaListEntry.score; } setScore(score) { this.animeInfo.mediaListEntry.score = score; } getRewatching() { return "REPEATING" == this.animeInfo.mediaListEntry.status ? 1 : 0; } setRewatching(rewatching) { 1 == rewatching && (this.animeInfo.mediaListEntry.status = "REPEATING"); } setCompletionDateToNow() {} setStartingDateToNow() {} getStreamingUrl() { var tags = this.animeInfo.mediaListEntry.notes; return utils.getUrlFromTags(tags); } setStreamingUrl(url) { var tags = this.animeInfo.mediaListEntry.notes; tags = utils.setUrlInTags(url, tags), this.animeInfo.mediaListEntry.notes = tags; } getRating() { return __awaiter(this, void 0, void 0, function*() { return null == this.animeInfo.averageScore ? "N/A" : this.animeInfo.averageScore; }); } setResumeWaching(url, ep) { return __awaiter(this, void 0, void 0, function*() { return utils.setResumeWaching(url, ep, this.type, this.id); }); } getResumeWaching() { return __awaiter(this, void 0, void 0, function*() { return utils.getResumeWaching(this.type, this.id); }); } setContinueWaching(url, ep) { return __awaiter(this, void 0, void 0, function*() { return utils.setContinueWaching(url, ep, this.type, this.id); }); } getContinueWaching() { return __awaiter(this, void 0, void 0, function*() { return utils.getContinueWaching(this.type, this.id); }); } getImage() { return __awaiter(this, void 0, void 0, function*() { return this.animeInfo.coverImage.large; }); } clone() { const copy = new this.constructor(); return Object.assign(copy, this), copy.animeInfo = Object.assign({}, this.animeInfo), copy.animeInfo.mediaListEntry = Object.assign({}, this.animeInfo.mediaListEntry), copy; } sync() { var status = utils.status; return new Promise((resolve, reject) => { var This = this; this.type, this.id; if (this.addAnime) { var imgSelector = "malSyncImg" + this.id, flashConfirmText = `\n Is "${this.name}" correct?\n
    \n \n
    \n \x3c!--[How to correct entries]--\x3e\n `; return This.miniMAL && (flashConfirmText = `\n Add "${this.name}" to AniList?`), "anime" == this.type ? ("https://myanimelist.net/ownlist/anime/add?selected_series_id=" + this.id, utils.flashConfirm(flashConfirmText, "add", function() { continueCall(); }, function() { wrongCall(); })) : ("https://myanimelist.net/ownlist/manga/add?selected_manga_id=" + this.id, utils.flashConfirm(flashConfirmText, "add", function() { continueCall(); }, function() { wrongCall(); })), void (This.miniMAL || (this.getImage().then(image => { j.$("#" + imgSelector).attr("src", image); }), j.$(".Yes").text("YES"), j.$(".Cancel").text("NO"))); } var watchCounter = ".add_anime[num_watched_times]", rewatchText = "Rewatch Anime?", rewatchFinishText = "Finish rewatching?"; function wrongCall() { if (This.wrong = !0, !This.miniMAL) { var miniButton = j.$("button.open-info-popup"); "none" != miniButton.css("display") ? miniButton.click() : (miniButton.click(), miniButton.click()); } } function continueCall() { var variables = { mediaId: This.aniId, status: This.animeInfo.mediaListEntry.status, progress: This.animeInfo.mediaListEntry.progress, scoreRaw: 10 * This.animeInfo.mediaListEntry.score, notes: This.animeInfo.mediaListEntry.notes }; con.log("[SET] Object:", variables), api.request.xhr("POST", { url: "https://graphql.anilist.co", headers: { Authorization: "Bearer " + _helper__WEBPACK_IMPORTED_MODULE_0__.a(), "Content-Type": "application/json", Accept: "application/json" }, data: JSON.stringify({ query: "\n mutation ($mediaId: Int, $status: MediaListStatus, $progress: Int, $scoreRaw: Int, $notes: String) {\n SaveMediaListEntry (mediaId: $mediaId, status: $status, progress: $progress, scoreRaw: $scoreRaw, notes: $notes) {\n id\n status\n progress\n }\n }\n ", variables: variables }) }).then(response => { var res = JSON.parse(response.responseText); con.log(res), _helper__WEBPACK_IMPORTED_MODULE_0__.c(res, This.silent), con.log("Update Succeeded"), resolve(); }); } "manga" == this.type && (watchCounter = ".add_manga[num_read_times]", rewatchText = "Reread Manga?", rewatchFinishText = "Finish rereading?"), this.getStatus() != status.completed || 1 !== this.getEpisode() || 1 === this.totalEp || 1 === this.getRewatching() ? this.getStatus() != status.completed || this.getEpisode() !== this.totalEp || 1 !== this.getRewatching() ? continueCall() : utils.flashConfirm(rewatchFinishText, "add", () => { this.setRewatching(0), "" === this.animeInfo[watchCounter] ? this.animeInfo[watchCounter] = 1 : this.animeInfo[watchCounter] = parseInt(this.animeInfo[watchCounter]) + 1, continueCall(); }, function() { continueCall(); }) : utils.flashConfirm(rewatchText, "add", () => { this.setRewatching(1), continueCall(); }, function() { continueCall(); }); }); } } }).call(this, __webpack_require__(2), __webpack_require__(1), __webpack_require__(0), __webpack_require__(3)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(con, utils, api) { __webpack_require__.d(__webpack_exports__, "a", function() { return userList; }); var _helper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); function userList(status = 1, localListType = "anime", callbacks, username = null, offset = 0, templist = []) { offset < 1 && (offset = 1); var callback, anilist = !1; if (status = parseInt(status.toString()), void 0 !== callbacks.anilist && (anilist = !0), con.log("[UserList][AniList]", "username: " + username, "status: " + status, "offset: " + offset), null == username) return callback = function(usernameTemp) { 0 == usernameTemp ? (utils.flashm("Please log in on MyAnimeList!"), void 0 !== callbacks.fullListCallback && callbacks.fullListCallback([]), void 0 !== callbacks.finishCallback && callbacks.finishCallback()) : userList(status, localListType, callbacks, usernameTemp, offset, templist); }, void api.request.xhr("POST", { url: "https://graphql.anilist.co", headers: { Authorization: "Bearer " + _helper__WEBPACK_IMPORTED_MODULE_0__.a(), "Content-Type": "application/json", Accept: "application/json" }, data: JSON.stringify({ query: "\n query {\n Viewer {\n name\n id\n }\n }\n ", variables: [] }) }).then(response => { var res = JSON.parse(response.responseText); con.log(res), _helper__WEBPACK_IMPORTED_MODULE_0__.c(res), callback(res.data.Viewer.name); }); var query = "\n query ($page: Int, $userName: String, $type: MediaType, $status: MediaListStatus, $sort: [MediaListSort] ) {\n Page (page: $page, perPage: 100) {\n pageInfo {\n hasNextPage\n }\n mediaList (status: $status, type: $type, userName: $userName, sort: $sort) {\n status\n progress\n progressVolumes\n notes\n media {\n id\n idMal\n episodes\n chapters\n volumes\n averageScore\n coverImage{\n large\n }\n title {\n userPreferred\n }\n }\n }\n }\n }\n "; anilist && (query = "\n query ($page: Int, $userName: String, $type: MediaType, $status: MediaListStatus, $sort: [MediaListSort]) {\n Page (page: $page, perPage: 100) {\n pageInfo {\n hasNextPage\n }\n mediaList (status: $status, type: $type, userName: $userName, sort: $sort) {\n progress\n media {\n id\n idMal\n }\n }\n }\n }\n "); var variables = { page: offset, userName: username, type: localListType.toUpperCase(), status: _helper__WEBPACK_IMPORTED_MODULE_0__.d(parseInt(status.toString()), parseInt(status.toString())), sort: "UPDATED_TIME_DESC" }; 1 !== status && (variables.sort = null), api.request.xhr("POST", { url: "https://graphql.anilist.co", headers: { Authorization: "Bearer " + _helper__WEBPACK_IMPORTED_MODULE_0__.a(), "Content-Type": "application/json", Accept: "application/json" }, data: JSON.stringify({ query: query, variables: variables }) }).then(response => { var res = JSON.parse(response.responseText); con.log(res), _helper__WEBPACK_IMPORTED_MODULE_0__.c(res); var data = res.data.Page.mediaList; if (data = anilist ? function(data, listType) { for (var newData = [], i = 0; i < data.length; i++) { var el = data[i]; newData.push({ malid: el.media.idMal, id: el.media.id, watchedEp: el.progress }); } return newData; }(data) : function(data, listType) { for (var newData = [], i = 0; i < data.length; i++) { var el = data[i]; if ("anime" === listType) var tempData = { id: el.media.idMal, type: listType, title: el.media.title.userPreferred, url: "https://myanimelist.net/" + listType + "/" + el.media.idMal + "/" + el.media.title.userPreferred, watchedEp: el.progress, totalEp: el.media.episodes, image: el.media.coverImage.large, tags: el.notes, airingState: el.anime_airing_status }; else var tempData = { id: el.media.idMal, type: listType, title: el.media.title.userPreferred, url: "https://myanimelist.net/" + listType + "/" + el.media.idMal + "/" + el.media.title.userPreferred, watchedEp: el.progress, totalEp: el.media.chapters, image: el.media.coverImage.large, tags: el.notes, airingState: el.anime_airing_status }; null == tempData.totalEp && (tempData.totalEp = 0), newData.push(tempData); } return newData; }(data, localListType), void 0 !== callbacks.singleCallback) { data.length || callbacks.singleCallback(!1, 0, 0); for (var i = 0; i < data.length; i++) callbacks.singleCallback(data[i], i + offset + 1, data.length + offset); } void 0 !== callbacks.fullListCallback && (templist = templist.concat(data)), res.data.Page.pageInfo.hasNextPage ? void 0 !== callbacks.continueCall ? callbacks.continueCall(function() { userList(status, localListType, callbacks, username, offset + 1, templist); }) : userList(status, localListType, callbacks, username, offset + 1, templist) : (void 0 !== callbacks.fullListCallback && callbacks.fullListCallback(templist), void 0 !== callbacks.finishCallback && callbacks.finishCallback()); }); } }).call(this, __webpack_require__(1), __webpack_require__(2), __webpack_require__(0)); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; var render = function() { var _h = this.$createElement, _c = this._self._c || _h; return _c("div", [ _c("div", { staticClass: "icon material-icons", staticStyle: { "font-size": "16px", "line-height": "0", color: "#7f7f7f", "padding-bottom": "20px", "padding-left": "3px" }, style: this.tagStyle, attrs: { id: this.id } }, [ this._v("\n contact_support\n ") ]), this._v(" "), _c("div", { staticClass: "mdl-tooltip mdl-tooltip--large", class: this.directionClass, attrs: { for: this.id } }, [ this._t("default") ], 2) ]); }; render._withStripped = !0; var components_tooltipvue_type_script_lang_js_ = { data: function() { return { number: Math.floor(1e3 * Math.random() + 1) }; }, props: { direction: { type: String, default: "top" }, tagStyle: { type: String, default: "" } }, computed: { id: function() { return "tt-" + this.number; }, directionClass: function() { return "mdl-tooltip--" + this.direction; } } }, componentNormalizer = __webpack_require__(4), component = Object(componentNormalizer.a)(components_tooltipvue_type_script_lang_js_, render, [], !1, null, null, null); component.options.__file = "src/minimal/minimalApp/components/tooltip.vue"; __webpack_exports__.a = component.exports; }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; var render = function() { var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h; return _c("div", [ _c("div", { directives: [ { name: "show", rawName: "v-show", value: _vm.loading, expression: "loading" } ], staticClass: "mdl-progress mdl-js-progress mdl-progress__indeterminate", staticStyle: { width: "100%", position: "absolute" }, attrs: { id: "loadMalSearchPop" } }), _vm._v(" "), _vm._t("default"), _vm._v(" "), _c("div", { staticClass: "mdl-grid" }, [ _vm.loading || _vm.items.length ? _vm._e() : _c("span", { staticClass: "mdl-chip", staticStyle: { margin: "auto", "margin-top": "16px", display: "table" } }, [ _c("span", { staticClass: "mdl-chip__text" }, [ _vm._v("No Entries") ]) ]), _vm._v(" "), _vm._l(_vm.items, function(item) { return _c("a", { key: item.id, staticClass: "mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-shadow--2dp mdl-grid searchItem", staticStyle: { cursor: "pointer" }, attrs: { href: item.url } }, [ _c("img", { staticStyle: { margin: "-8px 0px -8px -8px", height: "100px", width: "64px", "background-color": "grey" }, attrs: { src: item.image_url } }), _vm._v(" "), _c("div", { staticClass: "mdl-cell", staticStyle: { "flex-grow": "100", cursor: "pointer", "margin-top": "0", "margin-bottom": "0" } }, [ _c("span", { staticStyle: { "font-size": "20px", "font-weight": "400", "line-height": "1" } }, [ _vm._v(_vm._s(item.name)) ]), _vm._v(" "), _c("p", { staticStyle: { "margin-bottom": "0", "line-height": "20px", "padding-top": "3px" } }, [ _vm._v("Type: " + _vm._s(item.payload.media_type)) ]), _vm._v(" "), _c("p", { staticStyle: { "margin-bottom": "0", "line-height": "20px" } }, [ _vm._v("Score: " + _vm._s(item.payload.score)) ]), _vm._v(" "), _c("p", { staticStyle: { "margin-bottom": "0", "line-height": "20px" } }, [ _vm._v("Year: " + _vm._s(item.payload.start_year)) ]) ]) ]); }) ], 2) ], 2); }; render._withStripped = !0; var minimalApp_searchvue_type_script_lang_js_ = __webpack_require__(16).a, componentNormalizer = __webpack_require__(4), component = Object(componentNormalizer.a)(minimalApp_searchvue_type_script_lang_js_, render, [], !1, null, null, null); component.options.__file = "src/minimal/minimalApp/search.vue"; __webpack_exports__.a = component.exports; }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; var render = function() { var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h; return _c("div", { staticClass: "mdl-cell mdl-cell--2-col mdl-cell--4-col-tablet mdl-cell--6-col-phone mdl-shadow--2dp mdl-grid bookEntry", staticStyle: { position: "relative", height: "293px", padding: "0", width: "210px" }, attrs: { title: _vm.prediction && _vm.prediction.text } }, [ _c("div", { staticClass: "data title", staticStyle: { "background-color": "#cdcdcd", width: "100%", position: "relative", "padding-top": "5px" } }, [ _c("div", { staticStyle: { position: "absolute", top: "0", left: "0", right: "0", bottom: "0", overflow: "hidden" } }, [ _c("clazy-load", { staticStyle: { position: "absolute", top: "0", left: "0", right: "0", bottom: "0", overflow: "hidden" }, attrs: { src: _vm.imageHi, margin: "200px 0px", threshold: .1, ratio: .1 } }, [ _c("img", { attrs: { src: _vm.imageHi, width: "100%" } }) ]) ], 1), _vm._v(" "), _vm.prediction && _vm.prediction.text ? _c("div", { staticClass: "mdl-shadow--2dp", staticStyle: { position: "absolute", top: "0", right: "0", "background-color": "rgba(255, 255, 255, 0.9)", padding: "0px 5px", margin: "5px 0", "text-align": "center" } }, [ _vm._v("\n " + _vm._s(_vm.preTexter) + "\n ") ]) : _vm._e(), _vm._v(" "), _c("a", { staticStyle: { position: "absolute", top: "0", left: "0", right: "0", bottom: "0" }, attrs: { href: _vm.item.url } }), _vm._v(" "), _c("span", { staticClass: "mdl-shadow--2dp", staticStyle: { position: "absolute", bottom: "0", display: "inline-flex", "background-color": "rgba(255, 255, 255, 0.9)", "padding-top": "5px", "align-items": "center", "justify-content": "space-between", left: "0", right: "0", "padding-right": "8px", "padding-left": "8px", "padding-bottom": "8px" } }, [ _c("a", { staticStyle: { color: "black", "text-decoration": "none" }, attrs: { href: _vm.item.url } }, [ _vm._v("\n " + _vm._s(_vm.item.title) + "\n ") ]), _vm._v(" "), _c("div", { staticClass: "mdl-progress", staticStyle: { position: "absolute", top: "-4px", left: "0" }, attrs: { id: "p1" } }, [ _c("div", { staticClass: "progressbar bar bar1", style: _vm.progress }), _vm._v(" "), _vm.hasTotalEp ? _c("div", { staticClass: "bufferbar bar bar2", staticStyle: { width: "calc(100% + 1px)" } }) : _vm._e(), _vm._v(" "), _vm.prediction && _vm.prediction.tagEpisode ? _c("div", { staticClass: "predictionbar bar kal-ep-pre", style: _vm.predictionBar }) : _vm._e(), _vm._v(" "), _c("div", { staticClass: "auxbar bar bar3", staticStyle: { width: "0%" } }) ]), _vm._v(" "), _c("div", { staticClass: "data progress mdl-chip mdl-chip--contact mdl-color--indigo-100", staticStyle: { float: "right", "line-height": "20px", height: "20px", "padding-right": "4px", "margin-left": "5px" } }, [ _c("div", { staticClass: "link mdl-chip__contact mdl-color--primary mdl-color-text--white", staticStyle: { "line-height": "20px", height: "20px", "margin-right": "0" } }, [ _vm._v(_vm._s(_vm.item.watchedEp)) ]), _vm._v(" "), _vm.streamUrl ? _c("a", { staticClass: "mal-sync-stream", staticStyle: { margin: "0 5px" }, attrs: { title: _vm.streamUrl.split("/")[2], target: "_blank", href: _vm.streamUrl } }, [ _c("img", { attrs: { src: _vm.favicon(_vm.streamUrl.split("/")[2]) } }) ]) : _vm._e(), _vm._v(" "), _vm.continueUrl ? _c("a", { staticClass: "nextStream", staticStyle: { margin: "0 5px 0 0", color: "#BABABA" }, attrs: { title: "Continue watching", target: "_blank", href: _vm.continueUrl } }, [ _c("img", { attrs: { src: _vm.assetUrl("double-arrow-16px.png"), width: "16", height: "16" } }) ]) : _vm._e(), _vm._v(" "), _vm.resumeUrl ? _c("a", { staticClass: "resumeStream", staticStyle: { margin: "0 5px 0 0", color: "#BABABA" }, attrs: { title: "Resume watching", target: "_blank", href: _vm.resumeUrl } }, [ _c("img", { attrs: { src: _vm.assetUrl("arrow-16px.png"), width: "16", height: "16" } }) ]) : _vm._e() ]) ]) ]) ]); }; render._withStripped = !0; var minimalApp_bookmarksItemvue_type_script_lang_js_ = __webpack_require__(17).a, componentNormalizer = __webpack_require__(4), component = Object(componentNormalizer.a)(minimalApp_bookmarksItemvue_type_script_lang_js_, render, [], !1, null, null, null); component.options.__file = "src/minimal/minimalApp/bookmarksItem.vue"; __webpack_exports__.a = component.exports; }, function(module, exports) { var g; g = function() { return this; }(); try { g = g || Function("return this")() || (0, eval)("this"); } catch (e) { "object" == typeof window && (g = window); } module.exports = g; }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(global, setImmediate) { var emptyObject = Object.freeze({}); function isUndef(v) { return null == v; } function isDef(v) { return null != v; } function isTrue(v) { return !0 === v; } function isPrimitive(value) { return "string" == typeof value || "number" == typeof value || "symbol" == typeof value || "boolean" == typeof value; } function isObject(obj) { return null !== obj && "object" == typeof obj; } var _toString = Object.prototype.toString; function isPlainObject(obj) { return "[object Object]" === _toString.call(obj); } function isRegExp(v) { return "[object RegExp]" === _toString.call(v); } function isValidArrayIndex(val) { var n = parseFloat(String(val)); return n >= 0 && Math.floor(n) === n && isFinite(val); } function isPromise(val) { return isDef(val) && "function" == typeof val.then && "function" == typeof val.catch; } function toString(val) { return null == val ? "" : Array.isArray(val) || isPlainObject(val) && val.toString === _toString ? JSON.stringify(val, null, 2) : String(val); } function toNumber(val) { var n = parseFloat(val); return isNaN(n) ? val : n; } function makeMap(str, expectsLowerCase) { for (var map = Object.create(null), list = str.split(","), i = 0; i < list.length; i++) map[list[i]] = !0; return expectsLowerCase ? function(val) { return map[val.toLowerCase()]; } : function(val) { return map[val]; }; } makeMap("slot,component", !0); var isReservedAttribute = makeMap("key,ref,slot,slot-scope,is"); function remove(arr, item) { if (arr.length) { var index = arr.indexOf(item); if (index > -1) return arr.splice(index, 1); } } var hasOwnProperty = Object.prototype.hasOwnProperty; function hasOwn(obj, key) { return hasOwnProperty.call(obj, key); } function cached(fn) { var cache = Object.create(null); return function(str) { return cache[str] || (cache[str] = fn(str)); }; } var camelizeRE = /-(\w)/g, camelize = cached(function(str) { return str.replace(camelizeRE, function(_, c) { return c ? c.toUpperCase() : ""; }); }), capitalize = cached(function(str) { return str.charAt(0).toUpperCase() + str.slice(1); }), hyphenateRE = /\B([A-Z])/g, hyphenate = cached(function(str) { return str.replace(hyphenateRE, "-$1").toLowerCase(); }); var bind = Function.prototype.bind ? function(fn, ctx) { return fn.bind(ctx); } : function(fn, ctx) { function boundFn(a) { var l = arguments.length; return l ? l > 1 ? fn.apply(ctx, arguments) : fn.call(ctx, a) : fn.call(ctx); } return boundFn._length = fn.length, boundFn; }; function toArray(list, start) { start = start || 0; for (var i = list.length - start, ret = new Array(i); i--; ) ret[i] = list[i + start]; return ret; } function extend(to, _from) { for (var key in _from) to[key] = _from[key]; return to; } function toObject(arr) { for (var res = {}, i = 0; i < arr.length; i++) arr[i] && extend(res, arr[i]); return res; } function noop(a, b, c) {} var no = function(a, b, c) { return !1; }, identity = function(_) { return _; }; function looseEqual(a, b) { if (a === b) return !0; var isObjectA = isObject(a), isObjectB = isObject(b); if (!isObjectA || !isObjectB) return !isObjectA && !isObjectB && String(a) === String(b); try { var isArrayA = Array.isArray(a), isArrayB = Array.isArray(b); if (isArrayA && isArrayB) return a.length === b.length && a.every(function(e, i) { return looseEqual(e, b[i]); }); if (a instanceof Date && b instanceof Date) return a.getTime() === b.getTime(); if (isArrayA || isArrayB) return !1; var keysA = Object.keys(a), keysB = Object.keys(b); return keysA.length === keysB.length && keysA.every(function(key) { return looseEqual(a[key], b[key]); }); } catch (e) { return !1; } } function looseIndexOf(arr, val) { for (var i = 0; i < arr.length; i++) if (looseEqual(arr[i], val)) return i; return -1; } function once(fn) { var called = !1; return function() { called || (called = !0, fn.apply(this, arguments)); }; } var SSR_ATTR = "data-server-rendered", ASSET_TYPES = [ "component", "directive", "filter" ], LIFECYCLE_HOOKS = [ "beforeCreate", "created", "beforeMount", "mounted", "beforeUpdate", "updated", "beforeDestroy", "destroyed", "activated", "deactivated", "errorCaptured", "serverPrefetch" ], config = { optionMergeStrategies: Object.create(null), silent: !1, productionTip: !1, devtools: !1, performance: !1, errorHandler: null, warnHandler: null, ignoredElements: [], keyCodes: Object.create(null), isReservedTag: no, isReservedAttr: no, isUnknownElement: no, getTagNamespace: noop, parsePlatformTagName: identity, mustUseProp: no, async: !0, _lifecycleHooks: LIFECYCLE_HOOKS }, unicodeLetters = "a-zA-Z·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"; function def(obj, key, val, enumerable) { Object.defineProperty(obj, key, { value: val, enumerable: !!enumerable, writable: !0, configurable: !0 }); } var bailRE = new RegExp("[^" + unicodeLetters + ".$_\\d]"); var _isServer, hasProto = "__proto__" in {}, inBrowser = "undefined" != typeof window, inWeex = "undefined" != typeof WXEnvironment && !!WXEnvironment.platform, weexPlatform = inWeex && WXEnvironment.platform.toLowerCase(), UA = inBrowser && window.navigator.userAgent.toLowerCase(), isIE = UA && /msie|trident/.test(UA), isIE9 = UA && UA.indexOf("msie 9.0") > 0, isEdge = UA && UA.indexOf("edge/") > 0, isIOS = (UA && UA.indexOf("android"), UA && /iphone|ipad|ipod|ios/.test(UA) || "ios" === weexPlatform), isFF = (UA && /chrome\/\d+/.test(UA), UA && /phantomjs/.test(UA), UA && UA.match(/firefox\/(\d+)/)), nativeWatch = {}.watch, supportsPassive = !1; if (inBrowser) try { var opts = {}; Object.defineProperty(opts, "passive", { get: function() { supportsPassive = !0; } }), window.addEventListener("test-passive", null, opts); } catch (e) {} var isServerRendering = function() { return void 0 === _isServer && (_isServer = !inBrowser && !inWeex && void 0 !== global && (global.process && "server" === global.process.env.VUE_ENV)), _isServer; }, devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__; function isNative(Ctor) { return "function" == typeof Ctor && /native code/.test(Ctor.toString()); } var _Set, hasSymbol = "undefined" != typeof Symbol && isNative(Symbol) && "undefined" != typeof Reflect && isNative(Reflect.ownKeys); _Set = "undefined" != typeof Set && isNative(Set) ? Set : function() { function Set() { this.set = Object.create(null); } return Set.prototype.has = function(key) { return !0 === this.set[key]; }, Set.prototype.add = function(key) { this.set[key] = !0; }, Set.prototype.clear = function() { this.set = Object.create(null); }, Set; }(); var warn = noop, uid = 0, Dep = function() { this.id = uid++, this.subs = []; }; Dep.prototype.addSub = function(sub) { this.subs.push(sub); }, Dep.prototype.removeSub = function(sub) { remove(this.subs, sub); }, Dep.prototype.depend = function() { Dep.target && Dep.target.addDep(this); }, Dep.prototype.notify = function() { var subs = this.subs.slice(); for (var i = 0, l = subs.length; i < l; i++) subs[i].update(); }, Dep.target = null; var targetStack = []; function pushTarget(target) { targetStack.push(target), Dep.target = target; } function popTarget() { targetStack.pop(), Dep.target = targetStack[targetStack.length - 1]; } var VNode = function(tag, data, children, text, elm, context, componentOptions, asyncFactory) { this.tag = tag, this.data = data, this.children = children, this.text = text, this.elm = elm, this.ns = void 0, this.context = context, this.fnContext = void 0, this.fnOptions = void 0, this.fnScopeId = void 0, this.key = data && data.key, this.componentOptions = componentOptions, this.componentInstance = void 0, this.parent = void 0, this.raw = !1, this.isStatic = !1, this.isRootInsert = !0, this.isComment = !1, this.isCloned = !1, this.isOnce = !1, this.asyncFactory = asyncFactory, this.asyncMeta = void 0, this.isAsyncPlaceholder = !1; }, prototypeAccessors = { child: { configurable: !0 } }; prototypeAccessors.child.get = function() { return this.componentInstance; }, Object.defineProperties(VNode.prototype, prototypeAccessors); var createEmptyVNode = function(text) { void 0 === text && (text = ""); var node = new VNode(); return node.text = text, node.isComment = !0, node; }; function createTextVNode(val) { return new VNode(void 0, void 0, void 0, String(val)); } function cloneVNode(vnode) { var cloned = new VNode(vnode.tag, vnode.data, vnode.children && vnode.children.slice(), vnode.text, vnode.elm, vnode.context, vnode.componentOptions, vnode.asyncFactory); return cloned.ns = vnode.ns, cloned.isStatic = vnode.isStatic, cloned.key = vnode.key, cloned.isComment = vnode.isComment, cloned.fnContext = vnode.fnContext, cloned.fnOptions = vnode.fnOptions, cloned.fnScopeId = vnode.fnScopeId, cloned.asyncMeta = vnode.asyncMeta, cloned.isCloned = !0, cloned; } var arrayProto = Array.prototype, arrayMethods = Object.create(arrayProto); [ "push", "pop", "shift", "unshift", "splice", "sort", "reverse" ].forEach(function(method) { var original = arrayProto[method]; def(arrayMethods, method, function() { for (var args = [], len = arguments.length; len--; ) args[len] = arguments[len]; var inserted, result = original.apply(this, args), ob = this.__ob__; switch (method) { case "push": case "unshift": inserted = args; break; case "splice": inserted = args.slice(2); } return inserted && ob.observeArray(inserted), ob.dep.notify(), result; }); }); var arrayKeys = Object.getOwnPropertyNames(arrayMethods), shouldObserve = !0; function toggleObserving(value) { shouldObserve = value; } var Observer = function(value) { var src; this.value = value, this.dep = new Dep(), this.vmCount = 0, def(value, "__ob__", this), Array.isArray(value) ? (hasProto ? (src = arrayMethods, value.__proto__ = src) : function(target, src, keys) { for (var i = 0, l = keys.length; i < l; i++) { var key = keys[i]; def(target, key, src[key]); } }(value, arrayMethods, arrayKeys), this.observeArray(value)) : this.walk(value); }; function observe(value, asRootData) { var ob; if (isObject(value) && !(value instanceof VNode)) return hasOwn(value, "__ob__") && value.__ob__ instanceof Observer ? ob = value.__ob__ : shouldObserve && !isServerRendering() && (Array.isArray(value) || isPlainObject(value)) && Object.isExtensible(value) && !value._isVue && (ob = new Observer(value)), asRootData && ob && ob.vmCount++, ob; } function defineReactive$$1(obj, key, val, customSetter, shallow) { var dep = new Dep(), property = Object.getOwnPropertyDescriptor(obj, key); if (!property || !1 !== property.configurable) { var getter = property && property.get, setter = property && property.set; getter && !setter || 2 !== arguments.length || (val = obj[key]); var childOb = !shallow && observe(val); Object.defineProperty(obj, key, { enumerable: !0, configurable: !0, get: function() { var value = getter ? getter.call(obj) : val; return Dep.target && (dep.depend(), childOb && (childOb.dep.depend(), Array.isArray(value) && function dependArray(value) { for (var e = void 0, i = 0, l = value.length; i < l; i++) (e = value[i]) && e.__ob__ && e.__ob__.dep.depend(), Array.isArray(e) && dependArray(e); }(value))), value; }, set: function(newVal) { var value = getter ? getter.call(obj) : val; newVal === value || newVal != newVal && value != value || getter && !setter || (setter ? setter.call(obj, newVal) : val = newVal, childOb = !shallow && observe(newVal), dep.notify()); } }); } } function set(target, key, val) { if (Array.isArray(target) && isValidArrayIndex(key)) return target.length = Math.max(target.length, key), target.splice(key, 1, val), val; if (key in target && !(key in Object.prototype)) return target[key] = val, val; var ob = target.__ob__; return target._isVue || ob && ob.vmCount ? val : ob ? (defineReactive$$1(ob.value, key, val), ob.dep.notify(), val) : (target[key] = val, val); } function del(target, key) { if (Array.isArray(target) && isValidArrayIndex(key)) target.splice(key, 1); else { var ob = target.__ob__; target._isVue || ob && ob.vmCount || hasOwn(target, key) && (delete target[key], ob && ob.dep.notify()); } } Observer.prototype.walk = function(obj) { for (var keys = Object.keys(obj), i = 0; i < keys.length; i++) defineReactive$$1(obj, keys[i]); }, Observer.prototype.observeArray = function(items) { for (var i = 0, l = items.length; i < l; i++) observe(items[i]); }; var strats = config.optionMergeStrategies; function mergeData(to, from) { if (!from) return to; for (var key, toVal, fromVal, keys = hasSymbol ? Reflect.ownKeys(from) : Object.keys(from), i = 0; i < keys.length; i++) "__ob__" !== (key = keys[i]) && (toVal = to[key], fromVal = from[key], hasOwn(to, key) ? toVal !== fromVal && isPlainObject(toVal) && isPlainObject(fromVal) && mergeData(toVal, fromVal) : set(to, key, fromVal)); return to; } function mergeDataOrFn(parentVal, childVal, vm) { return vm ? function() { var instanceData = "function" == typeof childVal ? childVal.call(vm, vm) : childVal, defaultData = "function" == typeof parentVal ? parentVal.call(vm, vm) : parentVal; return instanceData ? mergeData(instanceData, defaultData) : defaultData; } : childVal ? parentVal ? function() { return mergeData("function" == typeof childVal ? childVal.call(this, this) : childVal, "function" == typeof parentVal ? parentVal.call(this, this) : parentVal); } : childVal : parentVal; } function mergeHook(parentVal, childVal) { var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [ childVal ] : parentVal; return res ? function(hooks) { for (var res = [], i = 0; i < hooks.length; i++) -1 === res.indexOf(hooks[i]) && res.push(hooks[i]); return res; }(res) : res; } function mergeAssets(parentVal, childVal, vm, key) { var res = Object.create(parentVal || null); return childVal ? extend(res, childVal) : res; } strats.data = function(parentVal, childVal, vm) { return vm ? mergeDataOrFn(parentVal, childVal, vm) : childVal && "function" != typeof childVal ? parentVal : mergeDataOrFn(parentVal, childVal); }, LIFECYCLE_HOOKS.forEach(function(hook) { strats[hook] = mergeHook; }), ASSET_TYPES.forEach(function(type) { strats[type + "s"] = mergeAssets; }), strats.watch = function(parentVal, childVal, vm, key) { if (parentVal === nativeWatch && (parentVal = void 0), childVal === nativeWatch && (childVal = void 0), !childVal) return Object.create(parentVal || null); if (!parentVal) return childVal; var ret = {}; for (var key$1 in extend(ret, parentVal), childVal) { var parent = ret[key$1], child = childVal[key$1]; parent && !Array.isArray(parent) && (parent = [ parent ]), ret[key$1] = parent ? parent.concat(child) : Array.isArray(child) ? child : [ child ]; } return ret; }, strats.props = strats.methods = strats.inject = strats.computed = function(parentVal, childVal, vm, key) { if (!parentVal) return childVal; var ret = Object.create(null); return extend(ret, parentVal), childVal && extend(ret, childVal), ret; }, strats.provide = mergeDataOrFn; var defaultStrat = function(parentVal, childVal) { return void 0 === childVal ? parentVal : childVal; }; function mergeOptions(parent, child, vm) { if ("function" == typeof child && (child = child.options), function(options, vm) { var props = options.props; if (props) { var i, val, res = {}; if (Array.isArray(props)) for (i = props.length; i--; ) "string" == typeof (val = props[i]) && (res[camelize(val)] = { type: null }); else if (isPlainObject(props)) for (var key in props) val = props[key], res[camelize(key)] = isPlainObject(val) ? val : { type: val }; options.props = res; } }(child), function(options, vm) { var inject = options.inject; if (inject) { var normalized = options.inject = {}; if (Array.isArray(inject)) for (var i = 0; i < inject.length; i++) normalized[inject[i]] = { from: inject[i] }; else if (isPlainObject(inject)) for (var key in inject) { var val = inject[key]; normalized[key] = isPlainObject(val) ? extend({ from: key }, val) : { from: val }; } } }(child), function(options) { var dirs = options.directives; if (dirs) for (var key in dirs) { var def$$1 = dirs[key]; "function" == typeof def$$1 && (dirs[key] = { bind: def$$1, update: def$$1 }); } }(child), !child._base && (child.extends && (parent = mergeOptions(parent, child.extends, vm)), child.mixins)) for (var i = 0, l = child.mixins.length; i < l; i++) parent = mergeOptions(parent, child.mixins[i], vm); var key, options = {}; for (key in parent) mergeField(key); for (key in child) hasOwn(parent, key) || mergeField(key); function mergeField(key) { var strat = strats[key] || defaultStrat; options[key] = strat(parent[key], child[key], vm, key); } return options; } function resolveAsset(options, type, id, warnMissing) { if ("string" == typeof id) { var assets = options[type]; if (hasOwn(assets, id)) return assets[id]; var camelizedId = camelize(id); if (hasOwn(assets, camelizedId)) return assets[camelizedId]; var PascalCaseId = capitalize(camelizedId); return hasOwn(assets, PascalCaseId) ? assets[PascalCaseId] : assets[id] || assets[camelizedId] || assets[PascalCaseId]; } } function validateProp(key, propOptions, propsData, vm) { var prop = propOptions[key], absent = !hasOwn(propsData, key), value = propsData[key], booleanIndex = getTypeIndex(Boolean, prop.type); if (booleanIndex > -1) if (absent && !hasOwn(prop, "default")) value = !1; else if ("" === value || value === hyphenate(key)) { var stringIndex = getTypeIndex(String, prop.type); (stringIndex < 0 || booleanIndex < stringIndex) && (value = !0); } if (void 0 === value) { value = function(vm, prop, key) { if (!hasOwn(prop, "default")) return; var def = prop.default; 0; if (vm && vm.$options.propsData && void 0 === vm.$options.propsData[key] && void 0 !== vm._props[key]) return vm._props[key]; return "function" == typeof def && "Function" !== getType(prop.type) ? def.call(vm) : def; }(vm, prop, key); var prevShouldObserve = shouldObserve; toggleObserving(!0), observe(value), toggleObserving(prevShouldObserve); } return value; } function getType(fn) { var match = fn && fn.toString().match(/^\s*function (\w+)/); return match ? match[1] : ""; } function isSameType(a, b) { return getType(a) === getType(b); } function getTypeIndex(type, expectedTypes) { if (!Array.isArray(expectedTypes)) return isSameType(expectedTypes, type) ? 0 : -1; for (var i = 0, len = expectedTypes.length; i < len; i++) if (isSameType(expectedTypes[i], type)) return i; return -1; } function handleError(err, vm, info) { if (vm) for (var cur = vm; cur = cur.$parent; ) { var hooks = cur.$options.errorCaptured; if (hooks) for (var i = 0; i < hooks.length; i++) try { if (!1 === hooks[i].call(cur, err, vm, info)) return; } catch (e) { globalHandleError(e, cur, "errorCaptured hook"); } } globalHandleError(err, vm, info); } function invokeWithErrorHandling(handler, context, args, vm, info) { var res; try { (res = args ? handler.apply(context, args) : handler.call(context)) && !res._isVue && isPromise(res) && res.catch(function(e) { return handleError(e, vm, info + " (Promise/async)"); }); } catch (e) { handleError(e, vm, info); } return res; } function globalHandleError(err, vm, info) { if (config.errorHandler) try { return config.errorHandler.call(null, err, vm, info); } catch (e) { logError(e, null, "config.errorHandler"); } logError(err, vm, info); } function logError(err, vm, info) { if (!inBrowser && !inWeex || "undefined" == typeof console) throw err; console.error(err); } var timerFunc, isUsingMicroTask = !1, callbacks = [], pending = !1; function flushCallbacks() { pending = !1; var copies = callbacks.slice(0); callbacks.length = 0; for (var i = 0; i < copies.length; i++) copies[i](); } if ("undefined" != typeof Promise && isNative(Promise)) { var p = Promise.resolve(); timerFunc = function() { p.then(flushCallbacks), isIOS && setTimeout(noop); }, isUsingMicroTask = !0; } else if (isIE || "undefined" == typeof MutationObserver || !isNative(MutationObserver) && "[object MutationObserverConstructor]" !== MutationObserver.toString()) timerFunc = void 0 !== setImmediate && isNative(setImmediate) ? function() { setImmediate(flushCallbacks); } : function() { setTimeout(flushCallbacks, 0); }; else { var counter = 1, observer = new MutationObserver(flushCallbacks), textNode = document.createTextNode(String(counter)); observer.observe(textNode, { characterData: !0 }), timerFunc = function() { counter = (counter + 1) % 2, textNode.data = String(counter); }, isUsingMicroTask = !0; } function nextTick(cb, ctx) { var _resolve; if (callbacks.push(function() { if (cb) try { cb.call(ctx); } catch (e) { handleError(e, ctx, "nextTick"); } else _resolve && _resolve(ctx); }), pending || (pending = !0, timerFunc()), !cb && "undefined" != typeof Promise) return new Promise(function(resolve) { _resolve = resolve; }); } var seenObjects = new _Set(); function traverse(val) { !function _traverse(val, seen) { var i, keys; var isA = Array.isArray(val); if (!isA && !isObject(val) || Object.isFrozen(val) || val instanceof VNode) return; if (val.__ob__) { var depId = val.__ob__.dep.id; if (seen.has(depId)) return; seen.add(depId); } if (isA) for (i = val.length; i--; ) _traverse(val[i], seen); else for (keys = Object.keys(val), i = keys.length; i--; ) _traverse(val[keys[i]], seen); }(val, seenObjects), seenObjects.clear(); } var normalizeEvent = cached(function(name) { var passive = "&" === name.charAt(0), once$$1 = "~" === (name = passive ? name.slice(1) : name).charAt(0), capture = "!" === (name = once$$1 ? name.slice(1) : name).charAt(0); return { name: name = capture ? name.slice(1) : name, once: once$$1, capture: capture, passive: passive }; }); function createFnInvoker(fns, vm) { function invoker() { var arguments$1 = arguments, fns = invoker.fns; if (!Array.isArray(fns)) return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler"); for (var cloned = fns.slice(), i = 0; i < cloned.length; i++) invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler"); } return invoker.fns = fns, invoker; } function updateListeners(on, oldOn, add, remove$$1, createOnceHandler, vm) { var name, cur, old, event; for (name in on) cur = on[name], old = oldOn[name], event = normalizeEvent(name), isUndef(cur) || (isUndef(old) ? (isUndef(cur.fns) && (cur = on[name] = createFnInvoker(cur, vm)), isTrue(event.once) && (cur = on[name] = createOnceHandler(event.name, cur, event.capture)), add(event.name, cur, event.capture, event.passive, event.params)) : cur !== old && (old.fns = cur, on[name] = old)); for (name in oldOn) isUndef(on[name]) && remove$$1((event = normalizeEvent(name)).name, oldOn[name], event.capture); } function mergeVNodeHook(def, hookKey, hook) { var invoker; def instanceof VNode && (def = def.data.hook || (def.data.hook = {})); var oldHook = def[hookKey]; function wrappedHook() { hook.apply(this, arguments), remove(invoker.fns, wrappedHook); } isUndef(oldHook) ? invoker = createFnInvoker([ wrappedHook ]) : isDef(oldHook.fns) && isTrue(oldHook.merged) ? (invoker = oldHook).fns.push(wrappedHook) : invoker = createFnInvoker([ oldHook, wrappedHook ]), invoker.merged = !0, def[hookKey] = invoker; } function checkProp(res, hash, key, altKey, preserve) { if (isDef(hash)) { if (hasOwn(hash, key)) return res[key] = hash[key], preserve || delete hash[key], !0; if (hasOwn(hash, altKey)) return res[key] = hash[altKey], preserve || delete hash[altKey], !0; } return !1; } function normalizeChildren(children) { return isPrimitive(children) ? [ createTextVNode(children) ] : Array.isArray(children) ? function normalizeArrayChildren(children, nestedIndex) { var res = []; var i, c, lastIndex, last; for (i = 0; i < children.length; i++) isUndef(c = children[i]) || "boolean" == typeof c || (lastIndex = res.length - 1, last = res[lastIndex], Array.isArray(c) ? c.length > 0 && (isTextNode((c = normalizeArrayChildren(c, (nestedIndex || "") + "_" + i))[0]) && isTextNode(last) && (res[lastIndex] = createTextVNode(last.text + c[0].text), c.shift()), res.push.apply(res, c)) : isPrimitive(c) ? isTextNode(last) ? res[lastIndex] = createTextVNode(last.text + c) : "" !== c && res.push(createTextVNode(c)) : isTextNode(c) && isTextNode(last) ? res[lastIndex] = createTextVNode(last.text + c.text) : (isTrue(children._isVList) && isDef(c.tag) && isUndef(c.key) && isDef(nestedIndex) && (c.key = "__vlist" + nestedIndex + "_" + i + "__"), res.push(c))); return res; }(children) : void 0; } function isTextNode(node) { return isDef(node) && isDef(node.text) && !1 === node.isComment; } function resolveInject(inject, vm) { if (inject) { for (var result = Object.create(null), keys = hasSymbol ? Reflect.ownKeys(inject) : Object.keys(inject), i = 0; i < keys.length; i++) { var key = keys[i]; if ("__ob__" !== key) { for (var provideKey = inject[key].from, source = vm; source; ) { if (source._provided && hasOwn(source._provided, provideKey)) { result[key] = source._provided[provideKey]; break; } source = source.$parent; } if (!source) if ("default" in inject[key]) { var provideDefault = inject[key].default; result[key] = "function" == typeof provideDefault ? provideDefault.call(vm) : provideDefault; } else 0; } } return result; } } function resolveSlots(children, context) { if (!children || !children.length) return {}; for (var slots = {}, i = 0, l = children.length; i < l; i++) { var child = children[i], data = child.data; if (data && data.attrs && data.attrs.slot && delete data.attrs.slot, child.context !== context && child.fnContext !== context || !data || null == data.slot) (slots.default || (slots.default = [])).push(child); else { var name = data.slot, slot = slots[name] || (slots[name] = []); "template" === child.tag ? slot.push.apply(slot, child.children || []) : slot.push(child); } } for (var name$1 in slots) slots[name$1].every(isWhitespace) && delete slots[name$1]; return slots; } function isWhitespace(node) { return node.isComment && !node.asyncFactory || " " === node.text; } function normalizeScopedSlots(slots, normalSlots) { var res; if (slots) { if (slots._normalized) return slots; for (var key in res = {}, slots) slots[key] && "$" !== key[0] && (res[key] = normalizeScopedSlot(slots[key])); } else res = {}; for (var key$1 in normalSlots) key$1 in res || (res[key$1] = proxyNormalSlot(normalSlots, key$1)); return def(res, "_normalized", !0), def(res, "$stable", !slots || !!slots.$stable), res; } function normalizeScopedSlot(fn) { return function(scope) { var res = fn(scope); return res && "object" == typeof res && !Array.isArray(res) ? [ res ] : normalizeChildren(res); }; } function proxyNormalSlot(slots, key) { return function() { return slots[key]; }; } function renderList(val, render) { var ret, i, l, keys, key; if (Array.isArray(val) || "string" == typeof val) for (ret = new Array(val.length), i = 0, l = val.length; i < l; i++) ret[i] = render(val[i], i); else if ("number" == typeof val) for (ret = new Array(val), i = 0; i < val; i++) ret[i] = render(i + 1, i); else if (isObject(val)) if (hasSymbol && val[Symbol.iterator]) { ret = []; for (var iterator = val[Symbol.iterator](), result = iterator.next(); !result.done; ) ret.push(render(result.value, ret.length)), result = iterator.next(); } else for (keys = Object.keys(val), ret = new Array(keys.length), i = 0, l = keys.length; i < l; i++) key = keys[i], ret[i] = render(val[key], key, i); return isDef(ret) || (ret = []), ret._isVList = !0, ret; } function renderSlot(name, fallback, props, bindObject) { var nodes, scopedSlotFn = this.$scopedSlots[name]; scopedSlotFn ? (props = props || {}, bindObject && (props = extend(extend({}, bindObject), props)), nodes = scopedSlotFn(props) || fallback) : nodes = this.$slots[name] || fallback; var target = props && props.slot; return target ? this.$createElement("template", { slot: target }, nodes) : nodes; } function resolveFilter(id) { return resolveAsset(this.$options, "filters", id) || identity; } function isKeyNotMatch(expect, actual) { return Array.isArray(expect) ? -1 === expect.indexOf(actual) : expect !== actual; } function checkKeyCodes(eventKeyCode, key, builtInKeyCode, eventKeyName, builtInKeyName) { var mappedKeyCode = config.keyCodes[key] || builtInKeyCode; return builtInKeyName && eventKeyName && !config.keyCodes[key] ? isKeyNotMatch(builtInKeyName, eventKeyName) : mappedKeyCode ? isKeyNotMatch(mappedKeyCode, eventKeyCode) : eventKeyName ? hyphenate(eventKeyName) !== key : void 0; } function bindObjectProps(data, tag, value, asProp, isSync) { if (value) if (isObject(value)) { var hash; Array.isArray(value) && (value = toObject(value)); var loop = function(key) { if ("class" === key || "style" === key || isReservedAttribute(key)) hash = data; else { var type = data.attrs && data.attrs.type; hash = asProp || config.mustUseProp(tag, type, key) ? data.domProps || (data.domProps = {}) : data.attrs || (data.attrs = {}); } var camelizedKey = camelize(key); key in hash || camelizedKey in hash || (hash[key] = value[key], isSync && ((data.on || (data.on = {}))["update:" + camelizedKey] = function($event) { value[key] = $event; })); }; for (var key in value) loop(key); } else ; return data; } function renderStatic(index, isInFor) { var cached = this._staticTrees || (this._staticTrees = []), tree = cached[index]; return tree && !isInFor ? tree : (markStatic(tree = cached[index] = this.$options.staticRenderFns[index].call(this._renderProxy, null, this), "__static__" + index, !1), tree); } function markOnce(tree, index, key) { return markStatic(tree, "__once__" + index + (key ? "_" + key : ""), !0), tree; } function markStatic(tree, key, isOnce) { if (Array.isArray(tree)) for (var i = 0; i < tree.length; i++) tree[i] && "string" != typeof tree[i] && markStaticNode(tree[i], key + "_" + i, isOnce); else markStaticNode(tree, key, isOnce); } function markStaticNode(node, key, isOnce) { node.isStatic = !0, node.key = key, node.isOnce = isOnce; } function bindObjectListeners(data, value) { if (value) if (isPlainObject(value)) { var on = data.on = data.on ? extend({}, data.on) : {}; for (var key in value) { var existing = on[key], ours = value[key]; on[key] = existing ? [].concat(existing, ours) : ours; } } else ; return data; } function resolveScopedSlots(fns, hasDynamicKeys, res) { res = res || { $stable: !hasDynamicKeys }; for (var i = 0; i < fns.length; i++) { var slot = fns[i]; Array.isArray(slot) ? resolveScopedSlots(slot, hasDynamicKeys, res) : slot && (res[slot.key] = slot.fn); } return res; } function bindDynamicKeys(baseObj, values) { for (var i = 0; i < values.length; i += 2) { var key = values[i]; "string" == typeof key && key && (baseObj[values[i]] = values[i + 1]); } return baseObj; } function prependModifier(value, symbol) { return "string" == typeof value ? symbol + value : value; } function installRenderHelpers(target) { target._o = markOnce, target._n = toNumber, target._s = toString, target._l = renderList, target._t = renderSlot, target._q = looseEqual, target._i = looseIndexOf, target._m = renderStatic, target._f = resolveFilter, target._k = checkKeyCodes, target._b = bindObjectProps, target._v = createTextVNode, target._e = createEmptyVNode, target._u = resolveScopedSlots, target._g = bindObjectListeners, target._d = bindDynamicKeys, target._p = prependModifier; } function FunctionalRenderContext(data, props, children, parent, Ctor) { var contextVm, options = Ctor.options; hasOwn(parent, "_uid") ? (contextVm = Object.create(parent))._original = parent : (contextVm = parent, parent = parent._original); var isCompiled = isTrue(options._compiled), needNormalization = !isCompiled; this.data = data, this.props = props, this.children = children, this.parent = parent, this.listeners = data.on || emptyObject, this.injections = resolveInject(options.inject, parent), this.slots = function() { return resolveSlots(children, parent); }, Object.defineProperty(this, "scopedSlots", { enumerable: !0, get: function() { return normalizeScopedSlots(data.scopedSlots, this.slots()); } }), isCompiled && (this.$options = options, this.$slots = this.slots(), this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots)), options._scopeId ? this._c = function(a, b, c, d) { var vnode = createElement(contextVm, a, b, c, d, needNormalization); return vnode && !Array.isArray(vnode) && (vnode.fnScopeId = options._scopeId, vnode.fnContext = parent), vnode; } : this._c = function(a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); }; } function cloneAndMarkFunctionalResult(vnode, data, contextVm, options, renderContext) { var clone = cloneVNode(vnode); return clone.fnContext = contextVm, clone.fnOptions = options, data.slot && ((clone.data || (clone.data = {})).slot = data.slot), clone; } function mergeProps(to, from) { for (var key in from) to[camelize(key)] = from[key]; } installRenderHelpers(FunctionalRenderContext.prototype); var componentVNodeHooks = { init: function(vnode, hydrating) { if (vnode.componentInstance && !vnode.componentInstance._isDestroyed && vnode.data.keepAlive) { var mountedNode = vnode; componentVNodeHooks.prepatch(mountedNode, mountedNode); } else { (vnode.componentInstance = function(vnode, parent) { var options = { _isComponent: !0, _parentVnode: vnode, parent: parent }, inlineTemplate = vnode.data.inlineTemplate; isDef(inlineTemplate) && (options.render = inlineTemplate.render, options.staticRenderFns = inlineTemplate.staticRenderFns); return new vnode.componentOptions.Ctor(options); }(vnode, activeInstance)).$mount(hydrating ? vnode.elm : void 0, hydrating); } }, prepatch: function(oldVnode, vnode) { var options = vnode.componentOptions; !function(vm, propsData, listeners, parentVnode, renderChildren) { 0; var hasDynamicScopedSlot = !!(parentVnode.data.scopedSlots && !parentVnode.data.scopedSlots.$stable || vm.$scopedSlots !== emptyObject && !vm.$scopedSlots.$stable), needsForceUpdate = !!(renderChildren || vm.$options._renderChildren || hasDynamicScopedSlot); vm.$options._parentVnode = parentVnode, vm.$vnode = parentVnode, vm._vnode && (vm._vnode.parent = parentVnode); if (vm.$options._renderChildren = renderChildren, vm.$attrs = parentVnode.data.attrs || emptyObject, vm.$listeners = listeners || emptyObject, propsData && vm.$options.props) { toggleObserving(!1); for (var props = vm._props, propKeys = vm.$options._propKeys || [], i = 0; i < propKeys.length; i++) { var key = propKeys[i], propOptions = vm.$options.props; props[key] = validateProp(key, propOptions, propsData, vm); } toggleObserving(!0), vm.$options.propsData = propsData; } listeners = listeners || emptyObject; var oldListeners = vm.$options._parentListeners; vm.$options._parentListeners = listeners, updateComponentListeners(vm, listeners, oldListeners), needsForceUpdate && (vm.$slots = resolveSlots(renderChildren, parentVnode.context), vm.$forceUpdate()); 0; }(vnode.componentInstance = oldVnode.componentInstance, options.propsData, options.listeners, vnode, options.children); }, insert: function(vnode) { var vm, context = vnode.context, componentInstance = vnode.componentInstance; componentInstance._isMounted || (componentInstance._isMounted = !0, callHook(componentInstance, "mounted")), vnode.data.keepAlive && (context._isMounted ? ((vm = componentInstance)._inactive = !1, activatedChildren.push(vm)) : activateChildComponent(componentInstance, !0)); }, destroy: function(vnode) { var componentInstance = vnode.componentInstance; componentInstance._isDestroyed || (vnode.data.keepAlive ? function deactivateChildComponent(vm, direct) { if (direct && (vm._directInactive = !0, isInInactiveTree(vm))) return; if (!vm._inactive) { vm._inactive = !0; for (var i = 0; i < vm.$children.length; i++) deactivateChildComponent(vm.$children[i]); callHook(vm, "deactivated"); } }(componentInstance, !0) : componentInstance.$destroy()); } }, hooksToMerge = Object.keys(componentVNodeHooks); function createComponent(Ctor, data, context, children, tag) { if (!isUndef(Ctor)) { var baseCtor = context.$options._base; if (isObject(Ctor) && (Ctor = baseCtor.extend(Ctor)), "function" == typeof Ctor) { var asyncFactory; if (isUndef(Ctor.cid) && void 0 === (Ctor = function(factory, baseCtor) { if (isTrue(factory.error) && isDef(factory.errorComp)) return factory.errorComp; if (isDef(factory.resolved)) return factory.resolved; if (isTrue(factory.loading) && isDef(factory.loadingComp)) return factory.loadingComp; var owner = currentRenderingInstance; if (!isDef(factory.owners)) { var owners = factory.owners = [ owner ], sync = !0, forceRender = function(renderCompleted) { for (var i = 0, l = owners.length; i < l; i++) owners[i].$forceUpdate(); renderCompleted && (owners.length = 0); }, resolve = once(function(res) { factory.resolved = ensureCtor(res, baseCtor), sync ? owners.length = 0 : forceRender(!0); }), reject = once(function(reason) { isDef(factory.errorComp) && (factory.error = !0, forceRender(!0)); }), res = factory(resolve, reject); return isObject(res) && (isPromise(res) ? isUndef(factory.resolved) && res.then(resolve, reject) : isPromise(res.component) && (res.component.then(resolve, reject), isDef(res.error) && (factory.errorComp = ensureCtor(res.error, baseCtor)), isDef(res.loading) && (factory.loadingComp = ensureCtor(res.loading, baseCtor), 0 === res.delay ? factory.loading = !0 : setTimeout(function() { isUndef(factory.resolved) && isUndef(factory.error) && (factory.loading = !0, forceRender(!1)); }, res.delay || 200)), isDef(res.timeout) && setTimeout(function() { isUndef(factory.resolved) && reject(null); }, res.timeout))), sync = !1, factory.loading ? factory.loadingComp : factory.resolved; } factory.owners.push(owner); }(asyncFactory = Ctor, baseCtor))) return function(factory, data, context, children, tag) { var node = createEmptyVNode(); return node.asyncFactory = factory, node.asyncMeta = { data: data, context: context, children: children, tag: tag }, node; }(asyncFactory, data, context, children, tag); data = data || {}, resolveConstructorOptions(Ctor), isDef(data.model) && function(options, data) { var prop = options.model && options.model.prop || "value", event = options.model && options.model.event || "input"; (data.attrs || (data.attrs = {}))[prop] = data.model.value; var on = data.on || (data.on = {}), existing = on[event], callback = data.model.callback; isDef(existing) ? (Array.isArray(existing) ? -1 === existing.indexOf(callback) : existing !== callback) && (on[event] = [ callback ].concat(existing)) : on[event] = callback; }(Ctor.options, data); var propsData = function(data, Ctor, tag) { var propOptions = Ctor.options.props; if (!isUndef(propOptions)) { var res = {}, attrs = data.attrs, props = data.props; if (isDef(attrs) || isDef(props)) for (var key in propOptions) { var altKey = hyphenate(key); checkProp(res, props, key, altKey, !0) || checkProp(res, attrs, key, altKey, !1); } return res; } }(data, Ctor); if (isTrue(Ctor.options.functional)) return function(Ctor, propsData, data, contextVm, children) { var options = Ctor.options, props = {}, propOptions = options.props; if (isDef(propOptions)) for (var key in propOptions) props[key] = validateProp(key, propOptions, propsData || emptyObject); else isDef(data.attrs) && mergeProps(props, data.attrs), isDef(data.props) && mergeProps(props, data.props); var renderContext = new FunctionalRenderContext(data, props, children, contextVm, Ctor), vnode = options.render.call(null, renderContext._c, renderContext); if (vnode instanceof VNode) return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options); if (Array.isArray(vnode)) { for (var vnodes = normalizeChildren(vnode) || [], res = new Array(vnodes.length), i = 0; i < vnodes.length; i++) res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options); return res; } }(Ctor, propsData, data, context, children); var listeners = data.on; if (data.on = data.nativeOn, isTrue(Ctor.options.abstract)) { var slot = data.slot; data = {}, slot && (data.slot = slot); } !function(data) { for (var hooks = data.hook || (data.hook = {}), i = 0; i < hooksToMerge.length; i++) { var key = hooksToMerge[i], existing = hooks[key], toMerge = componentVNodeHooks[key]; existing === toMerge || existing && existing._merged || (hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge); } }(data); var name = Ctor.options.name || tag; return new VNode("vue-component-" + Ctor.cid + (name ? "-" + name : ""), data, void 0, void 0, void 0, context, { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children }, asyncFactory); } } } function mergeHook$1(f1, f2) { var merged = function(a, b) { f1(a, b), f2(a, b); }; return merged._merged = !0, merged; } var SIMPLE_NORMALIZE = 1, ALWAYS_NORMALIZE = 2; function createElement(context, tag, data, children, normalizationType, alwaysNormalize) { return (Array.isArray(data) || isPrimitive(data)) && (normalizationType = children, children = data, data = void 0), isTrue(alwaysNormalize) && (normalizationType = ALWAYS_NORMALIZE), function(context, tag, data, children, normalizationType) { if (isDef(data) && isDef(data.__ob__)) return createEmptyVNode(); isDef(data) && isDef(data.is) && (tag = data.is); if (!tag) return createEmptyVNode(); 0; Array.isArray(children) && "function" == typeof children[0] && ((data = data || {}).scopedSlots = { default: children[0] }, children.length = 0); normalizationType === ALWAYS_NORMALIZE ? children = normalizeChildren(children) : normalizationType === SIMPLE_NORMALIZE && (children = function(children) { for (var i = 0; i < children.length; i++) if (Array.isArray(children[i])) return Array.prototype.concat.apply([], children); return children; }(children)); var vnode, ns; if ("string" == typeof tag) { var Ctor; ns = context.$vnode && context.$vnode.ns || config.getTagNamespace(tag), vnode = config.isReservedTag(tag) ? new VNode(config.parsePlatformTagName(tag), data, children, void 0, void 0, context) : data && data.pre || !isDef(Ctor = resolveAsset(context.$options, "components", tag)) ? new VNode(tag, data, children, void 0, void 0, context) : createComponent(Ctor, data, context, children, tag); } else vnode = createComponent(tag, data, context, children); return Array.isArray(vnode) ? vnode : isDef(vnode) ? (isDef(ns) && function applyNS(vnode, ns, force) { vnode.ns = ns; "foreignObject" === vnode.tag && (ns = void 0, force = !0); if (isDef(vnode.children)) for (var i = 0, l = vnode.children.length; i < l; i++) { var child = vnode.children[i]; isDef(child.tag) && (isUndef(child.ns) || isTrue(force) && "svg" !== child.tag) && applyNS(child, ns, force); } }(vnode, ns), isDef(data) && function(data) { isObject(data.style) && traverse(data.style); isObject(data.class) && traverse(data.class); }(data), vnode) : createEmptyVNode(); }(context, tag, data, children, normalizationType); } var target, currentRenderingInstance = null; function ensureCtor(comp, base) { return (comp.__esModule || hasSymbol && "Module" === comp[Symbol.toStringTag]) && (comp = comp.default), isObject(comp) ? base.extend(comp) : comp; } function isAsyncPlaceholder(node) { return node.isComment && node.asyncFactory; } function getFirstComponentChild(children) { if (Array.isArray(children)) for (var i = 0; i < children.length; i++) { var c = children[i]; if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) return c; } } function add(event, fn) { target.$on(event, fn); } function remove$1(event, fn) { target.$off(event, fn); } function createOnceHandler(event, fn) { var _target = target; return function onceHandler() { null !== fn.apply(null, arguments) && _target.$off(event, onceHandler); }; } function updateComponentListeners(vm, listeners, oldListeners) { target = vm, updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm), target = void 0; } var activeInstance = null; function setActiveInstance(vm) { var prevActiveInstance = activeInstance; return activeInstance = vm, function() { activeInstance = prevActiveInstance; }; } function isInInactiveTree(vm) { for (;vm && (vm = vm.$parent); ) if (vm._inactive) return !0; return !1; } function activateChildComponent(vm, direct) { if (direct) { if (vm._directInactive = !1, isInInactiveTree(vm)) return; } else if (vm._directInactive) return; if (vm._inactive || null === vm._inactive) { vm._inactive = !1; for (var i = 0; i < vm.$children.length; i++) activateChildComponent(vm.$children[i]); callHook(vm, "activated"); } } function callHook(vm, hook) { pushTarget(); var handlers = vm.$options[hook], info = hook + " hook"; if (handlers) for (var i = 0, j = handlers.length; i < j; i++) invokeWithErrorHandling(handlers[i], vm, null, vm, info); vm._hasHookEvent && vm.$emit("hook:" + hook), popTarget(); } var queue = [], activatedChildren = [], has = {}, waiting = !1, flushing = !1, index = 0; var currentFlushTimestamp = 0, getNow = Date.now; function flushSchedulerQueue() { var watcher, id; for (currentFlushTimestamp = getNow(), flushing = !0, queue.sort(function(a, b) { return a.id - b.id; }), index = 0; index < queue.length; index++) (watcher = queue[index]).before && watcher.before(), id = watcher.id, has[id] = null, watcher.run(); var activatedQueue = activatedChildren.slice(), updatedQueue = queue.slice(); index = queue.length = activatedChildren.length = 0, has = {}, waiting = flushing = !1, function(queue) { for (var i = 0; i < queue.length; i++) queue[i]._inactive = !0, activateChildComponent(queue[i], !0); }(activatedQueue), function(queue) { var i = queue.length; for (;i--; ) { var watcher = queue[i], vm = watcher.vm; vm._watcher === watcher && vm._isMounted && !vm._isDestroyed && callHook(vm, "updated"); } }(updatedQueue), devtools && config.devtools && devtools.emit("flush"); } inBrowser && getNow() > document.createEvent("Event").timeStamp && (getNow = function() { return performance.now(); }); var uid$2 = 0, Watcher = function(vm, expOrFn, cb, options, isRenderWatcher) { this.vm = vm, isRenderWatcher && (vm._watcher = this), vm._watchers.push(this), options ? (this.deep = !!options.deep, this.user = !!options.user, this.lazy = !!options.lazy, this.sync = !!options.sync, this.before = options.before) : this.deep = this.user = this.lazy = this.sync = !1, this.cb = cb, this.id = ++uid$2, this.active = !0, this.dirty = this.lazy, this.deps = [], this.newDeps = [], this.depIds = new _Set(), this.newDepIds = new _Set(), this.expression = "", "function" == typeof expOrFn ? this.getter = expOrFn : (this.getter = function(path) { if (!bailRE.test(path)) { var segments = path.split("."); return function(obj) { for (var i = 0; i < segments.length; i++) { if (!obj) return; obj = obj[segments[i]]; } return obj; }; } }(expOrFn), this.getter || (this.getter = noop)), this.value = this.lazy ? void 0 : this.get(); }; Watcher.prototype.get = function() { var value; pushTarget(this); var vm = this.vm; try { value = this.getter.call(vm, vm); } catch (e) { if (!this.user) throw e; handleError(e, vm, 'getter for watcher "' + this.expression + '"'); } finally { this.deep && traverse(value), popTarget(), this.cleanupDeps(); } return value; }, Watcher.prototype.addDep = function(dep) { var id = dep.id; this.newDepIds.has(id) || (this.newDepIds.add(id), this.newDeps.push(dep), this.depIds.has(id) || dep.addSub(this)); }, Watcher.prototype.cleanupDeps = function() { for (var i = this.deps.length; i--; ) { var dep = this.deps[i]; this.newDepIds.has(dep.id) || dep.removeSub(this); } var tmp = this.depIds; this.depIds = this.newDepIds, this.newDepIds = tmp, this.newDepIds.clear(), tmp = this.deps, this.deps = this.newDeps, this.newDeps = tmp, this.newDeps.length = 0; }, Watcher.prototype.update = function() { this.lazy ? this.dirty = !0 : this.sync ? this.run() : function(watcher) { var id = watcher.id; if (null == has[id]) { if (has[id] = !0, flushing) { for (var i = queue.length - 1; i > index && queue[i].id > watcher.id; ) i--; queue.splice(i + 1, 0, watcher); } else queue.push(watcher); waiting || (waiting = !0, nextTick(flushSchedulerQueue)); } }(this); }, Watcher.prototype.run = function() { if (this.active) { var value = this.get(); if (value !== this.value || isObject(value) || this.deep) { var oldValue = this.value; if (this.value = value, this.user) try { this.cb.call(this.vm, value, oldValue); } catch (e) { handleError(e, this.vm, 'callback for watcher "' + this.expression + '"'); } else this.cb.call(this.vm, value, oldValue); } } }, Watcher.prototype.evaluate = function() { this.value = this.get(), this.dirty = !1; }, Watcher.prototype.depend = function() { for (var i = this.deps.length; i--; ) this.deps[i].depend(); }, Watcher.prototype.teardown = function() { if (this.active) { this.vm._isBeingDestroyed || remove(this.vm._watchers, this); for (var i = this.deps.length; i--; ) this.deps[i].removeSub(this); this.active = !1; } }; var sharedPropertyDefinition = { enumerable: !0, configurable: !0, get: noop, set: noop }; function proxy(target, sourceKey, key) { sharedPropertyDefinition.get = function() { return this[sourceKey][key]; }, sharedPropertyDefinition.set = function(val) { this[sourceKey][key] = val; }, Object.defineProperty(target, key, sharedPropertyDefinition); } function initState(vm) { vm._watchers = []; var opts = vm.$options; opts.props && function(vm, propsOptions) { var propsData = vm.$options.propsData || {}, props = vm._props = {}, keys = vm.$options._propKeys = []; vm.$parent && toggleObserving(!1); var loop = function(key) { keys.push(key); var value = validateProp(key, propsOptions, propsData, vm); defineReactive$$1(props, key, value), key in vm || proxy(vm, "_props", key); }; for (var key in propsOptions) loop(key); toggleObserving(!0); }(vm, opts.props), opts.methods && function(vm, methods) { vm.$options.props; for (var key in methods) vm[key] = "function" != typeof methods[key] ? noop : bind(methods[key], vm); }(vm, opts.methods), opts.data ? function(vm) { var data = vm.$options.data; isPlainObject(data = vm._data = "function" == typeof data ? function(data, vm) { pushTarget(); try { return data.call(vm, vm); } catch (e) { return handleError(e, vm, "data()"), {}; } finally { popTarget(); } }(data, vm) : data || {}) || (data = {}); var keys = Object.keys(data), props = vm.$options.props, i = (vm.$options.methods, keys.length); for (;i--; ) { var key = keys[i]; 0, props && hasOwn(props, key) || (c = void 0, 36 !== (c = (key + "").charCodeAt(0)) && 95 !== c && proxy(vm, "_data", key)); } var c; observe(data, !0); }(vm) : observe(vm._data = {}, !0), opts.computed && function(vm, computed) { var watchers = vm._computedWatchers = Object.create(null), isSSR = isServerRendering(); for (var key in computed) { var userDef = computed[key], getter = "function" == typeof userDef ? userDef : userDef.get; 0, isSSR || (watchers[key] = new Watcher(vm, getter || noop, noop, computedWatcherOptions)), key in vm || defineComputed(vm, key, userDef); } }(vm, opts.computed), opts.watch && opts.watch !== nativeWatch && function(vm, watch) { for (var key in watch) { var handler = watch[key]; if (Array.isArray(handler)) for (var i = 0; i < handler.length; i++) createWatcher(vm, key, handler[i]); else createWatcher(vm, key, handler); } }(vm, opts.watch); } var computedWatcherOptions = { lazy: !0 }; function defineComputed(target, key, userDef) { var shouldCache = !isServerRendering(); "function" == typeof userDef ? (sharedPropertyDefinition.get = shouldCache ? createComputedGetter(key) : createGetterInvoker(userDef), sharedPropertyDefinition.set = noop) : (sharedPropertyDefinition.get = userDef.get ? shouldCache && !1 !== userDef.cache ? createComputedGetter(key) : createGetterInvoker(userDef.get) : noop, sharedPropertyDefinition.set = userDef.set || noop), Object.defineProperty(target, key, sharedPropertyDefinition); } function createComputedGetter(key) { return function() { var watcher = this._computedWatchers && this._computedWatchers[key]; if (watcher) return watcher.dirty && watcher.evaluate(), Dep.target && watcher.depend(), watcher.value; }; } function createGetterInvoker(fn) { return function() { return fn.call(this, this); }; } function createWatcher(vm, expOrFn, handler, options) { return isPlainObject(handler) && (options = handler, handler = handler.handler), "string" == typeof handler && (handler = vm[handler]), vm.$watch(expOrFn, handler, options); } var uid$3 = 0; function resolveConstructorOptions(Ctor) { var options = Ctor.options; if (Ctor.super) { var superOptions = resolveConstructorOptions(Ctor.super); if (superOptions !== Ctor.superOptions) { Ctor.superOptions = superOptions; var modifiedOptions = function(Ctor) { var modified, latest = Ctor.options, sealed = Ctor.sealedOptions; for (var key in latest) latest[key] !== sealed[key] && (modified || (modified = {}), modified[key] = latest[key]); return modified; }(Ctor); modifiedOptions && extend(Ctor.extendOptions, modifiedOptions), (options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions)).name && (options.components[options.name] = Ctor); } } return options; } function Vue(options) { this._init(options); } function initExtend(Vue) { Vue.cid = 0; var cid = 1; Vue.extend = function(extendOptions) { extendOptions = extendOptions || {}; var Super = this, SuperId = Super.cid, cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {}); if (cachedCtors[SuperId]) return cachedCtors[SuperId]; var name = extendOptions.name || Super.options.name; var Sub = function(options) { this._init(options); }; return (Sub.prototype = Object.create(Super.prototype)).constructor = Sub, Sub.cid = cid++, Sub.options = mergeOptions(Super.options, extendOptions), Sub.super = Super, Sub.options.props && function(Comp) { var props = Comp.options.props; for (var key in props) proxy(Comp.prototype, "_props", key); }(Sub), Sub.options.computed && function(Comp) { var computed = Comp.options.computed; for (var key in computed) defineComputed(Comp.prototype, key, computed[key]); }(Sub), Sub.extend = Super.extend, Sub.mixin = Super.mixin, Sub.use = Super.use, ASSET_TYPES.forEach(function(type) { Sub[type] = Super[type]; }), name && (Sub.options.components[name] = Sub), Sub.superOptions = Super.options, Sub.extendOptions = extendOptions, Sub.sealedOptions = extend({}, Sub.options), cachedCtors[SuperId] = Sub, Sub; }; } function getComponentName(opts) { return opts && (opts.Ctor.options.name || opts.tag); } function matches(pattern, name) { return Array.isArray(pattern) ? pattern.indexOf(name) > -1 : "string" == typeof pattern ? pattern.split(",").indexOf(name) > -1 : !!isRegExp(pattern) && pattern.test(name); } function pruneCache(keepAliveInstance, filter) { var cache = keepAliveInstance.cache, keys = keepAliveInstance.keys, _vnode = keepAliveInstance._vnode; for (var key in cache) { var cachedNode = cache[key]; if (cachedNode) { var name = getComponentName(cachedNode.componentOptions); name && !filter(name) && pruneCacheEntry(cache, key, keys, _vnode); } } } function pruneCacheEntry(cache, key, keys, current) { var cached$$1 = cache[key]; !cached$$1 || current && cached$$1.tag === current.tag || cached$$1.componentInstance.$destroy(), cache[key] = null, remove(keys, key); } !function(Vue) { Vue.prototype._init = function(options) { var vm = this; vm._uid = uid$3++, vm._isVue = !0, options && options._isComponent ? function(vm, options) { var opts = vm.$options = Object.create(vm.constructor.options), parentVnode = options._parentVnode; opts.parent = options.parent, opts._parentVnode = parentVnode; var vnodeComponentOptions = parentVnode.componentOptions; opts.propsData = vnodeComponentOptions.propsData, opts._parentListeners = vnodeComponentOptions.listeners, opts._renderChildren = vnodeComponentOptions.children, opts._componentTag = vnodeComponentOptions.tag, options.render && (opts.render = options.render, opts.staticRenderFns = options.staticRenderFns); }(vm, options) : vm.$options = mergeOptions(resolveConstructorOptions(vm.constructor), options || {}, vm), vm._renderProxy = vm, vm._self = vm, function(vm) { var options = vm.$options, parent = options.parent; if (parent && !options.abstract) { for (;parent.$options.abstract && parent.$parent; ) parent = parent.$parent; parent.$children.push(vm); } vm.$parent = parent, vm.$root = parent ? parent.$root : vm, vm.$children = [], vm.$refs = {}, vm._watcher = null, vm._inactive = null, vm._directInactive = !1, vm._isMounted = !1, vm._isDestroyed = !1, vm._isBeingDestroyed = !1; }(vm), function(vm) { vm._events = Object.create(null), vm._hasHookEvent = !1; var listeners = vm.$options._parentListeners; listeners && updateComponentListeners(vm, listeners); }(vm), function(vm) { vm._vnode = null, vm._staticTrees = null; var options = vm.$options, parentVnode = vm.$vnode = options._parentVnode, renderContext = parentVnode && parentVnode.context; vm.$slots = resolveSlots(options._renderChildren, renderContext), vm.$scopedSlots = emptyObject, vm._c = function(a, b, c, d) { return createElement(vm, a, b, c, d, !1); }, vm.$createElement = function(a, b, c, d) { return createElement(vm, a, b, c, d, !0); }; var parentData = parentVnode && parentVnode.data; defineReactive$$1(vm, "$attrs", parentData && parentData.attrs || emptyObject, null, !0), defineReactive$$1(vm, "$listeners", options._parentListeners || emptyObject, null, !0); }(vm), callHook(vm, "beforeCreate"), function(vm) { var result = resolveInject(vm.$options.inject, vm); result && (toggleObserving(!1), Object.keys(result).forEach(function(key) { defineReactive$$1(vm, key, result[key]); }), toggleObserving(!0)); }(vm), initState(vm), function(vm) { var provide = vm.$options.provide; provide && (vm._provided = "function" == typeof provide ? provide.call(vm) : provide); }(vm), callHook(vm, "created"), vm.$options.el && vm.$mount(vm.$options.el); }; }(Vue), function(Vue) { var dataDef = { get: function() { return this._data; } }, propsDef = { get: function() { return this._props; } }; Object.defineProperty(Vue.prototype, "$data", dataDef), Object.defineProperty(Vue.prototype, "$props", propsDef), Vue.prototype.$set = set, Vue.prototype.$delete = del, Vue.prototype.$watch = function(expOrFn, cb, options) { if (isPlainObject(cb)) return createWatcher(this, expOrFn, cb, options); (options = options || {}).user = !0; var watcher = new Watcher(this, expOrFn, cb, options); if (options.immediate) try { cb.call(this, watcher.value); } catch (error) { handleError(error, this, 'callback for immediate watcher "' + watcher.expression + '"'); } return function() { watcher.teardown(); }; }; }(Vue), function(Vue) { var hookRE = /^hook:/; Vue.prototype.$on = function(event, fn) { var vm = this; if (Array.isArray(event)) for (var i = 0, l = event.length; i < l; i++) vm.$on(event[i], fn); else (vm._events[event] || (vm._events[event] = [])).push(fn), hookRE.test(event) && (vm._hasHookEvent = !0); return vm; }, Vue.prototype.$once = function(event, fn) { var vm = this; function on() { vm.$off(event, on), fn.apply(vm, arguments); } return on.fn = fn, vm.$on(event, on), vm; }, Vue.prototype.$off = function(event, fn) { var vm = this; if (!arguments.length) return vm._events = Object.create(null), vm; if (Array.isArray(event)) { for (var i$1 = 0, l = event.length; i$1 < l; i$1++) vm.$off(event[i$1], fn); return vm; } var cb, cbs = vm._events[event]; if (!cbs) return vm; if (!fn) return vm._events[event] = null, vm; for (var i = cbs.length; i--; ) if ((cb = cbs[i]) === fn || cb.fn === fn) { cbs.splice(i, 1); break; } return vm; }, Vue.prototype.$emit = function(event) { var cbs = this._events[event]; if (cbs) { cbs = cbs.length > 1 ? toArray(cbs) : cbs; for (var args = toArray(arguments, 1), info = 'event handler for "' + event + '"', i = 0, l = cbs.length; i < l; i++) invokeWithErrorHandling(cbs[i], this, args, this, info); } return this; }; }(Vue), function(Vue) { Vue.prototype._update = function(vnode, hydrating) { var vm = this, prevEl = vm.$el, prevVnode = vm._vnode, restoreActiveInstance = setActiveInstance(vm); vm._vnode = vnode, vm.$el = prevVnode ? vm.__patch__(prevVnode, vnode) : vm.__patch__(vm.$el, vnode, hydrating, !1), restoreActiveInstance(), prevEl && (prevEl.__vue__ = null), vm.$el && (vm.$el.__vue__ = vm), vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode && (vm.$parent.$el = vm.$el); }, Vue.prototype.$forceUpdate = function() { this._watcher && this._watcher.update(); }, Vue.prototype.$destroy = function() { var vm = this; if (!vm._isBeingDestroyed) { callHook(vm, "beforeDestroy"), vm._isBeingDestroyed = !0; var parent = vm.$parent; !parent || parent._isBeingDestroyed || vm.$options.abstract || remove(parent.$children, vm), vm._watcher && vm._watcher.teardown(); for (var i = vm._watchers.length; i--; ) vm._watchers[i].teardown(); vm._data.__ob__ && vm._data.__ob__.vmCount--, vm._isDestroyed = !0, vm.__patch__(vm._vnode, null), callHook(vm, "destroyed"), vm.$off(), vm.$el && (vm.$el.__vue__ = null), vm.$vnode && (vm.$vnode.parent = null); } }; }(Vue), function(Vue) { installRenderHelpers(Vue.prototype), Vue.prototype.$nextTick = function(fn) { return nextTick(fn, this); }, Vue.prototype._render = function() { var vnode, vm = this, ref = vm.$options, render = ref.render, _parentVnode = ref._parentVnode; _parentVnode && (vm.$scopedSlots = normalizeScopedSlots(_parentVnode.data.scopedSlots, vm.$slots)), vm.$vnode = _parentVnode; try { currentRenderingInstance = vm, vnode = render.call(vm._renderProxy, vm.$createElement); } catch (e) { handleError(e, vm, "render"), vnode = vm._vnode; } finally { currentRenderingInstance = null; } return Array.isArray(vnode) && 1 === vnode.length && (vnode = vnode[0]), vnode instanceof VNode || (vnode = createEmptyVNode()), vnode.parent = _parentVnode, vnode; }; }(Vue); var patternTypes = [ String, RegExp, Array ], builtInComponents = { KeepAlive: { name: "keep-alive", abstract: !0, props: { include: patternTypes, exclude: patternTypes, max: [ String, Number ] }, created: function() { this.cache = Object.create(null), this.keys = []; }, destroyed: function() { for (var key in this.cache) pruneCacheEntry(this.cache, key, this.keys); }, mounted: function() { var this$1 = this; this.$watch("include", function(val) { pruneCache(this$1, function(name) { return matches(val, name); }); }), this.$watch("exclude", function(val) { pruneCache(this$1, function(name) { return !matches(val, name); }); }); }, render: function() { var slot = this.$slots.default, vnode = getFirstComponentChild(slot), componentOptions = vnode && vnode.componentOptions; if (componentOptions) { var name = getComponentName(componentOptions), include = this.include, exclude = this.exclude; if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) return vnode; var cache = this.cache, keys = this.keys, key = null == vnode.key ? componentOptions.Ctor.cid + (componentOptions.tag ? "::" + componentOptions.tag : "") : vnode.key; cache[key] ? (vnode.componentInstance = cache[key].componentInstance, remove(keys, key), keys.push(key)) : (cache[key] = vnode, keys.push(key), this.max && keys.length > parseInt(this.max) && pruneCacheEntry(cache, keys[0], keys, this._vnode)), vnode.data.keepAlive = !0; } return vnode || slot && slot[0]; } } }; !function(Vue) { var configDef = { get: function() { return config; } }; Object.defineProperty(Vue, "config", configDef), Vue.util = { warn: warn, extend: extend, mergeOptions: mergeOptions, defineReactive: defineReactive$$1 }, Vue.set = set, Vue.delete = del, Vue.nextTick = nextTick, Vue.observable = function(obj) { return observe(obj), obj; }, Vue.options = Object.create(null), ASSET_TYPES.forEach(function(type) { Vue.options[type + "s"] = Object.create(null); }), Vue.options._base = Vue, extend(Vue.options.components, builtInComponents), function(Vue) { Vue.use = function(plugin) { var installedPlugins = this._installedPlugins || (this._installedPlugins = []); if (installedPlugins.indexOf(plugin) > -1) return this; var args = toArray(arguments, 1); return args.unshift(this), "function" == typeof plugin.install ? plugin.install.apply(plugin, args) : "function" == typeof plugin && plugin.apply(null, args), installedPlugins.push(plugin), this; }; }(Vue), function(Vue) { Vue.mixin = function(mixin) { return this.options = mergeOptions(this.options, mixin), this; }; }(Vue), initExtend(Vue), function(Vue) { ASSET_TYPES.forEach(function(type) { Vue[type] = function(id, definition) { return definition ? ("component" === type && isPlainObject(definition) && (definition.name = definition.name || id, definition = this.options._base.extend(definition)), "directive" === type && "function" == typeof definition && (definition = { bind: definition, update: definition }), this.options[type + "s"][id] = definition, definition) : this.options[type + "s"][id]; }; }); }(Vue); }(Vue), Object.defineProperty(Vue.prototype, "$isServer", { get: isServerRendering }), Object.defineProperty(Vue.prototype, "$ssrContext", { get: function() { return this.$vnode && this.$vnode.ssrContext; } }), Object.defineProperty(Vue, "FunctionalRenderContext", { value: FunctionalRenderContext }), Vue.version = "2.6.3"; var isReservedAttr = makeMap("style,class"), acceptValue = makeMap("input,textarea,option,select,progress"), isEnumeratedAttr = makeMap("contenteditable,draggable,spellcheck"), isValidContentEditableValue = makeMap("events,caret,typing,plaintext-only"), convertEnumeratedValue = function(key, value) { return isFalsyAttrValue(value) || "false" === value ? "false" : "contenteditable" === key && isValidContentEditableValue(value) ? value : "true"; }, isBooleanAttr = makeMap("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"), xlinkNS = "http://www.w3.org/1999/xlink", isXlink = function(name) { return ":" === name.charAt(5) && "xlink" === name.slice(0, 5); }, getXlinkProp = function(name) { return isXlink(name) ? name.slice(6, name.length) : ""; }, isFalsyAttrValue = function(val) { return null == val || !1 === val; }; function genClassForVnode(vnode) { for (var data = vnode.data, parentNode = vnode, childNode = vnode; isDef(childNode.componentInstance); ) (childNode = childNode.componentInstance._vnode) && childNode.data && (data = mergeClassData(childNode.data, data)); for (;isDef(parentNode = parentNode.parent); ) parentNode && parentNode.data && (data = mergeClassData(data, parentNode.data)); return function(staticClass, dynamicClass) { if (isDef(staticClass) || isDef(dynamicClass)) return concat(staticClass, stringifyClass(dynamicClass)); return ""; }(data.staticClass, data.class); } function mergeClassData(child, parent) { return { staticClass: concat(child.staticClass, parent.staticClass), class: isDef(child.class) ? [ child.class, parent.class ] : parent.class }; } function concat(a, b) { return a ? b ? a + " " + b : a : b || ""; } function stringifyClass(value) { return Array.isArray(value) ? function(value) { for (var stringified, res = "", i = 0, l = value.length; i < l; i++) isDef(stringified = stringifyClass(value[i])) && "" !== stringified && (res && (res += " "), res += stringified); return res; }(value) : isObject(value) ? function(value) { var res = ""; for (var key in value) value[key] && (res && (res += " "), res += key); return res; }(value) : "string" == typeof value ? value : ""; } var namespaceMap = { svg: "http://www.w3.org/2000/svg", math: "http://www.w3.org/1998/Math/MathML" }, isHTMLTag = makeMap("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"), isSVG = makeMap("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view", !0), isReservedTag = function(tag) { return isHTMLTag(tag) || isSVG(tag); }; var unknownElementCache = Object.create(null); var isTextInputType = makeMap("text,number,password,search,email,tel,url"); var nodeOps = Object.freeze({ createElement: function(tagName, vnode) { var elm = document.createElement(tagName); return "select" !== tagName ? elm : (vnode.data && vnode.data.attrs && void 0 !== vnode.data.attrs.multiple && elm.setAttribute("multiple", "multiple"), elm); }, createElementNS: function(namespace, tagName) { return document.createElementNS(namespaceMap[namespace], tagName); }, createTextNode: function(text) { return document.createTextNode(text); }, createComment: function(text) { return document.createComment(text); }, insertBefore: function(parentNode, newNode, referenceNode) { parentNode.insertBefore(newNode, referenceNode); }, removeChild: function(node, child) { node.removeChild(child); }, appendChild: function(node, child) { node.appendChild(child); }, parentNode: function(node) { return node.parentNode; }, nextSibling: function(node) { return node.nextSibling; }, tagName: function(node) { return node.tagName; }, setTextContent: function(node, text) { node.textContent = text; }, setStyleScope: function(node, scopeId) { node.setAttribute(scopeId, ""); } }), ref = { create: function(_, vnode) { registerRef(vnode); }, update: function(oldVnode, vnode) { oldVnode.data.ref !== vnode.data.ref && (registerRef(oldVnode, !0), registerRef(vnode)); }, destroy: function(vnode) { registerRef(vnode, !0); } }; function registerRef(vnode, isRemoval) { var key = vnode.data.ref; if (isDef(key)) { var vm = vnode.context, ref = vnode.componentInstance || vnode.elm, refs = vm.$refs; isRemoval ? Array.isArray(refs[key]) ? remove(refs[key], ref) : refs[key] === ref && (refs[key] = void 0) : vnode.data.refInFor ? Array.isArray(refs[key]) ? refs[key].indexOf(ref) < 0 && refs[key].push(ref) : refs[key] = [ ref ] : refs[key] = ref; } } var emptyNode = new VNode("", {}, []), hooks = [ "create", "activate", "update", "remove", "destroy" ]; function sameVnode(a, b) { return a.key === b.key && (a.tag === b.tag && a.isComment === b.isComment && isDef(a.data) === isDef(b.data) && function(a, b) { if ("input" !== a.tag) return !0; var i, typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type, typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type; return typeA === typeB || isTextInputType(typeA) && isTextInputType(typeB); }(a, b) || isTrue(a.isAsyncPlaceholder) && a.asyncFactory === b.asyncFactory && isUndef(b.asyncFactory.error)); } function createKeyToOldIdx(children, beginIdx, endIdx) { var i, key, map = {}; for (i = beginIdx; i <= endIdx; ++i) isDef(key = children[i].key) && (map[key] = i); return map; } var directives = { create: updateDirectives, update: updateDirectives, destroy: function(vnode) { updateDirectives(vnode, emptyNode); } }; function updateDirectives(oldVnode, vnode) { (oldVnode.data.directives || vnode.data.directives) && function(oldVnode, vnode) { var key, oldDir, dir, isCreate = oldVnode === emptyNode, isDestroy = vnode === emptyNode, oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context), newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context), dirsWithInsert = [], dirsWithPostpatch = []; for (key in newDirs) oldDir = oldDirs[key], dir = newDirs[key], oldDir ? (dir.oldValue = oldDir.value, dir.oldArg = oldDir.arg, callHook$1(dir, "update", vnode, oldVnode), dir.def && dir.def.componentUpdated && dirsWithPostpatch.push(dir)) : (callHook$1(dir, "bind", vnode, oldVnode), dir.def && dir.def.inserted && dirsWithInsert.push(dir)); if (dirsWithInsert.length) { var callInsert = function() { for (var i = 0; i < dirsWithInsert.length; i++) callHook$1(dirsWithInsert[i], "inserted", vnode, oldVnode); }; isCreate ? mergeVNodeHook(vnode, "insert", callInsert) : callInsert(); } dirsWithPostpatch.length && mergeVNodeHook(vnode, "postpatch", function() { for (var i = 0; i < dirsWithPostpatch.length; i++) callHook$1(dirsWithPostpatch[i], "componentUpdated", vnode, oldVnode); }); if (!isCreate) for (key in oldDirs) newDirs[key] || callHook$1(oldDirs[key], "unbind", oldVnode, oldVnode, isDestroy); }(oldVnode, vnode); } var emptyModifiers = Object.create(null); function normalizeDirectives$1(dirs, vm) { var i, dir, res = Object.create(null); if (!dirs) return res; for (i = 0; i < dirs.length; i++) (dir = dirs[i]).modifiers || (dir.modifiers = emptyModifiers), res[getRawDirName(dir)] = dir, dir.def = resolveAsset(vm.$options, "directives", dir.name); return res; } function getRawDirName(dir) { return dir.rawName || dir.name + "." + Object.keys(dir.modifiers || {}).join("."); } function callHook$1(dir, hook, vnode, oldVnode, isDestroy) { var fn = dir.def && dir.def[hook]; if (fn) try { fn(vnode.elm, dir, vnode, oldVnode, isDestroy); } catch (e) { handleError(e, vnode.context, "directive " + dir.name + " " + hook + " hook"); } } var baseModules = [ ref, directives ]; function updateAttrs(oldVnode, vnode) { var opts = vnode.componentOptions; if (!(isDef(opts) && !1 === opts.Ctor.options.inheritAttrs || isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs))) { var key, cur, elm = vnode.elm, oldAttrs = oldVnode.data.attrs || {}, attrs = vnode.data.attrs || {}; for (key in isDef(attrs.__ob__) && (attrs = vnode.data.attrs = extend({}, attrs)), attrs) cur = attrs[key], oldAttrs[key] !== cur && setAttr(elm, key, cur); for (key in (isIE || isEdge) && attrs.value !== oldAttrs.value && setAttr(elm, "value", attrs.value), oldAttrs) isUndef(attrs[key]) && (isXlink(key) ? elm.removeAttributeNS(xlinkNS, getXlinkProp(key)) : isEnumeratedAttr(key) || elm.removeAttribute(key)); } } function setAttr(el, key, value) { el.tagName.indexOf("-") > -1 ? baseSetAttr(el, key, value) : isBooleanAttr(key) ? isFalsyAttrValue(value) ? el.removeAttribute(key) : (value = "allowfullscreen" === key && "EMBED" === el.tagName ? "true" : key, el.setAttribute(key, value)) : isEnumeratedAttr(key) ? el.setAttribute(key, convertEnumeratedValue(key, value)) : isXlink(key) ? isFalsyAttrValue(value) ? el.removeAttributeNS(xlinkNS, getXlinkProp(key)) : el.setAttributeNS(xlinkNS, key, value) : baseSetAttr(el, key, value); } function baseSetAttr(el, key, value) { if (isFalsyAttrValue(value)) el.removeAttribute(key); else { if (isIE && !isIE9 && "TEXTAREA" === el.tagName && "placeholder" === key && "" !== value && !el.__ieph) { var blocker = function(e) { e.stopImmediatePropagation(), el.removeEventListener("input", blocker); }; el.addEventListener("input", blocker), el.__ieph = !0; } el.setAttribute(key, value); } } var attrs = { create: updateAttrs, update: updateAttrs }; function updateClass(oldVnode, vnode) { var el = vnode.elm, data = vnode.data, oldData = oldVnode.data; if (!(isUndef(data.staticClass) && isUndef(data.class) && (isUndef(oldData) || isUndef(oldData.staticClass) && isUndef(oldData.class)))) { var cls = genClassForVnode(vnode), transitionClass = el._transitionClasses; isDef(transitionClass) && (cls = concat(cls, stringifyClass(transitionClass))), cls !== el._prevClass && (el.setAttribute("class", cls), el._prevClass = cls); } } var target$1, klass = { create: updateClass, update: updateClass }, RANGE_TOKEN = "__r", CHECKBOX_RADIO_TOKEN = "__c"; function createOnceHandler$1(event, handler, capture) { var _target = target$1; return function onceHandler() { null !== handler.apply(null, arguments) && remove$2(event, onceHandler, capture, _target); }; } var useMicrotaskFix = isUsingMicroTask && !(isFF && Number(isFF[1]) <= 53); function add$1(name, handler, capture, passive) { if (useMicrotaskFix) { var attachedTimestamp = currentFlushTimestamp, original = handler; handler = original._wrapper = function(e) { if (e.timeStamp >= attachedTimestamp || e.target.ownerDocument !== document) return original.apply(this, arguments); }; } target$1.addEventListener(name, handler, supportsPassive ? { capture: capture, passive: passive } : capture); } function remove$2(name, handler, capture, _target) { (_target || target$1).removeEventListener(name, handler._wrapper || handler, capture); } function updateDOMListeners(oldVnode, vnode) { if (!isUndef(oldVnode.data.on) || !isUndef(vnode.data.on)) { var on = vnode.data.on || {}, oldOn = oldVnode.data.on || {}; target$1 = vnode.elm, function(on) { if (isDef(on[RANGE_TOKEN])) { var event = isIE ? "change" : "input"; on[event] = [].concat(on[RANGE_TOKEN], on[event] || []), delete on[RANGE_TOKEN]; } isDef(on[CHECKBOX_RADIO_TOKEN]) && (on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || []), delete on[CHECKBOX_RADIO_TOKEN]); }(on), updateListeners(on, oldOn, add$1, remove$2, createOnceHandler$1, vnode.context), target$1 = void 0; } } var svgContainer, events = { create: updateDOMListeners, update: updateDOMListeners }; function updateDOMProps(oldVnode, vnode) { if (!isUndef(oldVnode.data.domProps) || !isUndef(vnode.data.domProps)) { var key, cur, elm = vnode.elm, oldProps = oldVnode.data.domProps || {}, props = vnode.data.domProps || {}; for (key in isDef(props.__ob__) && (props = vnode.data.domProps = extend({}, props)), oldProps) isUndef(props[key]) && (elm[key] = ""); for (key in props) { if (cur = props[key], "textContent" === key || "innerHTML" === key) { if (vnode.children && (vnode.children.length = 0), cur === oldProps[key]) continue; 1 === elm.childNodes.length && elm.removeChild(elm.childNodes[0]); } if ("value" === key || cur !== oldProps[key]) if ("value" === key) { elm._value = cur; var strCur = isUndef(cur) ? "" : String(cur); shouldUpdateValue(elm, strCur) && (elm.value = strCur); } else if ("innerHTML" === key && isSVG(elm.tagName) && isUndef(elm.innerHTML)) { (svgContainer = svgContainer || document.createElement("div")).innerHTML = "" + cur + ""; for (var svg = svgContainer.firstChild; elm.firstChild; ) elm.removeChild(elm.firstChild); for (;svg.firstChild; ) elm.appendChild(svg.firstChild); } else elm[key] = cur; } } } function shouldUpdateValue(elm, checkVal) { return !elm.composing && ("OPTION" === elm.tagName || function(elm, checkVal) { var notInFocus = !0; try { notInFocus = document.activeElement !== elm; } catch (e) {} return notInFocus && elm.value !== checkVal; }(elm, checkVal) || function(elm, newVal) { var value = elm.value, modifiers = elm._vModifiers; if (isDef(modifiers)) { if (modifiers.number) return toNumber(value) !== toNumber(newVal); if (modifiers.trim) return value.trim() !== newVal.trim(); } return value !== newVal; }(elm, checkVal)); } var domProps = { create: updateDOMProps, update: updateDOMProps }, parseStyleText = cached(function(cssText) { var res = {}, propertyDelimiter = /:(.+)/; return cssText.split(/;(?![^(]*\))/g).forEach(function(item) { if (item) { var tmp = item.split(propertyDelimiter); tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim()); } }), res; }); function normalizeStyleData(data) { var style = normalizeStyleBinding(data.style); return data.staticStyle ? extend(data.staticStyle, style) : style; } function normalizeStyleBinding(bindingStyle) { return Array.isArray(bindingStyle) ? toObject(bindingStyle) : "string" == typeof bindingStyle ? parseStyleText(bindingStyle) : bindingStyle; } var emptyStyle, cssVarRE = /^--/, importantRE = /\s*!important$/, setProp = function(el, name, val) { if (cssVarRE.test(name)) el.style.setProperty(name, val); else if (importantRE.test(val)) el.style.setProperty(hyphenate(name), val.replace(importantRE, ""), "important"); else { var normalizedName = normalize(name); if (Array.isArray(val)) for (var i = 0, len = val.length; i < len; i++) el.style[normalizedName] = val[i]; else el.style[normalizedName] = val; } }, vendorNames = [ "Webkit", "Moz", "ms" ], normalize = cached(function(prop) { if (emptyStyle = emptyStyle || document.createElement("div").style, "filter" !== (prop = camelize(prop)) && prop in emptyStyle) return prop; for (var capName = prop.charAt(0).toUpperCase() + prop.slice(1), i = 0; i < vendorNames.length; i++) { var name = vendorNames[i] + capName; if (name in emptyStyle) return name; } }); function updateStyle(oldVnode, vnode) { var data = vnode.data, oldData = oldVnode.data; if (!(isUndef(data.staticStyle) && isUndef(data.style) && isUndef(oldData.staticStyle) && isUndef(oldData.style))) { var cur, name, el = vnode.elm, oldStaticStyle = oldData.staticStyle, oldStyleBinding = oldData.normalizedStyle || oldData.style || {}, oldStyle = oldStaticStyle || oldStyleBinding, style = normalizeStyleBinding(vnode.data.style) || {}; vnode.data.normalizedStyle = isDef(style.__ob__) ? extend({}, style) : style; var newStyle = function(vnode, checkChild) { var styleData, res = {}; if (checkChild) for (var childNode = vnode; childNode.componentInstance; ) (childNode = childNode.componentInstance._vnode) && childNode.data && (styleData = normalizeStyleData(childNode.data)) && extend(res, styleData); (styleData = normalizeStyleData(vnode.data)) && extend(res, styleData); for (var parentNode = vnode; parentNode = parentNode.parent; ) parentNode.data && (styleData = normalizeStyleData(parentNode.data)) && extend(res, styleData); return res; }(vnode, !0); for (name in oldStyle) isUndef(newStyle[name]) && setProp(el, name, ""); for (name in newStyle) (cur = newStyle[name]) !== oldStyle[name] && setProp(el, name, null == cur ? "" : cur); } } var style = { create: updateStyle, update: updateStyle }, whitespaceRE = /\s+/; function addClass(el, cls) { if (cls && (cls = cls.trim())) if (el.classList) cls.indexOf(" ") > -1 ? cls.split(whitespaceRE).forEach(function(c) { return el.classList.add(c); }) : el.classList.add(cls); else { var cur = " " + (el.getAttribute("class") || "") + " "; cur.indexOf(" " + cls + " ") < 0 && el.setAttribute("class", (cur + cls).trim()); } } function removeClass(el, cls) { if (cls && (cls = cls.trim())) if (el.classList) cls.indexOf(" ") > -1 ? cls.split(whitespaceRE).forEach(function(c) { return el.classList.remove(c); }) : el.classList.remove(cls), el.classList.length || el.removeAttribute("class"); else { for (var cur = " " + (el.getAttribute("class") || "") + " ", tar = " " + cls + " "; cur.indexOf(tar) >= 0; ) cur = cur.replace(tar, " "); (cur = cur.trim()) ? el.setAttribute("class", cur) : el.removeAttribute("class"); } } function resolveTransition(def$$1) { if (def$$1) { if ("object" == typeof def$$1) { var res = {}; return !1 !== def$$1.css && extend(res, autoCssTransition(def$$1.name || "v")), extend(res, def$$1), res; } return "string" == typeof def$$1 ? autoCssTransition(def$$1) : void 0; } } var autoCssTransition = cached(function(name) { return { enterClass: name + "-enter", enterToClass: name + "-enter-to", enterActiveClass: name + "-enter-active", leaveClass: name + "-leave", leaveToClass: name + "-leave-to", leaveActiveClass: name + "-leave-active" }; }), hasTransition = inBrowser && !isIE9, TRANSITION = "transition", ANIMATION = "animation", transitionProp = "transition", transitionEndEvent = "transitionend", animationProp = "animation", animationEndEvent = "animationend"; hasTransition && (void 0 === window.ontransitionend && void 0 !== window.onwebkittransitionend && (transitionProp = "WebkitTransition", transitionEndEvent = "webkitTransitionEnd"), void 0 === window.onanimationend && void 0 !== window.onwebkitanimationend && (animationProp = "WebkitAnimation", animationEndEvent = "webkitAnimationEnd")); var raf = inBrowser ? window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout : function(fn) { return fn(); }; function nextFrame(fn) { raf(function() { raf(fn); }); } function addTransitionClass(el, cls) { var transitionClasses = el._transitionClasses || (el._transitionClasses = []); transitionClasses.indexOf(cls) < 0 && (transitionClasses.push(cls), addClass(el, cls)); } function removeTransitionClass(el, cls) { el._transitionClasses && remove(el._transitionClasses, cls), removeClass(el, cls); } function whenTransitionEnds(el, expectedType, cb) { var ref = getTransitionInfo(el, expectedType), type = ref.type, timeout = ref.timeout, propCount = ref.propCount; if (!type) return cb(); var event = type === TRANSITION ? transitionEndEvent : animationEndEvent, ended = 0, end = function() { el.removeEventListener(event, onEnd), cb(); }, onEnd = function(e) { e.target === el && ++ended >= propCount && end(); }; setTimeout(function() { ended < propCount && end(); }, timeout + 1), el.addEventListener(event, onEnd); } var transformRE = /\b(transform|all)(,|$)/; function getTransitionInfo(el, expectedType) { var type, styles = window.getComputedStyle(el), transitionDelays = (styles[transitionProp + "Delay"] || "").split(", "), transitionDurations = (styles[transitionProp + "Duration"] || "").split(", "), transitionTimeout = getTimeout(transitionDelays, transitionDurations), animationDelays = (styles[animationProp + "Delay"] || "").split(", "), animationDurations = (styles[animationProp + "Duration"] || "").split(", "), animationTimeout = getTimeout(animationDelays, animationDurations), timeout = 0, propCount = 0; return expectedType === TRANSITION ? transitionTimeout > 0 && (type = TRANSITION, timeout = transitionTimeout, propCount = transitionDurations.length) : expectedType === ANIMATION ? animationTimeout > 0 && (type = ANIMATION, timeout = animationTimeout, propCount = animationDurations.length) : propCount = (type = (timeout = Math.max(transitionTimeout, animationTimeout)) > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null) ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0, { type: type, timeout: timeout, propCount: propCount, hasTransform: type === TRANSITION && transformRE.test(styles[transitionProp + "Property"]) }; } function getTimeout(delays, durations) { for (;delays.length < durations.length; ) delays = delays.concat(delays); return Math.max.apply(null, durations.map(function(d, i) { return toMs(d) + toMs(delays[i]); })); } function toMs(s) { return 1e3 * Number(s.slice(0, -1).replace(",", ".")); } function enter(vnode, toggleDisplay) { var el = vnode.elm; isDef(el._leaveCb) && (el._leaveCb.cancelled = !0, el._leaveCb()); var data = resolveTransition(vnode.data.transition); if (!isUndef(data) && !isDef(el._enterCb) && 1 === el.nodeType) { for (var css = data.css, type = data.type, enterClass = data.enterClass, enterToClass = data.enterToClass, enterActiveClass = data.enterActiveClass, appearClass = data.appearClass, appearToClass = data.appearToClass, appearActiveClass = data.appearActiveClass, beforeEnter = data.beforeEnter, enter = data.enter, afterEnter = data.afterEnter, enterCancelled = data.enterCancelled, beforeAppear = data.beforeAppear, appear = data.appear, afterAppear = data.afterAppear, appearCancelled = data.appearCancelled, duration = data.duration, context = activeInstance, transitionNode = activeInstance.$vnode; transitionNode && transitionNode.parent; ) context = (transitionNode = transitionNode.parent).context; var isAppear = !context._isMounted || !vnode.isRootInsert; if (!isAppear || appear || "" === appear) { var startClass = isAppear && appearClass ? appearClass : enterClass, activeClass = isAppear && appearActiveClass ? appearActiveClass : enterActiveClass, toClass = isAppear && appearToClass ? appearToClass : enterToClass, beforeEnterHook = isAppear && beforeAppear || beforeEnter, enterHook = isAppear && "function" == typeof appear ? appear : enter, afterEnterHook = isAppear && afterAppear || afterEnter, enterCancelledHook = isAppear && appearCancelled || enterCancelled, explicitEnterDuration = toNumber(isObject(duration) ? duration.enter : duration); 0; var expectsCSS = !1 !== css && !isIE9, userWantsControl = getHookArgumentsLength(enterHook), cb = el._enterCb = once(function() { expectsCSS && (removeTransitionClass(el, toClass), removeTransitionClass(el, activeClass)), cb.cancelled ? (expectsCSS && removeTransitionClass(el, startClass), enterCancelledHook && enterCancelledHook(el)) : afterEnterHook && afterEnterHook(el), el._enterCb = null; }); vnode.data.show || mergeVNodeHook(vnode, "insert", function() { var parent = el.parentNode, pendingNode = parent && parent._pending && parent._pending[vnode.key]; pendingNode && pendingNode.tag === vnode.tag && pendingNode.elm._leaveCb && pendingNode.elm._leaveCb(), enterHook && enterHook(el, cb); }), beforeEnterHook && beforeEnterHook(el), expectsCSS && (addTransitionClass(el, startClass), addTransitionClass(el, activeClass), nextFrame(function() { removeTransitionClass(el, startClass), cb.cancelled || (addTransitionClass(el, toClass), userWantsControl || (isValidDuration(explicitEnterDuration) ? setTimeout(cb, explicitEnterDuration) : whenTransitionEnds(el, type, cb))); })), vnode.data.show && (toggleDisplay && toggleDisplay(), enterHook && enterHook(el, cb)), expectsCSS || userWantsControl || cb(); } } } function leave(vnode, rm) { var el = vnode.elm; isDef(el._enterCb) && (el._enterCb.cancelled = !0, el._enterCb()); var data = resolveTransition(vnode.data.transition); if (isUndef(data) || 1 !== el.nodeType) return rm(); if (!isDef(el._leaveCb)) { var css = data.css, type = data.type, leaveClass = data.leaveClass, leaveToClass = data.leaveToClass, leaveActiveClass = data.leaveActiveClass, beforeLeave = data.beforeLeave, leave = data.leave, afterLeave = data.afterLeave, leaveCancelled = data.leaveCancelled, delayLeave = data.delayLeave, duration = data.duration, expectsCSS = !1 !== css && !isIE9, userWantsControl = getHookArgumentsLength(leave), explicitLeaveDuration = toNumber(isObject(duration) ? duration.leave : duration); 0; var cb = el._leaveCb = once(function() { el.parentNode && el.parentNode._pending && (el.parentNode._pending[vnode.key] = null), expectsCSS && (removeTransitionClass(el, leaveToClass), removeTransitionClass(el, leaveActiveClass)), cb.cancelled ? (expectsCSS && removeTransitionClass(el, leaveClass), leaveCancelled && leaveCancelled(el)) : (rm(), afterLeave && afterLeave(el)), el._leaveCb = null; }); delayLeave ? delayLeave(performLeave) : performLeave(); } function performLeave() { cb.cancelled || (!vnode.data.show && el.parentNode && ((el.parentNode._pending || (el.parentNode._pending = {}))[vnode.key] = vnode), beforeLeave && beforeLeave(el), expectsCSS && (addTransitionClass(el, leaveClass), addTransitionClass(el, leaveActiveClass), nextFrame(function() { removeTransitionClass(el, leaveClass), cb.cancelled || (addTransitionClass(el, leaveToClass), userWantsControl || (isValidDuration(explicitLeaveDuration) ? setTimeout(cb, explicitLeaveDuration) : whenTransitionEnds(el, type, cb))); })), leave && leave(el, cb), expectsCSS || userWantsControl || cb()); } } function isValidDuration(val) { return "number" == typeof val && !isNaN(val); } function getHookArgumentsLength(fn) { if (isUndef(fn)) return !1; var invokerFns = fn.fns; return isDef(invokerFns) ? getHookArgumentsLength(Array.isArray(invokerFns) ? invokerFns[0] : invokerFns) : (fn._length || fn.length) > 1; } function _enter(_, vnode) { !0 !== vnode.data.show && enter(vnode); } var patch = function(backend) { var i, j, cbs = {}, modules = backend.modules, nodeOps = backend.nodeOps; for (i = 0; i < hooks.length; ++i) for (cbs[hooks[i]] = [], j = 0; j < modules.length; ++j) isDef(modules[j][hooks[i]]) && cbs[hooks[i]].push(modules[j][hooks[i]]); function removeNode(el) { var parent = nodeOps.parentNode(el); isDef(parent) && nodeOps.removeChild(parent, el); } function createElm(vnode, insertedVnodeQueue, parentElm, refElm, nested, ownerArray, index) { if (isDef(vnode.elm) && isDef(ownerArray) && (vnode = ownerArray[index] = cloneVNode(vnode)), vnode.isRootInsert = !nested, !function(vnode, insertedVnodeQueue, parentElm, refElm) { var i = vnode.data; if (isDef(i)) { var isReactivated = isDef(vnode.componentInstance) && i.keepAlive; if (isDef(i = i.hook) && isDef(i = i.init) && i(vnode, !1), isDef(vnode.componentInstance)) return initComponent(vnode, insertedVnodeQueue), insert(parentElm, vnode.elm, refElm), isTrue(isReactivated) && function(vnode, insertedVnodeQueue, parentElm, refElm) { for (var i, innerNode = vnode; innerNode.componentInstance; ) if (innerNode = innerNode.componentInstance._vnode, isDef(i = innerNode.data) && isDef(i = i.transition)) { for (i = 0; i < cbs.activate.length; ++i) cbs.activate[i](emptyNode, innerNode); insertedVnodeQueue.push(innerNode); break; } insert(parentElm, vnode.elm, refElm); }(vnode, insertedVnodeQueue, parentElm, refElm), !0; } }(vnode, insertedVnodeQueue, parentElm, refElm)) { var data = vnode.data, children = vnode.children, tag = vnode.tag; isDef(tag) ? (vnode.elm = vnode.ns ? nodeOps.createElementNS(vnode.ns, tag) : nodeOps.createElement(tag, vnode), setScope(vnode), createChildren(vnode, children, insertedVnodeQueue), isDef(data) && invokeCreateHooks(vnode, insertedVnodeQueue), insert(parentElm, vnode.elm, refElm)) : isTrue(vnode.isComment) ? (vnode.elm = nodeOps.createComment(vnode.text), insert(parentElm, vnode.elm, refElm)) : (vnode.elm = nodeOps.createTextNode(vnode.text), insert(parentElm, vnode.elm, refElm)); } } function initComponent(vnode, insertedVnodeQueue) { isDef(vnode.data.pendingInsert) && (insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert), vnode.data.pendingInsert = null), vnode.elm = vnode.componentInstance.$el, isPatchable(vnode) ? (invokeCreateHooks(vnode, insertedVnodeQueue), setScope(vnode)) : (registerRef(vnode), insertedVnodeQueue.push(vnode)); } function insert(parent, elm, ref$$1) { isDef(parent) && (isDef(ref$$1) ? nodeOps.parentNode(ref$$1) === parent && nodeOps.insertBefore(parent, elm, ref$$1) : nodeOps.appendChild(parent, elm)); } function createChildren(vnode, children, insertedVnodeQueue) { if (Array.isArray(children)) for (var i = 0; i < children.length; ++i) createElm(children[i], insertedVnodeQueue, vnode.elm, null, !0, children, i); else isPrimitive(vnode.text) && nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text))); } function isPatchable(vnode) { for (;vnode.componentInstance; ) vnode = vnode.componentInstance._vnode; return isDef(vnode.tag); } function invokeCreateHooks(vnode, insertedVnodeQueue) { for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) cbs.create[i$1](emptyNode, vnode); isDef(i = vnode.data.hook) && (isDef(i.create) && i.create(emptyNode, vnode), isDef(i.insert) && insertedVnodeQueue.push(vnode)); } function setScope(vnode) { var i; if (isDef(i = vnode.fnScopeId)) nodeOps.setStyleScope(vnode.elm, i); else for (var ancestor = vnode; ancestor; ) isDef(i = ancestor.context) && isDef(i = i.$options._scopeId) && nodeOps.setStyleScope(vnode.elm, i), ancestor = ancestor.parent; isDef(i = activeInstance) && i !== vnode.context && i !== vnode.fnContext && isDef(i = i.$options._scopeId) && nodeOps.setStyleScope(vnode.elm, i); } function addVnodes(parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) { for (;startIdx <= endIdx; ++startIdx) createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm, !1, vnodes, startIdx); } function invokeDestroyHook(vnode) { var i, j, data = vnode.data; if (isDef(data)) for (isDef(i = data.hook) && isDef(i = i.destroy) && i(vnode), i = 0; i < cbs.destroy.length; ++i) cbs.destroy[i](vnode); if (isDef(i = vnode.children)) for (j = 0; j < vnode.children.length; ++j) invokeDestroyHook(vnode.children[j]); } function removeVnodes(parentElm, vnodes, startIdx, endIdx) { for (;startIdx <= endIdx; ++startIdx) { var ch = vnodes[startIdx]; isDef(ch) && (isDef(ch.tag) ? (removeAndInvokeRemoveHook(ch), invokeDestroyHook(ch)) : removeNode(ch.elm)); } } function removeAndInvokeRemoveHook(vnode, rm) { if (isDef(rm) || isDef(vnode.data)) { var i, listeners = cbs.remove.length + 1; for (isDef(rm) ? rm.listeners += listeners : rm = function(childElm, listeners) { function remove$$1() { 0 == --remove$$1.listeners && removeNode(childElm); } return remove$$1.listeners = listeners, remove$$1; }(vnode.elm, listeners), isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data) && removeAndInvokeRemoveHook(i, rm), i = 0; i < cbs.remove.length; ++i) cbs.remove[i](vnode, rm); isDef(i = vnode.data.hook) && isDef(i = i.remove) ? i(vnode, rm) : rm(); } else removeNode(vnode.elm); } function findIdxInOld(node, oldCh, start, end) { for (var i = start; i < end; i++) { var c = oldCh[i]; if (isDef(c) && sameVnode(node, c)) return i; } } function patchVnode(oldVnode, vnode, insertedVnodeQueue, ownerArray, index, removeOnly) { if (oldVnode !== vnode) { isDef(vnode.elm) && isDef(ownerArray) && (vnode = ownerArray[index] = cloneVNode(vnode)); var elm = vnode.elm = oldVnode.elm; if (isTrue(oldVnode.isAsyncPlaceholder)) isDef(vnode.asyncFactory.resolved) ? hydrate(oldVnode.elm, vnode, insertedVnodeQueue) : vnode.isAsyncPlaceholder = !0; else if (isTrue(vnode.isStatic) && isTrue(oldVnode.isStatic) && vnode.key === oldVnode.key && (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))) vnode.componentInstance = oldVnode.componentInstance; else { var i, data = vnode.data; isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch) && i(oldVnode, vnode); var oldCh = oldVnode.children, ch = vnode.children; if (isDef(data) && isPatchable(vnode)) { for (i = 0; i < cbs.update.length; ++i) cbs.update[i](oldVnode, vnode); isDef(i = data.hook) && isDef(i = i.update) && i(oldVnode, vnode); } isUndef(vnode.text) ? isDef(oldCh) && isDef(ch) ? oldCh !== ch && function(parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) { for (var oldKeyToIdx, idxInOld, vnodeToMove, oldStartIdx = 0, newStartIdx = 0, oldEndIdx = oldCh.length - 1, oldStartVnode = oldCh[0], oldEndVnode = oldCh[oldEndIdx], newEndIdx = newCh.length - 1, newStartVnode = newCh[0], newEndVnode = newCh[newEndIdx], canMove = !removeOnly; oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx; ) isUndef(oldStartVnode) ? oldStartVnode = oldCh[++oldStartIdx] : isUndef(oldEndVnode) ? oldEndVnode = oldCh[--oldEndIdx] : sameVnode(oldStartVnode, newStartVnode) ? (patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx), oldStartVnode = oldCh[++oldStartIdx], newStartVnode = newCh[++newStartIdx]) : sameVnode(oldEndVnode, newEndVnode) ? (patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx), oldEndVnode = oldCh[--oldEndIdx], newEndVnode = newCh[--newEndIdx]) : sameVnode(oldStartVnode, newEndVnode) ? (patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx), canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm)), oldStartVnode = oldCh[++oldStartIdx], newEndVnode = newCh[--newEndIdx]) : sameVnode(oldEndVnode, newStartVnode) ? (patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx), canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm), oldEndVnode = oldCh[--oldEndIdx], newStartVnode = newCh[++newStartIdx]) : (isUndef(oldKeyToIdx) && (oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx)), isUndef(idxInOld = isDef(newStartVnode.key) ? oldKeyToIdx[newStartVnode.key] : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx)) ? createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, !1, newCh, newStartIdx) : sameVnode(vnodeToMove = oldCh[idxInOld], newStartVnode) ? (patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue, newCh, newStartIdx), oldCh[idxInOld] = void 0, canMove && nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm)) : createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, !1, newCh, newStartIdx), newStartVnode = newCh[++newStartIdx]); oldStartIdx > oldEndIdx ? addVnodes(parentElm, isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue) : newStartIdx > newEndIdx && removeVnodes(0, oldCh, oldStartIdx, oldEndIdx); }(elm, oldCh, ch, insertedVnodeQueue, removeOnly) : isDef(ch) ? (isDef(oldVnode.text) && nodeOps.setTextContent(elm, ""), addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue)) : isDef(oldCh) ? removeVnodes(0, oldCh, 0, oldCh.length - 1) : isDef(oldVnode.text) && nodeOps.setTextContent(elm, "") : oldVnode.text !== vnode.text && nodeOps.setTextContent(elm, vnode.text), isDef(data) && isDef(i = data.hook) && isDef(i = i.postpatch) && i(oldVnode, vnode); } } } function invokeInsertHook(vnode, queue, initial) { if (isTrue(initial) && isDef(vnode.parent)) vnode.parent.data.pendingInsert = queue; else for (var i = 0; i < queue.length; ++i) queue[i].data.hook.insert(queue[i]); } var isRenderedModule = makeMap("attrs,class,staticClass,staticStyle,key"); function hydrate(elm, vnode, insertedVnodeQueue, inVPre) { var i, tag = vnode.tag, data = vnode.data, children = vnode.children; if (inVPre = inVPre || data && data.pre, vnode.elm = elm, isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) return vnode.isAsyncPlaceholder = !0, !0; if (isDef(data) && (isDef(i = data.hook) && isDef(i = i.init) && i(vnode, !0), isDef(i = vnode.componentInstance))) return initComponent(vnode, insertedVnodeQueue), !0; if (isDef(tag)) { if (isDef(children)) if (elm.hasChildNodes()) if (isDef(i = data) && isDef(i = i.domProps) && isDef(i = i.innerHTML)) { if (i !== elm.innerHTML) return !1; } else { for (var childrenMatch = !0, childNode = elm.firstChild, i$1 = 0; i$1 < children.length; i$1++) { if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue, inVPre)) { childrenMatch = !1; break; } childNode = childNode.nextSibling; } if (!childrenMatch || childNode) return !1; } else createChildren(vnode, children, insertedVnodeQueue); if (isDef(data)) { var fullInvoke = !1; for (var key in data) if (!isRenderedModule(key)) { fullInvoke = !0, invokeCreateHooks(vnode, insertedVnodeQueue); break; } !fullInvoke && data.class && traverse(data.class); } } else elm.data !== vnode.text && (elm.data = vnode.text); return !0; } return function(oldVnode, vnode, hydrating, removeOnly) { if (!isUndef(vnode)) { var elm, isInitialPatch = !1, insertedVnodeQueue = []; if (isUndef(oldVnode)) isInitialPatch = !0, createElm(vnode, insertedVnodeQueue); else { var isRealElement = isDef(oldVnode.nodeType); if (!isRealElement && sameVnode(oldVnode, vnode)) patchVnode(oldVnode, vnode, insertedVnodeQueue, null, null, removeOnly); else { if (isRealElement) { if (1 === oldVnode.nodeType && oldVnode.hasAttribute(SSR_ATTR) && (oldVnode.removeAttribute(SSR_ATTR), hydrating = !0), isTrue(hydrating) && hydrate(oldVnode, vnode, insertedVnodeQueue)) return invokeInsertHook(vnode, insertedVnodeQueue, !0), oldVnode; elm = oldVnode, oldVnode = new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], void 0, elm); } var oldElm = oldVnode.elm, parentElm = nodeOps.parentNode(oldElm); if (createElm(vnode, insertedVnodeQueue, oldElm._leaveCb ? null : parentElm, nodeOps.nextSibling(oldElm)), isDef(vnode.parent)) for (var ancestor = vnode.parent, patchable = isPatchable(vnode); ancestor; ) { for (var i = 0; i < cbs.destroy.length; ++i) cbs.destroy[i](ancestor); if (ancestor.elm = vnode.elm, patchable) { for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) cbs.create[i$1](emptyNode, ancestor); var insert = ancestor.data.hook.insert; if (insert.merged) for (var i$2 = 1; i$2 < insert.fns.length; i$2++) insert.fns[i$2](); } else registerRef(ancestor); ancestor = ancestor.parent; } isDef(parentElm) ? removeVnodes(0, [ oldVnode ], 0, 0) : isDef(oldVnode.tag) && invokeDestroyHook(oldVnode); } } return invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch), vnode.elm; } isDef(oldVnode) && invokeDestroyHook(oldVnode); }; }({ nodeOps: nodeOps, modules: [ attrs, klass, events, domProps, style, inBrowser ? { create: _enter, activate: _enter, remove: function(vnode, rm) { !0 !== vnode.data.show ? leave(vnode, rm) : rm(); } } : {} ].concat(baseModules) }); isIE9 && document.addEventListener("selectionchange", function() { var el = document.activeElement; el && el.vmodel && trigger(el, "input"); }); var directive = { inserted: function(el, binding, vnode, oldVnode) { "select" === vnode.tag ? (oldVnode.elm && !oldVnode.elm._vOptions ? mergeVNodeHook(vnode, "postpatch", function() { directive.componentUpdated(el, binding, vnode); }) : setSelected(el, binding, vnode.context), el._vOptions = [].map.call(el.options, getValue)) : ("textarea" === vnode.tag || isTextInputType(el.type)) && (el._vModifiers = binding.modifiers, binding.modifiers.lazy || (el.addEventListener("compositionstart", onCompositionStart), el.addEventListener("compositionend", onCompositionEnd), el.addEventListener("change", onCompositionEnd), isIE9 && (el.vmodel = !0))); }, componentUpdated: function(el, binding, vnode) { if ("select" === vnode.tag) { setSelected(el, binding, vnode.context); var prevOptions = el._vOptions, curOptions = el._vOptions = [].map.call(el.options, getValue); if (curOptions.some(function(o, i) { return !looseEqual(o, prevOptions[i]); })) (el.multiple ? binding.value.some(function(v) { return hasNoMatchingOption(v, curOptions); }) : binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, curOptions)) && trigger(el, "change"); } } }; function setSelected(el, binding, vm) { actuallySetSelected(el, binding, vm), (isIE || isEdge) && setTimeout(function() { actuallySetSelected(el, binding, vm); }, 0); } function actuallySetSelected(el, binding, vm) { var value = binding.value, isMultiple = el.multiple; if (!isMultiple || Array.isArray(value)) { for (var selected, option, i = 0, l = el.options.length; i < l; i++) if (option = el.options[i], isMultiple) selected = looseIndexOf(value, getValue(option)) > -1, option.selected !== selected && (option.selected = selected); else if (looseEqual(getValue(option), value)) return void (el.selectedIndex !== i && (el.selectedIndex = i)); isMultiple || (el.selectedIndex = -1); } } function hasNoMatchingOption(value, options) { return options.every(function(o) { return !looseEqual(o, value); }); } function getValue(option) { return "_value" in option ? option._value : option.value; } function onCompositionStart(e) { e.target.composing = !0; } function onCompositionEnd(e) { e.target.composing && (e.target.composing = !1, trigger(e.target, "input")); } function trigger(el, type) { var e = document.createEvent("HTMLEvents"); e.initEvent(type, !0, !0), el.dispatchEvent(e); } function locateNode(vnode) { return !vnode.componentInstance || vnode.data && vnode.data.transition ? vnode : locateNode(vnode.componentInstance._vnode); } var platformDirectives = { model: directive, show: { bind: function(el, ref, vnode) { var value = ref.value, transition$$1 = (vnode = locateNode(vnode)).data && vnode.data.transition, originalDisplay = el.__vOriginalDisplay = "none" === el.style.display ? "" : el.style.display; value && transition$$1 ? (vnode.data.show = !0, enter(vnode, function() { el.style.display = originalDisplay; })) : el.style.display = value ? originalDisplay : "none"; }, update: function(el, ref, vnode) { var value = ref.value; !value != !ref.oldValue && ((vnode = locateNode(vnode)).data && vnode.data.transition ? (vnode.data.show = !0, value ? enter(vnode, function() { el.style.display = el.__vOriginalDisplay; }) : leave(vnode, function() { el.style.display = "none"; })) : el.style.display = value ? el.__vOriginalDisplay : "none"); }, unbind: function(el, binding, vnode, oldVnode, isDestroy) { isDestroy || (el.style.display = el.__vOriginalDisplay); } } }, transitionProps = { name: String, appear: Boolean, css: Boolean, mode: String, type: String, enterClass: String, leaveClass: String, enterToClass: String, leaveToClass: String, enterActiveClass: String, leaveActiveClass: String, appearClass: String, appearActiveClass: String, appearToClass: String, duration: [ Number, String, Object ] }; function getRealChild(vnode) { var compOptions = vnode && vnode.componentOptions; return compOptions && compOptions.Ctor.options.abstract ? getRealChild(getFirstComponentChild(compOptions.children)) : vnode; } function extractTransitionData(comp) { var data = {}, options = comp.$options; for (var key in options.propsData) data[key] = comp[key]; var listeners = options._parentListeners; for (var key$1 in listeners) data[camelize(key$1)] = listeners[key$1]; return data; } function placeholder(h, rawChild) { if (/\d-keep-alive$/.test(rawChild.tag)) return h("keep-alive", { props: rawChild.componentOptions.propsData }); } var isNotTextNode = function(c) { return c.tag || isAsyncPlaceholder(c); }, isVShowDirective = function(d) { return "show" === d.name; }, Transition = { name: "transition", props: transitionProps, abstract: !0, render: function(h) { var this$1 = this, children = this.$slots.default; if (children && (children = children.filter(isNotTextNode)).length) { 0; var mode = this.mode; 0; var rawChild = children[0]; if (function(vnode) { for (;vnode = vnode.parent; ) if (vnode.data.transition) return !0; }(this.$vnode)) return rawChild; var child = getRealChild(rawChild); if (!child) return rawChild; if (this._leaving) return placeholder(h, rawChild); var id = "__transition-" + this._uid + "-"; child.key = null == child.key ? child.isComment ? id + "comment" : id + child.tag : isPrimitive(child.key) ? 0 === String(child.key).indexOf(id) ? child.key : id + child.key : child.key; var data = (child.data || (child.data = {})).transition = extractTransitionData(this), oldRawChild = this._vnode, oldChild = getRealChild(oldRawChild); if (child.data.directives && child.data.directives.some(isVShowDirective) && (child.data.show = !0), oldChild && oldChild.data && !function(child, oldChild) { return oldChild.key === child.key && oldChild.tag === child.tag; }(child, oldChild) && !isAsyncPlaceholder(oldChild) && (!oldChild.componentInstance || !oldChild.componentInstance._vnode.isComment)) { var oldData = oldChild.data.transition = extend({}, data); if ("out-in" === mode) return this._leaving = !0, mergeVNodeHook(oldData, "afterLeave", function() { this$1._leaving = !1, this$1.$forceUpdate(); }), placeholder(h, rawChild); if ("in-out" === mode) { if (isAsyncPlaceholder(child)) return oldRawChild; var delayedLeave, performLeave = function() { delayedLeave(); }; mergeVNodeHook(data, "afterEnter", performLeave), mergeVNodeHook(data, "enterCancelled", performLeave), mergeVNodeHook(oldData, "delayLeave", function(leave) { delayedLeave = leave; }); } } return rawChild; } } }, props = extend({ tag: String, moveClass: String }, transitionProps); function callPendingCbs(c) { c.elm._moveCb && c.elm._moveCb(), c.elm._enterCb && c.elm._enterCb(); } function recordPosition(c) { c.data.newPos = c.elm.getBoundingClientRect(); } function applyTranslation(c) { var oldPos = c.data.pos, newPos = c.data.newPos, dx = oldPos.left - newPos.left, dy = oldPos.top - newPos.top; if (dx || dy) { c.data.moved = !0; var s = c.elm.style; s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)", s.transitionDuration = "0s"; } } delete props.mode; var platformComponents = { Transition: Transition, TransitionGroup: { props: props, beforeMount: function() { var this$1 = this, update = this._update; this._update = function(vnode, hydrating) { var restoreActiveInstance = setActiveInstance(this$1); this$1.__patch__(this$1._vnode, this$1.kept, !1, !0), this$1._vnode = this$1.kept, restoreActiveInstance(), update.call(this$1, vnode, hydrating); }; }, render: function(h) { for (var tag = this.tag || this.$vnode.data.tag || "span", map = Object.create(null), prevChildren = this.prevChildren = this.children, rawChildren = this.$slots.default || [], children = this.children = [], transitionData = extractTransitionData(this), i = 0; i < rawChildren.length; i++) { var c = rawChildren[i]; if (c.tag) if (null != c.key && 0 !== String(c.key).indexOf("__vlist")) children.push(c), map[c.key] = c, (c.data || (c.data = {})).transition = transitionData; else ; } if (prevChildren) { for (var kept = [], removed = [], i$1 = 0; i$1 < prevChildren.length; i$1++) { var c$1 = prevChildren[i$1]; c$1.data.transition = transitionData, c$1.data.pos = c$1.elm.getBoundingClientRect(), map[c$1.key] ? kept.push(c$1) : removed.push(c$1); } this.kept = h(tag, null, kept), this.removed = removed; } return h(tag, null, children); }, updated: function() { var children = this.prevChildren, moveClass = this.moveClass || (this.name || "v") + "-move"; children.length && this.hasMove(children[0].elm, moveClass) && (children.forEach(callPendingCbs), children.forEach(recordPosition), children.forEach(applyTranslation), this._reflow = document.body.offsetHeight, children.forEach(function(c) { if (c.data.moved) { var el = c.elm, s = el.style; addTransitionClass(el, moveClass), s.transform = s.WebkitTransform = s.transitionDuration = "", el.addEventListener(transitionEndEvent, el._moveCb = function cb(e) { e && e.target !== el || e && !/transform$/.test(e.propertyName) || (el.removeEventListener(transitionEndEvent, cb), el._moveCb = null, removeTransitionClass(el, moveClass)); }); } })); }, methods: { hasMove: function(el, moveClass) { if (!hasTransition) return !1; if (this._hasMove) return this._hasMove; var clone = el.cloneNode(); el._transitionClasses && el._transitionClasses.forEach(function(cls) { removeClass(clone, cls); }), addClass(clone, moveClass), clone.style.display = "none", this.$el.appendChild(clone); var info = getTransitionInfo(clone); return this.$el.removeChild(clone), this._hasMove = info.hasTransform; } } } }; Vue.config.mustUseProp = function(tag, type, attr) { return "value" === attr && acceptValue(tag) && "button" !== type || "selected" === attr && "option" === tag || "checked" === attr && "input" === tag || "muted" === attr && "video" === tag; }, Vue.config.isReservedTag = isReservedTag, Vue.config.isReservedAttr = isReservedAttr, Vue.config.getTagNamespace = function(tag) { return isSVG(tag) ? "svg" : "math" === tag ? "math" : void 0; }, Vue.config.isUnknownElement = function(tag) { if (!inBrowser) return !0; if (isReservedTag(tag)) return !1; if (tag = tag.toLowerCase(), null != unknownElementCache[tag]) return unknownElementCache[tag]; var el = document.createElement(tag); return tag.indexOf("-") > -1 ? unknownElementCache[tag] = el.constructor === window.HTMLUnknownElement || el.constructor === window.HTMLElement : unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()); }, extend(Vue.options.directives, platformDirectives), extend(Vue.options.components, platformComponents), Vue.prototype.__patch__ = inBrowser ? patch : noop, Vue.prototype.$mount = function(el, hydrating) { return function(vm, el, hydrating) { var updateComponent; return vm.$el = el, vm.$options.render || (vm.$options.render = createEmptyVNode), callHook(vm, "beforeMount"), updateComponent = function() { vm._update(vm._render(), hydrating); }, new Watcher(vm, updateComponent, noop, { before: function() { vm._isMounted && !vm._isDestroyed && callHook(vm, "beforeUpdate"); } }, !0), hydrating = !1, null == vm.$vnode && (vm._isMounted = !0, callHook(vm, "mounted")), vm; }(this, el = el && inBrowser ? function(el) { if ("string" == typeof el) { var selected = document.querySelector(el); return selected || document.createElement("div"); } return el; }(el) : void 0, hydrating); }, inBrowser && setTimeout(function() { config.devtools && devtools && devtools.emit("init", Vue); }, 0), __webpack_exports__.a = Vue; }).call(this, __webpack_require__(28), __webpack_require__(88).setImmediate); }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; (function(j) { __webpack_require__.d(__webpack_exports__, "a", function() { return userscriptLegacy; }); var __awaiter = function(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function(resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; const userscriptLegacy = { set(key, value) { return __awaiter(this, void 0, void 0, function*() { GM_setValue(key, value); }); }, get(key) { return __awaiter(this, void 0, void 0, function*() { return GM_getValue(key); }); }, remove(key) { return __awaiter(this, void 0, void 0, function*() { GM_deleteValue(key); }); }, list() { return __awaiter(this, void 0, void 0, function*() { var reverseArray = {}; return j.$.each(GM_listValues(), function(index, cache) { reverseArray[cache] = index; }), reverseArray; }); }, addStyle(css) { return __awaiter(this, void 0, void 0, function*() { GM_addStyle(css); }); }, version: () => GM_info.script.version, assetUrl: filename => "https://raw.githubusercontent.com/lolamtisch/MALSync/master/assets/assets/" + filename, injectCssResource(res, head) { head.append(j.$("