diff --git a/plugins/dynamix.my.servers/include/myservers1.php b/plugins/dynamix.my.servers/include/myservers1.php index 2254a6198..72ebb27bd 100644 --- a/plugins/dynamix.my.servers/include/myservers1.php +++ b/plugins/dynamix.my.servers/include/myservers1.php @@ -57,7 +57,7 @@ switch ($UPC_ENV) { $upcSrc = 'https://registration-dev-logs.unraid.net/webComps/unraid.min.js'; break; case 'development': - $upcSrc = 'https://launchpad.unraid.test:6969/webComps/unraid.js'; + $upcSrc = 'https://launchpad.unraid.test:6969/webComps/unraid.js?t=' . time(); break; default: // load from webGUI filesystem. $upcSrc = $upcLocalSrc; diff --git a/plugins/dynamix.my.servers/include/myservers2.php b/plugins/dynamix.my.servers/include/myservers2.php index 2b67c6c53..c7874a3d9 100644 --- a/plugins/dynamix.my.servers/include/myservers2.php +++ b/plugins/dynamix.my.servers/include/myservers2.php @@ -522,6 +522,11 @@ 'open' => _('Open Dropdown'), ], 'yargYePirate' => _('Oh no! Are you pirating Unraid OS?
Are you ready to buy a real license?'), + 'keyFileNotValid' => _('Key file not valid'), + 'installFailed' => [ + 'heading' => _('My Servers plugin install failed'), + 'message' => _('The My Servers plugin install is incomplete').'. '._('Please uninstall and reinstall the My Servers plugin').'. '._('Be sure to let the install complete before you close the window').'.', + ], ], ]; $configErrorEnum = [ // used to map $var['configValid'] value to mimic unraid-api's `configError` ENUM @@ -531,11 +536,18 @@ "withdrawn" => 'WITHDRAWN', ]; $nginx = parse_ini_file('/var/local/emhttp/nginx.ini'); - $plgInstalled = (file_exists('/var/log/plugins/dynamix.unraid.net.plg') - ? 'dynamix.unraid.net.plg' - : (file_exists('/var/log/plugins/dynamix.unraid.net.staging.plg') - ? 'dynamix.unraid.net.staging.plg' - : '')); + + $plgInstalled = ''; + if (!file_exists('/var/lib/pkgtools/packages/dynamix.unraid.net') && !file_exists('/var/lib/pkgtools/packages/dynamix.unraid.net.staging')) { + $plgInstalled = ''; // base OS only, My Servers plugin not installed • show ad for My Servers + } else { + // plugin is installed but if the unraid-api file doesn't fully install it's a failed install + if (file_exists('/var/lib/pkgtools/packages/dynamix.unraid.net')) $plgInstalled = 'dynamix.unraid.net.plg'; + if (file_exists('/var/lib/pkgtools/packages/dynamix.unraid.net.staging')) $plgInstalled = 'dynamix.unraid.net.staging.plg'; + // plugin install failed • append failure detected so we can show warning about failed install via UPC + if (!file_exists('/usr/local/sbin/unraid-api')) $plgInstalled = $plgInstalled . '_installFailed'; + } + $serverstate = [ // feeds server vars to Vuex store in a slightly different array than state.php "avatar" => (!empty($remote['avatar']) && $plgInstalled) ? $remote['avatar'] : '', "config" => [ @@ -597,7 +609,7 @@ csrf="" displaydesc="" expiretime="" - hide-my-servers="" + hide-my-servers="" locale="" locale-messages="" metacolor="" diff --git a/plugins/dynamix.my.servers/webComps/licenses.txt b/plugins/dynamix.my.servers/webComps/licenses.txt index 2b121c213..6ede82fb5 100644 --- a/plugins/dynamix.my.servers/webComps/licenses.txt +++ b/plugins/dynamix.my.servers/webComps/licenses.txt @@ -358,6 +358,31 @@ SOFTWARE. backo2 MIT +clipboard +MIT +MIT License + +Copyright (c) Zeno Rocha + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + css-loader MIT Copyright JS Foundation and other contributors @@ -1236,57 +1261,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -lodash -MIT -Copyright OpenJS Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. - - node-libs-browser MIT (The MIT License) @@ -1549,6 +1523,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +vue-clipboard2 +MIT +The MIT License (MIT) + +Copyright (c) 2017 Inndy + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + vue-i18n MIT The MIT License (MIT) diff --git a/plugins/dynamix.my.servers/webComps/unraid.min.js b/plugins/dynamix.my.servers/webComps/unraid.min.js index b040352fa..3df1b5e21 100644 --- a/plugins/dynamix.my.servers/webComps/unraid.min.js +++ b/plugins/dynamix.my.servers/webComps/unraid.min.js @@ -1,5 +1,5 @@ /*! UPC -* vuejs-regwiz v1.2.0 +* vuejs-regwiz v1.3.0 * Licenses @ licenses.txt * * Unraid is a registered trademark of Lime Technology, Inc. @@ -14,19 +14,19 @@ * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. */ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="5a74")}({"0012":function(e,t,r){e.exports=r("a7b2").Observable},"0483":function(e,t,r){var n=r("4767");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("35d6").default;e.exports.__inject__=function(e){i("4ead7b8a",n,e)}},"04b4":function(e,t,r){"use strict";function n(e){var t=e.split(/\r\n|[\n\r]/g),r=function(e){for(var t=null,r=1;r0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!n||o||r,s="";return!a||n&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}))},"0b64":function(e,t){function r(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}},"0d7c":function(e,t,r){(function(t){const r="object"==typeof t&&Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"})&&Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).NODE_DEBUG&&/\bsemver\b/i.test(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r}).call(this,r("4362"))},"0e49":function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)>=0},"10f4":function(e,t,r){var n=r("8dac");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("35d6").default;e.exports.__inject__=function(e){i("5292f54b",n,e)}},"1eca":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"==typeof e}},2251:function(e,t,r){"use strict";r.r(t);var n=r("3661");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"22c0":function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r("fe45"),i=r("0d7c"),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;i(n,t),s[e]=n,a[n]=t,o[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),l("FULL",`^${a[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),l("LOOSE",`^${a[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",a[s.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),l("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",a[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},"22c9":function(e,t,r){"use strict";r.r(t);var n=r("470a");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"23ad":function(e,t,r){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,r,n){var i=r.prototype,o=i.format;n.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var r=this.$locale().formats,n=function(t,r){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,i){var o=i&&i.toUpperCase();return n||r[i]||e[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))}(t,void 0===r?{}:r);return o.call(this,n)}}}()},2426:function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)<0},"24fb":function(e,t,r){"use strict";function n(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var i=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(r," */")}(n),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o{const n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:en(t,e)}},"2a99":function(e,t,r){var n=r("544f");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("35d6").default;e.exports.__inject__=function(e){i("4807ae8b",n,e)}},"2b0e":function(e,t,r){"use strict";r.r(t),function(e){ +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="5a74")}({"0012":function(e,t,r){e.exports=r("a7b2").Observable},"0483":function(e,t,r){var n=r("4767");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("35d6").default;e.exports.__inject__=function(e){i("4ead7b8a",n,e)}},"04b4":function(e,t,r){"use strict";function n(e){var t=e.split(/\r\n|[\n\r]/g),r=function(e){for(var t=null,r=1;r0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!n||o||r,s="";return!a||n&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}))},"0b64":function(e,t){function r(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}},"0d7c":function(e,t,r){(function(t){const r="object"==typeof t&&Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"})&&Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).NODE_DEBUG&&/\bsemver\b/i.test(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r}).call(this,r("4362"))},"0e49":function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)>=0},"10f4":function(e,t,r){var n=r("8dac");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("35d6").default;e.exports.__inject__=function(e){i("5292f54b",n,e)}},"1eca":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"==typeof e}},2251:function(e,t,r){"use strict";r.r(t);var n=r("3661");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"22c0":function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r("fe45"),i=r("0d7c"),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;i(n,t),s[e]=n,a[n]=t,o[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),l("FULL",`^${a[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),l("LOOSE",`^${a[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",a[s.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),l("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",a[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},"22c9":function(e,t,r){"use strict";r.r(t);var n=r("470a");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"23ad":function(e,t,r){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,r,n){var i=r.prototype,o=i.format;n.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var r=this.$locale().formats,n=function(t,r){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,i){var o=i&&i.toUpperCase();return n||r[i]||e[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))}(t,void 0===r?{}:r);return o.call(this,n)}}}()},2426:function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)<0},"24fb":function(e,t,r){"use strict";function n(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var i=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(r," */")}(n),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o{const n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:en(t,e)}},"2a99":function(e,t,r){var n=r("544f");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("35d6").default;e.exports.__inject__=function(e){i("4807ae8b",n,e)}},"2b0e":function(e,t,r){"use strict";r.r(t),function(e){ /*! * Vue.js v2.6.14 * (c) 2014-2021 Evan You * Released under the MIT License. */ -var r=Object.freeze({});function n(e){return null==e}function i(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function y(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var w=/-(\w)/g,x=y((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),_=y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),E=/\B([A-Z])/g,S=y((function(e){return e.replace(E,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function O(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function T(e,t){for(var r in t)e[r]=t[r];return e}function I(e){for(var t={},r=0;r0,K=Y&&Y.indexOf("edge/")>0,X=(Y&&Y.indexOf("android"),Y&&/iphone|ipad|ipod|ios/.test(Y)||"ios"===H),J=(Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y),Y&&Y.match(/firefox\/(\d+)/)),Z={}.watch,ee=!1;if(B)try{var te={};Object.defineProperty(te,"passive",{get:function(){ee=!0}}),window.addEventListener("test-passive",null,te)}catch(e){}var re=function(){return void 0===G&&(G=!B&&!W&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),G},ne=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}var oe,ae="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);oe="undefined"!=typeof Set&&ie(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=R,ce=0,le=function(){this.id=ce++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){g(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,r=e.length;t-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Ve(String,i.type);(c<0||s0&&(ut((c=e(c,(r||"")+"_"+s))[0])&&ut(u)&&(p[l]=ge(u.text+c[0].text),c.shift()),p.push.apply(p,c)):a(c)?ut(u)?p[l]=ge(u.text+c):""!==c&&p.push(ge(c)):ut(c)&&ut(u)?p[l]=ge(u.text+c.text):(o(t._isVList)&&i(c.tag)&&n(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+s+"__"),p.push(c)));return p}(e):void 0}function ut(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function pt(e,t){if(e){for(var r=Object.create(null),n=ae?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=gt(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=vt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function gt(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:lt(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!ht(t))?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function vt(e,t){return function(){return e[t]}}function bt(e,t){var r,n,o,a,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),n=0,o=e.length;ndocument.createEvent("Event").timeStamp&&(fr=function(){return hr.now()})}function mr(){var e,t;for(dr=fr(),ur=!0,ar.sort((function(e,t){return e.id-t.id})),pr=0;prpr&&ar[r].id>e.id;)r--;ar.splice(r+1,0,e)}else ar.push(e);lr||(lr=!0,tt(mr))}}(this)},vr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user){var r='callback for watcher "'+this.expression+'"';ze(this.cb,this.vm,[e,t],this.vm,r)}else this.cb.call(this.vm,e,t)}}},vr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},vr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var br={enumerable:!0,configurable:!0,get:R,set:R};function yr(e,t,r){br.get=function(){return this[t][r]},br.set=function(e){this[t][r]=e},Object.defineProperty(e,r,br)}function wr(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];!e.$parent||_e(!1);var o=function(o){i.push(o);var a=Le(o,t,r,e);ke(n,o,a),o in e||yr(e,"_props",o)};for(var a in t)o(a);_e(!0)}(e,t.props),t.methods&&function(e,t){for(var r in e.$options.props,t)e[r]="function"!=typeof t[r]?R:k(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return Ge(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);for(;i--;){var o=r[i];n&&b(n,o)||F(o)||yr(e,"_data",o)}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=re();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;n||(r[i]=new vr(e,a||R,R,xr)),i in e||_r(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function Pr(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=a.name;s&&!t(s)&&Nr(r,o,n,i)}}}function Nr(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,g(r,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=Or++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=De(Tr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=dt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,r,n,i){return Vt(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return Vt(e,t,r,n,i,!0)};var o=n&&n.data;ke(e,"$attrs",o&&o.attrs||r,null,!0),ke(e,"$listeners",t._parentListeners||r,null,!0)}(t),or(t,"beforeCreate"),function(e){var t=pt(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach((function(r){ke(e,r,t[r])})),_e(!0))}(t),wr(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),or(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(Ir),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Oe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,r){var n=this;if(l(t))return kr(n,e,t,r);(r=r||{}).user=!0;var i=new vr(n,e,t,r);if(r.immediate){var o='callback for immediate watcher "'+i.expression+'"';pe(),ze(t,n,[i.value],n,o),de()}return function(){i.teardown()}}}(Ir),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?O(r):r;for(var n=O(arguments,1),i='event handler for "'+e+'"',o=0,a=r.length;oparseInt(this.max)&&Nr(t,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Nr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Pr(e,(function(e){return Cr(t,e)}))})),this.$watch("exclude",(function(t){Pr(e,(function(e){return!Cr(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Qt(e),r=t&&t.componentOptions;if(r){var n=Ar(r),i=this.include,o=this.exclude;if(i&&(!n||!Cr(i,n))||o&&n&&Cr(o,n))return t;var a=this.cache,s=this.keys,c=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,g(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}}};(function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:T,mergeOptions:De,defineReactive:ke},e.set=Oe,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),U.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Dr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=O(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),Rr(e),function(e){U.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&l(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}(e)})(Ir),Object.defineProperty(Ir.prototype,"$isServer",{get:re}),Object.defineProperty(Ir.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ir,"FunctionalRenderContext",{value:Nt}),Ir.version="2.6.14";var Ur=h("style,class"),Lr=h("input,textarea,option,select,progress"),jr=h("contenteditable,draggable,spellcheck"),Fr=h("events,caret,typing,plaintext-only"),$r=h("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,truespeed,typemustmatch,visible"),Vr="http://www.w3.org/1999/xlink",Gr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},zr=function(e){return Gr(e)?e.slice(6,e.length):""},Br=function(e){return null==e||!1===e};function Wr(e){for(var t=e.data,r=e,n=e;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=Hr(n.data,t));for(;i(r=r.parent);)r&&r.data&&(t=Hr(t,r.data));return function(e,t){return i(e)||i(t)?Yr(e,qr(t)):""}(t.staticClass,t.class)}function Hr(e,t){return{staticClass:Yr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Yr(e,t){return e?t?e+" "+t:e:t||""}function qr(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,o=e.length;n-1?bn(e,t,r):$r(t)?Br(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):jr(t)?e.setAttribute(t,function(e,t){return Br(t)||"false"===t?"false":"contenteditable"===e&&Fr(t)?t:"true"}(t,r)):Gr(t)?Br(r)?e.removeAttributeNS(Vr,zr(t)):e.setAttributeNS(Vr,t,r):bn(e,t,r)}function bn(e,t,r){if(Br(r))e.removeAttribute(t);else{if(q&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var yn={create:gn,update:gn};function wn(e,t){var r=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Wr(t),c=r._transitionClasses;i(c)&&(s=Yr(s,qr(c))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var xn,_n={create:wn,update:wn};function En(e){if(i(e.__r)){var t=q?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}i(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}function Sn(e,t,r){var n=xn;return function i(){var o=t.apply(null,arguments);null!==o&&Tn(e,i,r,n)}}var kn=Ye&&!(J&&Number(J[1])<=53);function On(e,t,r,n){if(kn){var i=dr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}xn.addEventListener(e,t,ee?{capture:r,passive:n}:r)}function Tn(e,t,r,n){(n||xn).removeEventListener(e,t._wrapper||t,r)}function In(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};xn=t.elm,En(r),at(r,i,On,Tn,Sn,t.context),xn=void 0}}var Rn,An={create:In,update:In};function Cn(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var r,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(r in i(c.__ob__)&&(c=t.data.domProps=T({},c)),s)r in c||(a[r]="");for(r in c){if(o=c[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var l=n(o)?"":String(o);Pn(a,l)&&(a.value=l)}else if("innerHTML"===r&&Xr(a.tagName)&&n(a.innerHTML)){(Rn=Rn||document.createElement("div")).innerHTML=""+o+"";for(var u=Rn.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(o!==s[r])try{a[r]=o}catch(e){}}}}function Pn(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}(e,t)||function(e,t){var r=e.value,n=e._vModifiers;if(i(n)){if(n.number)return f(r)!==f(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var Nn={create:Cn,update:Cn},Mn=y((function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Dn(e){var t=Un(e.style);return e.staticStyle?T(e.staticStyle,t):t}function Un(e){return Array.isArray(e)?I(e):"string"==typeof e?Mn(e):e}var Ln,jn=/^--/,Fn=/\s*!important$/,$n=function(e,t,r){if(jn.test(t))e.style.setProperty(t,r);else if(Fn.test(r))e.style.setProperty(S(t),r.replace(Fn,""),"important");else{var n=Gn(t);if(Array.isArray(r))for(var i=0,o=r.length;i-1?t.split(Wn).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function Yn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Wn).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?e.setAttribute("class",r):e.removeAttribute("class")}}function qn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,Qn(e.name||"v")),T(t,e),t}return"string"==typeof e?Qn(e):void 0}}var Qn=y((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Kn=B&&!Q,Xn="transition",Jn="animation",Zn="transition",ei="transitionend",ti="animation",ri="animationend";Kn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zn="WebkitTransition",ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ti="WebkitAnimation",ri="webkitAnimationEnd"));var ni=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ii(e){ni((function(){ni(e)}))}function oi(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),Hn(e,t))}function ai(e,t){e._transitionClasses&&g(e._transitionClasses,t),Yn(e,t)}function si(e,t,r){var n=li(e,t),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===Xn?ei:ri,c=0,l=function(){e.removeEventListener(s,u),r()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c0&&(r=Xn,u=a,p=o.length):t===Jn?l>0&&(r=Jn,u=l,p=c.length):p=(r=(u=Math.max(a,l))>0?a>l?Xn:Jn:null)?r===Xn?o.length:c.length:0,{type:r,timeout:u,propCount:p,hasTransform:r===Xn&&ci.test(n[Zn+"Property"])}}function ui(e,t){for(;e.length1}function gi(e,t){!0!==t.data.show&&di(t)}var vi=function(e){var t,r,s={},c=e.modules,l=e.nodeOps;for(t=0;th?w(e,n(r[v+1])?null:r[v+1].elm,r,f,v,o):f>v&&_(t,d,h)}function k(e,t,r,n){for(var o=r;o-1,a.selected!==o&&(a.selected=o);else if(P(_i(a),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function xi(e,t){return t.every((function(t){return!P(t,e)}))}function _i(e){return"_value"in e?e._value:e.value}function Ei(e){e.target.composing=!0}function Si(e){e.target.composing&&(e.target.composing=!1,ki(e.target,"input"))}function ki(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function Oi(e){return!e.componentInstance||e.data&&e.data.transition?e:Oi(e.componentInstance._vnode)}var Ti={model:bi,show:{bind:function(e,t,r){var n=t.value,i=(r=Oi(r)).data&&r.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(r.data.show=!0,di(r,(function(){e.style.display=o}))):e.style.display=n?o:"none"},update:function(e,t,r){var n=t.value;!n!=!t.oldValue&&((r=Oi(r)).data&&r.data.transition?(r.data.show=!0,n?di(r,(function(){e.style.display=e.__vOriginalDisplay})):fi(r,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ii={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 Ri(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ri(Qt(t.children)):e}function Ai(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var i=r._parentListeners;for(var o in i)t[x(o)]=i[o];return t}function Ci(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Pi=function(e){return e.tag||ht(e)},Ni=function(e){return"show"===e.name},Mi={name:"transition",props:Ii,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(Pi)).length){var n=this.mode,i=r[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ri(i);if(!o)return i;if(this._leaving)return Ci(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ai(this),l=this._vnode,u=Ri(l);if(o.data.directives&&o.data.directives.some(Ni)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!ht(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var p=u.data.transition=T({},c);if("out-in"===n)return this._leaving=!0,st(p,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ci(e,i);if("in-out"===n){if(ht(o))return l;var d,f=function(){d()};st(c,"afterEnter",f),st(c,"enterCancelled",f),st(p,"delayLeave",(function(e){d=e}))}}return i}}},Di=T({tag:String,moveClass:String},Ii);function Ui(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Li(e){e.data.newPos=e.elm.getBoundingClientRect()}function ji(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,i=t.top-r.top;if(n||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Di.mode;var Fi={Transition:Mi,TransitionGroup:{props:Di,beforeMount:function(){var e=this,t=this._update;this._update=function(r,n){var i=tr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ai(this),s=0;s-1?Zr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Zr[e]=/HTMLUnknownElement/.test(t.toString())},T(Ir.options.directives,Ti),T(Ir.options.components,Fi),Ir.prototype.__patch__=B?vi:R,Ir.prototype.$mount=function(e,t){return function(e,t,r){var n;return e.$el=t,e.$options.render||(e.$options.render=me),or(e,"beforeMount"),n=function(){e._update(e._render(),r)},new vr(e,n,R,{before:function(){e._isMounted&&!e._isDestroyed&&or(e,"beforeUpdate")}},!0),r=!1,null==e.$vnode&&(e._isMounted=!0,or(e,"mounted")),e}(this,e=e&&B?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},B&&setTimeout((function(){j.devtools&&ne&&ne.emit("init",Ir)}),0),t.default=Ir}.call(this,r("c8ba"))},"2f62":function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return S})),r.d(t,"c",(function(){return E})),r.d(t,"d",(function(){return _})),r.d(t,"e",(function(){return x}));var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){n.emit("vuex:action",e,t)}),{prepend:!0}))}function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var r=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(r)return r.copy;var n=Array.isArray(e)?[]:{};return t.push({original:e,copy:n}),Object.keys(e).forEach((function(r){n[r]=o(e[r],t)})),n}function a(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function s(e){return null!==e&&"object"==typeof e}var c=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(e,t){this._children[e]=t},c.prototype.removeChild=function(e){delete this._children[e]},c.prototype.getChild=function(e){return this._children[e]},c.prototype.hasChild=function(e){return e in this._children},c.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},c.prototype.forEachChild=function(e){a(this._children,e)},c.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},c.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},c.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(c.prototype,l);var u,p=function(e){this.register([],e,!1)};p.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},p.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},p.prototype.update=function(e){!function e(t,r,n){if(r.update(n),n.modules)for(var i in n.modules){if(!r.getChild(i))return;e(t.concat(i),r.getChild(i),n.modules[i])}}([],this.root,e)},p.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var i=new c(t,r);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&a(t.modules,(function(t,i){n.register(e.concat(i),t,r)}))},p.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},p.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var d=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&w(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,r){return s.call(o,e,t,r)},this.strict=n;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),r.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:u.config.devtools)&&i(this)},f={state:{configurable:!0}};function h(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function m(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;v(e,r,[],e._modules.root,!0),g(e,r,t)}function g(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};a(i,(function(t,r){o[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:o}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),u.nextTick((function(){return n.$destroy()})))}function v(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=n),!o&&!i){var s=b(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){u.set(s,c,n.state)}))}var l=n.context=function(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:n?e.commit:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return b(e.state,r)}}}),i}(e,a,r);n.forEachMutation((function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){r.call(e,n.state,t)}))}(e,a+r,t,l)})),n.forEachAction((function(t,r){var n=t.root?r:a+r,i=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"==typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,n,i,l)})),n.forEachGetter((function(t,r){!function(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)})}(e,a+r,t,l)})),n.forEachChild((function(n,o){v(e,t,r.concat(o),n,i)}))}function b(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,r){return s(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function w(e){u&&e===u|| +var r=Object.freeze({});function n(e){return null==e}function i(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function y(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var w=/-(\w)/g,x=y((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),_=y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),E=/\B([A-Z])/g,S=y((function(e){return e.replace(E,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function O(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function T(e,t){for(var r in t)e[r]=t[r];return e}function I(e){for(var t={},r=0;r0,K=q&&q.indexOf("edge/")>0,X=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===H),J=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),Z={}.watch,ee=!1;if(B)try{var te={};Object.defineProperty(te,"passive",{get:function(){ee=!0}}),window.addEventListener("test-passive",null,te)}catch(e){}var re=function(){return void 0===G&&(G=!B&&!W&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),G},ne=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}var oe,ae="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);oe="undefined"!=typeof Set&&ie(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=A,ce=0,le=function(){this.id=ce++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){g(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,r=e.length;t-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Ve(String,i.type);(c<0||s0&&(ut((c=e(c,(r||"")+"_"+s))[0])&&ut(u)&&(p[l]=ge(u.text+c[0].text),c.shift()),p.push.apply(p,c)):a(c)?ut(u)?p[l]=ge(u.text+c):""!==c&&p.push(ge(c)):ut(c)&&ut(u)?p[l]=ge(u.text+c.text):(o(t._isVList)&&i(c.tag)&&n(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+s+"__"),p.push(c)));return p}(e):void 0}function ut(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function pt(e,t){if(e){for(var r=Object.create(null),n=ae?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=gt(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=vt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function gt(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:lt(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!ht(t))?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function vt(e,t){return function(){return e[t]}}function bt(e,t){var r,n,o,a,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),n=0,o=e.length;ndocument.createEvent("Event").timeStamp&&(fr=function(){return hr.now()})}function mr(){var e,t;for(dr=fr(),ur=!0,ar.sort((function(e,t){return e.id-t.id})),pr=0;prpr&&ar[r].id>e.id;)r--;ar.splice(r+1,0,e)}else ar.push(e);lr||(lr=!0,tt(mr))}}(this)},vr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user){var r='callback for watcher "'+this.expression+'"';ze(this.cb,this.vm,[e,t],this.vm,r)}else this.cb.call(this.vm,e,t)}}},vr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},vr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var br={enumerable:!0,configurable:!0,get:A,set:A};function yr(e,t,r){br.get=function(){return this[t][r]},br.set=function(e){this[t][r]=e},Object.defineProperty(e,r,br)}function wr(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];!e.$parent||_e(!1);var o=function(o){i.push(o);var a=Le(o,t,r,e);ke(n,o,a),o in e||yr(e,"_props",o)};for(var a in t)o(a);_e(!0)}(e,t.props),t.methods&&function(e,t){for(var r in e.$options.props,t)e[r]="function"!=typeof t[r]?A:k(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return Ge(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);for(;i--;){var o=r[i];n&&b(n,o)||F(o)||yr(e,"_data",o)}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=re();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;n||(r[i]=new vr(e,a||A,A,xr)),i in e||_r(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function Pr(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=a.name;s&&!t(s)&&Nr(r,o,n,i)}}}function Nr(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,g(r,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=Or++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=De(Tr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=dt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,r,n,i){return Vt(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return Vt(e,t,r,n,i,!0)};var o=n&&n.data;ke(e,"$attrs",o&&o.attrs||r,null,!0),ke(e,"$listeners",t._parentListeners||r,null,!0)}(t),or(t,"beforeCreate"),function(e){var t=pt(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach((function(r){ke(e,r,t[r])})),_e(!0))}(t),wr(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),or(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(Ir),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Oe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,r){var n=this;if(l(t))return kr(n,e,t,r);(r=r||{}).user=!0;var i=new vr(n,e,t,r);if(r.immediate){var o='callback for immediate watcher "'+i.expression+'"';pe(),ze(t,n,[i.value],n,o),de()}return function(){i.teardown()}}}(Ir),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?O(r):r;for(var n=O(arguments,1),i='event handler for "'+e+'"',o=0,a=r.length;oparseInt(this.max)&&Nr(t,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Nr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Pr(e,(function(e){return Cr(t,e)}))})),this.$watch("exclude",(function(t){Pr(e,(function(e){return!Cr(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Qt(e),r=t&&t.componentOptions;if(r){var n=Rr(r),i=this.include,o=this.exclude;if(i&&(!n||!Cr(i,n))||o&&n&&Cr(o,n))return t;var a=this.cache,s=this.keys,c=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,g(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}}};(function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:T,mergeOptions:De,defineReactive:ke},e.set=Oe,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),U.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Dr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=O(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),Ar(e),function(e){U.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&l(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}(e)})(Ir),Object.defineProperty(Ir.prototype,"$isServer",{get:re}),Object.defineProperty(Ir.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ir,"FunctionalRenderContext",{value:Nt}),Ir.version="2.6.14";var Ur=h("style,class"),Lr=h("input,textarea,option,select,progress"),jr=h("contenteditable,draggable,spellcheck"),Fr=h("events,caret,typing,plaintext-only"),$r=h("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,truespeed,typemustmatch,visible"),Vr="http://www.w3.org/1999/xlink",Gr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},zr=function(e){return Gr(e)?e.slice(6,e.length):""},Br=function(e){return null==e||!1===e};function Wr(e){for(var t=e.data,r=e,n=e;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=Hr(n.data,t));for(;i(r=r.parent);)r&&r.data&&(t=Hr(t,r.data));return function(e,t){return i(e)||i(t)?qr(e,Yr(t)):""}(t.staticClass,t.class)}function Hr(e,t){return{staticClass:qr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function qr(e,t){return e?t?e+" "+t:e:t||""}function Yr(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,o=e.length;n-1?bn(e,t,r):$r(t)?Br(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):jr(t)?e.setAttribute(t,function(e,t){return Br(t)||"false"===t?"false":"contenteditable"===e&&Fr(t)?t:"true"}(t,r)):Gr(t)?Br(r)?e.removeAttributeNS(Vr,zr(t)):e.setAttributeNS(Vr,t,r):bn(e,t,r)}function bn(e,t,r){if(Br(r))e.removeAttribute(t);else{if(Y&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var yn={create:gn,update:gn};function wn(e,t){var r=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Wr(t),c=r._transitionClasses;i(c)&&(s=qr(s,Yr(c))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var xn,_n={create:wn,update:wn};function En(e){if(i(e.__r)){var t=Y?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}i(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}function Sn(e,t,r){var n=xn;return function i(){var o=t.apply(null,arguments);null!==o&&Tn(e,i,r,n)}}var kn=qe&&!(J&&Number(J[1])<=53);function On(e,t,r,n){if(kn){var i=dr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}xn.addEventListener(e,t,ee?{capture:r,passive:n}:r)}function Tn(e,t,r,n){(n||xn).removeEventListener(e,t._wrapper||t,r)}function In(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};xn=t.elm,En(r),at(r,i,On,Tn,Sn,t.context),xn=void 0}}var An,Rn={create:In,update:In};function Cn(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var r,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(r in i(c.__ob__)&&(c=t.data.domProps=T({},c)),s)r in c||(a[r]="");for(r in c){if(o=c[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var l=n(o)?"":String(o);Pn(a,l)&&(a.value=l)}else if("innerHTML"===r&&Xr(a.tagName)&&n(a.innerHTML)){(An=An||document.createElement("div")).innerHTML=""+o+"";for(var u=An.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(o!==s[r])try{a[r]=o}catch(e){}}}}function Pn(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}(e,t)||function(e,t){var r=e.value,n=e._vModifiers;if(i(n)){if(n.number)return f(r)!==f(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var Nn={create:Cn,update:Cn},Mn=y((function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Dn(e){var t=Un(e.style);return e.staticStyle?T(e.staticStyle,t):t}function Un(e){return Array.isArray(e)?I(e):"string"==typeof e?Mn(e):e}var Ln,jn=/^--/,Fn=/\s*!important$/,$n=function(e,t,r){if(jn.test(t))e.style.setProperty(t,r);else if(Fn.test(r))e.style.setProperty(S(t),r.replace(Fn,""),"important");else{var n=Gn(t);if(Array.isArray(r))for(var i=0,o=r.length;i-1?t.split(Wn).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function qn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Wn).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?e.setAttribute("class",r):e.removeAttribute("class")}}function Yn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,Qn(e.name||"v")),T(t,e),t}return"string"==typeof e?Qn(e):void 0}}var Qn=y((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Kn=B&&!Q,Xn="transition",Jn="animation",Zn="transition",ei="transitionend",ti="animation",ri="animationend";Kn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zn="WebkitTransition",ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ti="WebkitAnimation",ri="webkitAnimationEnd"));var ni=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ii(e){ni((function(){ni(e)}))}function oi(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),Hn(e,t))}function ai(e,t){e._transitionClasses&&g(e._transitionClasses,t),qn(e,t)}function si(e,t,r){var n=li(e,t),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===Xn?ei:ri,c=0,l=function(){e.removeEventListener(s,u),r()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c0&&(r=Xn,u=a,p=o.length):t===Jn?l>0&&(r=Jn,u=l,p=c.length):p=(r=(u=Math.max(a,l))>0?a>l?Xn:Jn:null)?r===Xn?o.length:c.length:0,{type:r,timeout:u,propCount:p,hasTransform:r===Xn&&ci.test(n[Zn+"Property"])}}function ui(e,t){for(;e.length1}function gi(e,t){!0!==t.data.show&&di(t)}var vi=function(e){var t,r,s={},c=e.modules,l=e.nodeOps;for(t=0;th?w(e,n(r[v+1])?null:r[v+1].elm,r,f,v,o):f>v&&_(t,d,h)}function k(e,t,r,n){for(var o=r;o-1,a.selected!==o&&(a.selected=o);else if(P(_i(a),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function xi(e,t){return t.every((function(t){return!P(t,e)}))}function _i(e){return"_value"in e?e._value:e.value}function Ei(e){e.target.composing=!0}function Si(e){e.target.composing&&(e.target.composing=!1,ki(e.target,"input"))}function ki(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function Oi(e){return!e.componentInstance||e.data&&e.data.transition?e:Oi(e.componentInstance._vnode)}var Ti={model:bi,show:{bind:function(e,t,r){var n=t.value,i=(r=Oi(r)).data&&r.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(r.data.show=!0,di(r,(function(){e.style.display=o}))):e.style.display=n?o:"none"},update:function(e,t,r){var n=t.value;!n!=!t.oldValue&&((r=Oi(r)).data&&r.data.transition?(r.data.show=!0,n?di(r,(function(){e.style.display=e.__vOriginalDisplay})):fi(r,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ii={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 Ai(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ai(Qt(t.children)):e}function Ri(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var i=r._parentListeners;for(var o in i)t[x(o)]=i[o];return t}function Ci(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Pi=function(e){return e.tag||ht(e)},Ni=function(e){return"show"===e.name},Mi={name:"transition",props:Ii,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(Pi)).length){var n=this.mode,i=r[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ai(i);if(!o)return i;if(this._leaving)return Ci(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ri(this),l=this._vnode,u=Ai(l);if(o.data.directives&&o.data.directives.some(Ni)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!ht(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var p=u.data.transition=T({},c);if("out-in"===n)return this._leaving=!0,st(p,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ci(e,i);if("in-out"===n){if(ht(o))return l;var d,f=function(){d()};st(c,"afterEnter",f),st(c,"enterCancelled",f),st(p,"delayLeave",(function(e){d=e}))}}return i}}},Di=T({tag:String,moveClass:String},Ii);function Ui(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Li(e){e.data.newPos=e.elm.getBoundingClientRect()}function ji(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,i=t.top-r.top;if(n||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Di.mode;var Fi={Transition:Mi,TransitionGroup:{props:Di,beforeMount:function(){var e=this,t=this._update;this._update=function(r,n){var i=tr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ri(this),s=0;s-1?Zr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Zr[e]=/HTMLUnknownElement/.test(t.toString())},T(Ir.options.directives,Ti),T(Ir.options.components,Fi),Ir.prototype.__patch__=B?vi:A,Ir.prototype.$mount=function(e,t){return function(e,t,r){var n;return e.$el=t,e.$options.render||(e.$options.render=me),or(e,"beforeMount"),n=function(){e._update(e._render(),r)},new vr(e,n,A,{before:function(){e._isMounted&&!e._isDestroyed&&or(e,"beforeUpdate")}},!0),r=!1,null==e.$vnode&&(e._isMounted=!0,or(e,"mounted")),e}(this,e=e&&B?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},B&&setTimeout((function(){j.devtools&&ne&&ne.emit("init",Ir)}),0),t.default=Ir}.call(this,r("c8ba"))},"2f62":function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return S})),r.d(t,"c",(function(){return E})),r.d(t,"d",(function(){return _})),r.d(t,"e",(function(){return x}));var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){n.emit("vuex:action",e,t)}),{prepend:!0}))}function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var r=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(r)return r.copy;var n=Array.isArray(e)?[]:{};return t.push({original:e,copy:n}),Object.keys(e).forEach((function(r){n[r]=o(e[r],t)})),n}function a(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function s(e){return null!==e&&"object"==typeof e}var c=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(e,t){this._children[e]=t},c.prototype.removeChild=function(e){delete this._children[e]},c.prototype.getChild=function(e){return this._children[e]},c.prototype.hasChild=function(e){return e in this._children},c.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},c.prototype.forEachChild=function(e){a(this._children,e)},c.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},c.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},c.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(c.prototype,l);var u,p=function(e){this.register([],e,!1)};p.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},p.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},p.prototype.update=function(e){!function e(t,r,n){if(r.update(n),n.modules)for(var i in n.modules){if(!r.getChild(i))return;e(t.concat(i),r.getChild(i),n.modules[i])}}([],this.root,e)},p.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var i=new c(t,r);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&a(t.modules,(function(t,i){n.register(e.concat(i),t,r)}))},p.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},p.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var d=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&w(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,r){return s.call(o,e,t,r)},this.strict=n;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),r.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:u.config.devtools)&&i(this)},f={state:{configurable:!0}};function h(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function m(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;v(e,r,[],e._modules.root,!0),g(e,r,t)}function g(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};a(i,(function(t,r){o[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:o}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),u.nextTick((function(){return n.$destroy()})))}function v(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=n),!o&&!i){var s=b(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){u.set(s,c,n.state)}))}var l=n.context=function(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:n?e.commit:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return b(e.state,r)}}}),i}(e,a,r);n.forEachMutation((function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){r.call(e,n.state,t)}))}(e,a+r,t,l)})),n.forEachAction((function(t,r){var n=t.root?r:a+r,i=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"==typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,n,i,l)})),n.forEachGetter((function(t,r){!function(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)})}(e,a+r,t,l)})),n.forEachChild((function(n,o){v(e,t,r.concat(o),n,i)}))}function b(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,r){return s(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function w(e){u&&e===u|| /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ -function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,t.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u=e)}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){},d.prototype.commit=function(e,t,r){var n=this,i=y(e,t,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,n.state)})))},d.prototype.dispatch=function(e,t){var r=this,n=y(e,t),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,r.state)}))}catch(e){}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,r.state)}))}catch(e){}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,r.state,e)}))}catch(e){}t(e)}))}))}},d.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){return h("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},d.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},d.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),r.preserveState),g(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var r=b(t.state,e.slice(0,-1));u.delete(r,e[e.length-1])})),m(this)},d.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,f);var x=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=T(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0})),r})),_=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=T(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),E=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},r[n].vuex=!0})),r})),S=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=T(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r}));function k(e){return function(e){return Array.isArray(e)||s(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function O(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function T(e,t,r){return e._modulesNamespaceMap[r]}function I(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function R(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function A(){var e=new Date;return" @ "+C(e.getHours(),2)+":"+C(e.getMinutes(),2)+":"+C(e.getSeconds(),2)+"."+C(e.getMilliseconds(),3)}function C(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var P={Store:d,install:w,version:"3.6.2",mapState:x,mapMutations:_,mapGetters:E,mapActions:S,createNamespacedHelpers:function(e){return{mapState:x.bind(null,e),mapGetters:E.bind(null,e),mapMutations:_.bind(null,e),mapActions:S.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var p=o(e.state);void 0!==u&&(c&&e.subscribe((function(e,a){var s=o(a);if(r(e,p,s)){var c=A(),l=i(e),d="mutation "+e.type+c;I(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",n(p)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),R(u)}p=s})),l&&e.subscribeAction((function(e,r){if(a(e,r)){var n=A(),i=s(e),o="action "+e.type+n;I(u,o,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),R(u)}})))}}};t.a=P}).call(this,r("c8ba"))},"2f6c":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r("ad67"),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,l=Array.isArray(e),u=[e],p=-1,d=[],f=void 0,h=void 0,m=void 0,g=[],v=[],b=e;do{var y=++p===u.length,w=y&&0!==d.length;if(y){if(h=0===v.length?void 0:g[g.length-1],f=m,m=v.pop(),w){if(l)f=f.slice();else{for(var x={},_=0,E=Object.keys(f);_0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=t,o={};return n.forEach((function(e){o[e]=i[e]})),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return r&&Object.keys(r).forEach((function(e){-1===u.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@"+e+"("+JSON.stringify(r[e])+")":a+="@"+e)})),a}function d(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),r}return null}function f(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function v(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function y(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach((function(e){r[e.name.value]=d(e,t)})),r}return null}function w(e,t){return void 0===t&&(t={}),function(e){return e?e.filter(E).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var r=t[0];Object(i.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}})):[]}(e.directives).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t[n.value.name.value],Object(i.b)(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}))}function x(e,t){return function(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function _(e){return e&&x(["client"],e)&&x(["export"],e)}function E(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(Object(i.b)(1===n.length,12),r=n[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function k(e){for(var t=[],r=1;r1){var n=[];t=ae(t,n);for(var i=1;i My Servers (BETA) features","learnMore":"Learn more","checkoutTheMyServersDocs":"Checkout the My Servers docs","popUp":"Pop-up","backToPopUp":"Back to @:popUp","closePopUp":"Close @:popUp","close":"Close","contactSupport":"Contact Support","lanIp":"LAN IP {0}","continueToUnraid":"Continue to Unraid","year":"year","years":"years","month":"month","months":"months","day":"day","days":"days","hour":"hour","hours":"hours","minute":"minute","minutes":"minutes","second":"second","seconds":"seconds","ago":"ago","basicPlusPro":{"heading":"Thank you for choosing Unraid OS and My Servers!","message":{"registered":"Connect to My Servers by signing in to Unraid.net","upgradeEligible":"To support more storage devices as your server grows, click Upgrade Key."}},"actions":{"purchase":"Purchase Key","upgrade":"Upgrade Key","recover":"Recover Key","replace":"Replace Key","replaceIneligible":"Replace Key Ineligible","startTrial":"Start Free 30 Day Trial","extend":"Extend Trial","signOutUnraidNet":"Sign Out of Unraid.net","redeemActivationCode":"Redeem Activation Code"},"stateData":{"ENOKEYFILE":{"humanReadable":"No Keyfile","heading":"Let\'s unleash your hardware!","message":"

Your server will not be usable until you purchase a Registration key or install a free 30-day Trial key. A Trial key provides all the functionality of a Pro Registration key.

Registration keys are bound to your USB Flash boot device serial number (GUID). Please use a high quality name brand device at least 1GB in size.

Note: USB memory card readers are generally not supported because most do not present unique serial numbers.

Important:

  • Please make sure your server time is accurate to within 5 minutes
  • Please make sure there is a DNS server specified
"},"TRIAL":{"humanReadable":"Trial","heading":"Thank you for choosing Unraid OS!","message":"

Your Trial key includes all the functionality and device support of a Pro key.

After your Trial has reached expiration, your server still functions normally until the next time you Stop the array or reboot your server.

At that point you may either purchase a license key or request a Trial extension.

","_extraMsg":"

You have {parsedExpireTime} remaining on your Trial key.

"},"EEXPIRED":{"humanReadable":"Trial Expired","heading":"Your Trial has expired","message":{"base":"To continue using Unraid OS you may purchase a license key.","extensionNotEligible":"You have used all your Trial extensions. @:stateData.EEXPIRED.message.base","extensionEligible":"@:stateData.EEXPIRED.message.base Alternately, you may request a Trial extension."}},"BASIC":{"humanReadable":"Basic"},"PLUS":{"humanReadable":"Plus"},"PRO":{"humanReadable":"Pro"},"EGUID":{"humanReadable":"GUID Error","error":{"heading":"Registration key / GUID mismatch","message":{"default":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key.","replacementIneligible":"Your Unraid registration key is ineligible for replacement as it has been replaced within the last 12 months.","replacementEligible":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key or Replace Key.","blacklisted":"Your Unraid registration key is ineligible for replacement as it is blacklisted."}}},"ENOKEYFILE2":{"humanReadable":"Missing key file","error":{"heading":"@:stateData.ENOKEYFILE2.humanReadable","message":"It appears that your license key file is corrupted or missing. The key file should be located in the /config directory on your USB Flash boot device. If you do not have a backup copy of your license key file you may install the My Servers (beta) plugin to attempt to recover your key. If this was an expired Trial installation, you may purchase a license key."}},"ETRIAL":{"humanReadable":"Invalid installation","error":{"heading":"@:stateData.ETRIAL.humanReadable","message":"It is not possible to use a Trial key with an existing Unraid OS installation. You may purchase a license key corresponding to this USB Flash device to continue using this installation."}},"ENOKEYFILE1":{"humanReadable":"No Keyfile","error":{"heading":"No USB flash configuration data","message":"There is a problem with your USB Flash device"}},"ENOFLASH":{"humanReadable":"No Flash","error":{"heading":"Cannot access your USB Flash boot device","message":"There is a physical problem accessing your USB Flash boot device"}},"EGUID1":{"humanReadable":"Multiple License Keys Present","error":{"heading":"@:stateData.EGUID1.humanReadable","message":"There are multiple license key files present on your USB flash device and none of them correspond to the USB Flash boot device. Please remove all key files, except the one you want to replace, from the /config directory on your USB Flash boot device. Alternately you may purchase a license key for this USB flash device. If you want to replace one of your license keys with a new key bound to this USB Flash device, please first remove all other key files first."}},"EBLACKLISTED":{"humanReadable":"BLACKLISTED","error":{"heading":"Blacklisted USB Flash GUID","message":"This USB Flash boot device has been blacklisted. This can occur as a result of transferring your license key to a replacement USB Flash device, and you are currently booted from your old USB Flash device. A USB Flash device may also be blacklisted if we discover the serial number is not unique – this is common with USB card readers."}},"EBLACKLISTED1":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash device error","message":"This USB Flash device has an invalid GUID. Please try a different USB Flash device"}},"EBLACKLISTED2":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash has no serial number","message":"@:stateData.EBLACKLISTED.error.message"}},"ENOCONN":{"humanReadable":"Trial Requires Internet Connection","error":{"heading":"Cannot validate Unraid Trial key","message":"Your Trial key requires an internet connection. Please check Settings > Network"}},"STALE":{"humanReadable":"Stale","error":{"heading":"Stale Server","message":"Please refresh the page to ensure you load your latest configuration"}}},"upc":{"avatarAlt":"{0}\'s Avatar","confirmClosure":"Confirm closure then continue to webGUI","closeDropdown":"Close dropdown","openDropdown":"Open dropdown","pleaseConfirmClosureYouHaveOpenPopUp":"Please confirm closure. You have an open pop-up.","trialHasExpiredSeeOptions":"Trial has expired, see options below","errorCertRequiresSignIn":"Sign In before your Unraid.net SSL certificate expires","removeMyServersPlugin":"Remove My Servers plugin","continueUsingMyServers":"Continue using My Servers","confirmMyServersPluginRemoval":"Confirm My Servers plugin removal","removingMyServersPlugin":"Removing My Servers plugin…","enhanceYourExperienceWithMyServers":"Enhance your experience with My Servers","connectYourUnraidnetAccountToGetStarted":"Connect your Unraid.net account to get started","thankYouForInstallingMyServers":"Thank you installing My Servers!","lanIpCopied":"LAN IP Copied","installingMyServers":"Installing My Servers (beta)","noRemoteApikeyRegisteredWithPlg":{"heading":"My Servers Error","msg":"Unraid.net re-authentication required"},"errorTooManyDisks":{"heading":"Too many devices","msg":{"base":"You must upgrade your key to support more devices.","basic":"Your Basic key supports 6 devices.","plus":"Your Plus key supports 12 devices."}},"extraLinks":{"newTab":"Opens {0} in new tab","myServers":"My Servers Dashboard","forums":"Unraid Forums","settings":{"text":"Settings","title":"Settings > Management Access • Unraid.net"}},"meta":{"trial":{"active":{"date":"Trial key expires at {date}","timeDiff":"Trial expires in {timeDiff}"},"expired":{"date":"Trial key expired at {date}","timeDiff":"Trial expired {timeDiff}"}},"uptime":{"date":"Server up since {date}","readable":"Uptime {timeDiff}"}},"myServers":{"heading":"My Servers","beta":"beta","restarting":"Restarting…","errors":{"unraidApi":{"heading":"Unraid API Error","message":"Failed to connect to Unraid API."},"myServers":{"heading":"My Servers Error","message":"Please wait a moment and reload the page."}},"closeDetails":"Close Details","loading":"Loading My Servers data","displayingLastKnown":"Displaying last known server data","mothership":{"connected":"Connected to Mothership","notConnected":"Not Connected to Mothership"},"accessLabels":{"current":"Current server","local":"Local access","offline":"Server Offline","remote":"Remote access","unavailable":"Access unavailable"},"api":{"start":"Restart unraid-api","startTitle":"Executes `unraid-api start`; no terminal needed","stop":"Stop unraid-api"}},"opensNewHttpsWindow":{"base":"Opens new HTTPS window to {0}","signIn":"@:upc.opensNewHttpsWindow.base @:signIn","signOut":"@:upc.opensNewHttpsWindow.base @:signOut","purchase":"@:upc.opensNewHttpsWindow.base @:actions.purchase","upgrade":"@:upc.opensNewHttpsWindow.base @:actions.upgrade"},"signInActions":{"resolve":"@:signIn to resolve","purchaseKey":"@:signIn to @:actions.purchase","purchaseKeyOrExtendTrial":"@:upc.signInActions.purchaseKey or @:actions.extend"}},"wanIpCheck":{"checking":"Checking Wan IPs","avatarAlt":"{0}\'s Avatar","match":"Remark: your WAN IPv4 is {0}","mismatch":"Remark: Unraid\'s WAN IPv4 {0} does not match your client\'s WAN IPv4 {1}. This may indicate a complex network that will not work with this Remote Access solution. Ignore this message if you are currently connected via Remote Access or VPN","resolveError":"DNS issue, unable to resolve wanip4.unraid.net"},"regWizPopUp":{"regWiz":"Registration Wizard","toHome":"To Registration Wizard Home","continueTrial":"Continue Trial","serverInfoToggle":"Toggle server info visibility","youCanSafelyCloseThisWindow":"You can safely close this window","automaticallyClosingIn":"Automatically closing in","byeBye":"bye, bye 👋","browserWillSelfDestructIn":"Browser will self destruct in","closingPopUpMayLeadToErrors":"Closing this pop-up window while actions are being preformed may lead to unintended errors.","goBack":"Go Back","shutDown":"Shut Down","haveAccountSignIn":"Already have an account? Sign In","noAccountSignUp":"Don\'t have an account? Sign Up","willConnectYourServerToMyServers":"This will connect your server to My Servers BETA","serverInfo":{"flash":"Flash","product":"Product","GUID":"GUID","name":"Name","ip":"IP"},"forms":{"displayName":"Display Name","emailAddress":"Email Address","displayNameOrEmailAddress":"@:regWizPopUp.forms.displayName or @:regWizPopUp.forms.emailAddress","displayNameRootMessage":"Use your Unraid.net credentials, not your local server credentials.","honeyPotCopy":"If you fill this field out then your email will not be sent","fieldRequired":"This field is required","submit":"Submit","submitting":"submitting…","notValid":"Form not valid","cancel":"Cancel","confirm":"Confirm","createMyAccount":"Create My Account","subject":"Subject","password":"Password","togglePasswordVisibility":"Toggle Password Visibility","message":"Message","confirmPassword":"Confirm Password","passwordMustMatch":"Password confirmation must match","passwordMinimum":"8 or more characters","comments":"comments","newsletterCopy":"Sign me up for the monthly Unraid newsletter: a digest of recent blog posts, community videos, popular forum threads, product announcements, and more.","terms":{"iAgree":"I agree to the","text":"Terms of Use"}},"routes":{"extendTrial":{"heading":{"loading":"Extending Trial","error":"Trial Extension Failed"},"message":"Not ready to purchase?
Receive an additional 15 days for your trial."},"forgotPassword":{"heading":"Forgot Password","subheading":"After resetting your password come back to the Registration Wizard pop-up window to Sign In and complete your server\'s registration.","resetPasswordNow":"Reset Password Now","backToSignIn":"Back to Sign In"},"signIn":{"heading":{"signIn":"Unraid.net Sign In","recover":"Unraid.net Sign In to Recover Key","replace":"Unraid.net Sign In to Replace Key"},"subheading":"Please sign in with your Unraid.net account","form":{"replacementConditions":{"name":"Acknowledge Replacement Conditions","label":"I acknowledge that replacing a license key results in permanently blacklisting the previous USB Flash GUID."},"label":{"password":{"replace":"Unraid.net account password"}}}},"signUp":{"heading":"Create Unraid.net Account","subheading":"This will start your free 30-day Trial"},"signOut":{"heading":"Unraid.net Sign Out"},"success":{"heading":{"username":"Hi {0}!","default":"Success!"},"subheading":{"extention":"Your trial will expire in 15 days.","newTrial":"Your trial will expire in 30 days."},"signIn":{"tileTitle":{"actionFail":"{0} was not signed in to your Unraid.net account","actionSuccess":"{0} is signed in to your Unraid.net account","loading":"Signing in {0} to Unraid.net account"}},"signOut":{"tileTitle":{"actionFail":"{0} was not signed out of your Unraid.net account","actionSuccess":"{0} was signed out of your Unraid.net account","loading":"Signing out {0} from Unraid.net account"}},"keys":{"trial":"Trial","basic":"Basic","plus":"Plus","pro":"Pro"},"extended":"{0} Key Extended","recovered":"{0} Key Recovered","replaced":"{0} Key Replaced","created":"{0} Key Created","install":{"loading":"Installing {0} Key","error":"{0} Key Install Error","success":"Installed {0} Key","manualInstructions":"To manually install the key paste the key file url into the Key file URL field on the webGUI Registration page and then click Install Key","copyFail":"Unable to copy","copySuccess":"Copied key url!","copyButton":"Copy Key URL","copyBeforeClose":"Please copy the Key URL before closing this window"},"timeout":"Communication with {0} has timed out","loading1":"Please keep this window open.","loading2":"Still working our magic","countdown":{"success":{"prefix":"Auto closing in","text":"You can safely close this window"},"error":{"prefix":"Auto redirecting in","text":"Back to Registration Home","complete":"Back in a flash ⚡️"}}},"troubleshoot":{"heading":{"default":"Troubleshoot","success":"Thank you for contacting Unraid."},"subheading":{"default":"Forgot what Unraid.net account you used? Have a USB flash device that already has an account associated with it? Just give us the details about what happened and we\'ll do our best to get you up and running again.","success":"We have received your e-mail and will respond in the order it was received. While we strive to respond to all requests as quickly as possible, please allow for up to 3 business days for a response."},"relevantServerData":"Your USB Flash GUID and other relevant server data will also be sent"},"verifyEmail":{"heading":"Verify Email","form":{"verificationCode":"verification code","verifyCode":"Paste / Enter code"},"noCode":"Didn\'t get code?"},"whatIsMyServers":{"heading":"What is My Servers?","subheading":"Expand your server\'s capabilities","copy":"With an Unraid.net account you can start using My Servers (beta) which gives you access to the following features:","features":{"secureRemoteAccess":{"heading":"Secure remote access","copy":"Whether you need to add a share, container, or virtual machine, do it all from the webGui from anytime and anywhere using HTTPS. Best of all, all SSL certificates are verified by Let\'s Encrypt, so no browser security warnings."},"realTimeMonitoring":{"heading":"Real-time Monitoring","copy":"Get quick real-time info on the status of your servers such as storage, container, and VM usage. And not just for one server, but all the servers in your Unraid fleet!"},"usbFlashBackup":{"heading":"USB Flash Backup","copy":"Click a button and your flash is automatically backed up to Unraid.net, enabling easy recovery in the event of a device failure. Never self-manage/host your flash backups again!"},"regKeyManagement":{"heading":"Registration key management","copy":"Download any registration key linked to your account. Upgrade keys to higher editions."},"plusMore":{"heading":"Plus more on the way","copy":"All you need is an active internet connection, an Unraid.net account, and the My Servers plugin. Get started by installing the plugin."}}},"replaceKey":{"subheading":{"registered":"A record of your replacement will be sent to your Unraid.net account email address","notRegistered":"A record of your replacement will be sent to this email"}},"notFound":{"subheading":"Page Not Found"},"notAllowed":{"subheading":"Page Not Allowed"}}},"upcTrigger":{"upgrade":"To support more storage devices as your server grows click the Open Dropdown button","default":"Key management is done via the dropdown in the top right of the webGUI on every page","open":"Open Dropdown"},"yargYePirate":"Oh no! Are you pirating Unraid OS?
Are you ready to buy a real license?"}')},"5a0c":function(e,t,r){e.exports=function(){"use strict";var e=6e4,t=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",s="week",c="month",l="quarter",u="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function e(t,r){if(t.date()e.replace(a,(e,t)=>t?t.toUpperCase():""),c=/\B([A-Z])/g,l=e=>e.replace(c,"-$1").toLowerCase();function u(e,t,r){e[t]=[].concat(e[t]||[]),e[t].unshift(r)}function p(e,t){if(e){(e.$options[t]||[]).forEach(t=>{t.call(e)})}}function d(e,t,{type:r}={}){if((e=>/function Boolean/.test(String(e)))(r))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e||e;if((e=>/function Number/.test(String(e)))(r)){const t=parseFloat(e,10);return isNaN(t)?e:t}return e}function f(e,t){const r=[];for(let n=0,i=t.length;n(e[t]=c[r[n]],e),{}),u(t,"beforeCreate",(function(){const e=this.$emit;this.$emit=(t,...r)=>(this.$root.$options.customElement.dispatchEvent(function(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}(t,r)),e.call(this,t,...r))})),u(t,"created",(function(){i.forEach(e=>{this.$root.props[e]=this[e]})})),i.forEach(e=>{Object.defineProperty(m.prototype,e,{get(){return this._wrapper.props[e]},set(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})}),a=!0}function h(e,t){const r=s(t),n=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[r]=d(n,t,o[r])}class m extends HTMLElement{constructor(){const r=super();r.attachShadow({mode:"open"});const n=r._wrapper=new e({name:"shadow-root",customElement:r,shadowRoot:r.shadowRoot,data:()=>({props:{},slotChildren:[]}),render(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}});new MutationObserver(e=>{let t=!1;for(let n=0;n{e.props=function(e){const t={};return e.forEach(e=>{t[e]=void 0}),t}(i),n.forEach(e=>{h(this,e)})};a?r():t().then(e=>{(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e),r()}),e.slotChildren=Object.freeze(f(e.$createElement,this.childNodes)),e.$mount(),this.shadowRoot.appendChild(e.$el)}}disconnectedCallback(){p(this.vueComponent,"deactivated")}}return r||c(t),m};function v(e,t,r,n,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}r("24fb"),r("35d6");var b=r("2f62"),y=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function w(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var x=Array.isArray;function _(e){return null!==e&&"object"==typeof e}function E(e){return"boolean"==typeof e}function S(e){return"string"==typeof e}var k=Object.prototype.toString;function O(e){return"[object Object]"===k.call(e)}function T(e){return null==e}function I(e){return"function"==typeof e}function R(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=null,n=null;return 1===e.length?_(e[0])||x(e[0])?n=e[0]:"string"==typeof e[0]&&(r=e[0]):2===e.length&&("string"==typeof e[0]&&(r=e[0]),(_(e[1])||x(e[1]))&&(n=e[1])),{locale:r,params:n}}function A(e){return JSON.parse(JSON.stringify(e))}function C(e,t){return!!~e.indexOf(t)}var P=Object.prototype.hasOwnProperty;function N(e,t){return P.call(e,t)}function M(e){for(var t=arguments,r=Object(e),n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}(e[t]))})),e}var L={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var r=t.data,n=t.parent,i=t.props,o=t.slots,a=n.$i18n;if(a){var s=i.path,c=i.locale,l=i.places,u=o(),p=a.i(s,c,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||l?function(e,t){var r=t?function(e){return Array.isArray(e)?e.reduce(F,{}):Object.assign({},e)}(t):{};if(!e)return r;var n=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every($);return e.reduce(n?j:F,r)}(u.default,l):u),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?e(d,r,p):p}}};function j(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function F(e,t,r){return e[r]=t,e}function $(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var V,G={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var r=t.props,n=t.parent,i=t.data,o=n.$i18n;if(!o)return null;var a=null,s=null;S(r.format)?a=r.format:_(r.format)&&(r.format.key&&(a=r.format.key),s=Object.keys(r.format).reduce((function(e,t){var n;return C(y,t)?Object.assign({},e,((n={})[t]=r.format[t],n)):e}),null));var c=r.locale||o.locale,l=o._ntp(r.value,c,a,s),u=l.map((function(e,t){var r,n=i.scopedSlots&&i.scopedSlots[e.type];return n?n(((r={})[e.type]=e.value,r.index=t,r.parts=l,r)):e.value})),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?e(p,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},u):u}};function z(e,t,r){H(e,r)&&Y(e,t,r)}function B(e,t,r,n){if(H(e,r)){var i=r.context.$i18n;(function(e,t){var r=t.context;return e._locale===r.$i18n.locale})(e,r)&&D(t.value,t.oldValue)&&D(e._localeMessage,i.getLocaleMessage(i.locale))||Y(e,t,r)}}function W(e,t,r,n){if(r.context){var i=r.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else w("Vue instance does not exists in VNode context")}function H(e,t){var r=t.context;return r?!!r.$i18n||(w("VueI18n instance does not exists in Vue instance"),!1):(w("Vue instance does not exists in VNode context"),!1)}function Y(e,t,r){var n,i,o=function(e){var t,r,n,i;return S(e)?t=e:O(e)&&(t=e.path,r=e.locale,n=e.args,i=e.choice),{path:t,locale:r,args:n,choice:i}}(t.value),a=o.path,s=o.locale,c=o.args,l=o.choice;if(a||s||c)if(a){var u=r.context;e._vt=e.textContent=null!=l?(n=u.$i18n).tc.apply(n,[a,l].concat(q(s,c))):(i=u.$i18n).t.apply(i,[a].concat(q(s,c))),e._locale=u.$i18n.locale,e._localeMessage=u.$i18n.getLocaleMessage(u.$i18n.locale)}else w("`path` is required in v-t directive");else w("value type not supported")}function q(e,t){var r=[];return e&&r.push(e),t&&(Array.isArray(t)||O(t))&&r.push(t),r}function Q(e,t){void 0===t&&(t={bridge:!1}),Q.installed=!0,(V=e).version&&Number(V.version.split(".")[0]),function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=this.$i18n;return n._t.apply(n,[e,n.locale,n._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(r))},e.prototype.$te=function(e,t){var r=this.$i18n;return r._te(e,r.locale,r._getMessages(),t)},e.prototype.$d=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).d.apply(t,[e].concat(r))},e.prototype.$n=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).n.apply(t,[e].concat(r))}}(V),V.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n){if(e.i18n instanceof pe){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=M(t,JSON.parse(e))})),Object.keys(t).forEach((function(r){e.i18n.mergeLocaleMessage(r,t[r])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(O(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pe?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18n)try{var n=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){n=M(n,JSON.parse(e))})),e.i18n.messages=n}catch(e){}var i=e.i18n.sharedMessages;i&&O(i)&&(e.i18n.messages=M(e.i18n.messages,i)),this._i18n=new pe(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pe?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof pe&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof pe||O(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pe||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof pe)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),V.directive("t",{bind:z,update:B,unbind:W}),V.component(L.name,L),V.component(G.name,G),V.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var K=function(){this._caches=Object.create(null)};K.prototype.interpolate=function(e,t){if(!t)return[e];var r=this._caches[e];return r||(r=function(e){var t=[],r=0,n="";for(;r0)p--,u=4,d[0]();else{if(p=0,void 0===r)return!1;if(!1===(r=re(r)))return!1;d[1]()}};null!==u;)if(l++,"\\"!==(t=e[l])||!f()){if(i=te(t),8===(o=(s=Z[u])[i]||s.else||8))return;if(u=o[0],(a=d[o[1]])&&(n=void 0===(n=o[2])?t:n,!1===a()))return;if(7===u)return c}}(e))&&(this._cache[e]=t),t||[]},ne.prototype.getPathValue=function(e,t){if(!_(e))return null;var r=this.parsePath(t);if(0===r.length)return null;for(var n=r.length,i=e,o=0;o/,ae=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|./]+|\([\w\-_|./]+\)))/g,se=/^@(?:\.([a-z]+))?:/,ce=/[()]/g,le={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},ue=new K,pe=function(e){var t=this;void 0===e&&(e={}),!V&&"undefined"!=typeof window&&window.Vue&&Q(window.Vue);var r=e.locale||"en-US",n=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},o=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||ue,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new ne,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,r){var n=Object.getPrototypeOf(t);if(n&&n.getChoiceIndex)return n.getChoiceIndex.call(t,e,r);return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,r]):function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}(e,r)},this._exist=function(e,r){return!(!e||!r||T(t._path.getPathValue(e,r))&&!e[r])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:r,fallbackLocale:n,messages:i,dateTimeFormats:o,numberFormats:a})},de={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};pe.prototype._checkLocaleMessage=function(e,t,r){var n=function(e,t,r,i){if(O(r))Object.keys(r).forEach((function(o){var a=r[o];O(a)?(i.push(o),i.push("."),n(e,t,a,i),i.pop(),i.pop()):(i.push(o),n(e,t,a,i),i.pop())}));else if(x(r))r.forEach((function(r,o){O(r)?(i.push("["+o+"]"),i.push("."),n(e,t,r,i),i.pop(),i.pop()):(i.push("["+o+"]"),n(e,t,r,i),i.pop())}));else if(S(r)){if(oe.test(r)){var o="Detected HTML in message '"+r+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?w(o):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(o)}}};n(t,e,r,[])},pe.prototype._initVM=function(e){var t=V.config.silent;V.config.silent=!0,this._vm=new V({data:e,__VUE18N__INSTANCE__:!0}),V.config.silent=t},pe.prototype.destroyVM=function(){this._vm.$destroy()},pe.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},pe.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},pe.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}(e._dataListeners),r=t.length;r--;)V.nextTick((function(){t[r]&&t[r].$forceUpdate()}))}),{deep:!0})},pe.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},pe.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},de.vm.get=function(){return this._vm},de.messages.get=function(){return A(this._getMessages())},de.dateTimeFormats.get=function(){return A(this._getDateTimeFormats())},de.numberFormats.get=function(){return A(this._getNumberFormats())},de.availableLocales.get=function(){return Object.keys(this.messages).sort()},de.locale.get=function(){return this._vm.locale},de.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},de.fallbackLocale.get=function(){return this._vm.fallbackLocale},de.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},de.formatFallbackMessages.get=function(){return this._formatFallbackMessages},de.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},de.missing.get=function(){return this._missing},de.missing.set=function(e){this._missing=e},de.formatter.get=function(){return this._formatter},de.formatter.set=function(e){this._formatter=e},de.silentTranslationWarn.get=function(){return this._silentTranslationWarn},de.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},de.silentFallbackWarn.get=function(){return this._silentFallbackWarn},de.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},de.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},de.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},de.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},de.warnHtmlInMessage.set=function(e){var t=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,r!==e&&("warn"===e||"error"===e)){var n=this._getMessages();Object.keys(n).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,n[e])}))}},de.postTranslation.get=function(){return this._postTranslation},de.postTranslation.set=function(e){this._postTranslation=e},de.sync.get=function(){return this._sync},de.sync.set=function(e){this._sync=e},pe.prototype._getMessages=function(){return this._vm.messages},pe.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},pe.prototype._getNumberFormats=function(){return this._vm.numberFormats},pe.prototype._warnDefault=function(e,t,r,n,i,o){if(!T(r))return r;if(this._missing){var a=this._missing.apply(null,[e,t,n,i]);if(S(a))return a}if(this._formatFallbackMessages){var s=R.apply(void 0,i);return this._render(t,o,s.params,t)}return t},pe.prototype._isFallbackRoot=function(e){return!e&&!T(this._root)&&this._fallbackRoot},pe.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},pe.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},pe.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},pe.prototype._interpolate=function(e,t,r,n,i,o,a){if(!t)return null;var s,c=this._path.getPathValue(t,r);if(x(c)||O(c))return c;if(T(c)){if(!O(t))return null;if(!S(s=t[r])&&!I(s))return null}else{if(!S(c)&&!I(c))return null;s=c}return S(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,n,"raw",o,a)),this._render(s,i,o,r)},pe.prototype._link=function(e,t,r,n,i,o,a){var s=r,c=s.match(ae);for(var l in c)if(c.hasOwnProperty(l)){var u=c[l],p=u.match(se),d=p[0],f=p[1],h=u.replace(d,"").replace(ce,"");if(C(a,h))return s;a.push(h);var m=this._interpolate(e,t,h,n,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,h,n,i,o)}m=this._warnDefault(e,h,m,n,x(o)?o:[o],i),this._modifiers.hasOwnProperty(f)?m=this._modifiers[f](m):le.hasOwnProperty(f)&&(m=le[f](m)),a.pop(),s=m?s.replace(u,m):s}return s},pe.prototype._createMessageContext=function(e,t,r,n){var i=this,o=x(e)?e:[],a=_(e)?e:{},s=this._getMessages(),c=this.locale;return{list:function(e){return o[e]},named:function(e){return a[e]},values:e,formatter:t,path:r,messages:s,locale:c,linked:function(e){return i._interpolate(c,s[c]||{},e,null,n,void 0,[e])}}},pe.prototype._render=function(e,t,r,n){if(I(e))return e(this._createMessageContext(r,this._formatter||ue,n,t));var i=this._formatter.interpolate(e,r,n);return i||(i=ue.interpolate(e,r,n)),"string"!==t||S(i)?i:i.join("")},pe.prototype._appendItemToChain=function(e,t,r){var n=!1;return C(e,t)||(n=!0,t&&(n="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),r&&r[t]&&(n=r[t]))),n},pe.prototype._appendLocaleToChain=function(e,t,r){var n,i=t.split("-");do{var o=i.join("-");n=this._appendItemToChain(e,o,r),i.splice(-1,1)}while(i.length&&!0===n);return n},pe.prototype._appendBlockToChain=function(e,t,r){for(var n=!0,i=0;i0;)o[a]=arguments[a+4];if(!e)return"";var s=R.apply(void 0,o);this._escapeParameterHtml&&(s.params=U(s.params));var c=s.locale||t,l=this._translate(r,c,this.fallbackLocale,e,n,"string",s.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(o))}return l=this._warnDefault(c,e,l,n,o,"string"),this._postTranslation&&null!=l&&(l=this._postTranslation(l,e)),l},pe.prototype.t=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(r))},pe.prototype._i=function(e,t,r,n,i){var o=this._translate(r,t,this.fallbackLocale,e,n,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,o,n,[i],"raw")},pe.prototype.i=function(e,t,r){return e?(S(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,r)):""},pe.prototype._tc=function(e,t,r,n,i){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},l=R.apply(void 0,a);return l.params=Object.assign(c,l.params),a=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((o=this)._t.apply(o,[e,t,r,n].concat(a)),i)},pe.prototype.fetchChoice=function(e,t){if(!e||!S(e))return null;var r=e.split("|");return r[t=this.getChoiceIndex(t,r.length)]?r[t].trim():e},pe.prototype.tc=function(e,t){for(var r,n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];return(r=this)._tc.apply(r,[e,this.locale,this._getMessages(),null,t].concat(n))},pe.prototype._te=function(e,t,r){for(var n=[],i=arguments.length-3;i-- >0;)n[i]=arguments[i+3];var o=R.apply(void 0,n).locale||t;return this._exist(r[o],e)},pe.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},pe.prototype.getLocaleMessage=function(e){return A(this._vm.messages[e]||{})},pe.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},pe.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,M(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},pe.prototype.getDateTimeFormat=function(e){return A(this._vm.dateTimeFormats[e]||{})},pe.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},pe.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,M(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},pe.prototype._clearDateTimeFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},pe.prototype._localizeDateTime=function(e,t,r,n,i){for(var o=t,a=n[o],s=this._getLocaleChain(t,r),c=0;c0;)t[r]=arguments[r+1];var n=this.locale,i=null;return 1===t.length?S(t[0])?i=t[0]:_(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key)):2===t.length&&(S(t[0])&&(i=t[0]),S(t[1])&&(n=t[1])),this._d(e,n,i)},pe.prototype.getNumberFormat=function(e){return A(this._vm.numberFormats[e]||{})},pe.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},pe.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,M(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},pe.prototype._clearNumberFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},pe.prototype._getNumberFormatter=function(e,t,r,n,i,o){for(var a=t,s=n[a],c=this._getLocaleChain(t,r),l=0;l0;)t[r]=arguments[r+1];var n=this.locale,i=null,o=null;return 1===t.length?S(t[0])?i=t[0]:_(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key),o=Object.keys(t[0]).reduce((function(e,r){var n;return C(y,r)?Object.assign({},e,((n={})[r]=t[0][r],n)):e}),null)):2===t.length&&(S(t[0])&&(i=t[0]),S(t[1])&&(n=t[1])),this._n(e,n,i,o)},pe.prototype._ntp=function(e,t,r,n){if(!pe.availabilities.numberFormat)return[];if(!r)return(n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t)).formatToParts(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),r,n),o=i&&i.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,r,n)}return o||[]},Object.defineProperties(pe.prototype,de),Object.defineProperty(pe,"availabilities",{get:function(){if(!ie){var e="undefined"!=typeof Intl;ie={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return ie}}),pe.install=Q,pe.version="8.26.1";var fe=pe;o.default.use(fe);var he=new fe({locale:"en_US",fallbackLocale:"en_US",messages:function(){const e=r("4b3b"),t={};return e.keys().forEach(r=>{const n=r.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){const i=n[1];t[i]=e(r)}}),t}()});const me="production",ge="https://registration.unraid.net",ve="https://unraid.net/preflight",be=Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_GRAPH_URL||null,ye=(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_APIKEY,navigator.userAgent.toLowerCase()),we={url:ge,name:"UnraidRegistrationWizard",width:600,height:810},xe={errorMessage:"",errorMessageSubtext:"",loading:!0,submissionFrom:null,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"},csrf:null,postMessageError:null,isLaunchpadOpen:!1,isPromoOpen:!1,triggerUPC:!1,ts:null,deviceCount:0,flashproduct:null,flashvendor:null,guid:"",regGuid:"",keyfile:null,servername:null,serverdesc:null,wanip:sessionStorage.getItem("upc_wanip")||null,site:null,wanFQDN:null,state:"",reggen:0,registered:null,internalip:null,internalport:null,protocol:null,license:"",expiretime:null,regWizTime:null,rawServerState:null,plgPath:null,guidRegistered:!1,guidValid:null,guidValidationRunning:!1,replaceable:null,guidForValidation:null,guidBlacklisted:null,id:null,isPopUpOpen:!1,popUpWindow:"",regAtOpen:null,forumaccount:null,userEmail:"",username:"",avatar:"",userPassword:"",apikey:"",ipsValidated:!1,accountAction:null,keyServerAction:"",licenseAction:null,receivedSuccessNewServerState:null,purchaseWindow:{url:new URL(ve),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},redeemWindow:{url:new URL(ve+"?r=1"),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},wizardWindow:we,signInPayload:{...we,url:we.url+"/#/sign-in"},signUpPayload:{...we,url:we.url+"/#/sign-up"},signOutPayload:{...we,url:we.url+"/#/sign-out",width:600,height:500},extendTrialPayload:{...we,url:we.url+"/#/extend-trial"},recoverKeyPayload:{...we,url:we.url+"/#/recover-key"},replaceKeyPayload:{...we,url:we.url+"/#/replace-key"},troubleshootPayload:{...we,url:we.url+"/#/troubleshoot"},locale:"en_US",messages:null,graphOnline:!1,graphReconnected:!1,myServers:[],myServersLoading:!1,myServersError:null,myServersErrorShowSupportBtn:!1,myServersEnv:null,apiVersion:null,cloud:null,hideMyServers:!1,osVersion:null,plgVersion:null,plgInstalled:null,hasRemoteApikey:null,config:null,hasUnraidNetSSL:!1,flashBackupEnabled:!1,extraOrigins:[],myServersOutage:{enabled:!0,message:{heading:"My Servers Update",main:"Please update to the latest version of the My Servers plugin",link:"/Plugins",linkSameTab:!0}},devEnv:!1,signOutTriggered:!1,apiReport:null,osGui:ye.includes("linux")&&ye.includes("firefox"),pirateKey:sessionStorage.getItem("upc_yargMatey")||!1};var _e=r("6ddc"),Ee=r.n(_e);const Se="GUID_NOT_RECEIVED",ke=!(!window.opener||window.opener===window),Oe=ke?window.opener.parent:window.parent,Te=[ve,ge,"https://launchpad.unraid.test:8081","https://launchpad.unraid.test:6969","https://registration.unraid.net","https://registration-dev.unraid.net","https://registration-dev-logs.unraid.net","https://unraid.net","https://staging.unraid.net","https://craft.unraid.test"],Ie='API error unexpected response for "owner".',Re=e=>{try{return[null,JSON.parse(e)]}catch(e){return[e]}},Ae={actions:[],humanReadable:"",heading:"",message:"",messageCenter:!1,error:!1,withKey:!1},Ce={...Ae,humanReadable:he.tc("stateData.ENOFLASH.humanReadable"),error:{heading:he.tc("stateData.ENOFLASH.error.heading"),message:he.tc("stateData.ENOFLASH.error.message"),signInToFix:!1}};let Pe="";const Ne={statePhpPath:e=>`/plugins/${e.plgPath||"dynamix.unraid.net"}/include/state.php`,myServersCfgPath:e=>(e.plgPath||"Unraid.net")+"/myservers.cfg",requireGuidValidation:e=>!ke||e.guidRegistered,validApiKeyLength:e=>64===e.apikey.length,validApiKeyForUpc:e=>!!e.apikey&&e.apikey.startsWith("unupc_"),hasRemoteApikey:e=>!0===e.hasRemoteApikey||!(!e.validApiKeyLength||!e.validApiKeyForUpc),showExpiretime:e=>("TRIAL"===e.state||"EEXPIRED"===e.state)&&e.expiretime>0,trialExtensionEligible:e=>!(e.reggen&&!(e.reggen<2)),signedOutWithKey:(e,t)=>!(!t.stateData.withKey||e.registered),stateData:(e,t)=>{switch(e.state){case"ENOKEYFILE":return{...Ae,actions:[e.registered?"signOut":"register","startTrial","purchase","redeem"],humanReadable:he.tc("stateData.ENOKEYFILE.humanReadable"),heading:he.tc("stateData.ENOKEYFILE.heading"),message:he.tc("stateData.ENOKEYFILE.message")};case"TRIAL":return{...Ae,actions:["purchase",e.registered?"signOut":"register",e.registered?"continueTrial":null],humanReadable:he.tc("stateData.TRIAL.humanReadable"),heading:he.tc("stateData.TRIAL.heading"),message:he.tc("stateData.TRIAL.message"),withKey:!0};case"EEXPIRED":return{...Ae,actions:[e.registered?"signOut":"register",t.trialExtensionEligible?"extend":null,"purchase"],humanReadable:he.tc("stateData.EEXPIRED.humanReadable"),error:{heading:he.tc("stateData.EEXPIRED.heading"),message:t.trialExtensionEligible?he.tc("stateData.EEXPIRED.message.extensionEligible"):he.tc("stateData.EEXPIRED.message.extensionNotEligible")},withKey:!0};case"BASIC":return{...Ae,actions:[e.registered?"signOut":"register","upgrade"],humanReadable:he.tc("stateData.BASIC.humanReadable"),heading:he.tc("basicPlusPro.heading"),message:e.registered?e.guidRegistered?he.tc("basicPlusPro.message.upgradeEligible"):"":he.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"PLUS":return{...Ae,actions:[e.registered?"signOut":"register","upgrade"],humanReadable:he.tc("stateData.PLUS.humanReadable"),heading:he.tc("basicPlusPro.heading"),message:e.registered?e.guidRegistered?he.tc("basicPlusPro.message.upgradeEligible"):"":he.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"PRO":return{...Ae,actions:[e.registered?"signOut":"register",e.registered?"close":null],humanReadable:he.tc("stateData.PRO.humanReadable"),heading:he.tc("basicPlusPro.heading"),message:e.registered?"":he.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"EGUID":return Pe=e.replaceable?he.tc("stateData.EGUID.error.message.replacementEligible"):!1===e.replaceable&&e.guidBlacklisted?`${he.tc("stateData.EGUID.error.message.default")}
${he.tc("stateData.EGUID.error.message.blacklisted")}`:!1!==e.replaceable||e.guidBlacklisted?he.tc("stateData.EGUID.error.message.replacementEligible"):`${he.tc("stateData.EGUID.error.message.default")}
${he.tc("stateData.EGUID.error.message.replacementIneligible")}`,{...Ae,actions:["purchase","replace",e.registered?"signOut":"register"],humanReadable:he.tc("stateData.EGUID.humanReadable"),error:{heading:he.tc("stateData.EGUID.error.heading"),message:Pe,signInToFix:!0}};case"EGUID1":return{...Ae,actions:["purchase",e.registered?"signOut":"register"],humanReadable:he.tc("stateData.EGUID1.humanReadable"),error:{heading:he.tc("stateData.EGUID1.error.heading"),message:he.tc("stateData.EGUID1.error.message"),signInToFix:!0}};case"ENOKEYFILE2":return{...Ae,actions:["purchase",e.registered?"signOut":"register",e.registered?"recover":null],humanReadable:he.tc("stateData.ENOKEYFILE2.humanReadable"),error:{heading:he.tc("stateData.ENOKEYFILE2.error.heading"),message:he.tc("stateData.ENOKEYFILE2.error.message"),signInToFix:!0}};case"ETRIAL":return{...Ae,actions:[e.registered?"signOut":"register","purchase"],humanReadable:he.tc("stateData.ETRIAL.humanReadable"),error:{heading:he.tc("stateData.ETRIAL.error.heading"),message:he.tc("stateData.ETRIAL.error.message"),signInToFix:!0}};case"ENOKEYFILE1":return{...Ae,humanReadable:he.tc("stateData.ENOKEYFILE1.humanReadable"),error:{heading:he.tc("stateData.ENOKEYFILE1.error.heading"),message:he.tc("stateData.ENOKEYFILE1.error.message"),signInToFix:!1}};case"ENOFLASH":case"ENOFLASH1":case"ENOFLASH2":case"ENOFLASH3":case"ENOFLASH4":case"ENOFLASH5":case"ENOFLASH6":case"ENOFLASH7":return Ce;case"EBLACKLISTED":return{...Ae,humanReadable:he.tc("stateData.EBLACKLISTED.humanReadable"),error:{heading:he.tc("stateData.EBLACKLISTED.error.heading"),message:he.tc("stateData.EBLACKLISTED.error.message"),signInToFix:!1}};case"EBLACKLISTED1":return{...Ae,humanReadable:he.tc("stateData.EBLACKLISTED1.humanReadable"),error:{heading:he.tc("stateData.EBLACKLISTED1.error.heading"),message:he.tc("stateData.EBLACKLISTED1.error.message"),signInToFix:!1}};case"EBLACKLISTED2":return{...Ae,humanReadable:he.tc("stateData.EBLACKLISTED2.humanReadable"),error:{heading:he.tc("stateData.EBLACKLISTED2.error.heading"),message:he.tc("stateData.EBLACKLISTED2.error.message"),signInToFix:!1}};case"ENOCONN":return{...Ae,humanReadable:he.tc("stateData.ENOCONN.humanReadable"),error:{heading:he.tc("stateData.ENOCONN.error.heading"),message:he.tc("stateData.ENOCONN.error.message"),signInToFix:!1}};case"STALE":return{...Ae,humanReadable:he.tc("stateData.STALE.humanReadable"),error:{heading:he.tc("stateData.STALE.error.heading"),message:he.tc("stateData.STALE.error.message"),signInToFix:!1}};default:return{...Ae}}},stateDataKeyActions:(e,t)=>!!(t.stateData.actions.includes("purchase")||t.stateData.actions.includes("upgrade")||t.stateData.actions.includes("recover")||t.stateData.actions.includes("replace")||t.stateData.actions.includes("extend")),keyTypeForPurchase:e=>{switch(e.state){case"BASIC":return"Basic";case"PLUS":return"Plus";case"PRO":return"Pro";default:return"Trial"}},isRemoteAccess:e=>e.wanFQDN||e.site&&e.site.includes("www.")&&e.site.includes("unraid.net"),noRemoteApikeyRegisteredWithPlg:e=>!(!e.registered||e.hideMyServers||!e.validApiKeyLength||!e.validApiKeyForUpc),errorTooManyDisks:e=>!(!e.config||e.config.valid||"INVALID"!==e.config.error),allowedOrigins:e=>[...Te,...e.extraOrigins],myServersOutage:e=>({...e.apiVersion&&Ee()(e.apiVersion,"2.37.0")&&!e.devMode&&!e.hideMyServers?e.myServersOutage:{enabled:!1}}),errorMessage:(e,t)=>!t.stateData.error&&e.myServersError&&e.myServersErrorShowSupportBtn?e.myServersError:!t.stateData.error&&e.cloud&&e.cloud.error&&e.myServersErrorShowSupportBtn?e.cloud.error:null,server:(e,t)=>({guid:e.guid||Se,regGuid:e.regGuid,guidRegistered:e.guidRegistered||e.regWizTime,guidValid:e.guidValid,hasRemoteApikey:t.hasRemoteApikey,regWizTime:e.regWizTime,keyfile:e.keyfile,keyTypeForPurchase:t.keyTypeForPurchase,flashproduct:e.flashproduct,flashvendor:e.flashvendor,servername:e.servername,serverdesc:e.serverdesc,internalip:e.internalip,site:e.site,wanFQDN:e.wanFQDN,state:e.state,internalport:e.internalport,protocol:e.protocol,registered:e.registered,reggen:e.reggen,userEmail:e.userEmail,expiretime:e.expiretime,ts:e.ts,locale:e.locale,deviceCount:e.deviceCount,plgPath:e.plgPath,plgVersion:e.plgVersion,osVersion:e.osVersion,apiVersion:e.apiVersion,extraOrigins:e.extraOrigins,errorMessage:t.errorMessage,apiReport:e.apiReport,osGui:e.osGui,username:e.username,avatar:e.avatar,hideMyServers:e.hideMyServers}),features:e=>[{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.secureRemoteAccess.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.secureRemoteAccess.copy"),svg:"ui--remote-access"},{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.usbFlashBackup.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.usbFlashBackup.copy"),svg:"ui--usb"},{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.realTimeMonitoring.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.realTimeMonitoring.copy"),svg:"ui--diagnostics"},{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.regKeyManagement.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.regKeyManagement.copy"),svg:"ui--key"},{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.plusMore.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.plusMore.copy"),svg:"util--star",center:!0}]};var Me=r("786a"),De=r.n(Me),Ue=r("626e");const Le=((e,t)=>{void 0===t&&(t={keys:[],values:[]});const r=t.keys,n=void 0===r?[]:r,i=t.values,o=void 0===i?[]:i,a=(e,t)=>{const r=Ue.key(e)||Ue.value(t),i=n.some(t=>t.test(e))||o.some(e=>e.test(t));return r||i};return{map:t=>De.a.default(t).map(t=>!!a((void 0).key,t)&&(void 0).update(e)),forEach:t=>{De.a.default(t).forEach(t=>{a((void 0).key,t)&&(void 0).update(e)})}}})("[REDACTED]",{keys:["guid"],values:[]}),je={...Object.fromEntries(Object.entries(console).map(([e,t])=>{if("debug"===e)return[e,()=>{}];if("function"==typeof method){const r=t.bind(console);return[e,(e,...t)=>t.length>=1?r(e,...t.map(e=>Le.map(e))):r(e)]}return[e,t]}))},Fe={SET_APP_ERROR_MESSAGE(e,t){je.debug("[SET_APP_ERROR_MESSAGE]: initial %o",t);const[r,n]=Re(t);n&&!r||!t||(je.debug("[SET_APP_ERROR_MESSAGE]: no json use original string %o",t),e.errorMessage=t),n||!1!==t&&""!==t||(je.debug("[SET_APP_ERROR_MESSAGE]: allow falsely values to reset the field %o",t),e.errorMessage=""),n&&n.error&&(je.debug("[SET_APP_ERROR_MESSAGE]: we got json %o",t),e.errorMessage=n.error),e.errorMessage&&je.error("[SET_APP_ERROR_MESSAGE]: %s",e.errorMessage)},SET_APP_ERROR_MESSAGE_SUBTEXT(e,t){je.debug("[SET_APP_ERROR_MESSAGE_SUBTEXT]: %o",t),e.errorMessageSubtext=t,e.errorMessageSubtext&&je.error("[SET_APP_ERROR_MESSAGE_SUBTEXT]: %s",e.errorMessageSubtext)},SET_LOADING_STATE(e,t){je.debug("[SET_LOADING_STATE]: %o",t),e.loading=t},SET_IS_LAUNCHPAD_OPEN(e,t){je.debug("[SET_IS_LAUNCHPAD_OPEN]: %o",t),t||sessionStorage.removeItem("clickedInstallMyServers"),e.isLaunchpadOpen=t},SET_IS_PROMO_OPEN(e,t){je.debug("[SET_IS_PROMO_OPEN]: %o",t),e.isPromoOpen=t},SET_STATE(e,t){je.debug("[SET_STATE]: %o",t),e.state=t},SET_CONFIG(e,t){je.debug("[SET_CONFIG]: %o",t),e.config=t},CHANGE_GUID_REGISTERED(e,t){je.debug("[CHANGE_GUID_REGISTERED]: %o",t),e.guidRegistered=t},CHANGE_GUID_VALID(e,t){je.debug("[CHANGE_GUID_VALID]: %o",t),e.guidValid=t},CHANGE_GUID_VALIDATION_RUNNING(e,t){je.debug("[CHANGE_GUID_VALIDATION_RUNNING]: %o",t),e.guidValidationRunning=t},CHANGE_GUID_FOR_VALIDATION(e,t){je.debug("[CHANGE_GUID_FOR_VALIDATION]: %o",t),e.guidForValidation=t},CHANGE_GUID_BLACKLISTED(e,t){je.debug("[CHANGE_GUID_BLACKLISTED]: %o",t),e.guidBlacklisted=t},CHANGE_REPLACEABLE(e,t){je.debug("[CHANGE_REPLACEABLE]: %o",t),e.replaceable=t},CHANGE_POP_UP_WINDOW(e,t){je.debug("[CHANGE_POP_UP_WINDOW]: %o",t),e.popUpWindow=t,e.isPopUpOpen=!!t,e.regAtOpen=null},STATE_AT_OPEN(e,t){e.regAtOpen=t},MUTATE_KEYSERVER_RESPONSE(e,t){je.debug("[MUTATE_KEYSERVER_RESPONSE]: %o",t),t.license&&(e.license=t.license),t.newKey&&(e.keyfile=t.newKey),t.trial&&(e.keyfile=t.trial),t.apikey&&(e.apikey=t.apikey),t.validated&&(e.ipsValidated=t.validated),t.email&&(e.userEmail=t.email),t.password&&(e.userPassword=t.password),(t.action||t.keyServerAction)&&(e.keyServerAction=t.action||t.keyServerAction),t.username&&(e.username=t.username),t.avatar&&(e.avatar=t.avatar)},SET_TRIAL(e,t){je.debug("[SET_TRIAL]: %o",t),e.license=t.license,e.keyfile=t.trial,e.keyServerAction="extendTrial"},SET_USER_EMAIL(e,t){je.debug("[SET_USER_EMAIL]: %s",t),e.userEmail=t},SET_FULL_SERVER_STATE(e,t){if(je.debug("[SET_FULL_SERVER_STATE] start %o",t),!t)return je.error("[SET_FULL_SERVER_STATE] No state data…🤬");let r=t;return(r.registered||0===r.registered)&&(r.registered=Boolean(Number(r.registered))),(r.hasRemoteApikey||0===r.hasRemoteApikey)&&(r.hasRemoteApikey=Boolean(Number(r.hasRemoteApikey))),r.email&&(r={...r,userEmail:r.email},delete r.email),je.debug("[SET_FULL_SERVER_STATE] ✨ mutateData ✨ %o",{state:e,mutateData:r}),e=Object.assign(e,r),!0},SET_RAW_SERVER_STATE:(e,t)=>ke?(e.rawServerState=t,je.debug("[SET_RAW_SERVER_STATE] %o",t)):je.debug("[SET_RAW_SERVER_STATE] ❌ skipped not needed in non-pop-up ❌ %o",{CAN_POST_MESSAGE:ke}),SIGN_OUT(e){je.debug("[SIGN_OUT]: %s","✨"),e.registered=!1,e.license="",e.keyfile="",e.apikey="",e.ipsValidated=!1,e.userEmail="",e.userPassword="",e.username="",e.avatar=""},SUBMISSION_FROM(e,t){je.debug("[SUBMISSION_FROM]: %s",t),e.submissionFrom=t},SET_WANIP(e,t){je.debug("[SET_WANIP]: %s",t),e.wanip=t,sessionStorage.setItem("upc_wanip",t)},SET_SERVERDESC(e,t){je.debug("[SET_SERVERDESC]: %s",t),e.serverdesc=t},SET_SITE(e,t){je.debug("[SET_SITE]: %s",t),e.site=t},SET_CSRF(e,t){je.debug("[SET_CSRF]: %s",t),e.csrf=t},LICENSE_PINGBACK(e,t){je.debug("[LICENSE_PINGBACK]: %o",t),e.licenseAction=t},ACCOUNT_PINGBACK(e,t){je.debug("[ACCOUNT_PINGBACK]: %o",t),e.accountAction=t},RECEIVED_SUCCESS_NEW_SERVERSTATE(e,t){je.debug("[RECEIVED_SUCCESS_NEW_SERVERSTATE]: %o",t),e.receivedSuccessNewServerState=t},SET_UPTIME(e,t){je.debug("[SET_UPTIME]: %s",t),e.uptime=t},SET_EXPIRE_TIME(e,t){je.debug("[SET_EXPIRE_TIME]: %s",t),e.expiretime=t},SET_REGWIZ_TIME(e,t){je.debug("[SET_REGWIZ_TIME]: %s",t),e.regWizTime=t},CHANGE_GUID_FORUMACCOUNT(e,t){je.debug("[CHANGE_GUID_FORUMACCOUNT]: %s",t),e.forumaccount=t},SET_LOCALE(e,t){je.debug("[SET_LOCALE]: %s",t),e.locale=t},LOCALE_MESSAGES(e,t){const[r,n]=Re(decodeURIComponent(t));r?je.warn("[LOCALE_MESSAGES]: %o",r):(je.debug("[LOCALE_MESSAGES]: %o",n),e.messages=n)},SET_API_KEY(e,t){je.debug("[SET_API_KEY]: %s",t),e.apikey=t},SET_GRAPH_ONLINE(e,t){je.debug("[SET_GRAPH_ONLINE]: %o",t),e.graphOnline=t},SET_GRAPH_RECONNECTED(e,t){je.debug("[SET_GRAPH_RECONNECTED]: %o",t),e.graphReconnected=t},SET_MY_SERVERS(e,t){je.debug("[SET_MY_SERVERS]: %o",t),e.myServers=[...t]},SET_MY_SERVERS_LOADING(e,t){je.debug("[SET_MY_SERVERS_LOADING]: %o",t),e.myServersLoading=t},SET_MY_SERVERS_ERROR(e,t){t?je.error("[SET_MY_SERVERS_ERROR]: %o",t):je.debug("[SET_MY_SERVERS_ERROR] unset"),e.myServersError=t?t.replace("Graphql","unraid-api").replace("offline","stopped"):null},SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN(e,t){je.debug("[SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN]",t),e.myServersErrorShowSupportBtn=t},SET_MY_SERVERS_ENV(e,t){je.debug("[SET_MY_SERVERS_ENV]: %o",t),e.myServersEnv=t},SET_MY_SERVERS_API_VERSION(e,t){je.debug("[SET_MY_SERVERS_API_VERSION]: %o",t),e.apiVersion=t},TRIGGER_UPC(e,t){je.debug("[TRIGGER_UPC]: %o",t),e.triggerUPC=t},SET_HIDE_MY_SERVERS(e,t){je.debug("[SET_HIDE_MY_SERVERS]: %o",t),e.hideMyServers=!!t},SET_PLG_PATH:(e,t)=>"dynamix.my.servers"!==t?je.warn("[SET_PLG_PATH] value not allowed",t):(je.debug("[SET_PLG_PATH]: %o",t),e.plgPath=t,!0),SET_POST_MESSAGE_ERROR(e,t){e.postMessageError=t,e.postMessageError&&je.error("[SET_POST_MESSAGE_ERROR]: %o",e.postMessageError)},SET_OWNER(e,t){je.debug("[SET_OWNER]: %o",t),e.username=t&&t.username?t.username:"",e.avatar=t&&t.avatar?t.avatar:"",e.registered=!(!t||!t.username)},SET_REGISTRATION_SUB(e,t){je.debug("[SET_REGISTRATION_SUB]: %o",t),t.keyfile&&(e.keyfile=t.keyFile.contents),t.expiration&&(e.expiretime=t.expiration)},SET_DEV_MODE(e,t){je.debug("[SET_DEV_MODE]: %o",t),e.devEnv=t},SET_SIGN_OUT_TRIGGERED(e,t){je.debug("[SET_SIGN_OUT_TRIGGERED]: %o",t),e.signOutTriggered=t},SET_API_EXECUTE_RESPONSE(e,t){je.debug("[SET_API_EXECUTE_RESPONSE]: %o",t),e.apiReport=t},SET_MY_SERVERS_CLOUD(e,t){je.debug("[SET_MY_SERVERS_CLOUD]: %o",t),e.cloud=t},SET_REPLACE_KEY(e,t){je.debug("[SET_REPLACE_KEY]: %o",t),e.license=t.license,e.keyfile=t.newkey,e.keyServerAction="replace"},SET_PIRATE_KEY(e,t){je.debug("[SET_PIRATE_KEY]: %s",t),e.pirateKey=!!t,e.pirateKey?sessionStorage.setItem("upc_yargMatey",t):sessionStorage.removeItem("upc_yargMatey")}};var $e=r("0e49"),Ve=r.n($e),Ge=function(){return(Ge=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,We.a&&(e.prototype[We.a]=t)}function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qe(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index120){for(var d=Math.floor(c/80),f=c%80,h=[],m=0;m0||Be(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Be(0,"column in locationOffset is 1-indexed and must be positive")};!function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}(rt);var nt=r("04b4"),it=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function ot(){return this.lastToken=this.token,this.token=this.lookahead()}function at(){var e=this.token;if(e.kind!==it.EOF)do{e=e.next||(e.next=lt(this,e))}while(e.kind===it.COMMENT);return e}function st(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function ct(e){return isNaN(e)?it.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function lt(e,t){var r=e.source,n=r.body,i=n.length,o=function(e,t,r){var n=e.length,i=t;for(;i=i)return new st(it.EOF,i,i,a,s,t);var c=n.charCodeAt(o);switch(c){case 33:return new st(it.BANG,o,o+1,a,s,t);case 35:return function(e,t,r,n,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new st(it.COMMENT,t,s,r,n,i,a.slice(t+1,s))}(r,o,a,s,t);case 36:return new st(it.DOLLAR,o,o+1,a,s,t);case 38:return new st(it.AMP,o,o+1,a,s,t);case 40:return new st(it.PAREN_L,o,o+1,a,s,t);case 41:return new st(it.PAREN_R,o,o+1,a,s,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new st(it.SPREAD,o,o+3,a,s,t);break;case 58:return new st(it.COLON,o,o+1,a,s,t);case 61:return new st(it.EQUALS,o,o+1,a,s,t);case 64:return new st(it.AT,o,o+1,a,s,t);case 91:return new st(it.BRACKET_L,o,o+1,a,s,t);case 93:return new st(it.BRACKET_R,o,o+1,a,s,t);case 123:return new st(it.BRACE_L,o,o+1,a,s,t);case 124:return new st(it.PIPE,o,o+1,a,s,t);case 125:return new st(it.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){var o=e.body,a=o.length,s=t+1,c=0;for(;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new st(it.NAME,t,s,r,n,i,o.slice(t,s))}(r,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,s=r,c=t,l=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw et(e,c,"Invalid number, unexpected digit after 0: ".concat(ct(s),"."))}else c=ut(e,c,s),s=a.charCodeAt(c);if(46===s&&(l=!0,s=a.charCodeAt(++c),c=ut(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(l=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=ut(e,c,s),s=a.charCodeAt(c)),46===s||69===s||101===s)throw et(e,c,"Invalid number, expected digit but got: ".concat(ct(s),"."));return new st(l?it.FLOAT:it.INT,t,c,n,i,o,a.slice(t,c))}(r,o,c,a,s,t);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?function(e,t,r,n,i,o){var a=e.body,s=t+3,c=s,l=0,u="";for(;s=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw et(e,i,"Invalid number, expected digit but got: ".concat(ct(o),"."))}function pt(e,t,r,n){return dt(e)<<12|dt(t)<<8|dt(r)<<4|dt(n)}function dt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}He(st,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var ft=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});var ht=function(){function e(e,t){var r="string"==typeof e?new rt(e):e;r instanceof rt||Be(0,"Must provide Source. Received: ".concat(Object(ze.a)(r))),this._lexer=function(e,t){var r=new st(it.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:ot,lookahead:at}}(r),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(it.NAME);return{kind:tt.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:tt.a.DOCUMENT,definitions:this.many(it.SOF,this.parseDefinition,it.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(it.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(it.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(it.BRACE_L))return{kind:tt.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(it.NAME)&&(t=this.parseName()),{kind:tt.a.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(it.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(it.PAREN_L,this.parseVariableDefinition,it.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:tt.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(it.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(it.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(it.DOLLAR),{kind:tt.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:tt.a.SELECTION_SET,selections:this.many(it.BRACE_L,this.parseSelection,it.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(it.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(it.COLON)?(e=n,t=this.parseName()):t=n,{kind:tt.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(it.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(it.PAREN_L,t,it.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(it.COLON),{kind:tt.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:tt.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(it.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(it.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(it.NAME)?{kind:tt.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:tt.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:tt.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:tt.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case it.BRACKET_L:return this.parseList(e);case it.BRACE_L:return this.parseObject(e);case it.INT:return this._lexer.advance(),{kind:tt.a.INT,value:t.value,loc:this.loc(t)};case it.FLOAT:return this._lexer.advance(),{kind:tt.a.FLOAT,value:t.value,loc:this.loc(t)};case it.STRING:case it.BLOCK_STRING:return this.parseStringLiteral();case it.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:tt.a.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:tt.a.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:tt.a.ENUM,value:t.value,loc:this.loc(t)});case it.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:tt.a.STRING,value:e.value,block:e.kind===it.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:tt.a.LIST,values:this.any(it.BRACKET_L,(function(){return t.parseValueLiteral(e)}),it.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:tt.a.OBJECT,fields:this.any(it.BRACE_L,(function(){return t.parseObjectField(e)}),it.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(it.COLON),{kind:tt.a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(it.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(it.AT),{kind:tt.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(it.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(it.BRACKET_R),e={kind:tt.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(it.BANG)?{kind:tt.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:tt.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===it.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(it.STRING)||this.peek(it.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(it.BRACE_L,this.parseOperationTypeDefinition,it.BRACE_R);return{kind:tt.a.SCHEMA_DEFINITION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(it.COLON);var r=this.parseNamedType();return{kind:tt.a.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:tt.a.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:tt.a.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(it.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(it.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(it.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(it.BRACE_L)&&this._lexer.lookahead().kind===it.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(it.BRACE_L,this.parseFieldDefinition,it.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(it.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:tt.a.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(it.PAREN_L,this.parseInputValueDef,it.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(it.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(it.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:tt.a.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:tt.a.INTERFACE_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:tt.a.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(it.EQUALS)){this.expectOptionalToken(it.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(it.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:tt.a.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(it.BRACE_L,this.parseEnumValueDefinition,it.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:tt.a.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:tt.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(it.BRACE_L,this.parseInputValueDef,it.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===it.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(it.BRACE_L,this.parseOperationTypeDefinition,it.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:tt.a.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:tt.a.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:tt.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:tt.a.INTERFACE_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:tt.a.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:tt.a.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:tt.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(it.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:tt.a.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(it.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(it.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==ft[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new mt(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw et(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(gt(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==it.NAME||t.value!==e)throw et(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(gt(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===it.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return et(this._lexer.source,t.start,"Unexpected ".concat(gt(t)))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},e}();function mt(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function gt(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}He(mt,(function(){return{start:this.start,end:this.end}}));var vt=new Map,bt=new Map,yt=!0,wt=!1;function xt(e){return e.replace(/[\s,]+/g," ").trim()}function _t(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=function(e){return xt(e.source.body.substring(e.start,e.end))}(e.loc),o=bt.get(n);o&&!o.has(i)?yt&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||bt.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e)})),Ge(Ge({},e),{definitions:r})}function Et(e){var t=xt(e);if(!vt.has(t)){var r=function(e,t){return new ht(e,t).parseDocument()}(e,{experimentalFragmentVariables:wt});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");vt.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(_t(r)))}return vt.get(t)}function St(e){for(var t=[],r=1;r0}var Zt,er=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||function(e){var t="";return Jt(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(Ct.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(Zt||(Zt={}));var tr=function(e){function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=n,a.variables=n.variables||{},a.queryId=r.generateQueryId(),a.shouldSubscribe=o;var s=Object(Pt.m)(n.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=r,a}return Object(Ct.c)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:Yt.error}}var t,r=this.queryManager.getCurrentQueryResult(this),n=r.data,i=r.partial,o=this.queryManager.queryStore.get(this.queryId),a=this.options.fetchPolicy,s="network-only"===a||"no-cache"===a;if(o){var c=o.networkStatus;if(function(e,t){return void 0===t&&(t="none"),e&&(e.networkError||"none"===t&&Jt(e.graphQLErrors))}(o,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:c,error:new er({graphQLErrors:o.graphQLErrors,networkError:o.networkError})};o.variables&&(this.options.variables=Object(Ct.a)(Object(Ct.a)({},this.options.variables),o.variables),this.variables=this.options.variables),t={data:n,loading:Kt(c),networkStatus:c},o.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=o.graphQLErrors)}else{var l=s||i&&"cache-only"!==a;t={data:n,loading:l,networkStatus:l?Yt.loading:Yt.ready}}return i||this.updateLastResult(Object(Ct.a)(Object(Ct.a)({},t),{stale:!1})),Object(Ct.a)(Object(Ct.a)({},t),{partial:i})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(Nt.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new Ut.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(Nt.a)(this.variables,e)||(this.variables=Object(Ct.a)(Object(Ct.a)({},this.variables),e)),Object(Nt.a)(this.options.variables,this.variables)||(this.options.variables=Object(Ct.a)(Object(Ct.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(Ct.a)(Object(Ct.a)({},this.options),{fetchPolicy:t}),Zt.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(Ut.b)(e.updateQuery,2);var r=Object(Ct.a)(Object(Ct.a)({},e.query?e:Object(Ct.a)(Object(Ct.a)(Object(Ct.a)({},this.options),e),{variables:Object(Ct.a)(Object(Ct.a)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,Zt.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})})),t.queryManager.stopQuery(n),i}),(function(e){throw t.queryManager.stopQuery(n),e}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(Ct.a)(Object(Ct.a)({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},t.prototype.setVariables=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(Nt.a)(e,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,o=r.document,a=Object(Pt.I)((function(){return e(n,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){ir(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(Pt.f)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=rr)}catch(e){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(ir(this),t.startPollingQuery(this.options,r));var n=function(t){e.updateLastResult(Object(Ct.a)(Object(Ct.a)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:Yt.error,loading:!1})),nr(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!r.loading&&n&&"cache-only"!==s&&t.transform(o).serverQuery&&!Object(Nt.a)(a,i)?e.refetch():nr(e.observers,"next",r)})):nr(e.observers,"next",r)}},error:n}).catch(n)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(Xt);function rr(e){}function nr(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function ir(e){var t=e.options.fetchPolicy;Object(Ut.b)("cache-first"!==t&&"cache-only"!==t,3)}var or=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),ar=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(Ut.b)(!t||t.document===e.document||Object(Nt.a)(t.document,e.document),19);var r,n=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==Yt.loading&&(Object(Nt.a)(t.variables,e.variables)||(n=!0,i=t.variables)),r=n?Yt.setVariables:e.isPoll?Yt.poll:e.isRefetch?Yt.refetch:Yt.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:r,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=Yt.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=Jt(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=Yt.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=Yt.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=Yt.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=Yt.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=Yt.loading}))},e}();var sr=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(Pt.A)(t.resolvers,e)})):this.resolvers=Object(Pt.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(Ct.b)(this,void 0,void 0,(function(){return Object(Ct.d)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then((function(e){return Object(Ct.a)(Object(Ct.a)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(Pt.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(Pt.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(Ct.a)(Object(Ct.a)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(Ut.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(Ct.b)(this,void 0,void 0,(function(){return Object(Ct.d)(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(Ct.a)(Object(Ct.a)({},t),e.exportedVariables)}))]:[2,Object(Ct.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(Qt.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Qt.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(Pt.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(Ct.b)(this,void 0,void 0,(function(){var a,s,c,l,u,p,d,f,h;return Object(Ct.d)(this,(function(m){return a=Object(Pt.l)(e),s=Object(Pt.j)(e),c=Object(Pt.g)(s),l=a.operation,u=l?function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(l):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:c,context:Object(Ct.a)(Object(Ct.a)({},r),{cache:d,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(Ct.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c=this;return Object(Ct.d)(this,(function(l){return n=r.fragmentMap,i=r.context,o=r.variables,a=[t],s=function(e){return Object(Ct.b)(c,void 0,void 0,(function(){var s,c;return Object(Ct.d)(this,(function(l){return Object(Pt.F)(e,o)?Object(Pt.t)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&a.push(((r={})[Object(Pt.E)(e)]=t,r))}))]:(Object(Pt.v)(e)?s=e:(s=n[e.name.value],Object(Ut.b)(s,7)),s&&s.typeCondition&&(c=s.typeCondition.name.value,r.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,r).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Object(Pt.B)(a)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(Ct.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c,l,u,p,d=this;return Object(Ct.d)(this,(function(f){return n=r.variables,i=e.name.value,o=Object(Pt.E)(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||r.defaultOperationType,(u=this.resolvers&&this.resolvers[l])&&((p=u[a?i:o])&&(c=Promise.resolve(p(t,Object(Pt.b)(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}))))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?d.resolveSubSelectedArray(e,t,r):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}();function cr(e){var t=new Set,r=null;return new Xt((function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}}))}var lr=Object.prototype.hasOwnProperty,ur=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,c=void 0!==s&&s,l=e.clientAwareness,u=void 0===l?{}:l,p=e.localState,d=e.assumeImmutableResults;this.mutationStore=new or,this.queryStore=new ar,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(Pt.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=u,this.localState=p||new sr({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!d}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new Ut.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,l=e.update,u=e.errorPolicy,p=void 0===u?"none":u,d=e.fetchPolicy,f=e.context,h=void 0===f?{}:f;return Object(Ct.b)(this,void 0,void 0,(function(){var e,o,s,u=this;return Object(Ct.d)(this,(function(f){switch(f.label){case 0:return Object(Ut.b)(t,9),Object(Ut.b)(!d||"no-cache"===d,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,h)]:[3,2];case 1:r=f.sent(),f.label=2;case 2:return o=function(){var e={};return i&&u.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var o=n.queryName;o&&lr.call(i,o)&&(e[r]={updater:i[o],query:u.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:o(),update:l,optimisticResponse:n}),this.broadcastQueries(),s=this,[2,new Promise((function(i,u){var f,m;s.getObservableFromLink(t,Object(Ct.a)(Object(Ct.a)({},h),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(Pt.q)(n)&&"none"===p?m=new er({graphQLErrors:n.errors}):(s.mutationStore.markMutationResult(e),"no-cache"!==d&&s.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:o(),update:l}),f=n)},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),s.setQuery(e,(function(){return{document:null}})),u(new er({networkError:t}))},complete:function(){if(m&&s.mutationStore.markMutationError(e,m),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),m)u(m);else{"function"==typeof a&&(a=a(f));var t=[];Jt(a)&&a.forEach((function(e){if("string"==typeof e)s.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(s.query(r))}})),Promise.all(c?t:[]).then((function(){s.setQuery(e,(function(){return{document:null}})),"ignore"===p&&f&&Object(Pt.q)(f)&&delete f.errors,i(f)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r,n){return Object(Ct.b)(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,p,d,f,h,m,g,v,b,y,w,x,_=this;return Object(Ct.d)(this,(function(E){switch(E.label){case 0:return i=t.metadata,o=void 0===i?null:i,a=t.fetchPolicy,s=void 0===a?"cache-first":a,c=t.context,l=void 0===c?{}:c,u=this.transform(t.query).document,p=this.getVariables(u,t.variables),this.transform(u).hasClientExports?[4,this.localState.addExportedVariables(u,p,l)]:[3,2];case 1:p=E.sent(),E.label=2;case 2:if(t=Object(Ct.a)(Object(Ct.a)({},t),{variables:p}),h=f="network-only"===s||"no-cache"===s,f||(m=this.dataStore.getCache().diff({query:u,variables:p,returnPartialData:!0,optimistic:!1}),g=m.complete,v=m.result,h=!g||"cache-and-network"===s,d=v),b=h&&"cache-only"!==s&&"standby"!==s,Object(Pt.s)(["live"],u)&&(b=!0),y=this.idCounter++,w="no-cache"!==s?this.updateQueryWatch(e,u,t):void 0,this.setQuery(e,(function(){return{document:u,lastRequestId:y,invalidated:!0,cancel:w}})),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:u,storePreviousVariables:b,variables:p,isPoll:r===Zt.poll,isRefetch:r===Zt.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),b){if(x=this.fetchRequest({requestId:y,queryId:e,document:u,options:t,fetchMoreForQueryId:n}).catch((function(t){throw function(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:(y>=_.getQuery(e).lastRequestId&&(_.queryStore.markQueryError(e,t,n),_.invalidate(e),_.invalidate(n),_.broadcastQueries()),new er({networkError:t}))})),"cache-and-network"!==s)return[2,x];x.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!b),this.invalidate(e),this.invalidate(n),this.transform(u).hasForcedResolvers?[2,this.localState.runResolvers({document:u,remoteResult:{data:d},context:l,variables:p,onlyRunForcedResolvers:!0}).then((function(r){return _.markQueryResult(e,r,t,n),_.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:d}])}}))}))},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e])try{r[e](t)}catch(e){}}return function(r,o){if(n.invalidate(e,!1),r){var a=n.getQuery(e),s=a.observableQuery,c=a.document,l=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==l){var u=Kt(r.networkStatus),p=s&&s.getLastResult(),d=!(!p||p.networkStatus===r.networkStatus),f=t.returnPartialData||!o&&r.previousVariables||d&&t.notifyOnNetworkStatusChange||"cache-only"===l||"cache-and-network"===l;if(!u||f){var h=Jt(r.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&h||r.networkError)return i("error",new er({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var g=void 0,v=void 0;if(o)"no-cache"!==l&&"network-only"!==l&&n.setQuery(e,(function(){return{newData:null}})),g=o.result,v=!o.complete;else{var b=s&&s.getLastError(),y="none"!==m&&(b&&b.graphQLErrors)!==r.graphQLErrors;if(p&&p.data&&!y)g=p.data,v=!1;else{var w=n.dataStore.getCache().diff({query:c,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});g=w.result,v=!w.complete}}var x=v&&!(t.returnPartialData||"cache-only"===l),_={data:x?p&&p.data:g,loading:u,networkStatus:r.networkStatus,stale:x};"all"===m&&h&&(_.errors=r.graphQLErrors),i("next",_)}catch(e){i("error",new er({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),i=Object(Pt.D)(r.transformForLink(n)),o=this.localState.clientQuery(n),a=this.localState.serverQuery(i),s={document:n,hasClientExports:Object(Pt.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Object(Pt.h)(Object(Pt.m)(n))},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(n),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(Ct.a)(Object(Ct.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(Ut.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=Object(Ct.a)({},e);return new tr({queryManager:this,options:r,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(Ut.b)(e.query,12),Object(Ut.b)("Document"===e.query.kind,13),Object(Ut.b)(!e.returnPartialData,14),Object(Ut.b)(!e.pollInterval,15),new Promise((function(r,n){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){n.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new Ut.a(16))}));var e=[];return this.queries.forEach((function(t,r){t.observableQuery&&e.push(r)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.variables;r=this.transform(r).document,i=this.getVariables(r,i);var o=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(i){if(n&&"no-cache"===n||(t.dataStore.markSubscriptionResult(i,r,e),t.broadcastQueries()),Object(Pt.q)(i))throw new er({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var a=this.localState.addExportedVariables(r,i).then(o);return new Xt((function(e){var t=null;return a.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=e.getLastResult(),c=this.getQuery(e.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var l=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),u=l.result,p=l.complete;return{data:p||a?u:void 0,partial:!p}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;Object(Ut.b)(r,17),t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,r){t.invalidated&&t.listeners.forEach((function(n){n&&n(e.queryStore.get(r),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,o=this;void 0===n&&(n=this.queryDeduplication);var a=this.transform(e).serverQuery;if(a){var s=this.inFlightLinkObservables,c=this.link,l={query:a,variables:r,operationName:Object(Pt.n)(a)||void 0,context:this.prepareContext(Object(Ct.a)(Object(Ct.a)({},t),{forceFetch:!n}))};if(t=l.context,n){var u=s.get(a)||new Map;s.set(a,u);var p=JSON.stringify(r);if(!(i=u.get(p))){u.set(p,i=cr(Ht(c,l)));var d=function(){u.delete(p),u.size||s.delete(a),f.unsubscribe()},f=i.subscribe({next:d,error:d,complete:d})}}else i=cr(Ht(c,l))}else i=Xt.of({data:{}}),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(i=function(e,t){return new Xt((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,c={next:function(e){++a,new Promise((function(r){r(t(e))})).then((function(e){--a,n&&n.call(r,e),s&&c.complete()}),(function(e){--a,i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){s=!0,a||o&&o.call(r)}},l=e.subscribe(c);return function(){return l.unsubscribe()}}))}(i,(function(e){return o.localState.runResolvers({document:h,remoteResult:e,context:t,variables:r})}))),i},e.prototype.fetchRequest=function(e){var t,r,n=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,c=e.fetchMoreForQueryId,l=s.variables,u=s.errorPolicy,p=void 0===u?"none":u,d=s.fetchPolicy;return new Promise((function(e,u){var f=n.getObservableFromLink(a,s.context,l),h="fetchRequest:"+o;n.fetchQueryRejectFns.set(h,u);var m=function(){n.fetchQueryRejectFns.delete(h),n.setQuery(o,(function(e){e.subscriptions.delete(g)}))},g=f.map((function(e){if(i>=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,e,s,c),n.queryStore.markQueryResult(o,e,c),n.invalidate(o),n.invalidate(c),n.broadcastQueries()),"none"===p&&Jt(e.errors))return u(new er({graphQLErrors:e.errors}));if("all"===p&&(r=e.errors),c||"no-cache"===d)t=e.data;else{var f=n.dataStore.getCache().diff({variables:l,query:a,optimistic:!1,returnPartialData:!0}),h=f.result;(f.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){m(),u(e)},complete:function(){m(),e({data:t,errors:r,loading:!1,networkStatus:Yt.ready,stale:!1})}});n.setQuery(o,(function(e){e.subscriptions.add(g)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=Object(Ct.a)(Object(Ct.a)({},r),t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(Ct.a)(Object(Ct.a)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==Yt.ready&&t.networkStatus!==Yt.error},e.prototype.startPollingQuery=function(e,t,r){var n=this,i=e.pollInterval;if(Object(Ut.b)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=Object(Ct.a)(Object(Ct.a)({},e),{fetchPolicy:"network-only"});var a=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?s():n.fetchQuery(t,e.options,Zt.poll).then(s,s))},s=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};r&&this.addQueryListener(t,r),s()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),pr=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var o=!Object(Pt.q)(e);i&&Object(Pt.q)(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(Pt.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(Pt.q)(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach((function(i){var o=n[i],a=o.query,s=o.updater,c=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),l=c.result;if(c.complete){var u=Object(Pt.I)((function(){return s(l,{mutationResult:e.result,queryName:Object(Pt.n)(a.document)||void 0,queryVariables:a.variables})}));u&&r.push({result:u,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&Object(Pt.I)((function(){return n(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),dr=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=void 0!==n&&n,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,c=e.queryDeduplication,l=void 0===c||c,u=e.defaultOptions,p=e.assumeImmutableResults,d=void 0!==p&&p,f=e.resolvers,h=e.typeDefs,m=e.fragmentMatcher,g=e.name,v=e.version,b=e.link;if(!b&&f&&(b=Wt.empty()),!b||!r)throw new Ut.a(4);this.link=b,this.cache=r,this.store=new pr(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=l,this.defaultOptions=u||{},this.typeDefs=h,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new sr({cache:r,client:this,resolvers:f,fragmentMatcher:m}),this.queryManager=new ur({link:this.link,store:this.store,queryDeduplication:l,ssrMode:i,clientAwareness:{name:g,version:v},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(Ct.a)(Object(Ct.a)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(Ct.a)(Object(Ct.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(Ct.a)(Object(Ct.a)({},this.defaultOptions.query),e)),Object(Ut.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(Ct.a)(Object(Ct.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(Ct.a)(Object(Ct.a)({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Ht(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();var fr=r("7506"),hr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},mr=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},gr=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new Ut.a(2);throw n.parseError=e,n}return r},vr=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=Object(Ct.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);(function(e){if(!e&&"undefined"==typeof fetch)throw new Ut.a(1)})(n),n||(n=fetch);var s={http:{includeExtensions:i},options:a.fetchOptions,credentials:a.credentials,headers:a.headers};return new Wt((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),a={};if(i.clientAwareness){var c=i.clientAwareness,l=c.name,u=c.version;l&&(a["apollographql-client-name"]=l),u&&(a["apollographql-client-version"]=u)}var p,d=Object(Ct.a)({},a,i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},h=function(e,t){for(var r=[],n=2;n=300&&mr(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||mr(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),r}))}}(e)).then((function(e){return r.next(e),r.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))})),function(){p&&p.abort()}}))}))};var br=function(e){function t(t){return e.call(this,vr(t).request)||this}return Object(Ct.c)(t,e),t}(Wt);function yr(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:xr(e)}]}}function wr(e,t){return{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:xr(e)}]}}function xr(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return xr(e[0]);var t=[];return Object.keys(e).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:xr(e[r])||void 0};t.push(n)})),{kind:"SelectionSet",selections:t}}var _r,Er={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},Sr=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(Pt.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(Pt.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t=e.id,r=e.data;if(void 0!==t){var n=null;try{n=this.read({rootId:t,optimistic:!1,query:Er})}catch(e){}var i=n&&n.__typename||"__ClientData",o=Object.assign({__typename:i},r);this.writeFragment({id:t,fragment:wr(o,i),data:o})}else this.writeQuery({query:yr(r),data:r})},e}();_r||(_r={});var kr=null,Or={},Tr=1,Ir="@wry/context:Slot",Rr=Array,Ar=Rr[Ir]||function(){var e=function(){function e(){this.id=["slot",Tr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=kr;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Or)break;return e!==kr&&(kr.slots[this.id]=t),!0}return kr&&(kr.slots[this.id]=Or),!1},e.prototype.getValue=function(){if(this.hasValue())return kr.slots[this.id]},e.prototype.withValue=function(e,t,r,n){var i,o=((i={__proto__:null})[this.id]=e,i),a=kr;kr={parent:a,slots:o};try{return t.apply(n,r)}finally{kr=a}},e.bind=function(e){var t=kr;return function(){var r=kr;try{return kr=t,e.apply(this,arguments)}finally{kr=r}}},e.noContext=function(e,t,r){if(!kr)return e.apply(r,t);var n=kr;try{return kr=null,e.apply(r,t)}finally{kr=n}},e}();try{Object.defineProperty(Rr,Ir,{value:Rr[Ir]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Cr(){}Ar.bind,Ar.noContext;var Pr=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Cr),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getEntry(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Nr=new Ar,Mr=[],Dr=[];function Ur(e,t){if(!e)throw new Error(t||"assertion failure")}function Lr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var jr=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(Ur(!this.recomputing,"already recomputing"),function(e){var t=Nr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),$r(e)?zr(t,e):Br(t,e),t}(this)||!Hr(this))return $r(this)?function(e){var t=Yr(e);return Nr.withValue(e,Fr,[e]),function(e){if("function"==typeof e.subscribe)try{Qr(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){e.dirty=!1,$r(e)||Gr(e)}(e),t.forEach(Hr),Lr(e.value)}(this):Lr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Vr(this),Qr(this))},e.prototype.dispose=function(){var e=this;Yr(this).forEach(Hr),Qr(this),this.parents.forEach((function(t){t.setDirty(),qr(t,e)}))},e.count=0,e}();function Fr(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function $r(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Vr(e){e.parents.forEach((function(t){return zr(t,e)}))}function Gr(e){e.parents.forEach((function(t){return Br(t,e)}))}function zr(e,t){if(Ur(e.childValues.has(t)),Ur($r(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Dr.pop()||new Set;e.dirtyChildren.add(t),Vr(e)}function Br(e,t){Ur(e.childValues.has(t)),Ur(!$r(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),Wr(e,t),$r(e)||Gr(e)}function Wr(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Dr.length<100&&Dr.push(r),e.dirtyChildren=null))}function Hr(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function Yr(e){var t=Mr;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(r,n){qr(e,n),t.push(n)}))),Ur(null===e.dirtyChildren),t}function qr(e,t){t.parents.delete(e),e.childValues.delete(t),Wr(e,t)}function Qr(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Kr=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t}}(),Object.prototype.hasOwnProperty),on=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=en((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){nn.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(r){t.set(r,e[r])})),Object.keys(this.data).forEach((function(r){nn.call(e,r)||t.delete(r)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function an(e){return new on(e)}var sn=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,i=void 0===n?new Kr(Pt.e):n,o=r.freezeResults,a=void 0!==o&&o,s=this,c=s.executeStoreQuery,l=s.executeSelectionSet,u=s.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=en((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof on)return i.lookup(n.store,t,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=en((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof on)return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=en((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof on)return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(Ct.a)(Object(Ct.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,o=e.returnPartialData,a=void 0===o||o,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,l=e.fragmentMatcherFunction,u=e.config,p=Object(Pt.o)(r);n=Object(Pt.c)({},Object(Pt.h)(p),n);var d={store:t,dataIdFromObject:u&&u.dataIdFromObject,cacheRedirects:u&&u.cacheRedirects||{}},f=this.executeStoreQuery({query:r,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:l}),h=f.missing&&f.missing.length>0;return h&&!a&&f.missing.forEach((function(e){if(!e.tolerable)throw new Ut.a(8)})),i&&Object(Nt.a)(i,f.result)&&(f.result=i),{result:f.result,complete:!h}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=void 0===o?ln:o,s=Object(Pt.l)(t),c=Object(Pt.j)(t),l={query:t,fragmentMap:Object(Pt.g)(c),contextValue:n,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:r,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,n=e.rootValue,i=e.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,c={result:null},l=[],u=a.store.get(n.id),p=u&&u.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function d(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach((function(e){var r;if(Object(Pt.F)(e,s))if(Object(Pt.t)(e)){var c=d(t.executeField(u,p,e,i));void 0!==c&&l.push(((r={})[Object(Pt.E)(e)]=c,r))}else{var f=void 0;if(Object(Pt.v)(e))f=e;else if(!(f=o[e.name.value]))throw new Ut.a(9);var h=f.typeCondition&&f.typeCondition.name.value,m=!h||i.fragmentMatcher(n,h,a);if(m){var g=t.executeSelectionSet({selectionSet:f.selectionSet,rootValue:n,execContext:i});"heuristic"===m&&g.missing&&(g=Object(Ct.a)(Object(Ct.a)({},g),{missing:g.missing.map((function(e){return Object(Ct.a)(Object(Ct.a)({},e),{tolerable:!0})}))})),l.push(d(g))}}})),c.result=Object(Pt.B)(l),this.freezeResults,c},e.prototype.executeField=function(e,t,r,n){var i=n.variableValues,o=n.contextValue,a=function(e,t,r,n,i,o){o.resultKey;var a=o.directives,s=r;(n||a)&&(s=Object(Pt.p)(s,n,a));var c=void 0;if(e&&void 0===(c=e[s])&&i.cacheRedirects&&"string"==typeof t){var l=i.cacheRedirects[t];if(l){var u=l[r];u&&(c=u(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&Object(Pt.H)({id:t,typename:e.__typename})}}))}}return void 0===c?{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]}:(Object(Pt.w)(c)&&(c=c.json),{result:c})}(e,t,r.name.value,Object(Pt.b)(r,i),o,{resultKey:Object(Pt.E)(r),directives:Object(Pt.i)(r,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:r,array:a.result,execContext:n})):r.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:a.result,execContext:n})):(cn(r,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],r=0;r=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var mn={fragmentMatcher:new rn,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var gn=Object.prototype.hasOwnProperty,vn=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return Object(Ct.c)(t,e),t.prototype.toObject=function(){return Object(Ct.a)(Object(Ct.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return gn.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(un),bn=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new Kr(Pt.e),r.silenceBroadcast=!1,r.config=Object(Ct.a)(Object(Ct.a)({},mn),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new on:new un,r.optimisticData=r.data,r.storeWriter=new dn,r.storeReader=new sn({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r,i=n.maybeBroadcastWatch;return r.maybeBroadcastWatch=en((function(e){return i.call(r,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return n.data instanceof on?n.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),r}return Object(Ct.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new Ut.a(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof vn;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new vn(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(Pt.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(Sr),yn=r("633a"),wn=function(e){function t(t){var r=e.call(this)||this;return t instanceof yn.SubscriptionClient?r.subscriptionClient=t:r.subscriptionClient=new yn.SubscriptionClient(t.uri,t.options,t.webSocketImpl),r}return Object(Ct.c)(t,e),t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(Wt);function xn(e){return new Wt((function(t,r){return new Dt((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var r=e.call(this)||this;return r.link=xn(t),r}Object(Ct.c)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(Wt);var _n=function(){function e(e,t,r,n){var i=this;this.operation=e,this.nextLink=t,this.delayFor=r,this.retryIf=n,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,r=i.observers;t=i)&&(r?r(n,t):!!n)}}(i),r}return Object(Ct.c)(t,e),t.prototype.request=function(e,t){var r=new _n(e,t,this.delayFor,this.retryIf);return r.start(),new Dt((function(e){return r.subscribe(e),function(){r.unsubscribe(e)}}))},t}(Wt);const Sn=new URL(be||window.location.origin),kn={},On=e=>{je.debug("[createGraphqlClient]");const t=new Wt((t,r)=>r(t).map(r=>{const{response:{headers:n}}=t.getContext();if(n){const t=n.get("x-environment")||null,r=n.get("x-unraid-api-version")||null;t&&e.commit("SET_MY_SERVERS_ENV",t),r&&e.commit("SET_MY_SERVERS_API_VERSION",r)}return r})).concat(new br({uri:`${Sn.protocol}//${Sn.host}/graphql`})),r=`${Sn.protocol.includes("https")?"wss://":"ws://"}${Sn.host}/graphql`,n=new wn({uri:r,options:{timeout:65e3,reconnect:!0,connectionParams:{"x-api-key":e.state.apikey}}});let i;n.subscriptionClient.maxConnectTimeGenerator.setMin(3e3),n.subscriptionClient.onConnected(()=>{je.debug("[🚀 wslink.onConnected 🚀]"),e.commit("SET_GRAPH_ONLINE",!0),e.state.myServersError&&e.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onReconnected(()=>{je.debug("[🚀 wslink.onReconnected 🚀]"),e.commit("SET_GRAPH_ONLINE",!0),e.commit("SET_GRAPH_RECONNECTED",!0),e.state.myServersError&&e.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onDisconnected(()=>{je.debug("[🚀 wslink.onDisconnected 🚀] 01"),e.state.graphOnline&&(clearTimeout(i),i=setTimeout(()=>{je.debug("[🚀 wslink.onDisconnected 🚀] 02"),e.commit("SET_GRAPH_ONLINE",!1),e.state.myServersError||e.commit("SET_MY_SERVERS_ERROR","Disconnected from Unraid API")},150))});const o=Bt(({query:e})=>{const t=Object(Pt.l)(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},n,t),a=function(e){return new Wt((function(t,r){var n=Object(Ct.e)(t,[]);return new Dt((function(i){var o;return Promise.resolve(n).then((function(r){return e(r,t.getContext())})).then(t.setContext).then((function(){o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})})).catch(i.error.bind(i)),function(){o&&o.unsubscribe()}}))}))}((t,{headers:r})=>({headers:{...r,"x-api-key":e.state.apikey}})),s=xn(({graphQLErrors:t,networkError:r})=>{if(t){je.error("[GraphQL error] %o",t);const r=t[0].message||t[0].error.message||"No error object - [UNRAID]";e.commit("SET_MY_SERVERS_ERROR",r)}if(r){je.error("[Network error]",r);const t=r.message?r.message:r;e.commit("SET_MY_SERVERS_ERROR",t.includes("Unexpected token < in JSON at position 0")?"Unraid API • CORS Error":t)}e.commit("SET_MY_SERVERS_LOADING",!1)}),c=new En({delay:{initial:300,max:1/0,jitter:!0},attempts:{max:1/0,retryIf:(t,r)=>(je.debug("[retryLink - retryIf]",{error:t,_operation:r}),e.commit("SET_GRAPH_ONLINE",!1),!!t)}});return new dr({link:Wt.from([c,s,a,o]),connectToDevTools:!1,cache:new bn,defaultOptions:{watchQuery:{fetchPolicy:"no-cache"},query:{fetchPolicy:"no-cache"},mutate:{fetchPolicy:"no-cache"},subscribe:{fetchPolicy:"no-cache",shouldResubscribe:!1}}})},Tn=e=>{if(!e.state.apikey)return je.debug("[getGraphqlClient] NO API KEY");if(Object.keys(kn).includes(e.state.apikey))return je.debug("[getGraphqlClient] found existing client %o",kn[e.state.apikey]),kn[e.state.apikey];const t=On(e);return kn[e.state.apikey]=t,je.debug("[getGraphqlClient] new client inbound %o",t),t},In=(e,t)=>(je.debug("[detectOwnersResponseError]",{"context.state.registered":e.state.registered,"context.state.signOutTriggered":e.state.signOutTriggered,"response.data.owner":t.data.owner,"context.state.myServersError":e.state.myServersError}),e.state.signOutTriggered?je.debug("[detectOwnersResponseError] signed out; ignoring"):!t.data.owner||t.data.owner&&"root"===t.data.owner.username?(je.error(Ie,t.data.owner),e.commit("SET_MY_SERVERS_ERROR",`${Ie} ${At()(e.state.apiVersion,"2.43.3")?"Please update your My Servers plugin to potentially fix this error. Thanks for working with us as we try to solve this bug.":"Please sign out and then sign back in to potentially fix this error. If you have already tried this please contact support. Thanks for working with us as we try to solve this bug."}`),e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!0)):t.data.owner&&"root"!==t.data.owner.username&&e.state.myServersError&&e.state.myServersError.includes(Ie)?(e.commit("SET_MY_SERVERS_ERROR",""),e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!1)):je.debug("[detectOwnersResponseError] PASSED"));var Rn=function(){return(Rn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&(r(i.reverse()[0]),n.clearMeasures&&n.clearMeasures(t),Mn.callbacks.delete(t),Mn.callbacks.size<1&&(Mn.observer.disconnect(),n.clearResourceTimings&&n.clearResourceTimings()),!0)},Mn={callbacks:new Map,observer:null,observe:function(e,t){if(e&&t){var r=Pn.a.polyfill("performance",{doThrow:!1});(function(e,t){return!Mn.observer&&e&&t&&(Mn.observer=new t((function(t){Mn.callbacks.forEach((function(r,n){Nn(t,n,r,e)}))})),e.clearResourceTimings&&e.clearResourceTimings()),Mn.observer})(r,Pn.a.polyfill("PerformanceObserver",{doThrow:!1}))&&(Nn(r,e,t,r)||(Mn.callbacks.size<1&&Mn.observer.observe({entryTypes:["resource","measure"]}),Mn.callbacks.set(e,t)))}}},Dn=Mn,Un=function(e){this.error=e},Ln=function(){return(Ln=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?r[0]+e+"?"+r[1]:this._url+e})},e.prototype.options=function(e,t){return void 0===t&&(t=!0),this.selfFactory({options:t?Cn(this._options,e):e})},e.prototype.query=function(e,t){return void 0===t&&(t=!1),this.selfFactory({url:Gn(this._url,e,t)})},e.prototype.headers=function(e){return this.selfFactory({options:Cn(this._options,{headers:e||{}})})},e.prototype.accept=function(e){return this.headers({Accept:e})},e.prototype.content=function(e){var t;return this.headers(((t={})[$n]=e,t))},e.prototype.auth=function(e){return this.headers({Authorization:e})},e.prototype.catcher=function(e,t){var r=new Map(this._catchers);return r.set(e,t),this.selfFactory({catchers:r})},e.prototype.signal=function(e){return this.selfFactory({options:Ln(Ln({},this._options),{signal:e.signal})})},e.prototype.resolve=function(e,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[e]:jn(jn([],this._resolvers),[e])})},e.prototype.defer=function(e,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[e]:jn(jn([],this._deferredChain),[e])})},e.prototype.middlewares=function(e,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?e:jn(jn([],this._middlewares),e)})},e.prototype.method=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=null);var n=this.options(Ln(Ln({},t),{method:e})),i=n._options.headers;return function(e){var t=e._url,r=e._catchers,n=e._resolvers,i=e._middlewares,o=e._options,a=new Map(r),s=Cn(Pn.a.defaults,o),c=Pn.a.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&c&&(s.signal=c.signal);var l={ref:null,clear:function(){l.ref&&(clearTimeout(l.ref),l.ref=null)}},u=function(e){return function(t){return 0===e.length?t:1===e.length?e[0](t):e.reduceRight((function(r,n,i){return i===e.length-2?n(r(t)):n(r)}))}}(i)(Pn.a.polyfill("fetch"))(t,s),p=u.catch((function(e){throw new Un(e)})).then((function(e){return l.clear(),e.ok?e:e[Pn.a.errorType||"text"]().then((function(t){var r=new Error(t);throw r[Pn.a.errorType||"text"]=t,r.status=e.status,r.response=e,r}))})),d=function(t){return t.catch((function(t){l.clear();var r=t instanceof Un?t.error:t;if(t instanceof Un&&a.has("__fromFetch"))return a.get("__fromFetch")(r,e);if(a.has(r.status))return a.get(r.status)(r,e);if(a.has(r.name))return a.get(r.name)(r,e);throw r}))},f=function(e){return function(t){return d(e?p.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e})):p.then((function(e){return t?t(e):e})))}},h={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(e){return u.then((function(t){return Dn.observe(t.url,e)})),h},setTimeout:function(e,t){return void 0===t&&(t=c),l.clear(),l.ref=setTimeout((function(){return t.abort()}),e),h},controller:function(){return[c,h]},error:function(e,t){return a.set(e,t),h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return n.reduce((function(t,r){return r(t,e)}),h)}((n=r?"object"!=typeof r||i&&!Object.entries(i).every((function(e){var t=e[0],r=e[1];return t.toLowerCase()!==$n.toLowerCase()||r.startsWith(Fn)}))?n.body(r):n.json(r):n)._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),n))},e.prototype.get=function(e){return this.method("GET",e)},e.prototype.delete=function(e){return this.method("DELETE",e)},e.prototype.put=function(e,t){return this.method("PUT",t,e)},e.prototype.post=function(e,t){return this.method("POST",t,e)},e.prototype.patch=function(e,t){return this.method("PATCH",t,e)},e.prototype.head=function(e){return this.method("HEAD",e)},e.prototype.opts=function(e){return this.method("OPTIONS",e)},e.prototype.replay=function(e){return this.method(this._options.method,e)},e.prototype.body=function(e){return this.selfFactory({options:Ln(Ln({},this._options),{body:e})})},e.prototype.json=function(e){var t,r=null===(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],r=e[1];return t.toLowerCase()===$n.toLowerCase()&&r.startsWith(Fn)})))||void 0===t?void 0:t[1];return this.content(r||Fn).body(JSON.stringify(e))},e.prototype.formData=function(e,t){return void 0===t&&(t=!1),this.body(function e(t,r,n,i){return void 0===r&&(r=!1),void 0===n&&(n=Pn.a.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var o=t[0],a=t[1],s=i.reduce((function(e,t){return e?e+"["+t+"]":t}),null);if(s=s?s+"["+o+"]":o,a instanceof Array)for(var c=0,l=a;cje.error(e));const Hn=Wn("https://keys.lime-technology.com").catcher(e=>je.error(e)),Yn=Wn("https://wanip4.unraid.net/").catcher(e=>je.error(e)),qn=Wn("/webGui/include/InstallKey.php").catcher(e=>je.error(e)),Qn=Wn().catcher(e=>je.error(e)),Kn=Wn("/update.php").catcher(e=>je.error(e)),Xn=Wn("/webGui/include/UpdateDNS.php").catcher(e=>je.error(e)),Jn=Wn("/plugins/dynamix.my.servers/include/unraid-api.php").catcher(e=>je.error(e)),Zn=e=>Hn.url("/ips/newaccount").formUrl(e).post(),ei=(e,t)=>Hn.url(e).formUrl(t).post(),ti=e=>Hn.url("/ips/validate").formUrl(e).post(),ri=e=>Hn.url("/ips/troubleshoot").formUrl(e).post(),ni=e=>Hn.url("/account/server/unregister").formUrl(e).post(),ii=e=>Hn.url("/account/trial").formUrl(e).post(),oi=e=>Hn.url("/ips/updateaccount").formUrl(e).post(),ai=e=>Hn.url("/account/license/transfer").formUrl(e).post();let si=0;const ci=e=>{setTimeout(()=>{Xn.formUrl({csrf_token:e}).post().res(e=>je.debug("[WebguiUpdateDns] %o",e)).catch(e=>je.error("[WebguiUpdateDns] %o",e))},500)},li=e=>{e.preventDefault(),e.returnValue="",alert((void 0).$t("regWizPopUp.closingPopUpMayLeadToErrors"))},ui={openPopUp({commit:e,dispatch:t,state:r},n){if(je.debug("[openPopUp] %o",n||"focus existing pop-up"),r.popUpWindow)return r.popUpWindow.focus();const i=((e,t,r,n)=>{const i=void 0!==window.screenLeft?window.screenLeft:window.screenX,o=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,c=a/window.screen.availWidth>1?a/window.screen.availWidth:1,l=(a-r)/2/c+i,u=(s-n)/2/c+o,p=Object.entries({toolbar:"no",location:"yes",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:r/c,height:n/c,top:u,left:l}).reduce((e,t)=>e+`${t[0]}=${t[1]},`,"");return window.open(e,t,p)})(n.url,n.name,n.width,n.height),o=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,a=n.url.toString().includes("/preflight")?"#fff":"linear-gradient(to right, #E22828 0%, #ff8c2f 100%)";i.document.body.style.background=o?"#222":a;try{i.focus(),e("CHANGE_POP_UP_WINDOW",i),e("STATE_AT_OPEN",r.registered);const n=setInterval(()=>{r.popUpWindow||clearInterval(n),r.popUpWindow&&r.popUpWindow.closed&&(clearInterval(n),t("resetPopUp",{reloadWebGUI:!1}))},250);return window.onunload=()=>{r.popUpWindow&&!r.popUpWindow.closed&&r.popUpWindow.close()},!0}catch(e){return alert("Pop-up blocker detected.\nTo continue successfully please add this website to your browser's exeception list then refresh.")}},resetPopUp({commit:e,dispatch:t},r={reloadWebGUI:!0}){je.debug("[resetPopUp] %o",r),e("CHANGE_POP_UP_WINDOW",null),t("updateServerState"),r.reloadWebGUI&&t("reloadWebGUI")},closePopUp({dispatch:e,state:t},r={reloadWebGUI:!1}){je.debug("[closePopUp] %o",r),t.popUpWindow&&(t.popUpWindow.close(),e("resetPopUp",{reloadWebGUI:r.reloadWebGUI}))},reloadWebGUI(){je.debug("[reloadWebGUI] %s","✨"),window.location.reload()},closePopUpFromPopUp({dispatch:e}){je.debug("[closePopUpFromPopUp] %o"),e("resetPopUp"),window.close()},sendDataPostMessageToServer({state:e}){const t="SignOut"===e.submissionFrom?{event:"MYSERVERS_UNREGISTER"}:{event:"REG_WIZARD",keyfile:e.keyfile,license:e.license,email:e.userEmail,apikey:e.apikey,avatar:e.avatar,username:e.username,guid:e.guid};je.debug("[sendDataPostMessageToServer] %o",t);try{return Oe.postMessage(JSON.stringify(t),e.osGui?"*":e.site)}catch(e){return ke||je.warn("[sendDataPostMessageToServer] !CAN_POST_MESSAGE",t),je.error("[sendDataPostMessageToServer] %o",e)}},requestUpdatedServerStateFromUpc({state:e}){je.debug("[requestUpdatedServerStateFromUpc]");try{return Oe.postMessage(JSON.stringify({event:"SUCCESS_NEW_STATE"}),e.osGui?"*":e.site)}catch(e){return ke||je.warn("[requestUpdatedServerStateFromUpc] !CAN_POST_MESSAGE",ke),je.error("[requestUpdatedServerStateFromUpc] %o",e)}},receivePostMessage({commit:e,dispatch:t,getters:r,state:n},i={event:null}){if(!i.event)return void je.error("postMessage no event");je.debug("[receivePostMessage] payload.event %o",i.event);const[o,a]=Re(i.event.data);if(o)return;je.log("[receivePostMessage] payload.event.data.event %o",a.event);const s=a&&a.event&&["REQUEST_API_REPORT","API_EXECUTE_PINGBACK"].includes(a.event),c=i.event.origin;if(c.includes("extension://"))return void je.log("Skipping postMessage from browser extension",c);const l=c===ge,u=ve.includes(c),p=!!(a&&a.server&&a.server.site)&&c===a.server.site,d=c===n.site,f=!!(a&&a.server&&a.server.extraOrigins)&&a.server.extraOrigins.includes(c),h="SESSION"===a.event?p||f:d,m=s||l||u||h,g={"data.server.extraOrigins":a&&a.server?a.server.extraOrigins:"","data.server.site":a&&a.server?a.server.site:"","payload.event.origin":c,"state.site":n.site,pmOriginMatchesDataServerUrl:p,pmOriginMatchesStateSite:d,pmOriginIncludedInExtraOrigins:f,fromRegWiz:l,fromPurchase:u,fromWebGui:h,acceptDebugEvents:s,originAllowed:m};if(!m)return je.error("[receivePostMessage] ❌ postMessage origin not allowed ❌ %o",g),e("SET_POST_MESSAGE_ERROR",g),void e("SET_RAW_SERVER_STATE",a.server);je.debug("[receivePostMessage] originAllowed %o",g);const v=e=>{try{return je.log("[receivePostMessage.sendBackPostMessage] %o",e.event),i.event.source.postMessage(JSON.stringify(e),n.osGui?"*":c)}catch(t){return je.error("[sendBackPostMessage.catch] %o",{error:t,message:e})}},b=async t=>{if(!t)return je.error("[installKey] missing license data: %s",t);let r=t.split("/");if(r=r[r.length-1].slice(0,-4).toUpperCase(),r===n.state)return v({event:"LICENSE_PINGBACK",message:"Failed to license new key – duplicate install detected",license:t,success:!1}),je.error("[installKey] duplicate install detected",{state:n.state,keyType:r});je.debug("[receivePostMessage.installKey] %o",t);return await qn.query({url:t}).get().res(r=>{je.debug("[receivePostMessage.installKey] SUCCESS %o",r),setTimeout(()=>{ci(n.csrf)},1e3),v({event:"LICENSE_PINGBACK",message:"New license key installed",license:t,success:!0}),e("SET_PIRATE_KEY",!1)}).catch(e=>{je.error("[receivePostMessage.installKey] FAILED: "+t,e),v({event:"LICENSE_PINGBACK",message:"Failed to license new key",license:t,success:!1})})},y=async()=>{je.debug("[receivePostMessage.signOutUnraidNet] 👋");return await Kn.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",apikey:"",avatar:"",email:"",username:"",wanaccess:"no",...!n.hideMyServers&&{"#command":"/plugins/dynamix.my.servers/scripts/.nginx_reload"}}).post().res(t=>{je.debug("[receivePostMessage.signOutUnraidNet] WebguiUpdate.res %o",t),e("SET_SIGN_OUT_TRIGGERED",!0),v({event:"ACCOUNT_PINGBACK",success:!0,type:"signOut",webGuiPathname:window.location.pathname})}).catch(e=>{je.error(`[receivePostMessage.signOutUnraidNet] WebguiUpdate.catch Sign out ${n.servername} from Unraid.net failed 😢 %o`,e),v({event:"ACCOUNT_PINGBACK",success:!1,type:"signOut",webGuiPathname:window.location.pathname})})};switch(a.event){case"SESSION":je.debug("[receivePostMessage] SESSION"),e("SET_FULL_SERVER_STATE",a.server),e("SET_RAW_SERVER_STATE",a.server),he.mergeLocaleMessage(a.locale,a.messages),he.locale=a.locale,je.debug(`[receivePostMessage] SESSION ${he.locale} locale & messages set`,he.messages);break;case"PREFLIGHT_REQUEST":if(je.debug("[receivePostMessage] PREFLIGHT_REQUEST"),!r.allowedOrigins.includes(c)){je.error("[🙅‍♂️ ACCESS DENIED]");break}try{t("updateServerState").then(e=>{je.debug("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.then %o",{res:e,"getters.server":r.server}),v({event:"SESSION",server:{...r.server},locale:he.locale,messages:{...he.messages[he.locale]}})}).catch(e=>{je.error("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.catch %o",e),v({event:"DELIVER_NEW_STATE",success:!1})})}catch(e){je.error("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.trycatch %o",e),v({event:"DELIVER_NEW_STATE",success:!1})}break;case"LICENSE_PINGBACK":je.debug("[receivePostMessage] LICENSE_PINGBACK"),e("LICENSE_PINGBACK",a);break;case"ACCOUNT_PINGBACK":je.debug("[receivePostMessage] ACCOUNT_PINGBACK"),e("ACCOUNT_PINGBACK",a);break;case"DELIVER_NEW_STATE":je.debug("[receivePostMessage] DELIVER_NEW_STATE %o",a);const i=!!n.license,o=n.licenseAction&&!n.licenseAction.success,s=n.state,l=a&&a.state?a.state:null,u=s===l;if(je.debug("[receivePostMessage] DELIVER_NEW_STATE %o",{keyToInstall:i,failedKeyInstall:o,oldState:s,newState:l,potentiallyStaleState:u,deliverNewStateRetryCounter:si}),o){e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}if(i&&u&&si<6){setTimeout(()=>{je.debug("[potentiallyStaleState] %o",{potentiallyStaleState:u}),je.debug("[deliverNewStateRetryCounter] %o",{deliverNewStateRetryCounter:si}),t("requestUpdatedServerStateFromUpc"),si+=1},350*si);break}if(i&&u&&si>=6){e("SET_APP_ERROR_MESSAGE",`Failed to receive latest server info${n.licenseAction&&n.licenseAction.success?" after successful key install":""}. Please close this pop-up and refresh the webGUI.`),e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}e("SET_FULL_SERVER_STATE",a),e("SET_RAW_SERVER_STATE",a),e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now()),si=0;break;case"KEY_PURCHASE":je.debug("[receivePostMessage] KEY_PURCHASE"),b(a.license),a.oem&&y();break;case"MYSERVERS_UNREGISTER":je.debug("[receivePostMessage] MYSERVERS_UNREGISTER WebguiUpdate"),y();break;case"REG_WIZARD":je.debug("[receivePostMessage] REG_WIZARD %o",a),a.license&&b(a.license),je.debug("[receivePostMessage] REG_WIZARD WebguiUpdate %o",a),Kn.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",regWizTime:`${Date.now()}_${a.guid}`,...a.apikey&&{apikey:a.apikey},...a.email&&{email:a.email},...a.username&&{username:a.username},...a.avatar&&{avatar:a.avatar}}).post().res(r=>{je.debug("[receivePostMessage] REG_WIZARD WebguiUpdate.res %o",r),a.license||ci(n.csrf),e("SET_SIGN_OUT_TRIGGERED",!1);let i=0;const o=setInterval(()=>{je.debug("[receivePostMessage] REG_WIZARD WebguiUpdate.res intervalForUpdatedState"),i+=1;try{t("updateServerState").then(e=>{je.debug("[receivePostMessage] REG_WIZARD WebguiUpdate.res intervalForUpdatedState updatedState %o",{updatedState:e,countIntervalRuns:i}),(!n.hideMyServers&&e.avatar&&e.username&&"root"!==e.username||n.hideMyServers&&i>=4)&&(clearInterval(o),v({event:"ACCOUNT_PINGBACK",success:!0,type:"signIn",webGuiPathname:window.location.pathname,res:e}))}).catch(e=>{je.error("[receivePostMessage] REG_WIZARD WebguiUpdate.re intervalForUpdatedState error %o",{error:e,countIntervalRuns:i}),clearInterval(o),v({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})})}catch(e){je.error("[receivePostMessage] REG_WIZARD WebguiUpdate catchError %o",{catchError:e,countIntervalRuns:i}),clearInterval(o),v({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})}},250)}).catch(e=>{je.error("[WebguiUpdate] %o",e),v({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})});break;case"RELOAD":je.debug("[receivePostMessage] RELOAD"),window.location.reload();break;case"SUCCESS_NEW_STATE":je.debug("[receivePostMessage] SUCCESS_NEW_STATE");try{t("updateServerState").then(e=>{je.debug("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.then"),v({...e,event:"DELIVER_NEW_STATE",success:!0})}).catch(e=>{je.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.catch %o",e),v({event:"DELIVER_NEW_STATE",success:!1})})}catch(e){je.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.trycatch %o",e),v({event:"DELIVER_NEW_STATE",success:!1})}break;case"REDIRECT_MAIN":je.debug("[receivePostMessage] REDIRECT_MAIN"),window.location.href="/Main";break;case"REQUEST_API_REPORT":const p=n.apiVersion&&Ve()(n.apiVersion,"2.43.3")?"-vv":"-v";je.debug("[receivePostMessage] REQUEST_API_REPORT %o",{apiVersion:n.apiVersion,params:p});try{Jn.formUrl({csrf_token:n.csrf,command:"report",params:p}).post().json(t=>{je.debug("👼 [receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.json %o",t),e("SET_API_EXECUTE_RESPONSE",t.result),v({event:"API_EXECUTE_PINGBACK",result:t.result})}).catch(e=>{je.error("[receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.catch failed to execute `unraid-api` report 😢 %o",e),v({event:"API_EXECUTE_PINGBACK",error:e})})}catch(e){je.error("[receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.catch failed to execute `unraid-api` report 😢 %o",e),v({event:"API_EXECUTE_PINGBACK",error:e})}break;case"API_EXECUTE_PINGBACK":je.debug("[receivePostMessage] API_EXECUTE_PINGBACK"),a&&a.result&&e("SET_API_EXECUTE_RESPONSE",a.result);break;case"YARG_MATEY":je.debug("[receivePostMessage] YARG_MATEY"),e("SET_PIRATE_KEY",a.ts);break;default:je.debug("[receivePostMessage] UNHANDLED_MESSAGE")}},setStateFromWebComponentProp({commit:e},t){je.debug("[setStateFromWebComponentProp]");const[r,n]=Re(decodeURIComponent(t));return r?je.error("[setStateFromWebComponentProp] %o",t):e("SET_FULL_SERVER_STATE",n)},async updateServerState({commit:e,dispatch:t,getters:r,state:n}){if(je.debug("[updateServerState]"),ge===window.location.origin)return je.debug("[SKIPPED] updateServerState()");je.debug("[updateServerState]",{"state.signOutTriggered":n.signOutTriggered,"state.hideMyServers":n.hideMyServers,"!state.graphOnline":!n.graphOnline,"!getters.validApiKeyLength":!r.validApiKeyLength,"!getters.validApiKeyForUpc":!r.validApiKeyForUpc}),!n.signOutTriggered&&!n.hideMyServers&&n.graphOnline&&r.validApiKeyLength&&r.validApiKeyForUpc?(je.debug("[updateServerState] via serverStateFromApi"),await t("serverStateFromApi")):(je.debug("[updateServerState] via ",r.statePhpPath),await Qn.url(r.statePhpPath).get().json().then(t=>t?e("SET_FULL_SERVER_STATE",t):je.error("[updateUpcFromStatePhp] no `res` skipping `SET_FULL_SERVER_STATE`")).catch(e=>{je.error("[updateUpcFromStatePhp WebguiState.catch] %o",e),(e.toString().includes("Unexpected token")||e.toString().includes("503"))&&(window.location.href="/")}));const i=r.server;return je.debug("[updateServerState] newState %o",i),i},async validateGuid({commit:e,getters:t,state:r}){await new Promise((n,i)=>{if(r.guidValidationRunning)return je.debug("[validateGuid] already validating");e("CHANGE_GUID_VALIDATION_RUNNING",!0);const o=r.regWizTime?r.regWizTime.split("_")[1]:null,a=!!o&&o===r.guid;je.debug("[validateGuid] %o",{guid:r.guid,regGuid:r.regGuid,regWizTimeGuid:o,previouslyRegistered:a});let s="GUID Invalid";if(!r.guid||r.guid===Se)return je.debug(`[validateGuid] ${s} %o`,{"!state.guid":!r.guid,GUID_NOT_RECEIVED:Se}),s+=": not present",e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1),e("SET_STATE","EBLACKLISTED1"),e("SET_APP_ERROR_MESSAGE",s),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),n(!1);if(a&&!t.stateData.error)return je.debug("[validateGuid] previouslyRegistered %s",r.guid),e("CHANGE_GUID_REGISTERED",!0),e("CHANGE_GUID_VALID",!0),e("CHANGE_GUID_FORUMACCOUNT",!0),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),n(!0);const c=r.guid.includes("000000000000");if(r.guid&&r.guid!==Se&&(c||27!==r.guid.length))return c?(s+=": Too many consecutive zeros",e("SET_STATE","EBLACKLISTED2")):(s+=": Not long enough",e("SET_STATE","EBLACKLISTED1")),e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1),e("SET_APP_ERROR_MESSAGE",s),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),i(new Error(s));r.regGuid||je.warn("[validateGuid] state.regGuid empty. Getting regGuid from state.regWizTime.");const l=r.regGuid||o||"";e("CHANGE_GUID_FOR_VALIDATION","EGUID"===r.state?l:r.guid),e("CHANGE_GUID_BLACKLISTED",null);try{const t=Hn.url("/validate/guid").formUrl({guid:r.guidForValidation}).post().forbidden(t=>{let n;const[i,o]=Re(t.message);o&&!i||!t.message||(n=t.message),o&&o.error&&(n=o.error),je.error("[validateGuid] POST.forbidden %o",n),n.includes("blacklisted")?(e("CHANGE_GUID_BLACKLISTED",!0),"EGUID"!==r.state?(e("SET_STATE","EBLACKLISTED"),e("SET_APP_ERROR_MESSAGE",n)):je.warn("[validateGuid] skip EBLACKLISTED state overwrite")):n.includes("invalid GUID")&&("EGUID"!==r.state?(e("SET_STATE","EBLACKLISTED1"),e("SET_APP_ERROR_MESSAGE",n)):je.warn("[validateGuid] skip EBLACKLISTED state overwrite")),e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1)}).json(t=>{je.debug("[validateGuid] POST.json %o",t),t.registered&&e("CHANGE_GUID_REGISTERED",t.registered),e("CHANGE_GUID_FORUMACCOUNT",t.forumaccount||!1),e("CHANGE_GUID_VALID",!0),e("CHANGE_REPLACEABLE",t.replaceable)}).catch(t=>{je.error("[validateGuid] POST.catch %o",t),e("SET_APP_ERROR_MESSAGE",t.message),i(new Error(t))}).finally(()=>{je.debug("[validateGuid] POST.finally"),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1)});return n(t)}catch(t){return je.error("[validateGuid] try/catch %o",t),e("SET_APP_ERROR_MESSAGE",t),e("CHANGE_GUID_VALIDATION_RUNNING",!1),i(new Error(t))}})},async startTrial({commit:e,state:t}){je.debug("[startTrial]"),e("SET_LOADING_STATE","Fetching trial…"),window.addEventListener("beforeunload",li),t.isLaunchpadOpen||e("SET_IS_LAUNCHPAD_OPEN",!1),await i.startTrial({timestamp:Math.floor((new Date).getTime()/1e3),guid:t.guid}).json().then(t=>{e("SET_LOADING_STATE","Installing trial…"),qn.query({url:t.license}).get().res(t=>{je.debug("[KeyServer.startTrial.WebguiInstallKey] SUCCESS %o",t),setTimeout(()=>{e("SET_LOADING_STATE","Verifying trial install…"),setTimeout(()=>{e("SET_LOADING_STATE","Reloading webgui…"),sessionStorage.setItem("showPromoPostTrialInstall",Date.now()),e("SET_PIRATE_KEY",!1),window.removeEventListener("beforeunload",li),window.location.reload()},4e3)},1500)}).catch(r=>{je.error("[KeyServer.startTrial.WebguiInstallKey.catch] FAILED: "+t,r);const[n,i]=Re(r.message);e("SET_APP_ERROR_MESSAGE",i?i.errorMessage?i.errorMessage:i.error:r),e("SET_LOADING_STATE",!1)})}).catch(t=>{je.error("[KeyServer.startTrial.catch] FAILED",t);const[r,n]=Re(t.message);e("SET_APP_ERROR_MESSAGE",n?n.errorMessage?n.errorMessage:n.error:t),e("SET_LOADING_STATE",!1)})},togglePromo({commit:e,state:t}){je.debug("[togglePromo]");const r="unraid-promo";if(!document.getElementsByTagName(r).length){const e=document.getElementsByTagName("body")[0],t=document.createElement(r);e.appendChild(t)}e("SET_IS_LAUNCHPAD_OPEN",!1),e("SET_IS_PROMO_OPEN",!t.isPromoOpen)},jumpToUpc({commit:e}){window.scrollTo({top:0,behavior:"smooth"}),e("TRIGGER_UPC",!0),setTimeout(()=>{e("TRIGGER_UPC",!1)},500)},async getWanIp({commit:e,state:t}){if(je.debug("[getWanIp]"),t.wanip)return je.debug("[getWanIp] SKIPPED",t.wanip);try{return e("SET_WANIP",await Yn.get().text())}catch(e){return je.error("[getWanIp] Unable to get WAN IP")}},async executeUnraidApi({commit:e,state:t},r={command:"",param1:null}){je.debug("[executeUnraidApi]",r);const{command:n,param1:i}=r;"start"===n&&e("SET_MY_SERVERS_LOADING",!0);return await Jn.formUrl({csrf_token:t.csrf,command:n,param1:i}).post().json(e=>{je.debug("👼 [executeUnraidApi] json %o",e)}).catch(e=>{je.error(`[executeUnraidApi] catch failed to execute unraid-api ${n} 😢 %o`,e)})},fetchServers:async e=>{je.debug("[fetchServers]"),e.commit("SET_MY_SERVERS_LOADING",!0);const t=await Tn(e).query({query:Ot`query initialGetServers { +function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,t.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u=e)}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){},d.prototype.commit=function(e,t,r){var n=this,i=y(e,t,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,n.state)})))},d.prototype.dispatch=function(e,t){var r=this,n=y(e,t),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,r.state)}))}catch(e){}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,r.state)}))}catch(e){}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,r.state,e)}))}catch(e){}t(e)}))}))}},d.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){return h("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},d.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},d.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),r.preserveState),g(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var r=b(t.state,e.slice(0,-1));u.delete(r,e[e.length-1])})),m(this)},d.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,f);var x=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=T(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0})),r})),_=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=T(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),E=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},r[n].vuex=!0})),r})),S=O((function(e,t){var r={};return k(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=T(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r}));function k(e){return function(e){return Array.isArray(e)||s(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function O(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function T(e,t,r){return e._modulesNamespaceMap[r]}function I(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function A(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function R(){var e=new Date;return" @ "+C(e.getHours(),2)+":"+C(e.getMinutes(),2)+":"+C(e.getSeconds(),2)+"."+C(e.getMilliseconds(),3)}function C(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var P={Store:d,install:w,version:"3.6.2",mapState:x,mapMutations:_,mapGetters:E,mapActions:S,createNamespacedHelpers:function(e){return{mapState:x.bind(null,e),mapGetters:E.bind(null,e),mapMutations:_.bind(null,e),mapActions:S.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var p=o(e.state);void 0!==u&&(c&&e.subscribe((function(e,a){var s=o(a);if(r(e,p,s)){var c=R(),l=i(e),d="mutation "+e.type+c;I(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",n(p)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),A(u)}p=s})),l&&e.subscribeAction((function(e,r){if(a(e,r)){var n=R(),i=s(e),o="action "+e.type+n;I(u,o,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),A(u)}})))}}};t.a=P}).call(this,r("c8ba"))},"2f6c":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r("ad67"),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,l=Array.isArray(e),u=[e],p=-1,d=[],f=void 0,h=void 0,m=void 0,g=[],v=[],b=e;do{var y=++p===u.length,w=y&&0!==d.length;if(y){if(h=0===v.length?void 0:g[g.length-1],f=m,m=v.pop(),w){if(l)f=f.slice();else{for(var x={},_=0,E=Object.keys(f);_0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=t,o={};return n.forEach((function(e){o[e]=i[e]})),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return r&&Object.keys(r).forEach((function(e){-1===u.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@"+e+"("+JSON.stringify(r[e])+")":a+="@"+e)})),a}function d(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),r}return null}function f(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function v(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function y(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach((function(e){r[e.name.value]=d(e,t)})),r}return null}function w(e,t){return void 0===t&&(t={}),function(e){return e?e.filter(E).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var r=t[0];Object(i.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}})):[]}(e.directives).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t[n.value.name.value],Object(i.b)(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}))}function x(e,t){return function(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function _(e){return e&&x(["client"],e)&&x(["export"],e)}function E(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(Object(i.b)(1===n.length,12),r=n[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function k(e){for(var t=[],r=1;r1){var n=[];t=ae(t,n);for(var i=1;i My Servers (BETA) features","learnMore":"Learn more","checkoutTheMyServersDocs":"Checkout the My Servers docs","popUp":"Pop-up","backToPopUp":"Back to @:popUp","closePopUp":"Close @:popUp","close":"Close","contactSupport":"Contact Support","lanIp":"LAN IP {0}","continueToUnraid":"Continue to Unraid","year":"year","years":"years","month":"month","months":"months","day":"day","days":"days","hour":"hour","hours":"hours","minute":"minute","minutes":"minutes","second":"second","seconds":"seconds","ago":"ago","basicPlusPro":{"heading":"Thank you for choosing Unraid OS and My Servers!","message":{"registered":"Connect to My Servers by signing in to Unraid.net","upgradeEligible":"To support more storage devices as your server grows, click Upgrade Key."}},"actions":{"purchase":"Purchase Key","upgrade":"Upgrade Key","recover":"Recover Key","replace":"Replace Key","replaceIneligible":"Replace Key Ineligible","startTrial":"Start Free 30 Day Trial","extend":"Extend Trial","signOutUnraidNet":"Sign Out of Unraid.net","redeemActivationCode":"Redeem Activation Code"},"stateData":{"ENOKEYFILE":{"humanReadable":"No Keyfile","heading":"Let\'s unleash your hardware!","message":"

Your server will not be usable until you purchase a Registration key or install a free 30-day Trial key. A Trial key provides all the functionality of a Pro Registration key.

Registration keys are bound to your USB Flash boot device serial number (GUID). Please use a high quality name brand device at least 1GB in size.

Note: USB memory card readers are generally not supported because most do not present unique serial numbers.

Important:

  • Please make sure your server time is accurate to within 5 minutes
  • Please make sure there is a DNS server specified
"},"TRIAL":{"humanReadable":"Trial","heading":"Thank you for choosing Unraid OS!","message":"

Your Trial key includes all the functionality and device support of a Pro key.

After your Trial has reached expiration, your server still functions normally until the next time you Stop the array or reboot your server.

At that point you may either purchase a license key or request a Trial extension.

","_extraMsg":"

You have {parsedExpireTime} remaining on your Trial key.

"},"EEXPIRED":{"humanReadable":"Trial Expired","heading":"Your Trial has expired","message":{"base":"To continue using Unraid OS you may purchase a license key.","extensionNotEligible":"You have used all your Trial extensions. @:stateData.EEXPIRED.message.base","extensionEligible":"@:stateData.EEXPIRED.message.base Alternately, you may request a Trial extension."}},"BASIC":{"humanReadable":"Basic"},"PLUS":{"humanReadable":"Plus"},"PRO":{"humanReadable":"Pro"},"EGUID":{"humanReadable":"GUID Error","error":{"heading":"Registration key / GUID mismatch","message":{"default":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key.","replacementIneligible":"Your Unraid registration key is ineligible for replacement as it has been replaced within the last 12 months.","replacementEligible":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key or Replace Key.","blacklisted":"Your Unraid registration key is ineligible for replacement as it is blacklisted."}}},"ENOKEYFILE2":{"humanReadable":"Missing key file","error":{"heading":"@:stateData.ENOKEYFILE2.humanReadable","message":"It appears that your license key file is corrupted or missing. The key file should be located in the /config directory on your USB Flash boot device. If you do not have a backup copy of your license key file you may install the My Servers (beta) plugin to attempt to recover your key. If this was an expired Trial installation, you may purchase a license key."}},"ETRIAL":{"humanReadable":"Invalid installation","error":{"heading":"@:stateData.ETRIAL.humanReadable","message":"It is not possible to use a Trial key with an existing Unraid OS installation. You may purchase a license key corresponding to this USB Flash device to continue using this installation."}},"ENOKEYFILE1":{"humanReadable":"No Keyfile","error":{"heading":"No USB flash configuration data","message":"There is a problem with your USB Flash device"}},"ENOFLASH":{"humanReadable":"No Flash","error":{"heading":"Cannot access your USB Flash boot device","message":"There is a physical problem accessing your USB Flash boot device"}},"EGUID1":{"humanReadable":"Multiple License Keys Present","error":{"heading":"@:stateData.EGUID1.humanReadable","message":"There are multiple license key files present on your USB flash device and none of them correspond to the USB Flash boot device. Please remove all key files, except the one you want to replace, from the /config directory on your USB Flash boot device. Alternately you may purchase a license key for this USB flash device. If you want to replace one of your license keys with a new key bound to this USB Flash device, please first remove all other key files first."}},"EBLACKLISTED":{"humanReadable":"BLACKLISTED","error":{"heading":"Blacklisted USB Flash GUID","message":"This USB Flash boot device has been blacklisted. This can occur as a result of transferring your license key to a replacement USB Flash device, and you are currently booted from your old USB Flash device. A USB Flash device may also be blacklisted if we discover the serial number is not unique – this is common with USB card readers."}},"EBLACKLISTED1":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash device error","message":"This USB Flash device has an invalid GUID. Please try a different USB Flash device"}},"EBLACKLISTED2":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash has no serial number","message":"@:stateData.EBLACKLISTED.error.message"}},"ENOCONN":{"humanReadable":"Trial Requires Internet Connection","error":{"heading":"Cannot validate Unraid Trial key","message":"Your Trial key requires an internet connection. Please check Settings > Network"}},"STALE":{"humanReadable":"Stale","error":{"heading":"Stale Server","message":"Please refresh the page to ensure you load your latest configuration"}}},"upc":{"avatarAlt":"{0}\'s Avatar","confirmClosure":"Confirm closure then continue to webGUI","closeDropdown":"Close dropdown","openDropdown":"Open dropdown","pleaseConfirmClosureYouHaveOpenPopUp":"Please confirm closure. You have an open pop-up.","trialHasExpiredSeeOptions":"Trial has expired, see options below","errorCertRequiresSignIn":"Sign In before your Unraid.net SSL certificate expires","removeMyServersPlugin":"Remove My Servers plugin","continueUsingMyServers":"Continue using My Servers","confirmMyServersPluginRemoval":"Confirm My Servers plugin removal","removingMyServersPlugin":"Removing My Servers plugin…","enhanceYourExperienceWithMyServers":"Enhance your experience with My Servers","connectYourUnraidnetAccountToGetStarted":"Connect your Unraid.net account to get started","thankYouForInstallingMyServers":"Thank you installing My Servers!","lanIpCopied":"LAN IP Copied","installingMyServers":"Installing My Servers (beta)","noRemoteApikeyRegisteredWithPlg":{"heading":"My Servers Error","msg":"Unraid.net re-authentication required"},"errorTooManyDisks":{"heading":"Too many devices","msg":{"base":"You must upgrade your key to support more devices.","basic":"Your Basic key supports 6 devices.","plus":"Your Plus key supports 12 devices."}},"extraLinks":{"newTab":"Opens {0} in new tab","myServers":"My Servers Dashboard","forums":"Unraid Forums","settings":{"text":"Settings","title":"Settings > Management Access • Unraid.net"}},"meta":{"trial":{"active":{"date":"Trial key expires at {date}","timeDiff":"Trial expires in {timeDiff}"},"expired":{"date":"Trial key expired at {date}","timeDiff":"Trial expired {timeDiff}"}},"uptime":{"date":"Server up since {date}","readable":"Uptime {timeDiff}"}},"myServers":{"heading":"My Servers","beta":"beta","restarting":"Restarting…","errors":{"unraidApi":{"heading":"Unraid API Error","message":"Failed to connect to Unraid API."},"myServers":{"heading":"My Servers Error","message":"Please wait a moment and reload the page."}},"closeDetails":"Close Details","loading":"Loading My Servers data","displayingLastKnown":"Displaying last known server data","mothership":{"connected":"Connected to Mothership","notConnected":"Not Connected to Mothership"},"accessLabels":{"current":"Current server","local":"Local access","offline":"Server Offline","remote":"Remote access","unavailable":"Access unavailable"},"api":{"start":"Restart unraid-api","startTitle":"Executes `unraid-api start`; no terminal needed","stop":"Stop unraid-api"}},"opensNewHttpsWindow":{"base":"Opens new HTTPS window to {0}","signIn":"@:upc.opensNewHttpsWindow.base @:signIn","signOut":"@:upc.opensNewHttpsWindow.base @:signOut","purchase":"@:upc.opensNewHttpsWindow.base @:actions.purchase","upgrade":"@:upc.opensNewHttpsWindow.base @:actions.upgrade"},"signInActions":{"resolve":"@:signIn to resolve","purchaseKey":"@:signIn to @:actions.purchase","purchaseKeyOrExtendTrial":"@:upc.signInActions.purchaseKey or @:actions.extend"}},"wanIpCheck":{"checking":"Checking Wan IPs","avatarAlt":"{0}\'s Avatar","match":"Remark: your WAN IPv4 is {0}","mismatch":"Remark: Unraid\'s WAN IPv4 {0} does not match your client\'s WAN IPv4 {1}. This may indicate a complex network that will not work with this Remote Access solution. Ignore this message if you are currently connected via Remote Access or VPN","resolveError":"DNS issue, unable to resolve wanip4.unraid.net"},"regWizPopUp":{"regWiz":"Registration Wizard","toHome":"To Registration Wizard Home","continueTrial":"Continue Trial","serverInfoToggle":"Toggle server info visibility","youCanSafelyCloseThisWindow":"You can safely close this window","automaticallyClosingIn":"Automatically closing in","byeBye":"bye, bye 👋","browserWillSelfDestructIn":"Browser will self destruct in","closingPopUpMayLeadToErrors":"Closing this pop-up window while actions are being preformed may lead to unintended errors.","goBack":"Go Back","shutDown":"Shut Down","haveAccountSignIn":"Already have an account? Sign In","noAccountSignUp":"Don\'t have an account? Sign Up","willConnectYourServerToMyServers":"This will connect your server to My Servers BETA","serverInfo":{"flash":"Flash","product":"Product","GUID":"GUID","name":"Name","ip":"IP"},"forms":{"displayName":"Display Name","emailAddress":"Email Address","displayNameOrEmailAddress":"@:regWizPopUp.forms.displayName or @:regWizPopUp.forms.emailAddress","displayNameRootMessage":"Use your Unraid.net credentials, not your local server credentials.","honeyPotCopy":"If you fill this field out then your email will not be sent","fieldRequired":"This field is required","submit":"Submit","submitting":"submitting…","notValid":"Form not valid","cancel":"Cancel","confirm":"Confirm","createMyAccount":"Create My Account","subject":"Subject","password":"Password","togglePasswordVisibility":"Toggle Password Visibility","message":"Message","confirmPassword":"Confirm Password","passwordMustMatch":"Password confirmation must match","passwordMinimum":"8 or more characters","comments":"comments","newsletterCopy":"Sign me up for the monthly Unraid newsletter: a digest of recent blog posts, community videos, popular forum threads, product announcements, and more.","terms":{"iAgree":"I agree to the","text":"Terms of Use"}},"routes":{"extendTrial":{"heading":{"loading":"Extending Trial","error":"Trial Extension Failed"},"message":"Not ready to purchase?
Receive an additional 15 days for your trial."},"forgotPassword":{"heading":"Forgot Password","subheading":"After resetting your password come back to the Registration Wizard pop-up window to Sign In and complete your server\'s registration.","resetPasswordNow":"Reset Password Now","backToSignIn":"Back to Sign In"},"signIn":{"heading":{"signIn":"Unraid.net Sign In","recover":"Unraid.net Sign In to Recover Key","replace":"Unraid.net Sign In to Replace Key"},"subheading":"Please sign in with your Unraid.net account","form":{"replacementConditions":{"name":"Acknowledge Replacement Conditions","label":"I acknowledge that replacing a license key results in permanently blacklisting the previous USB Flash GUID."},"label":{"password":{"replace":"Unraid.net account password"}}}},"signUp":{"heading":"Create Unraid.net Account","subheading":"This will start your free 30-day Trial"},"signOut":{"heading":"Unraid.net Sign Out"},"success":{"heading":{"username":"Hi {0}!","default":"Success!"},"subheading":{"extention":"Your trial will expire in 15 days.","newTrial":"Your trial will expire in 30 days."},"signIn":{"tileTitle":{"actionFail":"{0} was not signed in to your Unraid.net account","actionSuccess":"{0} is signed in to your Unraid.net account","loading":"Signing in {0} to Unraid.net account"}},"signOut":{"tileTitle":{"actionFail":"{0} was not signed out of your Unraid.net account","actionSuccess":"{0} was signed out of your Unraid.net account","loading":"Signing out {0} from Unraid.net account"}},"keys":{"trial":"Trial","basic":"Basic","plus":"Plus","pro":"Pro"},"extended":"{0} Key Extended","recovered":"{0} Key Recovered","replaced":"{0} Key Replaced","created":"{0} Key Created","install":{"loading":"Installing {0} Key","error":"{0} Key Install Error","success":"Installed {0} Key","manualInstructions":"To manually install the key paste the key file url into the Key file URL field on the webGUI Registration page and then click Install Key","copyFail":"Unable to copy","copySuccess":"Copied key url!","copyButton":"Copy Key URL","copyBeforeClose":"Please copy the Key URL before closing this window"},"timeout":"Communication with {0} has timed out","loading1":"Please keep this window open.","loading2":"Still working our magic","countdown":{"success":{"prefix":"Auto closing in","text":"You can safely close this window"},"error":{"prefix":"Auto redirecting in","text":"Back to Registration Home","complete":"Back in a flash ⚡️"}}},"troubleshoot":{"heading":{"default":"Troubleshoot","success":"Thank you for contacting Unraid."},"subheading":{"default":"Forgot what Unraid.net account you used? Have a USB flash device that already has an account associated with it? Just give us the details about what happened and we\'ll do our best to get you up and running again.","success":"We have received your e-mail and will respond in the order it was received. While we strive to respond to all requests as quickly as possible, please allow for up to 3 business days for a response."},"relevantServerData":"Your USB Flash GUID and other relevant server data will also be sent"},"verifyEmail":{"heading":"Verify Email","form":{"verificationCode":"verification code","verifyCode":"Paste / Enter code"},"noCode":"Didn\'t get code?"},"whatIsMyServers":{"heading":"What is My Servers?","subheading":"Expand your server\'s capabilities","copy":"With an Unraid.net account you can start using My Servers (beta) which gives you access to the following features:","features":{"secureRemoteAccess":{"heading":"Secure remote access","copy":"Whether you need to add a share, container, or virtual machine, do it all from the webGui from anytime and anywhere using HTTPS. Best of all, all SSL certificates are verified by Let\'s Encrypt, so no browser security warnings."},"realTimeMonitoring":{"heading":"Real-time Monitoring","copy":"Get quick real-time info on the status of your servers such as storage, container, and VM usage. And not just for one server, but all the servers in your Unraid fleet!"},"usbFlashBackup":{"heading":"USB Flash Backup","copy":"Click a button and your flash is automatically backed up to Unraid.net, enabling easy recovery in the event of a device failure. Never self-manage/host your flash backups again!"},"regKeyManagement":{"heading":"Registration key management","copy":"Download any registration key linked to your account. Upgrade keys to higher editions."},"plusMore":{"heading":"Plus more on the way","copy":"All you need is an active internet connection, an Unraid.net account, and the My Servers plugin. Get started by installing the plugin."}}},"replaceKey":{"subheading":{"registered":"A record of your replacement will be sent to your Unraid.net account email address","notRegistered":"A record of your replacement will be sent to this email"}},"notFound":{"subheading":"Page Not Found"},"notAllowed":{"subheading":"Page Not Allowed"}}},"upcTrigger":{"upgrade":"To support more storage devices as your server grows click the Open Dropdown button","default":"Key management is done via the dropdown in the top right of the webGUI on every page","open":"Open Dropdown"},"yargYePirate":"Oh no! Are you pirating Unraid OS?
Are you ready to buy a real license?","keyFileNotValid":"Key file not valid","installFailed":{"heading":"My Servers plugin install failed","message":"The My Servers plugin install is incomplete. Please uninstall and reinstall the My Servers plugin. Be sure to let the install complete before you close the window."}}')},"5a0c":function(e,t,r){e.exports=function(){"use strict";var e=6e4,t=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",s="week",c="month",l="quarter",u="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function e(t,r){if(t.date()e.replace(a,(e,t)=>t?t.toUpperCase():""),c=/\B([A-Z])/g,l=e=>e.replace(c,"-$1").toLowerCase();function u(e,t,r){e[t]=[].concat(e[t]||[]),e[t].unshift(r)}function p(e,t){if(e){(e.$options[t]||[]).forEach(t=>{t.call(e)})}}function d(e,t,{type:r}={}){if((e=>/function Boolean/.test(String(e)))(r))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e||e;if((e=>/function Number/.test(String(e)))(r)){const t=parseFloat(e,10);return isNaN(t)?e:t}return e}function f(e,t){const r=[];for(let n=0,i=t.length;n(e[t]=c[r[n]],e),{}),u(t,"beforeCreate",(function(){const e=this.$emit;this.$emit=(t,...r)=>(this.$root.$options.customElement.dispatchEvent(function(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}(t,r)),e.call(this,t,...r))})),u(t,"created",(function(){i.forEach(e=>{this.$root.props[e]=this[e]})})),i.forEach(e=>{Object.defineProperty(m.prototype,e,{get(){return this._wrapper.props[e]},set(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})}),a=!0}function h(e,t){const r=s(t),n=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[r]=d(n,t,o[r])}class m extends HTMLElement{constructor(){const r=super();r.attachShadow({mode:"open"});const n=r._wrapper=new e({name:"shadow-root",customElement:r,shadowRoot:r.shadowRoot,data:()=>({props:{},slotChildren:[]}),render(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}});new MutationObserver(e=>{let t=!1;for(let n=0;n{e.props=function(e){const t={};return e.forEach(e=>{t[e]=void 0}),t}(i),n.forEach(e=>{h(this,e)})};a?r():t().then(e=>{(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e),r()}),e.slotChildren=Object.freeze(f(e.$createElement,this.childNodes)),e.$mount(),this.shadowRoot.appendChild(e.$el)}}disconnectedCallback(){p(this.vueComponent,"deactivated")}}return r||c(t),m};function v(e,t,r,n,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}r("24fb"),r("35d6");var b=r("2f62"),y=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function w(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var x=Array.isArray;function _(e){return null!==e&&"object"==typeof e}function E(e){return"boolean"==typeof e}function S(e){return"string"==typeof e}var k=Object.prototype.toString;function O(e){return"[object Object]"===k.call(e)}function T(e){return null==e}function I(e){return"function"==typeof e}function A(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=null,n=null;return 1===e.length?_(e[0])||x(e[0])?n=e[0]:"string"==typeof e[0]&&(r=e[0]):2===e.length&&("string"==typeof e[0]&&(r=e[0]),(_(e[1])||x(e[1]))&&(n=e[1])),{locale:r,params:n}}function R(e){return JSON.parse(JSON.stringify(e))}function C(e,t){return!!~e.indexOf(t)}var P=Object.prototype.hasOwnProperty;function N(e,t){return P.call(e,t)}function M(e){for(var t=arguments,r=Object(e),n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}(e[t]))})),e}var L={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var r=t.data,n=t.parent,i=t.props,o=t.slots,a=n.$i18n;if(a){var s=i.path,c=i.locale,l=i.places,u=o(),p=a.i(s,c,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||l?function(e,t){var r=t?function(e){return Array.isArray(e)?e.reduce(F,{}):Object.assign({},e)}(t):{};if(!e)return r;var n=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every($);return e.reduce(n?j:F,r)}(u.default,l):u),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?e(d,r,p):p}}};function j(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function F(e,t,r){return e[r]=t,e}function $(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var V,G={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var r=t.props,n=t.parent,i=t.data,o=n.$i18n;if(!o)return null;var a=null,s=null;S(r.format)?a=r.format:_(r.format)&&(r.format.key&&(a=r.format.key),s=Object.keys(r.format).reduce((function(e,t){var n;return C(y,t)?Object.assign({},e,((n={})[t]=r.format[t],n)):e}),null));var c=r.locale||o.locale,l=o._ntp(r.value,c,a,s),u=l.map((function(e,t){var r,n=i.scopedSlots&&i.scopedSlots[e.type];return n?n(((r={})[e.type]=e.value,r.index=t,r.parts=l,r)):e.value})),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?e(p,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},u):u}};function z(e,t,r){H(e,r)&&q(e,t,r)}function B(e,t,r,n){if(H(e,r)){var i=r.context.$i18n;(function(e,t){var r=t.context;return e._locale===r.$i18n.locale})(e,r)&&D(t.value,t.oldValue)&&D(e._localeMessage,i.getLocaleMessage(i.locale))||q(e,t,r)}}function W(e,t,r,n){if(r.context){var i=r.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else w("Vue instance does not exists in VNode context")}function H(e,t){var r=t.context;return r?!!r.$i18n||(w("VueI18n instance does not exists in Vue instance"),!1):(w("Vue instance does not exists in VNode context"),!1)}function q(e,t,r){var n,i,o=function(e){var t,r,n,i;return S(e)?t=e:O(e)&&(t=e.path,r=e.locale,n=e.args,i=e.choice),{path:t,locale:r,args:n,choice:i}}(t.value),a=o.path,s=o.locale,c=o.args,l=o.choice;if(a||s||c)if(a){var u=r.context;e._vt=e.textContent=null!=l?(n=u.$i18n).tc.apply(n,[a,l].concat(Y(s,c))):(i=u.$i18n).t.apply(i,[a].concat(Y(s,c))),e._locale=u.$i18n.locale,e._localeMessage=u.$i18n.getLocaleMessage(u.$i18n.locale)}else w("`path` is required in v-t directive");else w("value type not supported")}function Y(e,t){var r=[];return e&&r.push(e),t&&(Array.isArray(t)||O(t))&&r.push(t),r}function Q(e,t){void 0===t&&(t={bridge:!1}),Q.installed=!0,(V=e).version&&Number(V.version.split(".")[0]),function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=this.$i18n;return n._t.apply(n,[e,n.locale,n._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(r))},e.prototype.$te=function(e,t){var r=this.$i18n;return r._te(e,r.locale,r._getMessages(),t)},e.prototype.$d=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).d.apply(t,[e].concat(r))},e.prototype.$n=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).n.apply(t,[e].concat(r))}}(V),V.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n){if(e.i18n instanceof pe){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=M(t,JSON.parse(e))})),Object.keys(t).forEach((function(r){e.i18n.mergeLocaleMessage(r,t[r])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(O(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pe?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18n)try{var n=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){n=M(n,JSON.parse(e))})),e.i18n.messages=n}catch(e){}var i=e.i18n.sharedMessages;i&&O(i)&&(e.i18n.messages=M(e.i18n.messages,i)),this._i18n=new pe(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pe?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof pe&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof pe||O(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pe||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof pe)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),V.directive("t",{bind:z,update:B,unbind:W}),V.component(L.name,L),V.component(G.name,G),V.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var K=function(){this._caches=Object.create(null)};K.prototype.interpolate=function(e,t){if(!t)return[e];var r=this._caches[e];return r||(r=function(e){var t=[],r=0,n="";for(;r0)p--,u=4,d[0]();else{if(p=0,void 0===r)return!1;if(!1===(r=re(r)))return!1;d[1]()}};null!==u;)if(l++,"\\"!==(t=e[l])||!f()){if(i=te(t),8===(o=(s=Z[u])[i]||s.else||8))return;if(u=o[0],(a=d[o[1]])&&(n=void 0===(n=o[2])?t:n,!1===a()))return;if(7===u)return c}}(e))&&(this._cache[e]=t),t||[]},ne.prototype.getPathValue=function(e,t){if(!_(e))return null;var r=this.parsePath(t);if(0===r.length)return null;for(var n=r.length,i=e,o=0;o/,ae=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|./]+|\([\w\-_|./]+\)))/g,se=/^@(?:\.([a-z]+))?:/,ce=/[()]/g,le={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},ue=new K,pe=function(e){var t=this;void 0===e&&(e={}),!V&&"undefined"!=typeof window&&window.Vue&&Q(window.Vue);var r=e.locale||"en-US",n=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},o=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||ue,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new ne,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,r){var n=Object.getPrototypeOf(t);if(n&&n.getChoiceIndex)return n.getChoiceIndex.call(t,e,r);return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,r]):function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}(e,r)},this._exist=function(e,r){return!(!e||!r||T(t._path.getPathValue(e,r))&&!e[r])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:r,fallbackLocale:n,messages:i,dateTimeFormats:o,numberFormats:a})},de={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};pe.prototype._checkLocaleMessage=function(e,t,r){var n=function(e,t,r,i){if(O(r))Object.keys(r).forEach((function(o){var a=r[o];O(a)?(i.push(o),i.push("."),n(e,t,a,i),i.pop(),i.pop()):(i.push(o),n(e,t,a,i),i.pop())}));else if(x(r))r.forEach((function(r,o){O(r)?(i.push("["+o+"]"),i.push("."),n(e,t,r,i),i.pop(),i.pop()):(i.push("["+o+"]"),n(e,t,r,i),i.pop())}));else if(S(r)){if(oe.test(r)){var o="Detected HTML in message '"+r+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?w(o):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(o)}}};n(t,e,r,[])},pe.prototype._initVM=function(e){var t=V.config.silent;V.config.silent=!0,this._vm=new V({data:e,__VUE18N__INSTANCE__:!0}),V.config.silent=t},pe.prototype.destroyVM=function(){this._vm.$destroy()},pe.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},pe.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},pe.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}(e._dataListeners),r=t.length;r--;)V.nextTick((function(){t[r]&&t[r].$forceUpdate()}))}),{deep:!0})},pe.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},pe.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},de.vm.get=function(){return this._vm},de.messages.get=function(){return R(this._getMessages())},de.dateTimeFormats.get=function(){return R(this._getDateTimeFormats())},de.numberFormats.get=function(){return R(this._getNumberFormats())},de.availableLocales.get=function(){return Object.keys(this.messages).sort()},de.locale.get=function(){return this._vm.locale},de.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},de.fallbackLocale.get=function(){return this._vm.fallbackLocale},de.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},de.formatFallbackMessages.get=function(){return this._formatFallbackMessages},de.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},de.missing.get=function(){return this._missing},de.missing.set=function(e){this._missing=e},de.formatter.get=function(){return this._formatter},de.formatter.set=function(e){this._formatter=e},de.silentTranslationWarn.get=function(){return this._silentTranslationWarn},de.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},de.silentFallbackWarn.get=function(){return this._silentFallbackWarn},de.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},de.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},de.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},de.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},de.warnHtmlInMessage.set=function(e){var t=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,r!==e&&("warn"===e||"error"===e)){var n=this._getMessages();Object.keys(n).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,n[e])}))}},de.postTranslation.get=function(){return this._postTranslation},de.postTranslation.set=function(e){this._postTranslation=e},de.sync.get=function(){return this._sync},de.sync.set=function(e){this._sync=e},pe.prototype._getMessages=function(){return this._vm.messages},pe.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},pe.prototype._getNumberFormats=function(){return this._vm.numberFormats},pe.prototype._warnDefault=function(e,t,r,n,i,o){if(!T(r))return r;if(this._missing){var a=this._missing.apply(null,[e,t,n,i]);if(S(a))return a}if(this._formatFallbackMessages){var s=A.apply(void 0,i);return this._render(t,o,s.params,t)}return t},pe.prototype._isFallbackRoot=function(e){return!e&&!T(this._root)&&this._fallbackRoot},pe.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},pe.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},pe.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},pe.prototype._interpolate=function(e,t,r,n,i,o,a){if(!t)return null;var s,c=this._path.getPathValue(t,r);if(x(c)||O(c))return c;if(T(c)){if(!O(t))return null;if(!S(s=t[r])&&!I(s))return null}else{if(!S(c)&&!I(c))return null;s=c}return S(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,n,"raw",o,a)),this._render(s,i,o,r)},pe.prototype._link=function(e,t,r,n,i,o,a){var s=r,c=s.match(ae);for(var l in c)if(c.hasOwnProperty(l)){var u=c[l],p=u.match(se),d=p[0],f=p[1],h=u.replace(d,"").replace(ce,"");if(C(a,h))return s;a.push(h);var m=this._interpolate(e,t,h,n,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,h,n,i,o)}m=this._warnDefault(e,h,m,n,x(o)?o:[o],i),this._modifiers.hasOwnProperty(f)?m=this._modifiers[f](m):le.hasOwnProperty(f)&&(m=le[f](m)),a.pop(),s=m?s.replace(u,m):s}return s},pe.prototype._createMessageContext=function(e,t,r,n){var i=this,o=x(e)?e:[],a=_(e)?e:{},s=this._getMessages(),c=this.locale;return{list:function(e){return o[e]},named:function(e){return a[e]},values:e,formatter:t,path:r,messages:s,locale:c,linked:function(e){return i._interpolate(c,s[c]||{},e,null,n,void 0,[e])}}},pe.prototype._render=function(e,t,r,n){if(I(e))return e(this._createMessageContext(r,this._formatter||ue,n,t));var i=this._formatter.interpolate(e,r,n);return i||(i=ue.interpolate(e,r,n)),"string"!==t||S(i)?i:i.join("")},pe.prototype._appendItemToChain=function(e,t,r){var n=!1;return C(e,t)||(n=!0,t&&(n="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),r&&r[t]&&(n=r[t]))),n},pe.prototype._appendLocaleToChain=function(e,t,r){var n,i=t.split("-");do{var o=i.join("-");n=this._appendItemToChain(e,o,r),i.splice(-1,1)}while(i.length&&!0===n);return n},pe.prototype._appendBlockToChain=function(e,t,r){for(var n=!0,i=0;i0;)o[a]=arguments[a+4];if(!e)return"";var s=A.apply(void 0,o);this._escapeParameterHtml&&(s.params=U(s.params));var c=s.locale||t,l=this._translate(r,c,this.fallbackLocale,e,n,"string",s.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(o))}return l=this._warnDefault(c,e,l,n,o,"string"),this._postTranslation&&null!=l&&(l=this._postTranslation(l,e)),l},pe.prototype.t=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(r))},pe.prototype._i=function(e,t,r,n,i){var o=this._translate(r,t,this.fallbackLocale,e,n,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,o,n,[i],"raw")},pe.prototype.i=function(e,t,r){return e?(S(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,r)):""},pe.prototype._tc=function(e,t,r,n,i){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},l=A.apply(void 0,a);return l.params=Object.assign(c,l.params),a=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((o=this)._t.apply(o,[e,t,r,n].concat(a)),i)},pe.prototype.fetchChoice=function(e,t){if(!e||!S(e))return null;var r=e.split("|");return r[t=this.getChoiceIndex(t,r.length)]?r[t].trim():e},pe.prototype.tc=function(e,t){for(var r,n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];return(r=this)._tc.apply(r,[e,this.locale,this._getMessages(),null,t].concat(n))},pe.prototype._te=function(e,t,r){for(var n=[],i=arguments.length-3;i-- >0;)n[i]=arguments[i+3];var o=A.apply(void 0,n).locale||t;return this._exist(r[o],e)},pe.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},pe.prototype.getLocaleMessage=function(e){return R(this._vm.messages[e]||{})},pe.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},pe.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,M(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},pe.prototype.getDateTimeFormat=function(e){return R(this._vm.dateTimeFormats[e]||{})},pe.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},pe.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,M(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},pe.prototype._clearDateTimeFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},pe.prototype._localizeDateTime=function(e,t,r,n,i){for(var o=t,a=n[o],s=this._getLocaleChain(t,r),c=0;c0;)t[r]=arguments[r+1];var n=this.locale,i=null;return 1===t.length?S(t[0])?i=t[0]:_(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key)):2===t.length&&(S(t[0])&&(i=t[0]),S(t[1])&&(n=t[1])),this._d(e,n,i)},pe.prototype.getNumberFormat=function(e){return R(this._vm.numberFormats[e]||{})},pe.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},pe.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,M(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},pe.prototype._clearNumberFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},pe.prototype._getNumberFormatter=function(e,t,r,n,i,o){for(var a=t,s=n[a],c=this._getLocaleChain(t,r),l=0;l0;)t[r]=arguments[r+1];var n=this.locale,i=null,o=null;return 1===t.length?S(t[0])?i=t[0]:_(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key),o=Object.keys(t[0]).reduce((function(e,r){var n;return C(y,r)?Object.assign({},e,((n={})[r]=t[0][r],n)):e}),null)):2===t.length&&(S(t[0])&&(i=t[0]),S(t[1])&&(n=t[1])),this._n(e,n,i,o)},pe.prototype._ntp=function(e,t,r,n){if(!pe.availabilities.numberFormat)return[];if(!r)return(n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t)).formatToParts(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),r,n),o=i&&i.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,r,n)}return o||[]},Object.defineProperties(pe.prototype,de),Object.defineProperty(pe,"availabilities",{get:function(){if(!ie){var e="undefined"!=typeof Intl;ie={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return ie}}),pe.install=Q,pe.version="8.26.1";var fe=pe;o.default.use(fe);var he=new fe({locale:"en_US",fallbackLocale:"en_US",messages:function(){const e=r("4b3b"),t={};return e.keys().forEach(r=>{const n=r.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){const i=n[1];t[i]=e(r)}}),t}()});const me="production",ge="https://registration.unraid.net",ve="https://unraid.net/preflight",be=Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_GRAPH_URL||null,ye=(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_APIKEY,"2.37.1"),we=navigator.userAgent.toLowerCase(),xe={url:ge,name:"UnraidRegistrationWizard",width:600,height:810},_e={errorMessage:"",errorMessageSubtext:"",loading:!0,submissionFrom:null,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"},csrf:null,postMessageError:null,isLaunchpadOpen:!1,isPromoOpen:!1,triggerUPC:!1,ts:null,deviceCount:0,flashproduct:null,flashvendor:null,guid:"",regGuid:"",keyfile:null,servername:null,serverdesc:null,wanip:sessionStorage.getItem("upc_wanip")||null,site:null,wanFQDN:null,state:"",reggen:0,registered:null,internalip:null,internalport:null,protocol:null,license:"",expiretime:null,regWizTime:null,rawServerState:null,plgPath:null,guidRegistered:!1,guidValid:null,guidValidationRunning:!1,replaceable:null,guidForValidation:null,guidBlacklisted:null,id:null,isPopUpOpen:!1,popUpWindow:"",regAtOpen:null,forumaccount:null,userEmail:"",username:"",avatar:"",userPassword:"",apikey:"",ipsValidated:!1,accountAction:null,keyServerAction:"",licenseAction:null,receivedSuccessNewServerState:null,purchaseWindow:{url:new URL(ve),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},redeemWindow:{url:new URL(ve+"?r=1"),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},wizardWindow:xe,signInPayload:{...xe,url:xe.url+"/#/sign-in"},signUpPayload:{...xe,url:xe.url+"/#/sign-up"},signOutPayload:{...xe,url:xe.url+"/#/sign-out",width:600,height:500},extendTrialPayload:{...xe,url:xe.url+"/#/extend-trial"},recoverKeyPayload:{...xe,url:xe.url+"/#/recover-key"},replaceKeyPayload:{...xe,url:xe.url+"/#/replace-key"},troubleshootPayload:{...xe,url:xe.url+"/#/troubleshoot"},locale:"en_US",messages:null,graphOnline:!1,graphReconnected:!1,myServers:[],myServersLoading:!1,myServersError:null,myServersErrorShowSupportBtn:!1,myServersEnv:null,apiVersion:"0.0.0",cloud:null,hideMyServers:!1,osVersion:null,plgVersion:null,plgInstalled:null,hasRemoteApikey:null,config:null,hasUnraidNetSSL:!1,flashBackupEnabled:!1,extraOrigins:[],myServersOutOfDate:{enabled:!0,error:!1,heading:"My Servers Update Available",message:"Please update to the latest version of the My Servers plugin",link:"/Plugins",linkSameTab:!0},devEnv:!1,signOutTriggered:!1,apiReport:null,osGui:we.includes("linux")&&we.includes("firefox"),pirateKey:sessionStorage.getItem("upc_yargMatey")||!1};var Ee=r("2426"),Se=r.n(Ee);const ke="GUID_NOT_RECEIVED",Oe=!(!window.opener||window.opener===window),Te=Oe?window.opener.parent:window.parent,Ie=[ve,ge,"https://launchpad.unraid.test:8081","https://launchpad.unraid.test:6969","https://registration.unraid.net","https://registration-dev.unraid.net","https://registration-dev-logs.unraid.net","https://unraid.net","https://staging.unraid.net","https://craft.unraid.test"],Ae='API error unexpected response for "owner".',Re=e=>{try{return[null,JSON.parse(e)]}catch(e){return[e]}},Ce={actions:[],humanReadable:"",heading:"",message:"",messageCenter:!1,error:!1,withKey:!1},Pe={...Ce,humanReadable:he.tc("stateData.ENOFLASH.humanReadable"),error:{heading:he.tc("stateData.ENOFLASH.error.heading"),message:he.tc("stateData.ENOFLASH.error.message"),signInToFix:!1}};let Ne="";const Me={statePhpPath:e=>`/plugins/${e.plgPath||"dynamix.unraid.net"}/include/state.php`,myServersCfgPath:e=>(e.plgPath||"Unraid.net")+"/myservers.cfg",requireGuidValidation:e=>!Oe||e.guidRegistered,validApiKeyLength:e=>64===e.apikey.length,validApiKeyForUpc:e=>!!e.apikey&&e.apikey.startsWith("unupc_"),hasRemoteApikey:e=>!0===e.hasRemoteApikey||!(!e.validApiKeyLength||!e.validApiKeyForUpc),showExpiretime:e=>("TRIAL"===e.state||"EEXPIRED"===e.state)&&e.expiretime>0,trialExtensionEligible:e=>!(e.reggen&&!(e.reggen<2)),signedOutWithKey:(e,t)=>!(!t.stateData.withKey||e.registered),stateData:(e,t)=>{switch(e.state){case"ENOKEYFILE":return{...Ce,actions:[e.registered?"signOut":"register","startTrial","purchase","redeem"],humanReadable:he.tc("stateData.ENOKEYFILE.humanReadable"),heading:he.tc("stateData.ENOKEYFILE.heading"),message:he.tc("stateData.ENOKEYFILE.message")};case"TRIAL":return{...Ce,actions:["purchase",e.registered?"signOut":"register",e.registered?"continueTrial":null],humanReadable:he.tc("stateData.TRIAL.humanReadable"),heading:he.tc("stateData.TRIAL.heading"),message:he.tc("stateData.TRIAL.message"),withKey:!0};case"EEXPIRED":return{...Ce,actions:[e.registered?"signOut":"register",t.trialExtensionEligible?"extend":null,"purchase"],humanReadable:he.tc("stateData.EEXPIRED.humanReadable"),error:{heading:he.tc("stateData.EEXPIRED.heading"),message:t.trialExtensionEligible?he.tc("stateData.EEXPIRED.message.extensionEligible"):he.tc("stateData.EEXPIRED.message.extensionNotEligible")},withKey:!0};case"BASIC":return{...Ce,actions:[e.registered?"signOut":"register","upgrade"],humanReadable:he.tc("stateData.BASIC.humanReadable"),heading:he.tc("basicPlusPro.heading"),message:e.registered?e.guidRegistered?he.tc("basicPlusPro.message.upgradeEligible"):"":he.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"PLUS":return{...Ce,actions:[e.registered?"signOut":"register","upgrade"],humanReadable:he.tc("stateData.PLUS.humanReadable"),heading:he.tc("basicPlusPro.heading"),message:e.registered?e.guidRegistered?he.tc("basicPlusPro.message.upgradeEligible"):"":he.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"PRO":return{...Ce,actions:[e.registered?"signOut":"register",e.registered?"close":null],humanReadable:he.tc("stateData.PRO.humanReadable"),heading:he.tc("basicPlusPro.heading"),message:e.registered?"":he.tc("basicPlusPro.message.registered"),messageCenter:!e.registered,withKey:!0};case"EGUID":return Ne=e.replaceable?he.tc("stateData.EGUID.error.message.replacementEligible"):!1===e.replaceable&&e.guidBlacklisted?`${he.tc("stateData.EGUID.error.message.default")}
${he.tc("stateData.EGUID.error.message.blacklisted")}`:!1!==e.replaceable||e.guidBlacklisted?he.tc("stateData.EGUID.error.message.replacementEligible"):`${he.tc("stateData.EGUID.error.message.default")}
${he.tc("stateData.EGUID.error.message.replacementIneligible")}`,{...Ce,actions:["purchase","replace",e.registered?"signOut":"register"],humanReadable:he.tc("stateData.EGUID.humanReadable"),error:{heading:he.tc("stateData.EGUID.error.heading"),message:Ne,signInToFix:!0}};case"EGUID1":return{...Ce,actions:["purchase",e.registered?"signOut":"register"],humanReadable:he.tc("stateData.EGUID1.humanReadable"),error:{heading:he.tc("stateData.EGUID1.error.heading"),message:he.tc("stateData.EGUID1.error.message"),signInToFix:!0}};case"ENOKEYFILE2":return{...Ce,actions:["purchase",e.registered?"signOut":"register",e.registered?"recover":null],humanReadable:he.tc("stateData.ENOKEYFILE2.humanReadable"),error:{heading:he.tc("stateData.ENOKEYFILE2.error.heading"),message:he.tc("stateData.ENOKEYFILE2.error.message"),signInToFix:!0}};case"ETRIAL":return{...Ce,actions:[e.registered?"signOut":"register","purchase"],humanReadable:he.tc("stateData.ETRIAL.humanReadable"),error:{heading:he.tc("stateData.ETRIAL.error.heading"),message:he.tc("stateData.ETRIAL.error.message"),signInToFix:!0}};case"ENOKEYFILE1":return{...Ce,humanReadable:he.tc("stateData.ENOKEYFILE1.humanReadable"),error:{heading:he.tc("stateData.ENOKEYFILE1.error.heading"),message:he.tc("stateData.ENOKEYFILE1.error.message"),signInToFix:!1}};case"ENOFLASH":case"ENOFLASH1":case"ENOFLASH2":case"ENOFLASH3":case"ENOFLASH4":case"ENOFLASH5":case"ENOFLASH6":case"ENOFLASH7":return Pe;case"EBLACKLISTED":return{...Ce,humanReadable:he.tc("stateData.EBLACKLISTED.humanReadable"),error:{heading:he.tc("stateData.EBLACKLISTED.error.heading"),message:he.tc("stateData.EBLACKLISTED.error.message"),signInToFix:!1}};case"EBLACKLISTED1":return{...Ce,humanReadable:he.tc("stateData.EBLACKLISTED1.humanReadable"),error:{heading:he.tc("stateData.EBLACKLISTED1.error.heading"),message:he.tc("stateData.EBLACKLISTED1.error.message"),signInToFix:!1}};case"EBLACKLISTED2":return{...Ce,humanReadable:he.tc("stateData.EBLACKLISTED2.humanReadable"),error:{heading:he.tc("stateData.EBLACKLISTED2.error.heading"),message:he.tc("stateData.EBLACKLISTED2.error.message"),signInToFix:!1}};case"ENOCONN":return{...Ce,humanReadable:he.tc("stateData.ENOCONN.humanReadable"),error:{heading:he.tc("stateData.ENOCONN.error.heading"),message:he.tc("stateData.ENOCONN.error.message"),signInToFix:!1}};case"STALE":return{...Ce,humanReadable:he.tc("stateData.STALE.humanReadable"),error:{heading:he.tc("stateData.STALE.error.heading"),message:he.tc("stateData.STALE.error.message"),signInToFix:!1}};default:return{...Ce}}},stateDataKeyActions:(e,t)=>!!(t.stateData.actions.includes("purchase")||t.stateData.actions.includes("upgrade")||t.stateData.actions.includes("recover")||t.stateData.actions.includes("replace")||t.stateData.actions.includes("extend")),keyTypeForPurchase:e=>{switch(e.state){case"BASIC":return"Basic";case"PLUS":return"Plus";case"PRO":return"Pro";default:return"Trial"}},isRemoteAccess:e=>e.wanFQDN||e.site&&e.site.includes("www.")&&e.site.includes("unraid.net"),noRemoteApikeyRegisteredWithPlg:e=>!(!e.registered||e.hideMyServers||!e.validApiKeyLength||!e.validApiKeyForUpc),errorTooManyDisks:e=>!(!e.config||e.config.valid||"INVALID"!==e.config.error),allowedOrigins:e=>[...Ie,...e.extraOrigins],myServersNotMinApiVer:e=>!e.apiVersion||e.apiVersion&&Se()(e.apiVersion,ye),myServersNotRecApiVer:e=>!e.apiVersion||e.apiVersion&&Se()(e.apiVersion,"2.47.1"),myServersOutOfDate:(e,t)=>{if(e.apiVersion&&(t.myServersNotMinApiVer||t.myServersNotRecApiVer)&&!e.devMode&&!e.hideMyServers){if(!t.myServersNotMinApiVer&&t.myServersNotRecApiVer)return e.myServersOutOfDate;if(t.myServersNotMinApiVer)return{...e.myServersOutOfDate,error:!0,message:"The My Servers plugin is out-of-date and will not connect to Unraid's cloud services. Please update the plugin."}}return{enabled:!1,error:!1}},errorMessage:(e,t)=>!t.stateData.error&&e.myServersError&&e.myServersErrorShowSupportBtn?e.myServersError:!t.stateData.error&&e.cloud&&e.cloud.error&&e.myServersErrorShowSupportBtn?e.cloud.error:null,server:(e,t)=>({guid:e.guid||ke,regGuid:e.regGuid,guidRegistered:e.guidRegistered||e.regWizTime,guidValid:e.guidValid,hasRemoteApikey:t.hasRemoteApikey,regWizTime:e.regWizTime,keyfile:e.keyfile,keyTypeForPurchase:t.keyTypeForPurchase,flashproduct:e.flashproduct,flashvendor:e.flashvendor,servername:e.servername,serverdesc:e.serverdesc,internalip:e.internalip,site:e.site,wanFQDN:e.wanFQDN,state:e.state,internalport:e.internalport,protocol:e.protocol,registered:e.registered,reggen:e.reggen,userEmail:e.userEmail,expiretime:e.expiretime,ts:e.ts,locale:e.locale,deviceCount:e.deviceCount,plgPath:e.plgPath,plgVersion:e.plgVersion,osVersion:e.osVersion,apiVersion:e.apiVersion,extraOrigins:e.extraOrigins,errorMessage:t.errorMessage,apiReport:e.apiReport,osGui:e.osGui,username:e.username,avatar:e.avatar,hideMyServers:e.hideMyServers}),features:e=>[{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.secureRemoteAccess.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.secureRemoteAccess.copy"),svg:"ui--remote-access"},{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.usbFlashBackup.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.usbFlashBackup.copy"),svg:"ui--usb"},{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.realTimeMonitoring.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.realTimeMonitoring.copy"),svg:"ui--diagnostics"},{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.regKeyManagement.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.regKeyManagement.copy"),svg:"ui--key"},{title:he.tc("regWizPopUp.routes.whatIsMyServers.features.plusMore.heading"),copy:he.tc("regWizPopUp.routes.whatIsMyServers.features.plusMore.copy"),svg:"util--star",center:!0}],plgInstallFailed:e=>e.plgInstalled.includes("_installFailed")};var De=r("786a"),Ue=r.n(De),Le=r("626e");const je=((e,t)=>{void 0===t&&(t={keys:[],values:[]});const r=t.keys,n=void 0===r?[]:r,i=t.values,o=void 0===i?[]:i,a=(e,t)=>{const r=Le.key(e)||Le.value(t),i=n.some(t=>t.test(e))||o.some(e=>e.test(t));return r||i};return{map:t=>Ue.a.default(t).map(t=>!!a((void 0).key,t)&&(void 0).update(e)),forEach:t=>{Ue.a.default(t).forEach(t=>{a((void 0).key,t)&&(void 0).update(e)})}}})("[REDACTED]",{keys:["guid"],values:[]}),Fe={...Object.fromEntries(Object.entries(console).map(([e,t])=>{if("debug"===e)return[e,()=>{}];if("function"==typeof method){const r=t.bind(console);return[e,(e,...t)=>t.length>=1?r(e,...t.map(e=>je.map(e))):r(e)]}return[e,t]}))},$e={SET_APP_ERROR_MESSAGE(e,t){Fe.debug("[SET_APP_ERROR_MESSAGE]: initial %o",t);const[r,n]=Re(t);n&&!r||!t||(Fe.debug("[SET_APP_ERROR_MESSAGE]: no json use original string %o",t),e.errorMessage=t),n||!1!==t&&""!==t||(Fe.debug("[SET_APP_ERROR_MESSAGE]: allow falsely values to reset the field %o",t),e.errorMessage=""),n&&n.error&&(Fe.debug("[SET_APP_ERROR_MESSAGE]: we got json %o",t),e.errorMessage=n.error),e.errorMessage&&Fe.error("[SET_APP_ERROR_MESSAGE]: %s",e.errorMessage)},SET_APP_ERROR_MESSAGE_SUBTEXT(e,t){Fe.debug("[SET_APP_ERROR_MESSAGE_SUBTEXT]: %o",t),e.errorMessageSubtext=t,e.errorMessageSubtext&&Fe.error("[SET_APP_ERROR_MESSAGE_SUBTEXT]: %s",e.errorMessageSubtext)},SET_LOADING_STATE(e,t){Fe.debug("[SET_LOADING_STATE]: %o",t),e.loading=t},SET_IS_LAUNCHPAD_OPEN(e,t){Fe.debug("[SET_IS_LAUNCHPAD_OPEN]: %o",t),t||sessionStorage.removeItem("clickedInstallMyServers"),e.isLaunchpadOpen=t},SET_IS_PROMO_OPEN(e,t){Fe.debug("[SET_IS_PROMO_OPEN]: %o",t),e.isPromoOpen=t},SET_STATE(e,t){Fe.debug("[SET_STATE]: %o",t),e.state=t},SET_CONFIG(e,t){Fe.debug("[SET_CONFIG]: %o",t),e.config=t},CHANGE_GUID_REGISTERED(e,t){Fe.debug("[CHANGE_GUID_REGISTERED]: %o",t),e.guidRegistered=t},CHANGE_GUID_VALID(e,t){Fe.debug("[CHANGE_GUID_VALID]: %o",t),e.guidValid=t},CHANGE_GUID_VALIDATION_RUNNING(e,t){Fe.debug("[CHANGE_GUID_VALIDATION_RUNNING]: %o",t),e.guidValidationRunning=t},CHANGE_GUID_FOR_VALIDATION(e,t){Fe.debug("[CHANGE_GUID_FOR_VALIDATION]: %o",t),e.guidForValidation=t},CHANGE_GUID_BLACKLISTED(e,t){Fe.debug("[CHANGE_GUID_BLACKLISTED]: %o",t),e.guidBlacklisted=t},CHANGE_REPLACEABLE(e,t){Fe.debug("[CHANGE_REPLACEABLE]: %o",t),e.replaceable=t},CHANGE_POP_UP_WINDOW(e,t){Fe.debug("[CHANGE_POP_UP_WINDOW]: %o",t),e.popUpWindow=t,e.isPopUpOpen=!!t,e.regAtOpen=null},STATE_AT_OPEN(e,t){e.regAtOpen=t},MUTATE_KEYSERVER_RESPONSE(e,t){Fe.debug("[MUTATE_KEYSERVER_RESPONSE]: %o",t),t.license&&(e.license=t.license),t.newKey&&(e.keyfile=t.newKey),t.trial&&(e.keyfile=t.trial),t.apikey&&(e.apikey=t.apikey),t.validated&&(e.ipsValidated=t.validated),t.email&&(e.userEmail=t.email),t.password&&(e.userPassword=t.password),(t.action||t.keyServerAction)&&(e.keyServerAction=t.action||t.keyServerAction),t.username&&(e.username=t.username),t.avatar&&(e.avatar=t.avatar)},SET_TRIAL(e,t){Fe.debug("[SET_TRIAL]: %o",t),e.license=t.license,e.keyfile=t.trial,e.keyServerAction="extendTrial"},SET_USER_EMAIL(e,t){Fe.debug("[SET_USER_EMAIL]: %s",t),e.userEmail=t},SET_FULL_SERVER_STATE(e,t){if(Fe.debug("[SET_FULL_SERVER_STATE] start %o",t),!t)return Fe.error("[SET_FULL_SERVER_STATE] No state data…🤬");let r=t;return(r.registered||0===r.registered)&&(r.registered=Boolean(Number(r.registered))),(r.hasRemoteApikey||0===r.hasRemoteApikey)&&(r.hasRemoteApikey=Boolean(Number(r.hasRemoteApikey))),r.email&&(r={...r,userEmail:r.email},delete r.email),Fe.debug("[SET_FULL_SERVER_STATE] ✨ mutateData ✨ %o",{state:e,mutateData:r}),e=Object.assign(e,r),!0},SET_RAW_SERVER_STATE:(e,t)=>Oe?(e.rawServerState=t,Fe.debug("[SET_RAW_SERVER_STATE] %o",t)):Fe.debug("[SET_RAW_SERVER_STATE] ❌ skipped not needed in non-pop-up ❌ %o",{CAN_POST_MESSAGE:Oe}),SIGN_OUT(e){Fe.debug("[SIGN_OUT]: %s","✨"),e.registered=!1,e.license="",e.keyfile="",e.apikey="",e.ipsValidated=!1,e.userEmail="",e.userPassword="",e.username="",e.avatar=""},SUBMISSION_FROM(e,t){Fe.debug("[SUBMISSION_FROM]: %s",t),e.submissionFrom=t},SET_WANIP(e,t){Fe.debug("[SET_WANIP]: %s",t),e.wanip=t,sessionStorage.setItem("upc_wanip",t)},SET_SERVERDESC(e,t){Fe.debug("[SET_SERVERDESC]: %s",t),e.serverdesc=t},SET_SITE(e,t){Fe.debug("[SET_SITE]: %s",t),e.site=t},SET_CSRF(e,t){Fe.debug("[SET_CSRF]: %s",t),e.csrf=t},LICENSE_PINGBACK(e,t){Fe.debug("[LICENSE_PINGBACK]: %o",t),e.licenseAction=t},ACCOUNT_PINGBACK(e,t){Fe.debug("[ACCOUNT_PINGBACK]: %o",t),e.accountAction=t},RECEIVED_SUCCESS_NEW_SERVERSTATE(e,t){Fe.debug("[RECEIVED_SUCCESS_NEW_SERVERSTATE]: %o",t),e.receivedSuccessNewServerState=t},SET_UPTIME(e,t){Fe.debug("[SET_UPTIME]: %s",t),e.uptime=t},SET_EXPIRE_TIME(e,t){Fe.debug("[SET_EXPIRE_TIME]: %s",t),e.expiretime=t},SET_REGWIZ_TIME(e,t){Fe.debug("[SET_REGWIZ_TIME]: %s",t),e.regWizTime=t},CHANGE_GUID_FORUMACCOUNT(e,t){Fe.debug("[CHANGE_GUID_FORUMACCOUNT]: %s",t),e.forumaccount=t},SET_LOCALE(e,t){Fe.debug("[SET_LOCALE]: %s",t),e.locale=t},LOCALE_MESSAGES(e,t){const[r,n]=Re(decodeURIComponent(t));r?Fe.warn("[LOCALE_MESSAGES]: %o",r):(Fe.debug("[LOCALE_MESSAGES]: %o",n),e.messages=n)},SET_API_KEY(e,t){Fe.debug("[SET_API_KEY]: %s",t),e.apikey=t},SET_GRAPH_ONLINE(e,t){Fe.debug("[SET_GRAPH_ONLINE]: %o",t),e.graphOnline=t},SET_GRAPH_RECONNECTED(e,t){Fe.debug("[SET_GRAPH_RECONNECTED]: %o",t),e.graphReconnected=t},SET_MY_SERVERS(e,t){Fe.debug("[SET_MY_SERVERS]: %o",t),e.myServers=[...t]},SET_MY_SERVERS_LOADING(e,t){Fe.debug("[SET_MY_SERVERS_LOADING]: %o",t),e.myServersLoading=t},SET_MY_SERVERS_ERROR(e,t){t?Fe.error("[SET_MY_SERVERS_ERROR]: %o",t):Fe.debug("[SET_MY_SERVERS_ERROR] unset"),e.myServersError=t?t.replace("Graphql","unraid-api").replace("offline","stopped"):null},SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN(e,t){Fe.debug("[SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN]",t),e.myServersErrorShowSupportBtn=t},SET_MY_SERVERS_ENV(e,t){Fe.debug("[SET_MY_SERVERS_ENV]: %o",t),e.myServersEnv=t},SET_MY_SERVERS_API_VERSION(e,t){Fe.debug("[SET_MY_SERVERS_API_VERSION]: %o",t),e.apiVersion=t},TRIGGER_UPC(e,t){Fe.debug("[TRIGGER_UPC]: %o",t),e.triggerUPC=t},SET_HIDE_MY_SERVERS(e,t){Fe.debug("[SET_HIDE_MY_SERVERS]: %o",t),e.hideMyServers=!!t},SET_PLG_PATH:(e,t)=>"dynamix.my.servers"!==t?Fe.warn("[SET_PLG_PATH] value not allowed",t):(Fe.debug("[SET_PLG_PATH]: %o",t),e.plgPath=t,!0),SET_POST_MESSAGE_ERROR(e,t){e.postMessageError=t,e.postMessageError&&Fe.error("[SET_POST_MESSAGE_ERROR]: %o",e.postMessageError)},SET_OWNER(e,t){Fe.debug("[SET_OWNER]: %o",t),e.username=t&&t.username?t.username:"",e.avatar=t&&t.avatar?t.avatar:"",e.registered=!(!t||!t.username)},SET_REGISTRATION_SUB(e,t){Fe.debug("[SET_REGISTRATION_SUB]: %o",t),t.keyfile&&(e.keyfile=t.keyFile.contents),t.expiration&&(e.expiretime=t.expiration)},SET_DEV_MODE(e,t){Fe.debug("[SET_DEV_MODE]: %o",t),e.devEnv=t},SET_SIGN_OUT_TRIGGERED(e,t){Fe.debug("[SET_SIGN_OUT_TRIGGERED]: %o",t),e.signOutTriggered=t},SET_API_EXECUTE_RESPONSE(e,t){Fe.debug("[SET_API_EXECUTE_RESPONSE]: %o",t),e.apiReport=t},SET_MY_SERVERS_CLOUD(e,t){Fe.debug("[SET_MY_SERVERS_CLOUD]: %o",t),e.cloud=t},SET_REPLACE_KEY(e,t){Fe.debug("[SET_REPLACE_KEY]: %o",t),e.license=t.license,e.keyfile=t.newkey,e.keyServerAction="replace"},SET_PIRATE_KEY(e,t){Fe.debug("[SET_PIRATE_KEY]: %s",t),e.pirateKey=!!t,e.pirateKey?sessionStorage.setItem("upc_yargMatey",t):sessionStorage.removeItem("upc_yargMatey")}};var Ve=r("0e49"),Ge=r.n(Ve),ze=function(){return(ze=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,He.a&&(e.prototype[He.a]=t)}function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index120){for(var d=Math.floor(c/80),f=c%80,h=[],m=0;m0||We(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||We(0,"column in locationOffset is 1-indexed and must be positive")};!function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}(nt);var it=r("04b4"),ot=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function at(){return this.lastToken=this.token,this.token=this.lookahead()}function st(){var e=this.token;if(e.kind!==ot.EOF)do{e=e.next||(e.next=ut(this,e))}while(e.kind===ot.COMMENT);return e}function ct(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function lt(e){return isNaN(e)?ot.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function ut(e,t){var r=e.source,n=r.body,i=n.length,o=function(e,t,r){var n=e.length,i=t;for(;i=i)return new ct(ot.EOF,i,i,a,s,t);var c=n.charCodeAt(o);switch(c){case 33:return new ct(ot.BANG,o,o+1,a,s,t);case 35:return function(e,t,r,n,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new ct(ot.COMMENT,t,s,r,n,i,a.slice(t+1,s))}(r,o,a,s,t);case 36:return new ct(ot.DOLLAR,o,o+1,a,s,t);case 38:return new ct(ot.AMP,o,o+1,a,s,t);case 40:return new ct(ot.PAREN_L,o,o+1,a,s,t);case 41:return new ct(ot.PAREN_R,o,o+1,a,s,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new ct(ot.SPREAD,o,o+3,a,s,t);break;case 58:return new ct(ot.COLON,o,o+1,a,s,t);case 61:return new ct(ot.EQUALS,o,o+1,a,s,t);case 64:return new ct(ot.AT,o,o+1,a,s,t);case 91:return new ct(ot.BRACKET_L,o,o+1,a,s,t);case 93:return new ct(ot.BRACKET_R,o,o+1,a,s,t);case 123:return new ct(ot.BRACE_L,o,o+1,a,s,t);case 124:return new ct(ot.PIPE,o,o+1,a,s,t);case 125:return new ct(ot.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){var o=e.body,a=o.length,s=t+1,c=0;for(;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new ct(ot.NAME,t,s,r,n,i,o.slice(t,s))}(r,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,s=r,c=t,l=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw tt(e,c,"Invalid number, unexpected digit after 0: ".concat(lt(s),"."))}else c=pt(e,c,s),s=a.charCodeAt(c);if(46===s&&(l=!0,s=a.charCodeAt(++c),c=pt(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(l=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=pt(e,c,s),s=a.charCodeAt(c)),46===s||69===s||101===s)throw tt(e,c,"Invalid number, expected digit but got: ".concat(lt(s),"."));return new ct(l?ot.FLOAT:ot.INT,t,c,n,i,o,a.slice(t,c))}(r,o,c,a,s,t);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?function(e,t,r,n,i,o){var a=e.body,s=t+3,c=s,l=0,u="";for(;s=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw tt(e,i,"Invalid number, expected digit but got: ".concat(lt(o),"."))}function dt(e,t,r,n){return ft(e)<<12|ft(t)<<8|ft(r)<<4|ft(n)}function ft(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}qe(ct,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var ht=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});var mt=function(){function e(e,t){var r="string"==typeof e?new nt(e):e;r instanceof nt||We(0,"Must provide Source. Received: ".concat(Object(Be.a)(r))),this._lexer=function(e,t){var r=new ct(ot.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:at,lookahead:st}}(r),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(ot.NAME);return{kind:rt.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:rt.a.DOCUMENT,definitions:this.many(ot.SOF,this.parseDefinition,ot.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(ot.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(ot.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(ot.BRACE_L))return{kind:rt.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(ot.NAME)&&(t=this.parseName()),{kind:rt.a.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(ot.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(ot.PAREN_L,this.parseVariableDefinition,ot.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:rt.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ot.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ot.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(ot.DOLLAR),{kind:rt.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:rt.a.SELECTION_SET,selections:this.many(ot.BRACE_L,this.parseSelection,ot.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(ot.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(ot.COLON)?(e=n,t=this.parseName()):t=n,{kind:rt.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ot.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ot.PAREN_L,t,ot.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(ot.COLON),{kind:rt.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:rt.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(ot.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(ot.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(ot.NAME)?{kind:rt.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:rt.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:rt.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:rt.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case ot.BRACKET_L:return this.parseList(e);case ot.BRACE_L:return this.parseObject(e);case ot.INT:return this._lexer.advance(),{kind:rt.a.INT,value:t.value,loc:this.loc(t)};case ot.FLOAT:return this._lexer.advance(),{kind:rt.a.FLOAT,value:t.value,loc:this.loc(t)};case ot.STRING:case ot.BLOCK_STRING:return this.parseStringLiteral();case ot.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:rt.a.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:rt.a.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:rt.a.ENUM,value:t.value,loc:this.loc(t)});case ot.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:rt.a.STRING,value:e.value,block:e.kind===ot.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:rt.a.LIST,values:this.any(ot.BRACKET_L,(function(){return t.parseValueLiteral(e)}),ot.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:rt.a.OBJECT,fields:this.any(ot.BRACE_L,(function(){return t.parseObjectField(e)}),ot.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(ot.COLON),{kind:rt.a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(ot.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(ot.AT),{kind:rt.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(ot.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(ot.BRACKET_R),e={kind:rt.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(ot.BANG)?{kind:rt.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:rt.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===ot.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(ot.STRING)||this.peek(ot.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(ot.BRACE_L,this.parseOperationTypeDefinition,ot.BRACE_R);return{kind:rt.a.SCHEMA_DEFINITION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(ot.COLON);var r=this.parseNamedType();return{kind:rt.a.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:rt.a.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:rt.a.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(ot.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(ot.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(ot.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(ot.BRACE_L)&&this._lexer.lookahead().kind===ot.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(ot.BRACE_L,this.parseFieldDefinition,ot.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(ot.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:rt.a.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(ot.PAREN_L,this.parseInputValueDef,ot.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(ot.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(ot.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:rt.a.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:rt.a.INTERFACE_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:rt.a.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(ot.EQUALS)){this.expectOptionalToken(ot.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(ot.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:rt.a.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(ot.BRACE_L,this.parseEnumValueDefinition,ot.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:rt.a.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:rt.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(ot.BRACE_L,this.parseInputValueDef,ot.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===ot.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(ot.BRACE_L,this.parseOperationTypeDefinition,ot.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:rt.a.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:rt.a.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:rt.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:rt.a.INTERFACE_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:rt.a.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:rt.a.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:rt.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ot.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:rt.a.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(ot.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(ot.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==ht[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new gt(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw tt(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(vt(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==ot.NAME||t.value!==e)throw tt(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(vt(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===ot.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return tt(this._lexer.source,t.start,"Unexpected ".concat(vt(t)))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},e}();function gt(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function vt(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}qe(gt,(function(){return{start:this.start,end:this.end}}));var bt=new Map,yt=new Map,wt=!0,xt=!1;function _t(e){return e.replace(/[\s,]+/g," ").trim()}function Et(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=function(e){return _t(e.source.body.substring(e.start,e.end))}(e.loc),o=yt.get(n);o&&!o.has(i)?wt&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||yt.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e)})),ze(ze({},e),{definitions:r})}function St(e){var t=_t(e);if(!bt.has(t)){var r=function(e,t){return new mt(e,t).parseDocument()}(e,{experimentalFragmentVariables:xt});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");bt.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(Et(r)))}return bt.get(t)}function kt(e){for(var t=[],r=1;r0}var er,tr=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||function(e){var t="";return Zt(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(Pt.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(er||(er={}));var rr=function(e){function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=n,a.variables=n.variables||{},a.queryId=r.generateQueryId(),a.shouldSubscribe=o;var s=Object(Nt.m)(n.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=r,a}return Object(Pt.c)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:Yt.error}}var t,r=this.queryManager.getCurrentQueryResult(this),n=r.data,i=r.partial,o=this.queryManager.queryStore.get(this.queryId),a=this.options.fetchPolicy,s="network-only"===a||"no-cache"===a;if(o){var c=o.networkStatus;if(function(e,t){return void 0===t&&(t="none"),e&&(e.networkError||"none"===t&&Zt(e.graphQLErrors))}(o,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:c,error:new tr({graphQLErrors:o.graphQLErrors,networkError:o.networkError})};o.variables&&(this.options.variables=Object(Pt.a)(Object(Pt.a)({},this.options.variables),o.variables),this.variables=this.options.variables),t={data:n,loading:Xt(c),networkStatus:c},o.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=o.graphQLErrors)}else{var l=s||i&&"cache-only"!==a;t={data:n,loading:l,networkStatus:l?Yt.loading:Yt.ready}}return i||this.updateLastResult(Object(Pt.a)(Object(Pt.a)({},t),{stale:!1})),Object(Pt.a)(Object(Pt.a)({},t),{partial:i})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(Mt.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new Lt.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(Mt.a)(this.variables,e)||(this.variables=Object(Pt.a)(Object(Pt.a)({},this.variables),e)),Object(Mt.a)(this.options.variables,this.variables)||(this.options.variables=Object(Pt.a)(Object(Pt.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(Pt.a)(Object(Pt.a)({},this.options),{fetchPolicy:t}),er.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(Lt.b)(e.updateQuery,2);var r=Object(Pt.a)(Object(Pt.a)({},e.query?e:Object(Pt.a)(Object(Pt.a)(Object(Pt.a)({},this.options),e),{variables:Object(Pt.a)(Object(Pt.a)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,er.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})})),t.queryManager.stopQuery(n),i}),(function(e){throw t.queryManager.stopQuery(n),e}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(Pt.a)(Object(Pt.a)({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},t.prototype.setVariables=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(Mt.a)(e,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,o=r.document,a=Object(Nt.I)((function(){return e(n,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){or(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(Nt.f)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=nr)}catch(e){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(or(this),t.startPollingQuery(this.options,r));var n=function(t){e.updateLastResult(Object(Pt.a)(Object(Pt.a)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:Yt.error,loading:!1})),ir(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!r.loading&&n&&"cache-only"!==s&&t.transform(o).serverQuery&&!Object(Mt.a)(a,i)?e.refetch():ir(e.observers,"next",r)})):ir(e.observers,"next",r)}},error:n}).catch(n)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(Jt);function nr(e){}function ir(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function or(e){var t=e.options.fetchPolicy;Object(Lt.b)("cache-first"!==t&&"cache-only"!==t,3)}var ar=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),sr=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(Lt.b)(!t||t.document===e.document||Object(Mt.a)(t.document,e.document),19);var r,n=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==Yt.loading&&(Object(Mt.a)(t.variables,e.variables)||(n=!0,i=t.variables)),r=n?Yt.setVariables:e.isPoll?Yt.poll:e.isRefetch?Yt.refetch:Yt.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:r,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=Yt.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=Zt(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=Yt.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=Yt.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=Yt.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=Yt.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=Yt.loading}))},e}();var cr=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(Nt.A)(t.resolvers,e)})):this.resolvers=Object(Nt.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(Pt.b)(this,void 0,void 0,(function(){return Object(Pt.d)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then((function(e){return Object(Pt.a)(Object(Pt.a)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(Nt.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(Nt.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(Pt.a)(Object(Pt.a)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(Lt.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(Pt.b)(this,void 0,void 0,(function(){return Object(Pt.d)(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(Pt.a)(Object(Pt.a)({},t),e.exportedVariables)}))]:[2,Object(Pt.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(Kt.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Kt.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(Nt.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(Pt.b)(this,void 0,void 0,(function(){var a,s,c,l,u,p,d,f,h;return Object(Pt.d)(this,(function(m){return a=Object(Nt.l)(e),s=Object(Nt.j)(e),c=Object(Nt.g)(s),l=a.operation,u=l?function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(l):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:c,context:Object(Pt.a)(Object(Pt.a)({},r),{cache:d,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(Pt.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c=this;return Object(Pt.d)(this,(function(l){return n=r.fragmentMap,i=r.context,o=r.variables,a=[t],s=function(e){return Object(Pt.b)(c,void 0,void 0,(function(){var s,c;return Object(Pt.d)(this,(function(l){return Object(Nt.F)(e,o)?Object(Nt.t)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&a.push(((r={})[Object(Nt.E)(e)]=t,r))}))]:(Object(Nt.v)(e)?s=e:(s=n[e.name.value],Object(Lt.b)(s,7)),s&&s.typeCondition&&(c=s.typeCondition.name.value,r.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,r).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Object(Nt.B)(a)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(Pt.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c,l,u,p,d=this;return Object(Pt.d)(this,(function(f){return n=r.variables,i=e.name.value,o=Object(Nt.E)(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||r.defaultOperationType,(u=this.resolvers&&this.resolvers[l])&&((p=u[a?i:o])&&(c=Promise.resolve(p(t,Object(Nt.b)(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}))))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?d.resolveSubSelectedArray(e,t,r):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}();function lr(e){var t=new Set,r=null;return new Jt((function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}}))}var ur=Object.prototype.hasOwnProperty,pr=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,c=void 0!==s&&s,l=e.clientAwareness,u=void 0===l?{}:l,p=e.localState,d=e.assumeImmutableResults;this.mutationStore=new ar,this.queryStore=new sr,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(Nt.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=u,this.localState=p||new cr({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!d}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new Lt.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,l=e.update,u=e.errorPolicy,p=void 0===u?"none":u,d=e.fetchPolicy,f=e.context,h=void 0===f?{}:f;return Object(Pt.b)(this,void 0,void 0,(function(){var e,o,s,u=this;return Object(Pt.d)(this,(function(f){switch(f.label){case 0:return Object(Lt.b)(t,9),Object(Lt.b)(!d||"no-cache"===d,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,h)]:[3,2];case 1:r=f.sent(),f.label=2;case 2:return o=function(){var e={};return i&&u.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var o=n.queryName;o&&ur.call(i,o)&&(e[r]={updater:i[o],query:u.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:o(),update:l,optimisticResponse:n}),this.broadcastQueries(),s=this,[2,new Promise((function(i,u){var f,m;s.getObservableFromLink(t,Object(Pt.a)(Object(Pt.a)({},h),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(Nt.q)(n)&&"none"===p?m=new tr({graphQLErrors:n.errors}):(s.mutationStore.markMutationResult(e),"no-cache"!==d&&s.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:o(),update:l}),f=n)},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),s.setQuery(e,(function(){return{document:null}})),u(new tr({networkError:t}))},complete:function(){if(m&&s.mutationStore.markMutationError(e,m),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),m)u(m);else{"function"==typeof a&&(a=a(f));var t=[];Zt(a)&&a.forEach((function(e){if("string"==typeof e)s.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(s.query(r))}})),Promise.all(c?t:[]).then((function(){s.setQuery(e,(function(){return{document:null}})),"ignore"===p&&f&&Object(Nt.q)(f)&&delete f.errors,i(f)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r,n){return Object(Pt.b)(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,p,d,f,h,m,g,v,b,y,w,x,_=this;return Object(Pt.d)(this,(function(E){switch(E.label){case 0:return i=t.metadata,o=void 0===i?null:i,a=t.fetchPolicy,s=void 0===a?"cache-first":a,c=t.context,l=void 0===c?{}:c,u=this.transform(t.query).document,p=this.getVariables(u,t.variables),this.transform(u).hasClientExports?[4,this.localState.addExportedVariables(u,p,l)]:[3,2];case 1:p=E.sent(),E.label=2;case 2:if(t=Object(Pt.a)(Object(Pt.a)({},t),{variables:p}),h=f="network-only"===s||"no-cache"===s,f||(m=this.dataStore.getCache().diff({query:u,variables:p,returnPartialData:!0,optimistic:!1}),g=m.complete,v=m.result,h=!g||"cache-and-network"===s,d=v),b=h&&"cache-only"!==s&&"standby"!==s,Object(Nt.s)(["live"],u)&&(b=!0),y=this.idCounter++,w="no-cache"!==s?this.updateQueryWatch(e,u,t):void 0,this.setQuery(e,(function(){return{document:u,lastRequestId:y,invalidated:!0,cancel:w}})),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:u,storePreviousVariables:b,variables:p,isPoll:r===er.poll,isRefetch:r===er.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),b){if(x=this.fetchRequest({requestId:y,queryId:e,document:u,options:t,fetchMoreForQueryId:n}).catch((function(t){throw function(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:(y>=_.getQuery(e).lastRequestId&&(_.queryStore.markQueryError(e,t,n),_.invalidate(e),_.invalidate(n),_.broadcastQueries()),new tr({networkError:t}))})),"cache-and-network"!==s)return[2,x];x.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!b),this.invalidate(e),this.invalidate(n),this.transform(u).hasForcedResolvers?[2,this.localState.runResolvers({document:u,remoteResult:{data:d},context:l,variables:p,onlyRunForcedResolvers:!0}).then((function(r){return _.markQueryResult(e,r,t,n),_.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:d}])}}))}))},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e])try{r[e](t)}catch(e){}}return function(r,o){if(n.invalidate(e,!1),r){var a=n.getQuery(e),s=a.observableQuery,c=a.document,l=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==l){var u=Xt(r.networkStatus),p=s&&s.getLastResult(),d=!(!p||p.networkStatus===r.networkStatus),f=t.returnPartialData||!o&&r.previousVariables||d&&t.notifyOnNetworkStatusChange||"cache-only"===l||"cache-and-network"===l;if(!u||f){var h=Zt(r.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&h||r.networkError)return i("error",new tr({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var g=void 0,v=void 0;if(o)"no-cache"!==l&&"network-only"!==l&&n.setQuery(e,(function(){return{newData:null}})),g=o.result,v=!o.complete;else{var b=s&&s.getLastError(),y="none"!==m&&(b&&b.graphQLErrors)!==r.graphQLErrors;if(p&&p.data&&!y)g=p.data,v=!1;else{var w=n.dataStore.getCache().diff({query:c,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});g=w.result,v=!w.complete}}var x=v&&!(t.returnPartialData||"cache-only"===l),_={data:x?p&&p.data:g,loading:u,networkStatus:r.networkStatus,stale:x};"all"===m&&h&&(_.errors=r.graphQLErrors),i("next",_)}catch(e){i("error",new tr({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),i=Object(Nt.D)(r.transformForLink(n)),o=this.localState.clientQuery(n),a=this.localState.serverQuery(i),s={document:n,hasClientExports:Object(Nt.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Object(Nt.h)(Object(Nt.m)(n))},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(n),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(Pt.a)(Object(Pt.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(Lt.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=Object(Pt.a)({},e);return new rr({queryManager:this,options:r,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(Lt.b)(e.query,12),Object(Lt.b)("Document"===e.query.kind,13),Object(Lt.b)(!e.returnPartialData,14),Object(Lt.b)(!e.pollInterval,15),new Promise((function(r,n){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){n.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new Lt.a(16))}));var e=[];return this.queries.forEach((function(t,r){t.observableQuery&&e.push(r)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.variables;r=this.transform(r).document,i=this.getVariables(r,i);var o=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(i){if(n&&"no-cache"===n||(t.dataStore.markSubscriptionResult(i,r,e),t.broadcastQueries()),Object(Nt.q)(i))throw new tr({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var a=this.localState.addExportedVariables(r,i).then(o);return new Jt((function(e){var t=null;return a.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=e.getLastResult(),c=this.getQuery(e.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var l=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),u=l.result,p=l.complete;return{data:p||a?u:void 0,partial:!p}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;Object(Lt.b)(r,17),t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,r){t.invalidated&&t.listeners.forEach((function(n){n&&n(e.queryStore.get(r),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,o=this;void 0===n&&(n=this.queryDeduplication);var a=this.transform(e).serverQuery;if(a){var s=this.inFlightLinkObservables,c=this.link,l={query:a,variables:r,operationName:Object(Nt.n)(a)||void 0,context:this.prepareContext(Object(Pt.a)(Object(Pt.a)({},t),{forceFetch:!n}))};if(t=l.context,n){var u=s.get(a)||new Map;s.set(a,u);var p=JSON.stringify(r);if(!(i=u.get(p))){u.set(p,i=lr(qt(c,l)));var d=function(){u.delete(p),u.size||s.delete(a),f.unsubscribe()},f=i.subscribe({next:d,error:d,complete:d})}}else i=lr(qt(c,l))}else i=Jt.of({data:{}}),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(i=function(e,t){return new Jt((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,c={next:function(e){++a,new Promise((function(r){r(t(e))})).then((function(e){--a,n&&n.call(r,e),s&&c.complete()}),(function(e){--a,i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){s=!0,a||o&&o.call(r)}},l=e.subscribe(c);return function(){return l.unsubscribe()}}))}(i,(function(e){return o.localState.runResolvers({document:h,remoteResult:e,context:t,variables:r})}))),i},e.prototype.fetchRequest=function(e){var t,r,n=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,c=e.fetchMoreForQueryId,l=s.variables,u=s.errorPolicy,p=void 0===u?"none":u,d=s.fetchPolicy;return new Promise((function(e,u){var f=n.getObservableFromLink(a,s.context,l),h="fetchRequest:"+o;n.fetchQueryRejectFns.set(h,u);var m=function(){n.fetchQueryRejectFns.delete(h),n.setQuery(o,(function(e){e.subscriptions.delete(g)}))},g=f.map((function(e){if(i>=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,e,s,c),n.queryStore.markQueryResult(o,e,c),n.invalidate(o),n.invalidate(c),n.broadcastQueries()),"none"===p&&Zt(e.errors))return u(new tr({graphQLErrors:e.errors}));if("all"===p&&(r=e.errors),c||"no-cache"===d)t=e.data;else{var f=n.dataStore.getCache().diff({variables:l,query:a,optimistic:!1,returnPartialData:!0}),h=f.result;(f.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){m(),u(e)},complete:function(){m(),e({data:t,errors:r,loading:!1,networkStatus:Yt.ready,stale:!1})}});n.setQuery(o,(function(e){e.subscriptions.add(g)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=Object(Pt.a)(Object(Pt.a)({},r),t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(Pt.a)(Object(Pt.a)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==Yt.ready&&t.networkStatus!==Yt.error},e.prototype.startPollingQuery=function(e,t,r){var n=this,i=e.pollInterval;if(Object(Lt.b)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=Object(Pt.a)(Object(Pt.a)({},e),{fetchPolicy:"network-only"});var a=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?s():n.fetchQuery(t,e.options,er.poll).then(s,s))},s=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};r&&this.addQueryListener(t,r),s()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),dr=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var o=!Object(Nt.q)(e);i&&Object(Nt.q)(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(Nt.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(Nt.q)(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach((function(i){var o=n[i],a=o.query,s=o.updater,c=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),l=c.result;if(c.complete){var u=Object(Nt.I)((function(){return s(l,{mutationResult:e.result,queryName:Object(Nt.n)(a.document)||void 0,queryVariables:a.variables})}));u&&r.push({result:u,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&Object(Nt.I)((function(){return n(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),fr=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=void 0!==n&&n,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,c=e.queryDeduplication,l=void 0===c||c,u=e.defaultOptions,p=e.assumeImmutableResults,d=void 0!==p&&p,f=e.resolvers,h=e.typeDefs,m=e.fragmentMatcher,g=e.name,v=e.version,b=e.link;if(!b&&f&&(b=Ht.empty()),!b||!r)throw new Lt.a(4);this.link=b,this.cache=r,this.store=new dr(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=l,this.defaultOptions=u||{},this.typeDefs=h,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new cr({cache:r,client:this,resolvers:f,fragmentMatcher:m}),this.queryManager=new pr({link:this.link,store:this.store,queryDeduplication:l,ssrMode:i,clientAwareness:{name:g,version:v},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(Pt.a)(Object(Pt.a)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(Pt.a)(Object(Pt.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(Pt.a)(Object(Pt.a)({},this.defaultOptions.query),e)),Object(Lt.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(Pt.a)(Object(Pt.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(Pt.a)(Object(Pt.a)({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return qt(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();var hr=r("7506"),mr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},gr=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},vr=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new Lt.a(2);throw n.parseError=e,n}return r},br=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=Object(Pt.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);(function(e){if(!e&&"undefined"==typeof fetch)throw new Lt.a(1)})(n),n||(n=fetch);var s={http:{includeExtensions:i},options:a.fetchOptions,credentials:a.credentials,headers:a.headers};return new Ht((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),a={};if(i.clientAwareness){var c=i.clientAwareness,l=c.name,u=c.version;l&&(a["apollographql-client-name"]=l),u&&(a["apollographql-client-version"]=u)}var p,d=Object(Pt.a)({},a,i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},h=function(e,t){for(var r=[],n=2;n=300&&gr(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||gr(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),r}))}}(e)).then((function(e){return r.next(e),r.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))})),function(){p&&p.abort()}}))}))};var yr=function(e){function t(t){return e.call(this,br(t).request)||this}return Object(Pt.c)(t,e),t}(Ht);function wr(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:_r(e)}]}}function xr(e,t){return{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:_r(e)}]}}function _r(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return _r(e[0]);var t=[];return Object.keys(e).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:_r(e[r])||void 0};t.push(n)})),{kind:"SelectionSet",selections:t}}var Er,Sr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},kr=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(Nt.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(Nt.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t=e.id,r=e.data;if(void 0!==t){var n=null;try{n=this.read({rootId:t,optimistic:!1,query:Sr})}catch(e){}var i=n&&n.__typename||"__ClientData",o=Object.assign({__typename:i},r);this.writeFragment({id:t,fragment:xr(o,i),data:o})}else this.writeQuery({query:wr(r),data:r})},e}();Er||(Er={});var Or=null,Tr={},Ir=1,Ar="@wry/context:Slot",Rr=Array,Cr=Rr[Ar]||function(){var e=function(){function e(){this.id=["slot",Ir++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Or;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Tr)break;return e!==Or&&(Or.slots[this.id]=t),!0}return Or&&(Or.slots[this.id]=Tr),!1},e.prototype.getValue=function(){if(this.hasValue())return Or.slots[this.id]},e.prototype.withValue=function(e,t,r,n){var i,o=((i={__proto__:null})[this.id]=e,i),a=Or;Or={parent:a,slots:o};try{return t.apply(n,r)}finally{Or=a}},e.bind=function(e){var t=Or;return function(){var r=Or;try{return Or=t,e.apply(this,arguments)}finally{Or=r}}},e.noContext=function(e,t,r){if(!Or)return e.apply(r,t);var n=Or;try{return Or=null,e.apply(r,t)}finally{Or=n}},e}();try{Object.defineProperty(Rr,Ar,{value:Rr[Ar]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Pr(){}Cr.bind,Cr.noContext;var Nr=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Pr),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getEntry(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Mr=new Cr,Dr=[],Ur=[];function Lr(e,t){if(!e)throw new Error(t||"assertion failure")}function jr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Fr=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(Lr(!this.recomputing,"already recomputing"),function(e){var t=Mr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Vr(e)?Br(t,e):Wr(t,e),t}(this)||!qr(this))return Vr(this)?function(e){var t=Yr(e);return Mr.withValue(e,$r,[e]),function(e){if("function"==typeof e.subscribe)try{Kr(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){e.dirty=!1,Vr(e)||zr(e)}(e),t.forEach(qr),jr(e.value)}(this):jr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Gr(this),Kr(this))},e.prototype.dispose=function(){var e=this;Yr(this).forEach(qr),Kr(this),this.parents.forEach((function(t){t.setDirty(),Qr(t,e)}))},e.count=0,e}();function $r(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function Vr(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Gr(e){e.parents.forEach((function(t){return Br(t,e)}))}function zr(e){e.parents.forEach((function(t){return Wr(t,e)}))}function Br(e,t){if(Lr(e.childValues.has(t)),Lr(Vr(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Ur.pop()||new Set;e.dirtyChildren.add(t),Gr(e)}function Wr(e,t){Lr(e.childValues.has(t)),Lr(!Vr(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),Hr(e,t),Vr(e)||zr(e)}function Hr(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Ur.length<100&&Ur.push(r),e.dirtyChildren=null))}function qr(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function Yr(e){var t=Dr;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(r,n){Qr(e,n),t.push(n)}))),Lr(null===e.dirtyChildren),t}function Qr(e,t){t.parents.delete(e),e.childValues.delete(t),Hr(e,t)}function Kr(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Xr=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t}}(),Object.prototype.hasOwnProperty),an=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=tn((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){on.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(r){t.set(r,e[r])})),Object.keys(this.data).forEach((function(r){on.call(e,r)||t.delete(r)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function sn(e){return new an(e)}var cn=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,i=void 0===n?new Xr(Nt.e):n,o=r.freezeResults,a=void 0!==o&&o,s=this,c=s.executeStoreQuery,l=s.executeSelectionSet,u=s.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=tn((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof an)return i.lookup(n.store,t,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=tn((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof an)return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=tn((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof an)return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(Pt.a)(Object(Pt.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,o=e.returnPartialData,a=void 0===o||o,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,l=e.fragmentMatcherFunction,u=e.config,p=Object(Nt.o)(r);n=Object(Nt.c)({},Object(Nt.h)(p),n);var d={store:t,dataIdFromObject:u&&u.dataIdFromObject,cacheRedirects:u&&u.cacheRedirects||{}},f=this.executeStoreQuery({query:r,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:l}),h=f.missing&&f.missing.length>0;return h&&!a&&f.missing.forEach((function(e){if(!e.tolerable)throw new Lt.a(8)})),i&&Object(Mt.a)(i,f.result)&&(f.result=i),{result:f.result,complete:!h}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=void 0===o?un:o,s=Object(Nt.l)(t),c=Object(Nt.j)(t),l={query:t,fragmentMap:Object(Nt.g)(c),contextValue:n,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:r,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,n=e.rootValue,i=e.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,c={result:null},l=[],u=a.store.get(n.id),p=u&&u.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function d(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach((function(e){var r;if(Object(Nt.F)(e,s))if(Object(Nt.t)(e)){var c=d(t.executeField(u,p,e,i));void 0!==c&&l.push(((r={})[Object(Nt.E)(e)]=c,r))}else{var f=void 0;if(Object(Nt.v)(e))f=e;else if(!(f=o[e.name.value]))throw new Lt.a(9);var h=f.typeCondition&&f.typeCondition.name.value,m=!h||i.fragmentMatcher(n,h,a);if(m){var g=t.executeSelectionSet({selectionSet:f.selectionSet,rootValue:n,execContext:i});"heuristic"===m&&g.missing&&(g=Object(Pt.a)(Object(Pt.a)({},g),{missing:g.missing.map((function(e){return Object(Pt.a)(Object(Pt.a)({},e),{tolerable:!0})}))})),l.push(d(g))}}})),c.result=Object(Nt.B)(l),this.freezeResults,c},e.prototype.executeField=function(e,t,r,n){var i=n.variableValues,o=n.contextValue,a=function(e,t,r,n,i,o){o.resultKey;var a=o.directives,s=r;(n||a)&&(s=Object(Nt.p)(s,n,a));var c=void 0;if(e&&void 0===(c=e[s])&&i.cacheRedirects&&"string"==typeof t){var l=i.cacheRedirects[t];if(l){var u=l[r];u&&(c=u(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&Object(Nt.H)({id:t,typename:e.__typename})}}))}}return void 0===c?{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]}:(Object(Nt.w)(c)&&(c=c.json),{result:c})}(e,t,r.name.value,Object(Nt.b)(r,i),o,{resultKey:Object(Nt.E)(r),directives:Object(Nt.i)(r,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:r,array:a.result,execContext:n})):r.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:a.result,execContext:n})):(ln(r,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],r=0;r=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var gn={fragmentMatcher:new nn,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var vn=Object.prototype.hasOwnProperty,bn=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return Object(Pt.c)(t,e),t.prototype.toObject=function(){return Object(Pt.a)(Object(Pt.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return vn.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(pn),yn=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new Xr(Nt.e),r.silenceBroadcast=!1,r.config=Object(Pt.a)(Object(Pt.a)({},gn),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new an:new pn,r.optimisticData=r.data,r.storeWriter=new fn,r.storeReader=new cn({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r,i=n.maybeBroadcastWatch;return r.maybeBroadcastWatch=tn((function(e){return i.call(r,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return n.data instanceof an?n.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),r}return Object(Pt.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new Lt.a(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof bn;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new bn(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(Nt.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(kr),wn=r("633a"),xn=function(e){function t(t){var r=e.call(this)||this;return t instanceof wn.SubscriptionClient?r.subscriptionClient=t:r.subscriptionClient=new wn.SubscriptionClient(t.uri,t.options,t.webSocketImpl),r}return Object(Pt.c)(t,e),t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(Ht);function _n(e){return new Ht((function(t,r){return new Ut((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var r=e.call(this)||this;return r.link=_n(t),r}Object(Pt.c)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(Ht);var En=function(){function e(e,t,r,n){var i=this;this.operation=e,this.nextLink=t,this.delayFor=r,this.retryIf=n,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,r=i.observers;t=i)&&(r?r(n,t):!!n)}}(i),r}return Object(Pt.c)(t,e),t.prototype.request=function(e,t){var r=new En(e,t,this.delayFor,this.retryIf);return r.start(),new Ut((function(e){return r.subscribe(e),function(){r.unsubscribe(e)}}))},t}(Ht);const kn=new URL(be||window.location.origin),On={},Tn=e=>{Fe.debug("[createGraphqlClient]");const t=new Ht((t,r)=>r(t).map(r=>{const{response:{headers:n}}=t.getContext();if(n){const t=n.get("x-environment")||null,r=n.get("x-unraid-api-version")||null;t&&e.commit("SET_MY_SERVERS_ENV",t),r&&e.commit("SET_MY_SERVERS_API_VERSION",r)}return r})).concat(new yr({uri:`${kn.protocol}//${kn.host}/graphql`})),r=`${kn.protocol.includes("https")?"wss://":"ws://"}${kn.host}/graphql`,n=new xn({uri:r,options:{timeout:65e3,reconnect:!0,connectionParams:{"x-api-key":e.state.apikey}}});let i;n.subscriptionClient.maxConnectTimeGenerator.setMin(3e3),n.subscriptionClient.onConnected(()=>{Fe.debug("[🚀 wslink.onConnected 🚀]"),e.commit("SET_GRAPH_ONLINE",!0),e.state.myServersError&&e.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onReconnected(()=>{Fe.debug("[🚀 wslink.onReconnected 🚀]"),e.commit("SET_GRAPH_ONLINE",!0),e.commit("SET_GRAPH_RECONNECTED",!0),e.state.myServersError&&e.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onDisconnected(()=>{Fe.debug("[🚀 wslink.onDisconnected 🚀] 01"),e.state.graphOnline&&(clearTimeout(i),i=setTimeout(()=>{Fe.debug("[🚀 wslink.onDisconnected 🚀] 02"),e.commit("SET_GRAPH_ONLINE",!1),e.state.myServersError||e.commit("SET_MY_SERVERS_ERROR","Disconnected from Unraid API")},150))});const o=Wt(({query:e})=>{const t=Object(Nt.l)(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},n,t),a=function(e){return new Ht((function(t,r){var n=Object(Pt.e)(t,[]);return new Ut((function(i){var o;return Promise.resolve(n).then((function(r){return e(r,t.getContext())})).then(t.setContext).then((function(){o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})})).catch(i.error.bind(i)),function(){o&&o.unsubscribe()}}))}))}((t,{headers:r})=>({headers:{...r,"x-api-key":e.state.apikey}})),s=_n(({graphQLErrors:t,networkError:r})=>{if(t){Fe.error("[GraphQL error] %o",t);const r=t[0].message||t[0].error.message||"No error object - [UNRAID]";e.commit("SET_MY_SERVERS_ERROR",r)}if(r){Fe.error("[Network error]",r);const t=r.message?r.message:r;e.commit("SET_MY_SERVERS_ERROR",t.includes("Unexpected token < in JSON at position 0")?"Unraid API • CORS Error":t)}e.commit("SET_MY_SERVERS_LOADING",!1)}),c=new Sn({delay:{initial:300,max:1/0,jitter:!0},attempts:{max:1/0,retryIf:(t,r)=>(Fe.debug("[retryLink - retryIf]",{error:t,_operation:r}),e.commit("SET_GRAPH_ONLINE",!1),!!t)}});return new fr({link:Ht.from([c,s,a,o]),connectToDevTools:!1,cache:new yn,defaultOptions:{watchQuery:{fetchPolicy:"no-cache"},query:{fetchPolicy:"no-cache"},mutate:{fetchPolicy:"no-cache"},subscribe:{fetchPolicy:"no-cache",shouldResubscribe:!1}}})},In=e=>{if(!e.state.apikey)return Fe.debug("[getGraphqlClient] NO API KEY");if(Object.keys(On).includes(e.state.apikey))return Fe.debug("[getGraphqlClient] found existing client %o",On[e.state.apikey]),On[e.state.apikey];const t=Tn(e);return On[e.state.apikey]=t,Fe.debug("[getGraphqlClient] new client inbound %o",t),t},An=(e,t)=>(Fe.debug("[detectOwnersResponseError]",{"context.state.registered":e.state.registered,"context.state.signOutTriggered":e.state.signOutTriggered,"response.data.owner":t.data.owner,"context.state.myServersError":e.state.myServersError}),e.state.signOutTriggered?Fe.debug("[detectOwnersResponseError] signed out; ignoring"):!t.data.owner||t.data.owner&&"root"===t.data.owner.username?(Fe.error(Ae,t.data.owner),e.commit("SET_MY_SERVERS_ERROR",`${Ae} ${Se()(e.state.apiVersion,"2.43.3")?"Please update your My Servers plugin to potentially fix this error. Thanks for working with us as we try to solve this bug.":"Please sign out and then sign back in to potentially fix this error. If you have already tried this please contact support. Thanks for working with us as we try to solve this bug."}`),e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!0)):t.data.owner&&"root"!==t.data.owner.username&&e.state.myServersError&&e.state.myServersError.includes(Ae)?(e.commit("SET_MY_SERVERS_ERROR",""),e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!1)):Fe.debug("[detectOwnersResponseError] PASSED"));var Rn=function(){return(Rn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&(r(i.reverse()[0]),n.clearMeasures&&n.clearMeasures(t),Dn.callbacks.delete(t),Dn.callbacks.size<1&&(Dn.observer.disconnect(),n.clearResourceTimings&&n.clearResourceTimings()),!0)},Dn={callbacks:new Map,observer:null,observe:function(e,t){if(e&&t){var r=Nn.a.polyfill("performance",{doThrow:!1});(function(e,t){return!Dn.observer&&e&&t&&(Dn.observer=new t((function(t){Dn.callbacks.forEach((function(r,n){Mn(t,n,r,e)}))})),e.clearResourceTimings&&e.clearResourceTimings()),Dn.observer})(r,Nn.a.polyfill("PerformanceObserver",{doThrow:!1}))&&(Mn(r,e,t,r)||(Dn.callbacks.size<1&&Dn.observer.observe({entryTypes:["resource","measure"]}),Dn.callbacks.set(e,t)))}}},Un=Dn,Ln=function(e){this.error=e},jn=function(){return(jn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?r[0]+e+"?"+r[1]:this._url+e})},e.prototype.options=function(e,t){return void 0===t&&(t=!0),this.selfFactory({options:t?Pn(this._options,e):e})},e.prototype.query=function(e,t){return void 0===t&&(t=!1),this.selfFactory({url:zn(this._url,e,t)})},e.prototype.headers=function(e){return this.selfFactory({options:Pn(this._options,{headers:e||{}})})},e.prototype.accept=function(e){return this.headers({Accept:e})},e.prototype.content=function(e){var t;return this.headers(((t={})[Vn]=e,t))},e.prototype.auth=function(e){return this.headers({Authorization:e})},e.prototype.catcher=function(e,t){var r=new Map(this._catchers);return r.set(e,t),this.selfFactory({catchers:r})},e.prototype.signal=function(e){return this.selfFactory({options:jn(jn({},this._options),{signal:e.signal})})},e.prototype.resolve=function(e,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[e]:Fn(Fn([],this._resolvers),[e])})},e.prototype.defer=function(e,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[e]:Fn(Fn([],this._deferredChain),[e])})},e.prototype.middlewares=function(e,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?e:Fn(Fn([],this._middlewares),e)})},e.prototype.method=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=null);var n=this.options(jn(jn({},t),{method:e})),i=n._options.headers;return function(e){var t=e._url,r=e._catchers,n=e._resolvers,i=e._middlewares,o=e._options,a=new Map(r),s=Pn(Nn.a.defaults,o),c=Nn.a.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&c&&(s.signal=c.signal);var l={ref:null,clear:function(){l.ref&&(clearTimeout(l.ref),l.ref=null)}},u=function(e){return function(t){return 0===e.length?t:1===e.length?e[0](t):e.reduceRight((function(r,n,i){return i===e.length-2?n(r(t)):n(r)}))}}(i)(Nn.a.polyfill("fetch"))(t,s),p=u.catch((function(e){throw new Ln(e)})).then((function(e){return l.clear(),e.ok?e:e[Nn.a.errorType||"text"]().then((function(t){var r=new Error(t);throw r[Nn.a.errorType||"text"]=t,r.status=e.status,r.response=e,r}))})),d=function(t){return t.catch((function(t){l.clear();var r=t instanceof Ln?t.error:t;if(t instanceof Ln&&a.has("__fromFetch"))return a.get("__fromFetch")(r,e);if(a.has(r.status))return a.get(r.status)(r,e);if(a.has(r.name))return a.get(r.name)(r,e);throw r}))},f=function(e){return function(t){return d(e?p.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e})):p.then((function(e){return t?t(e):e})))}},h={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(e){return u.then((function(t){return Un.observe(t.url,e)})),h},setTimeout:function(e,t){return void 0===t&&(t=c),l.clear(),l.ref=setTimeout((function(){return t.abort()}),e),h},controller:function(){return[c,h]},error:function(e,t){return a.set(e,t),h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return n.reduce((function(t,r){return r(t,e)}),h)}((n=r?"object"!=typeof r||i&&!Object.entries(i).every((function(e){var t=e[0],r=e[1];return t.toLowerCase()!==Vn.toLowerCase()||r.startsWith($n)}))?n.body(r):n.json(r):n)._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),n))},e.prototype.get=function(e){return this.method("GET",e)},e.prototype.delete=function(e){return this.method("DELETE",e)},e.prototype.put=function(e,t){return this.method("PUT",t,e)},e.prototype.post=function(e,t){return this.method("POST",t,e)},e.prototype.patch=function(e,t){return this.method("PATCH",t,e)},e.prototype.head=function(e){return this.method("HEAD",e)},e.prototype.opts=function(e){return this.method("OPTIONS",e)},e.prototype.replay=function(e){return this.method(this._options.method,e)},e.prototype.body=function(e){return this.selfFactory({options:jn(jn({},this._options),{body:e})})},e.prototype.json=function(e){var t,r=null===(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],r=e[1];return t.toLowerCase()===Vn.toLowerCase()&&r.startsWith($n)})))||void 0===t?void 0:t[1];return this.content(r||$n).body(JSON.stringify(e))},e.prototype.formData=function(e,t){return void 0===t&&(t=!1),this.body(function e(t,r,n,i){return void 0===r&&(r=!1),void 0===n&&(n=Nn.a.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var o=t[0],a=t[1],s=i.reduce((function(e,t){return e?e+"["+t+"]":t}),null);if(s=s?s+"["+o+"]":o,a instanceof Array)for(var c=0,l=a;cFe.error(e));const qn=Hn("https://keys.lime-technology.com").catcher(e=>Fe.error(e)),Yn=Hn("https://wanip4.unraid.net/").catcher(e=>Fe.error(e)),Qn=Hn("/webGui/include/InstallKey.php").catcher(e=>Fe.error(e)),Kn=Hn().catcher(e=>Fe.error(e)),Xn=Hn("/update.php").catcher(e=>Fe.error(e)),Jn=Hn("/webGui/include/UpdateDNS.php").catcher(e=>Fe.error(e)),Zn=Hn("/plugins/dynamix.my.servers/include/unraid-api.php").catcher(e=>Fe.error(e)),ei=e=>qn.url("/ips/newaccount").formUrl(e).post(),ti=(e,t)=>qn.url(e).formUrl(t).post(),ri=e=>qn.url("/ips/validate").formUrl(e).post(),ni=e=>qn.url("/ips/troubleshoot").formUrl(e).post(),ii=e=>qn.url("/account/server/unregister").formUrl(e).post(),oi=e=>qn.url("/account/trial").formUrl(e).post(),ai=e=>qn.url("/ips/updateaccount").formUrl(e).post(),si=e=>qn.url("/account/license/transfer").formUrl(e).post();let ci=0;const li=e=>{setTimeout(()=>{Jn.formUrl({csrf_token:e}).post().res(e=>Fe.debug("[WebguiUpdateDns] %o",e)).catch(e=>Fe.error("[WebguiUpdateDns] %o",e))},500)},ui=e=>{e.preventDefault(),e.returnValue="",alert((void 0).$t("regWizPopUp.closingPopUpMayLeadToErrors"))},pi={openPopUp({commit:e,dispatch:t,state:r},n){if(Fe.debug("[openPopUp] %o",n||"focus existing pop-up"),r.popUpWindow)return r.popUpWindow.focus();const i=((e,t,r,n)=>{const i=void 0!==window.screenLeft?window.screenLeft:window.screenX,o=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,c=a/window.screen.availWidth>1?a/window.screen.availWidth:1,l=(a-r)/2/c+i,u=(s-n)/2/c+o,p=Object.entries({toolbar:"no",location:"yes",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:r/c,height:n/c,top:u,left:l}).reduce((e,t)=>e+`${t[0]}=${t[1]},`,"");return window.open(e,t,p)})(n.url,n.name,n.width,n.height),o=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,a=n.url.toString().includes("/preflight")?"#fff":"linear-gradient(to right, #E22828 0%, #ff8c2f 100%)";i.document.body.style.background=o?"#222":a;try{i.focus(),e("CHANGE_POP_UP_WINDOW",i),e("STATE_AT_OPEN",r.registered);const n=setInterval(()=>{r.popUpWindow||clearInterval(n),r.popUpWindow&&r.popUpWindow.closed&&(clearInterval(n),t("resetPopUp",{reloadWebGUI:!1}))},250);return window.onunload=()=>{r.popUpWindow&&!r.popUpWindow.closed&&r.popUpWindow.close()},!0}catch(e){return alert("Pop-up blocker detected.\nTo continue successfully please add this website to your browser's exeception list then refresh.")}},resetPopUp({commit:e,dispatch:t},r={reloadWebGUI:!0}){Fe.debug("[resetPopUp] %o",r),e("CHANGE_POP_UP_WINDOW",null),t("updateServerState"),r.reloadWebGUI&&t("reloadWebGUI")},closePopUp({dispatch:e,state:t},r={reloadWebGUI:!1}){Fe.debug("[closePopUp] %o",r),t.popUpWindow&&(t.popUpWindow.close(),e("resetPopUp",{reloadWebGUI:r.reloadWebGUI}))},reloadWebGUI(){Fe.debug("[reloadWebGUI] %s","✨"),window.location.reload()},closePopUpFromPopUp({dispatch:e}){Fe.debug("[closePopUpFromPopUp] %o"),e("resetPopUp"),window.close()},sendDataPostMessageToServer({state:e}){const t="SignOut"===e.submissionFrom?{event:"MYSERVERS_UNREGISTER"}:{event:"REG_WIZARD",keyfile:e.keyfile,license:e.license,email:e.userEmail,apikey:e.apikey,avatar:e.avatar,username:e.username,guid:e.guid};Fe.debug("[sendDataPostMessageToServer] %o",t);try{return Te.postMessage(JSON.stringify(t),e.osGui?"*":e.site)}catch(e){return Oe||Fe.warn("[sendDataPostMessageToServer] !CAN_POST_MESSAGE",t),Fe.error("[sendDataPostMessageToServer] %o",e)}},requestUpdatedServerStateFromUpc({state:e}){Fe.debug("[requestUpdatedServerStateFromUpc]");try{return Te.postMessage(JSON.stringify({event:"SUCCESS_NEW_STATE"}),e.osGui?"*":e.site)}catch(e){return Oe||Fe.warn("[requestUpdatedServerStateFromUpc] !CAN_POST_MESSAGE",Oe),Fe.error("[requestUpdatedServerStateFromUpc] %o",e)}},receivePostMessage({commit:e,dispatch:t,getters:r,state:n},i={event:null}){if(!i.event)return void Fe.error("postMessage no event");Fe.debug("[receivePostMessage] payload.event %o",i.event);const[o,a]=Re(i.event.data);if(o)return;Fe.log("[receivePostMessage] payload.event.data.event %o",a.event);const s=a&&a.event&&["REQUEST_API_REPORT","API_EXECUTE_PINGBACK"].includes(a.event),c=i.event.origin;if(c.includes("extension://"))return void Fe.log("Skipping postMessage from browser extension",c);const l=c===ge,u=ve.includes(c),p=!!(a&&a.server&&a.server.site)&&c===a.server.site,d=c===n.site,f=!!(a&&a.server&&a.server.extraOrigins)&&a.server.extraOrigins.includes(c),h="SESSION"===a.event?p||f:d,m=s||l||u||h,g={"data.server.extraOrigins":a&&a.server?a.server.extraOrigins:"","data.server.site":a&&a.server?a.server.site:"","payload.event.origin":c,"state.site":n.site,pmOriginMatchesDataServerUrl:p,pmOriginMatchesStateSite:d,pmOriginIncludedInExtraOrigins:f,fromRegWiz:l,fromPurchase:u,fromWebGui:h,acceptDebugEvents:s,originAllowed:m};if(!m)return Fe.error("[receivePostMessage] ❌ postMessage origin not allowed ❌ %o",g),e("SET_POST_MESSAGE_ERROR",g),void e("SET_RAW_SERVER_STATE",a.server);Fe.debug("[receivePostMessage] originAllowed %o",g);const v=e=>{try{return Fe.log("[receivePostMessage.sendBackPostMessage] %o",e.event),i.event.source.postMessage(JSON.stringify(e),n.osGui?"*":c)}catch(t){return Fe.error("[sendBackPostMessage.catch] %o",{error:t,message:e})}},b=async t=>{if(!t)return Fe.error("[installKey] missing license data: %s",t);let r=t.split("/");if(r=r[r.length-1].slice(0,-4).toUpperCase(),r===n.state)return v({event:"LICENSE_PINGBACK",message:"Failed to license new key – duplicate install detected",license:t,success:!1}),Fe.error("[installKey] duplicate install detected",{state:n.state,keyType:r});Fe.debug("[receivePostMessage.installKey] %o",t);return await Qn.query({url:t}).get().res(r=>{Fe.debug("[receivePostMessage.installKey] SUCCESS %o",r),setTimeout(()=>{li(n.csrf)},1e3),v({event:"LICENSE_PINGBACK",message:"New license key installed",license:t,success:!0}),e("SET_PIRATE_KEY",!1)}).catch(e=>{Fe.error("[receivePostMessage.installKey] FAILED: "+t,e),v({event:"LICENSE_PINGBACK",message:"Failed to license new key",license:t,success:!1})})},y=async()=>{Fe.debug("[receivePostMessage.signOutUnraidNet] 👋");return await Xn.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",apikey:"",avatar:"",email:"",username:"",wanaccess:"no",...!n.hideMyServers&&{"#command":"/plugins/dynamix.my.servers/scripts/.nginx_reload"}}).post().res(t=>{Fe.debug("[receivePostMessage.signOutUnraidNet] WebguiUpdate.res %o",t),e("SET_SIGN_OUT_TRIGGERED",!0),v({event:"ACCOUNT_PINGBACK",success:!0,type:"signOut",webGuiPathname:window.location.pathname})}).catch(e=>{Fe.error(`[receivePostMessage.signOutUnraidNet] WebguiUpdate.catch Sign out ${n.servername} from Unraid.net failed 😢 %o`,e),v({event:"ACCOUNT_PINGBACK",success:!1,type:"signOut",webGuiPathname:window.location.pathname})})};switch(a.event){case"SESSION":Fe.debug("[receivePostMessage] SESSION"),e("SET_FULL_SERVER_STATE",a.server),e("SET_RAW_SERVER_STATE",a.server),he.mergeLocaleMessage(a.locale,a.messages),he.locale=a.locale,Fe.debug(`[receivePostMessage] SESSION ${he.locale} locale & messages set`,he.messages);break;case"PREFLIGHT_REQUEST":if(Fe.debug("[receivePostMessage] PREFLIGHT_REQUEST"),!r.allowedOrigins.includes(c)){Fe.error("[🙅‍♂️ ACCESS DENIED]");break}try{t("updateServerState").then(e=>{Fe.debug("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.then %o",{res:e,"getters.server":r.server}),v({event:"SESSION",server:{...r.server},locale:he.locale,messages:{...he.messages[he.locale]}})}).catch(e=>{Fe.error("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.catch %o",e),v({event:"DELIVER_NEW_STATE",success:!1})})}catch(e){Fe.error("[receivePostMessage] PREFLIGHT_REQUEST.updateServerState.trycatch %o",e),v({event:"DELIVER_NEW_STATE",success:!1})}break;case"LICENSE_PINGBACK":Fe.debug("[receivePostMessage] LICENSE_PINGBACK"),e("LICENSE_PINGBACK",a);break;case"ACCOUNT_PINGBACK":Fe.debug("[receivePostMessage] ACCOUNT_PINGBACK"),e("ACCOUNT_PINGBACK",a);break;case"DELIVER_NEW_STATE":Fe.debug("[receivePostMessage] DELIVER_NEW_STATE %o",a);const i=!!n.license,o=n.licenseAction&&!n.licenseAction.success,s=n.state,l=a&&a.state?a.state:null,u=s===l;if(Fe.debug("[receivePostMessage] DELIVER_NEW_STATE %o",{keyToInstall:i,failedKeyInstall:o,oldState:s,newState:l,potentiallyStaleState:u,deliverNewStateRetryCounter:ci}),o){e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}if(i&&u&&ci<6){setTimeout(()=>{Fe.debug("[potentiallyStaleState] %o",{potentiallyStaleState:u}),Fe.debug("[deliverNewStateRetryCounter] %o",{deliverNewStateRetryCounter:ci}),t("requestUpdatedServerStateFromUpc"),ci+=1},350*ci);break}if(i&&u&&ci>=6){e("SET_APP_ERROR_MESSAGE",`Failed to receive latest server info${n.licenseAction&&n.licenseAction.success?" after successful key install":""}. Please close this pop-up and refresh the webGUI.`),e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}e("SET_FULL_SERVER_STATE",a),e("SET_RAW_SERVER_STATE",a),e("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now()),ci=0;break;case"KEY_PURCHASE":Fe.debug("[receivePostMessage] KEY_PURCHASE"),b(a.license),a.oem&&y();break;case"MYSERVERS_UNREGISTER":Fe.debug("[receivePostMessage] MYSERVERS_UNREGISTER WebguiUpdate"),y();break;case"REG_WIZARD":Fe.debug("[receivePostMessage] REG_WIZARD %o",a),a.license&&b(a.license),Fe.debug("[receivePostMessage] REG_WIZARD WebguiUpdate %o",a),Xn.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",regWizTime:`${Date.now()}_${a.guid}`,...a.apikey&&{apikey:a.apikey},...a.email&&{email:a.email},...a.username&&{username:a.username},...a.avatar&&{avatar:a.avatar}}).post().res(r=>{Fe.debug("[receivePostMessage] REG_WIZARD WebguiUpdate.res %o",r),a.license||li(n.csrf),e("SET_SIGN_OUT_TRIGGERED",!1);let i=0;const o=setInterval(()=>{Fe.debug("[receivePostMessage] REG_WIZARD WebguiUpdate.res intervalForUpdatedState"),i+=1;try{t("updateServerState").then(e=>{Fe.debug("[receivePostMessage] REG_WIZARD WebguiUpdate.res intervalForUpdatedState updatedState %o",{updatedState:e,countIntervalRuns:i}),(!n.hideMyServers&&e.avatar&&e.username&&"root"!==e.username||n.hideMyServers&&i>=4)&&(clearInterval(o),v({event:"ACCOUNT_PINGBACK",success:!0,type:"signIn",webGuiPathname:window.location.pathname,res:e}))}).catch(e=>{Fe.error("[receivePostMessage] REG_WIZARD WebguiUpdate.re intervalForUpdatedState error %o",{error:e,countIntervalRuns:i}),clearInterval(o),v({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})})}catch(e){Fe.error("[receivePostMessage] REG_WIZARD WebguiUpdate catchError %o",{catchError:e,countIntervalRuns:i}),clearInterval(o),v({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})}},250)}).catch(e=>{Fe.error("[WebguiUpdate] %o",e),v({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})});break;case"RELOAD":Fe.debug("[receivePostMessage] RELOAD"),window.location.reload();break;case"SUCCESS_NEW_STATE":Fe.debug("[receivePostMessage] SUCCESS_NEW_STATE");try{t("updateServerState").then(e=>{Fe.debug("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.then"),v({...e,event:"DELIVER_NEW_STATE",success:!0})}).catch(e=>{Fe.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.catch %o",e),v({event:"DELIVER_NEW_STATE",success:!1})})}catch(e){Fe.error("[receivePostMessage] SUCCESS_NEW_STATE.updateServerState.trycatch %o",e),v({event:"DELIVER_NEW_STATE",success:!1})}break;case"REDIRECT_MAIN":Fe.debug("[receivePostMessage] REDIRECT_MAIN"),window.location.href="/Main";break;case"REQUEST_API_REPORT":const p=n.apiVersion&&Ge()(n.apiVersion,"2.43.3")?"-vv":"-v";Fe.debug("[receivePostMessage] REQUEST_API_REPORT %o",{apiVersion:n.apiVersion,params:p});try{Zn.formUrl({csrf_token:n.csrf,command:"report",params:p}).post().json(t=>{Fe.debug("👼 [receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.json %o",t),e("SET_API_EXECUTE_RESPONSE",t.result),v({event:"API_EXECUTE_PINGBACK",result:t.result})}).catch(e=>{Fe.error("[receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.catch failed to execute `unraid-api` report 😢 %o",e),v({event:"API_EXECUTE_PINGBACK",error:e})})}catch(e){Fe.error("[receivePostMessage] REQUEST_API_REPORT WebguiUnraidApiCommand.catch failed to execute `unraid-api` report 😢 %o",e),v({event:"API_EXECUTE_PINGBACK",error:e})}break;case"API_EXECUTE_PINGBACK":Fe.debug("[receivePostMessage] API_EXECUTE_PINGBACK"),a&&a.result&&e("SET_API_EXECUTE_RESPONSE",a.result);break;case"YARG_MATEY":Fe.debug("[receivePostMessage] YARG_MATEY"),e("SET_PIRATE_KEY",a.ts);break;default:Fe.debug("[receivePostMessage] UNHANDLED_MESSAGE")}},setStateFromWebComponentProp({commit:e},t){Fe.debug("[setStateFromWebComponentProp]");const[r,n]=Re(decodeURIComponent(t));return r?Fe.error("[setStateFromWebComponentProp] %o",t):e("SET_FULL_SERVER_STATE",n)},async updateServerState({commit:e,dispatch:t,getters:r,state:n}){if(Fe.debug("[updateServerState]"),ge===window.location.origin)return Fe.debug("[SKIPPED] updateServerState()");Fe.debug("[updateServerState]",{"state.signOutTriggered":n.signOutTriggered,"state.hideMyServers":n.hideMyServers,"!state.graphOnline":!n.graphOnline,"!getters.validApiKeyLength":!r.validApiKeyLength,"!getters.validApiKeyForUpc":!r.validApiKeyForUpc}),!n.signOutTriggered&&!n.hideMyServers&&n.graphOnline&&r.validApiKeyLength&&r.validApiKeyForUpc?(Fe.debug("[updateServerState] via serverStateFromApi"),await t("serverStateFromApi")):(Fe.debug("[updateServerState] via ",r.statePhpPath),await Kn.url(r.statePhpPath).get().json().then(t=>t?e("SET_FULL_SERVER_STATE",t):Fe.error("[updateUpcFromStatePhp] no `res` skipping `SET_FULL_SERVER_STATE`")).catch(e=>{Fe.error("[updateUpcFromStatePhp WebguiState.catch] %o",e),(e.toString().includes("Unexpected token")||e.toString().includes("503"))&&(window.location.href="/")}));const i=r.server;return Fe.debug("[updateServerState] newState %o",i),i},async validateGuid({commit:e,getters:t,state:r}){await new Promise((n,i)=>{if(r.guidValidationRunning)return Fe.debug("[validateGuid] already validating");e("CHANGE_GUID_VALIDATION_RUNNING",!0);const o=r.regWizTime?r.regWizTime.split("_")[1]:null,a=!!o&&o===r.guid;Fe.debug("[validateGuid] %o",{guid:r.guid,regGuid:r.regGuid,regWizTimeGuid:o,previouslyRegistered:a});let s="GUID Invalid";if(!r.guid||r.guid===ke)return Fe.debug(`[validateGuid] ${s} %o`,{"!state.guid":!r.guid,GUID_NOT_RECEIVED:ke}),s+=": not present",e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1),e("SET_STATE","EBLACKLISTED1"),e("SET_APP_ERROR_MESSAGE",s),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),n(!1);if(a&&!t.stateData.error)return Fe.debug("[validateGuid] previouslyRegistered %s",r.guid),e("CHANGE_GUID_REGISTERED",!0),e("CHANGE_GUID_VALID",!0),e("CHANGE_GUID_FORUMACCOUNT",!0),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),n(!0);const c=r.guid.includes("000000000000");if(r.guid&&r.guid!==ke&&(c||27!==r.guid.length))return c?(s+=": Too many consecutive zeros",e("SET_STATE","EBLACKLISTED2")):(s+=": Not long enough",e("SET_STATE","EBLACKLISTED1")),e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1),e("SET_APP_ERROR_MESSAGE",s),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1),i(new Error(s));r.regGuid||Fe.warn("[validateGuid] state.regGuid empty. Getting regGuid from state.regWizTime.");const l=r.regGuid||o||"";e("CHANGE_GUID_FOR_VALIDATION","EGUID"===r.state?l:r.guid),e("CHANGE_GUID_BLACKLISTED",null);try{const t=qn.url("/validate/guid").formUrl({guid:r.guidForValidation}).post().forbidden(t=>{let n;const[i,o]=Re(t.message);o&&!i||!t.message||(n=t.message),o&&o.error&&(n=o.error),Fe.error("[validateGuid] POST.forbidden %o",n),n.includes("blacklisted")?(e("CHANGE_GUID_BLACKLISTED",!0),"EGUID"!==r.state?(e("SET_STATE","EBLACKLISTED"),e("SET_APP_ERROR_MESSAGE",n)):Fe.warn("[validateGuid] skip EBLACKLISTED state overwrite")):n.includes("invalid GUID")&&("EGUID"!==r.state?(e("SET_STATE","EBLACKLISTED1"),e("SET_APP_ERROR_MESSAGE",n)):Fe.warn("[validateGuid] skip EBLACKLISTED state overwrite")),e("CHANGE_GUID_VALID",!1),e("CHANGE_REPLACEABLE",!1)}).json(t=>{Fe.debug("[validateGuid] POST.json %o",t),t.registered&&e("CHANGE_GUID_REGISTERED",t.registered),e("CHANGE_GUID_FORUMACCOUNT",t.forumaccount||!1),e("CHANGE_GUID_VALID",!0),e("CHANGE_REPLACEABLE",t.replaceable)}).catch(t=>{Fe.error("[validateGuid] POST.catch %o",t),e("SET_APP_ERROR_MESSAGE",t.message),i(new Error(t))}).finally(()=>{Fe.debug("[validateGuid] POST.finally"),e("CHANGE_GUID_VALIDATION_RUNNING",!1),e("SET_LOADING_STATE",!1)});return n(t)}catch(t){return Fe.error("[validateGuid] try/catch %o",t),e("SET_APP_ERROR_MESSAGE",t),e("CHANGE_GUID_VALIDATION_RUNNING",!1),i(new Error(t))}})},async startTrial({commit:e,state:t}){Fe.debug("[startTrial]"),e("SET_LOADING_STATE","Fetching trial…"),window.addEventListener("beforeunload",ui),t.isLaunchpadOpen||e("SET_IS_LAUNCHPAD_OPEN",!1),await i.startTrial({timestamp:Math.floor((new Date).getTime()/1e3),guid:t.guid}).json().then(t=>{e("SET_LOADING_STATE","Installing trial…"),Qn.query({url:t.license}).get().res(t=>{Fe.debug("[KeyServer.startTrial.WebguiInstallKey] SUCCESS %o",t),setTimeout(()=>{e("SET_LOADING_STATE","Verifying trial install…"),setTimeout(()=>{e("SET_LOADING_STATE","Reloading webgui…"),sessionStorage.setItem("showPromoPostTrialInstall",Date.now()),e("SET_PIRATE_KEY",!1),window.removeEventListener("beforeunload",ui),window.location.reload()},4e3)},1500)}).catch(r=>{Fe.error("[KeyServer.startTrial.WebguiInstallKey.catch] FAILED: "+t,r);const[n,i]=Re(r.message);e("SET_APP_ERROR_MESSAGE",i?i.errorMessage?i.errorMessage:i.error:r),e("SET_LOADING_STATE",!1)})}).catch(t=>{Fe.error("[KeyServer.startTrial.catch] FAILED",t);const[r,n]=Re(t.message);e("SET_APP_ERROR_MESSAGE",n?n.errorMessage?n.errorMessage:n.error:t),e("SET_LOADING_STATE",!1)})},togglePromo({commit:e,state:t}){Fe.debug("[togglePromo]");const r="unraid-promo";if(!document.getElementsByTagName(r).length){const e=document.getElementsByTagName("body")[0],t=document.createElement(r);e.appendChild(t)}e("SET_IS_LAUNCHPAD_OPEN",!1),e("SET_IS_PROMO_OPEN",!t.isPromoOpen)},jumpToUpc({commit:e}){window.scrollTo({top:0,behavior:"smooth"}),e("TRIGGER_UPC",!0),setTimeout(()=>{e("TRIGGER_UPC",!1)},500)},async getWanIp({commit:e,state:t}){if(Fe.debug("[getWanIp]"),t.wanip)return Fe.debug("[getWanIp] SKIPPED",t.wanip);try{return e("SET_WANIP",await Yn.get().text())}catch(e){return Fe.error("[getWanIp] Unable to get WAN IP")}},async executeUnraidApi({commit:e,state:t},r={command:"",param1:null}){Fe.debug("[executeUnraidApi]",r);const{command:n,param1:i}=r;"start"===n&&e("SET_MY_SERVERS_LOADING",!0);return await Zn.formUrl({csrf_token:t.csrf,command:n,param1:i}).post().json(e=>{Fe.debug("👼 [executeUnraidApi] json %o",e)}).catch(e=>{Fe.error(`[executeUnraidApi] catch failed to execute unraid-api ${n} 😢 %o`,e)})},fetchServers:async e=>{Fe.debug("[fetchServers]"),e.commit("SET_MY_SERVERS_LOADING",!0);const t=await In(e).query({query:Tt`query initialGetServers { servers { name guid @@ -41,7 +41,7 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else username } } - }`});je.debug("[fetchServers] response %o",t);const{data:r}=t;r&&(r.servers.length>1&&e.dispatch("getWanIp"),e.commit("SET_GRAPH_ONLINE",!0),e.commit("SET_MY_SERVERS",r.servers),e.commit("SET_MY_SERVERS_LOADING",!1)),je.debug("[fetchServers] getServers subscription %o",{skip:e.state.graphReconnected}),e.state.graphReconnected||Tn(e).subscribe({query:Ot`subscription getServers { + }`});Fe.debug("[fetchServers] response %o",t);const{data:r}=t;r&&(r.servers.length>1&&e.dispatch("getWanIp"),e.commit("SET_GRAPH_ONLINE",!0),e.commit("SET_MY_SERVERS",r.servers),e.commit("SET_MY_SERVERS_LOADING",!1)),Fe.debug("[fetchServers] getServers subscription %o",{skip:e.state.graphReconnected}),e.state.graphReconnected||In(e).subscribe({query:Tt`subscription getServers { servers { name guid @@ -56,7 +56,7 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else username } } - }`}).subscribe({next(t){je.debug("[new subscription data] %o",t),e.state.graphOnline||e.commit("SET_GRAPH_ONLINE",!0),e.commit("SET_MY_SERVERS",t.data.servers),e.commit("SET_MY_SERVERS_LOADING",!1)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)})},serverStateFromApi:async e=>{je.debug("[serverStateFromApi] %o",{apiVersion:e.state.apiVersion,">=2.41.1":Ve()(e.state.apiVersion,"2.41.1"),">=2.35.0":Ve()(e.state.apiVersion,"2.35.0"),">2.27.0":It()(e.state.apiVersion,"2.27.0"),"<=2.27.0":Ee()(e.state.apiVersion,"2.27.0")});const t=Ot`query serverState { + }`}).subscribe({next(t){Fe.debug("[new subscription data] %o",t),e.state.graphOnline||e.commit("SET_GRAPH_ONLINE",!0),e.commit("SET_MY_SERVERS",t.data.servers),e.commit("SET_MY_SERVERS_LOADING",!1)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)})},serverStateFromApi:async e=>{Fe.debug("[serverStateFromApi] %o",{apiVersion:e.state.apiVersion,">=2.41.1":Ge()(e.state.apiVersion,"2.41.1"),">=2.35.0":Ge()(e.state.apiVersion,"2.35.0"),">2.27.0":At()(e.state.apiVersion,"2.27.0"),"<=2.27.0":Ct()(e.state.apiVersion,"2.27.0")});const t=Tt`query serverState { owner { username avatar @@ -72,7 +72,7 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else product } registration { - ${Ve()(e.state.apiVersion,"2.35.0")?"expiration":""} + ${Ge()(e.state.apiVersion,"2.35.0")?"expiration":""} keyFile { contents } @@ -81,36 +81,43 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else vars { regGen regState - ${Ee()(e.state.apiVersion,"2.27.0")?"configError":""} - ${Ee()(e.state.apiVersion,"2.27.0")?"configValid":""} + ${Ct()(e.state.apiVersion,"2.27.0")?"configError":""} + ${Ct()(e.state.apiVersion,"2.27.0")?"configValid":""} } - ${It()(e.state.apiVersion,"2.27.0")?"config { error valid }":""} - ${Ve()(e.state.apiVersion,"2.41.1")?"\n cloud {\n error\n apiKey {\n valid\n error\n }\n relay {\n status\n error\n }\n mothership {\n status\n error\n }\n }":""} - }`,r=await Tn(e).query({errorPolicy:"all",query:t});return je.debug("[🪐 serverStateFromApi] response %o",r,e),Ve()(e.state.apiVersion,"2.41.1")&&e.state.cloud&&e.state.cloud.error&&e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!0),e.commit("SET_MY_SERVERS_LOADING",!1),e.commit("SET_FULL_SERVER_STATE",((e,t)=>{const{data:r}=t;if(!r)return je.error("[🪐 serverStateFromApi] response %o",t);const n={...r.owner&&"root"!==r.owner.username&&{avatar:r.owner.avatar,username:r.owner.username,registered:!0},...e.state.signOutTriggered&&{username:"",avatar:"",registered:!1},servername:r.info&&r.info.os?r.info.os.hostname:null,guid:r.flash?r.flash.guid:null,keyfile:r.registration&&r.registration.keyFile?r.registration.keyFile.contents:null,flashProduct:r.flash?r.flash.product:null,flashvendor:r.flash?r.flash.vendor:null,sendCrashInfo:r.crashReportingEnabled,reggen:r.vars?r.vars.regGen:null,state:r.vars?r.vars.regState:null,config:r.config?r.config:{error:r.vars?r.vars.configError:null,valid:!r.vars||r.vars.configValid},expiretime:r.registration&&r.registration.expiration?r.registration.expiration:0,...r.cloud&&{cloud:r.cloud}};return je.debug("[🪐 serverStateFromApi] mutated response %o",n),n})(e,r)),In(e,r),je.debug("[🪐 serverStateFromApi] subscriptions %o",{skip:e.state.graphReconnected}),e.state.graphReconnected||(je.debug("[🪐 serverStateFromApi] serverVarsSub"),Tn(e).subscribe({query:Ot`subscription serverVarsSub { + ${At()(e.state.apiVersion,"2.27.0")?"config { error valid }":""} + ${Ge()(e.state.apiVersion,"2.41.1")?"\n cloud {\n error\n apiKey {\n valid\n error\n }\n relay {\n status\n error\n }\n mothership {\n status\n error\n }\n }":""} + }`,r=await In(e).query({errorPolicy:"all",query:t});return Fe.debug("[🪐 serverStateFromApi] response %o",r,e),Ge()(e.state.apiVersion,"2.41.1")&&e.state.cloud&&e.state.cloud.error&&e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!0),e.commit("SET_MY_SERVERS_LOADING",!1),e.commit("SET_FULL_SERVER_STATE",((e,t)=>{const{data:r}=t;if(!r)return Fe.error("[🪐 serverStateFromApi] response %o",t);const n={...r.owner&&"root"!==r.owner.username&&{avatar:r.owner.avatar,username:r.owner.username,registered:!0},...e.state.signOutTriggered&&{username:"",avatar:"",registered:!1},servername:r.info&&r.info.os?r.info.os.hostname:null,guid:r.flash?r.flash.guid:null,keyfile:r.registration&&r.registration.keyFile?r.registration.keyFile.contents:null,flashProduct:r.flash?r.flash.product:null,flashvendor:r.flash?r.flash.vendor:null,sendCrashInfo:r.crashReportingEnabled,reggen:r.vars?r.vars.regGen:null,state:r.vars?r.vars.regState:null,config:r.config?r.config:{error:r.vars?r.vars.configError:null,valid:!r.vars||r.vars.configValid},expiretime:r.registration&&r.registration.expiration?r.registration.expiration:0,...r.cloud&&{cloud:r.cloud}};return Fe.debug("[🪐 serverStateFromApi] mutated response %o",n),n})(e,r)),An(e,r),Fe.debug("[🪐 serverStateFromApi] subscriptions %o",{skip:e.state.graphReconnected}),e.state.graphReconnected||(Fe.debug("[🪐 serverStateFromApi] serverVarsSub"),In(e).subscribe({query:Tt`subscription serverVarsSub { vars { regGen regState - ${Ee()(e.state.apiVersion,"2.27.0")?"configError":""} - ${Ee()(e.state.apiVersion,"2.27.0")?"configValid":""} + ${Ct()(e.state.apiVersion,"2.27.0")?"configError":""} + ${Ct()(e.state.apiVersion,"2.27.0")?"configValid":""} } - }`}).subscribe({next(t){je.debug("[🪐 serverStateFromApi] serverVarsSub res %o",t),e.commit("SET_STATE",t.data.vars.regState)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}),je.debug("[🪐 serverStateFromApi] serverOwnerSub"),Tn(e).subscribe({query:Ot`subscription serverOwnerSub { + }`}).subscribe({next(t){Fe.debug("[🪐 serverStateFromApi] serverVarsSub res %o",t),e.commit("SET_STATE",t.data.vars.regState)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}),Fe.debug("[🪐 serverStateFromApi] serverOwnerSub"),In(e).subscribe({query:Tt`subscription serverOwnerSub { owner { username avatar } - }`}).subscribe({next(t){je.debug("[🪐 serverStateFromApi] serverOwnerSub res %o",t),In(e,t),t&&t.data&&t.data.owner&&"root"!==t.data.owner.username&&e.commit("SET_OWNER",t.data.owner)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}),It()(e.state.apiVersion,"2.27.0")&&(je.debug("[🪐 serverStateFromApi] serverConfigSub"),Tn(e).subscribe({query:Ot`subscription serverConfigSub { + }`}).subscribe({next(t){Fe.debug("[🪐 serverStateFromApi] serverOwnerSub res %o",t),An(e,t),t&&t.data&&t.data.owner&&"root"!==t.data.owner.username&&e.commit("SET_OWNER",t.data.owner)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}),At()(e.state.apiVersion,"2.27.0")&&(Fe.debug("[🪐 serverStateFromApi] serverConfigSub"),In(e).subscribe({query:Tt`subscription serverConfigSub { config { error valid } - }`}).subscribe({next(t){je.debug("[🪐 serverStateFromApi] serverConfigSub res %o",t),e.commit("SET_CONFIG",t.data.config)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}),je.debug("[🪐 serverStateFromApi] serverRegistrationSub"),Tn(e).subscribe({query:Ot`subscription serverRegistrationSub { + }`}).subscribe({next(t){Fe.debug("[🪐 serverStateFromApi] serverConfigSub res %o",t),e.commit("SET_CONFIG",t.data.config)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}),Fe.debug("[🪐 serverStateFromApi] serverRegistrationSub"),In(e).subscribe({query:Tt`subscription serverRegistrationSub { registration { - ${Ve()(e.state.apiVersion,"2.35.0")?"expiration":""} + ${Ge()(e.state.apiVersion,"2.35.0")?"expiration":""} keyFile { contents } } - }`}).subscribe({next(t){je.debug("[🪐 serverStateFromApi] serverRegistrationSub res %o",t),e.commit("SET_REGISTRATION_SUB",t.data.registration)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}))),je.debug("[🪐 serverStateFromApi] DONE %o",r.data),r.data},stopGraphqlClient:(e,t)=>(je.debug("[stopGraphqlClient] clients %o",{clients:kn,apikey:t}),Object.keys(kn).includes(t)?(je.debug("[stopGraphqlClient] found existing client & stopping it %o",kn[t]),kn[t].stop()):je.debug("[stopGraphqlClient] client does not exist for apikey %o",t))};o.default.use(b.a),o.default.config.devtools=!0;var pi=new b.a.Store({state:xe,getters:Ne,mutations:Fe,actions:ui});var di=v({i18n:he,store:pi,name:"Authed",props:["propRegistered"],data:()=>({regChanged:!1,popUpClosedTimer:null}),computed:{...Object(b.e)(["state","registered","isPopUpOpen","signOutPayload","wizardWindow"]),...Object(b.c)(["stateData"]),computedReg(){return null===this.registered?!!this.propRegistered:this.registered},buttonPayload(){return this.stateData.error?this.wizardWindow:this.computedReg?this.signOutPayload:this.wizardWindow},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.computedReg?this.$t("signOut"):this.$t("signIn")},buttonTitle(){return this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},watch:{isPopUpOpen(e){!e&&this.regChanged&&(je.debug("[REGISTERED CHANGED] 🔥 reload webGUI settings"),window.location.reload())},registered(e,t){null!==t&&e!==this.propRegistered&&(je.debug("[REGISTERED CHANGED]",{newVal:e,oldVal:t}),this.regChanged=!0,this.isPopUpOpen||(je.debug("[REGISTERED CHANGED] 🔥🔥 reload webGUI settings"),window.location.reload()))}},methods:{...Object(b.b)(["closePopUp","openPopUp"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[r("div",[r("button",{attrs:{type:"button",title:e.buttonTitle},on:{click:function(t){return e.openPopUp(e.buttonPayload)}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)])}),[],!1,(function(e){var t=r("dfd4");t.__inject__&&t.__inject__(e)}),"5e5ba4da",null,!0).exports,fi=(v({name:"keyline",props:{color:{type:String,default:"grey"}},computed:{computedClass(){return"gradient"===this.color?"h-2px bg-gradient-r-red-orange":"h-1px bg-grey"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("hr",{staticClass:"w-full shadow-none border-none rounded-none",class:e.computedClass})}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{staticClass:"unraid_sc_loader",style:e.styles,attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97",height:e.height+"px",role:"img"}},[r("title",[e._v(e._s(e.title))]),r("desc",[e._v("Unraid logo animating with a wave like effect")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{staticClass:"unraid_sc_loader_9",attrs:{d:"m70,19.24zm57,0l6.54,0l0,38.49l-6.54,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_8",attrs:{d:"m70,19.24zm47.65,11.9l-6.55,0l0,-23.79l6.55,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_7",attrs:{d:"m70,19.24zm31.77,-4.54l-6.54,0l0,-14.7l6.54,0l0,14.7z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_6",attrs:{d:"m70,19.24zm15.9,11.9l-6.54,0l0,-23.79l6.54,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_5",attrs:{d:"m63.49,19.24l6.51,0l0,38.49l-6.51,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_4",attrs:{d:"m70,19.24zm-22.38,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_3",attrs:{d:"m70,19.24zm-38.26,43.03l6.55,0l0,14.73l-6.55,0l0,-14.73z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_2",attrs:{d:"m70,19.24zm-54.13,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_1",attrs:{d:"m70,19.24zm-63.46,38.49l-6.54,0l0,-38.49l6.54,0l0,38.49z",fill:"url(#"+e.random+")"}})])});var hi=v({name:"loading",props:{height:{type:Number,default:64},styles:{type:Object,default:()=>({})},gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"},title:{type:String,default:"Loading"}},data:()=>({random:Math.random().toString(36).substring(7)})},fi,[],!1,(function(e){var t=r("ef7a");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,mi=(v({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 222.36 39.04"}},[r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"47.53",y1:"79.1",x2:"170.71",y2:"-44.08",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("title",[e._v("Unraid Logo")]),r("path",{attrs:{d:"M146.7,29.47H135l-3,9h-6.49L138.93,0h8l13.41,38.49h-7.09L142.62,6.93l-5.83,16.88h8ZM29.69,0V25.4c0,8.91-5.77,13.64-14.9,13.64S0,34.31,0,25.4V0H6.54V25.4c0,5.17,3.19,7.92,8.25,7.92s8.36-2.75,8.36-7.92V0ZM50.86,12v26.5H44.31V0h6.11l17,26.5V0H74V38.49H67.9ZM171.29,0h6.54V38.49h-6.54Zm51.07,24.69c0,9-5.88,13.8-15.17,13.8H192.67V0H207.3c9.18,0,15.06,4.78,15.06,13.8ZM215.82,13.8c0-5.28-3.3-8.14-8.52-8.14h-8.08V32.77h8c5.33,0,8.63-2.8,8.63-8.08ZM108.31,23.92c4.34-1.6,6.93-5.28,6.93-11.55C115.24,3.68,110.18,0,102.48,0H88.84V38.49h6.55V5.66h6.87c3.8,0,6.21,1.82,6.21,6.71s-2.41,6.76-6.21,6.76H98.88l9.21,19.36h7.53Z",fill:"url(#"+e.random+")"}})])}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97"}},[r("title",[e._v("unraid-mark")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{attrs:{fill:"url(#"+e.random+")",d:"M63.49,19.24H70V57.73H63.49ZM6.54,57.73H0V19.24H6.54Zm25.2,4.54h6.55V77H31.74ZM15.87,45.84h6.54V69.62H15.87Zm31.75,0h6.54V69.62H47.62ZM127,19.24h6.54V57.73H127ZM101.77,14.7H95.23V0h6.54Zm15.88,16.44H111.1V7.35h6.55Zm-31.75,0H79.36V7.35H85.9Z"}})])}),gi=v({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},mi,[],!1,null,null,null,!0).exports,vi=r("5d74"),bi=r.n(vi);o.default.use(bi.a,{url:(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX?Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX:"")+"/assets/svg/sprite.svg",class:"svg-icon"});var yi=(v({name:"svg-icon",props:{symbol:{type:String,required:!0},symbolClass:String}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("svg",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"unraid-svg-icon",class:e.symbolClass,attrs:{symbol:e.symbol,title:e.symbol,role:"presentation"}})}),[],!1,(function(e){var t=r("39a1");t.__inject__&&t.__inject__(e)}),"3b60bb54",null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-center w-full"},[r("header",[r("h2",{staticClass:"text-24px md:text-30px"},[r("span",{domProps:{innerHTML:e._s(e.computedHeading)}}),e.showTrialWelcome?r("ui-beta",{staticClass:"title-beta relative ml-4px"}):e._e()],1),r("div",{staticClass:"text-14px opacity-90 mt-12px mx-auto prose",class:{"text-center":e.stateData.messageCenter||e.showTrialWelcome,"text-left":!e.stateData.messageCenter}},[r("div",{domProps:{innerHTML:e._s(e.computedSubheading)}}),e.showExpiretime?r("HelperTimeConvert",{staticClass:"italic text-center font-semibold mt-16px"}):e._e()],1)]),r("div",{staticClass:"ActionRequired flex flex-col justify-center mt-16px"},[e.isPopUpOpen?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("backToPopUp")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{text:e.$t("closePopUp")},on:{"btn-click":function(t){return e.closePopUp()}}})]:[e.hideMyServers&&!e.apiVersion||!e.stateData.actions.includes("register")?e._e():[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignIn":null,text:e.$t("signIn")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),e.guidRegistered||e.forumaccount?e._e():r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignUp":null,text:e.$t("signUp")},on:{"btn-click":function(t){return e.openPopUp(e.signUpPayload)}}})],"TRIAL"===e.state&&e.hideMyServers&&!e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("upc.enhanceYourExperienceWithMyServers")},on:{"btn-click":function(t){return e.togglePromo()}}}):e._e(),e.stateData.actions.includes("startTrial")&&!e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("actions.startTrial")},on:{"btn-click":function(t){return e.startTrial()}}}):e._e(),e.hidePurchaseButtons?e._e():[e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.purchase")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.redeemWindow.url:null,text:"Redeem Activation Code"},on:{"btn-click":function(t){return e.openPopUp(e.redeemWindow)}}}):e._e(),e.stateData.actions.includes("upgrade")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.upgrade")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e()],e.stateData.actions.includes("replace")&&e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ReplaceKey":null,text:e.$t("actions.replace")},on:{"btn-click":function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")&&!e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("actions.replaceIneligible"),title:e.$t("stateData.EGUID.error.message.replacementIneligible"),disabled:""},on:{"btn-click":function(t){return e.niceTry()}}}):e._e(),e.stateData.actions.includes("recover")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"RecoverKey":null,text:e.$t("actions.recover")},on:{"btn-click":function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("continueTrial")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("regWizPopUp.continueTrial")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("extend")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ExtendTrial":null,text:e.$t("actions.extend")},on:{"btn-click":function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),e.stateData.actions.includes("close")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("continueToUnraid")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("signOut")&&e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignOut":null,text:e.$t("signOut")},on:{"btn-click":function(t){return e.openPopUp(e.signOutPayload)}}}):e._e()]],2)])}),wi=r("5a0c"),xi=r.n(wi);const _i=(e,t,r,n,i,o,a)=>({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a});var Ei=(e,t,r)=>{let n,i=xi()(e),o=xi()(t);if(i.isSame(o))return r?_i(0,0,0,0,0,0,!1):"";if(i.isAfter(o)){const e=i;i=o,o=e,n=!0}else n=!1;let a=o.year()-i.year(),s=o.month()-i.month(),c=o.date()-i.date(),l=o.hour()-i.hour(),u=o.minute()-i.minute(),p=o.second()-i.second();if(p<0&&(p=60+p,u-=1),u<0&&(u=60+u,l-=1),l<0&&(l=24+l,c-=1),c<0){const e=xi()(`${o.year()}-${o.month()+1}`).subtract(1,"M").daysInMonth();c=e{const r=e?xi()(parseInt(e,10)):xi()(),n=t?xi()(parseInt(t,10)):xi()();return Ei(r,n,!0)};var ki=(e,t)=>t?Si(e,""):Si("",e),Oi=r("23ad"),Ti=r.n(Oi);r("e072"),r("6210"),r("e5b7");const Ii=document.getElementsByTagName("unraid-user-profile")[0];if(Ii){const e=Ii.getAttribute("locale").slice(0,2);xi.a.locale(e),je.debug("[formatDate] dayjs.locale()",xi.a.locale())}xi.a.extend(Ti.a);var Ri=e=>xi()(parseInt(e,10)).format("llll"),Ai=v({data:()=>({parsedUptime:"",parsedExpireTime:""}),computed:{...Object(b.c)(["showExpiretime"]),...Object(b.e)(["state","expiretime","uptime"]),formattedUptime(){return Ri(this.uptime)},formattedExpireTime(){return Ri(this.expiretime)},timeCopy(){return this.showExpiretime?{title:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.date",{date:this.formattedExpireTime}):this.$t("upc.meta.trial.active.date",{date:this.formattedExpireTime}),text:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.timeDiff",{timeDiff:this.parsedExpireTime}):this.$t("upc.meta.trial.active.timeDiff",{timeDiff:this.parsedExpireTime})}:{title:this.$t("upc.meta.uptime.date",{date:this.formattedUptime}),text:this.$t("upc.meta.uptime.readable",{timeDiff:this.parsedUptime})}}},methods:{buildStringFromValues({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a,displaySecondsInStringReturn:s}){const c=[],l={year:this.$t("year"),years:this.$t("years"),month:this.$t("month"),months:this.$t("months"),day:this.$t("day"),days:this.$t("days"),hour:this.$t("hour"),hours:this.$t("hours"),minute:this.$t("minute"),minutes:this.$t("minutes"),second:this.$t("second"),seconds:this.$t("seconds"),firstDateWasLater:this.$t("ago"),delimiter:" "},u=(e,t)=>`${e} ${l[t+(1===e?"":"s")]}`;return e&&c.push(u(e,"year")),t&&c.push(u(t,"month")),r&&c.push(u(r,"day")),n&&c.push(u(n,"hour")),i&&c.push(u(i,"minute")),!o||(e||t||r||n||i)&&!s||c.push(u(o,"second")),a&&c.push(l.firstDateWasLater),c.join(l.delimiter)},runTimeDiff(){this.uptime&&(this.parsedUptime=this.buildStringFromValues(ki(this.uptime,!0))),this.expiretime&&(this.parsedExpireTime=this.buildStringFromValues(ki(this.expiretime,!1)))},letsGo(){this.runTimeDiff(),this.interval=setInterval(()=>{this.runTimeDiff()},1e3)}},created(){this.letsGo()},beforeDestroy(){clearInterval(this.interval)}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"select-all",attrs:{title:e.timeCopy.title}},[e._v(e._s(e.timeCopy.text))])}),[],!1,null,null,null,!0).exports,Ci=v({props:{hrefUrl:{type:[Boolean,URL],default:!1},routeName:{type:String},text:{type:String,required:!0}},computed:{}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.routeName?r("router-link",{attrs:{to:{name:e.routeName}}},[e._v(e._s(e.text))]):e.hrefUrl?r("a",{attrs:{href:e.hrefUrl}},[e._v(e._s(e.text))]):r("button",{on:{click:function(t){return e.$emit("btn-click")}}},[e._v(e._s(e.text))])}),[],!1,null,null,null,!0).exports,Pi=v({props:{colorClasses:{type:String,default:"text-grey-mid border-grey-mid"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"text-10px uppercase py-4px px-6px border-2 rounded-full",class:e.colorClasses},[e._v(e._s(e.$t("upc.myServers.beta")))])}),[],!1,null,null,null,!0).exports;var Ni=v({components:{HelperTimeConvert:Ai,UiButton:Ci,UiBeta:Pi},props:{hidePurchaseButtons:{type:Boolean,default:!1}},data:()=>({CAN_POST_MESSAGE:ke}),computed:{...Object(b.c)(["stateData","showExpiretime"]),...Object(b.e)(["apiVersion","extendTrialPayload","forumaccount","guidBlacklisted","guidRegistered","hideMyServers","isPopUpOpen","messages","purchaseWindow","recoverKeyPayload","redeemWindow","registered","replaceable","replaceKeyPayload","signInPayload","signOutPayload","signUpPayload","state","wizardWindow"]),showTrialWelcome(){return this.hidePurchaseButtons&&"ENOKEYFILE"!==this.state&&!this.state.error&&!this.hideMyServers&&!this.registered},computedHeading(){return this.showTrialWelcome?this.$t("upc.thankYouForInstallingMyServers"):this.stateData.heading?this.stateData.heading:this.stateData.error.heading},computedSubheading(){return this.showTrialWelcome?this.$t("upc.connectYourUnraidnetAccountToGetStarted"):this.stateData.message?this.stateData.message:this.stateData.error.message}},methods:{...Object(b.b)(["openPopUp","closePopUp","closePopUpFromPopUp","startTrial","togglePromo"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"]),niceTry(){alert("❌ Nice try you little sneak ❌")}}},yi,[],!1,(function(e){var t=r("2251");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Mi=v({i18n:he,store:pi,name:"Launchpad",props:["serverstate","webguiTranslations"],components:{UnraidLoading:hi,LaunchpadActionRequired:Ni},computed:{...Object(b.e)(["errorMessage","guid","hideMyServers","isLaunchpadOpen","isPopUpOpen","loading","registered"]),...Object(b.c)(["server"])},methods:{...Object(b.b)(["closePopUp","setStateFromWebComponentProp","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"])},watch:{signedOutWithKey(e,t){e&&!t&&this.validateGuid()},isPopUpOpen(e,t){!e&&t&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)}},created(){if(this.serverstate&&this.setStateFromWebComponentProp(this.serverstate),this.guid)this.validateGuid();else{const e=setInterval(()=>{this.guid&&(clearInterval(e),this.validateGuid())},250)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"absolute inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closeLaunchpad")},on:{click:function(t){return e.SET_IS_LAUNCHPAD_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("main",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-4xl mr-8px p-24px md:p-32px lg:px-40px shadow-md rounded-lg"},[e.loading?[r("UnraidLoading",{staticClass:"mx-auto",attrs:{height:64}}),"string"==typeof e.loading?r("h3",{staticClass:"text-20px italic mt-8px mb-0"},[e._v(e._s(e.loading))]):e._e()]:[r("LaunchpadActionRequired",{attrs:{hidePurchaseButtons:!e.hideMyServers&&!e.registered}}),e.errorMessage?r("p",{staticClass:"text-red font-semibold italic mt-16px mb-0",domProps:{innerHTML:e._s(e.errorMessage)}}):e._e()]],2)])],1)])}),[],!1,(function(e){var t=r("f153");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Di=r("99c0"),Ui=r.n(Di),Li=r("9f96"),ji=r.n(Li),Fi=r("56c3"),$i=r.n(Fi),Vi=r("381c"),Gi=r.n(Vi),zi=r("6788"),Bi=r.n(zi),Wi=v({name:"Feature",props:["title","copy","svg","center"]},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-left relative flex overflow-hidden p-8px",class:{"w-full sm:w-1/2":!e.center,"max-w-640px":e.center}},[e.center?e._e():r("span",{staticClass:"flex-shrink-0"},[e._t("default")],2),r("div",{staticClass:"inline-flex flex-col pl-4 mr-4",class:{"text-center":e.center}},[r("h3",{staticClass:"font-semibold",class:{"mt-0 mb-4px":e.copy,"my-0":!e.copy,"flex flex-row justify-center items-center":e.center}},[e.center?r("span",{staticClass:"flex-shrink-0 mr-8px"},[e._t("default")],2):e._e(),e._v(" "+e._s(e.title)+" ")]),e.copy?r("p",{staticClass:"opacity-90 py-0",class:{"px-8px":e.center},domProps:{innerHTML:e._s(e.copy)}}):e._e()])])}),[],!1,null,null,null,!0).exports;var Hi=v({i18n:he,store:pi,name:"Promo",components:{Feature:Wi,UnraidSvgUiRemoteAccess:Ui.a,UnraidSvgUiDiagnostics:ji.a,UnraidSvgUiUsb:$i.a,UnraidSvgUiKey:Gi.a,UnraidSvgUtilStar:Bi.a},computed:{...Object(b.e)(["isPromoOpen","devEnv"]),...Object(b.c)(["features"]),heading(){return this.$t("promoHeading").replace("(BETA)",`${he.tc("upc.myServers.beta")}`)}},methods:{...Object(b.d)(["SET_IS_PROMO_OPEN"]),installMyServers(e=""){try{const t="https://s3.amazonaws.com/dnld.lime-technology.com/unraid-api/"+(e||"dynamix.unraid.net.plg");je.debug("[installMyServers] %s",t),sessionStorage.setItem("clickedInstallMyServers",Date.now()),this.SET_IS_PROMO_OPEN(!1),openBox("/plugins/dynamix.plugin.manager/scripts/plugin&arg1=install&arg2="+t,this.$t("upc.installingMyServers"),600,900,!0)}catch(e){je.error(e)}}},watch:{isPromoOpen(e,t){t&&!e&&sessionStorage.removeItem("showPromoPostTrialInstall")},isLaunchpadOpen(e,t){t&&!e&&sessionStorage.getItem("showPromoPostTrialInstall")&&this.SET_IS_PROMO_OPEN(!1)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"fixed inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closePromo")},on:{click:function(t){return e.SET_IS_PROMO_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"Promo TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-800px mr-8px p-24px sm:p-32px lg:px-40px shadow-md rounded-lg"},[r("h2",{staticClass:"text-24px my-0",domProps:{innerHTML:e._s(e.heading)}}),r("div",{staticClass:"text-14px flex flex-wrap justify-center my-16px"},e._l(e.features,(function(t,n){return r("feature",{key:n,attrs:{title:t.title,copy:t.copy,center:t.center||!1}},["ui--remote-access"===t.svg?r("UnraidSvgUiRemoteAccess",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--diagnostics"===t.svg?r("UnraidSvgUiDiagnostics",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--usb"===t.svg?r("UnraidSvgUiUsb",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--key"===t.svg?r("UnraidSvgUiKey",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"util--star"===t.svg?r("UnraidSvgUtilStar",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e()],1)})),1),r("div",{staticClass:"w-full max-w-xs flex flex-col mx-auto"},[e.devEnv?r("button",{staticClass:"button mb-8px",on:{click:function(t){return e.installMyServers("dynamix.unraid.net.staging.plg")}}},[e._v("Install Staging")]):e._e(),r("button",{staticClass:"button",on:{click:function(t){return e.installMyServers()}}},[e._v(e._s(e.$t("installPlugin")))]),r("div",[r("a",{staticClass:"text-12px tracking-wide inline-block mx-8px opacity-60 hover:opacity-100 focus:opacity-100 underline mt-16px transition",attrs:{href:"https://wiki.unraid.net/My_Servers",target:"_blank",rel:"noopener noreferrer",title:e.$t("checkoutTheMyServersDocs")}},[e._v(e._s(e.$t("learnMore")))]),r("button",{staticClass:"text-12px tracking-wide inline-block mx-8px opacity-60 hover:opacity-100 focus:opacity-100 underline mt-16px transition",attrs:{title:e.$t("closePromo")},on:{click:function(t){return e.SET_IS_PROMO_OPEN(!1)}}},[e._v(" "+e._s(e.$t("noThanks"))+" ")])])])])])],1)])}),[],!1,(function(e){var t=r("5b71");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Yi=v({i18n:he,store:pi,name:"UpcTrigger",props:[],data:()=>({}),computed:{...Object(b.c)(["stateData","stateDataKeyActions"]),...Object(b.e)(["isPopUpOpen","state","triggerUPC","wizardWindow"]),copy(){return"BASIC"===this.state||"PLUS"===this.state?this.$t("upcTrigger.upgrade"):this.stateDataKeyActions?this.$t("upcTrigger.default"):""},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateDataKeyActions?this.$t("upcTrigger.open"):""},buttonTitle(){return this.stateDataKeyActions?this.$t("upcTrigger.open"):this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},methods:{...Object(b.b)(["jumpToUpc","closePopUp","openPopUp"]),btnClick(){return this.isPopUpOpen?this.openPopUp(this.wizardWindow):this.jumpToUpc()}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.buttonText?r("div",{staticClass:"flex flex-wrap pl-12px"},[r("p",{staticClass:"w-7/20 pr-12px",domProps:{innerHTML:e._s(e.copy)}}),r("div",{staticClass:"w-13/20 inline-flex flex-row"},[r("button",{attrs:{type:"button",title:e.buttonTitle,disabled:e.triggerUPC},on:{click:function(t){return e.btnClick()}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)]):e._e()])}),[],!1,(function(e){var t=r("22c9");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,qi=r("ab14"),Qi=r.n(qi),Ki=r("c7db"),Xi=r("b692"),Ji=r.n(Xi),Zi=r("a3b3"),eo=r.n(Zi),to=r("8a86"),ro=r.n(to),no=r("b2a0"),io=r.n(no),oo=r("b045"),ao=r.n(oo),so=r("45b7"),co=r.n(so),lo=r("73c6"),uo=r.n(lo),po=r("94d0"),fo=r.n(po),ho=r("607e"),mo=r.n(ho),go=v({props:{payload:{type:Object},text:{type:String},emphasize:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},components:{UnraidSvgUiKey:Gi.a,UnraidSvgUtilNewWindow:eo.a}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",class:{"btn-emphasize":e.emphasize},attrs:{title:e.external?""+e.$t("upc.opensNewHttpsWindow.base",[e.text]):null},on:{click:function(t){return e.$emit("click")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiKey",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.text)+" ")],1),e.external?r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):e._e()],1)])}),[],!1,null,null,null,!0).exports,vo=r("a190"),bo=r.n(vo),yo=r("a313"),wo=r.n(yo),xo=r("973e"),_o=r.n(xo),Eo=r("44f2"),So=r.n(Eo);var ko=v({components:{UnraidLoading:hi,UnraidSvgUiWarningFill:bo.a,UnraidSvgUtilCheck:wo.a,UnraidSvgUtilDelete:fo.a,UnraidSvgUtilHelp:_o.a,UnraidSvgUtilInfo:ao.a,UnraidSvgUtilNewWindow:eo.a,UnraidSvgUtilTerminal:So.a},props:["errorStateMessageVisible","hideotherservers","hideMyServers"],data:()=>({offlineTimer:sessionStorage.getItem("offlineTimer")||!1,restartTriggered:!1}),watch:{apikey(e,t){t||!e||this.hideMyServers||(je.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz()),!t||e||this.hideMyServers||(je.debug("[apikey removed] disconnect from unraid-api",{newVal:e,oldVal:t}),this.stopGraphqlClient(t))},noRemoteApikeyRegisteredWithPlg(e,t){t||!e||this.hideMyServers||(je.debug("[watch.noRemoteApikeyRegisteredWithPlg] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},registered(e,t){t||!e||this.hideMyServers||(je.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},myServersError(e,t){!t||e||this.myServers.length||(je.debug("[watch.myServersError] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},graphOnline(e,t){t&&!1===e&&this.timer("watch.graphOnline")}},computed:{...Object(b.c)(["errorTooManyDisks","hasRemoteApikey","keyTypeForPurchase","myServersOutage","noRemoteApikeyRegisteredWithPlg","stateData","validApiKeyLength"]),...Object(b.e)(["apikey","apiVersion","cloud","deviceCount","graphOnline","guid","locale","myServers","myServersError","myServersErrorShowSupportBtn","myServersLoading","pirateKey","registered","servername","signInPayload","state","wanip"]),currentServer(){return this.myServers?this.myServers.filter(e=>e.guid===this.guid?e:null)[0]:{name:this.servername,status:"offline"}},currentServerStatus(){return this.currentServer?this.currentServer.status:"offline"},filteredServers(){return this.myServers?this.hideotherservers?[]:this.myServers.filter(e=>e.guid!==this.guid?e:null).sort((e,t)=>e.name.localeCompare(t.name,"en",{numeric:!0,sensitivity:"base"})):[]},errorToggleText(){return this.stateData.error.message?"EEXPIRED"===this.state?this.stateData.error.heading:this.$t("fixError"):this.pirateKey||this.myServersError||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||this.myServersOutage&&this.myServersOutage.enabled||this.cloud&&this.cloud.error?this.computedErrorHeading:""},errorToggleTitle(){if(this.stateData.error||this.stateData.message||this.myServersError||this.myServersOutage&&this.myServersOutage.enabled||this.cloud&&this.cloud.error){return`${!this.stateData.error.message&&!this.stateData.message||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||!this.cloud||this.cloud.error?this.computedErrorHeading:this.stateData.humanReadable} • ${this.errorStateMessageVisible?this.$t("upc.myServers.closeDetails"):this.$t("learnMore")}`}return""},computedErrorHeading(){return this.noRemoteApikeyRegisteredWithPlg?this.$t("upc.noRemoteApikeyRegisteredWithPlg.heading"):this.stateData.error.heading?this.stateData.error.heading:this.pirateKey?"Key file not valid":this.myServersLoading&&this.restartTriggered?"Unraid API":this.myServersError?this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.heading"):this.$t("upc.myServers.errors.myServers.heading"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.myServersOutage.enabled?this.myServersOutage.message.heading:this.cloud&&this.cloud.error?this.$t("upc.myServers.errors.unraidApi.heading"):""},computedError(){if(this.noRemoteApikeyRegisteredWithPlg)return this.$t("upc.noRemoteApikeyRegisteredWithPlg.msg");if(this.stateData.error.message)return this.stateData.error.message;if(this.pirateKey)return"Oh no! Are you pirating Unraid OS?
Are you ready to buy a real license?";if(this.myServersLoading&&this.restartTriggered)return this.$t("upc.myServers.restarting");if(this.myServersError)return this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.message"):this.myServersError;if(this.errorTooManyDisks){const e=this.$t("upc.errorTooManyDisks.msg.base");return"Basic"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.basic")} ${e}`:"Plus"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.plus")} ${e}`:e}return this.myServersOutage.enabled?this.myServersOutage.message.main:this.cloud&&this.cloud.error?this.cloud.error:""},myServersOverflow(){return this.filteredServers.length>8},apiEnableRestartButton(){return!!this.apiVersion&&Ve()(this.apiVersion,"2.42.5")&&this.offlineTimer&&!this.hideMyServers&&!this.graphOnline&&!this.myServersLoading&&!this.stateData.error&&this.myServersError&&(this.myServersError.includes("unraid-api is stopped")||this.myServersError.includes("Disconnected from Unraid API"))},forumSupportLink(){return this.myServersError&&this.myServersError.includes("OK")||this.myServersError&&this.myServersError.includes("SERVER_OVERLOAD")||this.cloud&&this.cloud.error&&(this.cloud.error.includes("OK")||this.cloud.error.includes("SERVER_OVERLOAD"))?"https://forums.unraid.net/topic/112073-my-servers-releases/#comment-1121459":"https://forums.unraid.net/forum/94-my-servers-plugin-support/"}},methods:{...Object(b.b)(["executeUnraidApi","fetchServers","openPopUp","stopGraphqlClient"]),serversPlz(){return je.debug("[serversPlz]",{apikey:this.apikey,noRemoteApikeyRegisteredWithPlg:this.noRemoteApikeyRegisteredWithPlg,validApiKeyLength:this.validApiKeyLength,myServersOutage:this.myServersOutage}),this.myServersOutage&&this.myServersOutage.enabled?je.error(this.myServersOutage.message.main):this.noRemoteApikeyRegisteredWithPlg?je.error("[MyServers] remote apikey does not exist"):this.validApiKeyLength?(this.fetchServers(),this.timer("serversPlz()")):je.error("[MyServers] invalid apikey")},timer(e=""){je.debug("[timer] %s",e),setTimeout(()=>{!this.graphOnline&&this.registered&&(this.offlineTimer=!0,sessionStorage.setItem("offlineTimer",Date.now()))},3e4)},triggerRestart(){this.executeUnraidApi({command:"start"}),this.offlineTimer=!1,this.restartTriggered=!0,sessionStorage.removeItem("offlineTimer")}},created(){!this.hideMyServers&&this.registered&&this.serversPlz()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"relative"},[r("ul",{staticClass:"relative"},[e.filteredServers.length&&e.myServersError&&!e.stateData.error?r("li",{staticClass:"text-red text-12px font-semibold px-16px pb-4px"},[r("em",[e._v(e._s(e.$t("upc.myServers.displayingLastKnown")))])]):e._e(),e.computedError?r("li",{key:"current-server-error",staticClass:"w-full"},[r("button",{staticClass:"btn-error group py-8px px-16px flex flex-col",attrs:{title:e.errorToggleTitle},on:{click:function(t){return e.$emit("toggle-error")}}},[r("div",{staticClass:"w-full flex flex-row justify-between items-center"},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"font-semibold mx-8px"},[e._v(" "+e._s(e.servername)+" ")])],1),e.computedError&&e.errorStateMessageVisible?r("UnraidSvgUtilDelete",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):r("UnraidSvgUtilInfo",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&e.errorStateMessageVisible?r("div",{staticClass:"UnraidUPC-serverError"},[r("div",{staticClass:"text-14px font-semibold pt-4px"},[r("h3",{staticClass:"text-16px mb-4px"},[e._v(e._s(e.errorToggleText))]),r("p",{domProps:{innerHTML:e._s(e.computedError)}})])]):e._e()])],1)]):e._e(),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.pirateKey&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:"zh_CN"===e.locale?"https://unraid.net/zh/%E8%B4%AD%E4%B9%B0-%E6%AD%A3%E7%89%88-unraid-%E8%AE%B8%E5%8F%AF%E8%AF%81":"https://unraid.net/buy-genuine-license",title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("learnMore")]),target:"_blank"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&!e.stateData.error&&e.errorStateMessageVisible&&e.myServersOutage&&e.myServersOutage.enabled&&e.myServersOutage.message.link?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.myServersOutage.message.link,title:e.myServersOutage.message.linkSameTab?"":e.$t("upc.opensNewHttpsWindow.base",[this.myServersOutage.message.heading]),target:e.myServersOutage.message.linkSameTab?"":"_blank",rel:"noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.myServersOutage.message.linkSameTab?"Go to Plugins":e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[(e.myServersError||e.cloud&&e.cloud.error)&&!e.stateData.error&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.forumSupportLink,title:e.$t("upc.opensNewHttpsWindow.base",["My Servers Support"]),target:"_blank",rel:"noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s("My Servers Support")+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[("EEXPIRED"!==e.state&&e.stateData.error||e.pirateKey)&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("contactSupport")])},on:{click:function(t){return e.$emit("contact-support")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("contactSupport"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.noRemoteApikeyRegisteredWithPlg&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signIn")])},on:{click:function(t){return e.openPopUp(e.signInPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.signInActions.resolve"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.apiEnableRestartButton?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.myServers.api.startTitle")},on:{click:function(t){return e.triggerRestart()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilTerminal",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.myServers.api.start"))+" ")],1)])]):e._e()]),e.registered?r("div",{staticClass:"relative z-0",class:{"custom-scrollbar":e.myServersOverflow}},[r("div",{class:{"overflow-y-scroll max-h-310px":e.myServersOverflow}},[r("transition-group",{attrs:{name:"fade",mode:"out-in"}},[e.myServersLoading?r("UnraidLoading",{key:"gql-loading",staticClass:"w-36px my-8px mx-auto",attrs:{height:21,title:e.$t("upc.myServers.loading")}}):e._e(),e.filteredServers?r("div",{key:"filteredServers"},[r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError?e._e():r("li",{key:"current-server",staticClass:"w-full py-8px px-16px flex flex-row items-center",class:{"text-beta":"online"===e.currentServerStatus,"text-orange cursor-not-allowed":"online"!==e.currentServerStatus},attrs:{title:e.$t("upc.myServers.accessLabels.current")+" • "+("online"!==e.currentServerStatus?e.$t("upc.myServers.mothership.notConnected"):e.$t("upc.myServers.mothership.connected"))}},["online"!==e.currentServerStatus?r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUtilCheck",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"ml-8px select-all"},[e._v(e._s(e.currentServer?e.currentServer.name:e.servername))])],1)]),e._l(e.filteredServers,(function(t,n){return r("li",{key:"filteredServer_"+n},["online"===t.status&&e.wanip!==t.wanip&&t.remoteurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.remoteurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.remote")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"online"===t.status&&t.localurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.localurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.local")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"never_connected"!==t.status?r("span",{staticClass:"w-full flex flex-row items-center px-16px py-8px opacity-50 cursor-not-allowed",attrs:{title:"online"===t.status?e.$t("upc.myServers.accessLabels.unavailable"):e.$t("upc.myServers.accessLabels.offline")}},[r("span",{staticClass:"text-red text-14px w-12px mr-8px"},[e._v("×")]),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):e._e()])}))],2):e._e()],1)],1)]):e._e()],1)])}),[],!1,(function(e){var t=r("dce8");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Oo=v({components:{HelperTimeConvert:Ai},computed:{...Object(b.e)(["state"]),...Object(b.c)(["stateData"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-gamma text-12px text-right font-semibold leading-normal flex flex-row items-baseline justify-end pr-16px pt-4px"},[r("HelperTimeConvert"),r("span",{staticClass:"px-12px"},[e._v("•")]),e.stateData.actions.includes("upgrade")?r("button",{staticClass:"text-12px text-gamma hover:text-alpha focus:text-alpha font-semibold transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.upgrade")},on:{click:function(t){return e.$emit("upgrade")}}},[r("h5",[e._v("Unraid OS "),r("em",[r("strong",[e._v(e._s(e.stateData.humanReadable))])])])]):r("h5",[e._v("Unraid OS "),r("em",{class:{"text-red":e.stateData.error||"EEXPIRED"===e.state}},[r("strong",[e._v(e._s(e.stateData.humanReadable))])])]),e.stateData.actions.includes("purchase")?r("button",{staticClass:"text-12px text-orange-dark font-semibold hover:text-alpha focus:text-alpha ml-12px transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.purchase")},on:{click:function(t){return e.$emit("purchase")}}},[e._v(e._s(e.$t("actions.purchase")))]):e._e()],1)}),[],!1,null,null,null,!0).exports;var To=v({i18n:he,store:pi,name:"UserProfile",mixins:[Ki.mixin],components:{UnraidLoading:hi,UnraidLogoMark:gi,KeyAction:go,MetaInfo:Oo,MyServers:ko,UnraidSvgUtilLogout:Ji.a,UnraidSvgUtilNewWindow:eo.a,UnraidSvgUtilSelect:ro.a,UnraidSvgUtilEdit:io.a,UnraidSvgUtilInfo:ao.a,UnraidSvgUiWarning:co.a,UnraidSvgUtilGlobe:uo.a,UnraidSvgUtilDelete:fo.a,UnraidSvgUtilThumbsUp:mo.a,UiBeta:Pi},props:{serverstate:String,banner:{type:String,default:""},showBannerGradient:{type:String,default:"yes"},bgcolor:[String,Number],displaydesc:{type:String,default:""},locale:String,localeMessages:String,metacolor:String,textcolor:String,theme:{type:String,default:"black"},hideotherservers:{type:String,default:""},apikey:String,apiVersion:String,csrf:String,expiretime:[Number,String],hideMyServers:{type:String,default:null},plgPath:String,regWizTime:String,sendCrashInfo:String,serverdesc:String,servermodel:String,serverupdate:Boolean,uptime:[Number,String]},data:()=>({NODE_ENV:me,avatarFail:!1,copyingIp:!1,dropdownTimeout:"",dropdownVisible:!1,errorStateMessageVisible:!0,showRemoveBtns:!1,removingPlg:!1,hoverImage:!1}),computed:{...Object(b.e)(["avatar","isLaunchpadOpen","isPromoOpen","isPopUpOpen","guid","guidRegistered","popUpWindow","regAtOpen","purchaseWindow","redeemWindow","registered","servername","internalip","state","username","darkTheme","lightTheme","extendTrialPayload","recoverKeyPayload","replaceKeyPayload","signInPayload","signUpPayload","signOutPayload","troubleshootPayload","wizardWindow","messages","myServersEnv","triggerUPC","graphOnline","myServersError","cloud","plgInstalled","signOutTriggered","pirateKey"]),...Object(b.c)(["errorTooManyDisks","noRemoteApikeyRegisteredWithPlg","signedOutWithKey","stateData","myServersOutage","allowedOrigins","server"]),darkMode(){return"black"===this.theme||"azure"===this.theme},usernameButtonText(){return this.stateData.error&&!this.stateData.error.signInToFix&&"EEXPIRED"===!this.state?this.$t("fixError"):this.registered?this.username:""},usernameButtonTitle(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):"EEXPIRED"===this.state?this.$t("upc.trialHasExpiredSeeOptions"):this.stateData.error?this.$t("learnMore"):this.isPopUpOpen&&this.isLaunchpadOpen?this.$t("upc.confirmClosure"):this.cloud&&this.cloud.error?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.cloud.error}`:this.myServersError&&this.registered?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.myServersError}`:this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.isLaunchpadOpen?this.$t("closeLaunchpad"):this.dropdownVisible?this.$t("upc.closeDropdown"):this.$t("upc.openDropdown")},displayKeylineBelowActions(){return!!(this.stateData.actions.includes("startTrial")||this.stateData.actions.includes("purchase")||this.stateData.actions.includes("upgrade")||this.stateData.actions.includes("recover")||this.stateData.actions.includes("replace")||this.stateData.actions.includes("extend"))},extraLinks(){return[...!this.hideMyServers&&this.registered||this.stateData.error.message||this.errorTooManyDisks?[{url:"",text:"",external:!1}]:[],...!this.hideMyServers&&this.registered?[{url:this.myServersEnv?"https://forums.unraid.net/my-servers-staging/":"https://forums.unraid.net/my-servers/",text:this.$t("upc.extraLinks.myServers"),external:!0,title:this.$t("upc.extraLinks.newTab",[this.$t("upc.extraLinks.myServers")])},{url:"/Settings/ManagementAccess#"+(this.plgPath?"MyServersSettings":"UnraidNetSettings"),text:this.$t("upc.extraLinks.settings.text"),settings:!0,title:this.$t("upc.extraLinks.settings.title")}]:[]]},devEnv(){let e=me;const t="UPC_ENV=",r=document.cookie.split(";");for(let n=0;n{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300),this.dropdownVisible)},...Object(b.b)(["closePopUp","openPopUp","receivePostMessage","setStateFromWebComponentProp","startTrial","stopGraphqlClient","togglePromo","updateServerState","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN","SET_IS_PROMO_OPEN","SET_LOCALE","SET_API_KEY","SET_CSRF","SET_DARK_MODE","SET_EXPIRE_TIME","SET_HIDE_MY_SERVERS","SET_MY_SERVERS_API_VERSION","SET_PLG_PATH","SET_REGWIZ_TIME","SET_SERVERDESC","SET_UPTIME","SET_DEV_MODE","SET_MY_SERVERS_ERROR","SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN"]),closeDropdown(){setTimeout(()=>{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300),this.dropdownVisible=!1},dropdownMouseEnter(){return"ENOKEYFILE"!==this.state&&!this.isLaunchpadOpen&&(clearTimeout(this.dropdownTimeout),!0)},dropdownMouseLeave(){return this.dropdownTimeout=setTimeout(()=>"ENOKEYFILE"!==this.state&&(this.dropdownVisible=!1,setTimeout(()=>{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300)),1e3),!0},autoTriggerLaunchpad(){setTimeout(()=>{const e=`${this.servername}_${this.guid?this.guid.slice(-12):"NO_GUID"}`;sessionStorage.getItem(e)||"ENOKEYFILE"!==this.state||(sessionStorage.setItem(e,"またね"),this.isLaunchpadOpen||this.toggleLaunchpad())},100)},toggleLaunchpad(){const e="unraid-launchpad";if(!document.getElementsByTagName(e).length){const t=document.getElementsByTagName("body")[0],r=document.createElement(e);t.appendChild(r)}const t=()=>{this.dropdownVisible&&(this.dropdownVisible=!1),this.isPopUpOpen&&this.closePopUp(),this.SET_IS_LAUNCHPAD_OPEN(!this.isLaunchpadOpen)};this.isPopUpOpen&&this.isLaunchpadOpen?window.confirm(this.$t("upc.pleaseConfirmClosureYouHaveOpenPopUp"))&&t():t()},onAvatarError(){je.error("Avatar failed to load %s",this.avatar),this.avatarFail=!0},async initUserProfile(){if(je.debug("[initUserProfile]"),this.setStateFromWebComponentProp(this.serverstate),this.apikey&&this.SET_API_KEY(this.apikey),this.apiVersion&&this.SET_MY_SERVERS_API_VERSION(this.apiVersion),this.csrf&&this.SET_CSRF(this.csrf),this.expiretime&&this.SET_EXPIRE_TIME(this.expiretime),this.hideMyServers&&this.SET_HIDE_MY_SERVERS(this.hideMyServers),this.plgPath&&this.SET_PLG_PATH(this.plgPath),this.regWizTime&&this.SET_REGWIZ_TIME(this.regWizTime),this.serverdesc&&this.SET_SERVERDESC(this.serverdesc),this.uptime&&this.SET_UPTIME(this.uptime),this.devEnv&&this.SET_DEV_MODE(this.devEnv),this.hideMyServers){const e=["color: white","background: linear-gradient(to right, #E22828 0%, #FF8C2F 100%)","font-size: 10px","padding: 4px"].join(";");je.log(`%c${this.$t("upc.enhanceYourExperienceWithMyServers")} • https://wiki.unraid.net/My_Servers`,e)}if(this.localeMessages){je.debug("[this.locale] %o",this.locale);const[e,t]=Re(decodeURIComponent(this.localeMessages));e&&je.error("[initUserProfile.localeMessages] %s","Unable to set locale and locale messages"),this.$i18n.locale=this.locale,this.$i18n.setLocaleMessage(this.locale,t[this.locale]),je.debug(`[initUserProfile.$i18n] ${this.$i18n.locale} locale & messages set %o`,t[this.locale]),this.SET_LOCALE(this.locale)}this.signedOutWithKey&&this.regWizTime?(je.debug("[initUserProfile] %o",{signedOutWithKey:this.signedOutWithKey,regWizTime:this.regWizTime}),await this.validateGuid()):this.autoTriggerLaunchpad(),sessionStorage.getItem("clickedInstallMyServers")&&(je.debug("[initUserProfile] sessionStorage clickedInstallMyServers"),this.toggleLaunchpad()),sessionStorage.getItem("showPromoPostTrialInstall")&&(je.debug("[initUserProfile] sessionStorage showPromoPostTrialInstall"),this.togglePromo()),window.addEventListener("message",e=>{this.receivePostMessage({inject:!1,event:e})},!1)},copyIP(){if(je.debug("[copyIP] %s",this.internalip),!navigator.clipboard)return je.error("Unable to copy IP: %s",this.internalip);const e=()=>{this.copyingIp=!this.copyingIp,setTimeout(()=>{this.copyingIp=!this.copyingIp},750)};try{return navigator.clipboard.writeText(this.internalip),e()}catch(e){return je.error(`Unable to copy IP: ${this.internalip} %o`,e)}},toggleRemovePlgBtns(){je.debug("[toggleRemovePlgBtns]"),this.showRemoveBtns=!this.showRemoveBtns},removePlugin(){try{je.debug("[removePlugin] %s",this.plgInstalled),openBox("/plugins/dynamix.plugin.manager/scripts/plugin&arg1=remove&arg2="+this.plgInstalled,this.$t("upc.removeMyServersPlugin"),600,900,!0,"loadlist",this.plgInstalled+":remove"),this.removingPlg=!0,window.addEventListener("beforeunload",this.preventClose);const e=setInterval(()=>"none"!==document.getElementById("sb-container").style.display?je.debug("⏳ still removing My Servers…⏳"):(je.debug("❌ My Servers removed ❌"),window.removeEventListener("beforeunload",this.preventClose),clearInterval(e),window.location.reload()),100)}catch(e){je.error(e)}},preventClose(e){this.removingPlg&&(e.preventDefault(),e.returnValue="",alert(this.$t("regWizPopUp.closingPopUpMayLeadToErrors")))}},watch:{signedOutWithKey(e,t){je.debug("[signedOutWithKey]",{newVal:e,oldVal:t,regWizTime:this.regWizTime}),e&&!t&&this.regWizTime&&this.validateGuid()},isPopUpOpen(e,t){this.isLaunchpadOpen&&!e&&t&&!this.regAtOpen&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)},triggerUPC(e){e&&setTimeout(()=>{this.dropdownVisible=!0},150)},graphOnline(e,t){e&&!t&&this.updateServerState()},isPromoOpen(e,t){e&&!t&&(this.dropdownVisible=!1)},signOutTriggered(e,t){e&&this.graphOnline&&(je.debug("[watch.signOutTriggered] disconnect from unraid-api",{newVal:e,oldVal:t,apikey:this.apikey}),this.stopGraphqlClient(this.apikey),this.myServersError&&(this.SET_MY_SERVERS_ERROR(""),this.SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN(!1)))}},created(){this.initUserProfile()},beforeMount(){const e=document.getElementsByTagName("body")[0],t={darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"}};let{alpha:r,beta:n,gamma:i}=this.darkMode?t.darkTheme:t.lightTheme;this.textcolor&&(r=this.textcolor),this.bgcolor&&(n=this.bgcolor,e.style.setProperty("--color-customgradient-start",Qi()(n,0)),e.style.setProperty("--color-customgradient-end",Qi()(n,.9))),this.metacolor&&(i=this.metacolor),e.style.setProperty("--color-alpha",r),e.style.setProperty("--color-beta",n),e.style.setProperty("--color-gamma",i),e.style.setProperty("--shadow-beta","0 25px 50px -12px "+Qi()(n,.15)),e.style.setProperty("--ring-offset-shadow","0 0 "+n),e.style.setProperty("--ring-shadow","0 0 "+n)}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"UnraidUPC",class:{"--hasBanner-default":e.banner&&"no"!==e.showBannerGradient&&!e.bgcolor,"--hasBanner-custom":e.banner&&"no"!==e.showBannerGradient&&e.bgcolor},attrs:{id:"UnraidUPC"}},[e.isPopUpOpen&&!e.isLaunchpadOpen?r("div",{staticClass:"absolute z-10 inset-0 flex flex-col items-end justify-center pr-6"},[r("div",{staticClass:"text-center inline-flex flex-col items-center justify-center"},[r("button",{staticClass:"text-14px button button-alt",on:{click:function(t){return e.openPopUp()}}},[e._v(e._s(e.$t("backToPopUp")))]),r("button",{staticClass:"hover:underline text-12px mt-4px",on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))])])]):e._e(),r("MetaInfo",{class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen},on:{purchase:function(t){return e.openPopUp(e.purchaseWindow)},upgrade:function(t){return e.openPopUp(e.purchaseWindow)},signin:function(t){return e.openPopUp(e.signInPayload)}}}),r("div",{staticClass:"relative z-0 flex flex-row items-center justify-end h-full",class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen}},[r("h1",{staticClass:"relative text-18px border-t-0 border-r-0 border-l-0 border-b-2 border-transparent"},[e.displaydesc?[r("span",{attrs:{title:e.servermodel}},[e._v(e._s(e.serverdesc))]),r("span",{staticClass:"text-grey-mid px-8px"},[e._v("•")])]:e._e(),r("span",{staticClass:"cursor-pointer",attrs:{title:e.$t("lanIp",[e.internalip])},on:{click:function(t){return e.copyIP()}}},[e._v(e._s(e.servername))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.copyingIp?r("span",{staticClass:"text-12px absolute right-0 bg-gradient-to-r from-red to-orange text-center block w-100px rounded"},[e._v(e._s(e.$t("upc.lanIpCopied")))]):e._e()])],2),r("div",{staticClass:"block w-2px h-24px ml-16px bg-grey-mid"}),r("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeDropdown,expression:"closeDropdown"}],staticClass:"relative flex items-center justify-end h-full",on:{mouseenter:function(t){return e.dropdownMouseEnter()},mouseleave:function(t){return e.dropdownMouseLeave()}}},[r("button",{staticClass:"UnraidUPC-username group text-18px hover:text-alpha focus:text-alpha border border-transparent flex flex-row justify-end items-center h-full px-16px outline-none focus:outline-none",class:{"text-orange-dark":e.isLaunchpadOpen||!e.username&&!e.stateData.error,"text-alpha":e.username&&!e.isLaunchpadOpen,"text-red":e.stateData.error},attrs:{title:e.usernameButtonTitle},on:{click:function(t){return e.usernameAvatarButton()}}},[e.stateData.error||"EEXPIRED"===e.state||e.noRemoteApikeyRegisteredWithPlg||e.errorTooManyDisks||e.cloud&&e.cloud.error?r("UnraidSvgUiWarning",{staticClass:"text-red fill-current relative w-24px h-24px mr-8px"}):e._e(),e.usernameButtonText?r("span",{staticClass:"inline-flex items-center bg-transparent border-t-0 border-l-0 border-r-0 border-b-2 border-transparent group-hover:border-orange-dark group-focus:border-orange-dark transition-colors duration-150 ease-in-out"},[e._v(" "+e._s(e.usernameButtonText)+" "),e.registered&&!e.isLaunchpadOpen?r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"}):e._e()],1):e._e(),r("span",{staticClass:"relative z-0 flex items-center justify-center w-36px h-36px rounded-full",class:{"ml-8px":e.usernameButtonText,"bg-transparent":e.registered&&!e.avatarFail,"bg-gradient-to-r from-red to-orange":!e.registered||e.avatarFail},on:{mouseenter:function(t){e.hoverImage=!0},mouseleave:function(t){e.hoverImage=!1}}},[e.registered&&!e.avatarFail?r("img",{staticClass:"absolute z-10 inset-0 w-36px h-36px rounded-full overflow-hidden",attrs:{src:e.avatar,alt:""+e.$t("upc.avatarAlt",[e.username])},on:{error:e.onAvatarError}}):[e.hoverImage?r("UnraidLoading",{staticClass:"relative z-0 w-28px",attrs:{title:e.usernameButtonTitle,"gradient-start":"#fff","gradient-stop":"#fff",height:28}}):r("UnraidLogoMark",{staticClass:"relative z-0 w-28px",attrs:{title:e.usernameButtonTitle,"gradient-start":"#fff","gradient-stop":"#fff"}})]],2),e.usernameButtonText?e._e():r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"})],1),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.dropdownVisible,expression:"dropdownVisible"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":e.darkMode,"border-grey-light":!e.darkMode}},[e.hideMyServers?e._e():r("header",{staticClass:"text-14px pt-16px px-16px rounded-t"},[r("h5",{staticClass:"text-18px leading-none inline-flex flex-row items-center"},[r("span",{staticClass:"font-semibold"},[e._v(e._s(e.$t("upc.myServers.heading")))]),r("ui-beta",{staticClass:"ml-8px"}),e.myServersEnv?r("span",{staticClass:"ml-8px",attrs:{title:"API • "+e.myServersEnv}},[e._v("⚙️")]):e._e(),e.devEnv?r("span",{staticClass:"ml-8px",attrs:{title:e.devEnv}},[e._v("⚠️")]):e._e()],1)]),r("ul",{staticClass:"list-reset my-8px p-0"},[e.hideMyServers||e.registered?e._e():[r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signInUp")])},on:{click:function(t){return e.openPopUp(e.wizardWindow)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilGlobe",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("signInUp"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])],e.displayKeylineBelowActions?[e.stateData.actions.includes("startTrial")?r("KeyAction",{attrs:{text:e.$t("actions.startTrial")},on:{click:function(t){return e.startTrial()}}}):e._e(),e.stateData.actions.includes("purchase")?[r("KeyAction",{attrs:{text:e.$t("actions.purchase")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}),r("KeyAction",{attrs:{text:e.$t("actions.redeemActivationCode")},on:{click:function(t){return e.openPopUp(e.redeemWindow)}}})]:e._e(),e.stateData.actions.includes("upgrade")?r("KeyAction",{attrs:{text:e.$t("actions.upgrade")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("recover")?r("KeyAction",{attrs:{text:e.$t("actions.recover")},on:{click:function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")?r("KeyAction",{attrs:{text:e.$t("actions.replace")},on:{click:function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("extend")?r("KeyAction",{attrs:{text:e.$t("actions.extend")},on:{click:function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]:e._e(),!e.hideMyServers&&e.registered||e.pirateKey||e.stateData.error.message||e.errorTooManyDisks||e.myServersOutage.enabled?r("MyServers",{attrs:{hideMyServers:e.hideMyServers,errorStateMessageVisible:e.errorStateMessageVisible,hideotherservers:e.hideotherservers},on:{"contact-support":function(t){return e.openPopUp(e.troubleshootPayload)},"toggle-error":function(t){e.errorStateMessageVisible=!e.errorStateMessageVisible}}}):e._e(),e._l(e.extraLinks,(function(t,n){return[t.url?r("li",{key:n},[r("a",{staticClass:"flex flex-row items-center",attrs:{href:t.url,target:t.external?"_blank":"",rel:t.external?"noopener noreferrer":"",title:t.title}},[t.external?r("UnraidSvgUtilNewWindow",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),t.settings?r("UnraidSvgUtilEdit",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),t.info?r("UnraidSvgUtilInfo",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),e._v(" "+e._s(t.text)+" ")],1)]):r("div",{key:n,staticClass:"mx-12px"},[r("hr",{staticClass:"w-full h-2px my-8px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]})),e.hideMyServers?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.enhanceYourExperienceWithMyServers")},on:{click:function(t){return e.togglePromo()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilInfo",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}),r("span",[e._v(" "+e._s(e.$t("upc.enhanceYourExperienceWithMyServers"))+" "),r("ui-beta",{staticClass:"inline-block transform scale-90 opacity-70",attrs:{colorClasses:"text-beta border-beta group-hover:text-white group-focus:text-white group-hover:border-white group-focus:border-white"}})],1)],1)])]):[e.registered?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("actions.signOutUnraidNet")])},on:{click:function(t){return e.openPopUp(e.signOutPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilLogout",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("actions.signOutUnraidNet"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):r("li",{staticClass:"relative"},[e.showRemoveBtns?e.showRemoveBtns&&!e.removingPlg?r("div",{staticClass:"flex flex-col bg-alpha"},[r("p",{staticClass:"text-12px text-center font-semibold px-16px pb-8px"},[r("em",[e._v(e._s(e.$t("upc.confirmMyServersPluginRemoval")))])]),r("div",{staticClass:"flex flex-row"},[r("button",{staticClass:"group relative bg-transparent flex flex-row justify-between items-center",attrs:{title:e.$t("upc.continueUsingMyServers")},on:{click:function(t){return e.toggleRemovePlgBtns()}}},[e._v(" "+e._s(e.$t("regWizPopUp.forms.cancel"))+" "),r("UnraidSvgUtilThumbsUp",{staticClass:"text-white opacity-0 group-hover:opacity-100 group-focus:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px"})],1),r("button",{staticClass:"btn-remove group relative flex flex-row justify-between items-center",attrs:{title:e.$t("upc.confirmMyServersPluginRemoval")},on:{click:function(t){return e.removePlugin()}}},[e._v(" "+e._s(e.$t("regWizPopUp.forms.confirm"))+" "),r("UnraidSvgUtilDelete",{staticClass:"text-white opacity-0 group-hover:opacity-100 group-focus:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px"})],1)])]):r("button",{attrs:{disabled:""}},[e._v(" "+e._s(e.$t("upc.removingMyServersPlugin"))+" ")]):r("button",{staticClass:"text-black flex flex-row items-center justify-between",attrs:{title:e.$t("upc.removeMyServersPlugin")},on:{click:function(t){return e.toggleRemovePlgBtns()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilDelete",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.removeMyServersPlugin"))+" ")],1)])])]],2)])])],1)])],1)}),[],!1,(function(e){var t=r("e519");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Io=v({i18n:he,store:pi,name:"WanIpCheck",props:{phpWanIp:{type:String,default:""}},computed:{...Object(b.e)(["wanip","site"]),...Object(b.c)(["isRemoteAccess"]),loading(){return!this.wanip}},methods:{...Object(b.b)(["getWanIp"])},created(){je.debug("[🍣 WanIpCheck 🍣]"),this.wanip||this.getWanIp()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.loading?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.checking")+"…")}}):[e.phpWanIp?[e.isRemoteAccess?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.phpWanIp]))}}):e.phpWanIp!==e.wanip||e.isRemoteAccess?r("span",{staticClass:"mismatch",domProps:{innerHTML:e._s(e.$t("wanIpCheck.mismatch",[e.phpWanIp,e.wanip]))}}):r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.wanip]))}})]:r("span",{staticClass:"error",domProps:{innerHTML:e._s(e.$t("wanIpCheck.resolveError"))}})]],2)}),[],!1,(function(e){var t=r("6e03");t.__inject__&&t.__inject__(e)}),"4ca8352c",null,!0).exports;window.customElements.define("unraid-authed",g(o.default,di)),window.customElements.define("unraid-launchpad",g(o.default,Mi)),window.customElements.define("unraid-promo",g(o.default,Hi)),window.customElements.define("unraid-upc-trigger",g(o.default,Yi)),window.customElements.define("unraid-user-profile",g(o.default,To)),window.customElements.define("unraid-wan-ip-check",g(o.default,Io))},"5b71":function(e,t,r){"use strict";r.r(t);var n=r("c725");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"5d74":function(e,t,r){e.exports={options:{},ssr:function(e,t){var r=e.data,n=r.attrs,i=n.symbol,o=n.size,a=this.getAttributes(o);a&&(r.attrs=Object.assign({},r.attrs,a)),o&&delete r.attrs.size,i&&delete r.attrs.symbol;var s=r.class,c=r.staticClass||"";c+=s?Object.keys(s).join(" "):"",this.hasClass(c)||(r.staticClass=r.staticClass?r.staticClass+" "+this.options.class:this.options.class);var l=e.context.$createElement("use",{attrs:{href:this.getHref(i)}});Array.isArray(e.children)?e.children.push(l):e.children=[l]},install:function(e,t){void 0===t&&(t={}),this.options.class=t.class||"icon",this.options.url=void 0===t.url?"/assets/svg/sprite.svg":t.url;var r=this;e.directive("svg",{bind:function(e,t,n){var i=t.value||n.data.attrs.symbol,o=n.data.attrs&&n.data.attrs.size,a=r.getAttributes(o);a&&(e.setAttribute("viewBox",a.viewBox),e.setAttribute("width",a.width),e.setAttribute("height",a.height)),i&&e.removeAttribute("symbol"),o&&e.removeAttribute("size");var s=e.getAttribute("class");if(r.hasClass(s)||e.setAttribute("class",s?s+" "+r.options.class:r.options.class),!e||null===e.querySelector("use")){var c=document.createElementNS("http://www.w3.org/2000/svg","use"),l=r.getHref(i);c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),c.setAttribute("href",l),e.appendChild(c)}},update:function(e,t,n){var i=r.getHref(t.value||n.data.attrs.symbol),o=e&&e.querySelector("use");if(o){if(o.getAttribute("href")===i)return!1;var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttribute("href",i),e.replaceChild(a,o)}}})},getAttributes:function(e){if(!e)return null;var t=e.toString().replace(/( |, |,)/g," ").split(" "),r=t.length;if(3===r||r>4)return console.warn('[vue-svg-sprite] size: "'+e+'" is not valid'),null;var n=[];n[0]=r<4?0:t[0],n[1]=r<4?0:t[1];var i=n[2]=r<4?t[0]:t[2];return{height:n[3]=t[r-1],viewBox:n.join(" "),width:i}},hasClass:function(e){var t=this.options.class;return!!e&&e.split(" ").some((function(e){var r=e.split(/(-|_)/)[0];return-1!==r.indexOf(t)&&r.length===t.length}))},getHref:function(e){return""===this.options.url?"#"+e:this.options.url+"#"+e}}},"607e":function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M0 7h2v8l-2 1V7zm3.5 7V7C5 6.7 6.365 4.915 7.595 1.646A1.767 1.767 0 019.25.5c.69 0 1.25.56 1.25 1.25V6h3.09a2 2 0 011.966 2.369l-.75 4A2 2 0 0112.84 14H3.5z"}})]))}}},6210:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(i,null,!0),i}(r("5a0c"))},"626e":function(e,t,r){"use strict";var n=[/passw(or)?d/i,/^pw$/,/^pass$/i,/secret/i,/token/i,/api[-._]?key/i,/session[-._]?id/i,/^connect\.sid$/],i=[/^\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/];t.key=function(e){return n.some((function(t){return t.test(e)}))},t.value=function(e){return i.some((function(t){return t.test(e)}))}},"633a":function(e,t,r){"use strict";(function(e){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,o])}else r(e)};o()}(a(t.middlewares),t)}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,r){if("function"==typeof e)try{return t(e.call(null))}catch(e){return r(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){r.checkOperationOptions(e,t),r.operations[n]&&(r.operations[n]={options:e,handler:t},r.sendMessage(n,b.default.GQL_START,e))})).catch((function(e){r.unsubscribe(n),t(r.formatErrors(e))})),n},e.prototype.getObserver=function(e,t,r){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return r&&r()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new l({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var r=e.query,n=e.variables,i=e.operationName;if(!r)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!p.default(r)&&!h.getOperationAST(r,i)||i&&!p.default(i)||n&&!d.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,r){return{id:e,type:t,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:f.print(r.query)}):r}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,r){this.sendMessageRaw(this.buildMessage(e,t,r))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,b.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var r=e.data;t.processReceivedData(r)}},e.prototype.processReceivedData=function(e){var t,r;try{r=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[r])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(t.payload),null),delete this.operations[r];break;case b.default.GQL_DATA:var o=t.payload.errors?n(n({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[r].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=y}).call(this,r("c8ba"))},6788:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M0 6l5.584-.5L8 0l2.5 5.5L16 6l-4 4 1 6-5-3.5L3 16l1-6z"}})]))}}},"6c20":function(e,t,r){"use strict";r.r(t),function(e,n){var i,o=r("48b5");i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.default=a}.call(this,r("c8ba"),r("dd40")(e))},"6ddc":function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)<=0},"6e03":function(e,t,r){"use strict";r.r(t);var n=r("9c76");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"73c6":function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{d:"M8.763 5.447c-.024-.044.228-.068.272-.068.05.006-.13.302-.272.068zM7.328 3.4l.072-.02c.043.036-.048.063-.034.09.057.104.014.166.005.222-.009.056-.069.032-.099.062-.035.044.172.05.175.056.007.022-.25.06-.203.114.064.091.55-.13.472-.117.15-.075.02-.083-.065-.127-.028-.143-.052-.364-.142-.453l.059-.068c-.137-.2-.24.241-.24.241zM16 8A8 8 0 110 8a8 8 0 0116 0zm-5.54-3.58c-.004-.098-.127-.19-.255-.021-.09.116-.074.292-.122.371-.07.117.378.226.378.116.016-.185.488-.042.58-.017.165.046.428-.15.14-.254-.236-.086-.361-.179-.382-.348 0 0 .125-.118.07-.111-.145.018-.409.524-.409.263zM14.657 8c0-.69-.118-1.387-.238-1.755a.408.408 0 00-.239-.252c-.17-.066-.891.398-1 .17-.071-.153-.216.097-.381.005-.08-.044-.303-.343-.404-.307-.206.074.316.643.459.718.134-.102.568-.31.661-.026.179.536-.491 1.124-.834 1.433-.512.463-.416-.3-.764-.568-.184-.14-.182-.44-.367-.543-.083-.047-.462-.484-.459-.542l-.011.11c-.063.048-.196-.178-.21-.214 0 .197.32.51.426.668.18.27.277.663.499.884.118.118.572.609.69.598.128-.011.535-.305.607-.288.43.101-1.01 2.136-1.147 2.388-.113.212.092.734.075.984-.02.289-.247.382-.462.54-.23.168-.177.496-.37.616-.345.212-.593.902-1.083.899-.144 0-.76.24-.84.005-.063-.171-.147-.3-.236-.469-.086-.165-.01-.337-.115-.483-.073-.101-.317-.331-.339-.451-.001-.103.078-.417.187-.472.153-.078.03-.305.01-.437-.031-.236-.177-.431-.353-.568-.259-.199-.125-.358-.064-.642 0-.136-.083-.315-.266-.262-.376.11-.262-.293-.536-.275-.197.014-.358.14-.542.195-.23.069-.466-.055-.694-.084-.938-.118-1.244-1.19-1-1.964.025-.126-.076-.361-.032-.459.106-.235.32-.498.508-.676.106-.1.241-.075.365-.153.191-.12.194-.368.381-.52.267-.217.631-.212.979-.259.185-.025.89-.177 1.002-.04 0 .025.127.403-.013.381.289.016.7.5.974.386.141-.058.09-.49.378-.282.175.126.958.182 1.12.046.1-.082.156-.62.035-.68.077.076-.407.082-.453.065-.08-.03-.154.076-.283.017.077.036-.43-.236-.145-.445-.12.087-.231-.025-.36.071-.088.072.042.12-.085.183-.201.102-.353-.35-.43-.401-.077-.051-.675-.471-.513-.197l.526.523c-.026.017-.138-.19-.138-.039.036-.09.014.386-.069.231-.037-.059.06-.092.004-.178 0-.057-.152-.112-.181-.151-.084-.103-.305-.331-.425-.386-.033-.015-.51.058-.55.073a1.186 1.186 0 00-.119.208 1.346 1.346 0 00-.279.142l-.105.236c-.045.04-.51.194-.512.2.019-.05-.325-.114-.302-.214.025-.11.142-.454.112-.579-.032-.131.716.19.764-.157.019-.15.03-.324-.209-.35.045.006.463-.164.533-.24.097-.112.32-.294.482-.294.19 0 .149-.276.236-.41.088.035-.046.25.058.338-.006-.069.297.038.326.022.07-.036.456-.015.396-.196-.066-.185.034-.13.121-.169-.015.006.227-.413.268-.275-.029-.142-.28.049-.369.042-.203-.016-.117-.347-.04-.444.059-.076-.162-.17-.165-.024-.004.22-.208.418-.16.71.071.439-.49-.106-.54-.076-.187.113-.34-.143-.243-.296.099-.157.337-.15.435-.318.07-.118.15-.256.257-.346.356-.3.455-.06.81-.028.348.032.118.083.07.216-.046.127.19.172.272.066.047-.061.153-.215.199-.329.06-.148.6-.131.223-.357-.25-.149-1.336-.448-2.064-.448-.158 0-.268.175-.388.274-.237.197-.845.583-1.183.466-.346-.12-1.087.44-1.205.444-.044.002.002-.423.238-.454-.102.015.832-.472.806-.573-.03-.12-1.866.548-1.784.682.04.061.2.061-.01.196-.12.073-.248.534-.361.534-.337.147-.358-.29-.733.273l-.596.24a6.64 6.64 0 00-1.72 3.455c-.008.053.223.15.253.187.075.089.075.474.111.6.092.319.32.496.494.786.102.173.273.61.219.791.072-.119.713.543.83.681.277.325.49.718.041 1.04-.144.104.22.752.032.912l-.24.062c-.238.146-.13.504.014.654A6.66 6.66 0 0014.658 8zM6.986 3.762c.083-.037.195-.035.207-.147.01-.098.03-.03.054-.066.023-.036-.045-.092-.074-.098-.042-.009-.072.046-.099.07l-.048.012-.045.058.005.032-.058.071c-.057.056.001.093.058.068z"}})]))}}},7506:function(e,t,r){"use strict";r.r(t),r.d(t,"print",(function(){return o}));var n=r("2f6c"),i=r("04b4");function o(e){return Object(n.b)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=u("(",c(e.variableDefinitions,", "),")"),i=c(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?c([t,c([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+u(" = ",n)+u(" ",c(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return c([u("",t,": ")+r+u("(",c(n,", "),")"),c(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return c(["...",u("on ",t),c(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",c(n,", "),")")," ")+"on ".concat(r," ").concat(u("",c(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?Object(i.b)(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return c(["schema",c(t," "),l(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return c(["scalar",e.name,c(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return c(["type",t,u("implements ",c(r," & ")),c(n," "),l(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(f(r)?u("(\n",p(c(r,"\n")),"\n)"):u("(",c(r,", "),")"))+": "+n+u(" ",c(i," "))})),InputValueDefinition:s((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return c([t+": "+r,u("= ",n),c(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return c(["interface",t,c(r," "),l(n)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.types;return c(["union",t,c(r," "),n&&0!==n.length?"= "+c(n," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.values;return c(["enum",t,c(r," "),l(n)]," ")})),EnumValueDefinition:s((function(e){return c([e.name,c(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return c(["input",t,c(r," "),l(n)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(f(r)?u("(\n",p(c(r,"\n")),"\n)"):u("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return c(["extend schema",c(t," "),l(r)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return c(["extend type",t,u("implements ",c(r," & ")),c(n," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return c(["extend interface",t,c(r," "),l(n)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return c(["extend union",t,c(r," "),n&&0!==n.length?"= "+c(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return c(["extend enum",t,c(r," "),l(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return c(["extend input",t,c(r," "),l(n)]," ")}};function s(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function l(e){return e&&0!==e.length?"{\n"+p(c(e,"\n"))+"\n}":""}function u(e,t,r){return t?e+t+(r||""):""}function p(e){return e&&" "+e.replace(/\n/g,"\n ")}function d(e){return-1!==e.indexOf("\n")}function f(e){return e&&e.some(d)}},"786a":function(e,t){var r=e.exports=function(e){return new n(e)};function n(e){this.value=e}function i(e,t,r){var n=[],i=[],s=!0;return function e(p){var d=r?o(p):p,f={},h=!0,m={node:d,node_:p,path:[].concat(n),parent:i[i.length-1],parents:i,key:n.slice(-1)[0],isRoot:0===n.length,level:n.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(h=!1)},delete:function(e){delete m.parent.node[m.key],e&&(h=!1)},remove:function(e){c(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(h=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){s=!1},block:function(){h=!1}};if(!s)return m;function g(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=a(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}))),Fe.debug("[🪐 serverStateFromApi] DONE %o",r.data),r.data},stopGraphqlClient:(e,t)=>(Fe.debug("[stopGraphqlClient] clients %o",{clients:On,apikey:t}),Object.keys(On).includes(t)?(Fe.debug("[stopGraphqlClient] found existing client & stopping it %o",On[t]),On[t].stop()):Fe.debug("[stopGraphqlClient] client does not exist for apikey %o",t))};o.default.use(b.a),o.default.config.devtools=!0;var di=new b.a.Store({state:_e,getters:Me,mutations:$e,actions:pi});var fi=v({i18n:he,store:di,name:"Authed",props:["propRegistered"],data:()=>({regChanged:!1,popUpClosedTimer:null}),computed:{...Object(b.e)(["state","registered","isPopUpOpen","signOutPayload","wizardWindow"]),...Object(b.c)(["stateData"]),computedReg(){return null===this.registered?!!this.propRegistered:this.registered},buttonPayload(){return this.stateData.error?this.wizardWindow:this.computedReg?this.signOutPayload:this.wizardWindow},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.computedReg?this.$t("signOut"):this.$t("signIn")},buttonTitle(){return this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},watch:{isPopUpOpen(e){!e&&this.regChanged&&(Fe.debug("[REGISTERED CHANGED] 🔥 reload webGUI settings"),window.location.reload())},registered(e,t){null!==t&&e!==this.propRegistered&&(Fe.debug("[REGISTERED CHANGED]",{newVal:e,oldVal:t}),this.regChanged=!0,this.isPopUpOpen||(Fe.debug("[REGISTERED CHANGED] 🔥🔥 reload webGUI settings"),window.location.reload()))}},methods:{...Object(b.b)(["closePopUp","openPopUp"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[r("div",[r("button",{attrs:{type:"button",title:e.buttonTitle},on:{click:function(t){return e.openPopUp(e.buttonPayload)}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)])}),[],!1,(function(e){var t=r("dfd4");t.__inject__&&t.__inject__(e)}),"5e5ba4da",null,!0).exports,hi=(v({name:"keyline",props:{color:{type:String,default:"grey"}},computed:{computedClass(){return"gradient"===this.color?"h-2px bg-gradient-r-red-orange":"h-1px bg-grey"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("hr",{staticClass:"w-full shadow-none border-none rounded-none",class:e.computedClass})}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{staticClass:"unraid_sc_loader",style:e.styles,attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97",height:e.height+"px",role:"img"}},[r("title",[e._v(e._s(e.title))]),r("desc",[e._v("Unraid logo animating with a wave like effect")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{staticClass:"unraid_sc_loader_9",attrs:{d:"m70,19.24zm57,0l6.54,0l0,38.49l-6.54,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_8",attrs:{d:"m70,19.24zm47.65,11.9l-6.55,0l0,-23.79l6.55,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_7",attrs:{d:"m70,19.24zm31.77,-4.54l-6.54,0l0,-14.7l6.54,0l0,14.7z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_6",attrs:{d:"m70,19.24zm15.9,11.9l-6.54,0l0,-23.79l6.54,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_5",attrs:{d:"m63.49,19.24l6.51,0l0,38.49l-6.51,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_4",attrs:{d:"m70,19.24zm-22.38,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_3",attrs:{d:"m70,19.24zm-38.26,43.03l6.55,0l0,14.73l-6.55,0l0,-14.73z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_2",attrs:{d:"m70,19.24zm-54.13,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_1",attrs:{d:"m70,19.24zm-63.46,38.49l-6.54,0l0,-38.49l6.54,0l0,38.49z",fill:"url(#"+e.random+")"}})])});var mi=v({name:"loading",props:{height:{type:Number,default:64},styles:{type:Object,default:()=>({})},gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"},title:{type:String,default:"Loading"}},data:()=>({random:Math.random().toString(36).substring(7)})},hi,[],!1,(function(e){var t=r("ef7a");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,gi=(v({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 222.36 39.04"}},[r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"47.53",y1:"79.1",x2:"170.71",y2:"-44.08",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("title",[e._v("Unraid Logo")]),r("path",{attrs:{d:"M146.7,29.47H135l-3,9h-6.49L138.93,0h8l13.41,38.49h-7.09L142.62,6.93l-5.83,16.88h8ZM29.69,0V25.4c0,8.91-5.77,13.64-14.9,13.64S0,34.31,0,25.4V0H6.54V25.4c0,5.17,3.19,7.92,8.25,7.92s8.36-2.75,8.36-7.92V0ZM50.86,12v26.5H44.31V0h6.11l17,26.5V0H74V38.49H67.9ZM171.29,0h6.54V38.49h-6.54Zm51.07,24.69c0,9-5.88,13.8-15.17,13.8H192.67V0H207.3c9.18,0,15.06,4.78,15.06,13.8ZM215.82,13.8c0-5.28-3.3-8.14-8.52-8.14h-8.08V32.77h8c5.33,0,8.63-2.8,8.63-8.08ZM108.31,23.92c4.34-1.6,6.93-5.28,6.93-11.55C115.24,3.68,110.18,0,102.48,0H88.84V38.49h6.55V5.66h6.87c3.8,0,6.21,1.82,6.21,6.71s-2.41,6.76-6.21,6.76H98.88l9.21,19.36h7.53Z",fill:"url(#"+e.random+")"}})])}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97"}},[r("title",[e._v("unraid-mark")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{attrs:{fill:"url(#"+e.random+")",d:"M63.49,19.24H70V57.73H63.49ZM6.54,57.73H0V19.24H6.54Zm25.2,4.54h6.55V77H31.74ZM15.87,45.84h6.54V69.62H15.87Zm31.75,0h6.54V69.62H47.62ZM127,19.24h6.54V57.73H127ZM101.77,14.7H95.23V0h6.54Zm15.88,16.44H111.1V7.35h6.55Zm-31.75,0H79.36V7.35H85.9Z"}})])}),vi=v({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},gi,[],!1,null,null,null,!0).exports,bi=r("5d74"),yi=r.n(bi);o.default.use(yi.a,{url:(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX?Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX:"")+"/assets/svg/sprite.svg",class:"svg-icon"});var wi=(v({name:"svg-icon",props:{symbol:{type:String,required:!0},symbolClass:String}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("svg",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"unraid-svg-icon",class:e.symbolClass,attrs:{symbol:e.symbol,title:e.symbol,role:"presentation"}})}),[],!1,(function(e){var t=r("39a1");t.__inject__&&t.__inject__(e)}),"3b60bb54",null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-center w-full"},[r("header",[r("h2",{staticClass:"text-24px md:text-30px"},[r("span",{domProps:{innerHTML:e._s(e.computedHeading)}}),e.showTrialWelcome?r("ui-beta",{staticClass:"title-beta relative ml-4px"}):e._e()],1),r("div",{staticClass:"text-14px opacity-90 mt-12px mx-auto prose",class:{"text-center":e.stateData.messageCenter||e.showTrialWelcome,"text-left":!e.stateData.messageCenter}},[r("div",{domProps:{innerHTML:e._s(e.computedSubheading)}}),e.showExpiretime?r("HelperTimeConvert",{staticClass:"italic text-center font-semibold mt-16px"}):e._e()],1)]),r("div",{staticClass:"ActionRequired flex flex-col justify-center mt-16px"},[e.isPopUpOpen?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("backToPopUp")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{text:e.$t("closePopUp")},on:{"btn-click":function(t){return e.closePopUp()}}})]:[e.hideMyServers&&!e.apiVersion||!e.stateData.actions.includes("register")?e._e():[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignIn":null,text:e.$t("signIn")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),e.guidRegistered||e.forumaccount?e._e():r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignUp":null,text:e.$t("signUp")},on:{"btn-click":function(t){return e.openPopUp(e.signUpPayload)}}})],"TRIAL"===e.state&&e.hideMyServers&&!e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("upc.enhanceYourExperienceWithMyServers")},on:{"btn-click":function(t){return e.togglePromo()}}}):e._e(),e.stateData.actions.includes("startTrial")&&!e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("actions.startTrial")},on:{"btn-click":function(t){return e.startTrial()}}}):e._e(),e.hidePurchaseButtons?e._e():[e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.purchase")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.redeemWindow.url:null,text:"Redeem Activation Code"},on:{"btn-click":function(t){return e.openPopUp(e.redeemWindow)}}}):e._e(),e.stateData.actions.includes("upgrade")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.upgrade")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e()],e.stateData.actions.includes("replace")&&e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ReplaceKey":null,text:e.$t("actions.replace")},on:{"btn-click":function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")&&!e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("actions.replaceIneligible"),title:e.$t("stateData.EGUID.error.message.replacementIneligible"),disabled:""},on:{"btn-click":function(t){return e.niceTry()}}}):e._e(),e.stateData.actions.includes("recover")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"RecoverKey":null,text:e.$t("actions.recover")},on:{"btn-click":function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("continueTrial")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("regWizPopUp.continueTrial")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("extend")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ExtendTrial":null,text:e.$t("actions.extend")},on:{"btn-click":function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),e.stateData.actions.includes("close")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("continueToUnraid")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("signOut")&&e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignOut":null,text:e.$t("signOut")},on:{"btn-click":function(t){return e.openPopUp(e.signOutPayload)}}}):e._e()]],2)])}),xi=r("5a0c"),_i=r.n(xi);const Ei=(e,t,r,n,i,o,a)=>({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a});var Si=(e,t,r)=>{let n,i=_i()(e),o=_i()(t);if(i.isSame(o))return r?Ei(0,0,0,0,0,0,!1):"";if(i.isAfter(o)){const e=i;i=o,o=e,n=!0}else n=!1;let a=o.year()-i.year(),s=o.month()-i.month(),c=o.date()-i.date(),l=o.hour()-i.hour(),u=o.minute()-i.minute(),p=o.second()-i.second();if(p<0&&(p=60+p,u-=1),u<0&&(u=60+u,l-=1),l<0&&(l=24+l,c-=1),c<0){const e=_i()(`${o.year()}-${o.month()+1}`).subtract(1,"M").daysInMonth();c=e{const r=e?_i()(parseInt(e,10)):_i()(),n=t?_i()(parseInt(t,10)):_i()();return Si(r,n,!0)};var Oi=(e,t)=>t?ki(e,""):ki("",e),Ti=r("23ad"),Ii=r.n(Ti);r("e072"),r("6210"),r("e5b7");const Ai=document.getElementsByTagName("unraid-user-profile")[0];if(Ai){const e=Ai.getAttribute("locale").slice(0,2);_i.a.locale(e),Fe.debug("[formatDate] dayjs.locale()",_i.a.locale())}_i.a.extend(Ii.a);var Ri=e=>_i()(parseInt(e,10)).format("llll"),Ci=v({data:()=>({parsedUptime:"",parsedExpireTime:""}),computed:{...Object(b.c)(["showExpiretime"]),...Object(b.e)(["state","expiretime","uptime"]),formattedUptime(){return Ri(this.uptime)},formattedExpireTime(){return Ri(this.expiretime)},timeCopy(){return this.showExpiretime?{title:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.date",{date:this.formattedExpireTime}):this.$t("upc.meta.trial.active.date",{date:this.formattedExpireTime}),text:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.timeDiff",{timeDiff:this.parsedExpireTime}):this.$t("upc.meta.trial.active.timeDiff",{timeDiff:this.parsedExpireTime})}:{title:this.$t("upc.meta.uptime.date",{date:this.formattedUptime}),text:this.$t("upc.meta.uptime.readable",{timeDiff:this.parsedUptime})}}},methods:{buildStringFromValues({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a,displaySecondsInStringReturn:s}){const c=[],l={year:this.$t("year"),years:this.$t("years"),month:this.$t("month"),months:this.$t("months"),day:this.$t("day"),days:this.$t("days"),hour:this.$t("hour"),hours:this.$t("hours"),minute:this.$t("minute"),minutes:this.$t("minutes"),second:this.$t("second"),seconds:this.$t("seconds"),firstDateWasLater:this.$t("ago"),delimiter:" "},u=(e,t)=>`${e} ${l[t+(1===e?"":"s")]}`;return e&&c.push(u(e,"year")),t&&c.push(u(t,"month")),r&&c.push(u(r,"day")),n&&c.push(u(n,"hour")),i&&c.push(u(i,"minute")),!o||(e||t||r||n||i)&&!s||c.push(u(o,"second")),a&&c.push(l.firstDateWasLater),c.join(l.delimiter)},runTimeDiff(){this.uptime&&(this.parsedUptime=this.buildStringFromValues(Oi(this.uptime,!0))),this.expiretime&&(this.parsedExpireTime=this.buildStringFromValues(Oi(this.expiretime,!1)))},letsGo(){this.runTimeDiff(),this.interval=setInterval(()=>{this.runTimeDiff()},1e3)}},created(){this.letsGo()},beforeDestroy(){clearInterval(this.interval)}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"select-all",attrs:{title:e.timeCopy.title}},[e._v(e._s(e.timeCopy.text))])}),[],!1,null,null,null,!0).exports,Pi=v({props:{hrefUrl:{type:[Boolean,URL],default:!1},routeName:{type:String},text:{type:String,required:!0}},computed:{}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.routeName?r("router-link",{attrs:{to:{name:e.routeName}}},[e._v(e._s(e.text))]):e.hrefUrl?r("a",{attrs:{href:e.hrefUrl}},[e._v(e._s(e.text))]):r("button",{on:{click:function(t){return e.$emit("btn-click")}}},[e._v(e._s(e.text))])}),[],!1,null,null,null,!0).exports,Ni=v({props:{colorClasses:{type:String,default:"text-grey-mid border-grey-mid"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"text-10px uppercase py-4px px-6px border-2 rounded-full",class:e.colorClasses},[e._v(e._s(e.$t("upc.myServers.beta")))])}),[],!1,null,null,null,!0).exports;var Mi=v({components:{HelperTimeConvert:Ci,UiButton:Pi,UiBeta:Ni},props:{hidePurchaseButtons:{type:Boolean,default:!1}},data:()=>({CAN_POST_MESSAGE:Oe}),computed:{...Object(b.c)(["stateData","showExpiretime"]),...Object(b.e)(["apiVersion","extendTrialPayload","forumaccount","guidBlacklisted","guidRegistered","hideMyServers","isPopUpOpen","messages","purchaseWindow","recoverKeyPayload","redeemWindow","registered","replaceable","replaceKeyPayload","signInPayload","signOutPayload","signUpPayload","state","wizardWindow"]),showTrialWelcome(){return this.hidePurchaseButtons&&"ENOKEYFILE"!==this.state&&!this.state.error&&!this.hideMyServers&&!this.registered},computedHeading(){return this.showTrialWelcome?this.$t("upc.thankYouForInstallingMyServers"):this.stateData.heading?this.stateData.heading:this.stateData.error.heading},computedSubheading(){return this.showTrialWelcome?this.$t("upc.connectYourUnraidnetAccountToGetStarted"):this.stateData.message?this.stateData.message:this.stateData.error.message}},methods:{...Object(b.b)(["openPopUp","closePopUp","closePopUpFromPopUp","startTrial","togglePromo"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"]),niceTry(){alert("❌ Nice try you little sneak ❌")}}},wi,[],!1,(function(e){var t=r("2251");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Di=v({i18n:he,store:di,name:"Launchpad",props:["serverstate","webguiTranslations"],components:{UnraidLoading:mi,LaunchpadActionRequired:Mi},computed:{...Object(b.e)(["errorMessage","guid","hideMyServers","isLaunchpadOpen","isPopUpOpen","loading","registered"]),...Object(b.c)(["server"])},methods:{...Object(b.b)(["closePopUp","setStateFromWebComponentProp","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"])},watch:{signedOutWithKey(e,t){e&&!t&&this.validateGuid()},isPopUpOpen(e,t){!e&&t&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)}},created(){if(this.serverstate&&this.setStateFromWebComponentProp(this.serverstate),this.guid)this.validateGuid();else{const e=setInterval(()=>{this.guid&&(clearInterval(e),this.validateGuid())},250)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"absolute inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closeLaunchpad")},on:{click:function(t){return e.SET_IS_LAUNCHPAD_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("main",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-4xl mr-8px p-24px md:p-32px lg:px-40px shadow-md rounded-lg"},[e.loading?[r("UnraidLoading",{staticClass:"mx-auto",attrs:{height:64}}),"string"==typeof e.loading?r("h3",{staticClass:"text-20px italic mt-8px mb-0"},[e._v(e._s(e.loading))]):e._e()]:[r("LaunchpadActionRequired",{attrs:{hidePurchaseButtons:!e.hideMyServers&&!e.registered}}),e.errorMessage?r("p",{staticClass:"text-red font-semibold italic mt-16px mb-0",domProps:{innerHTML:e._s(e.errorMessage)}}):e._e()]],2)])],1)])}),[],!1,(function(e){var t=r("f153");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Ui=r("99c0"),Li=r.n(Ui),ji=r("9f96"),Fi=r.n(ji),$i=r("56c3"),Vi=r.n($i),Gi=r("381c"),zi=r.n(Gi),Bi=r("6788"),Wi=r.n(Bi),Hi=v({name:"Feature",props:["title","copy","svg","center"]},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-left relative flex overflow-hidden p-8px",class:{"w-full sm:w-1/2":!e.center,"max-w-640px":e.center}},[e.center?e._e():r("span",{staticClass:"flex-shrink-0"},[e._t("default")],2),r("div",{staticClass:"inline-flex flex-col pl-4 mr-4",class:{"text-center":e.center}},[r("h3",{staticClass:"font-semibold",class:{"mt-0 mb-4px":e.copy,"my-0":!e.copy,"flex flex-row justify-center items-center":e.center}},[e.center?r("span",{staticClass:"flex-shrink-0 mr-8px"},[e._t("default")],2):e._e(),e._v(" "+e._s(e.title)+" ")]),e.copy?r("p",{staticClass:"opacity-90 py-0",class:{"px-8px":e.center},domProps:{innerHTML:e._s(e.copy)}}):e._e()])])}),[],!1,null,null,null,!0).exports;var qi=v({i18n:he,store:di,name:"Promo",components:{Feature:Hi,UnraidSvgUiRemoteAccess:Li.a,UnraidSvgUiDiagnostics:Fi.a,UnraidSvgUiUsb:Vi.a,UnraidSvgUiKey:zi.a,UnraidSvgUtilStar:Wi.a},computed:{...Object(b.e)(["isPromoOpen","devEnv"]),...Object(b.c)(["features"]),heading(){return this.$t("promoHeading").replace("(BETA)",`${he.tc("upc.myServers.beta")}`)}},methods:{...Object(b.d)(["SET_IS_PROMO_OPEN"]),installMyServers(e=""){try{const t="https://s3.amazonaws.com/dnld.lime-technology.com/unraid-api/"+(e||"dynamix.unraid.net.plg");Fe.debug("[installMyServers] %s",t),sessionStorage.setItem("clickedInstallMyServers",Date.now()),this.SET_IS_PROMO_OPEN(!1),"function"==typeof openPlugin?(Fe.debug("[installMyServers] using openPlugin %s",t),openPlugin("plugin install "+t,this.$t("upc.installingMyServers"),"","refresh")):(Fe.debug("[installMyServers] using openBox %s",t),openBox("/plugins/dynamix.plugin.manager/scripts/plugin&arg1=install&arg2="+t,this.$t("upc.installingMyServers"),600,900,!0))}catch(e){Fe.error(e)}}},watch:{isPromoOpen(e,t){t&&!e&&sessionStorage.removeItem("showPromoPostTrialInstall")},isLaunchpadOpen(e,t){t&&!e&&sessionStorage.getItem("showPromoPostTrialInstall")&&this.SET_IS_PROMO_OPEN(!1)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"fixed inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closePromo")},on:{click:function(t){return e.SET_IS_PROMO_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"Promo TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-800px mr-8px p-24px sm:p-32px lg:px-40px shadow-md rounded-lg"},[r("h2",{staticClass:"text-24px my-0",domProps:{innerHTML:e._s(e.heading)}}),r("div",{staticClass:"text-14px flex flex-wrap justify-center my-16px"},e._l(e.features,(function(t,n){return r("feature",{key:n,attrs:{title:t.title,copy:t.copy,center:t.center||!1}},["ui--remote-access"===t.svg?r("UnraidSvgUiRemoteAccess",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--diagnostics"===t.svg?r("UnraidSvgUiDiagnostics",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--usb"===t.svg?r("UnraidSvgUiUsb",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--key"===t.svg?r("UnraidSvgUiKey",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"util--star"===t.svg?r("UnraidSvgUtilStar",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e()],1)})),1),r("div",{staticClass:"w-full max-w-xs flex flex-col mx-auto"},[e.devEnv?r("button",{staticClass:"button mb-8px",on:{click:function(t){return e.installMyServers("dynamix.unraid.net.staging.plg")}}},[e._v("Install Staging")]):e._e(),r("button",{staticClass:"button",on:{click:function(t){return e.installMyServers()}}},[e._v(e._s(e.$t("installPlugin")))]),r("div",[r("a",{staticClass:"text-12px tracking-wide inline-block mx-8px opacity-60 hover:opacity-100 focus:opacity-100 underline mt-16px transition",attrs:{href:"https://wiki.unraid.net/My_Servers",target:"_blank",rel:"noopener noreferrer",title:e.$t("checkoutTheMyServersDocs")}},[e._v(e._s(e.$t("learnMore")))]),r("button",{staticClass:"text-12px tracking-wide inline-block mx-8px opacity-60 hover:opacity-100 focus:opacity-100 underline mt-16px transition",attrs:{title:e.$t("closePromo")},on:{click:function(t){return e.SET_IS_PROMO_OPEN(!1)}}},[e._v(" "+e._s(e.$t("noThanks"))+" ")])])])])])],1)])}),[],!1,(function(e){var t=r("5b71");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Yi=v({i18n:he,store:di,name:"UpcTrigger",props:[],data:()=>({}),computed:{...Object(b.c)(["stateData","stateDataKeyActions"]),...Object(b.e)(["isPopUpOpen","state","triggerUPC","wizardWindow"]),copy(){return"BASIC"===this.state||"PLUS"===this.state?this.$t("upcTrigger.upgrade"):this.stateDataKeyActions?this.$t("upcTrigger.default"):""},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateDataKeyActions?this.$t("upcTrigger.open"):""},buttonTitle(){return this.stateDataKeyActions?this.$t("upcTrigger.open"):this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},methods:{...Object(b.b)(["jumpToUpc","closePopUp","openPopUp"]),btnClick(){return this.isPopUpOpen?this.openPopUp(this.wizardWindow):this.jumpToUpc()}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.buttonText?r("div",{staticClass:"flex flex-wrap pl-12px"},[r("p",{staticClass:"w-7/20 pr-12px",domProps:{innerHTML:e._s(e.copy)}}),r("div",{staticClass:"w-13/20 inline-flex flex-row"},[r("button",{attrs:{type:"button",title:e.buttonTitle,disabled:e.triggerUPC},on:{click:function(t){return e.btnClick()}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)]):e._e()])}),[],!1,(function(e){var t=r("22c9");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Qi=r("ab14"),Ki=r.n(Qi),Xi=r("c7db"),Ji=r("4eb5"),Zi=r.n(Ji),eo=r("b692"),to=r.n(eo),ro=r("a3b3"),no=r.n(ro),io=r("8a86"),oo=r.n(io),ao=r("b2a0"),so=r.n(ao),co=r("b045"),lo=r.n(co),uo=r("45b7"),po=r.n(uo),fo=r("73c6"),ho=r.n(fo),mo=r("94d0"),go=r.n(mo),vo=r("607e"),bo=r.n(vo),yo=v({props:{payload:{type:Object},text:{type:String},emphasize:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},components:{UnraidSvgUiKey:zi.a,UnraidSvgUtilNewWindow:no.a}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",class:{"btn-emphasize":e.emphasize},attrs:{title:e.external?""+e.$t("upc.opensNewHttpsWindow.base",[e.text]):null},on:{click:function(t){return e.$emit("click")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiKey",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.text)+" ")],1),e.external?r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):e._e()],1)])}),[],!1,null,null,null,!0).exports,wo=r("a190"),xo=r.n(wo),_o=r("a313"),Eo=r.n(_o),So=r("973e"),ko=r.n(So),Oo=r("44f2"),To=r.n(Oo);var Io=v({components:{UnraidLoading:mi,UnraidSvgUiWarningFill:xo.a,UnraidSvgUtilCheck:Eo.a,UnraidSvgUtilDelete:go.a,UnraidSvgUtilHelp:ko.a,UnraidSvgUtilInfo:lo.a,UnraidSvgUtilNewWindow:no.a,UnraidSvgUtilTerminal:To.a,UnraidSvgUtilEdit:so.a},props:["errorStateMessageVisible","hideotherservers","hideMyServers"],data:()=>({offlineTimer:sessionStorage.getItem("offlineTimer")||!1,restartTriggered:!1}),watch:{apikey(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz()),!t||e||this.hideMyServers||(Fe.debug("[apikey removed] disconnect from unraid-api",{newVal:e,oldVal:t}),this.stopGraphqlClient(t))},noRemoteApikeyRegisteredWithPlg(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.noRemoteApikeyRegisteredWithPlg] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},registered(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},myServersError(e,t){!t||e||this.myServers.length||(Fe.debug("[watch.myServersError] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},graphOnline(e,t){t&&!1===e&&this.timer("watch.graphOnline")}},computed:{...Object(b.c)(["errorTooManyDisks","hasRemoteApikey","keyTypeForPurchase","myServersOutOfDate","noRemoteApikeyRegisteredWithPlg","plgInstallFailed","stateData","validApiKeyLength"]),...Object(b.e)(["apikey","apiVersion","cloud","deviceCount","graphOnline","guid","locale","myServers","myServersError","myServersErrorShowSupportBtn","myServersLoading","pirateKey","registered","servername","signInPayload","state","wanip"]),currentServer(){return this.myServers?this.myServers.filter(e=>e.guid===this.guid?e:null)[0]:{name:this.servername,status:"offline"}},currentServerStatus(){return this.currentServer?this.currentServer.status:"offline"},filteredServers(){return this.myServers?this.hideotherservers?[]:this.myServers.filter(e=>e.guid!==this.guid?e:null).sort((e,t)=>e.name.localeCompare(t.name,"en",{numeric:!0,sensitivity:"base"})):[]},errorToggleText(){return this.stateData.error.message?"EEXPIRED"===this.state?this.stateData.error.heading:this.$t("fixError"):this.pirateKey||this.myServersError||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||this.myServersOutOfDate&&this.myServersOutOfDate.enabled||this.cloud&&this.cloud.error||this.plgInstallFailed?this.computedErrorHeading:""},errorToggleTitle(){if(this.stateData.error||this.stateData.message||this.myServersError||this.myServersOutOfDate&&this.myServersOutOfDate.enabled||this.cloud&&this.cloud.error||this.plgInstallFailed){return`${!this.stateData.error.message&&!this.stateData.message||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||!this.cloud||this.cloud.error?this.computedErrorHeading:this.stateData.humanReadable} • ${this.errorStateMessageVisible?this.$t("upc.myServers.closeDetails"):this.$t("learnMore")}`}return""},computedErrorHeading(){return this.noRemoteApikeyRegisteredWithPlg?this.$t("upc.noRemoteApikeyRegisteredWithPlg.heading"):this.stateData.error.heading?this.stateData.error.heading:this.pirateKey?this.$t("keyFileNotValid"):this.myServersLoading&&this.restartTriggered?"Unraid API":this.myServersError?this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.heading"):this.$t("upc.myServers.errors.myServers.heading"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.myServersOutOfDate.enabled?this.myServersOutOfDate.heading:this.cloud&&this.cloud.error?this.$t("upc.myServers.errors.unraidApi.heading"):this.plgInstallFailed?this.$t("installFailed.heading"):""},computedError(){if(this.noRemoteApikeyRegisteredWithPlg)return this.$t("upc.noRemoteApikeyRegisteredWithPlg.msg");if(this.stateData.error.message)return this.stateData.error.message;if(this.pirateKey)return this.$t("yargYePirate");if(this.myServersLoading&&this.restartTriggered)return this.$t("upc.myServers.restarting");if(this.myServersError)return this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.message"):this.myServersError;if(this.errorTooManyDisks){const e=this.$t("upc.errorTooManyDisks.msg.base");return"Basic"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.basic")} ${e}`:"Plus"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.plus")} ${e}`:e}return this.myServersOutOfDate.enabled?this.myServersOutOfDate.message:this.cloud&&this.cloud.error?this.cloud.error:this.plgInstallFailed?this.$t("installFailed.message"):""},myServersOverflow(){return this.filteredServers.length>8},apiEnableRestartButton(){return!!this.apiVersion&&Ge()(this.apiVersion,"2.42.5")&&this.offlineTimer&&!this.hideMyServers&&!this.graphOnline&&!this.myServersLoading&&!this.stateData.error&&this.myServersError&&(this.myServersError.includes("unraid-api is stopped")||this.myServersError.includes("Disconnected from Unraid API"))},forumSupportLink(){return this.myServersError&&this.myServersError.includes("OK")||this.myServersError&&this.myServersError.includes("SERVER_OVERLOAD")||this.cloud&&this.cloud.error&&(this.cloud.error.includes("OK")||this.cloud.error.includes("SERVER_OVERLOAD"))?"https://forums.unraid.net/topic/112073-my-servers-releases/#comment-1121459":"https://forums.unraid.net/forum/94-my-servers-plugin-support/"}},methods:{...Object(b.b)(["executeUnraidApi","fetchServers","openPopUp","stopGraphqlClient"]),serversPlz(){return Fe.debug("[serversPlz]",{apikey:this.apikey,noRemoteApikeyRegisteredWithPlg:this.noRemoteApikeyRegisteredWithPlg,validApiKeyLength:this.validApiKeyLength,myServersOutOfDate:this.myServersOutOfDate}),this.myServersOutOfDate&&this.myServersOutOfDate.enabled&&(this.myServersOutOfDate.error||Fe.warn(this.myServersOutOfDate.message),this.myServersOutOfDate.error)?Fe.error(this.myServersOutOfDate.message):this.noRemoteApikeyRegisteredWithPlg?Fe.error("[MyServers] remote apikey does not exist"):this.plgInstallFailed?Fe.error("[MyServers] plugin failed to install correctly"):this.validApiKeyLength?(this.fetchServers(),this.timer("serversPlz()")):Fe.error("[MyServers] invalid apikey")},timer(e=""){Fe.debug("[timer] %s",e),setTimeout(()=>{!this.graphOnline&&this.registered&&(this.offlineTimer=!0,sessionStorage.setItem("offlineTimer",Date.now()))},3e4)},triggerRestart(){this.executeUnraidApi({command:"start"}),this.offlineTimer=!1,this.restartTriggered=!0,sessionStorage.removeItem("offlineTimer")}},created(){!this.hideMyServers&&this.registered&&this.serversPlz()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"relative"},[r("ul",{staticClass:"relative"},[e.filteredServers.length&&e.myServersError&&!e.stateData.error?r("li",{staticClass:"text-red text-12px font-semibold px-16px pb-4px"},[r("em",[e._v(e._s(e.$t("upc.myServers.displayingLastKnown")))])]):e._e(),e.computedError?r("li",{key:"current-server-error",staticClass:"w-full"},[r("button",{staticClass:"btn-error group py-8px px-16px flex flex-col",attrs:{title:e.errorToggleTitle},on:{click:function(t){return e.$emit("toggle-error")}}},[r("div",{staticClass:"w-full flex flex-row justify-between items-center"},[r("span",{staticClass:"inline-flex flex-row items-center"},[e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&!e.myServersOutOfDate.error?r("UnraidSvgUtilInfo",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"font-semibold mx-8px"},[e._v(" "+e._s(e.servername)+" ")])],1),e.computedError&&e.errorStateMessageVisible?r("UnraidSvgUtilDelete",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):r("UnraidSvgUtilInfo",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&e.errorStateMessageVisible?r("div",{staticClass:"UnraidUPC-serverError"},[r("div",{staticClass:"text-14px font-semibold pt-4px"},[r("h3",{staticClass:"text-16px mb-4px"},[e._v(e._s(e.errorToggleText))]),r("p",{domProps:{innerHTML:e._s(e.computedError)}})])]):e._e()])],1)]):e._e(),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.pirateKey&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:"zh_CN"===e.locale?"https://unraid.net/zh/%E8%B4%AD%E4%B9%B0-%E6%AD%A3%E7%89%88-unraid-%E8%AE%B8%E5%8F%AF%E8%AF%81":"https://unraid.net/buy-genuine-license",title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("learnMore")]),target:"_blank"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&!e.stateData.error&&e.errorStateMessageVisible&&e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&e.myServersOutOfDate.link?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.myServersOutOfDate.link,title:e.myServersOutOfDate.linkSameTab?"":e.$t("upc.opensNewHttpsWindow.base",[this.myServersOutOfDate.heading]),target:e.myServersOutOfDate.linkSameTab?"":"_blank",rel:"noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilEdit",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.myServersOutOfDate.linkSameTab?"Go to Plugins":e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[(e.myServersError||e.cloud&&e.cloud.error)&&!e.stateData.error&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.forumSupportLink,title:e.$t("upc.opensNewHttpsWindow.base",["My Servers Support"]),target:"_blank",rel:"noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s("My Servers Support")+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[("EEXPIRED"!==e.state&&e.stateData.error||e.pirateKey)&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("contactSupport")])},on:{click:function(t){return e.$emit("contact-support")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("contactSupport"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.noRemoteApikeyRegisteredWithPlg&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signIn")])},on:{click:function(t){return e.openPopUp(e.signInPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.signInActions.resolve"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.apiEnableRestartButton?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.myServers.api.startTitle")},on:{click:function(t){return e.triggerRestart()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilTerminal",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.myServers.api.start"))+" ")],1)])]):e._e()]),e.registered?r("div",{staticClass:"relative z-0",class:{"custom-scrollbar":e.myServersOverflow}},[r("div",{class:{"overflow-y-scroll max-h-310px":e.myServersOverflow}},[r("transition-group",{attrs:{name:"fade",mode:"out-in"}},[e.myServersLoading?r("UnraidLoading",{key:"gql-loading",staticClass:"w-36px my-8px mx-auto",attrs:{height:21,title:e.$t("upc.myServers.loading")}}):e._e(),e.filteredServers?r("div",{key:"filteredServers"},[r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError?e._e():r("li",{key:"current-server",staticClass:"w-full py-8px px-16px flex flex-row items-center",class:{"text-beta":"online"===e.currentServerStatus,"text-orange cursor-not-allowed":"online"!==e.currentServerStatus},attrs:{title:e.$t("upc.myServers.accessLabels.current")+" • "+("online"!==e.currentServerStatus?e.$t("upc.myServers.mothership.notConnected"):e.$t("upc.myServers.mothership.connected"))}},["online"!==e.currentServerStatus?r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUtilCheck",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"ml-8px select-all"},[e._v(e._s(e.currentServer?e.currentServer.name:e.servername))])],1)]),e._l(e.filteredServers,(function(t,n){return r("li",{key:"filteredServer_"+n},["online"===t.status&&e.wanip!==t.wanip&&t.remoteurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.remoteurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.remote")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"online"===t.status&&t.localurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.localurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.local")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"never_connected"!==t.status?r("span",{staticClass:"w-full flex flex-row items-center px-16px py-8px opacity-50 cursor-not-allowed",attrs:{title:"online"===t.status?e.$t("upc.myServers.accessLabels.unavailable"):e.$t("upc.myServers.accessLabels.offline")}},[r("span",{staticClass:"text-red text-14px w-12px mr-8px"},[e._v("×")]),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):e._e()])}))],2):e._e()],1)],1)]):e._e()],1)])}),[],!1,(function(e){var t=r("dce8");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Ao=v({components:{HelperTimeConvert:Ci},computed:{...Object(b.e)(["state"]),...Object(b.c)(["stateData"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-gamma text-12px text-right font-semibold leading-normal flex flex-row items-baseline justify-end pr-16px pt-4px"},[r("HelperTimeConvert"),r("span",{staticClass:"px-12px"},[e._v("•")]),e.stateData.actions.includes("upgrade")?r("button",{staticClass:"text-12px text-gamma hover:text-alpha focus:text-alpha font-semibold transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.upgrade")},on:{click:function(t){return e.$emit("upgrade")}}},[r("h5",[e._v("Unraid OS "),r("em",[r("strong",[e._v(e._s(e.stateData.humanReadable))])])])]):r("h5",[e._v("Unraid OS "),r("em",{class:{"text-red":e.stateData.error||"EEXPIRED"===e.state}},[r("strong",[e._v(e._s(e.stateData.humanReadable))])])]),e.stateData.actions.includes("purchase")?r("button",{staticClass:"text-12px text-orange-dark font-semibold hover:text-alpha focus:text-alpha ml-12px transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.purchase")},on:{click:function(t){return e.$emit("purchase")}}},[e._v(e._s(e.$t("actions.purchase")))]):e._e()],1)}),[],!1,null,null,null,!0).exports;o.default.use(Zi.a);var Ro=v({i18n:he,store:di,name:"UserProfile",mixins:[Xi.mixin],components:{UnraidLoading:mi,UnraidLogoMark:vi,KeyAction:yo,MetaInfo:Ao,MyServers:Io,UnraidSvgUtilLogout:to.a,UnraidSvgUtilNewWindow:no.a,UnraidSvgUtilSelect:oo.a,UnraidSvgUtilEdit:so.a,UnraidSvgUtilInfo:lo.a,UnraidSvgUiWarning:po.a,UnraidSvgUtilGlobe:ho.a,UnraidSvgUtilDelete:go.a,UnraidSvgUtilThumbsUp:bo.a,UiBeta:Ni},props:{serverstate:String,banner:{type:String,default:""},showBannerGradient:{type:String,default:"yes"},bgcolor:[String,Number],displaydesc:{type:String,default:""},locale:String,localeMessages:String,metacolor:String,textcolor:String,theme:{type:String,default:"black"},hideotherservers:{type:String,default:""},apikey:String,apiVersion:String,csrf:String,expiretime:[Number,String],hideMyServers:{type:String,default:null},plgPath:String,regWizTime:String,sendCrashInfo:String,serverdesc:String,servermodel:String,serverupdate:Boolean,uptime:[Number,String]},data:()=>({NODE_ENV:me,avatarFail:!1,copyingIp:!1,copyingIpFailed:!1,dropdownTimeout:"",dropdownVisible:!1,errorStateMessageVisible:!0,showRemoveBtns:!1,removingPlg:!1,hoverImage:!1}),computed:{...Object(b.e)(["avatar","isLaunchpadOpen","isPromoOpen","isPopUpOpen","guid","guidRegistered","popUpWindow","regAtOpen","purchaseWindow","redeemWindow","registered","servername","internalip","state","username","darkTheme","lightTheme","extendTrialPayload","recoverKeyPayload","replaceKeyPayload","signInPayload","signUpPayload","signOutPayload","troubleshootPayload","wizardWindow","messages","myServersEnv","triggerUPC","graphOnline","myServersError","cloud","plgInstalled","signOutTriggered","pirateKey"]),...Object(b.c)(["errorTooManyDisks","noRemoteApikeyRegisteredWithPlg","signedOutWithKey","stateData","myServersOutOfDate","allowedOrigins","server","plgInstallFailed"]),darkMode(){return"black"===this.theme||"azure"===this.theme},usernameButtonText(){return this.stateData.error&&!this.stateData.error.signInToFix&&"EEXPIRED"===!this.state?this.$t("fixError"):this.registered?this.username:""},usernameButtonTitle(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):"EEXPIRED"===this.state?this.$t("upc.trialHasExpiredSeeOptions"):this.stateData.error?this.$t("learnMore"):this.isPopUpOpen&&this.isLaunchpadOpen?this.$t("upc.confirmClosure"):this.cloud&&this.cloud.error?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.cloud.error}`:this.myServersError&&this.registered?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.myServersError}`:this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.isLaunchpadOpen?this.$t("closeLaunchpad"):this.dropdownVisible?this.$t("upc.closeDropdown"):this.$t("upc.openDropdown")},displayKeylineBelowActions(){return!!(this.stateData.actions.includes("startTrial")||this.stateData.actions.includes("purchase")||this.stateData.actions.includes("upgrade")||this.stateData.actions.includes("recover")||this.stateData.actions.includes("replace")||this.stateData.actions.includes("extend"))},extraLinks(){return[...!this.hideMyServers&&this.registered||this.stateData.error.message||this.errorTooManyDisks?[{url:"",text:"",external:!1}]:[],...this.hideMyServers||!this.registered||this.plgInstallFailed?[]:[{url:this.myServersEnv?"https://forums.unraid.net/my-servers-staging/":"https://forums.unraid.net/my-servers/",text:this.$t("upc.extraLinks.myServers"),external:!0,title:this.$t("upc.extraLinks.newTab",[this.$t("upc.extraLinks.myServers")])},{url:"/Settings/ManagementAccess#"+(this.plgPath?"MyServersSettings":"UnraidNetSettings"),text:this.$t("upc.extraLinks.settings.text"),settings:!0,title:this.$t("upc.extraLinks.settings.title")}]]},devEnv(){let e=me;const t="UPC_ENV=",r=document.cookie.split(";");for(let n=0;n{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300),this.dropdownVisible)},...Object(b.b)(["closePopUp","openPopUp","receivePostMessage","setStateFromWebComponentProp","startTrial","stopGraphqlClient","togglePromo","updateServerState","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN","SET_IS_PROMO_OPEN","SET_LOCALE","SET_API_KEY","SET_CSRF","SET_DARK_MODE","SET_EXPIRE_TIME","SET_HIDE_MY_SERVERS","SET_MY_SERVERS_API_VERSION","SET_PLG_PATH","SET_REGWIZ_TIME","SET_SERVERDESC","SET_UPTIME","SET_DEV_MODE","SET_MY_SERVERS_ERROR","SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN"]),closeDropdown(){setTimeout(()=>{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300),this.dropdownVisible=!1},dropdownMouseEnter(){return"ENOKEYFILE"!==this.state&&!this.isLaunchpadOpen&&(clearTimeout(this.dropdownTimeout),!0)},dropdownMouseLeave(){return this.dropdownTimeout=setTimeout(()=>"ENOKEYFILE"!==this.state&&(this.dropdownVisible=!1,setTimeout(()=>{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300)),1e3),!0},autoTriggerLaunchpad(){setTimeout(()=>{const e=`${this.servername}_${this.guid?this.guid.slice(-12):"NO_GUID"}`;sessionStorage.getItem(e)||"ENOKEYFILE"!==this.state||(sessionStorage.setItem(e,"またね"),this.isLaunchpadOpen||this.toggleLaunchpad())},100)},toggleLaunchpad(){const e="unraid-launchpad";if(!document.getElementsByTagName(e).length){const t=document.getElementsByTagName("body")[0],r=document.createElement(e);t.appendChild(r)}const t=()=>{this.dropdownVisible&&(this.dropdownVisible=!1),this.isPopUpOpen&&this.closePopUp(),this.SET_IS_LAUNCHPAD_OPEN(!this.isLaunchpadOpen)};this.isPopUpOpen&&this.isLaunchpadOpen?window.confirm(this.$t("upc.pleaseConfirmClosureYouHaveOpenPopUp"))&&t():t()},onAvatarError(){Fe.error("Avatar failed to load %s",this.avatar),this.avatarFail=!0},async initUserProfile(){if(Fe.debug("[initUserProfile]"),this.setStateFromWebComponentProp(this.serverstate),this.apikey&&this.SET_API_KEY(this.apikey),this.apiVersion&&this.SET_MY_SERVERS_API_VERSION(this.apiVersion),this.csrf&&this.SET_CSRF(this.csrf),this.expiretime&&this.SET_EXPIRE_TIME(this.expiretime),this.hideMyServers&&this.SET_HIDE_MY_SERVERS(this.hideMyServers),this.plgPath&&this.SET_PLG_PATH(this.plgPath),this.regWizTime&&this.SET_REGWIZ_TIME(this.regWizTime),this.serverdesc&&this.SET_SERVERDESC(this.serverdesc),this.uptime&&this.SET_UPTIME(this.uptime),this.devEnv&&this.SET_DEV_MODE(this.devEnv),this.hideMyServers){const e=["color: white","background: linear-gradient(to right, #E22828 0%, #FF8C2F 100%)","font-size: 10px","padding: 4px"].join(";");Fe.log(`%c${this.$t("upc.enhanceYourExperienceWithMyServers")} • https://wiki.unraid.net/My_Servers`,e)}if(this.localeMessages){Fe.debug("[this.locale] %o",this.locale);const[e,t]=Re(decodeURIComponent(this.localeMessages));e&&Fe.error("[initUserProfile.localeMessages] %s","Unable to set locale and locale messages"),this.$i18n.locale=this.locale,this.$i18n.setLocaleMessage(this.locale,t[this.locale]),Fe.debug(`[initUserProfile.$i18n] ${this.$i18n.locale} locale & messages set %o`,t[this.locale]),this.SET_LOCALE(this.locale)}this.signedOutWithKey&&this.regWizTime?(Fe.debug("[initUserProfile] %o",{signedOutWithKey:this.signedOutWithKey,regWizTime:this.regWizTime}),await this.validateGuid()):this.autoTriggerLaunchpad(),sessionStorage.getItem("clickedInstallMyServers")&&(Fe.debug("[initUserProfile] sessionStorage clickedInstallMyServers"),this.toggleLaunchpad()),sessionStorage.getItem("showPromoPostTrialInstall")&&(Fe.debug("[initUserProfile] sessionStorage showPromoPostTrialInstall"),this.togglePromo()),window.addEventListener("message",e=>{this.receivePostMessage({inject:!1,event:e})},!1)},copyIpSuccess(){Fe.debug("[copyIpSuccess] %s",this.internalip),this.copyingIp=!this.copyingIp,setTimeout(()=>{this.copyingIp=!this.copyingIp},750)},copyIpError(){return this.copyingIpFailed=!0,clearTimeout(this.copyingFailedTimeout),this.copyingFailedTimeout=setTimeout(()=>{this.copyingIpFailed=!this.copyingIpFailed},2e3),Fe.error("Unable to copy IP: %s",this.internalip)},hoverCopyFailed(){Fe.debug("[hoverCopyFailed] %s",this.internalip),clearTimeout(this.copyingFailedTimeout)},leaveCopyFailed(){Fe.debug("[leaveCopyFailed] %s",this.internalip),clearTimeout(this.copyingFailedTimeout),this.copyingFailedTimeout=setTimeout(()=>{this.copyingIpFailed=!this.copyingIpFailed},1500)},copyFailedClickaway(){Fe.debug("[copyFailedClickaway] %s",this.internalip),clearTimeout(this.copyingFailedTimeout),this.copyingIpFailed=!1},toggleRemovePlgBtns(){Fe.debug("[toggleRemovePlgBtns]"),this.showRemoveBtns=!this.showRemoveBtns},removePlugin(){try{if(Fe.debug("[removePlugin] %s",this.plgInstalled),"function"==typeof openPlugin)Fe.debug("[removePlugin] using openPlugin %s",this.plgInstalled),openPlugin("plugin remove "+this.plgInstalled.replace("_installFailed",""),this.$t("upc.removeMyServersPlugin"),this.plgInstalled.replace("_installFailed","")+":remove","refresh");else{Fe.debug("[removePlugin] using openBox %s",this.plgInstalled),openBox("/plugins/dynamix.plugin.manager/scripts/plugin&arg1=remove&arg2="+this.plgInstalled.replace("_installFailed",""),this.$t("upc.removeMyServersPlugin"),600,900,!0,"loadlist",this.plgInstalled.replace("_installFailed","")+":remove"),this.removingPlg=!0,window.addEventListener("beforeunload",this.preventClose);const e=setInterval(()=>"none"!==document.getElementById("sb-container").style.display?Fe.debug("⏳ still removing My Servers…⏳"):(Fe.debug("❌ My Servers removed ❌"),window.removeEventListener("beforeunload",this.preventClose),clearInterval(e),window.location.reload()),100)}}catch(e){Fe.error(e)}},preventClose(e){this.removingPlg&&(e.preventDefault(),e.returnValue="",alert(this.$t("regWizPopUp.closingPopUpMayLeadToErrors")))}},watch:{signedOutWithKey(e,t){Fe.debug("[signedOutWithKey]",{newVal:e,oldVal:t,regWizTime:this.regWizTime}),e&&!t&&this.regWizTime&&this.validateGuid()},isPopUpOpen(e,t){this.isLaunchpadOpen&&!e&&t&&!this.regAtOpen&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)},triggerUPC(e){e&&setTimeout(()=>{this.dropdownVisible=!0},150)},graphOnline(e,t){e&&!t&&this.updateServerState()},isPromoOpen(e,t){e&&!t&&(this.dropdownVisible=!1)},signOutTriggered(e,t){e&&this.graphOnline&&(Fe.debug("[watch.signOutTriggered] disconnect from unraid-api",{newVal:e,oldVal:t,apikey:this.apikey}),this.stopGraphqlClient(this.apikey),this.myServersError&&(this.SET_MY_SERVERS_ERROR(""),this.SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN(!1)))}},created(){this.initUserProfile()},beforeMount(){const e=document.getElementsByTagName("body")[0],t={darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"}};let{alpha:r,beta:n,gamma:i}=this.darkMode?t.darkTheme:t.lightTheme;this.textcolor&&(r=this.textcolor),this.bgcolor&&(n=this.bgcolor,e.style.setProperty("--color-customgradient-start",Ki()(n,0)),e.style.setProperty("--color-customgradient-end",Ki()(n,.9))),this.metacolor&&(i=this.metacolor),e.style.setProperty("--color-alpha",r),e.style.setProperty("--color-beta",n),e.style.setProperty("--color-gamma",i),e.style.setProperty("--shadow-beta","0 25px 50px -12px "+Ki()(n,.15)),e.style.setProperty("--ring-offset-shadow","0 0 "+n),e.style.setProperty("--ring-shadow","0 0 "+n)}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"UnraidUPC",class:{"--hasBanner-default":e.banner&&"no"!==e.showBannerGradient&&!e.bgcolor,"--hasBanner-custom":e.banner&&"no"!==e.showBannerGradient&&e.bgcolor},attrs:{id:"UnraidUPC"}},[e.isPopUpOpen&&!e.isLaunchpadOpen?r("div",{staticClass:"absolute z-10 inset-0 flex flex-col items-end justify-center pr-6"},[r("div",{staticClass:"text-center inline-flex flex-col items-center justify-center"},[r("button",{staticClass:"text-14px button button-alt",on:{click:function(t){return e.openPopUp()}}},[e._v(e._s(e.$t("backToPopUp")))]),r("button",{staticClass:"hover:underline text-12px mt-4px",on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))])])]):e._e(),r("MetaInfo",{class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen},on:{purchase:function(t){return e.openPopUp(e.purchaseWindow)},upgrade:function(t){return e.openPopUp(e.purchaseWindow)},signin:function(t){return e.openPopUp(e.signInPayload)}}}),r("div",{staticClass:"relative z-0 flex flex-row items-center justify-end h-full",class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen}},[r("h1",{staticClass:"relative text-18px border-t-0 border-r-0 border-l-0 border-b-2 border-transparent"},[e.displaydesc?[r("span",{attrs:{title:e.servermodel}},[e._v(e._s(e.serverdesc))]),r("span",{staticClass:"text-grey-mid px-8px"},[e._v("•")])]:e._e(),r("span",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.internalip,expression:"internalip",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.copyIpSuccess,expression:"copyIpSuccess",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.copyIpError,expression:"copyIpError",arg:"error"}],staticClass:"cursor-pointer",attrs:{title:e.$t("lanIp",[e.internalip])}},[e._v(e._s(e.servername))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.copyingIp?r("span",{staticClass:"text-12px absolute right-0 bg-gradient-to-r from-red to-orange text-center block w-100px rounded"},[e._v(e._s(e.$t("upc.lanIpCopied")))]):e._e(),e.copyingIpFailed?r("span",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.copyFailedClickaway,expression:"copyFailedClickaway"}],staticClass:"text-12px font-semibold px-4px absolute right-0 bg-gradient-to-r from-red to-orange text-center block rounded",on:{mouseenter:e.hoverCopyFailed,mouseleave:e.leaveCopyFailed}},[e._v("LAN IP: "),r("span",{staticClass:"select-all"},[e._v(e._s(e.internalip))])]):e._e()])],2),r("div",{staticClass:"block w-2px h-24px ml-16px bg-grey-mid"}),r("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeDropdown,expression:"closeDropdown"}],staticClass:"relative flex items-center justify-end h-full",on:{mouseenter:function(t){return e.dropdownMouseEnter()},mouseleave:function(t){return e.dropdownMouseLeave()}}},[r("button",{staticClass:"UnraidUPC-username group text-18px hover:text-alpha focus:text-alpha border border-transparent flex flex-row justify-end items-center h-full px-16px outline-none focus:outline-none",class:{"text-orange-dark":e.isLaunchpadOpen||!e.username&&!e.stateData.error,"text-alpha":e.username&&!e.isLaunchpadOpen,"text-red":e.stateData.error},attrs:{title:e.usernameButtonTitle},on:{click:function(t){return e.usernameAvatarButton()}}},[e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&!e.myServersOutOfDate.error?r("UnraidSvgUtilInfo",{staticClass:"text-red fill-current relative w-14px h-14px mr-8px"}):e.showWarningIcon?r("UnraidSvgUiWarning",{staticClass:"text-red fill-current relative w-24px h-24px mr-8px"}):e._e(),e.usernameButtonText?r("span",{staticClass:"inline-flex items-center bg-transparent border-t-0 border-l-0 border-r-0 border-b-2 border-transparent group-hover:border-orange-dark group-focus:border-orange-dark transition-colors duration-150 ease-in-out"},[e._v(" "+e._s(e.usernameButtonText)+" "),e.registered&&!e.isLaunchpadOpen?r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"}):e._e()],1):e._e(),r("span",{staticClass:"relative z-0 flex items-center justify-center w-36px h-36px rounded-full",class:{"ml-8px":e.usernameButtonText,"bg-transparent":e.registered&&!e.avatarFail,"bg-gradient-to-r from-red to-orange":!e.registered||e.avatarFail},on:{mouseenter:function(t){e.hoverImage=!0},mouseleave:function(t){e.hoverImage=!1}}},[e.registered&&!e.avatarFail?r("img",{staticClass:"absolute z-10 inset-0 w-36px h-36px rounded-full overflow-hidden",attrs:{src:e.avatar,alt:""+e.$t("upc.avatarAlt",[e.username])},on:{error:e.onAvatarError}}):[e.hoverImage?r("UnraidLoading",{staticClass:"relative z-0 w-28px",attrs:{title:e.usernameButtonTitle,"gradient-start":"#fff","gradient-stop":"#fff",height:28}}):r("UnraidLogoMark",{staticClass:"relative z-0 w-28px",attrs:{title:e.usernameButtonTitle,"gradient-start":"#fff","gradient-stop":"#fff"}})]],2),e.usernameButtonText?e._e():r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"})],1),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.dropdownVisible,expression:"dropdownVisible"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":e.darkMode,"border-grey-light":!e.darkMode}},[e.hideMyServers?e._e():r("header",{staticClass:"text-14px pt-16px px-16px rounded-t"},[r("h5",{staticClass:"text-18px leading-none inline-flex flex-row items-center"},[r("span",{staticClass:"font-semibold"},[e._v(e._s(e.$t("upc.myServers.heading")))]),r("ui-beta",{staticClass:"ml-8px"}),e.myServersEnv?r("span",{staticClass:"ml-8px",attrs:{title:"API • "+e.myServersEnv}},[e._v("⚙️")]):e._e(),e.devEnv?r("span",{staticClass:"ml-8px",attrs:{title:e.devEnv}},[e._v("⚠️")]):e._e()],1)]),r("ul",{staticClass:"list-reset my-8px p-0"},[e.hideMyServers||e.registered?e._e():[r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signInUp")])},on:{click:function(t){return e.openPopUp(e.wizardWindow)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilGlobe",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("signInUp"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])],e.displayKeylineBelowActions?[e.stateData.actions.includes("startTrial")?r("KeyAction",{attrs:{text:e.$t("actions.startTrial")},on:{click:function(t){return e.startTrial()}}}):e._e(),e.stateData.actions.includes("purchase")?[r("KeyAction",{attrs:{text:e.$t("actions.purchase")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}),r("KeyAction",{attrs:{text:e.$t("actions.redeemActivationCode")},on:{click:function(t){return e.openPopUp(e.redeemWindow)}}})]:e._e(),e.stateData.actions.includes("upgrade")?r("KeyAction",{attrs:{text:e.$t("actions.upgrade")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("recover")?r("KeyAction",{attrs:{text:e.$t("actions.recover")},on:{click:function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")?r("KeyAction",{attrs:{text:e.$t("actions.replace")},on:{click:function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("extend")?r("KeyAction",{attrs:{text:e.$t("actions.extend")},on:{click:function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]:e._e(),!e.hideMyServers&&e.registered||e.pirateKey||e.stateData.error.message||e.errorTooManyDisks||e.myServersOutOfDate.enabled||e.plgInstallFailed?r("MyServers",{attrs:{hideMyServers:e.hideMyServers,errorStateMessageVisible:e.errorStateMessageVisible,hideotherservers:e.hideotherservers},on:{"contact-support":function(t){return e.openPopUp(e.troubleshootPayload)},"toggle-error":function(t){e.errorStateMessageVisible=!e.errorStateMessageVisible}}}):e._e(),e._l(e.extraLinks,(function(t,n){return[t.url?r("li",{key:n},[r("a",{staticClass:"flex flex-row items-center",attrs:{href:t.url,target:t.external?"_blank":"",rel:t.external?"noopener noreferrer":"",title:t.title}},[t.external?r("UnraidSvgUtilNewWindow",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),t.settings?r("UnraidSvgUtilEdit",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),t.info?r("UnraidSvgUtilInfo",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),e._v(" "+e._s(t.text)+" ")],1)]):r("div",{key:n+"_else",staticClass:"mx-12px"},[r("hr",{staticClass:"w-full h-2px my-8px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]})),e.hideMyServers?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.enhanceYourExperienceWithMyServers")},on:{click:function(t){return e.togglePromo()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilInfo",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}),r("span",[e._v(" "+e._s(e.$t("upc.enhanceYourExperienceWithMyServers"))+" "),r("ui-beta",{staticClass:"inline-block transform scale-90 opacity-70",attrs:{colorClasses:"text-beta border-beta group-hover:text-white group-focus:text-white group-hover:border-white group-focus:border-white"}})],1)],1)])]):[e.registered&&!e.plgInstallFailed?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("actions.signOutUnraidNet")])},on:{click:function(t){return e.openPopUp(e.signOutPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilLogout",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("actions.signOutUnraidNet"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):r("li",{staticClass:"relative"},[e.showRemoveBtns?e.showRemoveBtns&&!e.removingPlg?r("div",{staticClass:"flex flex-col bg-alpha"},[r("p",{staticClass:"text-12px text-center font-semibold px-16px pb-8px"},[r("em",[e._v(e._s(e.$t("upc.confirmMyServersPluginRemoval")))])]),r("div",{staticClass:"flex flex-row"},[r("button",{staticClass:"group relative bg-transparent flex flex-row justify-between items-center",attrs:{title:e.$t("upc.continueUsingMyServers")},on:{click:function(t){return e.toggleRemovePlgBtns()}}},[e._v(" "+e._s(e.$t("regWizPopUp.forms.cancel"))+" "),r("UnraidSvgUtilThumbsUp",{staticClass:"text-white opacity-0 group-hover:opacity-100 group-focus:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px"})],1),r("button",{staticClass:"btn-remove group relative flex flex-row justify-between items-center",attrs:{title:e.$t("upc.confirmMyServersPluginRemoval")},on:{click:function(t){return e.removePlugin()}}},[e._v(" "+e._s(e.$t("regWizPopUp.forms.confirm"))+" "),r("UnraidSvgUtilDelete",{staticClass:"text-white opacity-0 group-hover:opacity-100 group-focus:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px"})],1)])]):r("button",{attrs:{disabled:""}},[e._v(" "+e._s(e.$t("upc.removingMyServersPlugin"))+" ")]):r("button",{staticClass:"text-black flex flex-row items-center justify-between",attrs:{title:e.$t("upc.removeMyServersPlugin")},on:{click:function(t){return e.toggleRemovePlgBtns()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilDelete",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.removeMyServersPlugin"))+" ")],1)])])]],2)])])],1)])],1)}),[],!1,(function(e){var t=r("e519");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Co=v({i18n:he,store:di,name:"WanIpCheck",props:{phpWanIp:{type:String,default:""}},computed:{...Object(b.e)(["wanip","site"]),...Object(b.c)(["isRemoteAccess"]),loading(){return!this.wanip}},methods:{...Object(b.b)(["getWanIp"])},created(){Fe.debug("[🍣 WanIpCheck 🍣]"),this.wanip||this.getWanIp()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.loading?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.checking")+"…")}}):[e.phpWanIp?[e.isRemoteAccess?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.phpWanIp]))}}):e.phpWanIp!==e.wanip||e.isRemoteAccess?r("span",{staticClass:"mismatch",domProps:{innerHTML:e._s(e.$t("wanIpCheck.mismatch",[e.phpWanIp,e.wanip]))}}):r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.wanip]))}})]:r("span",{staticClass:"error",domProps:{innerHTML:e._s(e.$t("wanIpCheck.resolveError"))}})]],2)}),[],!1,(function(e){var t=r("6e03");t.__inject__&&t.__inject__(e)}),"4ca8352c",null,!0).exports;window.customElements.define("unraid-authed",g(o.default,fi)),window.customElements.define("unraid-launchpad",g(o.default,Di)),window.customElements.define("unraid-promo",g(o.default,qi)),window.customElements.define("unraid-upc-trigger",g(o.default,Yi)),window.customElements.define("unraid-user-profile",g(o.default,Ro)),window.customElements.define("unraid-wan-ip-check",g(o.default,Co))},"5b71":function(e,t,r){"use strict";r.r(t);var n=r("c725");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"5d74":function(e,t,r){e.exports={options:{},ssr:function(e,t){var r=e.data,n=r.attrs,i=n.symbol,o=n.size,a=this.getAttributes(o);a&&(r.attrs=Object.assign({},r.attrs,a)),o&&delete r.attrs.size,i&&delete r.attrs.symbol;var s=r.class,c=r.staticClass||"";c+=s?Object.keys(s).join(" "):"",this.hasClass(c)||(r.staticClass=r.staticClass?r.staticClass+" "+this.options.class:this.options.class);var l=e.context.$createElement("use",{attrs:{href:this.getHref(i)}});Array.isArray(e.children)?e.children.push(l):e.children=[l]},install:function(e,t){void 0===t&&(t={}),this.options.class=t.class||"icon",this.options.url=void 0===t.url?"/assets/svg/sprite.svg":t.url;var r=this;e.directive("svg",{bind:function(e,t,n){var i=t.value||n.data.attrs.symbol,o=n.data.attrs&&n.data.attrs.size,a=r.getAttributes(o);a&&(e.setAttribute("viewBox",a.viewBox),e.setAttribute("width",a.width),e.setAttribute("height",a.height)),i&&e.removeAttribute("symbol"),o&&e.removeAttribute("size");var s=e.getAttribute("class");if(r.hasClass(s)||e.setAttribute("class",s?s+" "+r.options.class:r.options.class),!e||null===e.querySelector("use")){var c=document.createElementNS("http://www.w3.org/2000/svg","use"),l=r.getHref(i);c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),c.setAttribute("href",l),e.appendChild(c)}},update:function(e,t,n){var i=r.getHref(t.value||n.data.attrs.symbol),o=e&&e.querySelector("use");if(o){if(o.getAttribute("href")===i)return!1;var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttribute("href",i),e.replaceChild(a,o)}}})},getAttributes:function(e){if(!e)return null;var t=e.toString().replace(/( |, |,)/g," ").split(" "),r=t.length;if(3===r||r>4)return console.warn('[vue-svg-sprite] size: "'+e+'" is not valid'),null;var n=[];n[0]=r<4?0:t[0],n[1]=r<4?0:t[1];var i=n[2]=r<4?t[0]:t[2];return{height:n[3]=t[r-1],viewBox:n.join(" "),width:i}},hasClass:function(e){var t=this.options.class;return!!e&&e.split(" ").some((function(e){var r=e.split(/(-|_)/)[0];return-1!==r.indexOf(t)&&r.length===t.length}))},getHref:function(e){return""===this.options.url?"#"+e:this.options.url+"#"+e}}},"607e":function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M0 7h2v8l-2 1V7zm3.5 7V7C5 6.7 6.365 4.915 7.595 1.646A1.767 1.767 0 019.25.5c.69 0 1.25.56 1.25 1.25V6h3.09a2 2 0 011.966 2.369l-.75 4A2 2 0 0112.84 14H3.5z"}})]))}}},6210:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(i,null,!0),i}(r("5a0c"))},"626e":function(e,t,r){"use strict";var n=[/passw(or)?d/i,/^pw$/,/^pass$/i,/secret/i,/token/i,/api[-._]?key/i,/session[-._]?id/i,/^connect\.sid$/],i=[/^\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/];t.key=function(e){return n.some((function(t){return t.test(e)}))},t.value=function(e){return i.some((function(t){return t.test(e)}))}},"633a":function(e,t,r){"use strict";(function(e){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,o])}else r(e)};o()}(a(t.middlewares),t)}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,r){if("function"==typeof e)try{return t(e.call(null))}catch(e){return r(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){r.checkOperationOptions(e,t),r.operations[n]&&(r.operations[n]={options:e,handler:t},r.sendMessage(n,b.default.GQL_START,e))})).catch((function(e){r.unsubscribe(n),t(r.formatErrors(e))})),n},e.prototype.getObserver=function(e,t,r){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return r&&r()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new l({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var r=e.query,n=e.variables,i=e.operationName;if(!r)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!p.default(r)&&!h.getOperationAST(r,i)||i&&!p.default(i)||n&&!d.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,r){return{id:e,type:t,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:f.print(r.query)}):r}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,r){this.sendMessageRaw(this.buildMessage(e,t,r))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,b.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var r=e.data;t.processReceivedData(r)}},e.prototype.processReceivedData=function(e){var t,r;try{r=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[r])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(t.payload),null),delete this.operations[r];break;case b.default.GQL_DATA:var o=t.payload.errors?n(n({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[r].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=y}).call(this,r("c8ba"))},6788:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M0 6l5.584-.5L8 0l2.5 5.5L16 6l-4 4 1 6-5-3.5L3 16l1-6z"}})]))}}},6981:function(e,t,r){ +/*! + * clipboard.js v2.0.8 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */ +e.exports=function(){return t={134:function(e,t,r){"use strict";r.d(t,{default:function(){return h}}),t=r(279);var n=r.n(t),i=(t=r(370),r.n(t)),o=(t=r(817),r.n(t));function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;rn(e,t,r)<=0},"6e03":function(e,t,r){"use strict";r.r(t);var n=r("9c76");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"73c6":function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{d:"M8.763 5.447c-.024-.044.228-.068.272-.068.05.006-.13.302-.272.068zM7.328 3.4l.072-.02c.043.036-.048.063-.034.09.057.104.014.166.005.222-.009.056-.069.032-.099.062-.035.044.172.05.175.056.007.022-.25.06-.203.114.064.091.55-.13.472-.117.15-.075.02-.083-.065-.127-.028-.143-.052-.364-.142-.453l.059-.068c-.137-.2-.24.241-.24.241zM16 8A8 8 0 110 8a8 8 0 0116 0zm-5.54-3.58c-.004-.098-.127-.19-.255-.021-.09.116-.074.292-.122.371-.07.117.378.226.378.116.016-.185.488-.042.58-.017.165.046.428-.15.14-.254-.236-.086-.361-.179-.382-.348 0 0 .125-.118.07-.111-.145.018-.409.524-.409.263zM14.657 8c0-.69-.118-1.387-.238-1.755a.408.408 0 00-.239-.252c-.17-.066-.891.398-1 .17-.071-.153-.216.097-.381.005-.08-.044-.303-.343-.404-.307-.206.074.316.643.459.718.134-.102.568-.31.661-.026.179.536-.491 1.124-.834 1.433-.512.463-.416-.3-.764-.568-.184-.14-.182-.44-.367-.543-.083-.047-.462-.484-.459-.542l-.011.11c-.063.048-.196-.178-.21-.214 0 .197.32.51.426.668.18.27.277.663.499.884.118.118.572.609.69.598.128-.011.535-.305.607-.288.43.101-1.01 2.136-1.147 2.388-.113.212.092.734.075.984-.02.289-.247.382-.462.54-.23.168-.177.496-.37.616-.345.212-.593.902-1.083.899-.144 0-.76.24-.84.005-.063-.171-.147-.3-.236-.469-.086-.165-.01-.337-.115-.483-.073-.101-.317-.331-.339-.451-.001-.103.078-.417.187-.472.153-.078.03-.305.01-.437-.031-.236-.177-.431-.353-.568-.259-.199-.125-.358-.064-.642 0-.136-.083-.315-.266-.262-.376.11-.262-.293-.536-.275-.197.014-.358.14-.542.195-.23.069-.466-.055-.694-.084-.938-.118-1.244-1.19-1-1.964.025-.126-.076-.361-.032-.459.106-.235.32-.498.508-.676.106-.1.241-.075.365-.153.191-.12.194-.368.381-.52.267-.217.631-.212.979-.259.185-.025.89-.177 1.002-.04 0 .025.127.403-.013.381.289.016.7.5.974.386.141-.058.09-.49.378-.282.175.126.958.182 1.12.046.1-.082.156-.62.035-.68.077.076-.407.082-.453.065-.08-.03-.154.076-.283.017.077.036-.43-.236-.145-.445-.12.087-.231-.025-.36.071-.088.072.042.12-.085.183-.201.102-.353-.35-.43-.401-.077-.051-.675-.471-.513-.197l.526.523c-.026.017-.138-.19-.138-.039.036-.09.014.386-.069.231-.037-.059.06-.092.004-.178 0-.057-.152-.112-.181-.151-.084-.103-.305-.331-.425-.386-.033-.015-.51.058-.55.073a1.186 1.186 0 00-.119.208 1.346 1.346 0 00-.279.142l-.105.236c-.045.04-.51.194-.512.2.019-.05-.325-.114-.302-.214.025-.11.142-.454.112-.579-.032-.131.716.19.764-.157.019-.15.03-.324-.209-.35.045.006.463-.164.533-.24.097-.112.32-.294.482-.294.19 0 .149-.276.236-.41.088.035-.046.25.058.338-.006-.069.297.038.326.022.07-.036.456-.015.396-.196-.066-.185.034-.13.121-.169-.015.006.227-.413.268-.275-.029-.142-.28.049-.369.042-.203-.016-.117-.347-.04-.444.059-.076-.162-.17-.165-.024-.004.22-.208.418-.16.71.071.439-.49-.106-.54-.076-.187.113-.34-.143-.243-.296.099-.157.337-.15.435-.318.07-.118.15-.256.257-.346.356-.3.455-.06.81-.028.348.032.118.083.07.216-.046.127.19.172.272.066.047-.061.153-.215.199-.329.06-.148.6-.131.223-.357-.25-.149-1.336-.448-2.064-.448-.158 0-.268.175-.388.274-.237.197-.845.583-1.183.466-.346-.12-1.087.44-1.205.444-.044.002.002-.423.238-.454-.102.015.832-.472.806-.573-.03-.12-1.866.548-1.784.682.04.061.2.061-.01.196-.12.073-.248.534-.361.534-.337.147-.358-.29-.733.273l-.596.24a6.64 6.64 0 00-1.72 3.455c-.008.053.223.15.253.187.075.089.075.474.111.6.092.319.32.496.494.786.102.173.273.61.219.791.072-.119.713.543.83.681.277.325.49.718.041 1.04-.144.104.22.752.032.912l-.24.062c-.238.146-.13.504.014.654A6.66 6.66 0 0014.658 8zM6.986 3.762c.083-.037.195-.035.207-.147.01-.098.03-.03.054-.066.023-.036-.045-.092-.074-.098-.042-.009-.072.046-.099.07l-.048.012-.045.058.005.032-.058.071c-.057.056.001.093.058.068z"}})]))}}},7506:function(e,t,r){"use strict";r.r(t),r.d(t,"print",(function(){return o}));var n=r("2f6c"),i=r("04b4");function o(e){return Object(n.b)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=u("(",c(e.variableDefinitions,", "),")"),i=c(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?c([t,c([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+u(" = ",n)+u(" ",c(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return c([u("",t,": ")+r+u("(",c(n,", "),")"),c(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return c(["...",u("on ",t),c(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",c(n,", "),")")," ")+"on ".concat(r," ").concat(u("",c(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?Object(i.b)(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return c(["schema",c(t," "),l(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return c(["scalar",e.name,c(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return c(["type",t,u("implements ",c(r," & ")),c(n," "),l(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(f(r)?u("(\n",p(c(r,"\n")),"\n)"):u("(",c(r,", "),")"))+": "+n+u(" ",c(i," "))})),InputValueDefinition:s((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return c([t+": "+r,u("= ",n),c(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return c(["interface",t,c(r," "),l(n)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.types;return c(["union",t,c(r," "),n&&0!==n.length?"= "+c(n," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.values;return c(["enum",t,c(r," "),l(n)]," ")})),EnumValueDefinition:s((function(e){return c([e.name,c(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return c(["input",t,c(r," "),l(n)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(f(r)?u("(\n",p(c(r,"\n")),"\n)"):u("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return c(["extend schema",c(t," "),l(r)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return c(["extend type",t,u("implements ",c(r," & ")),c(n," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return c(["extend interface",t,c(r," "),l(n)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return c(["extend union",t,c(r," "),n&&0!==n.length?"= "+c(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return c(["extend enum",t,c(r," "),l(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return c(["extend input",t,c(r," "),l(n)]," ")}};function s(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function l(e){return e&&0!==e.length?"{\n"+p(c(e,"\n"))+"\n}":""}function u(e,t,r){return t?e+t+(r||""):""}function p(e){return e&&" "+e.replace(/\n/g,"\n ")}function d(e){return-1!==e.indexOf("\n")}function f(e){return e&&e.some(d)}},"786a":function(e,t){var r=e.exports=function(e){return new n(e)};function n(e){this.value=e}function i(e,t,r){var n=[],i=[],s=!0;return function e(p){var d=r?o(p):p,f={},h=!0,m={node:d,node_:p,path:[].concat(n),parent:i[i.length-1],parents:i,key:n.slice(-1)[0],isRoot:0===n.length,level:n.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(h=!1)},delete:function(e){delete m.parent.node[m.key],e&&(h=!1)},remove:function(e){c(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(h=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){s=!1},block:function(){h=!1}};if(!s)return m;function g(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=a(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:u,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=d(t,u);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof _}(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(s("iterator")&&(n=d(t,l)))return new r((function(e){m((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(e.next(c),e.closed)return}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){m((function(){if(!e.closed){for(var r=0;r2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);return 0===r.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(e)+"]":"{ "+r.map((function(r){return r+": "+a(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}function s(e){var t=e[String(n.a)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}},b045:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M8 16A8 8 0 118 0a8 8 0 010 16zM6.989 3v2.002h2V3h-2zM7 13h2V7H7a405.483 405.483 0 000 6z"}})]))}}},b2a0:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M5.362 8.44l3-3.027L3.618.626A6.32 6.32 0 0110.86 1.88c1.958 1.977 2.373 4.923 1.243 7.31L16 13.126V16h-3.15l-3.745-3.78a6.32 6.32 0 01-7.242-1.256C-.095 8.987-.51 6.04.62 3.654L5.362 8.44z"}})]))}}},b4e1:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".custom-scrollbar{scrollbar-width:thin;scrollbar-color:#ff8c2f var(--color-alpha)}.custom-scrollbar::-webkit-scrollbar{width:10px}.custom-scrollbar::-webkit-scrollbar-track{background:var(--color-alpha);border:0}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:#ff8c2f;border-radius:4px;border:0}",""]),e.exports=t},b692:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M7 6h4V2l5 6-5 6v-4H7v2h2v4H0V0h9v4H7v2zm0 0V2H2v12h5v-4H4V6h3z"}})]))}}},c6b3:function(e,t,r){"use strict";(function(e){var r=function(e,t){for(var r=0,n=t.length,i=e.length;ri)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=u},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return(i?"/":"")+(t=r(n(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return(e=r(n(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=a+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("4362"))},dfd4:function(e,t,r){"use strict";r.r(t);var n=r("a0be");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},e072:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};return t.default.locale(r,null,!0),r}(r("5a0c"))},e12f:function(e,t){const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{}},e321:function(e,t,r){var n=r("b4e1");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("35d6").default;e.exports.__inject__=function(e){i("7603b910",n,e)}},e519:function(e,t,r){"use strict";r.r(t);var n=r("2a99");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},e5b7:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return t.default.locale(r,null,!0),r}(r("5a0c"))},eec3:function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)>0},ef7a:function(e,t,r){"use strict";r.r(t);var n=r("945a");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},f06c:function(e,t,r){const n=r("df02");e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},f153:function(e,t,r){"use strict";r.r(t);var n=r("10f4");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},f39f:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:u,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=d(t,u);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof _}(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(s("iterator")&&(n=d(t,l)))return new r((function(e){m((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(e.next(c),e.closed)return}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){m((function(){if(!e.closed){for(var r=0;r2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);return 0===r.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(e)+"]":"{ "+r.map((function(r){return r+": "+a(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}function s(e){var t=e[String(n.a)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}},b045:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M8 16A8 8 0 118 0a8 8 0 010 16zM6.989 3v2.002h2V3h-2zM7 13h2V7H7a405.483 405.483 0 000 6z"}})]))}}},b2a0:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M5.362 8.44l3-3.027L3.618.626A6.32 6.32 0 0110.86 1.88c1.958 1.977 2.373 4.923 1.243 7.31L16 13.126V16h-3.15l-3.745-3.78a6.32 6.32 0 01-7.242-1.256C-.095 8.987-.51 6.04.62 3.654L5.362 8.44z"}})]))}}},b4e1:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".custom-scrollbar{scrollbar-width:thin;scrollbar-color:#ff8c2f var(--color-alpha)}.custom-scrollbar::-webkit-scrollbar{width:10px}.custom-scrollbar::-webkit-scrollbar-track{background:var(--color-alpha);border:0}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:#ff8c2f;border-radius:4px;border:0}",""]),e.exports=t},b692:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M7 6h4V2l5 6-5 6v-4H7v2h2v4H0V0h9v4H7v2zm0 0V2H2v12h5v-4H4V6h3z"}})]))}}},c6b3:function(e,t,r){"use strict";(function(e){var r=function(e,t){for(var r=0,n=t.length,i=e.length;ri)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=u},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return(i?"/":"")+(t=r(n(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return(e=r(n(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=a+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("4362"))},dfd4:function(e,t,r){"use strict";r.r(t);var n=r("a0be");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},e072:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};return t.default.locale(r,null,!0),r}(r("5a0c"))},e12f:function(e,t){const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{}},e321:function(e,t,r){var n=r("b4e1");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("35d6").default;e.exports.__inject__=function(e){i("7603b910",n,e)}},e519:function(e,t,r){"use strict";r.r(t);var n=r("2a99");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},e5b7:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return t.default.locale(r,null,!0),r}(r("5a0c"))},eec3:function(e,t,r){const n=r("f06c");e.exports=(e,t,r)=>n(e,t,r)>0},ef7a:function(e,t,r){"use strict";r.r(t);var n=r("945a");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},f06c:function(e,t,r){const n=r("df02");e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},f153:function(e,t,r){"use strict";r.r(t);var n=r("10f4");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},f39f:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n