diff --git a/home-assistant-polymer b/home-assistant-polymer index fa9c6a765..59f3f819a 160000 --- a/home-assistant-polymer +++ b/home-assistant-polymer @@ -1 +1 @@ -Subproject commit fa9c6a765ab879c25e947b01dec8c4352275d134 +Subproject commit 59f3f819a6190f71cb203941179c92b2d0bf6a60 diff --git a/supervisor/api/panel/entrypoint.js b/supervisor/api/panel/entrypoint.js index 7a460825e..12e6218f4 100644 --- a/supervisor/api/panel/entrypoint.js +++ b/supervisor/api/panel/entrypoint.js @@ -1,9 +1,9 @@ try { - new Function("import('/api/hassio/app/frontend_latest/entrypoint.f7e32a92.js')")(); + new Function("import('/api/hassio/app/frontend_latest/entrypoint.e529ad28.js')")(); } catch (err) { var el = document.createElement('script'); - el.src = '/api/hassio/app/frontend_es5/entrypoint.31c760ab.js'; + el.src = '/api/hassio/app/frontend_es5/entrypoint.9696f64f.js'; document.body.appendChild(el); } \ No newline at end of file diff --git a/supervisor/api/panel/entrypoint.js.gz b/supervisor/api/panel/entrypoint.js.gz index 497d78584..a95c6feaa 100644 Binary files a/supervisor/api/panel/entrypoint.js.gz and b/supervisor/api/panel/entrypoint.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.14b9f59fb8b277179b63.js b/supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js similarity index 96% rename from supervisor/api/panel/frontend_es5/chunk.14b9f59fb8b277179b63.js rename to supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js index e8d782953..613572c79 100644 --- a/supervisor/api/panel/frontend_es5/chunk.14b9f59fb8b277179b63.js +++ b/supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js @@ -1,2 +1,2 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[226],{98226:function(e,r,t){"use strict";t.r(r);var n,i,o,s=t(50424),a=t(54211),c=t(15493),l=(t(48811),t(83849)),u=t(55358);function f(e){return(f="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 d(e,r){return D(e)||function(e,r){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==t)return;var n,i,o=[],s=!0,a=!1;try{for(t=t.call(e);!(s=(n=t.next()).done)&&(o.push(n.value),!r||o.length!==r);s=!0);}catch(c){a=!0,i=c}finally{try{s||null==t.return||t.return()}finally{if(a)throw i}}return o}(e,r)||S(e,r)||C()}function p(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}function h(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function m(e,r){return(m=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function y(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=T(e);if(r){var i=T(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return v(this,t)}}function v(e,r){return!r||"object"!==f(r)&&"function"!=typeof r?b(e):r}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){k=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(n){r.forEach((function(r){var i=r.placement;if(r.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:t;this.defineClassElement(o,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var n=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!E(e))return t.push(e);var r=this.decorateElement(e,i);t.push(r.element),t.push.apply(t,r.extras),n.push.apply(n,r.finishers)}),this),!r)return{elements:t,finishers:n};var o=this.decorateConstructor(t,r);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,r,t){var n=r[e.placement];if(!t&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,r){for(var t=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,r),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[n])(i)||i);if(void 0!==o.finisher&&t.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(r=e.length);for(var t=0,n=new Array(r);t\n ',"\n "])),this.supervisor.localize("my.faq_link")))}},{kind:"method",key:"render",value:function(){return this._error?(0,s.dy)(i||(i=p([""])),this._error):(0,s.dy)(o||(o=p([""])))}},{kind:"method",key:"_createRedirectUrl",value:function(e){var r=this._createRedirectParams(e);return"".concat(e.redirect).concat(r)}},{kind:"method",key:"_createRedirectParams",value:function(e){var r=this,t=(0,c.Q2)();if(!e.params&&!Object.keys(t).length)return"";var n={};return Object.entries(e.params||{}).forEach((function(e){var i=d(e,2),o=i[0],s=i[1];if(!t[o]||!r._checkParamType(s,t[o]))throw Error();n[o]=t[o]})),"?".concat((0,c.ou)(n))}},{kind:"method",key:"_checkParamType",value:function(e,r){return"string"===e||"url"===e&&(r&&r===(0,a.N)(r))}}]}}),s.oi)},54211:function(e,r){"use strict";r.N=void 0;var t=/^(%20|\s)*(javascript|data|vbscript)/im,n=/[^\x20-\x7EÀ-ž]/gim,i=/^([^:]+):/gm,o=[".","/"];r.N=function(e){if(!e)return"about:blank";var r=e.replace(n,"").trim();if(function(e){return o.indexOf(e[0])>-1}(r))return r;var s=r.match(i);if(!s)return r;var a=s[0];return t.test(a)?"about:blank":r}}}]); -//# sourceMappingURL=chunk.14b9f59fb8b277179b63.js.map \ No newline at end of file +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[226],{98226:function(e,r,t){"use strict";t.r(r);var n,i,o,s=t(50424),a=t(54211),c=t(15493),l=(t(48811),t(83849)),u=t(55358);function f(e){return(f="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 d(e,r){return D(e)||function(e,r){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==t)return;var n,i,o=[],s=!0,a=!1;try{for(t=t.call(e);!(s=(n=t.next()).done)&&(o.push(n.value),!r||o.length!==r);s=!0);}catch(c){a=!0,i=c}finally{try{s||null==t.return||t.return()}finally{if(a)throw i}}return o}(e,r)||S(e,r)||C()}function p(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}function h(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function m(e,r){return(m=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function y(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=T(e);if(r){var i=T(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return v(this,t)}}function v(e,r){return!r||"object"!==f(r)&&"function"!=typeof r?b(e):r}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){k=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(n){r.forEach((function(r){var i=r.placement;if(r.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:t;this.defineClassElement(o,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var n=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!E(e))return t.push(e);var r=this.decorateElement(e,i);t.push(r.element),t.push.apply(t,r.extras),n.push.apply(n,r.finishers)}),this),!r)return{elements:t,finishers:n};var o=this.decorateConstructor(t,r);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,r,t){var n=r[e.placement];if(!t&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,r){for(var t=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,r),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[n])(i)||i);if(void 0!==o.finisher&&t.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(r=e.length);for(var t=0,n=new Array(r);t\n ',"\n "])),this.supervisor.localize("my.faq_link")))}},{kind:"method",key:"render",value:function(){return this._error?(0,s.dy)(i||(i=p([""])),this._error):(0,s.dy)(o||(o=p([""])))}},{kind:"method",key:"_createRedirectUrl",value:function(e){var r=this._createRedirectParams(e);return"".concat(e.redirect).concat(r)}},{kind:"method",key:"_createRedirectParams",value:function(e){var r=this,t=(0,c.Q2)();if(!e.params&&!Object.keys(t).length)return"";var n={};return Object.entries(e.params||{}).forEach((function(e){var i=d(e,2),o=i[0],s=i[1];if(!t[o]||!r._checkParamType(s,t[o]))throw Error();n[o]=t[o]})),"?".concat((0,c.ou)(n))}},{kind:"method",key:"_checkParamType",value:function(e,r){return"string"===e||"url"===e&&(r&&r===(0,a.N)(r))}}]}}),s.oi)},54211:function(e,r){"use strict";r.N=void 0;var t=/^(%20|\s)*(javascript|data|vbscript)/im,n=/[\u0000-\u001F\u007F-\u009F]/gim,i=/^([^:]+):/gm,o=[".","/"];r.N=function(e){if(!e)return"about:blank";var r=e.replace(n,"").trim();if(function(e){return o.indexOf(e[0])>-1}(r))return r;var s=r.match(i);if(!s)return r;var a=s[0];return t.test(a)?"about:blank":r}}}]); +//# sourceMappingURL=chunk.022ea7e862bfe9729114.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js.gz b/supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js.gz new file mode 100644 index 000000000..95ec3604c Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js.map b/supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js.map new file mode 100644 index 000000000..d06898fca --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.022ea7e862bfe9729114.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.022ea7e862bfe9729114.js","sources":["webpack://home-assistant-frontend/chunk.022ea7e862bfe9729114.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js.gz b/supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js.gz deleted file mode 100644 index 8eb932c6b..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js.map b/supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js.map deleted file mode 100644 index 79f37d0ee..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.03b1407708a3c70f8eb1.js","sources":["webpack://home-assistant-frontend/chunk.03b1407708a3c70f8eb1.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js.gz b/supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js.gz deleted file mode 100644 index 3731ef52d..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js.map b/supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js.map deleted file mode 100644 index 416b52bb0..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.0a893a5a869ba682040b.js","sources":["webpack://home-assistant-frontend/chunk.0a893a5a869ba682040b.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js b/supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js rename to supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js index a4a4e417f..96701c633 100644 --- a/supervisor/api/panel/frontend_es5/chunk.03b1407708a3c70f8eb1.js +++ b/supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[15],{31015:function(e,t,r){"use strict";r.r(t);var n=r(55317),i=r(50424),o=r(55358),a=r(14516),s=r(47181),c=r(83849),l=r(15493),d=(r(4483),r(34154)),u=r(41682),f=(r(48811),r(21625),r(50054),r(11654)),p=r(55677),h=(r(82592),r(34178),r(53973),r(11488),r(61740),r(98762),r(22098),r(20258)),m=r(26765);function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var v,b,g,w,k,E=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r,n,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,m.g7)(t,{title:n.localize("common.restart_name","name",i.name),text:n.localize("dialog.restart_addon.text"),confirmText:n.localize("dialog.restart_addon.confirm_text"),dismissText:n.localize("common.cancel")});case 2:if(!e.sent){e.next=12;break}return e.prev=4,e.next=7,(0,d.P$)(r,i.slug);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),(0,m.Ys)(t,{title:n.localize("common.failed_to_restart_name","name",i.name),text:(0,u.js)(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[4,9]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n,i){return t.apply(this,arguments)}}();function _(e){return(_="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 P(e){return function(e){if(Array.isArray(e))return U(e)}(e)||L(e)||N(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))}}function S(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=q(e);if(t){var i=q(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return A(this,r)}}function A(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(){z=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!I(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n
\n ',"
"])),this._error):"",this.supervisor.localize("addon.configuration.audio.input"),this._setInputDevice,this._selectedInput,this._inputDevices&&this._inputDevices.map((function(e){return(0,i.dy)(g||(g=S(["\n \n ","\n \n "])),e.device||"",e.name)})),this.supervisor.localize("addon.configuration.audio.output"),this._setOutputDevice,this._selectedOutput,this._outputDevices&&this._outputDevices.map((function(e){return(0,i.dy)(w||(w=S(["\n ","\n "])),e.device||"",e.name)})),this._saveSettings,this.supervisor.localize("common.save"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,p.l,(0,i.iv)(k||(k=S(["\n :host,\n ha-card,\n paper-dropdown-menu {\n display: block;\n }\n .errors {\n color: var(--error-color);\n margin-bottom: 16px;\n }\n paper-item {\n width: 450px;\n }\n .card-actions {\n text-align: right;\n }\n "])))]}},{kind:"method",key:"update",value:function(e){V(q(a.prototype),"update",this).call(this,e),e.has("addon")&&this._addonChanged()}},{kind:"method",key:"_setInputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedInput=t}},{kind:"method",key:"_setOutputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedOutput=t}},{kind:"method",key:"_addonChanged",value:(n=O(regeneratorRuntime.mark((function e(){var t,r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selectedInput=null===this.addon.audio_input?"default":this.addon.audio_input,this._selectedOutput=null===this.addon.audio_output?"default":this.addon.audio_output,!this._outputDevices){e.next=4;break}return e.abrupt("return");case 4:return t={device:"default",name:this.supervisor.localize("addon.configuration.audio.default")},e.prev=5,e.next=8,(0,h.G)(this.hass);case 8:r=e.sent,n=r.audio,i=Object.keys(n.input).map((function(e){return{device:e,name:n.input[e]}})),o=Object.keys(n.output).map((function(e){return{device:e,name:n.output[e]}})),this._inputDevices=[t].concat(P(i)),this._outputDevices=[t].concat(P(o)),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(5),this._error="Failed to fetch audio hardware",this._inputDevices=[t],this._outputDevices=[t];case 21:case"end":return e.stop()}}),e,this,[[5,16]])}))),function(){return n.apply(this,arguments)})},{kind:"method",key:"_saveSettings",value:(r=O(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={audio_input:"default"===this._selectedInput?null:this._selectedInput,audio_output:"default"===this._selectedOutput?null:this._selectedOutput},e.prev=4,e.next=7,(0,d.d3)(this.hass,this.addon.slug,n);case 7:if("started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=10;break}return e.next=10,E(this,this.hass,this.supervisor,this.addon);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this._error="Failed to set addon audio device";case 15:r.progress=!1;case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return r.apply(this,arguments)})}]}}),i.oi),r(87724),r(37087),r(39831);var H=r(19967);function Y(e){return(Y="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 K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n \n "])),this.data,this._valueChanged,this.label)}},{kind:"method",key:"_valueChanged",value:function(e){(0,s.B)(this,"value-changed",{value:e.target.checked})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(re||(re=oe(["\n paper-checkbox {\n display: block;\n padding: 22px 0;\n }\n "])))}}]}}),i.oi);function Ee(e){return(Ee="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 _e(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){return(xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Be(e);if(t){var i=Be(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Se(this,r)}}function Se(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?Ce(e):t}function Ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function De(){De=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Te(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',": ",""])),this.label,this.schema.value)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(ke||(ke=_e(["\n :host {\n display: block;\n }\n .label {\n font-weight: 500;\n }\n "])))}}]}}),i.oi),r(77956);function Ne(e){return(Ne="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 Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Le(e,t){return(Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ye(e);if(t){var i=Ye(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return qe(this,r)}}function qe(e,t){return!t||"object"!==Ne(t)&&"function"!=typeof t?He(e):t}function He(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(){Ke=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!We(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',"\n \n "],t||(t=e.slice(0)),$e=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this._value,this.schema.required,this.schema.required,this._valueChanged,this.suffix);var e,t}},{kind:"get",key:"_value",value:function(){return this.data||0}},{kind:"method",key:"_valueChanged",value:function(e){var t=Number(e.target.value);this._value!==t&&(0,s.B)(this,"value-changed",{value:t})}}]}}),i.oi),r(1548);function tt(e){return(tt="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 rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e,t){for(var r=0;r .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n }\n\n .pin > .slider-knob > .slider-knob-inner {\n font-size: var(--ha-slider-pin-font-size, 10px);\n line-height: normal;\n cursor: pointer;\n }\n\n .disabled.ring > .slider-knob > .slider-knob-inner {\n background-color: var(--paper-slider-disabled-knob-color, var(--paper-grey-400));\n border: 2px solid var(--paper-slider-disabled-knob-color, var(--paper-grey-400));\n }\n\n .pin > .slider-knob > .slider-knob-inner::before {\n top: unset;\n margin-left: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n width: 2.2em;\n height: 2.2em;\n\n -webkit-transform-origin: left bottom;\n transform-origin: left bottom;\n -webkit-transform: rotate(-45deg) scale(0) translate(0);\n transform: rotate(-45deg) scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::before {\n -webkit-transform: rotate(-45deg) scale(1) translate(7px, -7px);\n transform: rotate(-45deg) scale(1) translate(7px, -7px);\n }\n\n .pin > .slider-knob > .slider-knob-inner::after {\n top: unset;\n font-size: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n margin-left: -1.1em;\n width: 2.2em;\n height: 2.1em;\n\n -webkit-transform-origin: center bottom;\n transform-origin: center bottom;\n -webkit-transform: scale(0) translate(0);\n transform: scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -10px);\n transform: scale(1) translate(0, -10px);\n }\n\n .slider-input {\n width: 54px;\n }\n ')),lt}}],(r=[{key:"_setImmediateValue",value:function(e){it(ct(o.prototype),"_setImmediateValue",this).call(this,this.step>=1?Math.round(e):Math.round(100*e)/100)}},{key:"_calcStep",value:function(e){if(!this.step)return parseFloat(e);var t=Math.round((e-this.min)/this.step),r=this.step.toString(),n=r.indexOf(".");if(-1!==n){var i=Math.pow(10,r.length-n-1);return Math.round((t*this.step+this.min)*i)/i}return t*this.step+this.min}}])&&nt(t.prototype,r),n&&nt(t,n),o}(ht);function yt(e){return(yt="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 vt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){return(gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_t(e);if(t){var i=_t(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kt(this,r)}}function kt(e,t){return!t||"object"!==yt(t)&&"function"!=typeof t?Et(e):t}function Et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pt(){Pt=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!St(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",'\n
\n ',"\n \n
\n \n "])),this.label,this.schema.optional&&void 0===this.schema.default?(0,i.dy)(ut||(ut=vt(["\n \n "])),this._handleCheckboxChange,void 0!==this.data):"",this._value,this.schema.valueMin,this.schema.valueMax,void 0===this.data&&this.schema.optional&&void 0===this.schema.default,this._valueChanged):(0,i.dy)(ft||(ft=vt(['\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n ',"\n \n "])),n,r.includes(n),e._optionLabel(t))})))}},{kind:"method",key:"firstUpdated",value:function(){var e=this;this.updateComplete.then((function(){var t,r,n,i=null===(t=e.shadowRoot)||void 0===t||null===(r=t.querySelector("paper-input"))||void 0===r||null===(n=r.inputElement)||void 0===n?void 0:n.inputElement;i&&(i.style.textOverflow="ellipsis")}))}},{kind:"method",key:"_optionValue",value:function(e){return Array.isArray(e)?e[0]:e}},{kind:"method",key:"_optionLabel",value:function(e){return Array.isArray(e)?e[1]||e[0]:e}},{kind:"method",key:"_onSelect",value:function(e){e.stopPropagation()}},{kind:"method",key:"_valueChanged",value:function(e){e.detail.value&&this._init?(0,s.B)(this,"value-changed",{value:e.detail.value.map((function(e){return e.itemValue}))},{bubbles:!1}):this._init=!0}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(Rt||(Rt=It(["\n paper-menu-button {\n display: block;\n padding: 0;\n --paper-item-icon-width: 34px;\n }\n paper-ripple {\n top: 12px;\n left: 0px;\n bottom: 8px;\n right: 0px;\n }\n paper-input {\n text-overflow: ellipsis;\n }\n "])))}}]}}),i.oi);var Zt,Gt=r(50856);function Jt(e){return(Jt="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 er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tr(e,t){for(var r=0;r\n :host {\n display: block;\n @apply --paper-font-common-base;\n }\n\n paper-input {\n width: 30px;\n text-align: center;\n --paper-input-container-input: {\n /* Damn you firefox\n * Needed to hide spin num in firefox\n * http://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-box\n */\n -moz-appearance: textfield;\n @apply --paper-time-input-cotnainer;\n }\n --paper-input-container-input-webkit-spinner: {\n -webkit-appearance: none;\n margin: 0;\n display: none;\n }\n --paper-input-container-shared-input-style_-_-webkit-appearance: textfield;\n }\n\n paper-dropdown-menu {\n width: 55px;\n padding: 0;\n /* Force ripple to use the whole container */\n --paper-dropdown-menu-ripple: {\n color: var(\n --paper-time-input-dropdown-ripple-color,\n var(--primary-color)\n );\n }\n --paper-input-container-input: {\n @apply --paper-font-button;\n text-align: center;\n padding-left: 5px;\n @apply --paper-time-dropdown-input-cotnainer;\n }\n --paper-input-container-underline: {\n border-color: transparent;\n }\n --paper-input-container-underline-focus: {\n border-color: transparent;\n }\n }\n\n paper-item {\n cursor: pointer;\n text-align: center;\n font-size: 14px;\n }\n\n paper-listbox {\n padding: 0;\n }\n\n label {\n @apply --paper-font-caption;\n color: var(\n --paper-input-container-color,\n var(--secondary-text-color)\n );\n }\n\n .time-input-wrap {\n @apply --layout-horizontal;\n @apply --layout-no-wrap;\n justify-content: var(--paper-time-input-justify-content, normal);\n }\n\n [hidden] {\n display: none !important;\n }\n\n #millisec {\n width: 38px;\n }\n\n .no-suffix {\n margin-left: -2px;\n }\n \n\n \n
\n \x3c!-- Hour Input --\x3e\n \n :\n \n\n \x3c!-- Min Input --\x3e\n \n :\n \n\n \x3c!-- Sec Input --\x3e\n \n :\n \n\n \x3c!-- Millisec Input --\x3e\n \n \n\n \x3c!-- Dropdown Menu --\x3e\n \n \n AM\n PM\n \n \n
\n '],t||(t=e.slice(0)),Zt=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))));var e,t}},{key:"properties",get:function(){return{label:{type:String,value:"Time"},autoValidate:{type:Boolean,value:!0},hideLabel:{type:Boolean,value:!1},floatInputLabels:{type:Boolean,value:!1},alwaysFloatInputLabels:{type:Boolean,value:!1},format:{type:Number,value:12},disabled:{type:Boolean,value:!1},hour:{type:String,notify:!0},min:{type:String,notify:!0},sec:{type:String,notify:!0},millisec:{type:String,notify:!0},hourLabel:{type:String,value:""},minLabel:{type:String,value:""},secLabel:{type:String,value:""},millisecLabel:{type:String,value:""},enableSecond:{type:Boolean,value:!1},enableMillisecond:{type:Boolean,value:!1},noHoursLimit:{type:Boolean,value:!1},amPm:{type:String,notify:!0,value:"AM"},value:{type:String,notify:!0,readOnly:!0,computed:"_computeTime(min, hour, sec, millisec, amPm)"}}}}],(r=[{key:"validate",value:function(){var e=!0;return this.$.hour.validate()&&this.$.min.validate()||(e=!1),this.enableSecond&&!this.$.sec.validate()&&(e=!1),this.enableMillisecond&&!this.$.millisec.validate()&&(e=!1),12!==this.format||this.$.dropdown.validate()||(e=!1),e}},{key:"_computeTime",value:function(e,t,r,n,i){var o;return(t||e||r&&this.enableSecond||n&&this.enableMillisecond)&&(r=r||"00",n=n||"000",o=(t=t||"00")+":"+(e=e||"00"),this.enableSecond&&r&&(o=o+":"+r),this.enableMillisecond&&n&&(o=o+":"+n),12===this.format&&(o=o+" "+i)),o}},{key:"_onFocus",value:function(e){e.target.inputElement.inputElement.select()}},{key:"_formatMillisec",value:function(){1===this.millisec.toString().length&&(this.millisec=this.millisec.toString().padStart(3,"0"))}},{key:"_formatSec",value:function(){1===this.sec.toString().length&&(this.sec=this.sec.toString().padStart(2,"0"))}},{key:"_formatMin",value:function(){1===this.min.toString().length&&(this.min=this.min.toString().padStart(2,"0"))}},{key:"_shouldFormatHour",value:function(){24===this.format&&1===this.hour.toString().length&&(this.hour=this.hour.toString().padStart(2,"0"))}},{key:"_computeHourMax",value:function(e){return this.noHoursLimit?null:12===e?e:23}},{key:"_equal",value:function(e,t){return e===t}},{key:"_computeClassNames",value:function(e){return e?" ":"no-suffix"}}])&&tr(t.prototype,r),n&&tr(t,n),o}(r(28426).H3);function cr(e){return(cr="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 lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){return(ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=mr(e);if(t){var i=mr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return pr(this,r)}}function pr(e,t){return!t||"object"!==cr(t)&&"function"!=typeof t?hr(e):t}function hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mr(e){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yr(){yr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!gr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n '],t||(t=e.slice(0)),ar=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.required,this.required,this.enableMillisecond,this._parseDuration(this._hours),this._parseDuration(this._minutes),this._parseDuration(this._seconds),this._parseDurationMillisec(this._milliseconds),this._hourChanged,this._minChanged,this._secChanged,this._millisecChanged);var e,t}},{kind:"get",key:"_hours",value:function(){return this.data&&this.data.hours?Number(this.data.hours):0}},{kind:"get",key:"_minutes",value:function(){return this.data&&this.data.minutes?Number(this.data.minutes):0}},{kind:"get",key:"_seconds",value:function(){return this.data&&this.data.seconds?Number(this.data.seconds):0}},{kind:"get",key:"_milliseconds",value:function(){return this.data&&this.data.milliseconds?Number(this.data.milliseconds):0}},{kind:"method",key:"_parseDuration",value:function(e){return e.toString().padStart(2,"0")}},{kind:"method",key:"_parseDurationMillisec",value:function(e){return e.toString().padStart(3,"0")}},{kind:"method",key:"_hourChanged",value:function(e){this._durationChanged(e,"hours")}},{kind:"method",key:"_minChanged",value:function(e){this._durationChanged(e,"minutes")}},{kind:"method",key:"_secChanged",value:function(e){this._durationChanged(e,"seconds")}},{kind:"method",key:"_millisecChanged",value:function(e){this._durationChanged(e,"milliseconds")}},{kind:"method",key:"_durationChanged",value:function(e,t){var r=Number(e.detail.value);if(r!==this["_".concat(t)]){var n=this._hours,i=this._minutes;"seconds"===t&&r>59&&(i+=Math.floor(r/60),r%=60),"minutes"===t&&r>59&&(n+=Math.floor(r/60),r%=60),(0,s.B)(this,"value-changed",{value:Object.assign({hours:n,minutes:i,seconds:this._seconds,milliseconds:this._milliseconds},lr({},t,r))})}}}]}}),i.oi);function xr(e){return(xr="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 Or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sr(e,t){return(Sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ar(e);if(t){var i=Ar(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Dr(this,r)}}function Dr(e,t){return!t||"object"!==xr(t)&&"function"!=typeof t?jr(e):t}function jr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ar(e){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tr(){Tr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Fr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "],t||(t=e.slice(0)),Pr=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.schema.required,this.data);var e,t}}]}}),i.oi);function Nr(e){return(Nr="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 Ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(e,t){for(var r=0;r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n \n "])),this._computeError(this.error.base,this.schema)):"",this.schema.map((function(t){return(0,i.dy)(In||(In=Un(["\n \n "])),e._getValue(e.data,t),t,e._getValue(e.error,t),e._valueChanged,e.computeError,e.computeLabel,e.computeSuffix)}))):(0,i.dy)(Mn||(Mn=Un(["\n ","\n ","\n "])),this.error?(0,i.dy)(Bn||(Bn=Un(['\n
\n ',"\n
\n "])),this._computeError(this.error,this.schema)):"",ne("ha-form-".concat(this.schema.type),{schema:this.schema,data:this.data,label:this._computeLabel(this.schema),suffix:this._computeSuffix(this.schema),id:"child-form"}))}},{kind:"method",key:"_computeLabel",value:function(e){return this.computeLabel?this.computeLabel(e):e?e.name:""}},{kind:"method",key:"_computeSuffix",value:function(e){return this.computeSuffix?this.computeSuffix(e):e&&e.description?e.description.suffix:""}},{kind:"method",key:"_computeError",value:function(e,t){return this.computeError?this.computeError(e,t):e}},{kind:"method",key:"_getValue",value:function(e,t){return e?e[t.name]:null}},{kind:"method",key:"_valueChanged",value:function(e){e.stopPropagation();var t,r,n,i=e.target.schema,o=this.data;(0,s.B)(this,"value-changed",{value:Object.assign({},o,(t={},r=i.name,n=e.detail.value,r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t))})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)($n||($n=Un(["\n .error {\n color: var(--error-color);\n }\n "])))}}]}}),i.oi),r(41857),r(59189);var ri,ni=r(98595);function ii(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var oi,ai=function(){var e,t=(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ri||(ri=Promise.all([r.e(102),r.e(914)]).then(r.bind(r,92914))),e.abrupt("return",ri);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ii(o,n,i,a,s,"next",e)}function s(e){ii(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function si(e){return(si="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 ci(e){return function(e){if(Array.isArray(e))return _i(e)}(e)||Pi(e)||Ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function li(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ui(e,t){return(ui=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Oi(e);if(t){var i=Oi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return pi(this,r)}}function pi(e,t){return!t||"object"!==si(t)&&"function"!=typeof t?hi(e):t}function hi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mi(){mi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!bi(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r",'\n \n
\n

\n ','\n

\n
\n \n \n \n \n ','\n \n \n
\n
\n\n
\n ',"\n ","\n ","\n
\n ",'\n
\n ',"
"])),this._error):"",!this._yamlMode||this._canShowSchema&&this.addon.schema||this._valid?"":(0,i.dy)(Zi||(Zi=no(['\n
\n ',"\n
\n "])),this.supervisor.localize("addon.configuration.options.invalid_yaml")),t?(0,i.dy)(Gi||(Gi=no(['=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
\n ","\n \n ","\n ","
\n \n
\n ',"
"])),this._error):"",this.supervisor.localize("addon.configuration.network.container"),this.supervisor.localize("addon.configuration.network.host"),this.supervisor.localize("common.description"),this._config.map((function(t){return(0,i.dy)(_o||(_o=Do(["\n \n ","\n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])));var e=this.addon.options&&Object.keys(this.addon.options).length||this.addon.schema&&Object.keys(this.addon.schema).length;return(0,i.dy)(Yo||(Yo=ea(['\n
\n ',"\n
\n "])),e||this.addon.network||this.addon.audio?(0,i.dy)(Ko||(Ko=ea(["\n ","\n ","\n ","\n "])),e?(0,i.dy)(Qo||(Qo=ea(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.network?(0,i.dy)(Xo||(Xo=ea(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.audio?(0,i.dy)(Wo||(Wo=ea(["\n \n "])),this.hass,this.addon,this.supervisor):""):this.supervisor.localize("addon.configuration.no_configuration"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,p.l,(0,i.iv)(Zo||(Zo=ea(["\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n }\n "])))]}}]}}),i.oi),r(93546);function ka(e){return(ka="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 Ea(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _a(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function Pa(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){_a(o,n,i,a,s,"next",e)}function s(e){_a(o,n,i,a,s,"throw",e)}a(void 0)}))}}function xa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oa(e,t){return(Oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=$a(e);if(t){var i=$a(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ca(this,r)}}function Ca(e,t){return!t||"object"!==ka(t)&&"function"!=typeof t?Da(e):t}function Da(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ja(){ja=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!za(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ','\n
\n ',"\n
\n
\n \n "])),this._error?(0,i.dy)(va||(va=Ea(['
',"
"])),this._error):"",this._content?(0,i.dy)(ba||(ba=Ea([""])),this._content):(0,i.dy)(ga||(ga=Ea([""])))):(0,i.dy)(ma||(ma=Ea([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,p.l,(0,i.iv)(wa||(wa=Ea(["\n ha-card {\n display: block;\n }\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n ha-markdown {\n padding: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(r=Pa(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,d.ii)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.documentation.get_logs","error",(0,u.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]}}),i.oi);var Na,Ua,La=r(76666),Va=r(63864);function qa(e){return(qa="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 Ha(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ya(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ka(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qa(e,t){return(Qa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ga(e);if(t){var i=Ga(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Wa(this,r)}}function Wa(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?Za(e):t}function Za(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ga(e){return(Ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ja(){Ja=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!rs(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "])),this.progress,this._buttonTapped,this.disabled)}},{kind:"method",key:"_buttonTapped",value:(r=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.progress=!0,t={method:this.method,path:this.path,data:this.data},e.prev=2,e.next=5,this.hass.callApi(this.method,this.path,this.data);case 5:r=e.sent,this.progress=!1,this._progressButton.actionSuccess(),t.success=!0,t.response=r,e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.progress=!1,this._progressButton.actionError(),t.success=!1,t.response=e.t0;case 18:(0,s.B)(this,"hass-api-called",t);case 19:case"end":return e.stop()}}),e,this,[[2,12]])})),n=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Ha(o,n,i,a,s,"next",e)}function s(e){Ha(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(Ua||(Ua=Ya(["\n :host([disabled]) {\n pointer-events: none;\n }\n "])))}}]}}),i.oi);function hs(e){return(hs="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 ms(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ys(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vs(e,t){return(vs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=js(e);if(t){var i=js(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return gs(this,r)}}function gs(e,t){return!t||"object"!==hs(t)&&"function"!=typeof t?ws(e):t}function ws(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ks(){ks=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ps(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
\n \n \n ',"\n ","\n \n
\n ","\n \n ","\n \n "])),(0,La.$)({value:!0,big:Boolean(this.value&&this.value.length>4)}),!this.icon||this.value||this.image?"":(0,i.dy)(cs||(cs=ms([" "])),this.icon),this.value&&!this.image?(0,i.dy)(ls||(ls=ms([" "," "])),this.value):"",this.label?(0,i.dy)(ds||(ds=ms(['\n \n ',"\n \n "])),(0,La.$)({label:!0,big:this.label.length>5}),this.label):"",this.description?(0,i.dy)(us||(us=ms(['
',"
"])),this.description):"")}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,i.iv)(fs||(fs=ms(["\n .badge-container {\n display: inline-block;\n text-align: center;\n vertical-align: top;\n padding: var(--ha-label-badge-padding, 0 0 0 0);\n }\n .label-badge {\n position: relative;\n display: block;\n margin: 0 auto;\n width: var(--ha-label-badge-size, 2.5em);\n text-align: center;\n height: var(--ha-label-badge-size, 2.5em);\n line-height: var(--ha-label-badge-size, 2.5em);\n font-size: var(--ha-label-badge-font-size, 1.5em);\n border-radius: 50%;\n border: 0.1em solid var(--ha-label-badge-color, var(--primary-color));\n color: var(--label-badge-text-color, rgb(76, 76, 76));\n\n white-space: nowrap;\n background-color: var(--label-badge-background-color, white);\n background-size: cover;\n transition: border 0.3s ease-in-out;\n }\n .label-badge .value {\n font-size: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .label-badge .value.big {\n font-size: 70%;\n }\n .label-badge .label {\n position: absolute;\n bottom: -1em;\n /* Make the label as wide as container+border. (parent_borderwidth / font-size) */\n left: -0.2em;\n right: -0.2em;\n line-height: 1em;\n font-size: 0.5em;\n }\n .label-badge .label span {\n box-sizing: border-box;\n max-width: 100%;\n display: inline-block;\n background-color: var(--ha-label-badge-color, var(--primary-color));\n color: var(--ha-label-badge-label-color, white);\n border-radius: 1em;\n padding: 9% 16% 8% 16%; /* mostly apitalized text, not much descenders => bit more top margin */\n font-weight: 500;\n overflow: hidden;\n text-transform: uppercase;\n text-overflow: ellipsis;\n transition: background-color 0.3s ease-in-out;\n text-transform: var(--ha-label-badge-label-text-transform, uppercase);\n }\n .label-badge .label.big span {\n font-size: 90%;\n padding: 10% 12% 7% 12%; /* push smaller text a bit down to center vertically */\n }\n .badge-container .title {\n margin-top: 1em;\n font-size: var(--ha-label-badge-title-font-size, 0.9em);\n width: var(--ha-label-badge-title-width, 5em);\n font-weight: var(--ha-label-badge-title-font-weight, 400);\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: normal;\n }\n "])))]}},{kind:"method",key:"updated",value:function(e){Ds(js(r.prototype),"updated",this).call(this,e),e.has("image")&&(this.shadowRoot.getElementById("badge").style.backgroundImage=this.image?"url(".concat(this.image,")"):"")}}]}}),i.oi);customElements.define("ha-label-badge",As);r(14089);var Ts,zs,Rs,Fs,Is,Ms,Bs,$s,Ns,Us,Ls,Vs,qs,Hs,Ys,Ks,Qs,Xs,Ws,Zs,Gs,Js,ec,tc,rc,nc,ic,oc,ac,sc,cc,lc,dc,uc,fc,pc,hc,mc,yc,vc,bc,gc,wc,kc,Ec=r(70203),_c=(r(23295),r(21050),r(66903)),Pc=r(7628),xc=(0,a.Z)((function(e,t){return t.some((function(t){return e.includes(t)}))}));function Oc(e){return(Oc="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 Sc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function Cc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Sc(o,n,i,a,s,"next",e)}function s(e){Sc(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Dc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function jc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ac(e,t){return(Ac=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=qc(e);if(t){var i=qc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return zc(this,r)}}function zc(e,t){return!t||"object"!==Oc(t)&&"function"!=typeof t?Rc(e):t}function Rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fc(){Fc=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Bc(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
\n
\n ','\n
\n ','\n
\n
\n
\n ','\n
\n\n
\n ',".
\n ",'\n
\n
\n
\n ','\n
\n ',"\n\n \n ',"\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n
\n\n ","\n
\n
\n ","\n
\n
\n ","\n ",'\n
\n
\n
\n ',"\n
\n
\n ","\n
\n
\n
\n\n ","\n "])),this.addon.update_available?(0,i.dy)(zs||(zs=Dc(['\n \n
\n \n ','\n
\n
\n ',"\n \n ","\n \n
\n \n "])),this.supervisor.localize("common.update_available","count",1),this.hass,this.supervisor.localize("addon.dashboard.new_update_available","name",this.addon.name,"version",this.addon.version_latest),this.supervisor.localize("common.running_version","version",this.addon.version),n.WhP,!this.addon.available&&s?xc(this.supervisor.info.supported_arch,this.addon.arch)?(0,i.dy)(Fs||(Fs=Dc(['\n

\n ',"\n

\n "])),this.supervisor.localize("addon.dashboard.not_available_arch","core_version_installed",this.supervisor.core.version,"core_version_needed",s.homeassistant)):(0,i.dy)(Rs||(Rs=Dc(['\n

\n ',"\n

\n "])),this.supervisor.localize("addon.dashboard.not_available_arch")):"",this.addon.changelog?(0,i.dy)(Is||(Is=Dc(["\n \n ","\n \n "])),this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,i.dy)(Ms||(Ms=Dc([""]))),this._updateClicked,this.supervisor.localize("common.update")):"",this.addon.protected?"":(0,i.dy)(Bs||(Bs=Dc(['\n \n

','\n

\n
\n ','\n
\n
\n \n (',")\n
\n "])),this.addon.version,this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,i.dy)(qs||(qs=Dc(['',""])),this.addon.url,this.addon.name)),this.addon.logo?(0,i.dy)(Ys||(Ys=Dc(['\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.watchdog.title"),this.supervisor.localize("addon.dashboard.option.watchdog.description"),this._watchdogToggled,this.addon.watchdog):"",this.addon.auto_update||null!==(a=this.hass.userData)&&void 0!==a&&a.showAdvanced?(0,i.dy)(oc||(oc=Dc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.auto_update.title"),this.supervisor.localize("addon.dashboard.option.auto_update.description"),this._autoUpdateToggled,this.addon.auto_update):"",!this._computeCannotIngressSidebar&&this.addon.ingress?(0,i.dy)(ac||(ac=Dc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.ingress_panel.title"),this.supervisor.localize("addon.dashboard.option.ingress_panel.description"),this._panelToggled,this.addon.ingress_panel):"",this._computeUsesProtectedOptions?(0,i.dy)(sc||(sc=Dc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.protected.title"),this.supervisor.localize("addon.dashboard.option.protected.description"),this._protectionToggled,this.addon.protected):""):"","started"===this.addon.state?(0,i.dy)(cc||(cc=Dc(["\n ','\n \n '," \n \n ",""])),this.narrow,this.supervisor.localize("addon.dashboard.hostname"),this.addon.hostname,c.map((function(e){var t;return(0,i.dy)(lc||(lc=Dc(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)}))):"",this._error?(0,i.dy)(dc||(dc=Dc(['
',"
"])),this._error):"",this.addon.version||!s||this.addon.available?"":xc(this.supervisor.info.supported_arch,this.addon.arch)?(0,i.dy)(fc||(fc=Dc(['\n

\n ',"\n

\n "])),this.supervisor.localize("addon.dashboard.not_available_version","core_version_installed",this.supervisor.core.version,"core_version_needed",s.homeassistant)):(0,i.dy)(uc||(uc=Dc(['\n

\n ',"\n

\n "])),this.supervisor.localize("addon.dashboard.not_available_arch")),this.addon.version?this._computeIsRunning?(0,i.dy)(pc||(pc=Dc(['\n \n \n \n ',"\n \n \n "])),this._pathWebui,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._computeShowIngressUI?(0,i.dy)(bc||(bc=Dc(["\n \n ","\n \n "])),this._openIngress,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._uninstallClicked,this.supervisor.localize("addon.dashboard.uninstall"),this.addon.build?(0,i.dy)(gc||(gc=Dc(['\n \n ',"\n \n "])),this.hass,this.addon.slug,this.supervisor.localize("addon.dashboard.rebuild")):""):"",this.addon.long_description?(0,i.dy)(wc||(wc=Dc(['\n \n
\n '),"icon_experimental",''),"icon_deprecated",'')):this.supervisor.localize("addon.dashboard.capability.".concat(t,".description"))})}},{kind:"get",key:"_computeIsRunning",value:function(){var e;return"started"===(null===(e=this.addon)||void 0===e?void 0:e.state)}},{kind:"get",key:"_pathWebui",value:function(){return this.addon.webui&&this.addon.webui.replace("[HOST]",document.location.hostname)}},{kind:"get",key:"_computeShowWebUI",value:function(){return!this.addon.ingress&&this.addon.webui&&this._computeIsRunning}},{kind:"method",key:"_openIngress",value:function(){(0,c.c)("/hassio/ingress/".concat(this.addon.slug))}},{kind:"get",key:"_computeShowIngressUI",value:function(){return this.addon.ingress&&this._computeIsRunning}},{kind:"get",key:"_computeCannotIngressSidebar",value:function(){return!this.addon.ingress||!(0,Va.I)(this.hass.config.version,0,92)}},{kind:"get",key:"_computeUsesProtectedOptions",value:function(){return this.addon.docker_api||this.addon.full_access||this.addon.host_pid}},{kind:"method",key:"_startOnBootToggled",value:(x=Cc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={boot:"auto"===this.addon.boot?"manual":"auto"},e.prev=2,e.next=5,(0,d.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,s.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,u.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return x.apply(this,arguments)})},{kind:"method",key:"_watchdogToggled",value:(P=Cc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={watchdog:!this.addon.watchdog},e.prev=2,e.next=5,(0,d.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,s.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,u.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return P.apply(this,arguments)})},{kind:"method",key:"_autoUpdateToggled",value:(_=Cc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={auto_update:!this.addon.auto_update},e.prev=2,e.next=5,(0,d.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,s.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,u.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return _.apply(this,arguments)})},{kind:"method",key:"_protectionToggled",value:(E=Cc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={protected:!this.addon.protected},e.prev=2,e.next=5,(0,d.NI)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"security"},(0,s.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,u.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_panelToggled",value:(k=Cc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={ingress_panel:!this.addon.ingress_panel},e.prev=2,e.next=5,(0,d.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,s.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,u.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_openChangelog",value:(w=Cc(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,d.CH)(this.hass,this.addon.slug);case 3:t=e.sent,(0,_c.v)(this,{title:this.supervisor.localize("addon.dashboard.changelog"),content:t}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),(0,m.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.get_changelog"),text:(0,u.js)(e.t0)});case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_installClicked",value:(g=Cc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,d.fU)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"install"},(0,s.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,m.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.install"),text:(0,u.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return g.apply(this,arguments)})},{kind:"method",key:"_stopClicked",value:(b=Cc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,d.ow)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,s.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,m.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.stop"),text:(0,u.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return b.apply(this,arguments)})},{kind:"method",key:"_restartClicked",value:(v=Cc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,d.P$)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,s.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,m.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.restart"),text:(0,u.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return v.apply(this,arguments)})},{kind:"method",key:"_updateClicked",value:(y=Cc(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,Pc.z)(this,{supervisor:this.supervisor,name:this.addon.name,version:this.addon.version_latest,snapshotParams:{name:"addon_".concat(this.addon.slug,"_").concat(this.addon.version),addons:[this.addon.slug],homeassistant:!1},updateHandler:function(){var e=Cc(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t._updateAddon());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},{kind:"method",key:"_updateAddon",value:(h=Cc(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.V_)(this.hass,this.addon.slug);case 2:(0,s.B)(this,"supervisor-collection-refresh",{collection:"addon"}),t={success:!0,response:void 0,path:"update"},(0,s.B)(this,"hass-api-called",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{kind:"method",key:"_startClicked",value:(l=Cc(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,d.su)(this.hass,this.addon.slug);case 5:if((n=e.sent).valid){e.next=11;break}return e.next=9,(0,m.g7)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start_invalid_config"),text:n.message.split(" Got ")[0],confirm:function(){return o._openConfiguration()},confirmText:this.supervisor.localize("addon.dashboard.action_error.go_to_config"),dismissText:this.supervisor.localize("common.cancel")});case 9:return r.progress=!1,e.abrupt("return");case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(2),(0,m.Ys)(this,{title:"Failed to validate addon configuration",text:(0,u.js)(e.t0)}),r.progress=!1,e.abrupt("return");case 18:return e.prev=18,e.next=21,(0,d.kP)(this.hass,this.addon.slug);case 21:return e.next=23,(0,d.AD)(this.hass,this.addon.slug);case 23:this.addon=e.sent,i={success:!0,response:void 0,path:"start"},(0,s.B)(this,"hass-api-called",i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(18),(0,m.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start"),text:(0,u.js)(e.t1)});case 31:r.progress=!1;case 32:case"end":return e.stop()}}),e,this,[[2,13],[18,28]])}))),function(e){return l.apply(this,arguments)})},{kind:"method",key:"_openConfiguration",value:function(){(0,c.c)("/hassio/addon/".concat(this.addon.slug,"/config"))}},{kind:"method",key:"_uninstallClicked",value:(r=Cc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.next=4,(0,m.g7)(this,{title:this.addon.name,text:"Are you sure you want to uninstall this add-on?",confirmText:"uninstall add-on",dismissText:"no"});case 4:if(e.sent){e.next=8;break}return r.progress=!1,e.abrupt("return");case 8:return this._error=void 0,e.prev=9,e.next=12,(0,d.Yn)(this.hass,this.addon.slug);case 12:n={success:!0,response:void 0,path:"uninstall"},(0,s.B)(this,"hass-api-called",n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),(0,m.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.uninstall"),text:(0,u.js)(e.t0)});case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,p.l,(0,i.iv)(kc||(kc=Dc(['\n :host {\n display: block;\n }\n ha-card {\n display: block;\n margin-bottom: 16px;\n }\n ha-card.warning {\n background-color: var(--error-color);\n color: white;\n }\n ha-card.warning .card-header {\n color: white;\n }\n ha-card.warning .card-content {\n color: white;\n }\n ha-card.warning mwc-button {\n --mdc-theme-primary: white !important;\n }\n .warning {\n color: var(--error-color);\n --mdc-theme-primary: var(--error-color);\n }\n .light-color {\n color: var(--secondary-text-color);\n }\n .addon-header {\n padding-left: 8px;\n font-size: 24px;\n color: var(--ha-card-header-color, --primary-text-color);\n }\n .addon-version {\n float: right;\n font-size: 15px;\n vertical-align: middle;\n }\n .errors {\n color: var(--error-color);\n margin-bottom: 16px;\n }\n .description {\n margin-bottom: 16px;\n }\n img.logo {\n max-height: 60px;\n margin: 16px 0;\n display: block;\n }\n\n ha-switch {\n display: flex;\n }\n ha-svg-icon.running {\n color: var(--paper-green-400);\n }\n ha-svg-icon.stopped {\n color: var(--google-red-300);\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n protection-enable mwc-button {\n --mdc-theme-primary: white;\n }\n .description a {\n color: var(--primary-color);\n }\n .red {\n --ha-label-badge-color: var(--label-badge-red, #df4c1e);\n }\n .blue {\n --ha-label-badge-color: var(--label-badge-blue, #039be5);\n }\n .green {\n --ha-label-badge-color: var(--label-badge-green, #0da035);\n }\n .yellow {\n --ha-label-badge-color: var(--label-badge-yellow, #f4b400);\n }\n .security {\n margin-bottom: 16px;\n }\n .card-actions {\n justify-content: space-between;\n display: flex;\n }\n .security h3 {\n margin-bottom: 8px;\n font-weight: normal;\n }\n .security ha-label-badge {\n cursor: pointer;\n margin-right: 4px;\n --ha-label-badge-padding: 8px 0 0 0;\n }\n .changelog {\n display: contents;\n }\n .changelog-link {\n color: var(--primary-color);\n text-decoration: underline;\n cursor: pointer;\n }\n ha-markdown {\n padding: 16px;\n }\n ha-settings-row {\n padding: 0;\n height: 54px;\n width: 100%;\n }\n ha-settings-row > span[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n ha-settings-row[three-line] {\n height: 74px;\n }\n\n .addon-options {\n max-width: 90%;\n }\n\n .addon-container {\n display: grid;\n grid-auto-flow: column;\n grid-template-columns: 60% 40%;\n }\n\n .addon-container > div:last-of-type {\n align-self: end;\n }\n\n @media (max-width: 720px) {\n .addon-options {\n max-width: 100%;\n }\n .addon-container {\n display: block;\n }\n }\n '])))]}}]}}),i.oi);function Xc(e){return(Xc="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 Wc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gc(e,t){return(Gc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=rl(e);if(t){var i=rl(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return el(this,r)}}function el(e,t){return!t||"object"!==Xc(t)&&"function"!=typeof t?tl(e):t}function tl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nl(){nl=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!al(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r","\n \n ",'\n
\n ','\n
\n
\n ',"
"])),this._error):"",this._content?(0,i.dy)(pl||(pl=yl([""])),this._content):"",this._refresh,this.supervisor.localize("common.refresh"))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,p.l,(0,i.iv)(hl||(hl=yl(["\n :host,\n ha-card {\n display: block;\n }\n .errors {\n color: var(--error-color);\n margin-bottom: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(n=bl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,d.kr)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.logs.get_logs","error",(0,u.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return n.apply(this,arguments)})},{kind:"method",key:"_refresh",value:(r=bl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]}}),i.oi);function Ml(e){return(Ml="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 Bl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){return(Nl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ul(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ql(e);if(t){var i=ql(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ll(this,r)}}function Ll(e,t){return!t||"object"!==Ml(t)&&"function"!=typeof t?Vl(e):t}function Vl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ql(e){return(ql=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hl(){Hl=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ql(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this._error);if(!this.addon)return(0,i.dy)(md||(md=kd([""])));var e=[{translationKey:"addon.panel.info",path:"/hassio/addon/".concat(this.addon.slug,"/info"),iconPath:n.gCD}];this.addon.documentation&&e.push({translationKey:"addon.panel.documentation",path:"/hassio/addon/".concat(this.addon.slug,"/documentation"),iconPath:n.e2C}),this.addon.version&&e.push({translationKey:"addon.panel.configuration",path:"/hassio/addon/".concat(this.addon.slug,"/config"),iconPath:n.pcj},{translationKey:"addon.panel.log",path:"/hassio/addon/".concat(this.addon.slug,"/logs"),iconPath:n.ofU});var t=this._computeTail(this.route);return(0,i.dy)(yd||(yd=kd(["\n ',"\n \n \n "])),this.hass,this.supervisor.localize,this.narrow,this.addon.version?"/hassio/dashboard":"/hassio/store",t,e,this.addon.name,t,this.narrow,this.hass,this.supervisor,this.addon)}},{kind:"get",static:!0,key:"styles",value:function(){return[f.Qx,p.l,(0,i.iv)(vd||(vd=kd(["\n :host {\n color: var(--primary-text-color);\n }\n .content {\n padding: 24px 0 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n width: 600px;\n }\n hassio-addon-logs {\n max-width: calc(100% - 8px);\n min-width: 600px;\n }\n @media only screen and (max-width: 600px) {\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config,\n hassio-addon-logs {\n max-width: 100%;\n min-width: 100%;\n }\n }\n "])))]}},{kind:"method",key:"firstUpdated",value:(m=wd(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=8;break}if(!(t=(0,l.io)("addon"))){e.next=8;break}return e.next=5,(0,d.yt)(this.hass);case 5:e.sent.addons.some((function(e){return e.slug===t}))?(0,c.c)("/hassio/addon/".concat(t),{replace:!0}):this._error=this.supervisor.localize("my.error_addon_not_found");case 8:this.addEventListener("hass-api-called",(function(e){return r._apiCalled(e)}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_apiCalled",value:(h=wd(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.detail.success){e.next=2;break}return e.abrupt("return");case 2:if((n=null===(r=t.detail.path)||void 0===r?void 0:r.split("/"))&&0!==n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=n[n.length-1],["uninstall","install","update","start","stop"].includes(i)&&(0,s.B)(this,"supervisor-collection-refresh",{collection:"supervisor"}),"uninstall"!==i){e.next=11;break}window.history.back(),e.next=13;break;case 11:return e.next=13,this._routeDataChanged();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){e.has("route")&&!this.addon&&this._routeDataChanged()}},{kind:"method",key:"_routeDataChanged",value:(r=wd(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.route.path.split("/")[1]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,d.AD)(this.hass,t);case 6:r=e.sent,this.addon=r,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),this._error="Error fetching addon info: ".concat((0,u.js)(e.t0)),this.addon=void 0;case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return r.apply(this,arguments)})}]}}),i.oi)}}]); -//# sourceMappingURL=chunk.03b1407708a3c70f8eb1.js.map \ No newline at end of file +//# sourceMappingURL=chunk.0dc2c6dab18f1d4c395a.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js.gz b/supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js.gz new file mode 100644 index 000000000..16a7865df Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js.map b/supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js.map new file mode 100644 index 000000000..9364c2031 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.0dc2c6dab18f1d4c395a.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.0dc2c6dab18f1d4c395a.js","sources":["webpack://home-assistant-frontend/chunk.0dc2c6dab18f1d4c395a.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js b/supervisor/api/panel/frontend_es5/chunk.1000be27cd087c21fa92.js similarity index 96% rename from supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js rename to supervisor/api/panel/frontend_es5/chunk.1000be27cd087c21fa92.js index 7b7fab052..fc9d11b9e 100644 --- a/supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js +++ b/supervisor/api/panel/frontend_es5/chunk.1000be27cd087c21fa92.js @@ -1,2 +1,2 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[534],{68441:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=new WeakMap;t.default=function(e){var t=l.get(e);return t||(t=Object.create(null),l.set(e,t)),t}},78643:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluralRules=void 0;var a=l(87480),n=l(64389),r=a.__importDefault(l(68441));function o(e,t){if(!(e instanceof u))throw new TypeError("Method Intl.PluralRules.prototype."+t+" called on incompatible receiver "+String(e))}function i(e,t,l,a){var n=a.IntegerDigits,r=a.NumberOfFractionDigits,o=a.FractionDigits;return u.localeData[e].fn(r?n+"."+o:n,"ordinal"===t)}var u=function(){function e(t,l){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.PluralRules must be called with 'new'");return n.InitializePluralRules(this,t,l,{availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale,getInternalSlots:r.default})}return e.prototype.resolvedOptions=function(){o(this,"resolvedOptions");var t=Object.create(null),l=r.default(this);return t.locale=l.locale,t.type=l.type,["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach((function(e){var a=l[e];void 0!==a&&(t[e]=a)})),t.pluralCategories=a.__spreadArray([],e.localeData[t.locale].categories[t.type]),t},e.prototype.select=function(e){o(this,"select");var t=n.ToNumber(e);return n.ResolvePlural(this,t,{getInternalSlots:r.default,PluralRuleSelect:i})},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,l){return n.SupportedLocales(e.availableLocales,n.CanonicalizeLocaleList(t),l)},e.__addLocaleData=function(){for(var t=[],l=0;l=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,i[o])(s)||s);e=l.element,this.addElementPlacement(e,t),l.finisher&&n.push(l.finisher);var c=l.extras;if(c){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n "])),this.closeDialog,(0,l.i)(this.hass,this.title),this.content||""):(0,a.dy)(n||(n=p([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[c.yu,d.l,(0,a.iv)(o||(o=p(['\n ha-paper-dialog {\n min-width: 350px;\n font-size: 14px;\n border-radius: 2px;\n }\n app-toolbar {\n margin: 0;\n padding: 0 16px;\n color: var(--primary-text-color);\n background-color: var(--secondary-background-color);\n }\n app-toolbar [main-title] {\n margin-left: 16px;\n }\n paper-checkbox {\n display: block;\n margin: 4px;\n }\n @media all and (max-width: 450px), all and (max-height: 500px) {\n ha-paper-dialog {\n max-height: 100%;\n }\n ha-paper-dialog::before {\n content: "";\n position: fixed;\n z-index: -1;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n background-color: inherit;\n }\n app-toolbar {\n color: var(--text-primary-color);\n background-color: var(--primary-color);\n }\n ha-markdown {\n padding: 16px;\n }\n }\n '])))]}}]}}),a.oi)}}]); -//# sourceMappingURL=chunk.983f861dd76e1235c9a1.js.map \ No newline at end of file +//# sourceMappingURL=chunk.1c11636c7973052c4d31.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.1c11636c7973052c4d31.js.gz b/supervisor/api/panel/frontend_es5/chunk.1c11636c7973052c4d31.js.gz new file mode 100644 index 000000000..27ac43ea5 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.1c11636c7973052c4d31.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.1c11636c7973052c4d31.js.map b/supervisor/api/panel/frontend_es5/chunk.1c11636c7973052c4d31.js.map new file mode 100644 index 000000000..44a20a5f9 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.1c11636c7973052c4d31.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.1c11636c7973052c4d31.js","sources":["webpack://home-assistant-frontend/chunk.1c11636c7973052c4d31.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js b/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js deleted file mode 100644 index 938192296..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[468],{91100:function(e,t,n){var u=n(79668),r=n(48544);n(27301);function i(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||u.whiteList,e.onAttr=e.onAttr||u.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||u.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||u.safeAttrValue,this.options=e}a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,u=t.onAttr,a=t.onIgnoreAttr,s=t.safeAttrValue;return r(e,(function(e,t,r,o,l){var c=n[r],D=!1;if(!0===c?D=c:"function"==typeof c?D=c(o):c instanceof RegExp&&(D=c.test(o)),!0!==D&&(D=!1),o=s(r,o)){var p,h={position:t,sourcePosition:e,source:l,isWhite:D};return D?i(p=u(r,o,h))?r+":"+o:p:i(p=a(r,o,h))?void 0:p}}))},e.exports=a},79668:function(e,t){function n(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var u=/javascript\s*\:/gim;t.whiteList=n(),t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return u.test(t)?"":t}},8300:function(e,t,n){var u=n(79668),r=n(91100);for(var i in(t=e.exports=function(e,t){return new r(t).process(e)}).FilterCSS=r,u)t[i]=u[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)},48544:function(e,t,n){var u=n(27301);e.exports=function(e,t){";"!==(e=u.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,r=!1,i=0,a=0,s="";function o(){if(!r){var n=u.trim(e.slice(i,a)),o=n.indexOf(":");if(-1!==o){var l=u.trim(n.slice(0,o)),c=u.trim(n.slice(o+1));if(l){var D=t(i,s.length,l,c,n);D&&(s+=D+"; ")}}}i=a+1}for(;ae.length)&&(t=e.length);for(var n=0,u=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(u=e[Symbol.iterator]()).next.bind(u)}var u=function(e){var t={exports:{}};return e(t,t.exports),t.exports}((function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:t,changeDefaults:function(t){e.exports.defaults=t}}})),r=/[&<>"']/,i=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(e){return o[e]},c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function D(e){return e.replace(c,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g,h=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,f={},d=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,A=/^([^:]+:\/*[^/]*)[\s\S]*$/;function F(e,t){f[" "+e]||(d.test(e)?f[" "+e]=e+"/":f[" "+e]=b(e,"/",!0));var n=-1===(e=f[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(m,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(A,"$1")+t:e+t}function b(e,t,n){var u=e.length;if(0===u)return"";for(var r=0;r=0&&"\\"===n[r];)u=!u;return u?"|":" |"})).split(/ \|/),u=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},$=u.defaults,T=y,I=B,R=k,O=_;function j(e,t,n){var u=t.href,r=t.title?R(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:u,title:r,text:i}:{type:"image",raw:n,href:u,title:r,text:R(i)}}var q=function(){function e(e){this.options=e||$}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:T(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],u=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var u=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=u.length?e.slice(u.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:u}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var u=T(n,"#");this.options.pedantic?n=u.trim():u&&!/ $/.test(u)||(n=u.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:I(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var u,r=n.align.length;for(u=0;u ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,u,r,i,a,s,o,l,c=t[0],D=t[2],p=D.length>1,h={type:"list",raw:c,ordered:p,start:p?+D.slice(0,-1):"",loose:!1,items:[]},g=t[0].match(this.rules.block.item),f=!1,d=g.length;r=this.rules.block.listItemStart.exec(g[0]);for(var m=0;mr[1].length:i[1].length>r[0].length||i[1].length>3){g.splice(m,2,g[m]+"\n"+g[m+1]),m--,d--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==D[D.length-1]:p===(1===i[2].length))&&(a=g.slice(m+1).join("\n"),h.raw=h.raw.substring(0,h.raw.length-a.length),m=d-1),r=i}u=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(u-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+u+"}","gm"),"")),s=f||/\n\n(?!\s*$)/.test(n),m!==d-1&&(f="\n"===n.charAt(n.length-1),s||(s=f)),s&&(h.loose=!0),this.options.gfm&&(l=void 0,(o=/^\[[ xX]\] /.test(n))&&(l=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:c,task:o,checked:l,loose:s,text:n})}return h}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):R(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:I(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var u,r=n.align.length;for(u=0;u/i.test(u[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(u[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(u[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:u[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):R(u[0]):u[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var u=T(n.slice(0,-1),"\\");if((n.length-u.length)%2==0)return}else{var r=O(t[2],"()");if(r>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var a=t[2],s="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);o&&(a=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),j(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var u=(n[2]||n[1]).replace(/\s+/g," ");if(!(u=t[u.toLowerCase()])||!u.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return j(n,u,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var u=this.rules.inline.emStrong.lDelim.exec(e);if(u&&(!u[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=u[1]||u[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var i,a,s=u[0].length-1,o=s,l=0,c="*"===u[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);null!=(u=c.exec(t));)if(i=u[1]||u[2]||u[3]||u[4]||u[5]||u[6])if(a=i.length,u[3]||u[4])o+=a;else if(!((u[5]||u[6])&&s%3)||(s+a)%3){if(!((o-=a)>0)){if(o+l-a<=0&&!t.slice(c.lastIndex).match(c)&&(a=Math.min(a,a+o+l)),Math.min(s,a)%2)return{type:"em",raw:e.slice(0,s+u.index+a+1),text:e.slice(1,s+u.index+a)};if(Math.min(s,a)%2==0)return{type:"strong",raw:e.slice(0,s+u.index+a+1),text:e.slice(2,s+u.index+a-1)}}}else l+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),u=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return u&&r&&(n=n.substring(1,n.length-1)),n=R(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,u,r=this.rules.inline.autolink.exec(e);if(r)return u="@"===r[2]?"mailto:"+(n=R(this.options.mangle?t(r[1]):r[1])):n=R(r[1]),{type:"link",raw:r[0],text:n,href:u,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var u,r;if("@"===n[2])r="mailto:"+(u=R(this.options.mangle?t(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);u=R(n[0]),r="www."===n[1]?"http://"+u:u}return{type:"link",raw:n[0],text:u,href:r,tokens:[{type:"text",raw:u,text:u}]}}},t.inlineText=function(e,t,n){var u,r=this.rules.inline.text.exec(e);if(r)return u=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):R(r[0]):r[0]:R(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:u}},e}(),L=v,Z=E,P=w,U={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:L,table:L,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};U.def=Z(U.def).replace("label",U._label).replace("title",U._title).getRegex(),U.bullet=/(?:[*+-]|\d{1,9}[.)])/,U.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,U.item=Z(U.item,"gm").replace(/bull/g,U.bullet).getRegex(),U.listItemStart=Z(/^( *)(bull)/).replace("bull",U.bullet).getRegex(),U.list=Z(U.list).replace(/bull/g,U.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+U.def.source+")").getRegex(),U._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",U._comment=/|$)/,U.html=Z(U.html,"i").replace("comment",U._comment).replace("tag",U._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U.paragraph=Z(U._paragraph).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.blockquote=Z(U.blockquote).replace("paragraph",U.paragraph).getRegex(),U.normal=P({},U),U.gfm=P({},U.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),U.gfm.nptable=Z(U.gfm.nptable).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.gfm.table=Z(U.gfm.table).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",U._tag).getRegex(),U.pedantic=P({},U.normal,{html:Z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",U._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:L,paragraph:Z(U.normal._paragraph).replace("hr",U.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",U.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:L,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:L,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};V.punctuation=Z(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/\\\*|\\_/g,V._comment=Z(U._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=Z(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=Z(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=Z(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,V.autolink=Z(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=Z(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=Z(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=Z(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=Z(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=P({},V),V.pedantic=P({},V.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Z(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=P({},V.normal,{escape:Z(V.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),u+="&#"+n+";";return u}var J=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||H,this.options.tokenizer=this.options.tokenizer||new q,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:X.normal,inline:N.normal};this.options.pedantic?(t.block=X.pedantic,t.inline=N.pedantic):this.options.gfm&&(t.block=X.gfm,this.options.breaks?t.inline=N.breaks:t.inline=N.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,u,r,i=t.prototype;return i.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(e,t,n){var u,r,i,a;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(u=this.tokenizer.space(e))e=e.substring(u.raw.length),u.type&&t.push(u);else if(u=this.tokenizer.code(e))e=e.substring(u.raw.length),(a=t[t.length-1])&&"paragraph"===a.type?(a.raw+="\n"+u.raw,a.text+="\n"+u.text):t.push(u);else if(u=this.tokenizer.fences(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.heading(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.nptable(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.hr(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.blockquote(e))e=e.substring(u.raw.length),u.tokens=this.blockTokens(u.text,[],n),t.push(u);else if(u=this.tokenizer.list(e)){for(e=e.substring(u.raw.length),i=u.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+M("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+M("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(o=""),s=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,u)){e=e.substring(r.raw.length),n=r.inLink,u=r.inRawBlock;var D=t[t.length-1];D&&"text"===r.type&&"text"===D.type?(D.raw+=r.raw,D.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,u)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);var p=t[t.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,u),t.push(r)):p&&"text"===r.type&&"text"===p.type?(p.raw+=r.raw,p.text+=r.text):t.push(r)}else if(r=this.tokenizer.emStrong(e,l,o))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,u),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,u),t.push(r);else if(r=this.tokenizer.autolink(e,Q))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,Q))){if(r=this.tokenizer.inlineText(e,u,G))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),s=!0,(i=t[t.length-1])&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,r=[{key:"rules",get:function(){return{block:X,inline:N}}}],(u=null)&&e(n.prototype,u),r&&e(n,r),t}(),K=u.defaults,Y=x,ee=k,te=function(){function e(e){this.options=e||K}var t=e.prototype;return t.code=function(e,t,n){var u=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,u);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",u?'
'+(n?e:ee(e,!0))+"
\n":"
"+(n?e:ee(e,!0))+"
\n"},t.blockquote=function(e){return"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,n,u){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,n){var u=t?"ol":"ul";return"<"+u+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;var u='"},t.image=function(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;var u=''+n+'":">"},t.text=function(e){return e},e}(),ne=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),ue=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,u=0;if(this.seen.hasOwnProperty(n)){u=this.seen[e];do{n=e+"-"+ ++u}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=u,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),re=u.defaults,ie=C,ae=function(){function e(e){this.options=e||re,this.options.renderer=this.options.renderer||new te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ne,this.slugger=new ue}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,u,r,i,a,s,o,l,c,D,p,h,g,f,d,m,A,F,b="",k=e.length;for(n=0;n0&&"text"===d.tokens[0].type?(d.tokens[0].text=F+" "+d.tokens[0].text,d.tokens[0].tokens&&d.tokens[0].tokens.length>0&&"text"===d.tokens[0].tokens[0].type&&(d.tokens[0].tokens[0].text=F+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:F}):f+=F),f+=this.parse(d.tokens,g),c+=this.renderer.listitem(f,A,m);b+=this.renderer.list(c,p,h);continue;case"html":b+=this.renderer.html(D.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(D.tokens));continue;case"text":for(c=D.tokens?this.parseInline(D.tokens):D.text;n+1An error occurred:

    "+le(o.message+"",!0)+"
    ";throw o}}return he.options=he.setOptions=function(e){return se(he.defaults,e),De(he.defaults),he},he.getDefaults=ce,he.defaults=pe,he.use=function(e){var t=se({},e);if(e.renderer&&function(){var n=he.defaults.renderer||new te,u=function(t){var u=n[t];n[t]=function(){for(var r=arguments.length,i=new Array(r),a=0;aAn error occurred:

    "+le(u.message+"",!0)+"
    ";throw u}},he.Parser=ae,he.parser=ae.parse,he.Renderer=te,he.TextRenderer=ne,he.Lexer=J,he.lexer=J.lex,he.Tokenizer=q,he.Slugger=ue,he.parse=he,he},"object"===a(t)?e.exports=i():void 0===(r="function"==typeof(u=i)?u.call(t,n,t,e):u)||(e.exports=r)},60841:function(e,t,n){var u=n(8300).FilterCSS,r=n(8300).getDefaultWhiteList,i=n(58511);function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var s=new u;function o(e){return e.replace(l,"<").replace(c,">")}var l=//g,D=/"/g,p=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,g=/:?/gim,f=/&newline;?/gim,d=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,m=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,A=/u\s*r\s*l\s*\(.*/gi;function F(e){return e.replace(D,""")}function b(e){return e.replace(p,'"')}function k(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function C(e){return e.replace(g,":").replace(f," ")}function E(e){for(var t="",n=0,u=e.length;n/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=a,t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,u){if(n=x(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(d.lastIndex=0,d.test(n))return""}else if("style"===t){if(m.lastIndex=0,m.test(n))return"";if(A.lastIndex=0,A.test(n)&&(d.lastIndex=0,d.test(n)))return"";!1!==u&&(n=(u=u||s).process(n))}return n=v(n)},t.escapeHtml=o,t.escapeQuote=F,t.unescapeQuote=b,t.escapeHtmlEntities=k,t.escapeDangerHtml5Entities=C,t.clearNonPrintableCharacter=E,t.friendlyAttrValue=x,t.escapeAttrValue=v,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),u=[],r=!1;return{onIgnoreTag:function(a,s,o){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(o.isClosing){var l="[/removed]",c=o.position+l.length;return u.push([!1!==r?r:o.position,c]),r=!1,l}return r||(r=o.position),"[removed]"}return t(a,s,o)},remove:function(e){var t="",n=0;return i.forEach(u,(function(u){t+=e.slice(n,u[0]),n=u[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){return e.replace(w,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.cssFilter=s,t.getDefaultCSSWhiteList=r},62173:function(e,t,n){var u=n(60841),r=n(79542),i=n(61585);function a(e,t){return new i(t).process(e)}for(var s in(t=e.exports=a).filterXSS=a,t.FilterXSS=i,u)t[s]=u[s];for(var s in r)t[s]=r[s];"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},79542:function(e,t,n){var u=n(58511);function r(e){var t=u.spaceIndex(e);if(-1===t)var n=e.slice(1,-1);else n=e.slice(1,t+1);return"/"===(n=u.trim(n).toLowerCase()).slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}function i(e){return"0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function l(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){"use strict";var u="",a=0,s=!1,o=!1,l=0,c=e.length,D="",p="";e:for(l=0;l"===h){u+=n(e.slice(a,s)),D=r(p=e.slice(s,l+1)),u+=t(s,u.length,D,p,i(p)),a=l+1,s=!1;continue}if('"'===h||"'"===h)for(var g=1,f=e.charAt(l-g);""===f.trim()||"="===f;){if("="===f){o=h;continue e}f=e.charAt(l-++g)}}else if(h===o){o=!1;continue}}return a";var A=function(e){var t=o.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=o.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=o.trim(e.slice(0,-1))),{html:e,closing:n}}(a),F=n[r],b=s(A.html,(function(e,t){var n,u=-1!==o.indexOf(F,e);return l(n=c(r,e,t,u))?u?(t=p(r,e,t,g))?e+'="'+t+'"':e:l(n=D(r,e,t,u))?void 0:n:n}));a="<"+r;return b&&(a+=" "+b),A.closing&&(a+=" /"),a+=">"}return l(d=i(r,a,m))?h(a):d}),h);return f&&(d=f.remove(d)),d},e.exports=c}}]); -//# sourceMappingURL=chunk.1e2dd1c788ee690c5db3.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js.gz b/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js.gz deleted file mode 100644 index ffe45d3e8..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js.map b/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js.map deleted file mode 100644 index 4bbcaba3a..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.1e2dd1c788ee690c5db3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.1e2dd1c788ee690c5db3.js","sources":["webpack://home-assistant-frontend/chunk.1e2dd1c788ee690c5db3.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js b/supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js similarity index 74% rename from supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js rename to supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js index 9a6797e3a..a6f58ec81 100644 --- a/supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js +++ b/supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js @@ -1,2 +1,2 @@ -!function(){"use strict";var r,t={5425:function(r,t,e){var n=e(91107);e(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=r&&("undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"]);if(null==e)return;var n,o,i=[],u=!0,f=!1;try{for(e=e.call(r);!(u=(n=e.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(a){f=!0,o=a}finally{try{u||null==e.return||e.return()}finally{if(f)throw o}}return i}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return i(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(r,t)}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);ef?1*i:0}))}};(0,n.Jj)(u)}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.m=t,n.x=function(){return n(5425)},n.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(t,{a:t}),t},n.d=function(r,t){for(var e in t)n.o(t,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},n.f={},n.e=function(r){return Promise.all(Object.keys(n.f).reduce((function(t,e){return n.f[e](r,t),t}),[]))},n.u=function(r){return"chunk.833d77f40e84324989d7.js"},n.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},r=n.x,n.x=function(){return n.e(354).then(r)},n.p="/api/hassio/app/frontend_es5/",function(){var r={425:1,477:1};n.f.i=function(t,e){r[t]||importScripts(""+n.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],e=t.push.bind(t);t.push=function(t){var o=t[0],i=t[1],u=t[2];for(var f in i)n.o(i,f)&&(n.m[f]=i[f]);for(u&&u(n);o.length;)r[o.pop()]=1;e(t)}}();n.x()}(); -//# sourceMappingURL=chunk.9aa4ef8c17fb2d9fb76b.js.map \ No newline at end of file +!function(){"use strict";var r,t={5425:function(r,t,e){var n=e(91107);e(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=r&&("undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"]);if(null==e)return;var n,o,i=[],u=!0,a=!1;try{for(e=e.call(r);!(u=(n=e.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(f){a=!0,o=f}finally{try{u||null==e.return||e.return()}finally{if(a)throw o}}return i}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return i(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(r,t)}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);ea?1*i:0}))}};(0,n.Jj)(u)}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.m=t,n.x=function(){return n(5425)},n.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(t,{a:t}),t},n.d=function(r,t){for(var e in t)n.o(t,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},n.f={},n.e=function(r){return Promise.all(Object.keys(n.f).reduce((function(t,e){return n.f[e](r,t),t}),[]))},n.u=function(r){return"chunk.aa4c3f9e4936a956fbc9.js"},n.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},r=n.x,n.x=function(){return n.e(354).then(r)},n.p="/api/hassio/app/frontend_es5/",function(){var r={425:1,477:1};n.f.i=function(t,e){r[t]||importScripts(""+n.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],e=t.push.bind(t);t.push=function(t){var o=t[0],i=t[1],u=t[2];for(var a in i)n.o(i,a)&&(n.m[a]=i[a]);for(u&&u(n);o.length;)r[o.pop()]=1;e(t)}}();n.x()}(); +//# sourceMappingURL=chunk.232ece16c0cd5fc459b7.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js.gz b/supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js.gz new file mode 100644 index 000000000..532e316d5 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js.map b/supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js.map new file mode 100644 index 000000000..ebeabcf88 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.232ece16c0cd5fc459b7.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.232ece16c0cd5fc459b7.js","sources":["webpack://home-assistant-frontend/chunk.232ece16c0cd5fc459b7.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js.gz b/supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js.gz deleted file mode 100644 index 789a1a17c..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js.map b/supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js.map deleted file mode 100644 index f96cf373b..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.28fb32d36188f80481fb.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.28fb32d36188f80481fb.js","sources":["webpack://home-assistant-frontend/chunk.28fb32d36188f80481fb.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.f95f4f4765bdd48bb411.js b/supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js similarity index 74% rename from supervisor/api/panel/frontend_es5/chunk.f95f4f4765bdd48bb411.js rename to supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js index f48cd7cc0..7ea63fdc9 100644 --- a/supervisor/api/panel/frontend_es5/chunk.f95f4f4765bdd48bb411.js +++ b/supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js @@ -1,2 +1,2 @@ -!function(){"use strict";var r,t={5425:function(r,t,e){var n=e(91107);e(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=r&&("undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"]);if(null==e)return;var n,o,i=[],u=!0,f=!1;try{for(e=e.call(r);!(u=(n=e.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(a){f=!0,o=a}finally{try{u||null==e.return||e.return()}finally{if(f)throw o}}return i}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return i(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(r,t)}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);ef?1*i:0}))}};(0,n.Jj)(u)}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.m=t,n.x=function(){return n(5425)},n.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(t,{a:t}),t},n.d=function(r,t){for(var e in t)n.o(t,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},n.f={},n.e=function(r){return Promise.all(Object.keys(n.f).reduce((function(t,e){return n.f[e](r,t),t}),[]))},n.u=function(r){return"chunk.833d77f40e84324989d7.js"},n.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},r=n.x,n.x=function(){return n.e(354).then(r)},n.p="/api/hassio/app/frontend_es5/",function(){var r={477:1,425:1};n.f.i=function(t,e){r[t]||importScripts(""+n.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],e=t.push.bind(t);t.push=function(t){var o=t[0],i=t[1],u=t[2];for(var f in i)n.o(i,f)&&(n.m[f]=i[f]);for(u&&u(n);o.length;)r[o.pop()]=1;e(t)}}();n.x()}(); -//# sourceMappingURL=chunk.f95f4f4765bdd48bb411.js.map \ No newline at end of file +!function(){"use strict";var r,t={5425:function(r,t,e){var n=e(91107);e(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=r&&("undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"]);if(null==e)return;var n,o,i=[],u=!0,a=!1;try{for(e=e.call(r);!(u=(n=e.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(f){a=!0,o=f}finally{try{u||null==e.return||e.return()}finally{if(a)throw o}}return i}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return i(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(r,t)}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);ea?1*i:0}))}};(0,n.Jj)(u)}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.m=t,n.x=function(){return n(5425)},n.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(t,{a:t}),t},n.d=function(r,t){for(var e in t)n.o(t,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},n.f={},n.e=function(r){return Promise.all(Object.keys(n.f).reduce((function(t,e){return n.f[e](r,t),t}),[]))},n.u=function(r){return"chunk.aa4c3f9e4936a956fbc9.js"},n.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},r=n.x,n.x=function(){return n.e(354).then(r)},n.p="/api/hassio/app/frontend_es5/",function(){var r={477:1,425:1};n.f.i=function(t,e){r[t]||importScripts(""+n.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],e=t.push.bind(t);t.push=function(t){var o=t[0],i=t[1],u=t[2];for(var a in i)n.o(i,a)&&(n.m[a]=i[a]);for(u&&u(n);o.length;)r[o.pop()]=1;e(t)}}();n.x()}(); +//# sourceMappingURL=chunk.38bf45e75c5f9e1064ab.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js.gz b/supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js.gz new file mode 100644 index 000000000..a8f0d2079 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js.map b/supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js.map new file mode 100644 index 000000000..39721cc33 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.38bf45e75c5f9e1064ab.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.38bf45e75c5f9e1064ab.js","sources":["webpack://home-assistant-frontend/chunk.38bf45e75c5f9e1064ab.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js b/supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js similarity index 73% rename from supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js rename to supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js index 0ff2fff77..f5c18b138 100644 --- a/supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js +++ b/supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js @@ -1,2 +1,2 @@ -!function(){"use strict";var n,t={14971:function(n,t,e){var r,o,i=e(91107),u=e(9902),s=e.n(u),a=(e(58556),e(62173)),c={renderMarkdown:function(n,t){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r||(r=Object.assign({},(0,a.getDefaultWhiteList)(),{"ha-icon":["icon"],"ha-svg-icon":["path"]})),i.allowSvg?(o||(o=Object.assign({},r,{svg:["xmlns","height","width"],path:["transform","stroke","d"],img:["src"]})),e=o):e=r,(0,a.filterXSS)(s()(n,t),{whiteList:e})}};(0,i.Jj)(c)}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.m=t,r.x=function(){return r(14971)},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,{a:t}),t},r.d=function(n,t){for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.f={},r.e=function(n){return Promise.all(Object.keys(r.f).reduce((function(t,e){return r.f[e](n,t),t}),[]))},r.u=function(n){return"chunk."+{354:"833d77f40e84324989d7",468:"1e2dd1c788ee690c5db3"}[n]+".js"},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},n=r.x,r.x=function(){return Promise.all([r.e(354),r.e(468)]).then(n)},r.p="/api/hassio/app/frontend_es5/",function(){var n={971:1};r.f.i=function(t,e){n[t]||importScripts(""+r.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],e=t.push.bind(t);t.push=function(t){var o=t[0],i=t[1],u=t[2];for(var s in i)r.o(i,s)&&(r.m[s]=i[s]);for(u&&u(r);o.length;)n[o.pop()]=1;e(t)}}();r.x()}(); -//# sourceMappingURL=chunk.3e4f1650e26d55e933a8.js.map \ No newline at end of file +!function(){"use strict";var n,t={14971:function(n,t,e){var r,o,i=e(91107),a=e(9902),u=e.n(a),f=(e(58556),e(62173)),s={renderMarkdown:function(n,t){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r||(r=Object.assign({},(0,f.getDefaultWhiteList)(),{"ha-icon":["icon"],"ha-svg-icon":["path"]})),i.allowSvg?(o||(o=Object.assign({},r,{svg:["xmlns","height","width"],path:["transform","stroke","d"],img:["src"]})),e=o):e=r,(0,f.filterXSS)(u()(n,t),{whiteList:e})}};(0,i.Jj)(s)}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.m=t,r.x=function(){return r(14971)},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,{a:t}),t},r.d=function(n,t){for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.f={},r.e=function(n){return Promise.all(Object.keys(r.f).reduce((function(t,e){return r.f[e](n,t),t}),[]))},r.u=function(n){return"chunk."+{354:"aa4c3f9e4936a956fbc9",468:"b9d30baa8281f2ef1718"}[n]+".js"},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},n=r.x,r.x=function(){return Promise.all([r.e(354),r.e(468)]).then(n)},r.p="/api/hassio/app/frontend_es5/",function(){var n={971:1};r.f.i=function(t,e){n[t]||importScripts(""+r.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],e=t.push.bind(t);t.push=function(t){var o=t[0],i=t[1],a=t[2];for(var u in i)r.o(i,u)&&(r.m[u]=i[u]);for(a&&a(r);o.length;)n[o.pop()]=1;e(t)}}();r.x()}(); +//# sourceMappingURL=chunk.390a8f1bf0c6addf0c23.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js.gz b/supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js.gz new file mode 100644 index 000000000..f6977b0cb Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js.map b/supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js.map new file mode 100644 index 000000000..a50c81bdf --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.390a8f1bf0c6addf0c23.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.390a8f1bf0c6addf0c23.js","sources":["webpack://home-assistant-frontend/chunk.390a8f1bf0c6addf0c23.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js b/supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js rename to supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js index 36be9cd6f..9b627926e 100644 --- a/supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js +++ b/supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[625],{59625:function(e,t,r){"use strict";r.r(t);var n=r(55317),i=r(50424),o=r(55358),s=r(47181),a=r(83849),c=r(15493),l=r(96151),u=r(34154),d=r(41682),f=r(63864);function p(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(l){return void r(l)}a.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){p(o,n,i,s,a,"next",e)}function a(e){p(o,n,i,s,a,"throw",e)}s(void 0)}))}}function m(e){return document.cookie="ingress_session=".concat(e,";path=/api/hassio_ingress/;SameSite=Strict").concat("https:"===location.protocol?";Secure":""),e}var v,y,b,k,g=function(){var e=h(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,f.I)(t.config.version,2021,2,4)){e.next=5;break}return e.next=3,t.callWS({type:"supervisor/api",endpoint:"/ingress/session",method:"post"});case 3:return r=e.sent,e.abrupt("return",m(r.session));case 5:return e.next=7,t.callApi("POST","hassio/ingress/session");case 7:return n=e.sent,e.abrupt("return",m(n.data.session));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=h(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,f.I)(t.config.version,2021,2,4)){e.next=4;break}return e.next=3,t.callWS({type:"supervisor/api",endpoint:"/ingress/validate_session",method:"post",data:{session:r}});case 3:return e.abrupt("return");case 4:return e.next=6,t.callApi("POST","hassio/ingress/validate_session",{session:r});case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),x=r(26765),E=(r(21625),r(25516));r(2315),r(3634);function P(e){return(P="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){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var i=j(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return C(this,r)}}function C(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?D(e):t}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(){T=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!I(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ','\n\n
    ','
    \n \n
    \n
    =0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r "])));var e=(0,i.dy)(U||(U=J([""])),this._addon.ingress_url);return this.ingressPanel?(0,i.dy)(N||(N=J(["",""])),this.narrow||"always_hidden"===this.hass.dockedSidebar?(0,i.dy)(W||(W=J(['
    \n \n \n
    ',"
    \n
    \n ",""])),this.hass.localize("ui.sidebar.sidebar_toggle"),this._toggleMenu,n.$Qi,this._addon.name,e):e):(0,i.dy)($||($=J(["\n ","\n "])),this.hass,this._addon.name,this.narrow,e)}},{kind:"method",key:"firstUpdated",value:(f=H(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=26;break}if(!(t=(0,c.io)("addon"))){e.next=26;break}return e.prev=3,e.next=6,(0,u.AD)(this.hass,t);case 6:r=e.sent,e.next=17;break;case 9:return e.prev=9,e.t0=e.catch(3),e.next=13,(0,x.Ys)(this,{text:(0,d.js)(e.t0),title:t});case 13:return e.next=15,(0,l.y)();case 15:return history.back(),e.abrupt("return");case 17:if(r.ingress){e.next=25;break}return e.next=20,(0,x.Ys)(this,{text:this.supervisor.localize("my.error_addon_no_ingress"),title:r.name});case 20:return e.next=22,(0,l.y)();case 22:history.back(),e.next=26;break;case 25:(0,a.c)("/hassio/ingress/".concat(r.slug),{replace:!0});case 26:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(){return f.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){if(le(ue(p.prototype),"updated",this).call(this,e),e.has("route")){var t=this.route.path.substr(1),r=e.get("route"),n=r?r.path.substr(1):void 0;t&&t!==n&&this._fetchData(t)}}},{kind:"method",key:"_fetchData",value:(r=H(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=g(this.hass),e.prev=1,e.next=4,(0,u.AD)(this.hass,t);case 4:n=e.sent,e.next=15;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,(0,x.Ys)(this,{text:"Unable to fetch add-on info to start Ingress",title:"Supervisor"});case 11:return e.next=13,(0,l.y)();case 13:return history.back(),e.abrupt("return");case 15:if(n.ingress_url){e.next=22;break}return e.next=18,(0,x.Ys)(this,{text:"Add-on does not support Ingress",title:n.name});case 18:return e.next=20,(0,l.y)();case 20:return history.back(),e.abrupt("return");case 22:if("started"===n.state){e.next=29;break}return e.next=25,(0,x.Ys)(this,{text:"Add-on is not running. Please start it first",title:n.name});case 25:return e.next=27,(0,l.y)();case 27:return(0,a.c)("/hassio/addon/".concat(n.slug,"/info"),{replace:!0}),e.abrupt("return");case 29:return e.prev=29,e.next=32,r;case 32:i=e.sent,e.next=43;break;case 35:return e.prev=35,e.t1=e.catch(29),e.next=39,(0,x.Ys)(this,{text:"Unable to create an Ingress session",title:n.name});case 39:return e.next=41,(0,l.y)();case 41:return history.back(),e.abrupt("return");case 43:this._sessionKeepAlive&&clearInterval(this._sessionKeepAlive),this._sessionKeepAlive=window.setInterval(H(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w(o.hass,i);case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),e.next=9,g(o.hass);case 9:i=e.sent;case 10:case"end":return e.stop()}}),e,null,[[0,5]])}))),6e4),this._addon=n;case 46:case"end":return e.stop()}}),e,this,[[1,7],[29,35]])}))),function(e){return r.apply(this,arguments)})},{kind:"method",key:"_toggleMenu",value:function(){(0,s.B)(this,"hass-toggle-menu")}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(Q||(Q=J(["\n iframe {\n display: block;\n width: 100%;\n height: 100%;\n border: 0;\n }\n\n .header + iframe {\n height: calc(100% - 40px);\n }\n\n .header {\n display: flex;\n align-items: center;\n font-size: 16px;\n height: 40px;\n padding: 0 16px;\n pointer-events: none;\n background-color: var(--app-header-background-color);\n font-weight: 400;\n color: var(--app-header-text-color, white);\n border-bottom: var(--app-header-border-bottom, none);\n box-sizing: border-box;\n --mdc-icon-size: 20px;\n }\n\n .main-title {\n margin: 0 0 0 24px;\n line-height: 20px;\n flex-grow: 1;\n }\n\n mwc-icon-button {\n pointer-events: auto;\n }\n\n hass-subpage {\n --app-header-background-color: var(--sidebar-background-color);\n --app-header-text-color: var(--sidebar-text-color);\n --app-header-border-bottom: 1px solid var(--divider-color);\n }\n "])))}}]}}),i.oi)}}]); -//# sourceMappingURL=chunk.43b321e0aad0217c8441.js.map \ No newline at end of file +//# sourceMappingURL=chunk.3a1fc82df428371633dd.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js.gz b/supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js.gz similarity index 71% rename from supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js.gz rename to supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js.gz index 6a3d8a8b4..405bada9e 100644 Binary files a/supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js.gz and b/supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js.map b/supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js.map new file mode 100644 index 000000000..4b98a9e40 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.3a1fc82df428371633dd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.3a1fc82df428371633dd.js","sources":["webpack://home-assistant-frontend/chunk.3a1fc82df428371633dd.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js.gz b/supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js.gz deleted file mode 100644 index bb200cdb9..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js.map b/supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js.map deleted file mode 100644 index 937cb48fd..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.3e4f1650e26d55e933a8.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.3e4f1650e26d55e933a8.js","sources":["webpack://home-assistant-frontend/chunk.3e4f1650e26d55e933a8.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js.map b/supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js.map deleted file mode 100644 index 37b0312c6..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.43b321e0aad0217c8441.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.43b321e0aad0217c8441.js","sources":["webpack://home-assistant-frontend/chunk.43b321e0aad0217c8441.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js b/supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js similarity index 98% rename from supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js rename to supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js index 9710214c8..839741e9c 100644 --- a/supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js +++ b/supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js @@ -1,2 +1,2 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[633],{27232:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=new WeakMap;n.default=function(e){var n=t.get(e);return n||(n=Object.create(null),t.set(e,n)),n}},52443:function(e,n,t){"use strict";function r(e){return(r="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)}Object.defineProperty(n,"__esModule",{value:!0}),n.Locale=void 0;var a=t(87480),i=t(64389),o=t(39460),l=a.__importStar(t(16085)),c=a.__importDefault(t(27232)),u=l.supplemental.likelySubtags,d=["ca","co","hc","kf","kn","nu"],s=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function g(e,n,t,r,i){return void 0===r&&(r=[]),i?{lang:e&&"und"!==e?e:i.lang,script:n||i.script,region:t||i.region,variants:a.__spreadArray(a.__spreadArray([],r),i.variants)}:{lang:e||"und",script:n,region:t,variants:r}}function f(e){var n=o.parseUnicodeLocaleId(e),t=n.lang,r=t.lang,a=t.script,i=t.region,l=t.variants;if(a&&i){var c=u[o.emitUnicodeLanguageId({lang:r,script:a,region:i,variants:[]})];if(c){var d=o.parseUnicodeLanguageId(c);return n.lang=g(void 0,void 0,void 0,l,d),o.emitUnicodeLocaleId(n)}}if(a){var s=u[o.emitUnicodeLanguageId({lang:r,script:a,variants:[]})];if(s){var f=o.parseUnicodeLanguageId(s);return n.lang=g(void 0,void 0,i,l,f),o.emitUnicodeLocaleId(n)}}if(i){var p=u[o.emitUnicodeLanguageId({lang:r,region:i,variants:[]})];if(p){var v=o.parseUnicodeLanguageId(p);return n.lang=g(void 0,a,void 0,l,v),o.emitUnicodeLocaleId(n)}}var y=u[r]||u[o.emitUnicodeLanguageId({lang:"und",script:a,variants:[]})];if(!y)throw new Error("No match for addLikelySubtags");var b=o.parseUnicodeLanguageId(y);return n.lang=g(void 0,a,i,l,b),o.emitUnicodeLocaleId(n)}var p=function(){function e(n,t){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.Locale must be called with 'new'");var l,u=e.relevantExtensionKeys,d=["initializedLocale","locale","calendar","collation","hourCycle","numberingSystem"];if(u.indexOf("kf")>-1&&d.push("caseFirst"),u.indexOf("kn")>-1&&d.push("numeric"),void 0===n)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if("string"!=typeof n&&"object"!==r(n))throw new TypeError("tag must be a string or object");n="object"===r(n)&&(l=c.default(n))&&l.initializedLocale?l.locale:n.toString(),l=c.default(this);var g=i.CoerceOptionsToObject(t);n=function(e,n){i.invariant("string"==typeof e,"language tag must be a string"),i.invariant(o.isStructurallyValidLanguageTag(e),"malformed language tag",RangeError);var t=i.GetOption(n,"language","string",void 0,void 0);void 0!==t&&i.invariant(o.isUnicodeLanguageSubtag(t),"Malformed unicode_language_subtag",RangeError);var r=i.GetOption(n,"script","string",void 0,void 0);void 0!==r&&i.invariant(o.isUnicodeScriptSubtag(r),"Malformed unicode_script_subtag",RangeError);var l=i.GetOption(n,"region","string",void 0,void 0);void 0!==l&&i.invariant(o.isUnicodeRegionSubtag(l),"Malformed unicode_region_subtag",RangeError);var c=o.parseUnicodeLanguageId(e);return void 0!==t&&(c.lang=t),void 0!==r&&(c.script=r),void 0!==l&&(c.region=l),Intl.getCanonicalLocales(o.emitUnicodeLocaleId(a.__assign(a.__assign({},o.parseUnicodeLocaleId(e)),{lang:c})))[0]}(n,g);var f=Object.create(null),p=i.GetOption(g,"calendar","string",void 0,void 0);if(void 0!==p&&!s.test(p))throw new RangeError("invalid calendar");f.ca=p;var v=i.GetOption(g,"collation","string",void 0,void 0);if(void 0!==v&&!s.test(v))throw new RangeError("invalid collation");f.co=v;var y=i.GetOption(g,"hourCycle","string",["h11","h12","h23","h24"],void 0);f.hc=y;var b=i.GetOption(g,"caseFirst","string",["upper","lower","false"],void 0);f.kf=b;var m,h=i.GetOption(g,"numeric","boolean",void 0,void 0);void 0!==h&&(m=String(h)),f.kn=m;var L=i.GetOption(g,"numberingSystem","string",void 0,void 0);if(void 0!==L&&!s.test(L))throw new RangeError("Invalid numberingSystem");f.nu=L;var _=function(e,n,t){for(var r,a=[],l=o.parseUnicodeLocaleId(e),c=0,u=l.extensions;c-1&&(l.caseFirst=_.kf),u.indexOf("kn")>-1&&(l.numeric=i.SameValue(_.kn,"true")),l.numberingSystem=_.nu}return e.prototype.maximize=function(){var n=c.default(this).locale;try{return new e(f(n))}catch(t){return new e(n)}},e.prototype.minimize=function(){var n=c.default(this).locale;try{return new e(function(e){var n=f(e);if(!n)return e;n=o.emitUnicodeLanguageId(a.__assign(a.__assign({},o.parseUnicodeLanguageId(n)),{variants:[]}));var t=o.parseUnicodeLocaleId(e),r=t.lang,i=r.lang,l=r.script,c=r.region,u=r.variants;return f(o.emitUnicodeLanguageId({lang:i,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,void 0,void 0,u)})):c&&f(o.emitUnicodeLanguageId({lang:i,region:c,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,void 0,c,u)})):l&&f(o.emitUnicodeLanguageId({lang:i,script:l,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,l,void 0,u)})):e}(n))}catch(t){return new e(n)}},e.prototype.toString=function(){return c.default(this).locale},Object.defineProperty(e.prototype,"baseName",{get:function(){var e=c.default(this).locale;return o.emitUnicodeLanguageId(o.parseUnicodeLanguageId(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return c.default(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collation",{get:function(){return c.default(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourCycle",{get:function(){return c.default(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caseFirst",{get:function(){return c.default(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numeric",{get:function(){return c.default(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberingSystem",{get:function(){return c.default(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).lang},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"script",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).script},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"region",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).region},enumerable:!1,configurable:!0}),e.relevantExtensionKeys=d,e}();n.Locale=p;try{"undefined"!=typeof Symbol&&Object.defineProperty(p.prototype,Symbol.toStringTag,{value:"Intl.Locale",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype.constructor,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(v){}n.default=p},33633:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(52443);t(32812).shouldPolyfill()&&Object.defineProperty(Intl,"Locale",{value:r.Locale,writable:!0,enumerable:!1,configurable:!0})},32812:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shouldPolyfill=void 0,n.shouldPolyfill=function(){return"undefined"==typeof Intl||!("Locale"in Intl)||function(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(e){return!0}}()}}}]); -//# sourceMappingURL=chunk.a144cd0e1ffe5f935824.js.map \ No newline at end of file +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[633],{27232:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=new WeakMap;n.default=function(e){var n=t.get(e);return n||(n=Object.create(null),t.set(e,n)),n}},52443:function(e,n,t){"use strict";function r(e){return(r="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)}Object.defineProperty(n,"__esModule",{value:!0}),n.Locale=void 0;var a=t(87480),i=t(43965),o=t(39460),l=a.__importStar(t(16085)),c=a.__importDefault(t(27232)),u=l.supplemental.likelySubtags,d=["ca","co","hc","kf","kn","nu"],s=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function g(e,n,t,r,i){return void 0===r&&(r=[]),i?{lang:e&&"und"!==e?e:i.lang,script:n||i.script,region:t||i.region,variants:a.__spreadArray(a.__spreadArray([],r),i.variants)}:{lang:e||"und",script:n,region:t,variants:r}}function f(e){var n=o.parseUnicodeLocaleId(e),t=n.lang,r=t.lang,a=t.script,i=t.region,l=t.variants;if(a&&i){var c=u[o.emitUnicodeLanguageId({lang:r,script:a,region:i,variants:[]})];if(c){var d=o.parseUnicodeLanguageId(c);return n.lang=g(void 0,void 0,void 0,l,d),o.emitUnicodeLocaleId(n)}}if(a){var s=u[o.emitUnicodeLanguageId({lang:r,script:a,variants:[]})];if(s){var f=o.parseUnicodeLanguageId(s);return n.lang=g(void 0,void 0,i,l,f),o.emitUnicodeLocaleId(n)}}if(i){var p=u[o.emitUnicodeLanguageId({lang:r,region:i,variants:[]})];if(p){var v=o.parseUnicodeLanguageId(p);return n.lang=g(void 0,a,void 0,l,v),o.emitUnicodeLocaleId(n)}}var y=u[r]||u[o.emitUnicodeLanguageId({lang:"und",script:a,variants:[]})];if(!y)throw new Error("No match for addLikelySubtags");var b=o.parseUnicodeLanguageId(y);return n.lang=g(void 0,a,i,l,b),o.emitUnicodeLocaleId(n)}var p=function(){function e(n,t){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.Locale must be called with 'new'");var l,u=e.relevantExtensionKeys,d=["initializedLocale","locale","calendar","collation","hourCycle","numberingSystem"];if(u.indexOf("kf")>-1&&d.push("caseFirst"),u.indexOf("kn")>-1&&d.push("numeric"),void 0===n)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if("string"!=typeof n&&"object"!==r(n))throw new TypeError("tag must be a string or object");n="object"===r(n)&&(l=c.default(n))&&l.initializedLocale?l.locale:n.toString(),l=c.default(this);var g=i.CoerceOptionsToObject(t);n=function(e,n){i.invariant("string"==typeof e,"language tag must be a string"),i.invariant(o.isStructurallyValidLanguageTag(e),"malformed language tag",RangeError);var t=i.GetOption(n,"language","string",void 0,void 0);void 0!==t&&i.invariant(o.isUnicodeLanguageSubtag(t),"Malformed unicode_language_subtag",RangeError);var r=i.GetOption(n,"script","string",void 0,void 0);void 0!==r&&i.invariant(o.isUnicodeScriptSubtag(r),"Malformed unicode_script_subtag",RangeError);var l=i.GetOption(n,"region","string",void 0,void 0);void 0!==l&&i.invariant(o.isUnicodeRegionSubtag(l),"Malformed unicode_region_subtag",RangeError);var c=o.parseUnicodeLanguageId(e);return void 0!==t&&(c.lang=t),void 0!==r&&(c.script=r),void 0!==l&&(c.region=l),Intl.getCanonicalLocales(o.emitUnicodeLocaleId(a.__assign(a.__assign({},o.parseUnicodeLocaleId(e)),{lang:c})))[0]}(n,g);var f=Object.create(null),p=i.GetOption(g,"calendar","string",void 0,void 0);if(void 0!==p&&!s.test(p))throw new RangeError("invalid calendar");f.ca=p;var v=i.GetOption(g,"collation","string",void 0,void 0);if(void 0!==v&&!s.test(v))throw new RangeError("invalid collation");f.co=v;var y=i.GetOption(g,"hourCycle","string",["h11","h12","h23","h24"],void 0);f.hc=y;var b=i.GetOption(g,"caseFirst","string",["upper","lower","false"],void 0);f.kf=b;var m,h=i.GetOption(g,"numeric","boolean",void 0,void 0);void 0!==h&&(m=String(h)),f.kn=m;var L=i.GetOption(g,"numberingSystem","string",void 0,void 0);if(void 0!==L&&!s.test(L))throw new RangeError("Invalid numberingSystem");f.nu=L;var _=function(e,n,t){for(var r,a=[],l=o.parseUnicodeLocaleId(e),c=0,u=l.extensions;c-1&&(l.caseFirst=_.kf),u.indexOf("kn")>-1&&(l.numeric=i.SameValue(_.kn,"true")),l.numberingSystem=_.nu}return e.prototype.maximize=function(){var n=c.default(this).locale;try{return new e(f(n))}catch(t){return new e(n)}},e.prototype.minimize=function(){var n=c.default(this).locale;try{return new e(function(e){var n=f(e);if(!n)return e;n=o.emitUnicodeLanguageId(a.__assign(a.__assign({},o.parseUnicodeLanguageId(n)),{variants:[]}));var t=o.parseUnicodeLocaleId(e),r=t.lang,i=r.lang,l=r.script,c=r.region,u=r.variants;return f(o.emitUnicodeLanguageId({lang:i,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,void 0,void 0,u)})):c&&f(o.emitUnicodeLanguageId({lang:i,region:c,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,void 0,c,u)})):l&&f(o.emitUnicodeLanguageId({lang:i,script:l,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,l,void 0,u)})):e}(n))}catch(t){return new e(n)}},e.prototype.toString=function(){return c.default(this).locale},Object.defineProperty(e.prototype,"baseName",{get:function(){var e=c.default(this).locale;return o.emitUnicodeLanguageId(o.parseUnicodeLanguageId(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return c.default(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collation",{get:function(){return c.default(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourCycle",{get:function(){return c.default(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caseFirst",{get:function(){return c.default(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numeric",{get:function(){return c.default(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberingSystem",{get:function(){return c.default(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).lang},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"script",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).script},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"region",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).region},enumerable:!1,configurable:!0}),e.relevantExtensionKeys=d,e}();n.Locale=p;try{"undefined"!=typeof Symbol&&Object.defineProperty(p.prototype,Symbol.toStringTag,{value:"Intl.Locale",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype.constructor,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(v){}n.default=p},33633:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(52443);t(32812).shouldPolyfill()&&Object.defineProperty(Intl,"Locale",{value:r.Locale,writable:!0,enumerable:!1,configurable:!0})},32812:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shouldPolyfill=void 0,n.shouldPolyfill=function(){return"undefined"==typeof Intl||!("Locale"in Intl)||function(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(e){return!0}}()}}}]); +//# sourceMappingURL=chunk.518d842c726558a1ee3d.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js.gz b/supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js.gz new file mode 100644 index 000000000..16ed9b17f Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js.map b/supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js.map new file mode 100644 index 000000000..f24579137 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.518d842c726558a1ee3d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.518d842c726558a1ee3d.js","sources":["webpack://home-assistant-frontend/chunk.518d842c726558a1ee3d.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js b/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js deleted file mode 100644 index ad7cf8ed1..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[530],{22530:function(e,t,r){"use strict";r.r(t);r(87724);var n=r(55317),i=r(50424),o=r(55358),s=r(47181),a=(r(98762),r(39831),r(93559));r(52039);"".concat(location.protocol,"//").concat(location.host);var c,l,u,h,d,p,f=r(41682),m=r(77097),y=r(26765),v=r(11654);r(70452);function g(e){return(g="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 k(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function b(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(l){return void r(l)}a.done?t(c):Promise.resolve(c).then(n,i)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){b(o,n,i,s,a,"next",e)}function a(e){b(o,n,i,s,a,"throw",e)}s(void 0)}))}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(){D=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!T(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n ","\n\n \n Restore\n \n\n \n \n \n \n Download Snapshot\n Delete Snapshot\n \n \n '])),this.closeDialog,(0,a.i)(this.hass,this._computeName),this._restoringSnapshot?(0,i.dy)(u||(u=k([" "]))):(0,i.dy)(h||(h=k(["\n "])),this.hass,this._dialogParams.supervisor,this._snapshot),this._error?(0,i.dy)(d||(d=k(['

    Error: ',"

    "])),this._error):"",this._restoringSnapshot,this._restoreClicked,this._handleMenuAction,(function(e){return e.stopPropagation()}),n.SXi):(0,i.dy)(c||(c=k([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[v.Qx,v.yu,(0,i.iv)(p||(p=k(["\n ha-svg-icon {\n color: var(--primary-text-color);\n }\n ha-circular-progress {\n display: block;\n text-align: center;\n }\n "])))]}},{kind:"method",key:"_handleMenuAction",value:function(e){switch(e.detail.index){case 0:this._downloadClicked();break;case 1:this._deleteClicked()}}},{kind:"method",key:"_restoreClicked",value:(C=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._snapshotContent.snapshotDetails(),this._restoringSnapshot=!0,"full"!==this._snapshotContent.snapshotType){e.next=7;break}return e.next=5,this._fullRestoreClicked(t);case 5:e.next=9;break;case 7:return e.next=9,this._partialRestoreClicked(t);case 9:this._restoringSnapshot=!1;case 10:case"end":return e.stop()}}),e,this)}))),function(){return C.apply(this,arguments)})},{kind:"method",key:"_partialRestoreClicked",value:(E=w(regeneratorRuntime.mark((function e(t){var r,n,i,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(null===(r=this._dialogParams)||void 0===r?void 0:r.supervisor)||"running"===(null===(n=this._dialogParams)||void 0===n?void 0:n.supervisor.info.state)){e.next=4;break}return e.next=3,(0,y.Ys)(this,{title:"Could not restore snapshot",text:"Restoring a snapshot is not possible right now because the system is in ".concat(null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,y.g7)(this,{title:"Are you sure you want partially to restore this snapshot?",confirmText:"restore",dismissText:"cancel"});case 6:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:null!==(i=this._dialogParams)&&void 0!==i&&i.onboarding?((0,s.B)(this,"restoring"),fetch("/api/hassio/snapshots/".concat(this._snapshot.slug,"/restore/partial"),{method:"POST",body:JSON.stringify(t)}),this.closeDialog()):this.hass.callApi("POST","hassio/snapshots/".concat(this._snapshot.slug,"/restore/partial"),t).then((function(){a.closeDialog()}),(function(e){a._error=e.body.message}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{kind:"method",key:"_fullRestoreClicked",value:(b=w(regeneratorRuntime.mark((function e(t){var r,n,i,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(null===(r=this._dialogParams)||void 0===r?void 0:r.supervisor)||"running"===(null===(n=this._dialogParams)||void 0===n?void 0:n.supervisor.info.state)){e.next=4;break}return e.next=3,(0,y.Ys)(this,{title:"Could not restore snapshot",text:"Restoring a snapshot is not possible right now because the system is in ".concat(null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,y.g7)(this,{title:"Are you sure you want to wipe your system and restore this snapshot?",confirmText:"restore",dismissText:"cancel"});case 6:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:null!==(i=this._dialogParams)&&void 0!==i&&i.onboarding?((0,s.B)(this,"restoring"),fetch("/api/hassio/snapshots/".concat(this._snapshot.slug,"/restore/full"),{method:"POST",body:JSON.stringify(t)}),this.closeDialog()):this.hass.callApi("POST","hassio/snapshots/".concat(this._snapshot.slug,"/restore/full"),t).then((function(){a.closeDialog()}),(function(e){a._error=e.body.message}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{kind:"method",key:"_deleteClicked",value:(g=w(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.g7)(this,{title:"Are you sure you want to delete this snapshot?",confirmText:"delete",dismissText:"cancel"});case 2:if(e.sent){e.next=4;break}return e.abrupt("return");case 4:this.hass.callApi("POST","hassio/snapshots/".concat(this._snapshot.slug,"/remove")).then((function(){t._dialogParams.onDelete&&t._dialogParams.onDelete(),t.closeDialog()}),(function(e){t._error=e.body.message}));case 5:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_downloadClicked",value:(r=w(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i=this.hass,o="/api/hassio/snapshots/".concat(this._snapshot.slug,"/download"),i.callWS({type:"auth/sign_path",path:o});case 3:t=e.sent,e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(0),e.next=10,(0,y.Ys)(this,{text:(0,f.js)(e.t0)});case 10:return e.abrupt("return");case 11:if(!window.location.href.includes("ui.nabu.casa")){e.next=17;break}return e.next=14,(0,y.g7)(this,{title:"Potential slow download",text:"Downloading snapshots over the Nabu Casa URL will take some time, it is recomended to use your local URL instead, do you want to continue?",confirmText:"continue",dismissText:"cancel"});case 14:if(e.sent){e.next=17;break}return e.abrupt("return");case 17:r=this._computeName.replace(/[^a-z0-9]+/gi,"_"),(n=document.createElement("a")).href=t.path,n.download="Hass_io_".concat(r,".tar"),this.shadowRoot.appendChild(n),n.click(),this.shadowRoot.removeChild(n);case 24:case"end":return e.stop()}var i,o}),e,this,[[0,6]])}))),function(){return r.apply(this,arguments)})},{kind:"get",key:"_computeName",value:function(){return this._snapshot?this._snapshot.name||this._snapshot.slug:"Unnamed snapshot"}}]}}),i.oi)}}]); -//# sourceMappingURL=chunk.538953920415b56e91b4.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js.gz b/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js.gz deleted file mode 100644 index 7e6472ee9..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js.map b/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js.map deleted file mode 100644 index e597d0ccd..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.538953920415b56e91b4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.538953920415b56e91b4.js","sources":["webpack://home-assistant-frontend/chunk.538953920415b56e91b4.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js b/supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js rename to supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js index 3f2693ec0..beef59c7e 100644 --- a/supervisor/api/panel/frontend_es5/chunk.0a893a5a869ba682040b.js +++ b/supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[914],{92914:function(r,o,e){"use strict";e.r(o),e.d(o,{defaultKeymap:function(){return a.wQ},lineNumbers:function(){return d.Eu},HighlightStyle:function(){return t.Qf},tags:function(){return t.pJ},history:function(){return m.m8},historyKeymap:function(){return m.f$},rectangularSelection:function(){return u.Z},highlightSelectionMatches:function(){return g.sW},searchKeymap:function(){return g.Lp},EditorState:function(){return i.yy},Prec:function(){return i.Wl},drawSelection:function(){return p.Uw},EditorView:function(){return p.tk},highlightActiveLine:function(){return p.ZO},keymap:function(){return p.$f},langs:function(){return s},langCompartment:function(){return v},readonlyCompartment:function(){return b},tabKeyBindings:function(){return f},theme:function(){return y},highlightStyle:function(){return h}});var a=e(86876),t=e(49619),n=e(49413),c=e(8987),i=e(77885),l=e(11163),p=e(19753),d=e(11254),m=e(62118),u=e(63637),g=e(72360),s={jinja2:l.i.define(n.b),yaml:l.i.define(c.r)},v=new i.F6,b=new i.F6,f=[{key:"Tab",run:a.at},{key:"Shift-Tab",run:a.xi}],y=p.tk.theme({"&":{color:"var(--primary-text-color)",backgroundColor:"var(--code-editor-background-color, var(--card-background-color))","& ::selection":{backgroundColor:"rgba(var(--rgb-primary-color), 0.3)"},caretColor:"var(--secondary-text-color)",height:"var(--code-mirror-height, auto)",maxHeight:"var(--code-mirror-max-height, unset)"},"&.cm-focused":{outline:"none"},"&.cm-focused .cm-cursor":{borderLeftColor:"var(--secondary-text-color)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(var(--rgb-primary-color), 0.3)"},".cm-activeLine":{backgroundColor:"rgba(var(--rgb-secondary-text-color), 0.1)"},".cm-scroller":{outline:"none"},".cm-content":{caretColor:"var(--secondary-text-color)"},".cm-panels":{backgroundColor:"var(--primary-background-color)",color:"var(--primary-text-color)"},".cm-panels.top":{borderBottom:"1px solid var(--divider-color)"},".cm-panels.bottom":{borderTop:"1px solid var(--divider-color)"},".cm-button":{border:"1px solid var(--primary-color)",padding:"0px 16px",textTransform:"uppercase",margin:"4px",background:"none",color:"var(--primary-color)",fontFamily:"var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif))",fontSize:"var(--mdc-typography-button-font-size, 0.875rem)",height:"36px",fontWeight:"var(--mdc-typography-button-font-weight, 500)",borderRadius:"4px",letterSpacing:"var(--mdc-typography-button-letter-spacing, 0.0892857em)"},".cm-textfield":{padding:"4px 0px 5px",borderRadius:"0",fontSize:"16px",color:"var(--primary-text-color)",border:"0",background:"none",fontFamily:"Roboto",borderBottom:"1px solid var(--paper-input-container-color, var(--secondary-text-color))",margin:"4px 4px 0","& ::placeholder":{color:"var(--paper-input-container-color, var(--secondary-text-color))"},"&:focus":{outline:"none",borderBottom:"2px solid var(--primary-color)",paddingBottom:"4px"}},".cm-selectionMatch":{backgroundColor:"rgba(var(--rgb-primary-color), 0.1)"},".cm-searchMatch":{backgroundColor:"rgba(var(--rgb-accent-color), .2)",outline:"1px solid rgba(var(--rgb-accent-color), .4)"},".cm-searchMatch.selected":{backgroundColor:"rgba(var(--rgb-accent-color), .4)",outline:"1px solid var(--accent-color)"},".cm-gutters":{backgroundColor:"var(--paper-dialog-background-color, var(--primary-background-color))",color:"var(--paper-dialog-color, var(--secondary-text-color))",border:"none",borderRight:"1px solid var(--paper-input-container-color, var(--secondary-text-color))",paddingRight:"1px"},"&.cm-focused cm-gutters":{borderRight:"2px solid var(--paper-input-container-focus-color, var(--primary-color))",paddingRight:"0"},".cm-gutterElement.lineNumber":{color:"inherit"}}),h=t.Qf.define([{tag:t.pJ.keyword,color:"var(--codemirror-keyword, #6262FF)"},{tag:[t.pJ.name,t.pJ.deleted,t.pJ.character,t.pJ.propertyName,t.pJ.macroName],color:"var(--codemirror-property, #905)"},{tag:[t.pJ.function(t.pJ.variableName),t.pJ.labelName],color:"var(--codemirror-variable, #07a)"},{tag:[t.pJ.color,t.pJ.constant(t.pJ.name),t.pJ.standard(t.pJ.name)],color:"var(--codemirror-qualifier, #690)"},{tag:[t.pJ.definition(t.pJ.name),t.pJ.separator],color:"var(--codemirror-def, #8DA6CE)"},{tag:[t.pJ.typeName,t.pJ.className,t.pJ.number,t.pJ.changed,t.pJ.annotation,t.pJ.modifier,t.pJ.self,t.pJ.namespace],color:"var(--codemirror-number, #ca7841)"},{tag:[t.pJ.operator,t.pJ.operatorKeyword,t.pJ.url,t.pJ.escape,t.pJ.regexp,t.pJ.link,t.pJ.special(t.pJ.string)],color:"var(--codemirror-operator, #cda869)"},{tag:t.pJ.comment,color:"var(--codemirror-comment, #777)"},{tag:t.pJ.meta,color:"var(--codemirror-meta, var(--primary-text-color))"},{tag:t.pJ.strong,fontWeight:"bold"},{tag:t.pJ.emphasis,fontStyle:"italic"},{tag:t.pJ.link,color:"var(--primary-color)",textDecoration:"underline"},{tag:t.pJ.heading,fontWeight:"bold"},{tag:t.pJ.atom,color:"var(--codemirror-atom, #F90)"},{tag:t.pJ.bool,color:"var(--codemirror-atom, #F90)"},{tag:t.pJ.special(t.pJ.variableName),color:"var(--codemirror-variable-2, #690)"},{tag:t.pJ.processingInstruction,color:"var(--secondary-text-color)"},{tag:t.pJ.string,color:"var(--codemirror-string, #07a)"},{tag:t.pJ.inserted,color:"var(--codemirror-string2, #07a)"},{tag:t.pJ.invalid,color:"var(--error-color)"}])}}]); -//# sourceMappingURL=chunk.0a893a5a869ba682040b.js.map \ No newline at end of file +//# sourceMappingURL=chunk.7196f5fb5c559955f447.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js.gz b/supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js.gz new file mode 100644 index 000000000..2926ffe76 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js.map b/supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js.map new file mode 100644 index 000000000..307e11bae --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.7196f5fb5c559955f447.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.7196f5fb5c559955f447.js","sources":["webpack://home-assistant-frontend/chunk.7196f5fb5c559955f447.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.79a4fcb8f9ae3939760e.js b/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js similarity index 98% rename from supervisor/api/panel/frontend_es5/chunk.79a4fcb8f9ae3939760e.js rename to supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js index a870a01f8..40434513d 100644 --- a/supervisor/api/panel/frontend_es5/chunk.79a4fcb8f9ae3939760e.js +++ b/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js @@ -1,3 +1,3 @@ -/*! For license information please see chunk.79a4fcb8f9ae3939760e.js.LICENSE.txt */ +/*! For license information please see chunk.744eb0b1730500ff54f2.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[811],{17811:function(t,e,n){"use strict";n.r(e);var r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o=function(){if("function"==typeof requestAnimationFrame)return requestAnimationFrame.bind(i);return function(t){return setTimeout((function(){t(+Date.now())}),1e3/60)}}();var s=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,c=r&&HTMLElement.prototype.attachShadow&&-1!==HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")?HTMLElement.prototype.attachShadow:null,h=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function a(){o(s)}function c(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=t}return c}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){if(r&&!this.connected_){if(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a){this.mutationsObserver_=new MutationObserver(this.refresh);var t={attributes:!0,childList:!0,characterData:!0,subtree:!0};if(this.mutationsObserver_.observe(document,t),c){var e=this;!function n(r){var i=r.shadowRoot;i&&(e.mutationsObserver_.observe(i,t),n(i));for(var o=r.firstElementChild;o;)n(o),o=o.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){for(var n=[],r=0;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}var f=function(t,e){var n,r;try{for(var i=u(Object.keys(e)),o=i.next();!o.done;o=i.next()){var s=o.value;Object.defineProperty(t,s,{value:e[s],enumerable:!1,writable:!1,configurable:!0})}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},d=function(t){var e;return(null===(e=null==t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView)||i},l=m(0,0,0,0);function v(t){return"number"==typeof t?t:parseFloat(t)||0}function p(t){for(var e=[],n=1;n0},t}(),M=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance();this.observer_=new O(e,n,this)}return t.prototype.observe=function(t){this.observer_.observe(t)},t.prototype.unobserve=function(t){this.observer_.unobserve(t)},t.prototype.disconnect=function(){this.observer_.disconnect()},t}(),T=void 0!==i.ResizeObserver?i.ResizeObserver:M;e.default=T}}]); -//# sourceMappingURL=chunk.79a4fcb8f9ae3939760e.js.map \ No newline at end of file +//# sourceMappingURL=chunk.744eb0b1730500ff54f2.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.79a4fcb8f9ae3939760e.js.LICENSE.txt b/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js.LICENSE.txt similarity index 100% rename from supervisor/api/panel/frontend_es5/chunk.79a4fcb8f9ae3939760e.js.LICENSE.txt rename to supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js.LICENSE.txt diff --git a/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js.gz b/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js.gz new file mode 100644 index 000000000..84d157feb Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js.map b/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js.map new file mode 100644 index 000000000..cf50d5414 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.744eb0b1730500ff54f2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.744eb0b1730500ff54f2.js","sources":["webpack://home-assistant-frontend/chunk.744eb0b1730500ff54f2.js"],"mappings":";AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.777770ea47eb53322f9f.js b/supervisor/api/panel/frontend_es5/chunk.777770ea47eb53322f9f.js deleted file mode 100644 index dbebbac9d..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.777770ea47eb53322f9f.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[389],{64389:function(e,r,t){"use strict";t.r(r),t.d(r,{ArrayCreate:function(){return B},BasicFormatMatcher:function(){return te},BestFitFormatMatcher:function(){return C},CanonicalCodeForDisplayNames:function(){return Ie},CanonicalizeLocaleList:function(){return N},CanonicalizeTimeZoneName:function(){return T},CoerceOptionsToObject:function(){return re},ComputeExponent:function(){return Ye},ComputeExponentForMagnitude:function(){return _e},CurrencyDigits:function(){return He},DATE_TIME_PROPS:function(){return p},DateFromTime:function(){return q},DateTimeStyleFormat:function(){return ne},Day:function(){return z},DayFromYear:function(){return _},DayWithinYear:function(){return Y},DaysInYear:function(){return G},FormatDateTime:function(){return se},FormatDateTimeRange:function(){return ge},FormatDateTimeRangeToParts:function(){return de},FormatDateTimeToParts:function(){return pe},FormatNumericToParts:function(){return ar},FormatNumericToString:function(){return Ge},FormatRelativeTime:function(){return pr},FormatRelativeTimeToParts:function(){return vr},GetNumberOption:function(){return Ce},GetOperands:function(){return lr},GetOption:function(){return ye},GetOptionsObject:function(){return Pe},HasOwnProperty:function(){return P},HourFromTime:function(){return V},InLeapYear:function(){return H},InitializeDateTimeFormat:function(){return Ae},InitializeNumberFormat:function(){return or},InitializePluralRules:function(){return cr},InitializeRelativeTimeFormat:function(){return yr},IsSanctionedSimpleUnitIdentifier:function(){return ze},IsValidTimeZoneName:function(){return Ee},IsWellFormedCurrencyCode:function(){return Oe},IsWellFormedUnitIdentifier:function(){return Ue},MakePartsList:function(){return mr},MinFromTime:function(){return J},MonthFromTime:function(){return W},OrdinaryHasInstance:function(){return X},PartitionDateTimePattern:function(){return ce},PartitionNumberPattern:function(){return nr},PartitionPattern:function(){return le},PartitionRelativeTimePattern:function(){return dr},RangePatternType:function(){return d},ResolveLocale:function(){return we},ResolvePlural:function(){return sr},SANCTIONED_UNITS:function(){return Re},SIMPLE_UNITS:function(){return je},SameValue:function(){return I},SecFromTime:function(){return Q},SetNumberFormatDigitOptions:function(){return ir},SetNumberFormatUnitOptions:function(){return ur},SingularRelativeTimeUnit:function(){return fr},SupportedLocales:function(){return br},TimeClip:function(){return k},TimeFromYear:function(){return Z},ToDateTimeOptions:function(){return ve},ToNumber:function(){return O},ToObject:function(){return x},ToRawFixed:function(){return $e},ToRawPrecision:function(){return Ze},ToString:function(){return M},Type:function(){return R},WeekDay:function(){return U},YearFromTime:function(){return $},_formatToParts:function(){return Xe},defineProperty:function(){return f},getInternalSlot:function(){return l},getMagnitude:function(){return a},getMultiInternalSlots:function(){return c},invariant:function(){return g},isLiteralPart:function(){return s},isMissingLocaleDataError:function(){return Fr},msFromTime:function(){return ee},parseDateTimeSkeleton:function(){return F},removeUnitNamespace:function(){return Le},setInternalSlot:function(){return i},setMultiInternalSlots:function(){return o}});var n=t(87480);function a(e){return Math.floor(Math.log(e)*Math.LOG10E)}function u(e,r){if("function"==typeof e.repeat)return e.repeat(r);for(var t=new Array(r),n=0;nt&&(t=l,a=o)}var c=(0,n.__assign)({},a),s={rawPattern:a.rawPattern};for(var f in b(a.rawPattern,s),c){var m=c[f],d=s[f],p=e[f];"minute"!==f&&"second"!==f&&(p&&(E(d)&&!E(p)||m!==p&&(s[f]=p)))}return s.pattern=c.pattern,s.pattern12=c.pattern12,s.skeleton=c.skeleton,s.rangePatterns=c.rangePatterns,s.rangePatterns12=c.rangePatterns12,s}function N(e){return Intl.getCanonicalLocales(e)}function T(e,r){var t=r.tzData,n=r.uppercaseLinks,a=e.toUpperCase(),u=Object.keys(t).reduce((function(e,r){return e[r.toUpperCase()]=r,e}),{}),i=n[a]||u[a];return"Etc/UTC"===i||"Etc/GMT"===i?"UTC":i}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 M(e){if("symbol"===A(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function O(e){if(void 0===e)return NaN;if(null===e)return 0;if("boolean"==typeof e)return e?1:0;if("number"==typeof e)return e;if("symbol"===A(e)||"bigint"==typeof e)throw new TypeError("Cannot convert symbol/bigint to number");return Number(e)}function k(e){return isFinite(e)?Math.abs(e)>8640000000000001?NaN:function(e){var r=O(e);if(isNaN(r)||I(r,-0))return 0;if(isFinite(r))return r;var t=Math.floor(Math.abs(r));return r<0&&(t=-t),I(t,-0)?0:t}(e):NaN}function x(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function I(e,r){return Object.is?Object.is(e,r):e===r?0!==e||1/e==1/r:e!=e&&r!=r}function B(e){return new Array(e)}function P(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function R(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===A(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"===A(e)?"Symbol":"bigint"==typeof e?"BigInt":void 0}var L=864e5;function j(e,r){return e-Math.floor(e/r)*r}function z(e){return Math.floor(e/L)}function U(e){return j(z(e)+4,7)}function _(e){return Date.UTC(e,0)/L}function Z(e){return Date.UTC(e,0)}function $(e){return new Date(e).getUTCFullYear()}function G(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function Y(e){return z(e)-_($(e))}function H(e){return 365===G($(e))?0:1}function W(e){var r=Y(e),t=H(e);if(r>=0&&r<31)return 0;if(r<59+t)return 1;if(r<90+t)return 2;if(r<120+t)return 3;if(r<151+t)return 4;if(r<181+t)return 5;if(r<212+t)return 6;if(r<243+t)return 7;if(r<273+t)return 8;if(r<304+t)return 9;if(r<334+t)return 10;if(r<365+t)return 11;throw new Error("Invalid time")}function q(e){var r=Y(e),t=W(e),n=H(e);if(0===t)return r+1;if(1===t)return r-30;if(2===t)return r-58-n;if(3===t)return r-89-n;if(4===t)return r-119-n;if(5===t)return r-150-n;if(6===t)return r-180-n;if(7===t)return r-211-n;if(8===t)return r-242-n;if(9===t)return r-272-n;if(10===t)return r-303-n;if(11===t)return r-333-n;throw new Error("Invalid time")}var K=1e3;function V(e){return j(Math.floor(e/36e5),24)}function J(e){return j(Math.floor(e/6e4),60)}function Q(e){return j(Math.floor(e/K),60)}function X(e,r,t){if("function"!=typeof e)return!1;if(null==t?void 0:t.boundTargetFunction)return r instanceof(null==t?void 0:t.boundTargetFunction);if("object"!==A(r))return!1;var n=e.prototype;if("object"!==A(n))throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,r)}function ee(e){return j(e,K)}function re(e){return void 0===e?Object.create(null):x(e)}function te(e,r){var t=-1/0,a=r[0];g(Array.isArray(r),"formats should be a list of things");for(var u=0,i=r;ut&&(t=l,a=o)}return(0,n.__assign)({},a)}function ne(e,r,t){var n,a;if(void 0!==r&&(g("full"===r||"long"===r||"medium"===r||"short"===r,"invalid timeStyle"),a=t.timeFormat[r]),void 0!==e&&(g("full"===e||"long"===e||"medium"===e||"short"===e,"invalid dateStyle"),n=t.dateFormat[e]),void 0!==e&&void 0!==r){var u={};for(var i in n)"pattern"!==i&&(u[i]=n[i]);for(var i in a)"pattern"!==i&&"pattern12"!==i&&(u[i]=a[i]);var o=t.dateTimeFormat[e],l=o.replace("{0}",a.pattern).replace("{1}",n.pattern);if(u.pattern=l,"pattern12"in a){var c=o.replace("{0}",a.pattern12).replace("{1}",n.pattern);u.pattern12=c}return u}return void 0!==r?a:(g(void 0!==e,"dateStyle should not be undefined"),n)}function ae(e,r,t,n){var a=n.tzData;g("Number"===R(e),"invalid time"),g("gregory"===r,"We only support Gregory calendar right now");var u=function(e,r,t){var n,a=t[r];if(!a)return[0,!1];for(var u=0,i=0,o=!1;u<=a.length;u++)if(u===a.length||1e3*a[u][0]>e){i=(n=a[u-1])[2],o=n[3];break}return[1e3*i,o]}(e,t,a),i=u[0],o=u[1],l=e+i,c=$(l);return{weekday:U(l),era:c<0?"BC":"AD",year:c,relatedYear:void 0,yearName:void 0,month:W(l),day:q(l),hour:V(l),minute:J(l),second:Q(l),millisecond:ee(l),inDST:o,timeZoneOffset:i}}function ue(e){return e<10?"0"+e:String(e)}function ie(e,r,t,n){var a=Math.floor(t/6e4),u=Math.abs(a)%60,i=Math.floor(Math.abs(a)/60),o=r.split(";"),l=o[0],c=o[1],s="",f=t<0?c:l;return"long"===n?s=f.replace("HH",ue(i)).replace("H",String(i)).replace("mm",ue(u)).replace("m",String(u)):(u||i)&&(u||(f=f.replace(/:?m+/,"")),s=f.replace(/H+/,String(i)).replace(/m+/,String(u))),e.replace("{0}",s)}function oe(e,r,t,n){var a=n.getInternalSlots,u=n.localeData,i=n.getDefaultTimeZone,o=n.tzData;t=k(t);var l=a(e),c=u[l.dataLocale],s=l.locale,f=Object.create(null);f.useGrouping=!1;var m=new Intl.NumberFormat(s,f),g=Object.create(null);g.minimumIntegerDigits=2,g.useGrouping=!1;var d,v=new Intl.NumberFormat(s,g),h=l.fractionalSecondDigits;if(void 0!==h){var y=Object.create(null);y.minimumIntegerDigits=h,y.useGrouping=!1,d=new Intl.NumberFormat(s,y)}for(var D=ae(t,l.calendar,l.timeZone,{tzData:o}),b=[],F=0,w=r;F-1){var N="",T=l[S];C=D[S];"year"===S&&C<=0&&(C=1-C),"month"===S&&C++;var A=l.hourCycle;if("hour"!==S||"h11"!==A&&"h12"!==A||0===(C%=12)&&"h12"===A&&(C=12),"hour"===S&&"h24"===A&&0===C&&(C=24),"numeric"===T)N=m.format(C);else if("2-digit"===T)(N=v.format(C)).length>2&&(N=N.slice(N.length-2,N.length));else if("narrow"===T||"short"===T||"long"===T)if("era"===S)N=c[S][T][C];else if("timeZoneName"===S){var M=c.timeZoneName,O=c.gmtFormat,x=c.hourFormat,I=M[l.timeZone||i()];N=I&&I[T]?I[T][+D.inDST]:ie(O,x,D.timeZoneOffset,T)}else N="month"===S?c.month[T][C-1]:c[S][T][C];b.push({type:S,value:N})}else if("ampm"===S){N=void 0;N=(C=D.hour)>11?c.pm:c.am,b.push({type:"dayPeriod",value:N})}else if("relatedYear"===S){C=D.relatedYear,N=m.format(C);b.push({type:"relatedYear",value:N})}else if("yearName"===S){C=D.yearName,N=m.format(C);b.push({type:"yearName",value:N})}}return b}function le(e){for(var r=[],t=e.indexOf("{"),n=0,a=0,u=e.length;t-1;)g((n=e.indexOf("}",t))>t,"Invalid pattern "+e),t>a&&r.push({type:"literal",value:e.substring(a,t)}),r.push({type:e.substring(t+1,n),value:void 0}),a=n+1,t=e.indexOf("{",a);return a11&&b<11||D<11&&b>11)&&(m=!1),a=y}}else if("fractionalSecondDigits"===h){var F=o.fractionalSecondDigits;void 0===F&&(F=3),(D=Math.floor(l.millisecond*Math.pow(10,F-3)))!==(b=Math.floor(c.millisecond*Math.pow(10,F-3)))&&(m=!1)}else{y=f[h];if(void 0!==a&&void 0===y)g=!0;else I(D=l[h],b=c[h])||(m=!1),a=y}}if(m){for(var w=oe(e,le(s),r,n),E=0,S=w;E=2&&"-"===t[n-2]&&(n-=2),t=t.slice(0,n)}}function be(e,r){g(2===r.length,"key must have 2 elements");var t=e.length,n="-"+r+"-",a=e.indexOf(n);if(-1!==a){for(var u=a+4,i=u,o=u,l=!1;!l;){var c=e.indexOf("-",o);2===(-1===c?t-o:c-o)?l=!0:-1===c?(i=t,l=!0):(i=c,o=c+1)}return e.slice(u,i)}if(n="-"+r,-1!==(a=e.indexOf(n))&&a+3===t)return""}function Fe(e){return(Fe="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 we(e,r,t,n,a,u){for(var i,o=(i="lookup"===t.localeMatcher?function(e,r,t){for(var n={locale:""},a=0,u=r;a2){var F=o.indexOf("-x-");if(-1===F)o+=c;else{var w=o.slice(0,F),E=o.slice(F,o.length);o=w+c+E}o=Intl.getCanonicalLocales(o)[0]}return l.locale=o,l}function Ee(e,r){var t=r.tzData,n=r.uppercaseLinks,a=e.toUpperCase(),u=new Set;return Object.keys(t).map((function(e){return e.toUpperCase()})).forEach((function(e){return u.add(e)})),u.has(a)||a in n}function Se(e,r,t,n){if(void 0!==e){if(e=Number(e),isNaN(e)||et)throw new RangeError(e+" is outside of range ["+r+", "+t+"]");return Math.floor(e)}return n}function Ce(e,r,t,n,a){return Se(e[r],t,n,a)}function Ne(e,r,t){return null==e&&(e=r),void 0!==t&&(t?e="h11"===r||"h23"===r?"h11":"h12":(g(!t,"hour12 must not be set"),e="h11"===r||"h23"===r?"h23":"h24")),e}var Te=/^[a-z0-9]{3,8}$/i;function Ae(e,r,t,n){var a=n.getInternalSlots,u=n.availableLocales,i=n.localeData,o=n.getDefaultLocale,l=n.getDefaultTimeZone,c=n.relevantExtensionKeys,s=n.tzData,f=n.uppercaseLinks,m=N(r),d=ve(t,"any","date"),v=Object.create(null),h=ye(d,"localeMatcher","string",["lookup","best fit"],"best fit");v.localeMatcher=h;var y=ye(d,"calendar","string",void 0,void 0);if(void 0!==y&&!Te.test(y))throw new RangeError("Malformed calendar");var D=a(e);v.ca=y;var b=ye(d,"numberingSystem","string",void 0,void 0);if(void 0!==b&&!Te.test(b))throw new RangeError("Malformed numbering system");v.nu=b;var F=ye(d,"hour12","boolean",void 0,void 0),w=ye(d,"hourCycle","string",["h11","h12","h23","h24"],void 0);void 0!==F&&(w=null),v.hc=w;var E=we(u,m,v,c,i,o);D.locale=E.locale,y=E.ca,D.calendar=y,D.hourCycle=E.hc,D.numberingSystem=E.nu;var S=E.dataLocale;D.dataLocale=S;var A=d.timeZone;if(void 0!==A){if(!Ee(A=String(A),{tzData:s,uppercaseLinks:f}))throw new RangeError("Invalid timeZoneName");A=T(A,{tzData:s,uppercaseLinks:f})}else A=l();D.timeZone=A,(v=Object.create(null)).weekday=ye(d,"weekday","string",["narrow","short","long"],void 0),v.era=ye(d,"era","string",["narrow","short","long"],void 0),v.year=ye(d,"year","string",["2-digit","numeric"],void 0),v.month=ye(d,"month","string",["2-digit","numeric","narrow","short","long"],void 0),v.day=ye(d,"day","string",["2-digit","numeric"],void 0),v.hour=ye(d,"hour","string",["2-digit","numeric"],void 0),v.minute=ye(d,"minute","string",["2-digit","numeric"],void 0),v.second=ye(d,"second","string",["2-digit","numeric"],void 0),v.timeZoneName=ye(d,"timeZoneName","string",["short","long"],void 0),v.fractionalSecondDigits=Ce(d,"fractionalSecondDigits",1,3,void 0);var M=i[S];g(!!M,"Missing locale data for "+S);var O=M.formats[y];if(!O)throw new RangeError('Calendar "'+y+'" is not supported. Try setting "calendar" to 1 of the following: '+Object.keys(M.formats).join(", "));var k=ye(d,"formatMatcher","string",["basic","best fit"],"best fit"),x=ye(d,"dateStyle","string",["full","long","medium","short"],void 0);D.dateStyle=x;var I,B,P,R=ye(d,"timeStyle","string",["full","long","medium","short"],void 0);if(D.timeStyle=R,void 0===x&&void 0===R)if("basic"===k)I=te(v,O);else{if(function(e){for(var r=0,t=["hour","minute","second"];r-1}function Ue(e){if(ze(e=e.replace(/([A-Z])/g,(function(e,r){return r.toLowerCase()}))))return!0;var r=e.split("-per-");if(2!==r.length)return!1;var t=r[0],n=r[1];return!(!ze(t)||!ze(n))}function _e(e,r,t){var n=(0,t.getInternalSlots)(e),a=n.notation,u=n.dataLocaleData,i=n.numberingSystem;switch(a){case"standard":return 0;case"scientific":return r;case"engineering":return 3*Math.floor(r/3);default:var o=n.compactDisplay,l=n.style,c=n.currencyDisplay,s=void 0;if("currency"===l&&"name"!==c){s=(u.numbers.currency[i]||u.numbers.currency[u.numbers.nu[0]]).short}else{var f=u.numbers.decimal[i]||u.numbers.decimal[u.numbers.nu[0]];s="long"===o?f.long:f.short}if(!s)return 0;var m=String(Math.pow(10,r)),g=Object.keys(s);if(mg[g.length-1])return g[g.length-1].length-1;var d=g.indexOf(m);if(-1===d)return 0;var p=g[d];return"0"===s[p].other?0:p.length-s[p].other.match(/0+/)[0].length}}function Ze(e,r,t){var n,i,o,l,c=t;if(0===e)n=u("0",c),i=0,o=0;else{var s=e.toString(),f=s.indexOf("e"),m=s.split("e"),g=m[0],d=m[1],p=g.replace(".","");if(f>=0&&p.length<=c)i=+d,n=p+u("0",c-p.length),o=e;else{var v=(i=a(e))-c+1,h=Math.round(D(e,v));D(h,c-1)>=10&&(i+=1,h=Math.floor(h/10)),n=h.toString(),o=D(h,c-1-i)}}if(i>=c-1?(n+=u("0",i-c+1),l=i+1):i>=0?(n=n.slice(0,i+1)+"."+n.slice(i+1),l=i+1):(n="0."+u("0",-i-1)+n,l=1),n.indexOf(".")>=0&&t>r){for(var y=t-r;y>0&&"0"===n[n.length-1];)n=n.slice(0,-1),y--;"."===n[n.length-1]&&(n=n.slice(0,-1))}return{formattedString:n,roundedNumber:o,integerDigitsCount:l};function D(e,r){return r<0?e*Math.pow(10,-r):e/Math.pow(10,r)}}function $e(e,r,t){var n,a,i=t,o=Math.round(e*Math.pow(10,i)),l=o/Math.pow(10,i);if(o<1e21)n=o.toString();else{var c=(n=o.toString()).split("e"),s=c[0],f=c[1];n=s.replace(".",""),n+=u("0",Math.max(+f-n.length+1,0))}if(0!==i){var m=n.length;if(m<=i)n=u("0",i+1-m)+n,m=i+1;var g=n.slice(0,m-i),d=n.slice(m-i);n=g+"."+d,a=g.length}else a=n.length;for(var p=t-r;p>0&&"0"===n[n.length-1];)n=n.slice(0,-1),p--;return"."===n[n.length-1]&&(n=n.slice(0,-1)),{formattedString:n,roundedNumber:l,integerDigitsCount:a}}function Ge(e,r){var t,n=r<0||I(r,-0);switch(n&&(r=-r),e.roundingType){case"significantDigits":t=Ze(r,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":t=$e(r,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(t=Ze(r,1,2)).integerDigitsCount>1&&(t=$e(r,0,0))}r=t.roundedNumber;var a=t.formattedString,i=t.integerDigitsCount,o=e.minimumIntegerDigits;i\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B98-\u2BFF\u2CE5-\u2CEA\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9B\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD10-\uDD6C\uDD70-\uDDAC\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED5\uDEE0-\uDEEC\uDEF0-\uDEFA\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDD00-\uDD0B\uDD0D-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95]/,Ve=new RegExp("^"+Ke.source),Je=new RegExp(Ke.source+"$"),Qe=/[#0](?:[\.,][#0]+)*/g;function Xe(e,r,t,n){var a,u,i=e.sign,o=e.exponent,l=e.magnitude,c=n.notation,s=n.style,f=n.numberingSystem,m=r.numbers.nu[0],g=null;if("compact"===c&&l&&(g=function(e,r,t,n,a,u,i){var o,l,c=e.roundedNumber,s=e.sign,f=e.magnitude,m=String(Math.pow(10,f)),g=t.numbers.nu[0];if("currency"===n&&"name"!==u){var d=null===(o=((p=t.numbers.currency)[i]||p[g]).short)||void 0===o?void 0:o[m];if(!d)return null;l=tr(r,c,d)}else{var p,v=((p=t.numbers.decimal)[i]||p[g])[a][m];if(!v)return null;l=tr(r,c,v)}if("0"===l)return null;return l=rr(l,s).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,t,r,s,n.compactDisplay,n.currencyDisplay,f)),"currency"===s&&"name"!==n.currencyDisplay){var d=r.currencies[n.currency];if(d)switch(n.currencyDisplay){case"code":a=n.currency;break;case"symbol":a=d.symbol;break;default:a=d.narrow}else a=n.currency}if(g)u=g;else if("decimal"===s||"unit"===s||"currency"===s&&"name"===n.currencyDisplay)u=rr((r.numbers.decimal[f]||r.numbers.decimal[m]).standard,i);else if("currency"===s){u=rr((v=r.numbers.currency[f]||r.numbers.currency[m])[n.currencySign],i)}else{u=rr(r.numbers.percent[f]||r.numbers.percent[m],i)}var p=Qe.exec(u)[0];if(u=u.replace(Qe,"{0}").replace(/'(.)'/g,"$1"),"currency"===s&&"name"!==n.currencyDisplay){var v,h=(v=r.numbers.currency[f]||r.numbers.currency[m]).currencySpacing.afterInsertBetween;h&&!Je.test(a)&&(u=u.replace("¤{0}","¤"+h+"{0}"));var y=v.currencySpacing.beforeInsertBetween;y&&!Ve.test(a)&&(u=u.replace("{0}¤","{0}"+y+"¤"))}for(var D=u.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),b=[],F=r.numbers.symbols[f]||r.numbers.symbols[m],w=0,E=D;w0?(f=l.slice(0,g),m=l.slice(g+1)):f=l,u&&("compact"!==t||c>=1e4)){var d=e.group,p=[],v=i.split(".")[0].split(","),h=3,y=3;v.length>1&&(h=v[v.length-1].length),v.length>2&&(y=v[v.length-2].length);var D=f.length-h;if(D>0){for(p.push(f.slice(D,D+h)),D-=y;D>0;D-=y)p.push(f.slice(D,D+y));p.push(f.slice(0,D+y))}else p.push(f);for(;p.length>0;){var b=p.pop();o.push({type:"integer",value:b}),p.length>0&&o.push({type:"group",value:d})}}else o.push({type:"integer",value:f});if(void 0!==m&&o.push({type:"decimal",value:e.decimal},{type:"fraction",value:m}),("scientific"===t||"engineering"===t)&&isFinite(c)){o.push({type:"exponentSeparator",value:e.exponential}),n<0&&(o.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var F=$e(n,0,0);o.push({type:"exponentInteger",value:F.formattedString})}return o}function rr(e,r){e.indexOf(";")<0&&(e=e+";-"+e);var t=e.split(";"),n=t[0],a=t[1];switch(r){case 0:return n;case-1:return a;default:return a.indexOf("-")>=0?a.replace(/-/g,"+"):"+"+n}}function tr(e,r,t){return t[e.select(r)]||t.other}function nr(e,r,t){var n,a,u,i=t.getInternalSlots,o=i(e),l=o.pl,c=o.dataLocaleData,s=o.numberingSystem,f=c.numbers.symbols[s]||c.numbers.symbols[c.numbers.nu[0]],m=0,g=0;if(isNaN(r))a=f.nan;else if(isFinite(r)){"percent"===o.style&&(r*=100),g=(n=Ye(e,r,{getInternalSlots:i}))[0],m=n[1];var d=Ge(o,r=g<0?r*Math.pow(10,-g):r/Math.pow(10,g));a=d.formattedString,r=d.roundedNumber}else a=f.infinity;switch(o.signDisplay){case"never":u=0;break;case"auto":u=I(r,0)||r>0||isNaN(r)?0:-1;break;case"always":u=I(r,0)||r>0||isNaN(r)?1:-1;break;default:u=0===r||isNaN(r)?0:r>0?1:-1}return Xe({roundedNumber:r,formattedString:a,exponent:g,magnitude:m,sign:u},o.dataLocaleData,l,o)}function ar(e,r,t){for(var n=nr(e,r,t),a=B(0),u=0,i=n;ut.length)&&(n=t.length);for(var e=0,r=new Array(n);e1&&void 0!==arguments[1]?arguments[1]:self;n.addEventListener("message",(function e(i){if(i&&i.data){var u,f=Object.assign({path:[]},i.data),l=f.id,s=f.type,p=f.path,y=(i.data.argumentList||[]).map(k);try{var b=p.slice(0,-1).reduce((function(t,n){return t[n]}),t),m=p.reduce((function(t,n){return t[n]}),t);switch(s){case 0:u=m;break;case 1:b[p.slice(-1)[0]]=k(i.data.value),u=!0;break;case 2:u=m.apply(b,y);break;case 3:var h;u=P(a(m,c(y)));break;case 4:var w=new MessageChannel,S=w.port1,j=w.port2;d(t,j),u=_(S,[S]);break;case 5:u=void 0}}catch(h){u=o({value:h},v,0)}Promise.resolve(u).catch((function(t){return o({value:t},v,0)})).then((function(t){var o=r(E(t),2),a=o[0],i=o[1];n.postMessage(Object.assign(Object.assign({},a),{id:l}),i),5===s&&(n.removeEventListener("message",e),g(n))}))}})),n.start&&n.start()}function g(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function w(t){if(t)throw new Error("Proxy has been released and is not useable")}function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,a=new Proxy(e,{get:function(e,r){if(w(o),r===b)return function(){return x(t,{type:5,path:n.map((function(t){return t.toString()}))}).then((function(){g(t),o=!0}))};if("then"===r){if(0===n.length)return{then:function(){return a}};var i=x(t,{type:0,path:n.map((function(t){return t.toString()}))}).then(k);return i.then.bind(i)}return S(t,[].concat(c(n),[r]))},set:function(e,a,i){w(o);var u=r(E(i),2),f=u[0],l=u[1];return x(t,{type:1,path:[].concat(c(n),[a]).map((function(t){return t.toString()})),value:f},l).then(k)},apply:function(e,a,i){w(o);var u=n[n.length-1];if(u===y)return x(t,{type:4}).then(k);if("bind"===u)return S(t,n.slice(0,-1));var c=r(j(i),2),f=c[0],l=c[1];return x(t,{type:2,path:n.map((function(t){return t.toString()})),argumentList:f},l).then(k)},construct:function(e,a){w(o);var i=r(j(a),2),u=i[0],c=i[1];return x(t,{type:3,path:n.map((function(t){return t.toString()})),argumentList:u},c).then(k)}});return a}function j(t){var n,e=t.map(E);return[e.map((function(t){return t[0]})),(n=e.map((function(t){return t[1]})),Array.prototype.concat.apply([],n))]}var O=new WeakMap;function _(t,n){return O.set(t,n),t}function P(t){return Object.assign(t,o({},p,!0))}function E(t){var n,e=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=f(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}(h);try{for(e.s();!(n=e.n()).done;){var o=r(n.value,2),a=o[0],i=o[1];if(i.canHandle(t)){var u=r(i.serialize(t),2);return[{type:3,name:a,value:u[0]},u[1]]}}}catch(c){e.e(c)}finally{e.f()}return[{type:0,value:t},O.get(t)||[]]}function k(t){switch(t.type){case 3:return h.get(t.name).deserialize(t.value);case 0:return t.value}}function x(t,n,e){return new Promise((function(r){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");t.addEventListener("message",(function n(e){e.data&&e.data.id&&e.data.id===o&&(t.removeEventListener("message",n),r(e.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),e)}))}},58556:function(t,n,e){"use strict";var r;(r="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?global:self).Proxy||(r.Proxy=e(87082)(),r.Proxy.revocable=r.Proxy.revocable)},87082:function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){var t,e=null;function r(t){return!!t&&("object"===n(t)||"function"==typeof t)}return(t=function(t,n){if(!r(t)||!r(n))throw new TypeError("Cannot create proxy with a non-object as target or handler");var o=function(){};e=function(){t=null,o=function(t){throw new TypeError("Cannot perform '".concat(t,"' on a proxy that has been revoked"))}},setTimeout((function(){e=null}),0);var a=n;for(var i in n={get:null,set:null,apply:null,construct:null},a){if(!(i in n))throw new TypeError("Proxy polyfill does not support trap '".concat(i,"'"));n[i]=a[i]}"function"==typeof a&&(n.apply=a.apply.bind(a));var u=this,c=!1,f=!1;"function"==typeof t?(u=function(){var e=this&&this.constructor===u,r=Array.prototype.slice.call(arguments);if(o(e?"construct":"apply"),e&&n.construct)return n.construct.call(this,t,r);if(!e&&n.apply)return n.apply(t,this,r);if(e){r.unshift(t);var a=t.bind.apply(t,r);return new a}return t.apply(this,r)},c=!0):t instanceof Array&&(u=[],f=!0);var l=n.get?function(t){return o("get"),n.get(this,t,u)}:function(t){return o("get"),this[t]},s=n.set?function(t,e){o("set");n.set(this,t,e,u)}:function(t,n){o("set"),this[t]=n},p=Object.getOwnPropertyNames(t),y={};p.forEach((function(n){if(!c&&!f||!(n in u)){var e={enumerable:!!Object.getOwnPropertyDescriptor(t,n).enumerable,get:l.bind(t,n),set:s.bind(t,n)};Object.defineProperty(u,n,e),y[n]=!0}}));var b=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(u,Object.getPrototypeOf(t)):u.__proto__?u.__proto__=t.__proto__:b=!1,n.get||!b)for(var v in t)y[v]||Object.defineProperty(u,v,{get:l.bind(t,v)});return Object.seal(t),Object.seal(u),u}).revocable=function(n,r){return{proxy:new t(n,r),revoke:e}},t}}}]); -//# sourceMappingURL=chunk.833d77f40e84324989d7.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.833d77f40e84324989d7.js.gz b/supervisor/api/panel/frontend_es5/chunk.833d77f40e84324989d7.js.gz deleted file mode 100644 index d30e875cc..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.833d77f40e84324989d7.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.833d77f40e84324989d7.js.map b/supervisor/api/panel/frontend_es5/chunk.833d77f40e84324989d7.js.map deleted file mode 100644 index 13cca3ce9..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.833d77f40e84324989d7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.833d77f40e84324989d7.js","sources":["webpack://home-assistant-frontend/chunk.833d77f40e84324989d7.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js.gz b/supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js.gz deleted file mode 100644 index 77d05c165..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js.map b/supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js.map deleted file mode 100644 index 00bacb589..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.8f2ac59a62b89d9272a7.js","sources":["webpack://home-assistant-frontend/chunk.8f2ac59a62b89d9272a7.js"],"mappings":";AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.983f861dd76e1235c9a1.js.gz b/supervisor/api/panel/frontend_es5/chunk.983f861dd76e1235c9a1.js.gz deleted file mode 100644 index 496e091cb..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.983f861dd76e1235c9a1.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js.gz b/supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js.gz deleted file mode 100644 index 6b6f3f897..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js.map b/supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js.map deleted file mode 100644 index 2994c61a6..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.9aa4ef8c17fb2d9fb76b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.9aa4ef8c17fb2d9fb76b.js","sources":["webpack://home-assistant-frontend/chunk.9aa4ef8c17fb2d9fb76b.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js.gz b/supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js.gz deleted file mode 100644 index f45beabf9..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js.map b/supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js.map deleted file mode 100644 index f249cd318..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.a144cd0e1ffe5f935824.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.a144cd0e1ffe5f935824.js","sources":["webpack://home-assistant-frontend/chunk.a144cd0e1ffe5f935824.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js.gz b/supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js.gz deleted file mode 100644 index d8dbc2f70..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js.map b/supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js.map deleted file mode 100644 index adf210965..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.a54a624580f6c54a9834.js","sources":["webpack://home-assistant-frontend/chunk.a54a624580f6c54a9834.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.b8f55ba0315f61566cad.js b/supervisor/api/panel/frontend_es5/chunk.a5a169f8fa51f26fa169.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.b8f55ba0315f61566cad.js rename to supervisor/api/panel/frontend_es5/chunk.a5a169f8fa51f26fa169.js index e1dc03406..379cc7a86 100644 --- a/supervisor/api/panel/frontend_es5/chunk.b8f55ba0315f61566cad.js +++ b/supervisor/api/panel/frontend_es5/chunk.a5a169f8fa51f26fa169.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[102],{86876:function(t,e,n){"use strict";n.d(e,{wQ:function(){return bt},xi:function(){return kt},at:function(){return yt}});var r=n(77885),i=n(23414),o=n(19753),a=n(64928),s=n(26856);function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&m(e.state,s.head-1,1,i)||i.afterCursor&&(m(e.state,s.head,1,i)||s.head-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function m(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.maxScanDistance||c,s=i.brackets||f,u=(0,a.qz)(t),l=u.resolve(e,n);return(r=g(l.type,n,s))?y(t,e,n,l,r,s):k(t,e,n,u,l.type,o,s)}function y(t,e,n,r,i,o){var a=r.parent,s={from:r.from,to:r.to},u=0,l=null==a?void 0:a.cursor;if(l&&(n<0?l.childBefore(r.from):l.childAfter(r.to)))do{if(n<0?l.to<=r.from:l.from>=r.to){if(0==u&&i.indexOf(l.type.name)>-1)return{start:s,end:{from:l.from,to:l.to},matched:!0};if(g(l.type,n,o))u++;else if(g(l.type,-n,o)&&0==--u)return{start:s,end:{from:l.from,to:l.to},matched:!1}}}while(n<0?l.prevSibling():l.nextSibling());return{start:s,matched:!1}}function k(t,e,n,r,i,o,a){var s=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),u=a.indexOf(s);if(u<0||u%2==0!=n>0)return null;for(var l={from:n<0?e-1:e,to:n>0?e+1:e},h=t.doc.iterRange(e,n>0?t.doc.length:0),c=0,f=0;!h.next().done&&f<=o;){var d=h.value;n<0&&(f+=d.length);for(var v=e+f*n,p=n>0?0:d.length-1,g=n>0?d.length:-1;p!=g;p+=n){var m=a.indexOf(d[p]);if(!(m<0||r.resolve(v+p,1).type!=i))if(m%2==0==n>0)c++;else{if(1==c)return{start:l,end:{from:v+p,to:v+p+1},matched:m>>1==u>>1};c--}}n>0&&(f+=d.length)}return h.done?{start:l,matched:!1}:null}function b(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function P(t,e,n){for(var i=(0,a.qz)(t).resolve(e.head),o=n?s.md.closedBy:s.md.openedBy,u=e.head;;){var l=n?i.childAfter(u):i.childBefore(u);if(!l)break;E(t,l,o)?i=l:u=n?l.to:l.from}var h,c;return c=i.type.prop(o)&&(h=n?m(t,i.from,1):m(t,i.to,-1))&&h.matched?n?h.end.to:h.end.from:n?i.to:i.from,r.jT.cursor(c,n?-1:1)}function R(t,e){return A(t,(function(n){return n.empty?t.moveVertically(n,e):C(n,e)}))}var L=function(t){return R(t,!1)},B=function(t){return R(t,!0)};function N(t,e){return A(t,(function(n){return n.empty?t.moveVertically(n,e,t.dom.clientHeight):C(n,e)}))}var I=function(t){return N(t,!1)},j=function(t){return N(t,!0)};function V(t,e,n){var i=t.visualLineAt(e.head),o=t.moveToLineBoundary(e,n);if(o.head==e.head&&o.head!=(n?i.to:i.from)&&(o=t.moveToLineBoundary(e,n,!1)),!n&&o.head==i.from&&i.length){var a=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;a&&e.head!=i.from+a&&(o=r.jT.cursor(i.from+a))}return o}var _=function(t){return A(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).from,1)}))},W=function(t){return A(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).to,-1)}))};function z(t,e,n){var i=!1,o=x(t.selection,(function(e){var o=m(t,e.head,-1)||m(t,e.head,1)||e.head>0&&m(t,e.head-1,1)||e.headl.from&&rn&&(i.empty||i.to>s.from)&&(e(s,o,i),n=s.number),a=s.to+1}var u=t.changes(o);return{changes:o,range:r.jT.range(u.mapPos(i.anchor,1),u.mapPos(i.head,1))}}))}var mt=function(t){var e=t.state,n=t.dispatch,r=Object.create(null),i=new a.Gn(e,{overrideIndentation:function(t){var e=r[t];return null==e?-1:e}}),o=gt(e,(function(t,n,o){var s=(0,a.K0)(i,t.from);if(null!=s){var u=/^\s*/.exec(t.text)[0],l=(0,a.SS)(e,s);(u!=l||o.from1?o=r.jT.create([i.main]):i.main.empty||(o=r.jT.create([r.jT.cursor(i.main.head)])),!!o&&(n(S(e,o)),!0)}},{key:"Alt-l",run:function(t){var e=t.state,n=t.dispatch,i=dt(e).map((function(t){var n=t.from,i=t.to;return r.jT.range(n,Math.min(i+1,e.doc.length))}));return n(e.update({selection:r.jT.create(i),annotations:r.YW.userEvent.of("keyboardselection")})),!0}},{key:"Mod-i",run:function(t){var e=t.state,n=t.dispatch,i=x(e.selection,(function(t){for(var n,i=(0,a.qz)(e).resolve(t.head,1);!(i.from=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent);)i=i.parent;return r.jT.range(i.to,i.from)}));return n(S(e,i)),!0}},{key:"Mod-[",run:kt},{key:"Mod-]",run:yt},{key:"Mod-Alt-\\",run:mt},{key:"Shift-Mod-k",run:function(t){var e=t.state,n=e.changes(dt(e).map((function(t){var n=t.from,r=t.to;return n>0?n--:r=e&&(n=i.type.prop(s.md.closedBy))&&n.indexOf(o.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(o.from).from?{from:i.to,to:o.from}:null}(e,n),l=new a.Gn(e,{simulateBreak:n,simulateDoubleBreak:!!u}),h=(0,a.K0)(l,n);null==h&&(h=/^\s*/.exec(e.doc.lineAt(n).text)[0].length);for(var c=e.doc.lineAt(n);oc.from&&nn?n:Math.max(0,e-1)}))}},{mac:"Mod-Delete",run:ft}].concat([{key:"Ctrl-b",run:O,shift:F},{key:"Ctrl-f",run:T,shift:$},{key:"Ctrl-p",run:L,shift:J},{key:"Ctrl-n",run:B,shift:K},{key:"Ctrl-a",run:_,shift:Z},{key:"Ctrl-e",run:W,shift:tt},{key:"Ctrl-d",run:ut},{key:"Ctrl-h",run:function(t){return at(t,!1,!1)}},{key:"Ctrl-k",run:ft},{key:"Alt-d",run:ct},{key:"Ctrl-Alt-h",run:ht},{key:"Ctrl-o",run:function(t){var e=t.state,n=t.dispatch,o=e.changeByRange((function(t){return{changes:{from:t.from,to:t.to,insert:i.xv.of(["",""])},range:r.jT.cursor(t.from)}}));return n(e.update(o,{scrollIntoView:!0,annotations:r.YW.userEvent.of("input")})),!0}},{key:"Ctrl-t",run:function(t){var e=t.state,n=t.dispatch,o=e.changeByRange((function(t){if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};var n=t.from,o=e.doc.lineAt(n),a=n==o.from?n-1:(0,i.cp)(o.text,n-o.from,!1)+o.from,s=n==o.to?n+1:(0,i.cp)(o.text,n-o.from,!0)+o.from;return{changes:{from:a,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(a,n))},range:r.jT.cursor(s)}}));return!o.changes.empty&&(n(e.update(o,{scrollIntoView:!0})),!0)}},{key:"Alt-f",run:function(t){return D(t,!0)},shift:function(t){return U(t,!0)}},{key:"Alt-b",run:function(t){return D(t,!1)},shift:function(t){return U(t,!1)}},{key:"Alt-<",run:et},{key:"Alt->",run:nt},{key:"Ctrl-v",run:j},{key:"Alt-v",run:I}].map((function(t){return{mac:t.key,run:t.run,shift:t.shift}}))))},11254:function(t,e,n){"use strict";n.d(e,{Eu:function(){return B}});var r=n(19753),i=n(13764),o=n(77885);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.i;)t.dom.removeChild(t.elements.pop().dom)}}]),t}(),O=function(){function t(e,n){var r=this;l(this,t),this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var i=function(t){r.dom.addEventListener(t,(function(r){var i=e.visualLineAtHeight(r.clientY,e.contentDOM.getBoundingClientRect().top);n.domEventHandlers[t](e,i,r)&&r.preventDefault()}))};for(var o in n.domEventHandlers)i(o);this.markers=C(n.markers(e)),n.initialSpacer&&(this.spacer=new T(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return c(t,[{key:"update",value:function(t){var e=this.markers;if(this.markers=C(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){var n=this.config.updateSpacer(this.spacer.markers[0],t);n!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[n])}return this.markers!=e}}]),t}(),T=function(){function t(e,n,r,i){l(this,t),this.height=-1,this.above=0,this.dom=document.createElement("div"),this.update(e,n,r,i)}return c(t,[{key:"update",value:function(t,e,n,r){if(this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),this.markers!=r){this.markers=r;for(var i;i=this.dom.lastChild;)i.remove();var o,a="cm-gutterElement",u=s(r);try{for(u.s();!(o=u.n()).done;){var l=o.value,h=l.toDOM(t);h&&this.dom.appendChild(h);var c=l.elementClass;c&&(a+=" "+c)}}catch(f){u.e(f)}finally{u.f()}this.dom.className=a}}}]),t}();var D=o.r$.define(),E=o.r$.define({combine:function(t){return(0,o.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers:function(t,e){var n=Object.assign({},t),r=function(t){var r=n[t],i=e[t];n[t]=r?function(t,e,n){return r(t,e,n)||i(t,e,n)}:i};for(var i in e)r(i);return n}})}}),P=function(t){f(n,t);var e=v(n);function n(t){var r;return l(this,n),(r=e.call(this)).number=t,r}return c(n,[{key:"eq",value:function(t){return this.number==t.number}},{key:"toDOM",value:function(){return document.createTextNode(this.number)}}]),n}(m);function R(t,e){return t.state.facet(E).formatNumber(e,t.state)}var L=b({class:"cm-lineNumbers",markers:function(t){return t.state.facet(D)},lineMarker:function(t,e,n){return n.length?null:new P(R(t,t.state.doc.lineAt(e.from).number))},initialSpacer:function(t){return new P(R(t,N(t.state.doc.lines)))},updateSpacer:function(t,e){var n=R(e.view,N(e.view.state.doc.lines));return n==t.number?t:new P(n)}});function B(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[E.of(t),L]}function N(t){for(var e=9;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1?e:m.get(e.base||e,e.modified.concat(t).sort((function(t,e){return t.id-e.id})))}}}]),t}(),g=0,m=function(){function t(){c(this,t),this.instances=[],this.id=g++}return d(t,null,[{key:"get",value:function(e,n){if(!n.length)return e;var r=n[0].instances.find((function(t){return t.base==e&&(r=n,i=t.modified,r.length==i.length&&r.every((function(t,e){return t==i[e]})));var r,i}));if(r)return r;var i,o=[],a=new p(o,e,n),s=l(n);try{for(s.s();!(i=s.n()).done;){i.value.instances.push(a)}}catch(m){s.e(m)}finally{s.f()}var u,h=y(n),c=l(e.set);try{for(c.s();!(u=c.n()).done;){var f,d=u.value,v=l(h);try{for(v.s();!(f=v.n()).done;){var g=f.value;o.push(t.get(d,g))}}catch(m){v.e(m)}finally{v.f()}}}catch(m){c.e(m)}finally{c.f()}return a}}]),t}();function y(t){for(var e=[t],n=0;n0&&c+3==a.length){u=1;break}var f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(h);if(!f)throw new RangeError("Invalid path: "+a);if(s.push("*"==f[0]?null:'"'==f[0][0]?JSON.parse(f[0]):f[0]),(c+=f[0].length)==a.length)break;var d=a[c++];if(c==a.length&&"!"==d){u=0;break}if("/"!=d)throw new RangeError("Invalid path: "+a);h=a.slice(c)}var v=s.length-1,p=s[v];if(!p)throw new RangeError("Invalid path: "+a);var g=new C(r,u,v>0?s.slice(0,v):null);e[p]=g.sort(e[p])}}}catch(m){o.e(m)}finally{o.f()}}return b.add(e)}var b=new r.md,w=a.r$.define({combine:function(t){return t.length?M.combinedMatch(t):null}}),x=a.r$.define({combine:function(t){return t.length?t[0].match:null}});function S(){return null}function A(t){return t.facet(w)||t.facet(x)||S}var C=function(){function t(e,n,r,i){c(this,t),this.tags=e,this.mode=n,this.context=r,this.next=i}return d(t,[{key:"sort",value:function(t){return!t||t.depth=n||v<=e)){D[h]=f.name,f.isTop&&(c=f);for(var p=u,g=f.prop(b),m=!1;g;){if(!g.context||P(g.context,D,h)){var y,k=l(g.tags);try{for(k.s();!(y=k.n()).done;){var w=y.value,x=r(w,c);x&&(p&&(p+=" "),p+=x,1==g.mode?u+=(u?" ":"")+x:0==g.mode&&(m=!0))}}catch(C){k.e(C)}finally{k.f()}break}g=g.next}if(p!=a&&(d>o&&a&&i(o,s.from,a),o=d,a=p),!m&&s.firstChild()){do{var S=s.to;if(t(u,h+1,c),a!=p){var A=Math.min(n,S);A>o&&a&&i(o,A,a),o=A,a=p}}while(s.nextSibling());s.parent()}}}("",0,t.type)}function P(t,e,n){if(t.length>n-1)return!1;for(var r=n-1,i=t.length-1;i>=0;i--,r--){var o=t[i];if(o&&o!=e[r])return!1}return!0}var R=p.define,L=R(),B=R(),N=R(B),I=R(),j=R(I),V=R(I),_=R(),W=R(_),z=R(),H=R(),q=R(),F=R(q),$=R(),U={comment:L,lineComment:R(L),blockComment:R(L),docComment:R(L),name:B,variableName:R(B),typeName:N,tagName:R(N),propertyName:R(B),className:R(B),labelName:R(B),namespace:R(B),macroName:R(B),literal:I,string:j,docString:R(j),character:R(j),number:V,integer:R(V),float:R(V),bool:R(I),regexp:R(I),escape:R(I),color:R(I),url:R(I),keyword:z,self:R(z),null:R(z),atom:R(z),unit:R(z),modifier:R(z),operatorKeyword:R(z),controlKeyword:R(z),definitionKeyword:R(z),operator:H,derefOperator:R(H),arithmeticOperator:R(H),logicOperator:R(H),bitwiseOperator:R(H),compareOperator:R(H),updateOperator:R(H),definitionOperator:R(H),typeOperator:R(H),controlOperator:R(H),punctuation:q,separator:R(q),bracket:F,angleBracket:R(F),squareBracket:R(F),paren:R(F),brace:R(F),content:_,heading:W,heading1:R(W),heading2:R(W),heading3:R(W),heading4:R(W),heading5:R(W),heading6:R(W),contentSeparator:R(_),list:R(_),quote:R(_),emphasis:R(_),strong:R(_),link:R(_),monospace:R(_),inserted:R(),deleted:R(),changed:R(),invalid:R(),meta:$,documentMeta:R($),annotation:R($),processingInstruction:R($),definition:p.defineModifier(),constant:p.defineModifier(),function:p.defineModifier(),standard:p.defineModifier(),local:p.defineModifier(),special:p.defineModifier()};M.define([{tag:U.link,textDecoration:"underline"},{tag:U.heading,textDecoration:"underline",fontWeight:"bold"},{tag:U.emphasis,fontStyle:"italic"},{tag:U.strong,fontWeight:"bold"},{tag:U.keyword,color:"#708"},{tag:[U.atom,U.bool,U.url,U.contentSeparator,U.labelName],color:"#219"},{tag:[U.literal,U.inserted],color:"#164"},{tag:[U.string,U.deleted],color:"#a11"},{tag:[U.regexp,U.escape,U.special(U.string)],color:"#e40"},{tag:U.definition(U.variableName),color:"#00f"},{tag:U.local(U.variableName),color:"#30a"},{tag:[U.typeName,U.namespace],color:"#085"},{tag:U.className,color:"#167"},{tag:[U.special(U.variableName),U.macroName],color:"#256"},{tag:U.definition(U.propertyName),color:"#00c"},{tag:U.comment,color:"#940"},{tag:U.meta,color:"#7a757a"},{tag:U.invalid,color:"#f00"}]),M.define([{tag:U.link,class:"cmt-link"},{tag:U.heading,class:"cmt-heading"},{tag:U.emphasis,class:"cmt-emphasis"},{tag:U.strong,class:"cmt-strong"},{tag:U.keyword,class:"cmt-keyword"},{tag:U.atom,class:"cmt-atom"},{tag:U.bool,class:"cmt-bool"},{tag:U.url,class:"cmt-url"},{tag:U.labelName,class:"cmt-labelName"},{tag:U.inserted,class:"cmt-inserted"},{tag:U.deleted,class:"cmt-deleted"},{tag:U.literal,class:"cmt-literal"},{tag:U.string,class:"cmt-string"},{tag:U.number,class:"cmt-number"},{tag:[U.regexp,U.escape,U.special(U.string)],class:"cmt-string2"},{tag:U.variableName,class:"cmt-variableName"},{tag:U.local(U.variableName),class:"cmt-variableName cmt-local"},{tag:U.definition(U.variableName),class:"cmt-variableName cmt-definition"},{tag:U.special(U.variableName),class:"cmt-variableName2"},{tag:U.typeName,class:"cmt-typeName"},{tag:U.namespace,class:"cmt-namespace"},{tag:U.macroName,class:"cmt-macroName"},{tag:U.propertyName,class:"cmt-propertyName"},{tag:U.operator,class:"cmt-operator"},{tag:U.comment,class:"cmt-comment"},{tag:U.meta,class:"cmt-meta"},{tag:U.invalid,class:"cmt-invalid"},{tag:U.punctuation,class:"cmt-punctuation"}])},62118:function(t,e,n){"use strict";n.d(e,{m8:function(){return p},f$:function(){return P}});var r=n(77885),i=n(19753);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};return[v,d.of(t),i.tk.domEventHandlers({beforeinput:function(t,e){return"historyUndo"==t.inputType?m(e):"historyRedo"==t.inputType&&y(e)}})]}function g(t,e){return function(n){var r=n.state,i=n.dispatch,o=r.field(v,!1);if(!o)return!1;var a=o.pop(t,r,e);return!!a&&(i(a),!0)}}var m=g(0,!1),y=g(1,!1),k=g(0,!0),b=g(1,!0);function w(t){return function(e){var n=e.field(v,!1);if(!n)return 0;var r=0==t?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}w(0),w(1);var x=function(){function t(e,n,r,i,o){s(this,t),this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}return l(t,[{key:"setSelAfter",value:function(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}},{key:"toJSON",value:function(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((function(t){return t.toJSON()}))}}}],[{key:"fromJSON",value:function(e){return new t(e.changes&&r.as.fromJSON(e.changes),[],e.mapped&&r.n0.fromJSON(e.mapped),e.startSelection&&r.jT.fromJSON(e.startSelection),e.selectionsAfter.map(r.jT.fromJSON))}},{key:"fromTransaction",value:function(e){var n,r=C,i=o(e.startState.facet(f));try{for(i.s();!(n=i.n()).done;){var a=(0,n.value)(e);a.length&&(r=r.concat(a))}}catch(s){i.e(s)}finally{i.f()}return!r.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),r,void 0,e.startState.selection,C)}},{key:"selection",value:function(e){return new t(void 0,C,void 0,void 0,e)}}]),t}();function S(t,e,n,r){var i=e+1>n+20?e-n-1:0,o=t.slice(i,e);return o.push(r),o}function A(t,e){return t.length?e.length?t.concat(e):t:e}var C=[];function M(t,e){if(t.length){var n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),S(t,t.length-1,1e9,n.setSelAfter(r)))}return[x.selection([e])]}function O(t){var e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function T(t,e){if(!t.length)return t;for(var n=t.length,r=C;n;){var i=D(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){var o=t.slice(0,n);return o[n-1]=i,o}e=i.mapped,n--,r=i.selectionsAfter}return r.length?[x.selection(r)]:C}function D(t,e,n){var i=A(t.selectionsAfter.length?t.selectionsAfter.map((function(t){return t.map(e)})):C,n);if(!t.changes)return x.selection(i);var o=t.changes.map(e),a=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(a):a;return new x(o,r.Py.mapEffects(t.effects,e),s,t.startSelection.map(a),i)}var E=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;s(this,t),this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}return l(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(e,n,r,i,o){var a=this.done,s=a[a.length-1];return new t(a=s&&s.changes&&n-this.prevTime=s&&i<=u&&(r=!0)}})),r}(s.changes,e.changes)?S(a,a.length-1,o,new x(e.changes.compose(s.changes),A(e.effects,s.effects),s.mapped,s.startSelection,C)):S(a,a.length,o,e),C,n,r)}},{key:"addSelection",value:function(e,n,r,i){var o,a,s=this.done.length?this.done[this.done.length-1].selectionsAfter:C;return s.length>0&&n-this.prevTime=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:[];p(this,t),this.data=e,this.topNode=r,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get:function(){return x(this)}}),this.parser=n,this.extension=[E.of(this),o.yy.languageData.of((function(t,e){return t.facet(w(t,e))}))].concat(i)}return m(t,[{key:"isActiveAt",value:function(t,e){return w(t,e)==this.data}},{key:"findRegions",value:function(t){var e=this,n=t.facet(E);if((null==n?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];var r=[];return x(t).iterate({enter:function(t,n,i){if(t.isTop&&t.prop(y)==e.data)return r.push({from:n,to:i}),!1}}),r}},{key:"allowsNesting",get:function(){return!0}},{key:"parseString",value:function(t){for(var e,n=i.xv.of(t.split("\n")),a=this.parser.startParse(new S(n),0,new A(this.parser,o.yy.create({doc:n}),[],r.mp.empty,{from:0,to:t.length},[],null));!(e=a.advance()););return e}}]),t}();function w(t,e){var n=t.facet(E);if(!n)return null;if(!n.allowsNesting)return n.data;for(var r=x(t).resolve(e,-1);r;){var i=r.type.prop(y);if(i)return i;r=r.parent}return n.data}b.setState=o.Py.define();function x(t){var e=t.field(b.state,!1);return e?e.tree:r.mp.empty}var S=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;p(this,t),this.doc=e,this.length=n,this.cursorPos=0,this.string="",this.prevString="",this.cursor=e.iter()}return m(t,[{key:"syncTo",value:function(t){return t=this.length)return-1;var e=this.cursorPos-this.string.length;if(t=this.cursorPos){if(t=e-this.prevString.length)return this.prevString.charCodeAt(t-(e-this.prevString.length));e=this.syncTo(t)}return this.string.charCodeAt(t-e)}},{key:"lineAfter",value:function(t){if(t>=this.length||t<0)return"";var e=this.cursorPos-this.string.length;return(t=this.cursorPos)&&(e=this.syncTo(t)),this.cursor.lineBreak?"":this.string.slice(t-e,Math.min(this.length-e,this.string.length))}},{key:"read",value:function(t,e){var n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}},{key:"clip",value:function(e){return new t(this.doc,e)}}]),t}(),A=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0;p(this,t),this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}return m(t,[{key:"work",value:function(t,e){if(this.tree!=r.mp.empty&&(null==e?this.tree.length==this.state.doc.length:this.tree.length>=e))return this.takeTree(),!0;this.parse||(this.parse=this.parser.startParse(new S(this.state.doc),0,this));for(var n=Date.now()+t;;){var i=this.parse.advance();if(i)return this.fragments=this.withoutTempSkipped(r.i9.addTree(i)),this.parse=null,this.tree=i,!0;if(null!=e&&this.parse.pos>=e)return this.takeTree(),!0;if(Date.now()>n)return!1}}},{key:"takeTree",value:function(){this.parse&&this.parse.pos>this.tree.length&&(this.tree=this.parse.forceFinish(),this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,!0)))}},{key:"withoutTempSkipped",value:function(t){for(var e;e=this.tempSkipped.pop();)t=C(t,e.from,e.to);return t}},{key:"changes",value:function(e,n){var i=this.fragments,o=this.tree,a=this.viewport,s=this.skipped;if(this.takeTree(),!e.empty){var l=[];if(e.iterChangedRanges((function(t,e,n,r){return l.push({fromA:t,toA:e,fromB:n,toB:r})})),i=r.i9.applyChanges(i,l),o=r.mp.empty,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];var h,c=u(this.skipped);try{for(c.s();!(h=c.n()).done;){var f=h.value,d=e.mapPos(f.from,1),v=e.mapPos(f.to,-1);dt.from&&(this.fragments=C(this.fragments,i,o),this.skipped.splice(n--,1))}return this.skipped.length=t}}],[{key:"getSkippingParser",value:function(t){return{startParse:function(e,n,i){return{pos:n,advance:function(){var o=i;return o.tempSkipped.push({from:n,to:e.length}),t&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,t]):t),this.pos=e.length,new r.mp(r.Jq.none,[],[],e.length-n)},forceFinish:function(){return this.advance()}}}}}}]),t}();function C(t,e,n){return r.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}A.skippingParser=A.getSkippingParser();var M=function(){function t(e){p(this,t),this.context=e,this.tree=e.tree}return m(t,[{key:"apply",value:function(e){if(!e.docChanged)return this;var n=this.context.changes(e.changes,e.state),r=this.context.tree.length==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.tree.length),n.viewport.to);return n.work(25,r)||n.takeTree(),new t(n)}}],[{key:"init",value:function(e){var n=new A(e.facet(E).parser,e,[],r.mp.empty,{from:0,to:e.doc.length},[],null);return n.work(25)||n.takeTree(),new t(n)}}]),t}();b.state=o.QQ.define({create:M.init,update:function(t,e){var n,r=u(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is(b.setState))return i.value}}catch(o){r.e(o)}finally{r.f()}return e.startState.facet(E)!=e.state.facet(E)?M.init(e.state):t.apply(e)}});var O="undefined"!=typeof window&&window.requestIdleCallback||function(t,e){var n=e.timeout;return setTimeout(t,n)},T="undefined"!=typeof window&&window.cancelIdleCallback||clearTimeout,D=a.lg.fromClass(function(){function t(e){p(this,t),this.view=e,this.working=-1,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return m(t,[{key:"update",value:function(t){var e=this.view.state.field(b.state).context;t.viewportChanged&&(e.updateViewport(t.view.viewport)&&e.reset(),this.view.viewport.to>e.tree.length&&this.scheduleWork()),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!(this.working>-1)){var e=this.view.state,n=e.field(b.state);!t&&n.tree.length>=e.doc.length||(this.working=O(this.work,{timeout:500}))}}},{key:"work",value:function(t){this.working=-1;var e=Date.now();if(this.chunkEnd=i+1e6)){var a=Math.min(this.chunkBudget,t?Math.max(25,t.timeRemaining()):100),s=o.context.work(a,i+1e6);this.chunkBudget-=Date.now()-e,(s||this.chunkBudget<=0||o.context.movedPast(i))&&(o.context.takeTree(),this.view.dispatch({effects:b.setState.of(new M(o.context))})),!s&&this.chunkBudget>0&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}}}},{key:"checkAsyncSchedule",value:function(t){var e=this;t.scheduleOn&&(t.scheduleOn.then((function(){return e.scheduleWork(!0)})),t.scheduleOn=null)}},{key:"destroy",value:function(){this.working>=0&&T(this.working)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),E=o.r$.define({combine:function(t){return t.length?t[0]:null},enables:[b.state,D]}),P=o.r$.define(),R=o.r$.define({combine:function(t){if(!t.length)return" ";if(!/^(?: +|\t+)$/.test(t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return t[0]}});function L(t){var e=t.facet(R);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function B(t,e){var n="",r=t.tabSize;if(9==t.facet(R).charCodeAt(0))for(;e>=r;)n+="\t",e-=r;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};p(this,t),this.state=e,this.options=n,this.unit=L(e)}return m(t,[{key:"textAfterPos",value:function(t){var e,n,r=null===(e=this.options)||void 0===e?void 0:e.simulateBreak;return t==r&&(null===(n=this.options)||void 0===n?void 0:n.simulateDoubleBreak)?"":this.state.sliceDoc(t,Math.min(t+100,null!=r&&r>t?r:1e9,this.state.doc.lineAt(t).to))}},{key:"column",value:function(t){var e,n=this.state.doc.lineAt(t),r=n.text.slice(0,t-n.from),i=this.countColumn(r,t-n.from),o=(null===(e=this.options)||void 0===e?void 0:e.overrideIndentation)?this.options.overrideIndentation(n.from):-1;return o>-1&&(i+=o-this.countColumn(r,r.search(/\S/))),i}},{key:"countColumn",value:function(t,e){return(0,i.IS)(e<0?t:t.slice(0,e),0,this.state.tabSize)}},{key:"lineIndent",value:function(t){var e,n=null===(e=this.options)||void 0===e?void 0:e.overrideIndentation;if(n){var r=n(t.from);if(r>-1)return r}return this.countColumn(t.text,t.text.search(/\S/))}}]),t}(),j=new r.md;function V(t){var e=t.type.prop(j);if(e)return e;var n,i=t.firstChild;if(i&&(n=i.type.prop(r.md.closedBy))){var o=t.lastChild,a=o&&n.indexOf(o.name)>-1;return function(t){return q(t,!0,1,void 0,a&&!function(t){var e,n;return t.pos==(null===(e=t.options)||void 0===e?void 0:e.simulateBreak)&&(null===(n=t.options)||void 0===n?void 0:n.simulateDoubleBreak)}(t)?o.from:void 0)}}return null==t.parent?W:null}function _(t,e,n){for(;t;t=t.parent){var r=V(t);if(r)return r(new z(n,e,t))}return null}function W(){return 0}var z=function(t){h(n,t);var e=f(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t.state,t.options)).base=t,o.pos=r,o.node=i,o}return m(n,[{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){for(var t=this.state.doc.lineAt(this.node.from);;){for(var e=this.node.resolve(t.from);e.parent&&e.parent.from==e.from;)e=e.parent;if(H(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t)}},{key:"continue",value:function(){var t=this.node.parent;return t?_(t,this.pos,this.base):0}}]),n}(I);function H(t,e){for(var n=e;n;n=n.parent)if(t==n)return!0;return!1}function q(t,e,n,r,i){var o=t.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==t.pos+a,u=e?function(t){var e,n=t.node,r=n.childAfter(n.from),i=n.lastChild;if(!r)return null;for(var o=null===(e=t.options)||void 0===e?void 0:e.simulateBreak,a=t.state.doc.lineAt(r.from),s=null==o||o<=a.from?a.to:Math.min(a.to,o),u=r.to;;){var l=n.childAfter(u);if(!l||l==i)return null;if(!l.type.isSkipped)return l.from!?|~^]/,o=/^[:\[\(\{]/,a=["true","false"],s=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function u(t,e){var n=t.peek();if(e.incomment)return t.skipTo("#}")?(t.eatWhile(/\#|}/),e.incomment=!1):t.skipToEnd(),"comment";if(e.intag){if(e.operator){if(e.operator=!1,t.match(a))return"atom";if(t.match(s))return"number"}if(e.sign){if(e.sign=!1,t.match(a))return"atom";if(t.match(s))return"number"}if(e.instring)return n==e.instring&&(e.instring=!1),t.next(),"string";if("'"==n||'"'==n)return e.instring=n,t.next(),"string";if(t.match(e.intag+"}")||t.eat("-")&&t.match(e.intag+"}"))return e.intag=!1,"tag";if(t.match(i))return e.operator=!0,"operator";if(t.match(o))e.sign=!0;else if(t.eat(" ")||t.sol()){if(t.match(r))return"keyword";if(t.match(a))return"atom";if(t.match(s))return"number";t.sol()&&t.next()}else t.next();return"variable"}if(t.eat("{")){if(t.eat("#"))return e.incomment=!0,t.skipTo("#}")?(t.eatWhile(/\#|}/),e.incomment=!1):t.skipToEnd(),"comment";if(n=t.eat(/\{|%/))return e.intag=n,"{"==n&&(e.intag="}"),t.eat("-"),"tag"}t.next()}r=new RegExp("(("+r.join(")|(")+"))\\b"),a=new RegExp("(("+a.join(")|(")+"))\\b");var l={startState:function(){return{tokenize:u}},token:function(t,e){return e.tokenize(t,e)},languageData:{commentTokens:{block:{open:"{#",close:"#}"}}}}},8987:function(t,e,n){"use strict";n.d(e,{r:function(){return i}});var r=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i"),i={token:function(t,e){var n=t.peek(),i=e.escaped;if(e.escaped=!1,"#"==n&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(e.literal&&t.indentation()>e.keyCol)return t.skipToEnd(),"string";if(e.literal&&(e.literal=!1),t.sol()){if(e.keyCol=0,e.pair=!1,e.pairStart=!1,t.match("---"))return"def";if(t.match("..."))return"def";if(t.match(/^\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==n?e.inlinePairs++:"}"==n?e.inlinePairs--:"["==n?e.inlineList++:e.inlineList--,"meta";if(e.inlineList>0&&!i&&","==n)return t.next(),"meta";if(e.inlinePairs>0&&!i&&","==n)return e.keyCol=0,e.pair=!1,e.pairStart=!1,t.next(),"meta";if(e.pairStart){if(t.match(/^\s*(\||\>)\s*/))return e.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(0==e.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(e.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(r))return"keyword"}return!e.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(e.pair=!0,e.keyCol=t.indentation(),"atom"):e.pair&&t.match(/^:\s*/)?(e.pairStart=!0,"meta"):(e.pairStart=!1,e.escaped="\\"==n,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}}},13764:function(t,e,n){"use strict";n.d(e,{Xs:function(){return d},f_:function(){return v},uU:function(){return l}});var r=n(77885);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:t;return new h(t,e,this)}}]),t}();l.prototype.startSide=l.prototype.endSide=0,l.prototype.point=!1,l.prototype.mapMode=r.gc.TrackDel;var h=function t(e,n,r){a(this,t),this.from=e,this.to=n,this.value=r};function c(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}var f=function(){function t(e,n,r,i){a(this,t),this.from=e,this.to=n,this.value=r,this.maxPoint=i}return u(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e9*e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t<=0)return r;for(var i=e<0?this.to:this.from,o=r,a=i.length;;){if(o==a)return o;var s=o+a>>1,u=i[s]-t||(e<0?this.value[s].startSide:this.value[s].endSide)-n;if(s==o)return u>=0?o:a;u>=0?a=s:o=s+1}}},{key:"between",value:function(t,e,n,r){for(var i=this.findIndex(e,-1),o=this.findIndex(n,1,void 0,i);i(d=n.mapPos(c,l.endSide))||f==d&&l.startSide>0&&l.endSide<=0)continue;(d-f||l.endSide-l.startSide)<0||(a<0&&(a=f),l.point&&(s=Math.max(s,d-f)),r.push(l),i.push(f-a),o.push(d-a))}return{mapped:r.length?new t(i,o,r,s):null,pos:a}}}]),t}(),d=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.empty,i=arguments.length>3?arguments[3]:void 0;a(this,t),this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}return u(t,[{key:"length",get:function(){var t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}},{key:"size",get:function(){if(this==t.empty)return 0;var e,n=this.nextLayer.size,r=i(this.chunk);try{for(r.s();!(e=r.n()).done;){n+=e.value.value.length}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"chunkEnd",value:function(t){return this.chunkPos[t]+this.chunk[t].length}},{key:"update",value:function(e){var n=e.add,r=void 0===n?[]:n,i=e.sort,o=void 0!==i&&i,a=e.filterFrom,s=void 0===a?0:a,u=e.filterTo,l=void 0===u?this.length:u,f=e.filter;if(0==r.length&&!f)return this;if(o&&r.slice().sort(c),this==t.empty)return r.length?t.of(r):this;for(var d=new g(this,null,-1).goto(0),p=0,m=[],y=new v;d.value||p=0){var k=r[p++];y.addInner(k.from,k.to,k.value)||m.push(k)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||ld.to||l=o&&e<=o+a.length&&!1===a.between(o,e-o,n-o,r))return}this.nextLayer.between(e,n,r)}}},{key:"iter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return m.from([this]).goto(t)}}],[{key:"iter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return m.from(t).goto(e)}},{key:"compare",value:function(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,a=e.filter((function(e){return e.maxPoint>=500||e!=t.empty&&n.indexOf(e)<0&&e.maxPoint>=o})),s=n.filter((function(n){return n.maxPoint>=500||n!=t.empty&&e.indexOf(n)<0&&n.maxPoint>=o})),u=p(a,s),l=new k(a,u,o),h=new k(s,u,o);r.iterGaps((function(t,e,n){return b(l,t,h,e,n,i)})),r.empty&&0==r.length&&b(l,0,h,0,0,i)}},{key:"spans",value:function(t,e,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=new k(t,null,i).goto(e),a=e,s=o.openStart;;){var u=Math.min(o.to,n);if(o.point?(r.point(a,u,o.point,o.activeForPoint(o.to),s),s=o.openEnd(u)+(o.to>u?1:0)):u>a&&(r.span(a,u,o.active,s),s=o.openEnd(u)),o.to>n)break;a=o.to,o.next()}return s}},{key:"of",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new v,o=i(t instanceof h?[t]:n?t.slice().sort(c):t);try{for(o.s();!(e=o.n()).done;){var a=e.value;r.add(a.from,a.to,a.value)}}catch(s){o.e(s)}finally{o.f()}return r.finish()}}]),t}();d.empty=new d([],[],null,-1),d.empty.nextLayer=d.empty;var v=function(){function t(){a(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return u(t,[{key:"finishChunk",value:function(t){this.chunks.push(new f(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new t)).add(e,n,r)}},{key:"addInner",value:function(t,e,n){var r=t-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(t-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}},{key:"addChunk",value:function(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);var n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}},{key:"finish",value:function(){return this.finishInner(d.empty)}},{key:"finishInner",value:function(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;var e=new d(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}]),t}();function p(t,e){var n,r=new Map,o=i(t);try{for(o.s();!(n=o.n()).done;)for(var a=n.value,s=0;s3&&void 0!==arguments[3]?arguments[3]:0;a(this,t),this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}return u(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}},{key:"gotoInner",value:function(t,e,n){for(;this.chunkIndex=this.minPoint)break}}},{key:"nextChunk",value:function(){this.chunkIndex++,this.rangeIndex=0,this.next()}},{key:"compare",value:function(t){return this.from-t.from||this.startSide-t.startSide||this.to-t.to||this.endSide-t.endSide}}]),t}(),m=function(){function t(e){a(this,t),this.heap=e}return u(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"goto",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9,r=i(this.heap);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.goto(t,n)}}catch(s){r.e(s)}finally{r.f()}for(var a=this.heap.length>>1;a>=0;a--)y(this.heap,a);return this.next(),this}},{key:"forward",value:function(t,e){var n,r=i(this.heap);try{for(r.s();!(n=r.n()).done;){n.value.forward(t,e)}}catch(a){r.e(a)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)y(this.heap,o);(this.to-t||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),y(this.heap,0)}}}],[{key:"from",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],o=0;o=r&&i.push(new g(a,n,r,o));return 1==i.length?i[0]:new t(i)}}]),t}();function y(t,e){for(var n=t[e];;){var r=1+(e<<1);if(r>=t.length)break;var i=t[r];if(r+1=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}var k=function(){function t(e,n,r){a(this,t),this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=m.from(e,n,r)}return u(t,[{key:"goto",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}},{key:"removeActive",value:function(t){x(this.active,t),x(this.activeTo,t),x(this.activeRank,t),this.minActive=A(this.active,this.activeTo)}},{key:"addActive",value:function(t){for(var e=0,n=this.cursor,r=n.value,i=n.to,o=n.rank;e-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&x(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.fromt&&this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}if(n){for(var a=0;athis.pointRank);n++)(this.activeTo[n]>t||this.activeTo[n]==t&&this.active[n].endSide>this.point.endSide)&&e.push(this.active[n]);return e}},{key:"openEnd",value:function(t){for(var e=0;et;)e++;return e}}]),t}();function b(t,e,n,r,i,o){t.goto(e),n.goto(r);for(var a=r+i,s=r,u=r-e;;){var l=t.to+u-n.to||t.endSide-n.endSide,h=l<0?t.to+u:n.to,c=Math.min(h,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))||o.comparePoint(s,c,t.point,n.point):c>s&&!w(t.active,n.active)&&o.compareRange(s,c,t.active,n.active),h>a)break;s=h,l<=0&&t.next(),l>=0&&n.next()}}function w(t,e){if(t.length!=e.length)return!1;for(var n=0;n=e;r--)t[r+1]=t[r];t[e]=n}function A(t,e){for(var n=-1,r=1e9,i=0;ia?-1:i==r.length?function(t,e){var n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):(0,o.IS)(r.text.slice(0,n-r.from),0,t.state.tabSize);return{line:r.number,col:s,off:i}}function u(t,e){var n=s(t,e),i=t.state.selection;return n?{update:function(t){if(t.docChanged){var e=t.changes.mapPos(t.startState.doc.line(n.line).from),r=t.state.doc.lineAt(e);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(t.changes)}},get:function(e,u,l){var h=s(t,e);if(!h)return i;var c=function(t,e,n){var i=Math.min(e.line,n.line),s=Math.max(e.line,n.line),u=[];if(e.off>a||n.off>a||e.col<0||n.col<0)for(var l=Math.min(e.off,n.off),h=Math.max(e.off,n.off),c=i;c<=s;c++){var f=t.doc.line(c);f.length<=h&&u.push(r.jT.range(f.from+l,f.to+h))}else for(var d=Math.min(e.col,n.col),v=Math.max(e.col,n.col),p=i;p<=s;p++){var g=t.doc.line(p),m=g.length>a?g.text.slice(0,2*v):g.text,y=(0,o.Gz)(m,0,d,t.tabSize),k=(0,o.Gz)(m,0,v,t.tabSize);y.leftOver||u.push(r.jT.range(g.from+y.offset,g.from+k.offset))}return u}(t.state,n,h);return c.length?l?r.jT.create(c.concat(i.ranges)):r.jT.create(c):i}}:null}function l(t){var e=(null==t?void 0:t.eventFilter)||function(t){return t.altKey&&0==t.button};return i.tk.mouseSelectionStyle.of((function(t,n){return e(n)?u(t,n):null}))}},72360:function(t,e,n){"use strict";n.d(e,{sW:function(){return Y},Lp:function(){return bt}});var r=n(19753),i=n(77885);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1?n.panels[r]:null}var f=r.lg.fromClass(function(){function t(e){o(this,t),this.input=e.state.facet(g),this.specs=this.input.filter((function(t){return t})),this.panels=this.specs.map((function(t){return t(e)}));var n=e.state.facet(h);this.top=new d(e,!0,n.topContainer),this.bottom=new d(e,!1,n.bottomContainer),this.top.sync(this.panels.filter((function(t){return t.top}))),this.bottom.sync(this.panels.filter((function(t){return!t.top})));var r,i=u(this.panels);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.dom.classList.add("cm-panel"),a.class&&a.dom.classList.add(a.class),a.mount&&a.mount()}}catch(s){i.e(s)}finally{i.f()}}return s(t,[{key:"update",value:function(t){var e=t.state.facet(h);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new d(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new d(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var n=t.state.facet(g);if(n!=this.input){var r,i=n.filter((function(t){return t})),o=[],a=[],s=[],l=[],c=u(i);try{for(c.s();!(r=c.n()).done;){var f=r.value,v=this.specs.indexOf(f),p=void 0;v<0?(p=f(t.view),l.push(p)):(p=this.panels[v]).update&&p.update(t),o.push(p),(p.top?a:s).push(p)}}catch(S){c.e(S)}finally{c.f()}this.specs=i,this.panels=o,this.top.sync(a),this.bottom.sync(s);for(var m=0,y=l;m=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||P(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){if(t){if("string"==typeof t)return R(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(t,e):void 0}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,o=arguments.length>4?arguments[4]:void 0;L(this,t),this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=o?function(t){return o(I(t))}:I,this.query=this.normalize(n)}return N(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,w.gm)(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var t=this.peek();if(t<0)return this.done=!0,this;var e=(0,w.bg)(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,w.nZ)(t);for(var r=this.normalize(e),i=0,o=n;;i++){var a=r.charCodeAt(i),s=this.match(a,o);if(s)return this.value=s,this;if(i==r.length-1)break;o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(L(this,t),this.to=o,this.curLine="",this.done=!1,this.value=V,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new q(e,n,r,i,o);this.re=new RegExp(n,_+((null==r?void 0:r.ignoreCase)?"i":"")),this.iter=e.iter();var a=e.lineAt(i);this.curLineStart=a.from,this.matchPos=i,this.getLine(this.curLineStart)}return N(t,[{key:"getLine",value:function(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var n=this.curLineStart+e.index,r=n+e[0].length;if(this.matchPos=r+(n==r?1:0),n==this.curLine.length&&this.nextLine(),nthis.value.to)return this.value={from:n,to:r,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=r||i.to<=n){var o=new t(n,e.sliceString(n,r));return z.set(e,o),o}if(i.from==n&&i.to==r)return i;var a=i.text,s=i.from;return s>n&&(a=e.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}},{key:"next",value:function(){for(;;){var t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e&&this.flat.tothis.flat.text.length-10&&(e=null),e){var n=this.flat.from+e.index,r=n+e[0].length;return this.value={from:n,to:r,match:e},this.matchPos=r+(n==r?1:0),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=H.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function F(t){var e=k("input",{class:"cm-textfield",name:"line"});function n(){var n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(n){var r=t.state,o=r.doc.lineAt(r.selection.main.head),a=E(n,5),s=a[1],u=a[2],l=a[3],h=a[4],c=l?+l.slice(1):0,f=u?+u:o.number;if(u&&h){var d=f/100;s&&(d=d*("-"==s?-1:1)+o.number/r.doc.lines),f=Math.round(r.doc.lines*d)}else u&&s&&(f=f*("-"==s?-1:1)+o.number);var v=r.doc.line(Math.max(1,Math.min(r.doc.lines,f)));t.dispatch({effects:$.of(!1),selection:i.jT.cursor(v.from+Math.max(0,Math.min(c,v.length))),scrollIntoView:!0}),t.focus()}}return{dom:k("form",{class:"cm-gotoLine",onkeydown:function(e){27==e.keyCode?(e.preventDefault(),t.dispatch({effects:$.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),n())},onsubmit:function(t){t.preventDefault(),n()}},k("label",t.state.phrase("Go to line"),": ",e)," ",k("button",{class:"cm-button",type:"submit"},t.state.phrase("go"))),pos:-10}}var $=i.Py.define(),U=i.QQ.define({create:function(){return!0},update:function(t,e){var n,r=D(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is($)&&(t=i.value)}}catch(o){r.e(o)}finally{r.f()}return t},provide:function(t){return g.from(t,(function(t){return t?F:null}))}}),G=r.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),J={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100},K=i.r$.define({combine:function(t){return(0,i.BO)(t,J,{highlightWordAroundCursor:function(t,e){return t||e},minSelectionLength:Math.min,maxMatches:Math.min})}});function Y(t){var e=[tt,Z];return t&&e.push(K.of(t)),e}var X=r.p.mark({class:"cm-selectionMatch"}),Q=r.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"}),Z=r.lg.fromClass(function(){function t(e){L(this,t),this.decorations=this.getDeco(e)}return N(t,[{key:"update",value:function(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var e=t.state.facet(K),n=t.state,o=n.selection;if(o.ranges.length>1)return r.p.none;var a,s=o.main,u=null;if(s.empty){if(!e.highlightWordAroundCursor)return r.p.none;if(u=n.charCategorizer(s.head),!(a=function(t,e,n){for(var r=t.lineAt(e),o=e-r.from,a=e-r.from;o>0;){var s=(0,w.cp)(r.text,o,!1);if(n(r.text.slice(s,o))!=i.D0.Word)break;o=s}for(;a200)return r.p.none;if(!(a=n.sliceDoc(s.from,s.to).trim()))return r.p.none}var h,c=[],f=D(t.visibleRanges);try{for(f.s();!(h=f.n()).done;)for(var d=h.value,v=new j(n.doc,a,d.from,d.to);!v.nextOverlapping().done;){var p=v.value,g=p.from,m=p.to;if((!u||(0==g||u(n.sliceDoc(g-1,g))!=i.D0.Word)&&(m==n.doc.length||u(n.sliceDoc(m,m+1))!=i.D0.Word))&&(u&&g<=s.from&&m>=s.to?c.push(Q.range(g,m)):(g>=s.to||m<=s.from)&&c.push(X.range(g,m)),c.length>e.maxMatches))return r.p.none}}catch(y){f.e(y)}finally{f.f()}return r.p.set(c)}}]),t}(),{decorations:function(t){return t.decorations}}),tt=r.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),et=function(){function t(e,n,r){L(this,t),this.search=e,this.replace=n,this.caseInsensitive=r}return N(t,[{key:"eq",value:function(t){return this.search==t.search&&this.replace==t.replace&&this.caseInsensitive==t.caseInsensitive&&this.constructor==t.constructor}}]),t}(),nt=function(t){A(n,t);var e=M(n);function n(t,r,i){var o;return L(this,n),(o=e.call(this,t,r,i)).unquoted=t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"})),o}return N(n,[{key:"cursor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;return new j(t,this.unquoted,e,n,this.caseInsensitive?function(t){return t.toLowerCase()}:void 0)}},{key:"nextMatch",value:function(t,e,n){var r=this.cursor(t,n).nextOverlapping();return r.done&&(r=this.cursor(t,0,e).nextOverlapping()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(t,e,n){for(var r=n;;){for(var i=Math.max(e,r-1e4-this.unquoted.length),o=this.cursor(t,i,r),a=null;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(i==e)return null;r-=1e4}}},{key:"prevMatch",value:function(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.length)}},{key:"getReplacement",value:function(t){return this.replace}},{key:"matchAll",value:function(t,e){for(var n=this.cursor(t),r=[];!n.next().done;){if(r.length>=e)return null;r.push(n.value)}return r}},{key:"highlight",value:function(t,e,n,r){for(var i=this.cursor(t,Math.max(0,e-this.unquoted.length),Math.min(n+this.unquoted.length,t.length));!i.next().done;)r(i.value.from,i.value.to)}},{key:"valid",get:function(){return!!this.search}}]),n}(et),rt=function(t){A(n,t);var e=M(n);function n(t,r,i){var o;return L(this,n),(o=e.call(this,t,r,i)).valid=!!t&&function(t){try{return new RegExp(t,_),!0}catch(e){return!1}}(t),o}return N(n,[{key:"cursor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;return new W(t,this.search,this.caseInsensitive?{ignoreCase:!0}:void 0,e,n)}},{key:"nextMatch",value:function(t,e,n){var r=this.cursor(t,n).next();return r.done&&(r=this.cursor(t,0,e).next()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(t,e,n){for(var r=1;;r++){for(var i=Math.max(e,n-1e4*r),o=this.cursor(t,i,n),a=null;!o.next().done;)a=o.value;if(a&&(i==e||a.from>i+10))return a;if(i==e)return null}}},{key:"prevMatch",value:function(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.length)}},{key:"getReplacement",value:function(t){return this.replace.replace(/\$([$&\d+])/g,(function(e,n){return"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;r.push(n.value)}return r}},{key:"highlight",value:function(t,e,n,r){for(var i=this.cursor(t,Math.max(0,e-250),Math.min(n+250,t.length));!i.next().done;)r(i.value.from,i.value.to)}}]),n}(et),it=i.Py.define(),ot=i.Py.define(),at=i.QQ.define({create:function(){return new st(new nt("","",!1),null)},update:function(t,e){var n,r=D(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(it)?t=new st(i.value,t.panel):i.is(ot)&&(t=new st(t.query,i.value?mt:null))}}catch(o){r.e(o)}finally{r.f()}return t},provide:function(t){return g.from(t,(function(t){return t.panel}))}}),st=function t(e,n){L(this,t),this.query=e,this.panel=n},ut=r.p.mark({class:"cm-searchMatch"}),lt=r.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),ht=r.lg.fromClass(function(){function t(e){L(this,t),this.view=e,this.decorations=this.highlight(e.state.field(at))}return N(t,[{key:"update",value:function(t){var e=t.state.field(at);(e!=t.startState.field(at)||t.docChanged||t.selectionSet)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(t){var e=t.query;if(!t.panel||!e.valid)return r.p.none;for(var n=this.view,i=new m.f_,o=0,a=n.visibleRanges,s=a.length;oa[o+1].from-500;)h=a[++o].to;e.highlight(n.state.doc,l,h,(function(t,e){var r=n.state.selection.ranges.some((function(n){return n.from==t&&n.to==e}));i.add(t,e,r?lt:ut)}))}return i.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function ct(t){return function(e){var n=e.state.field(at,!1);return n&&n.query.valid?t(e,n):yt(e)}}var ft=ct((function(t,e){var n=e.query,r=t.state.selection.main,i=r.from,o=r.to,a=n.nextMatch(t.state.doc,i,o);return!(!a||a.from==i&&a.to==o)&&(t.dispatch({selection:{anchor:a.from,head:a.to},scrollIntoView:!0,effects:St(t,a)}),!0)})),dt=ct((function(t,e){var n=e.query,r=t.state,i=r.selection.main,o=i.from,a=i.to,s=n.prevMatch(r.doc,o,a);return!!s&&(t.dispatch({selection:{anchor:s.from,head:s.to},scrollIntoView:!0,effects:St(t,s)}),!0)})),vt=ct((function(t,e){var n=e.query.matchAll(t.state.doc,1e3);return!(!n||!n.length)&&(t.dispatch({selection:i.jT.create(n.map((function(t){return i.jT.range(t.from,t.to)})))}),!0)})),pt=ct((function(t,e){var n=e.query,r=t.state,i=r.selection.main,o=i.from,a=i.to,s=n.nextMatch(r.doc,o,o);if(!s)return!1;var u,l,h=[];if(s.from==o&&s.to==a&&(l=r.toText(n.getReplacement(s)),h.push({from:s.from,to:s.to,insert:l}),s=n.nextMatch(r.doc,s.from,s.to)),s){var c=0==h.length||h[0].from>=s.to?0:s.to-s.from-l.length;u={anchor:s.from-c,head:s.to-c}}return t.dispatch({changes:h,selection:u,scrollIntoView:!!u,effects:s?St(t,s):void 0}),!0})),gt=ct((function(t,e){var n=e.query,r=n.matchAll(t.state.doc,1e9).map((function(t){return{from:t.from,to:t.to,insert:n.getReplacement(t)}}));return!!r.length&&(t.dispatch({changes:r}),!0)}));function mt(t){var e=t.state.field(at).query;return{dom:wt({view:t,query:e,updateQuery:function(n){e.eq(n)||(e=n,t.dispatch({effects:it.of(e)}))}}),mount:function(){this.dom.querySelector("[name=search]").select()},pos:80}}var yt=function(t){var e=t.state.field(at,!1);if(e&&e.panel){var n=c(t,mt);if(!n)return!1;n.dom.querySelector("[name=search]").focus()}else t.dispatch({effects:[ot.of(!0)].concat(S(e?[]:[i.Py.appendConfig.of(Ct)]))});return!0},kt=function(t){var e=t.state.field(at,!1);if(!e||!e.panel)return!1;var n=c(t,mt);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:ot.of(!1)}),!0},bt=[{key:"Mod-f",run:yt,scope:"editor search-panel"},{key:"F3",run:ft,shift:dt,scope:"editor search-panel"},{key:"Mod-g",run:ft,shift:dt,scope:"editor search-panel"},{key:"Escape",run:kt,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var e=t.state,n=t.dispatch,r=e.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var o=r.main,a=o.from,s=o.to,u=[],l=0,h=new j(e.doc,e.sliceDoc(a,s));!h.next().done;){if(u.length>1e3)return!1;h.value.from==a&&(l=u.length),u.push(i.jT.range(h.value.from,h.value.to))}return n(e.update({selection:i.jT.create(u,l)})),!0}},{key:"Alt-g",run:function(t){var e=c(t,F);if(!e){var n=[$.of(!0)];null==t.state.field(U,!1)&&n.push(i.Py.appendConfig.of([U,G])),t.dispatch({effects:n}),e=c(t,F)}return e&&e.dom.querySelector("input").focus(),!0}}];function wt(t){function e(e){return t.view.state.phrase(e)}var n=k("input",{value:t.query.search,placeholder:e("Find"),"aria-label":e("Find"),class:"cm-textfield",name:"search",onchange:s,onkeyup:s}),i=k("input",{value:t.query.replace,placeholder:e("Replace"),"aria-label":e("Replace"),class:"cm-textfield",name:"replace",onchange:s,onkeyup:s}),o=k("input",{type:"checkbox",name:"case",checked:!t.query.caseInsensitive,onchange:s}),a=k("input",{type:"checkbox",name:"re",checked:t.query instanceof rt,onchange:s});function s(){t.updateQuery(new(a.checked?rt:nt)(n.value,i.value,!o.checked))}function u(t,e,n){return k("button",{class:"cm-button",name:t,onclick:e},n)}return k("div",{onkeydown:function(e){(0,r.$1)(t.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==n?(e.preventDefault(),(e.shiftKey?dt:ft)(t.view)):13==e.keyCode&&e.target==i&&(e.preventDefault(),pt(t.view))},class:"cm-search"},[n,u("next",(function(){return ft(t.view)}),[e("next")]),u("prev",(function(){return dt(t.view)}),[e("previous")]),u("select",(function(){return vt(t.view)}),[e("all")]),k("label",null,[o,e("match case")]),k("label",null,[a,e("regexp")]),k("br"),i,u("replace",(function(){return pt(t.view)}),[e("replace")]),u("replaceAll",(function(){return gt(t.view)}),[e("replace all")]),k("button",{name:"close",onclick:function(){return kt(t.view)},"aria-label":e("close")},["×"])])}var xt=/[\s\.,:;?!]/;function St(t,e){var n=e.from,i=e.to,o=t.state.doc.lineAt(n).from,a=t.state.doc.lineAt(i).to,s=Math.max(o,n-30),u=Math.min(a,i+30),l=t.state.sliceDoc(s,u);if(s!=o)for(var h=0;h<30;h++)if(!xt.test(l[h+1])&&xt.test(l[h])){l=l.slice(h);break}if(u!=a)for(var c=l.length-1;c>l.length-30;c--)if(!xt.test(l[c-1])&&xt.test(l[c])){l=l.slice(0,c);break}return r.tk.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(t.state.doc.lineAt(n).number))}var At=r.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Ct=[at,i.Wl.override(ht),At]},77885:function(t,e,n){"use strict";n.d(e,{q6:function(){return X},n0:function(){return g},as:function(){return m},D0:function(){return lt},F6:function(){return W},jT:function(){return C},yy:function(){return ft},r$:function(){return D},gc:function(){return p},Wl:function(){return V},Py:function(){return tt},QQ:function(){return L},YW:function(){return et},BO:function(){return dt}});var r=n(23414);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]&&arguments[1];b(this,t,e)}},{key:"invertedDesc",get:function(){for(var e=[],n=0;n1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:w(this,t,e)}},{key:"mapPos",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Simple,r=0,i=0,o=0;ot)return i+(t-r);i+=a}else{if(n!=p.Simple&&u>=t&&(n==p.TrackDel&&rt||n==p.TrackBefore&&rt))return null;if(u>t||u==t&&e<0&&!a)return t==r||e<0?i:i+s;i+=s}r=u}if(t>r)throw new RangeError("Position ".concat(t," is out of range for changeset of length ").concat(r));return i}},{key:"touchesRange",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=0,r=0;n=0&&r<=e&&a>=t)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var t="",e=0;e=0?":"+r:"")}return t}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(e){if(!Array.isArray(e)||e.length%2||e.some((function(t){return"number"!=typeof t})))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}}]),t}(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t);var e=u(n);function n(t,r){var i;return c(this,n),(i=e.call(this,t)).inserted=r,i}return d(n,[{key:"apply",value:function(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return b(this,(function(e,n,r,i,o){return t=t.replace(r,r+(n-e),o)}),!1),t}},{key:"mapDesc",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return w(this,t,e,!0)}},{key:"invert",value:function(t){for(var e=this.sections.slice(),i=[],o=0,a=0;o=0){e[o]=u,e[o+1]=s;for(var l=o>>1;i.length1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:w(this,t,e,!0)}},{key:"iterChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(this,t,e)}},{key:"desc",get:function(){return new g(this.sections)}},{key:"filter",value:function(t){var e=[],r=[],i=[],o=new S(this);t:for(var a=0,s=0;;){for(var u=a==t.length?1e9:t[a++];s0&&k(r,e,o.text),o.forward(l),s+=l}for(var c=t[a++];s>1].toJSON()))}return t}}],[{key:"of",value:function(t,e,i){var a=[],s=[],u=0,l=null;function h(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t||a.length){um||p<0||m>e)throw new RangeError("Invalid change range ".concat(p," to ").concat(m," (in doc of length ").concat(e,")"));var w=b?"string"==typeof b?r.xv.of(b.split(i||v)):b:r.xv.empty,x=w.length;if(p==m&&0==x)return;pu&&y(a,p-u,-1),y(a,m-p,x),k(s,a,w),u=m}}(t),h(!l),l}},{key:"empty",value:function(t){return new n(t?[t,-1]:[],[])}},{key:"fromJSON",value:function(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");for(var e=[],i=[],o=0;o3&&void 0!==arguments[3]&&arguments[3];if(!(0==e&&n<=0)){var i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:0==e&&0==t[i]?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}}function k(t,e,n){if(0!=n.length){var i=e.length-2>>1;if(i>1])),!(n||s==t.sections.length||t.sections[s+1]<0);)u=t.sections[s++],l=t.sections[s++];e(o,h,a,c,f),o=h,a=c}}}function w(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=[],o=r?[]:null,a=new S(t),s=new S(e),u=0,l=0;;)if(-1==a.ins)u+=a.len,a.next();else if(-1==s.ins&&l=0&&(a.done||ll&&!a.done&&u+a.len=0)){if(a.done&&s.done)return o?new m(i,o):new g(i);throw new Error("Mismatched change set lengths")}for(var c=0,f=u+a.len;;)if(s.ins>=0&&l>u&&l+s.len2&&void 0!==arguments[2]&&arguments[2],r=[],i=n?[]:null,o=new S(t),a=new S(e),s=!1;;){if(o.done&&a.done)return i?new m(r,i):new g(r);if(0==o.ins)y(r,o.len,0,s),o.next();else if(0!=a.len||a.done){if(o.done||a.done)throw new Error("Mismatched change set lengths");var u=Math.min(o.len2,a.len),l=r.length;if(-1==o.ins){var h=-1==a.ins?-1:a.off?0:a.ins;y(r,u,h,s),i&&h&&k(i,r,a.text)}else-1==a.ins?(y(r,o.off?0:o.len,u,s),i&&k(i,r,o.textBit(u))):(y(r,o.off?0:o.len,a.off?0:a.ins,s),i&&!a.off&&k(i,r,a.text));s=(o.ins>u||a.ins>=0&&a.len>u)&&(s||r.length>l),o.forward2(u),a.forward(u)}else y(r,0,a.ins,s),i&&k(i,r,a.text),a.next()}}var S=function(){function t(e){c(this,t),this.set=e,this.i=0,this.next()}return d(t,[{key:"next",value:function(){var t=this.set.sections;this.i>1;return e>=t.length?r.xv.empty:t[e]}},{key:"textBit",value:function(t){var e=this.set.inserted,n=this.i-2>>1;return n>=e.length&&!t?r.xv.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}},{key:"forward",value:function(t){t==this.len?this.next():(this.len-=t,this.off+=t)}},{key:"forward2",value:function(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}]),t}(),A=function(){function t(e,n,r){c(this,t),this.from=e,this.to=n,this.flags=r}return d(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var t=3&this.flags;return 3==t?null:t}},{key:"goalColumn",get:function(){var t=this.flags>>5;return 33554431==t?void 0:t}},{key:"map",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=e.mapPos(this.from,n),i=e.mapPos(this.to,n);return r==this.from&&i==this.to?this:new t(r,i,this.flags)}},{key:"extend",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(t<=this.anchor&&e>=this.anchor)return C.range(t,e);var n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return C.range(this.anchor,n)}},{key:"eq",value:function(t){return this.anchor==t.anchor&&this.head==t.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return C.range(t.anchor,t.head)}}]),t}(),C=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,t),this.ranges=e,this.mainIndex=n}return d(t,[{key:"map",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.empty?this:t.create(this.ranges.map((function(t){return t.map(e,n)})),this.mainIndex)}},{key:"eq",value:function(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([e].concat(this.ranges),n?0:this.mainIndex+1)}},{key:"replaceRange",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,r=this.ranges.slice();return r[n]=e,t.create(r,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map((function(t){return t.toJSON()})),main:this.mainIndex}}}],[{key:"fromJSON",value:function(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map((function(t){return A.fromJSON(t)})),e.main)}},{key:"single",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new t([t.range(e,n)],0)}},{key:"create",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==e.length)throw new RangeError("A selection needs at least one range");for(var r=0,i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return new A(t,t,(0==e?0:e<0?4:8)|(null==n?3:Math.min(2,n))|(null!=r?r:33554431)<<5)}},{key:"range",value:function(t,e,n){var r=(null!=n?n:33554431)<<5;return e1&&void 0!==arguments[1]?arguments[1]:0,n=t[e];t.sort((function(t,e){return t.from-e.from})),e=t.indexOf(n);for(var r=1;ri.head?C.range(s,a):C.range(a,s))}}return new C(t,e)}function O(t,e){var n,r=o(t.ranges);try{for(r.s();!(n=r.n()).done;){if(n.value.to>e)throw new RangeError("Selection points outside of document")}}catch(i){r.e(i)}finally{r.f()}}var T=0,D=function(){function t(e,n,r,i,o){c(this,t),this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.extensions=o,this.id=T++,this.default=e([])}return d(t,[{key:"of",value:function(t){return new P([],this,0,t)}},{key:"compute",value:function(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new P(t,this,1,e)}},{key:"computeN",value:function(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new P(t,this,2,e)}},{key:"from",value:function(t,e){return e||(e=function(t){return t}),this.compute([t],(function(n){return e(n.field(t))}))}}],[{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(e.combine||function(t){return t},e.compareInput||function(t,e){return t===e},e.compare||(e.combine?function(t,e){return t===e}:E),!!e.static,e.enables)}}]),t}();function E(t,e){return t==e||t.length==e.length&&t.every((function(t,n){return t===e[n]}))}var P=function(){function t(e,n,r,i){c(this,t),this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=T++}return d(t,[{key:"dynamicSlot",value:function(t){var e,n,r=this.value,i=this.facet.compareInput,a=t[this.id]>>1,s=2==this.type,u=!1,l=!1,h=[],c=o(this.dependencies);try{for(c.s();!(n=c.n()).done;){var f=n.value;"doc"==f?u=!0:"selection"==f?l=!0:0==(1&(null!==(e=t[f.id])&&void 0!==e?e:1))&&h.push(t[f.id])}}catch(d){c.e(d)}finally{c.f()}return function(t,e){if(!e||e.reconfigured)return t.values[a]=r(t),1;if(!(u&&e.docChanged||l&&(e.docChanged||e.selection)||h.some((function(e){return(1&q(t,e))>0}))))return 0;var n=r(t),o=e.startState.values[a];return(s?function(t,e,n){if(t.length!=e.length)return!1;for(var r=0;r>1;return function(t,r){if(!r)return t.values[n]=e.create(t),1;var i,o=0;if(r.reconfigured){var a=function(t,e){var n=t.config.address[e];return null==n?null:n>>1}(r.startState,e.id);i=null==a?e.create(r.startState):r.startState.values[a],o=1}else i=r.startState.values[n];var s=e.updateF(i,r);return o||e.compareF(i,s)||(o=1),o&&(t.values[n]=s),o}}},{key:"init",value:function(t){return[this,R.of({field:this,create:t})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(e){var n=new t(T++,e.create,e.update,e.compare||function(t,e){return t===e},e);return e.provide&&(n.provides=e.provide(n)),n}}]),t}(),B=2,N=1,I=0;function j(t){return function(e){return new _(e,t)}}var V={fallback:j(3),default:j(B),extend:j(N),override:j(I)},_=function t(e,n){c(this,t),this.inner=e,this.prec=n},W=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new z(this,t)}},{key:"reconfigure",value:function(e){return t.reconfigure.of({compartment:this,extension:e})}},{key:"get",value:function(t){return t.config.compartments.get(this)}}]),t}(),z=function t(e,n){c(this,t),this.compartment=e,this.inner=n},H=function(){function t(e,n,r,i,o){for(c(this,t),this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(e,n,r){var i,a=[],s=Object.create(null),u=new Map,l=o(function(t,e,n){var r=[[],[],[],[]],i=new Map;function a(t,s){var u=i.get(t);if(null!=u){if(u>=s)return;var l=r[u].indexOf(t);l>-1&&r[u].splice(l,1),t instanceof z&&n.delete(t.compartment)}if(i.set(t,s),Array.isArray(t)){var h,c=o(t);try{for(c.s();!(h=c.n()).done;){a(h.value,s)}}catch(v){c.e(v)}finally{c.f()}}else if(t instanceof z){if(n.has(t.compartment))throw new RangeError("Duplicate use of compartment in extensions");var f=e.get(t.compartment)||t.inner;n.set(t.compartment,f),a(f,s)}else if(t instanceof _)a(t.inner,t.prec);else if(t instanceof L)r[s].push(t),t.provides&&a(t.provides,s);else if(t instanceof P)r[s].push(t),t.facet.extensions&&a(t.facet.extensions,s);else{var d=t.extension;if(!d)throw new Error("Unrecognized extension value in extension set (".concat(t,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));a(d,s)}}return a(t,B),r.reduce((function(t,e){return t.concat(e)}))}(e,n,u));try{for(l.s();!(i=l.n()).done;){var h=i.value;h instanceof L?a.push(h):(s[h.facet.id]||(s[h.facet.id]=[])).push(h)}}catch(k){l.e(k)}finally{l.f()}for(var c=Object.create(null),f=[],d=[],v=function(){var t=g[p];c[t.id]=d.length<<1,d.push((function(e){return t.slot(e)}))},p=0,g=a;p>1;return function(t,n){var u,l=n?n.reconfigured?n.startState.config.address[e.id]:s<<1:null,h=null==l,c=o(a);try{for(c.s();!(u=c.n()).done;)1&q(t,u.value)&&(h=!0)}catch(k){c.e(k)}finally{c.f()}if(!h)return 0;for(var f=[],d=0;d>1,r=t.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;t.status[n]=4;var i=t.config.dynamicSlots[n](t,t.applying);return t.status[n]=2|i}function F(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}var $=D.define(),U=D.define({combine:function(t){return t.some((function(t){return t}))},static:!0}),G=D.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),J=D.define(),K=D.define(),Y=D.define(),X=function(){function t(e,n){c(this,t),this.type=e,this.value=n}return d(t,null,[{key:"define",value:function(){return new Q}}]),t}(),Q=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new X(this,t)}}]),t}(),Z=function(){function t(e){c(this,t),this.map=e}return d(t,[{key:"of",value:function(t){return new tt(this,t)}}]),t}(),tt=function(){function t(e,n){c(this,t),this.type=e,this.value=n}return d(t,[{key:"map",value:function(e){var n=this.type.map(this.value,e);return void 0===n?void 0:n==this.value?this:new t(this.type,n)}},{key:"is",value:function(t){return this.type==t}}],[{key:"define",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Z(t.map||function(t){return t})}},{key:"mapEffects",value:function(t,e){if(!t.length)return t;var n,r=[],i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value.map(e);a&&r.push(a)}}catch(s){i.e(s)}finally{i.f()}return r}}]),t}();tt.reconfigure=tt.define(),tt.appendConfig=tt.define();var et=function(){function t(e,n,r,i,o,a){c(this,t),this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&O(r,n.newLength),o.some((function(e){return e.type==t.time}))||(this.annotations=o.concat(t.time.of(Date.now())))}return d(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(t){var e,n=o(this.annotations);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.type==t)return r.value}}catch(i){n.e(i)}finally{n.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}}]),t}();function nt(t,e){for(var n=[],r=0,i=0;;){var o=void 0,a=void 0;if(r=t[r]))o=t[r++],a=t[r++];else{if(!(i=0;i--){var o=n[i](t);o&&Object.keys(o).length&&(r=rt(t,it(e,o,t.changes.newLength),!0))}return r==t?t:new et(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(t){var e,n=t.startState,r=!0,i=o(n.facet(J));try{for(i.s();!(e=i.n()).done;){var a=(0,e.value)(t);if(!1===a){r=!1;break}Array.isArray(a)&&(r=!0===r?a:nt(r,a))}}catch(d){i.e(d)}finally{i.f()}if(!0!==r){var s,u;if(!1===r)u=t.changes.invertedDesc,s=m.empty(n.doc.length);else{var l=t.changes.filter(r);s=l.changes,u=l.filtered.invertedDesc}t=new et(n,s,t.selection&&t.selection.map(u),tt.mapEffects(t.effects,u),t.annotations,t.scrollIntoView)}for(var h=n.facet(K),c=h.length-1;c>=0;c--){var f=h[c](t);t=f instanceof et?f:Array.isArray(f)&&1==f.length&&f[0]instanceof et?f[0]:ot(n,st(f),!1)}return t}(s):s)}et.time=X.define(),et.userEvent=X.define(),et.addToHistory=X.define(),et.remote=X.define();var at=[];function st(t){return null==t?at:Array.isArray(t)?t:[t]}var ut,lt=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(lt||(lt={})),ht=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{ut=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(vt){}function ct(t){return function(e){if(!/\S/.test(e))return lt.Space;if(function(t){if(ut)return ut.test(t);for(var e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||ht.test(n)))return!0}return!1}(e))return lt.Word;for(var n=0;n-1)return lt.Word;return lt.Other}}var ft=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(c(this,t),this.config=e,this.doc=n,this.selection=r,this.applying=null,this.status=e.statusTemplate.slice(),i&&i.startState.config==e)this.values=i.startState.values.slice();else if(this.values=e.dynamicSlots.map((function(t){return null})),i)for(var o in e.address){var a=e.address[o],s=i.startState.config.address[o];null!=s&&0==(1&a)&&(this.values[a>>1]=F(i.startState,s))}this.applying=i,i&&(i._state=this);for(var u=0;u1&&void 0!==arguments[1])||arguments[1],n=this.config.address[t.id];if(null!=n)return q(this,n),F(this,n);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return e instanceof m?e:m.of(e,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(e){return r.xv.of(e.split(this.facet(t.lineSeparator)||v))}},{key:"sliceDoc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(t,e,this.lineBreak)}},{key:"facet",value:function(t){var e=this.config.address[t.id];return null==e?t.default:(q(this,e),F(this,e))}},{key:"toJSON",value:function(t){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(var n in t){var r=t[n];r instanceof L&&(e[n]=r.spec.toJSON(this.field(t[n]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"phrase",value:function(e){var n,r=o(this.facet(t.phrases));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Object.prototype.hasOwnProperty.call(i,e))return i[e]}}catch(a){r.e(a)}finally{r.f()}return e}},{key:"languageDataAt",value:function(t,e){var n,r=[],i=o(this.facet($));try{for(i.s();!(n=i.n()).done;){var a,s=o((0,n.value)(this,e));try{for(s.s();!(a=s.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,t)&&r.push(u[t])}}catch(l){s.e(l)}finally{s.f()}}}catch(l){i.e(l)}finally{i.f()}return r}},{key:"charCategorizer",value:function(t){return ct(this.languageDataAt("wordChars",t).join(""))}},{key:"wordAt",value:function(t){for(var e=this.doc.lineAt(t),n=e.text,i=e.from,o=e.length,a=this.charCategorizer(t),s=t-i,u=t-i;s>0;){var l=(0,r.cp)(n,s,!1);if(a(n.slice(l,s))!=lt.Word)break;s=l}for(;u1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");var i=[];if(r){var o=function(t){var n=r[t],o=e[t];i.push(n.init((function(t){return n.spec.fromJSON(o,t)})))};for(var a in r)o(a)}return t.create({doc:e.doc,selection:C.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=H.resolve(e.extensions||[],new Map),i=e.doc instanceof r.xv?e.doc:r.xv.of((e.doc||"").split(n.staticFacet(t.lineSeparator)||v)),o=e.selection?e.selection instanceof C?e.selection:C.single(e.selection.anchor,e.selection.head):C.single(0);return O(o,i.length),n.staticFacet(U)||(o=o.asSingle()),new t(n,i,o)}}]),t}();function dt(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={},a=o(t);try{for(a.s();!(n=a.n()).done;)for(var s=n.value,u=0,l=Object.keys(s);u=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function h(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length),(0,a.IS)(t.slice(r,e),i,n)}var x=function(){function t(e,n,r){y(this,t),this.string=e,this.tabSize=n,this.indentUnit=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}return b(t,[{key:"eol",value:function(){return this.pos>=this.string.length}},{key:"sol",value:function(){return 0==this.pos}},{key:"peek",value:function(){return this.string.charAt(this.pos)||void 0}},{key:"next",value:function(){if(this.pose}},{key:"eatSpace",value:function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}},{key:"skipToEnd",value:function(){this.pos=this.string.length}},{key:"skipTo",value:function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}},{key:"backUp",value:function(t){this.pos-=t}},{key:"column",value:function(){return this.lastColumnPos0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}},{key:"current",value:function(){return this.string.slice(this.start,this.pos)}}]),t}();function S(t){if("object"!=m(t))return t;var e={};for(var n in t){var r=t[n];e[n]=r instanceof Array?r.slice():r}return e}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(n,t);var e=d(n);function n(t){var i;y(this,n);var a,s=(0,o.kU)(t.languageData),u={token:(a=t).token,blankLine:a.blankLine||function(){},startState:a.startState||function(){return!0},copyState:a.copyState||S,indent:a.indent||function(){return null},languageData:a.languageData||{}};return(i=e.call(this,s,{startParse:function(t,e,n){return new O(p(i),t,e,n)}},function(t){var e=r.Jq.define({id:E.length,name:"Document",props:[o.mi.add((function(){return t}))]});return E.push(e),e}(s),[o.tK.of((function(t,e){return i.getIndent(t,e)}))])).streamParser=u,i.stateAfter=new WeakMap,i}return b(n,[{key:"getIndent",value:function(t,e){for(var n=(0,o.qz)(t.state),r=n.resolve(e);r&&r.type!=this.topNode;)r=r.parent;if(!r)return null;var i,a,s=C(this,n,0,r.from,e);if(s?(a=s.state,i=s.pos+1):(a=this.streamParser.startState(t.unit),i=0),e-i>1e4)return null;for(;i=i&&n+e.length<=o&&t.stateAfter.get(e);if(a)return{state:t.streamParser.copyState(a),pos:n+e.length};for(var s=e.children.length-1;s>=0;s--){var u=e.children[s],l=n+e.positions[s],h=u instanceof r.mp&&l=e.length)return e;o||e.type!=t.topNode||(o=!0);for(var a=e.children.length-1;a>=0;a--){var s=e.positions[a]+n,u=e.children[a],l=void 0;if(sn&&C(t,u.tree,0-u.offset,n,u.to),c=void 0;if(h&&(c=M(t,u.tree,n+u.offset,h.pos+u.offset,!1)))return{state:h.state,tree:c}}}catch(f){s.e(f)}finally{s.f()}return{state:t.streamParser.startState((0,o.y1)(i)),tree:r.mp.empty}}(e,a.fragments,i,a.state),u=s.state,h=s.tree;this.state=u,this.pos=this.chunkStart=i+h.length,h.length&&(this.chunks.push(h),this.chunkPos.push(0)),this.pose.start)return i}throw new Error("Stream parser failed to advance stream.")}var D=Object.create(null),E=[r.Jq.none],P=new r.Lj(E),R=[];function L(t){return t?D[t]||(D[t]=function(t){var e,n=null,o=l(t.split("."));try{for(o.s();!(e=o.n()).done;){var a=e.value,u=i.pJ[a];u?"function"==typeof u?n?n=u(n):_(a,"Modifier ".concat(a," used at start of tag")):n?_(a,"Tag ".concat(a," used as modifier")):n=u:_(a,"Unknown highlighting tag ".concat(a))}}catch(f){o.e(f)}finally{o.f()}if(!n)return 0;var h=t.replace(/ /g,"_"),c=r.Jq.define({id:E.length,name:h,props:[(0,i.Gv)(s({},h,n))]});return E.push(c),c.id}(t)):0}for(var B=0,N=[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","typeName"],["attribute","propertyName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]];B-1||(R.push(t),console.warn(e))}},23414:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt)return p[e-1]<=t;return!1}function y(t){return t>=127462&&t<=127487}function k(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(n?b:w)(t,e)}function b(t,e){if(e==t.length)return e;e&&x(t.charCodeAt(e))&&S(t.charCodeAt(e-1))&&e--;var n=A(t,e);for(e+=M(n);e=0&&y(A(t,o));)i++,o-=2;if(i%2==0)break;e+=2}}return e}function w(t,e){for(;e>0;){var n=b(t,e-2);if(n=56320&&t<57344}function S(t){return t>=55296&&t<56320}function A(t,e){var n=t.charCodeAt(e);if(!S(n)||e+1==t.length)return n;var r=t.charCodeAt(e+1);return x(r)?r-56320+(n-55296<<10)+65536:n}function C(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function M(t){return t<65536?1:2}function O(t,e,n){for(var r=0;r=n)return{offset:i,leftOver:0};e+=9==t.charCodeAt(i)?r-e%r:1,i=k(t,i)}return{offset:t.length,leftOver:n-e}}var D=function(){function t(){f(this,t)}return v(t,[{key:"lineAt",value:function(t){if(t<0||t>this.length)throw new RangeError("Invalid position ".concat(t," in document of length ").concat(this.length));return this.lineInner(t,!1,1,0)}},{key:"line",value:function(t){if(t<1||t>this.lines)throw new RangeError("Invalid line number ".concat(t," in ").concat(this.lines,"-line document"));return this.lineInner(t,!0,1,0)}},{key:"replace",value:function(t,e,n){var r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),P.from(r,this.length-(e-t)+n.length)}},{key:"append",value:function(t){return this.replace(this.length,this.length,t)}},{key:"slice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=[];return this.decompose(t,e,n,0),P.from(n,e-t)}},{key:"eq",value:function(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;for(var e=new N(this),n=new N(t);;){if(e.next(),n.next(),e.lineBreak!=n.lineBreak||e.done!=n.done||e.value!=n.value)return!1;if(e.done)return!0}}},{key:"iter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new N(this,t)}},{key:"iterRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new I(this,t,e)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var t=[];return this.flatten(t),t}}],[{key:"of",value:function(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new E(e):P.from(E.split(e,[])):t.empty}}]),t}();"undefined"!=typeof Symbol&&(D.prototype[Symbol.iterator]=function(){return this.iter()});var E=function(t){s(n,t);var e=l(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R(t);return f(this,n),(r=e.call(this)).text=t,r.length=i,r}return v(n,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.text[i],a=r+o.length;if((e?n:a)>=t)return new j(r,a,n,o);r=a+1,n++}}},{key:"decompose",value:function(t,e,r,i){var o=t<=0&&e>=this.length?this:new n(B(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&i){var a=r.pop(),s=L(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new n(s,a.length+o.length));else{var u=s.length>>1;r.push(new n(s.slice(0,u)),new n(s.slice(u)))}}else r.push(o)}},{key:"replace",value:function(t,e,r){if(!(r instanceof n))return a(c(n.prototype),"replace",this).call(this,t,e,r);var i=L(this.text,L(r.text,B(this.text,0,t)),e),o=this.length+r.length-(e-t);return i.length<=32?new n(i,o):P.from(n.split(i,[]),o)}},{key:"sliceString",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,o=0;i<=e&&ot&&o&&(r+=n),ti&&(r+=a.slice(Math.max(0,t-i),e-i)),i=s+1}return r}},{key:"flatten",value:function(t){var e,n=i(this.text);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r)}}catch(o){n.e(o)}finally{n.f()}}}],[{key:"split",value:function(t,e){var r,o=[],a=-1,s=i(t);try{for(s.s();!(r=s.n()).done;){var u=r.value;o.push(u),a+=u.length+1,32==o.length&&(e.push(new n(o,a)),o=[],a=-1)}}catch(l){s.e(l)}finally{s.f()}return a>-1&&e.push(new n(o,a)),e}}]),n}(D),P=function(t){s(n,t);var e=l(n);function n(t,r){var o;f(this,n),(o=e.call(this)).children=t,o.length=r,o.lines=0;var a,s=i(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;o.lines+=u.lines}}catch(l){s.e(l)}finally{s.f()}return o}return v(n,[{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.children[i],a=r+o.length,s=n+o.lines-1;if((e?s:a)>=t)return o.lineInner(t,e,n,r);r=a+1,n=s+1}}},{key:"decompose",value:function(t,e,n,r){for(var i=0,o=0;o<=e&&i=o){var u=r&((o<=t?1:0)|(s>=e?2:0));o>=t&&s<=e&&!u?n.push(a):a.decompose(t-o,e-o,n,u)}o=s+1}}},{key:"replace",value:function(t,e,r){if(r.lines=o&&e<=u){var l=s.replace(t-o,e-o,r),h=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>h>>6){var f=this.children.slice();return f[i]=l,new n(f,this.length-(e-t)+r.length)}return a(c(n.prototype),"replace",this).call(this,o,u,l)}o=u+1}return a(c(n.prototype),"replace",this).call(this,t,e,r)}},{key:"sliceString",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,o=0;it&&i&&(r+=n),to&&(r+=a.sliceString(t-o,e-o,n)),o=s+1}return r}},{key:"flatten",value:function(t){var e,n=i(this.children);try{for(n.s();!(e=n.n()).done;){e.value.flatten(t)}}catch(r){n.e(r)}finally{n.f()}}}],[{key:"from",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.reduce((function(t,e){return t+e.length+1}),-1),o=0,a=i(t);try{for(a.s();!(e=a.n()).done;){var s=e.value;o+=s.lines}}catch(A){a.e(A)}finally{a.f()}if(o<32){var u,l=[],h=i(t);try{for(h.s();!(u=h.n()).done;){var c=u.value;c.flatten(l)}}catch(A){h.e(A)}finally{h.f()}return new E(l,r)}var f=Math.max(32,o>>5),d=f<<1,v=f>>1,p=[],g=0,m=-1,y=[];function k(t){var e;if(t.lines>d&&t instanceof n){var r,o=i(t.children);try{for(o.s();!(r=o.n()).done;){k(r.value)}}catch(A){o.e(A)}finally{o.f()}}else t.lines>v&&(g>v||!g)?(b(),p.push(t)):t instanceof E&&g&&(e=y[y.length-1])instanceof E&&t.lines+e.lines<=32?(g+=t.lines,m+=t.length+1,y[y.length-1]=new E(e.text.concat(t.text),e.length+1+t.length)):(g+t.lines>f&&b(),g+=t.lines,m+=t.length+1,y.push(t))}function b(){0!=g&&(p.push(1==y.length?y[0]:n.from(y,m)),m=-1,g=y.length=0)}var w,x=i(t);try{for(x.s();!(w=x.n()).done;){var S=w.value;k(S)}}catch(A){x.e(A)}finally{x.f()}return b(),1==p.length?p[0]:new n(p,r)}}]),n}(D);function R(t){var e,n=-1,r=i(t);try{for(r.s();!(e=r.n()).done;){n+=e.value.length+1}}catch(o){r.e(o)}finally{r.f()}return n}function L(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,i=0,o=0,a=!0;o=n&&(u>r&&(s=s.slice(0,r-i)),i1&&void 0!==arguments[1]?arguments[1]:1;f(this,t),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?0:e instanceof E?e.text.length:e.children.length]}return v(t,[{key:"next",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;;){var e=this.nodes.length-1;if(e<0)return this.done=!0,this.value="",this.lineBreak=!1,this;var n=this.nodes[e],r=this.offsets[e],i=n instanceof E?n.text.length:n.children.length;if(r==(this.dir>0?i:0))this.nodes.pop(),this.offsets.pop();else if(this.lineBreak||r==(this.dir>0?0:i))if(n instanceof E){var o=n.text[r-(this.dir<0?1:0)];if(this.offsets[e]=r+=this.dir,this.lineBreak=!1,o.length>Math.max(0,t))return this.value=0==t?o:this.dir>0?o.slice(t):o.slice(0,o.length-t),this;t-=o.length}else{var a=n.children[this.dir>0?r:r-1];this.offsets[e]=r+this.dir,this.lineBreak=!1,t>a.length?t-=a.length:(this.nodes.push(a),this.offsets.push(this.dir>0?0:a instanceof E?a.text.length:a.children.length))}else{if(this.lineBreak=!0,0==t)return this.value="\n",this;t--}}}}]),t}(),I=function(){function t(e,n,r){f(this,t),this.value="",this.cursor=new N(e,n>r?-1:1),n>r?(this.skip=e.length-n,this.limit=n-r):(this.skip=n,this.limit=r-n)}return v(t,[{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.limit<=0)this.limit=-1;else{var e=this.cursor.next(this.skip+t),n=e.value,r=e.lineBreak,i=e.done;this.skip=0,this.value=n;var o=r?1:n.length;o>this.limit&&(this.value=this.cursor.dir>0?n.slice(0,this.limit):n.slice(o-this.limit)),i||0==this.value.length?this.limit=-1:this.limit-=this.value.length}return this}},{key:"lineBreak",get:function(){return this.cursor.lineBreak}},{key:"done",get:function(){return this.limit<0}}]),t}(),j=function(){function t(e,n,r,i){f(this,t),this.from=e,this.to=n,this.number=r,this.text=i}return v(t,[{key:"length",get:function(){return this.to-this.from}}]),t}()},19753:function(t,e,n){"use strict";n.d(e,{kH:function(){return Ot},p:function(){return Tt},Nm:function(){return ve},tk:function(){return Zn},BF:function(){return Kt},lg:function(){return Qt},Uw:function(){return br},ZO:function(){return Tr},$f:function(){return cr},$1:function(){return vr}});for(var r=n(77885),i=n(23414),o=n(62038),a=n(13764),s={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},u={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},l="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),h="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),c="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),f="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),d="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),v=l&&(f||+l[1]<57)||c&&f,p=0;p<10;p++)s[48+p]=s[96+p]=String(p);for(p=1;p<=24;p++)s[p+111]="F"+p;for(p=65;p<=90;p++)s[p]=String.fromCharCode(p+32),u[p]=String.fromCharCode(p);for(var g in s)u.hasOwnProperty(g)||(u[g]=s[g]);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=A(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=A(t);if(e){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function C(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function O(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:e,r=q||(q=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}var J=function(){function t(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];D(this,t),this.node=e,this.offset=n,this.precise=r}return P(t,null,[{key:"before",value:function(e,n){return new t(e.parentNode,j(e),n)}},{key:"after",value:function(e,n){return new t(e.parentNode,j(e)+1,n)}}]),t}(),K=[],Y=function(){function t(){D(this,t),this.parent=null,this.dom=null,this.dirty=2}return P(t,[{key:"editorView",get:function(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}},{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(t){var e,n=this.posAtStart,r=M(this.children);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i==t)return n;n+=i.length+i.breakAfter}}catch(o){r.e(o)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(t){return this.posBefore(t)+t.length}},{key:"coordsAt",value:function(t,e){return null}},{key:"sync",value:function(e){var n;if(2&this.dirty){var r,i=this.dom,o=null,a=M(this.children);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.dirty){var u=o?o.nextSibling:i.firstChild;s.dom||!u||(null===(n=t.get(u))||void 0===n?void 0:n.parent)||s.reuseDOM(u),s.sync(e),s.dirty=0}e&&e.node==i&&o!=s.dom&&(e.written=!0),Q(i,o,s.dom),o=s.dom}}catch(d){a.e(d)}finally{a.f()}var l=o?o.nextSibling:i.firstChild;for(l&&e&&e.node==i&&(e.written=!0);l;)l=X(l)}else if(1&this.dirty){var h,c=M(this.children);try{for(c.s();!(h=c.n()).done;){var f=h.value;f.dirty&&(f.sync(e),f.dirty=0)}}catch(d){c.e(d)}finally{c.f()}}}},{key:"reuseDOM",value:function(t){return!1}},{key:"localPosFromDOM",value:function(e,n){var r;if(e==this.dom)r=this.dom.childNodes[n];else{for(var i=0==_(e)?0:0==n?-1:1;;){var o=e.parentNode;if(o==this.dom)break;0==i&&o.firstChild!=o.lastChild&&(i=e==o.firstChild?-1:1),e=o}r=i<0?e:e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!t.get(r);)r=r.nextSibling;if(!r)return this.length;for(var a=0,s=0;;a++){var u=this.children[a];if(u.dom==r)return s;s+=u.length+u.breakAfter}}},{key:"domBoundsAround",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,o=-1,a=-1,s=0,u=n,l=n;se)return h.domBoundsAround(t,e,u);if(c>=t&&-1==r&&(r=s,i=u),u>e&&h.dom.parentNode==this.dom){o=s,a=l;break}l=c,u=c+h.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}},{key:"markDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];2&this.dirty||(this.dirty|=2,this.markParentsDirty(t))}},{key:"markParentsDirty",value:function(t){for(var e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,t=!1}}},{key:"setParent",value:function(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(t){this.dom=t,t.cmView=this}},{key:"rootView",get:function(){for(var t=this;;){var e=t.parent;if(!e)return t;t=e}}},{key:"replaceChildren",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K;this.markDirty();for(var i=t;i0&&void 0!==arguments[0]?arguments[0]:this.length;return new Z(this.children,t,this.children.length)}},{key:"childPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(t,e)}},{key:"toString",value:function(){var t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==t?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}}],[{key:"get",value:function(t){return t.cmView}}]),t}();function X(t){var e=t.nextSibling;return t.parentNode.removeChild(t),e}function Q(t,e,n){var r=e?e.nextSibling:t.firstChild;if(n.parentNode==t)for(;r!=n;)r=X(r);else t.insertBefore(n,r)}Y.prototype.breakAfter=0;var Z=function(){function t(e,n,r){D(this,t),this.children=e,this.pos=n,this.i=r,this.off=0}return P(t,[{key:"findPos",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(t>this.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;var n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}]),t}(),tt=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||O(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}("undefined"!=typeof navigator?[navigator,document]:[{userAgent:"",vendor:"",platform:""},{documentElement:{style:{}}}],2),et=tt[0],nt=tt[1],rt=/Edge\/(\d+)/.exec(et.userAgent),it=/MSIE \d/.test(et.userAgent),ot=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(et.userAgent),at=!!(it||ot||rt),st=!at&&/gecko\/(\d+)/i.test(et.userAgent),ut=!at&&/Chrome\/(\d+)/.exec(et.userAgent),lt="webkitFontSmoothing"in nt.documentElement.style,ht=!at&&/Apple Computer/.test(et.vendor),ct={mac:/Mac/.test(et.platform),ie:at,ie_version:it?nt.documentMode||6:ot?+ot[1]:rt?+rt[1]:0,gecko:st,gecko_version:st?+(/Firefox\/(\d+)/.exec(et.userAgent)||[0,0])[1]:0,chrome:!!ut,chrome_version:ut?+ut[1]:0,ios:ht&&(/Mobile\/\w+/.test(et.userAgent)||et.maxTouchPoints>2),android:/Android\b/.test(et.userAgent),webkit:lt,safari:ht,webkit_version:lt?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=nt.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},ft=[],dt=function(t){k(n,t);var e=w(n);function n(){return D(this,n),e.apply(this,arguments)}return P(n,[{key:"become",value:function(t){return!1}},{key:"getSide",value:function(){return 0}}]),n}(Y);dt.prototype.children=ft;var vt=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).text=t,r}return P(n,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(t){this.setDOM(t||document.createTextNode(this.text))}},{key:"sync",value:function(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(t){return 3==t.nodeType&&(this.createDOM(t),!0)}},{key:"merge",value:function(t,e,r){return(!r||r instanceof n&&!(this.length-(e-t)+r.length>256))&&(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(e),this.markDirty(),!0)}},{key:"slice",value:function(t){return new n(this.text.slice(t))}},{key:"localPosFromDOM",value:function(t,e){return t==this.dom?e:e?this.text.length:0}},{key:"domAtPos",value:function(t){return new J(this.dom,t)}},{key:"domBoundsAround",value:function(t,e,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(t,e){return gt(this.dom,t,e)}}]),n}(dt),pt=function(t){k(n,t);var e=w(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;D(this,n),(r=e.call(this)).mark=t,r.children=i,r.length=o;var a,s=M(i);try{for(s.s();!(a=s.n()).done;){var u=a.value;u.setParent(S(r))}}catch(l){s.e(l)}finally{s.f()}return r}return P(n,[{key:"createDOM",value:function(){var t=document.createElement(this.mark.tagName);if(this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(var e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);this.setDOM(t)}},{key:"sync",value:function(t){this.dom||this.createDOM(),y(A(n.prototype),"sync",this).call(this,t)}},{key:"merge",value:function(t,e,r,i,o){return(!r||!(!(r instanceof n&&r.mark.eq(this.mark))||t&&i<=0||ee&&r.push(ir&&(e=r);var i=e,o=e,a=0;0==e&&n<0||e==r&&n>=0?ct.chrome||ct.gecko||(e?(i--,a=1):(o++,a=-1)):n<0?i--:o++;var s=G(t,i,o).getClientRects();if(!s.length)return W;var u=s[(a?a<0:n>=0)?0:s.length-1];return ct.safari&&!a&&0==u.width&&(u=Array.prototype.find.call(s,(function(t){return t.width}))||u),a?z(u,a<0):u}var mt=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this)).widget=t,o.length=r,o.side=i,o}return P(n,[{key:"slice",value:function(t){return n.create(this.widget,this.length-t,this.side)}},{key:"sync",value:function(){this.dom&&this.widget.updateDOM(this.dom)||(this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(t,e,r,i,o){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||t>0&&i<=0||e0?n.length-1:0;r=n[i],!(t>0?0==i:i==n.length-1||r.top0?-1:1);return 0==t&&e>0||t==this.length&&e<=0?r:z(r,0==t)}}],[{key:"create",value:function(t,e,r){return new(t.customView||n)(t,e,r)}}]),n}(dt),yt=function(t){k(n,t);var e=w(n);function n(){return D(this,n),e.apply(this,arguments)}return P(n,[{key:"domAtPos",value:function(t){return new J(this.widget.text,t)}},{key:"sync",value:function(){this.dom||this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(t,e){return e?3==t.nodeType?Math.min(e,this.length):this.length:0}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(t,e){return gt(this.widget.text,t,e)}}]),n}(mt);function kt(t,e,n,r,i,o){var a,s=t.childCursor(),u=s.findPos(n,1),l=u.i,h=u.off,c=s.findPos(e,-1),f=c.i,d=c.off,v=e-n,p=M(r);try{for(p.s();!(a=p.n()).done;){v+=a.value.length}}catch(x){p.e(x)}finally{p.f()}t.length+=v;var g=t.children;if(f==l&&d){var m=g[f];if(1==r.length&&m.merge(d,h,r[0],i,o))return;if(0==r.length)return void m.merge(d,h,null,i,o);var y=m.slice(h);y.merge(0,0,r[r.length-1],0,o)?r[r.length-1]=y:r.push(y),l++,o=h=0}if(h){var k=g[l];r.length&&k.merge(0,h,r[r.length-1],0,o)?(r.pop(),o=r.length?0:i):k.merge(0,h,null,0,0)}else li&&n0;r--){var s=e[r-1].dom;if(s.parentNode==t)return J.after(s)}return new J(t,0)}function wt(t,e,n){var r,i=t.children;n>0&&e instanceof pt&&i.length&&(r=i[i.length-1])instanceof pt&&r.mark.eq(e.mark)?wt(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function xt(t,e,n){for(var r=0,i=0;i=e:a>e)return o.coordsAt(e-r,n);r=a}}var s=t.dom.lastChild;if(!s)return t.dom.getBoundingClientRect();var u=N(s);return u[u.length-1]}function St(t,e){for(var n in t)"class"==n&&e.class?e.class+=" "+t.class:"style"==n&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}function At(t,e){if(t==e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0,o=n;i-1}}],[{key:"mark",value:function(t){return new Dt(t)}},{key:"widget",value:function(t){var e=t.side||0;return t.block&&(e+=200000001*(e>0?1:-1)),new Pt(t,e,e,!!t.block,t.widget||null,!1)}},{key:"replace",value:function(t){var e=!!t.block,n=Rt(t),r=n.start,i=n.end;return new Pt(t,e?-2e8*(r?2:1):1e8*(r?-1:1),e?2e8*(i?2:1):1e8*(i?1:-1),e,t.widget||null,!0)}},{key:"line",value:function(t){return new Et(t)}},{key:"set",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.Xs.of(t,e)}}]),n}(a.uU);Tt.none=a.Xs.empty;var Dt=function(t){k(n,t);var e=w(n);function n(t){var r;D(this,n);var i=Rt(t),o=i.start,a=i.end;return(r=e.call(this,1e8*(o?-1:1),1e8*(a?1:-1),null,t)).tagName=t.tagName||"span",r.class=t.class||"",r.attrs=t.attributes||null,r}return P(n,[{key:"eq",value:function(t){return this==t||t instanceof n&&this.tagName==t.tagName&&this.class==t.class&&At(this.attrs,t.attrs)}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(t>=e)throw new RangeError("Mark decorations may not be empty");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Tt);Dt.prototype.point=!1;var Et=function(t){k(n,t);var e=w(n);function n(t){return D(this,n),e.call(this,-1e8,-1e8,null,t)}return P(n,[{key:"eq",value:function(t){return t instanceof n&&At(this.spec.attributes,t.spec.attributes)}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Tt);Et.prototype.mapMode=r.gc.TrackBefore,Et.prototype.point=!0;var Pt=function(t){k(n,t);var e=w(n);function n(t,i,o,a,s,u){var l;return D(this,n),(l=e.call(this,i,o,s,t)).block=a,l.isReplace=u,l.mapMode=a?i<0?r.gc.TrackBefore:r.gc.TrackAfter:r.gc.TrackDel,l}return P(n,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(t){return t instanceof n&&(e=this.widget,r=t.widget,e==r||!!(e&&r&&e.compare(r)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide;var e,r}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Tt);function Rt(t){var e=t.inclusiveStart,n=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==n&&(n=t.inclusive),{start:e||!1,end:n||!1}}function Lt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n.length-1;i>=0&&n[i]+r>t?n[i]=Math.max(n[i],e):n.push(t,e)}Pt.prototype.point=!0;var Bt=function(t){k(n,t);var e=w(n);function n(){var t;return D(this,n),(t=e.apply(this,arguments)).children=[],t.length=0,t.prevAttrs=void 0,t.attrs=null,t.breakAfter=0,t}return P(n,[{key:"merge",value:function(t,e,r,i,o,a){if(r){if(!(r instanceof n))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),kt(this,t,e,r?r.children:Nt,o,a),!0}},{key:"split",value:function(t){var e=new n;if(e.breakAfter=this.breakAfter,0==this.length)return e;var r=this.childPos(t),i=r.i,o=r.off;o&&(e.append(this.children[i].slice(o),0),this.children[i].merge(o,this.children[i].length,null,0,0),i++);for(var a=i;a0&&0==this.children[i-1].length;)this.children[i-1].parent=null,i--;return this.children.length=i,this.markDirty(),this.length=t,e}},{key:"transferDOM",value:function(t){this.dom&&(t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(t){At(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}},{key:"append",value:function(t,e){wt(this,t,e)}},{key:"addLineDeco",value:function(t){var e=t.spec.attributes;e&&(this.attrs=St(e,this.attrs||{}))}},{key:"domAtPos",value:function(t){return bt(this.dom,this.children,t)}},{key:"sync",value:function(t){this.dom||(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Ct(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),y(A(n.prototype),"sync",this).call(this,t);var e=this.dom.lastChild;if(!e||"BR"!=e.nodeName&&Y.get(e)instanceof mt){var r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var t,e=0,n=M(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!(r instanceof vt))return null;var i=N(r.dom);if(1!=i.length)return null;e+=i[0].width}}catch(o){n.e(o)}finally{n.f()}return{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}}},{key:"coordsAt",value:function(t,e){return xt(this,t,e)}},{key:"match",value:function(t){return!1}},{key:"type",get:function(){return Ot.Text}}],[{key:"find",value:function(t,e){for(var r=0,i=0;;r++){var o=t.children[r],a=i+o.length;if(a>=e){if(o instanceof n)return o;if(o.length)return null}i=a+o.breakAfter}}}]),n}(Y),Nt=[],It=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this)).widget=t,o.length=r,o.type=i,o.breakAfter=0,o}return P(n,[{key:"merge",value:function(t,e,r,i,o,a){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||t>0&&o<=0||e=0;n--)t=new pt(e[n],[t],t.length);return t}},{key:"buildText",value:function(t,e,n){for(;t>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),i=r.value,o=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.curLine=null,t--;continue}this.text=i,this.textOff=0}var s=Math.min(this.text.length-this.textOff,t,512);this.getLine().append(this.wrapMarks(new vt(this.text.slice(this.textOff,this.textOff+s)),e),n),this.textOff+=s,t-=s,n=0}}},{key:"span",value:function(t,e,n,r){this.buildText(e-t,n,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(t,e,n,r,i){var o=e-t;if(n instanceof Pt)if(n.block){var a=n.type;a!=Ot.WidgetAfter||this.posCovered()||this.getLine(),this.addWidget(new It(n.widget||new Vt("div"),o,a))}else{var s=this.wrapMarks(mt.create(n.widget||new Vt("span"),o,n.startSide),r);this.getLine().append(s,i)}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=i)}}],[{key:"build",value:function(e,n,r,i){var o=new t(e,n,r);return o.openEnd=a.Xs.spans(i,n,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(),o}}]),t}(),Vt=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).tag=t,r}return P(n,[{key:"eq",value:function(t){return t.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(t){return t.nodeName.toLowerCase()==this.tag}}]),n}(Mt),_t=[],Wt=r.r$.define(),zt=r.r$.define(),Ht=r.r$.define(),qt=r.r$.define(),Ft=r.r$.define(),$t=r.r$.define();function Ut(t,e,n){var r=t.facet(qt);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}var Gt=r.r$.define({combine:function(t){return!t.length||t[0]}}),Jt=function t(e,n){D(this,t),this.field=e,this.get=n},Kt=function(){function t(){D(this,t)}return P(t,[{key:"from",value:function(t){return new Jt(this,t)}}],[{key:"define",value:function(){return new t}}]),t}();Kt.decorations=Kt.define(),Kt.scrollMargins=Kt.define();var Yt=0,Xt=r.r$.define(),Qt=function(){function t(e,n,r){D(this,t),this.id=e,this.create=n,this.fields=r,this.extension=Xt.of(this)}return P(t,null,[{key:"define",value:function(e,n){var r=n||{},i=r.eventHandlers,o=r.provide,a=r.decorations,s=[];if(o){var u,l=M(Array.isArray(o)?o:[o]);try{for(l.s();!(u=l.n()).done;){var h=u.value;s.push(h)}}catch(c){l.e(c)}finally{l.f()}}return i&&s.push(Zt.from((function(t){return{plugin:t,handlers:i}}))),a&&s.push(Kt.decorations.from(a)),new t(Yt++,e,s)}},{key:"fromClass",value:function(e,n){return t.define((function(t){return new e(t)}),n)}}]),t}(),Zt=Kt.define(),te=function(){function t(e){D(this,t),this.spec=e,this.mustUpdate=null,this.value=null}return P(t,[{key:"takeField",value:function(t,e){var n,r=M(this.spec.fields);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.field,a=i.get;o==t&&e.push(a(this.value))}}catch(s){r.e(s)}finally{r.f()}}},{key:"update",value:function(e){if(this.value){if(this.mustUpdate){var n=this.mustUpdate;if(this.mustUpdate=null,!this.value.update)return this;try{this.value.update(n)}catch(r){if(Ut(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(i){}return t.dummy}}}else try{this.value=this.spec.create(e)}catch(r){return Ut(e.state,r,"CodeMirror plugin crashed"),t.dummy}return this}},{key:"destroy",value:function(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(n){Ut(t.state,n,"CodeMirror plugin crashed")}}}]),t}();te.dummy=new te(Qt.define((function(){return{}})));var ee=r.r$.define({combine:function(t){return t.reduce((function(t,e){return St(e,t)}),{})}}),ne=r.r$.define({combine:function(t){return t.reduce((function(t,e){return St(e,t)}),{})}}),re=r.r$.define(),ie=r.r$.define(),oe=function(){function t(e,n,r,i){D(this,t),this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}return P(t,[{key:"join",value:function(e){return new t(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}},{key:"addToSet",value:function(t){for(var e=t.length,n=this;e>0;e--){var r=t[e-1];if(!(r.fromA>n.toA)){if(r.toAh)break;o+=2}if(!u)return r;new t(u.fromA,u.toA,u.fromB,u.toB).addToSet(r),a=u.toA,s=u.toB}}}]),t}(),ae=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_t;D(this,t),this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=r.as.empty(this.startState.doc.length);var o,a=M(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.changes=this.changes.compose(s.changes)}}catch(h){a.e(h)}finally{a.f()}var u=[];this.changes.iterChangedRanges((function(t,e,n,r){return u.push(new oe(t,e,n,r))})),this.changedRanges=u;var l=e.hasFocus;l!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=l,this.flags|=1),this.docChanged&&(this.flags|=2)}return P(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(18&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return this.transactions.some((function(t){return t.docChanged}))}},{key:"selectionSet",get:function(){return this.transactions.some((function(t){return t.selection}))}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}]),t}(),se=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).view=t,r.compositionDeco=Tt.none,r.decorations=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.setDOM(t.contentDOM),r.children=[new Bt],r.children[0].setParent(S(r)),r.updateInner([new oe(0,0,0,t.state.doc.length)],r.updateDeco(),0),r}return P(n,[{key:"root",get:function(){return this.view.root}},{key:"editorView",get:function(){return this.view}},{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(t){var e=this,n=t.changedRanges;this.minWidth>0&&n.length&&(n.every((function(t){var n=t.fromA;return t.toAe.minWidthTo}))?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=0),this.view.inputState.composing<0?this.compositionDeco=Tt.none:t.transactions.length&&(this.compositionDeco=function(t,e){var n=t.observer.selectionRange,r=n.focusNode&&ce(n.focusNode,n.focusOffset,0);if(!r)return Tt.none;var i,o,a=t.docView.nearest(r),s=r;if(a instanceof dt){for(;a.parent instanceof dt;)a=a.parent;o=(i=a.posAtStart)+a.length,s=a.dom}else{if(!(a instanceof Bt))return Tt.none;for(;s.parentNode!=a.dom;)s=s.parentNode;for(var u=s.previousSibling;u&&!Y.get(u);)u=u.previousSibling;i=o=u?Y.get(u).posAtEnd:a.posAtStart}var l=e.mapPos(i,1),h=Math.max(l,e.mapPos(o,-1)),c=r.nodeValue,f=t.state;if(h-l=this.view.viewport.from&&t.state.selection.main.to<=this.view.viewport.to?(this.updateSelection(l,d),!1):(this.updateInner(n,c,t.startState.doc.length,l,d),!0)}},{key:"updateInner",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.updateChildren(t,e,n),this.view.observer.ignore((function(){r.dom.style.height=r.view.viewState.domHeight+"px",r.dom.style.minWidth=r.minWidth?r.minWidth+"px":"";var t=ct.chrome?{node:R(r.view.root).focusNode,written:!1}:void 0;r.sync(t),r.dirty=0,(null==t?void 0:t.written)&&(i=!0),r.updateSelection(i,o),r.dom.style.height=""}))}},{key:"updateChildren",value:function(t,e,n){for(var r=this.childCursor(n),i=t.length-1;;i--){var o=i>=0?t[i]:null;if(!o)break;var a=o.fromA,s=o.toA,u=o.fromB,l=o.toB,h=jt.build(this.view.state.doc,u,l,e),c=h.content,f=h.breakAtStart,d=h.openStart,v=h.openEnd,p=r.findPos(s,1),g=p.i,m=p.off,y=r.findPos(a,-1),k=y.i,b=y.off;this.replaceRange(k,b,g,m,c,f,d,v)}}},{key:"replaceRange",value:function(t,e,n,r,i,o,a,s){var u=this.children[t],l=i.length?i[i.length-1]:null,h=l?l.breakAfter:o;if(t!=n||o||h||!(i.length<2)||!u.merge(e,r,i.length?l:null,0==e,a,s)){var c=this.children[n];for(r0&&(!o&&i.length&&u.merge(e,u.length,i[0],!1,a,0)?u.breakAfter=i.shift().breakAfter:(e0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n||this.mayControlSelection()){var r=this.view.state.selection.main,i=this.domAtPos(r.anchor),o=r.empty?i:this.domAtPos(r.head);if(ct.gecko&&r.empty&&ue(i)){var a=document.createTextNode("");this.view.observer.ignore((function(){return i.node.insertBefore(a,i.node.childNodes[i.offset]||null)})),i=o=new J(a,0),e=!0}var s=this.view.observer.selectionRange;(e||!s.focusNode||ct.gecko&&r.empty&&fe(s.focusNode,s.focusOffset)||!I(i.node,i.offset,s.anchorNode,s.anchorOffset)||!I(o.node,o.offset,s.focusNode,s.focusOffset))&&(this.view.observer.ignore((function(){var e=R(t.root);if(r.empty){if(ct.gecko){var n=fe(i.node,i.offset);if(n&&3!=n){var a=ce(i.node,i.offset,1==n?1:-1);a&&(i=new J(a,1==n?0:a.nodeValue.length))}}e.collapse(i.node,i.offset),null!=r.bidiLevel&&null!=s.cursorBidiLevel&&(s.cursorBidiLevel=r.bidiLevel)}else if(e.extend)e.collapse(i.node,i.offset),e.extend(o.node,o.offset);else{var u=document.createRange();if(r.anchor>r.head){var l=[o,i];i=l[0],o=l[1]}u.setEnd(o.node,o.offset),u.setStart(i.node,i.offset),e.removeAllRanges(),e.addRange(u)}})),this.view.observer.setSelectionRange(i,o)),this.impreciseAnchor=i.precise?null:new J(s.anchorNode,s.anchorOffset),this.impreciseHead=o.precise?null:new J(s.focusNode,s.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){var t=this.view.state.selection.main,e=R(this.root);if(t.empty&&t.assoc&&e.modify){var n=Bt.find(this,t.head);if(n){var r=n.posAtStart;if(t.head!=r&&t.head!=r+n.length){var i=this.coordsAt(t.head,-1),o=this.coordsAt(t.head,1);if(i&&o&&!(i.bottom>o.top)){var a=this.domAtPos(t.head+t.assoc);e.collapse(a.node,a.offset),e.modify("move",t.assoc<0?"forward":"backward","lineboundary")}}}}}},{key:"mayControlSelection",value:function(){return this.view.state.facet(Gt)?this.root.activeElement==this.dom:B(this.dom,this.view.observer.selectionRange)}},{key:"nearest",value:function(t){for(var e=t;e;){var n=Y.get(e);if(n&&n.rootView==this)return n;e=e.parentNode}return null}},{key:"posFromDOM",value:function(t,e){var n=this.nearest(t);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(t,e)+n.posAtStart}},{key:"domAtPos",value:function(t){for(var e=this.childCursor().findPos(t,-1),n=e.i,r=e.off;no||t==o&&(i.type==Ot.Text||!r||this.children[r-1].breakAfter))return i.coordsAt(t-o,e);n=o}}},{key:"measureVisibleLineHeights",value:function(){for(var t=[],e=this.view.viewState.viewport,n=e.from,r=e.to,i=Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=0,a=0;ar)break;if(o>=n){t.push(s.dom.getBoundingClientRect().height);var l=s.dom.scrollWidth;l>i&&(this.minWidth=i=l,this.minWidthFrom=o,this.minWidthTo=u)}o=u+s.breakAfter}return t}},{key:"measureTextSize",value:function(){var t,e=this,n=M(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r instanceof Bt){var i=r.measureTextSize();if(i)return i}}}catch(u){n.e(u)}finally{n.f()}var o,a,s=document.createElement("div");return s.className="cm-line",s.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((function(){e.dom.appendChild(s);var t=N(s.firstChild)[0];o=s.getBoundingClientRect().height,a=t?t.width/27:7,s.remove()})),{lineHeight:o,charWidth:a}}},{key:"childCursor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,e=this.children.length;return e&&(t-=this.children[--e].length),new Z(this.children,t,e)}},{key:"computeBlockGapDeco",value:function(){for(var t=[],e=this.view.viewState,n=0,r=0;;r++){var i=r==e.viewports.length?null:e.viewports[r],o=i?i.from-1:this.length;if(o>n){var a=e.lineAt(o,0).bottom-e.lineAt(n,0).top;t.push(Tt.replace({widget:new le(a),block:!0,inclusive:!0}).range(n,o))}if(!i)break;n=i.to+1}return Tt.set(t)}},{key:"updateDeco",value:function(){return this.decorations=[this.computeBlockGapDeco(),this.view.viewState.lineGapDeco,this.compositionDeco].concat(C(this.view.state.facet(re)),C(this.view.pluginField(Kt.decorations)))}},{key:"scrollPosIntoView",value:function(t,e){var n=this.coordsAt(t,e);if(n){var r,i=0,o=0,a=0,s=0,u=M(this.view.pluginField(Kt.scrollMargins));try{for(u.s();!(r=u.n()).done;){var l=r.value;if(l){var h=l.left,c=l.right,f=l.top,d=l.bottom;null!=h&&(i=Math.max(i,h)),null!=c&&(o=Math.max(o,c)),null!=f&&(a=Math.max(a,f)),null!=d&&(s=Math.max(s,d))}}}catch(v){u.e(v)}finally{u.f()}!function(t,e){for(var n=t.ownerDocument.defaultView,r=t.parentNode;r;)if(1==r.nodeType){var i=void 0,o=r==document.body;if(o)i=H(n);else{if(r.scrollHeight<=r.clientHeight&&r.scrollWidth<=r.clientWidth){r=r.parentNode;continue}var a=r.getBoundingClientRect();i={left:a.left,right:a.left+r.clientWidth,top:a.top,bottom:a.top+r.clientHeight}}var s=0,u=0;if(e.topi.bottom&&(u=e.bottom-i.bottom+5),e.lefti.right&&(s=e.right-i.right+5),s||u)if(o)n.scrollBy(s,u);else{if(u){var l=r.scrollTop;r.scrollTop+=u,u=r.scrollTop-l}if(s){var h=r.scrollLeft;r.scrollLeft+=s,s=r.scrollLeft-h}e={left:e.left-s,top:e.top-u,right:e.right-s,bottom:e.bottom-u}}if(o)break;r=r.assignedSlot||r.parentNode}else{if(11!=r.nodeType)break;r=r.host}}(this.dom,{left:n.left-i,top:n.top-a,right:n.right+o,bottom:n.bottom+s})}}}]),n}(Y);function ue(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset0&&n<=0)e=_(t=t.childNodes[e-1]);else{if(!(1==t.nodeType&&e=0))return null;t=t.childNodes[e],e=0}}}function fe(t,e){return 1!=t.nodeType?0:(e&&"false"==t.childNodes[e-1].contentEditable?1:0)|(e=e){if(a.level==n)return o;(i<0||(0!=r?r<0?a.frome:t[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}]),t}(),Ee=[];function Pe(t,e){var n=t.length,r=e==pe?1:2,i=e==pe?2:1;if(!t||1==r&&!Te.test(t))return Re(n);for(var o=0,a=r,s=r;o=0;x-=3)if(we[x+1]==-m){var S=we[x+2],A=2&S?r:4&S?1&S?i:r:0;A&&(Ee[k]=Ee[we[x]]=A),b=x;break}}else{if(189==we.length)break;we[b++]=k,we[b++]=g,we[b++]=w}else if(2==(y=Ee[k])||1==y){var C=y==r;w=C?0:1;for(var M=b-3;M>=0;M-=3){var O=we[M+2];if(2&O)break;if(C)we[M+2]|=2;else{if(4&O)break;we[M+2]|=4}}}for(var T=0;TN;){for(var V=j,_=2!=Ee[--j];j>N&&_==(2!=Ee[j-1]);)j--;L.push(new De(j,V,_?2:1))}else L.push(new De(N,B,0))}else for(var W=0;Wt?e.left-t:Math.max(0,t-e.right)}function Ie(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function je(t,e){return t.tope.top+1}function Ve(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function We(t,e,n){for(var r,i,o,a,s,u,l,h,c=t.firstChild;c;c=c.nextSibling)for(var f=N(c),d=0;dg||a==g&&o>p)&&(r=c,i=v,o=p,a=g),0==p?n>v.bottom&&(!l||l.bottomv.top)&&(u=c,h=v):l&&je(l,v)?l=_e(l,v.bottom):h&&je(h,v)&&(h=Ve(h,v.top))}if(l&&l.bottom>=n?(r=s,i=l):h&&h.top<=n&&(r=u,i=h),!r)return{node:t,offset:0};var m=Math.max(i.left,Math.min(i.right,e));return 3==r.nodeType?ze(r,m,n):o||"true"!=r.contentEditable?{node:t,offset:Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0)}:We(r,m,n)}function ze(t,e,n){for(var r=t.nodeValue.length,i=-1,o=1e9,a=0,s=0;sn?h.top-n:n-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&c=(h.left+h.right)/2,d=f;if(ct.chrome||ct.gecko)G(t,s).getBoundingClientRect().left==h.right&&(d=!f);if(c<=0)return{node:t,offset:s+(d?1:0)};i=s+(d?1:0),o=c}}}return{node:t,offset:i>-1?i:a>0?t.nodeValue.length:0}}function He(t,e){for(var n,r=e.x,i=e.y,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,a=t.contentDOM.getBoundingClientRect(),s=t.defaultLineHeight/2,u=!1;;){if((n=t.blockAtHeight(i,a.top)).top>i||n.bottomi?-1:1,i=Math.min(n.bottom-s,Math.max(n.top+s,i)),u)return-1;u=!0}if(n.type==Ot.Text)break;i=o>0?n.bottom+s:n.top-s}var l=n.from;if(lt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:null;r=Math.max(a.left+1,Math.min(a.right-1,r));var h,c=t.root,f=c.elementFromPoint(r,i),d=-1;if(f&&t.contentDOM.contains(f)&&!(t.docView.nearest(f)instanceof mt))if(c.caretPositionFromPoint){var v=c.caretPositionFromPoint(r,i);v&&(h=v.offsetNode,d=v.offset)}else if(c.caretRangeFromPoint){var p=c.caretRangeFromPoint(r,i);p&&(h=p.startContainer,d=p.startOffset,ct.safari&&qe(h,d,r)&&(h=void 0))}if(!h||!t.docView.dom.contains(h)){var g=Bt.find(t.docView,l),m=We(g.dom,r,i);h=m.node,d=m.offset}return t.docView.posFromDOM(h,d)}function qe(t,e,n){var r;if(3!=t.nodeType||e!=(r=t.nodeValue.length))return!1;for(var i=t.nextSibling;i;i=t.nextSibling)if(1!=i.nodeType||"BR"!=i.nodeName)return!1;return G(t,r-1,r).getBoundingClientRect().left>n}function Fe(t,e,n,i){var o=t.state.doc.lineAt(e.head),a=i&&t.lineWrapping?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(a){var s=t.dom.getBoundingClientRect(),u=t.posAtCoords({x:n==(t.textDirection==ve.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(null!=u)return r.jT.cursor(u,n?-1:1)}var l=Bt.find(t.docView,e.head),h=l?n?l.posAtEnd:l.posAtStart:n?o.to:o.from;return r.jT.cursor(h,n?-1:1)}function $e(t,e,n,i){for(var o=t.state.doc.lineAt(e.head),a=t.bidiSpans(o),s=e,u=null;;){var l=Be(o,a,t.textDirection,s,n),h=Le;if(!l){if(o.number==(n?t.state.doc.lines:1))return s;h="\n",o=t.state.doc.line(o.number+(n?1:-1)),a=t.bidiSpans(o),l=r.jT.cursor(n?o.from:o.to)}if(u){if(!u(h))return s}else{if(!i)return l;u=i(h)}s=l}}var Ue=function(){function t(e){var n=this;D(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastIOSEnter=0,this.lastIOSBackspace=0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionEndedAt=0,this.mouseSelection=null;var r=function(t){var r=Ye[t];e.contentDOM.addEventListener(t,(function(i){"keydown"==t&&n.keydown(e,i)||Ke(e,i)&&!n.ignoreDuringComposition(i)&&(n.mustFlushObserver(i)&&e.observer.forceFlush(),n.runCustomHandlers(t,e,i)?i.preventDefault():r(e,i))})),n.registeredEvents.push(t)};for(var i in Ye)r(i);this.notifiedFocused=e.hasFocus,this.ensureHandlers(e)}return P(t,[{key:"setSelectionOrigin",value:function(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(t){var e,n=this,r=M(this.customHandlers=t.pluginField(Zt));try{for(r.s();!(e=r.n()).done;){var i=e.value,o=function(e){n.registeredEvents.indexOf(e)<0&&"scroll"!=e&&(n.registeredEvents.push(e),t.contentDOM.addEventListener(e,(function(r){Ke(t,r)&&n.runCustomHandlers(e,t,r)&&r.preventDefault()})))};for(var a in i.handlers)o(a)}}catch(s){r.e(s)}finally{r.f()}}},{key:"runCustomHandlers",value:function(t,e,n){var r,i=M(this.customHandlers);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.handlers[t],s=!1;if(a){try{s=a.call(o.plugin,n,e)}catch(u){Ut(e.state,u)}if(s||n.defaultPrevented)return ct.android&&"keydown"==t&&13==n.keyCode&&e.observer.flushSoon(),!0}}}catch(l){i.e(l)}finally{i.f()}return!1}},{key:"runScrollHandlers",value:function(t,e){var n,r=M(this.customHandlers);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.handlers.scroll;if(o)try{o.call(i.plugin,e,t)}catch(a){Ut(t.state,a)}}}catch(s){r.e(s)}finally{r.f()}}},{key:"keydown",value:function(t,e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!this.screenKeyEvent(t,e))return!(!ct.ios||13!=e.keyCode&&8!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey||e.synthetic)&&(this[13==e.keyCode?"lastIOSEnter":"lastIOSBackspace"]=Date.now(),!0)}},{key:"ignoreDuringComposition",value:function(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(ct.safari&&Date.now()-this.compositionEndedAt<500)&&(this.compositionEndedAt=0,!0))}},{key:"screenKeyEvent",value:function(t,e){var n=9==e.keyCode&&Date.now()=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}(n,i)&&null,!1===this.dragging&&(i.preventDefault(),this.select(i))}return P(t,[{key:"move",value:function(t){if(0==t.buttons)return this.destroy();!1===this.dragging&&this.select(t)}},{key:"up",value:function(t){null==this.dragging&&this.select(this.startEvent),this.dragging||t.preventDefault(),this.destroy()}},{key:"destroy",value:function(){var t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.inputState.mouseSelection=null}},{key:"select",value:function(t){var e=this.style.get(t,this.extend,this.multiple);e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,annotations:r.YW.userEvent.of("pointerselection"),scrollIntoView:!0})}},{key:"update",value:function(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)}}]),t}();function Ke(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(var n,r=e.target;r!=t.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=Y.get(r))&&n.ignoreEvent(e))return!1;return!0}var Ye=Object.create(null),Xe=ct.ie&&ct.ie_version<15||ct.ios&&ct.webkit_version<604;function Qe(t,e){var n,i=t.state,o=1,a=i.toText(e),s=a.lines==i.selection.ranges.length;if(hn&&i.selection.ranges.every((function(t){return t.empty}))&&hn==a.toString()){var u=-1;n=i.changeByRange((function(t){var n=i.doc.lineAt(t.from);if(n.from==u)return{range:t};u=n.from;var l=i.toText((s?a.line(o++).text:e)+i.lineBreak);return{changes:{from:n.from,insert:l},range:r.jT.cursor(t.from+l.length)}}))}else n=s?i.changeByRange((function(t){var e=a.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:r.jT.cursor(t.from+e.length)}})):i.replaceSelection(a);t.dispatch(n,{annotations:r.YW.userEvent.of("paste"),scrollIntoView:!0})}Ye.keydown=function(t,e){t.inputState.setSelectionOrigin("keyboardselection")};var Ze=0;function tn(t,e,n,o){if(1==o)return r.jT.cursor(e,n);if(2==o)return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t.charCategorizer(e),a=t.doc.lineAt(e),s=e-a.from;if(0==a.length)return r.jT.cursor(e);0==s?n=1:s==a.length&&(n=-1);var u=s,l=s;n<0?u=(0,i.cp)(a.text,s,!1):l=(0,i.cp)(a.text,s);for(var h=o(a.text.slice(u,l));u>0;){var c=(0,i.cp)(a.text,u,!1);if(o(a.text.slice(c,u))!=h)break;u=c}for(;lDate.now()-2e3)){var n,i=null,o=M(t.state.facet(Ht));try{for(o.s();!(n=o.n()).done;){if(i=(0,n.value)(t,e))break}}catch(a){o.e(a)}finally{o.f()}i||0!=e.button||(i=function(t,e){var n=on(t,e),i=function(t){if(!an)return t.detail;var e=sn,n=ln;return sn=t,ln=Date.now(),un=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(un+1)%3:1}(e),o=t.state.selection,a=n,s=e;return{update:function(t){t.changes&&(n&&(n.pos=t.changes.mapPos(n.pos)),o=o.map(t.changes))},get:function(e,u,l){var h;if(e.clientX==s.clientX&&e.clientY==s.clientY?h=a:(h=a=on(t,e),s=e),!h||!n)return o;var c=tn(t,h.pos,h.bias,i);if(n.pos!=h.pos&&!u){var f=tn(t,n.pos,n.bias,i),d=Math.min(f.from,c.from),v=Math.max(f.to,c.to);c=d=e.top&&t<=e.bottom},nn=function(t,e,n){return en(e,n)&&t>=n.left&&t<=n.right};function rn(t,e,n,r){var i=Bt.find(t.docView,e);if(!i)return 1;var o=e-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;var a=i.coordsAt(o,-1);if(a&&nn(n,r,a))return-1;var s=i.coordsAt(o,1);return s&&nn(n,r,s)?1:a&&en(r,a)?-1:1}function on(t,e){var n=t.posAtCoords({x:e.clientX,y:e.clientY});return null==n?null:{pos:n,bias:rn(t,n,e.clientX,e.clientY)}}var an=ct.ie&&ct.ie_version<=11,sn=null,un=0,ln=0;Ye.dragstart=function(t,e){var n=t.state.selection.main,r=t.inputState.mouseSelection;r&&(r.dragging=n),e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove")},Ye.drop=function(t,e){if(e.dataTransfer&&t.state.facet(Gt)){var n=t.posAtCoords({x:e.clientX,y:e.clientY}),i=e.dataTransfer.getData("Text");if(null!=n&&i){e.preventDefault();var o=t.inputState.mouseSelection,a=o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,s={from:n,insert:i},u=t.state.changes(a?[a,s]:s);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(n,-1),head:u.mapPos(n,1)},annotations:r.YW.userEvent.of("drop")})}}},Ye.paste=function(t,e){if(t.state.facet(Gt)){t.observer.flush();var n=Xe?null:e.clipboardData,r=n&&n.getData("text/plain");r?(Qe(t,r),e.preventDefault()):function(t){var e=t.dom.parentNode;if(e){var n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((function(){t.focus(),n.remove(),Qe(t,n.value)}),50)}}(t)}};var hn=null;function cn(t){t.docView.compositionDeco.size&&t.update([])}Ye.copy=Ye.cut=function(t,e){var n=function(t){var e,n=[],r=[],i=!1,o=M(t.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=e.value;a.empty||(n.push(t.sliceDoc(a.from,a.to)),r.push(a))}}catch(f){o.e(f)}finally{o.f()}if(!n.length){var s,u=-1,l=M(t.selection.ranges);try{for(l.s();!(s=l.n()).done;){var h=s.value.from,c=t.doc.lineAt(h);c.number>u&&(n.push(c.text),r.push({from:c.from,to:Math.min(t.doc.length,c.to+1)})),u=c.number}}catch(f){l.e(f)}finally{l.f()}i=!0}return{text:n.join(t.lineBreak),ranges:r,linewise:i}}(t.state),i=n.text,o=n.ranges,a=n.linewise;if(i){hn=a?i:null;var s=Xe?null:e.clipboardData;s?(e.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(t,e){var n=t.dom.parentNode;if(n){var r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout((function(){r.remove(),t.focus()}),50)}}(t,i),"cut"==e.type&&t.state.facet(Gt)&&t.dispatch({changes:o,scrollIntoView:!0,annotations:r.YW.userEvent.of("cut")})}},Ye.focus=Ye.blur=function(t){setTimeout((function(){t.hasFocus!=t.inputState.notifiedFocused&&t.update([])}),10)},Ye.beforeprint=function(t){t.viewState.printing=!0,t.requestMeasure(),setTimeout((function(){t.viewState.printing=!1,t.requestMeasure()}),2e3)},Ye.compositionstart=Ye.compositionupdate=function(t){t.inputState.composing<0&&(t.docView.compositionDeco.size&&(t.observer.flush(),cn(t)),t.inputState.composing=0)},Ye.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),setTimeout((function(){t.inputState.composing<0&&cn(t)}),50)},Ye.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()};var fn=["pre-wrap","normal","pre-line"],dn=function(){function t(){D(this,t),this.doc=i.xv.empty,this.lineWrapping=!1,this.direction=ve.LTR,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return P(t,[{key:"heightForGap",value:function(t,e){var n=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(n+=Math.ceil((e-t-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}},{key:"heightForLine",value:function(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(t){return this.doc=t,this}},{key:"mustRefresh",value:function(t,e,n){for(var r=!1,i=0;i-1!=this.lineWrapping||this.direction!=n}},{key:"refresh",value:function(t,e,n,r,i,o){var a=fn.indexOf(t)>-1,s=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a||this.direction!=e;if(this.lineWrapping=a,this.direction=e,this.lineHeight=n,this.charWidth=r,this.lineLength=i,s){this.heightSamples={};for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:2;D(this,t),this.length=e,this.height=n,this.flags=r}return P(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(t){this.flags=(t?2:0)|-3&this.flags}},{key:"setHeight",value:function(t,e){this.height!=e&&(Math.abs(this.height-e)>1e-4&&(t.heightChanged=!0),this.height=e)}},{key:"replace",value:function(e,n,r){return t.of(r)}},{key:"decomposeLeft",value:function(t,e){e.push(this)}},{key:"decomposeRight",value:function(t,e){e.push(this)}},{key:"applyChanges",value:function(t,e,n,r){for(var i=this,o=r.length-1;o>=0;o--){var a=r[o],s=a.fromA,u=a.toA,l=a.fromB,h=a.toB,c=i.lineAt(s,gn.ByPosNoHeight,e,0,0),f=c.to>=u?c:i.lineAt(u,gn.ByPosNoHeight,e,0,0);for(h+=f.to-u,u=f.to;o>0&&c.from<=r[o-1].toA;)s=r[o-1].fromA,l=r[o-1].fromB,o--,s2*o){var a=e[n-1];a.break?e.splice(--n,1,a.left,null,a.right):e.splice(--n,1,a.left,a.right),r+=1+a.break,i-=a.size}else{if(!(o>2*i))break;var s=e[r];s.break?e.splice(r,1,s.left,null,s.right):e.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else if(i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=e&&n.more&&this.setHeight(t,n.heights[n.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),n}(mn),kn=function(t){k(n,t);var e=w(n);function n(t,r){var i;return D(this,n),(i=e.call(this,t,r,Ot.Text)).collapsed=0,i.widgetHeight=0,i}return P(n,[{key:"replace",value:function(t,e,r){var i=r[0];return 1==r.length&&(i instanceof n||i instanceof bn&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof bn?i=new n(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):mn.of(r)}},{key:"updateHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=e&&r.more?this.setHeight(t,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),n}(yn),bn=function(t){k(n,t);var e=w(n);function n(t){return D(this,n),e.call(this,t,0)}return P(n,[{key:"lines",value:function(t,e){var n=t.lineAt(e).number,r=t.lineAt(e+this.length).number;return{firstLine:n,lastLine:r,lineHeight:this.height/(r-n+1)}}},{key:"blockAt",value:function(t,e,n,r){var i=this.lines(e,r),o=i.firstLine,a=i.lastLine,s=i.lineHeight,u=Math.max(0,Math.min(a-o,Math.floor((t-n)/s))),l=e.line(o+u),h=l.from,c=l.length;return new pn(h,c,n+s*u,s,Ot.Text)}},{key:"lineAt",value:function(t,e,n,r,i){if(e==gn.ByHeight)return this.blockAt(t,n,r,i);if(e==gn.ByPosNoHeight){var o=n.lineAt(t),a=o.from,s=o.to;return new pn(a,s-a,0,0,Ot.Text)}var u=this.lines(n,i),l=u.firstLine,h=u.lineHeight,c=n.lineAt(t),f=c.from,d=c.length,v=c.number;return new pn(f,d,r+h*(v-l),h,Ot.Text)}},{key:"forEachLine",value:function(t,e,n,r,i,o){for(var a=this.lines(n,i),s=a.firstLine,u=a.lineHeight,l=Math.max(t,i),h=Math.min(i+this.length,e);l<=h;){var c=n.lineAt(l);l==t&&(r+=u*(c.number-s)),o(new pn(c.from,c.length,r,u,Ot.Text)),r+=u,l=c.to+1}}},{key:"replace",value:function(t,e,r){var i=this.length-e;if(i>0){var o=r[r.length-1];o instanceof n?r[r.length-1]=new n(o.length+i):r.push(null,new n(i-1))}if(t>0){var a=r[0];a instanceof n?r[0]=new n(t+a.length):r.unshift(new n(t-1),null)}return mn.of(r)}},{key:"decomposeLeft",value:function(t,e){e.push(new n(t-1),null)}},{key:"decomposeRight",value:function(t,e){e.push(null,new n(this.length-t-1))}},{key:"updateHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,o=e+this.length;if(i&&i.from<=e+this.length&&i.more){var a=[],s=Math.max(e,i.from);for(i.from>e&&a.push(new n(i.from-e-1).updateHeight(t,e));s<=o&&i.more;){var u=t.doc.lineAt(s).length;a.length&&a.push(null);var l=new kn(u,i.heights[i.index++]);l.outdated=!1,a.push(l),s+=u+1}return s<=o&&a.push(null,new n(o-s).updateHeight(t,s)),t.heightChanged=!0,mn.of(a)}return(r||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),n}(mn),wn=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this,t.length+r+i.length,t.height+i.height,r|(t.outdated||i.outdated?2:0))).left=t,o.right=i,o.size=t.size+i.size,o}return P(n,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(t,e,n,r){var i=n+this.left.height;return ta))return u;var l=e==gn.ByPosNoHeight?gn.ByPosNoHeight:gn.ByPos;return s?u.join(this.right.lineAt(a,l,n,o,a)):this.left.lineAt(a,l,n,r,i).join(u)}},{key:"forEachLine",value:function(t,e,n,r,i,o){var a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)t=s&&this.right.forEachLine(t,e,n,a,s,o);else{var u=this.lineAt(s,gn.ByPos,n,r,i);t=t&&u.from<=e&&o(u),e>u.to&&this.right.forEachLine(u.to+1,e,n,a,s,o)}}},{key:"replace",value:function(t,e,n){var r=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-r,e-r,n));var i=[];t>0&&this.decomposeLeft(t,i);var o,a=i.length,s=M(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;i.push(u)}}catch(h){s.e(h)}finally{s.f()}if(t>0&&xn(i,a-1),e=++n&&e.push(null),t>n&&this.right.decomposeLeft(t-n,e)}},{key:"decomposeRight",value:function(t,e){var n=this.left.length,r=n+this.break;if(t>=r)return this.right.decomposeRight(t-r,e);t2*e.size||e.size>2*t.size?mn.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}},{key:"updateHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this.left,o=this.right,a=e+i.length+this.break,s=null;return r&&r.from<=e+i.length&&r.more?s=i=i.updateHeight(t,e,n,r):i.updateHeight(t,e,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(t,a,n,r):o.updateHeight(t,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),n}(mn);function xn(t,e){var n,r;null==t[e]&&(n=t[e-1])instanceof bn&&(r=t[e+1])instanceof bn&&t.splice(e-1,3,new bn(n.length+1+r.length))}var Sn=function(){function t(e,n){D(this,t),this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}return P(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(t,e){if(this.lineStart>-1){var n=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof kn?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new kn(n-this.pos,-1)),this.writtenTo=n,e>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(t,e,n){if(t=5)&&this.addLineDeco(r,i)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)){var t=this.oracle.doc.lineAt(this.pos),e=t.from,n=t.to;this.lineStart=e,this.lineEnd=n,this.writtenToe&&this.nodes.push(new kn(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(t,e){var n=new bn(e-t);return this.oracle.doc.lineAt(t).to==e&&(n.flags|=4),n}},{key:"ensureLine",value:function(){this.enterLine();var t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof kn)return t;var e=new kn(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(t){this.enterLine(),t.type!=Ot.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=Ot.WidgetBefore&&(this.covering=t)}},{key:"addLineDeco",value:function(t,e){var n=this.ensureLine();n.length+=e,n.collapsed+=e,n.widgetHeight=Math.max(n.widgetHeight,t),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(t){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof kn||this.isCovered?(this.writtenTo=e&&i<=n}))){var o=t.lineAt(i,0),a=o.from,s=o.to;e.push(new Dn(a,s))}},i=0;i<=1;i++)r(i);this.viewports=e.sort((function(t,e){return t.from-e.from})),this.scaler=this.heightMap.height<=7e6?Ln:new Bn(this.heightOracle.doc,this.heightMap,this.viewports)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state;this.state=t.state;var i=this.state.facet(re),o=t.changedRanges,a=oe.extendWithRanges(o,An(t.startState.facet(re),i,t?t.changes:r.as.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(i,n.doc,this.heightOracle.setDoc(this.state.doc),a),this.heightMap.height!=s&&(t.flags|=2);var u=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,e)),u.eq(this.viewport)||(this.viewport=u,t.flags|=4),this.updateForViewport(),(this.lineGaps.length||this.viewport.to-this.viewport.from>15e3)&&(t.flags|=this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes)))),this.computeVisibleRanges(),e&&(this.scrollTo=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(t,e){var n=t.dom,r="",i=ve.LTR;if(!e){var o=window.getComputedStyle(n);r=o.whiteSpace,i="rtl"==o.direction?ve.RTL:ve.LTR,this.paddingTop=parseInt(o.paddingTop)||0,this.paddingBottom=parseInt(o.paddingBottom)||0}var a=this.printing?{top:-1e8,bottom:1e8,left:-1e8,right:1e8}:function(t,e){for(var n=t.getBoundingClientRect(),r=Math.max(0,n.left),i=Math.min(innerWidth,n.right),o=Math.max(0,n.top),a=Math.min(innerHeight,n.bottom),s=t.parentNode;s;)if(1==s.nodeType){var u=window.getComputedStyle(s);if((s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth)&&"visible"!=u.overflow){var l=s.getBoundingClientRect();r=Math.max(r,l.left),i=Math.min(i,l.right),o=Math.max(o,l.top),a=Math.min(a,l.bottom)}s="absolute"==u.position||"fixed"==u.position?s.offsetParent:s.parentNode}else{if(11!=s.nodeType)break;s=s.host}return{left:r-n.left,right:i-n.left,top:o-(n.top+e),bottom:a-(n.top+e)}}(n,this.paddingTop),s=a.top-this.pixelViewport.top,u=a.bottom-this.pixelViewport.bottom;if(this.pixelViewport=a,this.inView=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left,!this.inView)return 0;var l=t.measureVisibleLineHeights(),h=!1,c=0,f=0,d=this.heightOracle;if(!e){var v=t.dom.clientWidth;if(d.mustRefresh(l,r,i)||d.lineWrapping&&Math.abs(v-this.contentWidth)>d.charWidth){var p=t.measureTextSize(),g=p.lineHeight,m=p.charWidth;(h=d.refresh(r,i,g,m,v/m,l))&&(t.minWidth=0,f|=16)}this.contentWidth!=v&&(this.contentWidth=v,f|=16),s>0&&u>0?c=Math.max(s,u):s<0&&u<0&&(c=Math.min(s,u))}if(d.heightChanged=!1,this.heightMap=this.heightMap.updateHeight(d,0,h,new vn(this.viewport.from,l)),d.heightChanged&&(f|=2),!this.viewportIsAppropriate(this.viewport,c)||this.scrollTo&&(this.scrollTo.headthis.viewport.to)){var y=this.getViewport(c,this.scrollTo);y.from==this.viewport.from&&y.to==this.viewport.to||(this.viewport=y,f|=4)}return this.updateForViewport(),(this.lineGaps.length||this.viewport.to-this.viewport.from>15e3)&&(f|=this.updateLineGaps(this.ensureLineGaps(h?[]:this.lineGaps))),this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.enforceCursorAssoc()),f}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top,0)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom,0)}},{key:"getViewport",value:function(t,e){var n=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),r=this.heightMap,i=this.state.doc,o=this.visibleTop,a=this.visibleBottom,s=new Dn(r.lineAt(o-1e3*n,gn.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),gn.ByHeight,i,0,0).to);if(e)if(e.heads.to){var l=r.lineAt(e.head,gn.ByPos,i,0,0).bottom;s=new Dn(r.lineAt(l-(a-o)-500,gn.ByHeight,i,0,0).from,r.lineAt(l+500,gn.ByHeight,i,0,0).to)}return s}},{key:"mapViewport",value:function(t,e){var n=e.mapPos(t.from,-1),r=e.mapPos(t.to,1);return new Dn(this.heightMap.lineAt(n,gn.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(r,gn.ByPos,this.state.doc,0,0).to)}},{key:"viewportIsAppropriate",value:function(t){var e=t.from,n=t.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.heightMap.lineAt(e,gn.ByPos,this.state.doc,0,0),o=i.top,a=this.heightMap.lineAt(n,gn.ByPos,this.state.doc,0,0),s=a.bottom,u=this.visibleTop,l=this.visibleBottom;return(0==e||o<=u-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||s>=l+Math.max(10,Math.min(r,250)))&&o>u-2e3&&si&&(r.push({from:i,to:t}),o+=t-i),i=e}},20),i=r.from&&(o=l.from),l.from<=r.to&&l.to>=s&&(s=l.to);var h=o-1e4,c=s+1e4;h>r.from+5e3&&n.push(Rn(t,(function(t){return t.from==r.from&&t.to>h-5e3&&t.toc-5e3&&t.from=1)return r[r.length-1].to;for(var i=Math.floor(n*e),o=0;;o++){var a=r[o],s=a.from,u=a.to-s;if(i<=u)return s+i;i-=u}}function Pn(t,e){var n,r=0,i=M(t.ranges);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.from,s=o.to;if(e<=s){r+=e-a;break}r+=s-a}}catch(u){i.e(u)}finally{i.f()}return r/t.total}function Rn(t,e){var n,r=M(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e(i))return i}}catch(o){r.e(o)}finally{r.f()}}var Ln={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},Bn=function(){function t(e,n,r){D(this,t);var i=0,o=0,a=0;this.viewports=r.map((function(t){var r=t.from,o=t.to,a=n.lineAt(r,gn.ByPos,e,0,0).top,s=n.lineAt(o,gn.ByPos,e,0,0).bottom;return i+=s-a,{from:r,to:o,top:a,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-i)/(n.height-i);var s,u=M(this.viewports);try{for(u.s();!(s=u.n()).done;){var l=s.value;l.domTop=a+(l.top-o)*this.scale,a=l.domBottom=l.domTop+(l.bottom-l.top),o=l.bottom}}catch(h){u.e(h)}finally{u.f()}}return P(t,[{key:"toDOM",value:function(t,e){t-=e;for(var n=0,r=0,i=0;;n++){var o=n-1}}),Vn=o.V.newName(),_n=o.V.newName(),Wn=o.V.newName(),zn={"&light":"."+_n,"&dark":"."+Wn};function Hn(t,e,n){return new o.V(e,{finish:function(e){return/&/.test(e)?e.replace(/&\w*/,(function(e){if("&"==e)return t;if(!n||!n[e])throw new RangeError("Unsupported selector: ".concat(e));return n[e]})):t+" "+e}})}var qn=Hn("."+Vn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none"},".cm-lineWrapping":{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},".cm-cursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none",display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-placeholder":{color:"#888",display:"inline-block"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"3px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},zn),Fn={childList:!0,characterData:!0,subtree:!0,characterDataOldValue:!0},$n=ct.ie&&ct.ie_version<=11,Un=function(){function t(e,n,r){var i=this;D(this,t),this.view=e,this.onChange=n,this.onScrollChanged=r,this.active=!1,this.ignoreSelection=new F,this.delayedFlush=-1,this.queue=[],this.lastFlush=0,this.scrollTargets=[],this.intersection=null,this.intersecting=!1,this._selectionRange=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((function(t){var n,r=M(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;i.queue.push(o)}}catch(a){r.e(a)}finally{r.f()}i._selectionRange=null,(ct.ie&&ct.ie_version<=11||ct.ios&&e.composing)&&t.some((function(t){return"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length}))?i.flushSoon():i.flush()})),$n&&(this.onCharData=function(t){i.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),i.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.start(),this.onScroll=this.onScroll.bind(this),window.addEventListener("scroll",this.onScroll),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((function(t){i.parentCheck<0&&(i.parentCheck=setTimeout(i.listenForScroll.bind(i),1e3)),t[t.length-1].intersectionRatio>0!=i.intersecting&&(i.intersecting=!i.intersecting,i.intersecting!=i.view.inView&&i.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom)),this.listenForScroll()}return P(t,[{key:"onScroll",value:function(t){this.intersecting&&this.flush(),this.onScrollChanged(t)}},{key:"onSelectionChange",value:function(t){this.lastFlush=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1,this.flush())}},{key:"flush",value:function(){var t=this;if(!(this.delayedFlush>=0)){this.lastFlush=Date.now();var e,n=this.queue,r=M(this.observer.takeRecords());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i)}}catch(p){r.e(p)}finally{r.f()}n.length&&(this.queue=[]);var o=this.selectionRange,a=!this.ignoreSelection.eq(o)&&B(this.dom,o);if(0!=n.length||a){var s,u=-1,l=-1,h=!1,c=M(n);try{for(c.s();!(s=c.n()).done;){var f=s.value,d=this.readMutation(f);d&&(d.typeOver&&(h=!0),-1==u?(u=d.from,l=d.to):(u=Math.min(d.from,u),l=Math.max(d.to,l)))}}catch(p){c.e(p)}finally{c.f()}var v=this.view.state;(u>-1||a)&&this.onChange(u,l,h),this.view.state==v&&(this.view.docView.dirty&&(this.ignore((function(){return t.view.docView.sync()})),this.view.docView.dirty=0),this.view.docView.updateSelection()),this.clearSelection()}}}},{key:"readMutation",value:function(t){var e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty(),"childList"==t.type){var n=Gn(e,t.previousSibling||t.target.previousSibling,-1),r=Gn(e,t.nextSibling||t.target.nextSibling,1);return{from:n?e.posAfter(n):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}}},{key:"destroy",value:function(){this.stop(),this.intersection&&this.intersection.disconnect();var t,e=M(this.scrollTargets);try{for(e.s();!(t=e.n()).done;){t.value.removeEventListener("scroll",this.onScroll)}}catch(n){e.e(n)}finally{e.f()}window.removeEventListener("scroll",this.onScroll),clearTimeout(this.parentCheck)}}]),t}();function Gn(t,e,n){for(;e;){var r=Y.get(e);if(r&&r.parent==t)return r;var i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function Jn(t,e,n,i){var o,a,s,u=t.state.selection.main;if(e>-1&&(s=t.docView.domBoundsAround(e,n,0))){var l=s,h=l.from,c=l.to,f=t.docView.impreciseHead||t.docView.impreciseAnchor?[]:function(t){var e=[];if(t.root.activeElement!=t.contentDOM)return e;var n=t.observer.selectionRange,r=n.anchorNode,i=n.anchorOffset,o=n.focusNode,a=n.focusOffset;r&&(e.push(new Xn(r,i)),o==r&&a==i||e.push(new Xn(o,a)));return e}(t),d=new Kn(f,t);d.readRange(s.startDOM,s.endDOM),a=function(t,e){if(0==t.length)return null;var n=t[0].pos,i=2==t.length?t[1].pos:n;return n>-1&&i>-1?r.jT.single(n+e,i+e):null}(f,h);var v=u.from,p=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||ct.android&&d.text.length0&&s>0&&t.charCodeAt(a-1)==e.charCodeAt(s-1);)a--,s--;if("end"==r){n-=a+Math.max(0,o-Math.min(a,s))-o}if(a=a?o-n:0)+(s-a),a=o}else if(s=s?o-n:0)+(a-s),s=o}return{from:o,toA:a,toB:s}}(t.state.sliceDoc(h,c),d.text,v-h,p);g&&(o={from:h+g.from,to:h+g.toA,insert:t.state.toText(d.text.slice(g.from,g.toB))})}else if(t.hasFocus||!t.state.facet(Gt)){var m=t.observer.selectionRange,y=t.docView,k=y.impreciseHead,b=y.impreciseAnchor,w=k&&k.node==m.focusNode&&k.offset==m.focusOffset||!L(t.contentDOM,m.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(m.focusNode,m.focusOffset),x=b&&b.node==m.anchorNode&&b.offset==m.anchorOffset||!L(t.contentDOM,m.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(m.anchorNode,m.anchorOffset);w==u.head&&x==u.anchor||(a=r.jT.single(x,w))}if(o||a)if(!o&&i&&!u.empty&&a&&a.main.empty?o={from:u.from,to:u.to,insert:t.state.doc.slice(u.from,u.to)}:o&&o.from>=u.from&&o.to<=u.to&&(o.from!=u.from||o.to!=u.to)&&u.to-u.from-(o.to-o.from)<=4&&(o={from:u.from,to:u.to,insert:t.state.doc.slice(u.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,u.to))}),o){var S=t.state;if(ct.android&&(o.from==u.from&&o.to==u.to&&1==o.insert.length&&2==o.insert.lines&&Qn(t,"Enter",13)||o.from==u.from-1&&o.to==u.to&&0==o.insert.length&&Qn(t,"Backspace",8)||o.from==u.from&&o.to==u.to+1&&0==o.insert.length&&Qn(t,"Delete",46))||ct.ios&&(t.inputState.lastIOSEnter>Date.now()-225&&o.insert.lines>1&&Qn(t,"Enter",13)||t.inputState.lastIOSBackspace>Date.now()-225&&!o.insert.length&&Qn(t,"Backspace",8)))return;var A,C=o.insert.toString();if(t.state.facet($t).some((function(e){return e(t,o.from,o.to,C)})))return;if(t.inputState.composing>=0&&t.inputState.composing++,o.from>=u.from&&o.to<=u.to&&o.to-o.from>=(u.to-u.from)/3&&(!a||a.main.empty&&a.main.from==o.from+o.insert.length)){var M=u.fromo.to?S.sliceDoc(o.to,u.to):"";A=S.replaceSelection(t.state.toText(M+o.insert.sliceString(0,void 0,t.state.lineBreak)+O))}else{var T=S.changes(o);A={changes:T,selection:a&&!S.selection.main.eq(a.main)&&a.main.to<=T.newLength?S.selection.replaceRange(a.main):void 0}}t.dispatch(A,{scrollIntoView:!0,annotations:r.YW.userEvent.of("input")})}else if(a&&!a.main.eq(u)){var D,E=!1;t.inputState.lastSelectionTime>Date.now()-50&&("keyboardselection"==t.inputState.lastSelectionOrigin?E=!0:D=r.YW.userEvent.of(t.inputState.lastSelectionOrigin)),t.dispatch({selection:a,scrollIntoView:E,annotations:D})}}var Kn=function(){function t(e,n){D(this,t),this.points=e,this.view=n,this.text="",this.lineBreak=n.state.lineBreak}return P(t,[{key:"readRange",value:function(t,e){if(t){for(var n=t.parentNode,r=t;;){this.findPointBefore(n,r),this.readNode(r);var i=r.nextSibling;if(i==e)break;var o=Y.get(r),a=Y.get(i);((o?o.breakAfter:Yn(r))||(a?a.breakAfter:Yn(i))&&("BR"!=r.nodeName||r.cmIgnore))&&(this.text+=this.lineBreak),r=i}this.findPointBefore(n,e)}}},{key:"readNode",value:function(t){if(!t.cmIgnore){var e,n=Y.get(t),r=n&&n.overrideDOMText;null!=r?e=r.sliceString(0,void 0,this.lineBreak):3==t.nodeType?e=t.nodeValue:"BR"==t.nodeName?e=t.nextSibling?this.lineBreak:"":1==t.nodeType&&this.readRange(t.firstChild,null),null!=e&&(this.findPointIn(t,e.length),this.text+=e,ct.chrome&&13==this.view.inputState.lastKeyCode&&!t.nextSibling&&/\n\n$/.test(this.text)&&(this.text=this.text.slice(0,-1)))}}},{key:"findPointBefore",value:function(t,e){var n,r=M(this.points);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}}catch(o){r.e(o)}finally{r.f()}}},{key:"findPointIn",value:function(t,e){var n,r=M(this.points);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e))}}catch(o){r.e(o)}finally{r.f()}}}]),t}();function Yn(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Xn=function t(e,n){D(this,t),this.node=e,this.offset=n,this.pos=-1};function Qn(t,e,n){var r={key:e,code:e,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,t.contentDOM.dispatchEvent(i);var o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.contentDOM.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}var Zn=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};D(this,t),this.plugins=[],this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=n.dispatch||function(t){return e.update([t])},this.dispatch=this.dispatch.bind(this),this.root=n.root||document,this.viewState=new Tn(n.state||r.yy.create()),this.plugins=this.state.facet(Xt).map((function(t){return new te(t).update(e)})),this.observer=new Un(this,(function(t,n,r){Jn(e,t,n,r)}),(function(t){e.inputState.runScrollHandlers(e,t),e.observer.intersecting&&e.measure()})),this.inputState=new Ue(this),this.docView=new se(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,rr(),this.requestMeasure(),n.parent&&n.parent.appendChild(this.dom)}return P(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"dispatch",value:function(){var t;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof r.YW?arguments.length<=0?void 0:arguments[0]:(t=this.state).update.apply(t,arguments))}},{key:"update",value:function(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var e,n,i=!1,o=this.state,a=M(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=s.state}}catch(c){a.e(c)}finally{a.f()}if(o.facet(r.yy.phrases)!=this.state.facet(r.yy.phrases))return this.setState(o);e=new ae(this,o,t);try{this.updateState=2;var u=t.some((function(t){return t.scrollIntoView}))?o.selection.main:null;this.viewState.update(e,u),this.bidiCache=ar.update(this.bidiCache,e.changes),e.empty||this.updatePlugins(e),i=this.docView.update(e),this.state.facet(ie)!=this.styleModules&&this.mountStyles(),this.updateAttrs(),this.showAnnouncements(t)}finally{this.updateState=0}if((i||scrollTo||this.viewState.mustEnforceCursorAssoc)&&this.requestMeasure(),!e.empty){var l,h=M(this.state.facet(Ft));try{for(h.s();!(l=h.n()).done;){(0,l.value)(e)}}catch(c){h.e(c)}finally{h.f()}}}},{key:"setState",value:function(t){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");this.updateState=2;try{var n,r=M(this.plugins);try{for(r.s();!(n=r.n()).done;){n.value.destroy(this)}}catch(i){r.e(i)}finally{r.f()}this.viewState=new Tn(t),this.plugins=t.facet(Xt).map((function(t){return new te(t).update(e)})),this.docView=new se(this),this.inputState.ensureHandlers(this),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}this.requestMeasure()}},{key:"updatePlugins",value:function(t){var e=t.startState.facet(Xt),n=t.state.facet(Xt);if(e!=n){var r,i=[],o=M(n);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=e.indexOf(a);if(s<0)i.push(new te(a));else{var u=this.plugins[s];u.mustUpdate=t,i.push(u)}}}catch(p){o.e(p)}finally{o.f()}var l,h=M(this.plugins);try{for(h.s();!(l=h.n()).done;){var c=l.value;c.mustUpdate!=t&&c.destroy(this)}}catch(p){h.e(p)}finally{h.f()}this.plugins=i,this.inputState.ensureHandlers(this)}else{var f,d=M(this.plugins);try{for(d.s();!(f=d.n()).done;){f.value.mustUpdate=t}}catch(p){d.e(p)}finally{d.f()}}for(var v=0;v-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=-1;var e=null;try{for(var n=0;;n++){this.updateState=1;var r=this.viewState.measure(this.docView,n>0),i=this.measureRequests;if(!r&&!i.length&&null==this.viewState.scrollTo)break;if(this.measureRequests=[],n>5){console.warn("Viewport failed to stabilize");break}var o=i.map((function(e){try{return e.read(t)}catch(n){return Ut(t.state,n),or}})),a=new ae(this,this.state);a.flags|=r,e?e.flags|=r:e=a,this.updateState=2,a.empty||this.updatePlugins(a),this.updateAttrs(),r&&this.docView.update(a);for(var s=0;s-1&&this.measure()}},{key:"requestMeasure",value:function(t){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame((function(){return e.measure()}))),t){if(null!=t.key)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return this.viewState.lineAt(t,e)}},{key:"contentHeight",get:function(){return this.viewState.contentHeight}},{key:"moveByChar",value:function(t,e,n){return $e(this,t,e,n)}},{key:"moveByGroup",value:function(t,e){var n=this;return $e(this,t,e,(function(e){return function(t,e,n){var i=t.state.charCategorizer(e),o=i(n);return function(t){var e=i(t);return o==r.D0.Space&&(o=e),o==e}}(n,t.head,e)}))}},{key:"moveToLineBoundary",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Fe(this,t,e,n)}},{key:"moveVertically",value:function(t,e,n){return function(t,e,n,o){var a,s=e.head,u=n?1:-1;if(s==(n?t.state.doc.length:0))return r.jT.cursor(s);var l=t.coordsAtPos(s);if(l)for(var h=t.dom.getBoundingClientRect(),c=null!==(a=e.goalColumn)&&void 0!==a?a:l.left-h.left,f=h.left+c,d=null!=o?o:t.defaultLineHeight>>1,v=u<0?l.top:l.bottom,p=0;p<50;p+=10){var g=He(t,{x:f,y:v+(d+p)*u},u);if(null==g)break;if(g!=s)return r.jT.cursor(g,void 0,void 0,c)}var m=t.state.doc,y=m.lineAt(s),k=t.state.tabSize,b=e.goalColumn,w=0;if(null==b){for(var x=m.iterRange(y.from,s);!x.next().done;)w=(0,i.IS)(x.value,w,k);b=w*t.defaultCharacterWidth}else w=Math.round(b/t.defaultCharacterWidth);if(u<0&&0==y.from)return r.jT.cursor(0);if(u>0&&y.to==m.length)return r.jT.cursor(y.to);for(var S=m.line(y.number+u),A=S.from,C=0,M=m.iterRange(S.from,S.to);C>=w&&!M.next().done;){var O=(0,i.Gz)(M.value,C,w,k),T=O.offset;C=w-O.leftOver,A+=T}return r.jT.cursor(A,void 0,void 0,b)}(this,t,e,n)}},{key:"scrollPosIntoView",value:function(t){this.viewState.scrollTo=r.jT.cursor(t),this.requestMeasure()}},{key:"domAtPos",value:function(t){return this.docView.domAtPos(t)}},{key:"posAtDOM",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(t,e)}},{key:"posAtCoords",value:function(t){return this.readMeasured(),He(this,t)}},{key:"coordsAtPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var n=this.docView.coordsAt(t,e);if(!n||n.left==n.right)return n;var r=this.state.doc.lineAt(t),i=this.bidiSpans(r),o=i[De.find(i,t-r.from,-1,e)];return z(n,o.dir==ve.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.heightOracle.direction}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(t){if(t.length>tr)return Re(t.length);var e,n=this.textDirection,r=M(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i.from==t.from&&i.dir==n)return i.order}}catch(a){r.e(a)}finally{r.f()}var o=Pe(t.text,this.textDirection);return this.bidiCache.push(new ar(t.from,t.to,n,o)),o}},{key:"hasFocus",get:function(){var t;return(document.hasFocus()||ct.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var t=this;this.observer.ignore((function(){U(t.contentDOM),t.docView.updateSelection()}))}},{key:"destroy",value:function(){var t,e=M(this.plugins);try{for(e.s();!(t=e.n()).done;){t.value.destroy(this)}}catch(n){e.e(n)}finally{e.f()}this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled)}}],[{key:"domEventHandlers",value:function(t){return Qt.define((function(){return{}}),{eventHandlers:t})}},{key:"theme",value:function(t,e){var n=o.V.newName(),r=[In.of(n),ie.of(Hn(".".concat(n),t))];return e&&e.dark&&r.push(jn.of(!0)),r}},{key:"baseTheme",value:function(t){return r.Wl.fallback(ie.of(Hn("."+Vn,t,zn)))}}]),t}();Zn.styleModule=ie,Zn.inputHandler=$t,Zn.exceptionSink=qt,Zn.updateListener=Ft,Zn.editable=Gt,Zn.mouseSelectionStyle=Ht,Zn.dragMovesSelection=zt,Zn.clickAddsSelectionRange=Wt,Zn.decorations=re,Zn.contentAttributes=ne,Zn.editorAttributes=ee,Zn.lineWrapping=Zn.contentAttributes.of({class:"cm-lineWrapping"}),Zn.announce=r.Py.define();var tr=4096;function er(t,e){return null==t?e.getBoundingClientRect().top:t}var nr=-1;function rr(){window.addEventListener("resize",(function(){-1==nr&&(nr=setTimeout(ir,50))}))}function ir(){nr=-1;for(var t=document.querySelectorAll(".cm-content"),e=0;e1&&void 0!==arguments[1]?arguments[1]:sr,r=Object.create(null),i=Object.create(null),o=function(t,e){var n=i[t];if(null==n)i[t]=e;else if(n!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},a=function(t,e,i,a){for(var s=r[t]||(r[t]=Object.create(null)),u=e.split(/ (?!$)/).map((function(t){return ur(t,n)})),l=function(e){var n=u.slice(0,e).join(" ");o(n,!0),s[n]||(s[n]={preventDefault:!0,commands:[function(e){var r=pr={view:e,prefix:n,scope:t};return setTimeout((function(){pr==r&&(pr=null)}),gr),!0}]})},h=1;h0&&void 0!==arguments[0]?arguments[0]:{};return[kr.of(t),xr,Ar]}var wr=function(){function t(e,n,r,i,o){D(this,t),this.left=e,this.top=n,this.width=r,this.height=i,this.className=o}return P(t,[{key:"draw",value:function(){var t=document.createElement("div");return t.className=this.className,this.adjust(t),t}},{key:"adjust",value:function(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width>=0&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}},{key:"eq",value:function(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}}]),t}(),xr=Qt.fromClass(function(){function t(e){D(this,t),this.view=e,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=e.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className="cm-selectionLayer",this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}return P(t,[{key:"setBlinkRate",value:function(){this.cursorLayer.style.animationDuration=this.view.state.facet(kr).cursorBlinkRate+"ms"}},{key:"update",value:function(t){var e=t.startState.facet(kr)!=t.state.facet(kr);(e||t.selectionSet||t.geometryChanged||t.viewportChanged)&&this.view.requestMeasure(this.measureReq),t.transactions.some((function(t){return t.scrollIntoView}))&&(this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),e&&this.setBlinkRate()}},{key:"readPos",value:function(){var t,e=this,n=this.view.state,r=n.facet(kr),i=n.selection.ranges.map((function(t){return t.empty?[]:function(t,e){if(e.to<=t.viewport.from||e.from>=t.viewport.to)return[];var n=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),i=t.textDirection==ve.LTR,o=t.contentDOM,a=o.getBoundingClientRect(),s=Cr(t),u=window.getComputedStyle(o.firstChild),l=a.left+parseInt(u.paddingLeft),h=a.right-parseInt(u.paddingRight),c=t.visualLineAt(n),f=t.visualLineAt(r);t.lineWrapping&&(c=Mr(t,n,c),f=Mr(t,r,f));if(c.from==f.from)return m(y(e.from,e.to,c));var d=y(e.from,null,c),v=y(null,e.to,f),p=[];return c.tof&&p.from=m)break;S>g&&u(Math.max(x,g),null==e&&x<=f,Math.min(S,m),null==n&&S>=d,w.dir)}}catch(A){b.e(A)}finally{b.f()}if((g=k.to+1)>=m)break}}}catch(A){v.e(A)}finally{v.f()}return 0==s.length&&u(f,null==e,d,null==n,t.textDirection),{top:o,bottom:a,horizontal:s}}}(e.view,t)})).reduce((function(t,e){return t.concat(e)})),o=[],a=M(n.selection.ranges);try{for(a.s();!(t=a.n()).done;){var s=t.value,u=s==n.selection.main;if(s.empty?!u||yr:r.drawRangeCursor){var l=Or(this.view,s,u);l&&o.push(l)}}}catch(h){a.e(h)}finally{a.f()}return{rangePieces:i,cursors:o}}},{key:"drawSel",value:function(t){var e=this,n=t.rangePieces,r=t.cursors;if(n.length!=this.rangePieces.length||n.some((function(t,n){return!t.eq(e.rangePieces[n])}))){this.selectionLayer.textContent="";var i,o=M(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.selectionLayer.appendChild(a.draw())}}catch(c){o.e(c)}finally{o.f()}this.rangePieces=n}if(r.length!=this.cursors.length||r.some((function(t,n){return!t.eq(e.cursors[n])}))){var s=this.cursorLayer.children;if(s.length!==r.length){this.cursorLayer.textContent="";var u,l=M(r);try{for(l.s();!(u=l.n()).done;){var h=u.value;this.cursorLayer.appendChild(h.draw())}}catch(c){l.e(c)}finally{l.f()}}else r.forEach((function(t,e){return t.adjust(s[e])}));this.cursors=r}}},{key:"destroy",value:function(){this.selectionLayer.remove(),this.cursorLayer.remove()}}]),t}()),Sr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};yr&&(Sr[".cm-line"].caretColor="transparent !important");var Ar=r.Wl.override(Zn.theme(Sr));function Cr(t){var e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==ve.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function Mr(t,e,n){var i=r.jT.cursor(e);return{from:Math.max(n.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,t.moveToLineBoundary(i,!0,!0).from)}}function Or(t,e,n){var r=t.coordsAtPos(e.head,e.assoc||1);if(!r)return null;var i=Cr(t);return new wr(r.left-i.left,r.top-i.top,-1,r.bottom-r.top,n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary")}function Tr(){return Er}var Dr=Tt.line({attributes:{class:"cm-activeLine"}}),Er=Qt.fromClass(function(){function t(e){D(this,t),this.decorations=this.getDeco(e)}return P(t,[{key:"update",value:function(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var e,n=-1,r=[],i=M(t.state.selection.ranges);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(!o.empty)return Tt.none;var a=t.visualLineAt(o.head);a.from>n&&(r.push(Dr.range(a.from)),n=a.from)}}catch(s){i.e(s)}finally{i.f()}return Tt.set(r)}}]),t}(),{decorations:function(t){return t.decorations}})},26856:function(t,e,n){"use strict";function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},n=e.deserialize;o(this,t),this.id=l++,this.deserialize=n||function(){throw new Error("This node type doesn't define a deserialize function")}}return s(t,[{key:"set",value:function(t,e){return t[this.id]=e,t}},{key:"add",value:function(t){var e=this;return"function"!=typeof t&&(t=d.match(t)),function(n){var r=t(n);return void 0===r?null:[e,r]}}}],[{key:"string",value:function(){return new t({deserialize:function(t){return t}})}},{key:"number",value:function(){return new t({deserialize:Number})}},{key:"flag",value:function(){return new t({deserialize:function(){return!0}})}}]),t}();c.closedBy=new c({deserialize:function(t){return t.split(" ")}}),c.openedBy=new c({deserialize:function(t){return t.split(" ")}}),c.group=new c({deserialize:function(t){return t.split(" ")}});var f=Object.create(null),d=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;o(this,t),this.name=e,this.props=n,this.id=r,this.flags=i}return s(t,[{key:"prop",value:function(t){return this.props[t.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(t){if("string"==typeof t){if(this.name==t)return!0;var e=this.prop(c.group);return!!e&&e.indexOf(t)>-1}return this.id==t}}],[{key:"define",value:function(e){var n=e.props&&e.props.length?Object.create(null):f,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),o=new t(e.name||"",n,e.id,i);if(e.props){var a,s=r(e.props);try{for(s.s();!(a=s.n()).done;){var u=a.value;Array.isArray(u)||(u=u(o)),u&&u[0].set(n,u[1])}}catch(l){s.e(l)}finally{s.f()}}return o}},{key:"match",value:function(t){var e=Object.create(null);for(var n in t){var i,o=r(n.split(" "));try{for(o.s();!(i=o.n()).done;){var a=i.value;e[a]=t[n]}}catch(s){o.e(s)}finally{o.f()}}return function(t){for(var n=t.prop(c.group),r=-1;r<(n?n.length:0);r++){var i=e[r<0?t.name:n[r]];if(i)return i}}}}]),t}();d.none=new d("",Object.create(null),0,8);var v=function(){function t(e){o(this,t),this.types=e;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=null!=t&&h.get(this)||this.topNode,r=new x(n);return null!=t&&(r.moveTo(t,e),h.set(this,r._tree)),r}},{key:"fullCursor",value:function(){return new x(this.topNode,!0)}},{key:"topNode",get:function(){return new y(this,0,0,null)}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.cursor(t,e).node}},{key:"iterate",value:function(t){for(var e=t.enter,n=t.leave,r=t.from,i=void 0===r?0:r,o=t.to,a=void 0===o?this.length:o,s=this.cursor();;){var u=!1;if(s.from<=a&&s.to>=i&&(s.type.isAnonymous||!1!==e(s.type,s.from,s.to))){if(s.firstChild())continue;s.type.isAnonymous||(u=!0)}for(;u&&n&&n(s.type,s.from,s.to),u=s.type.isAnonymous,!s.nextSibling();){if(!s.parent())return;u=!0}}}},{key:"balance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return this.children.length<=C?this:O(this.type,d.none,this.children,this.positions,0,this.children.length,0,t,this.length,0)}}],[{key:"build",value:function(t){return M(t)}}]),t}();function g(t,e){return e&&(t.contextHash=e),t}p.empty=new p(d.none,[],[],0);var m=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.none;o(this,t),this.buffer=e,this.length=n,this.set=r,this.type=i}return s(t,[{key:"toString",value:function(){for(var t=[],e=0;e0){if(u>r&&(o=a),u>r)break}else if(s=r)break}else if(o=a,n>0)break;return o}}]),t}(),y=function(){function t(e,n,r,i){o(this,t),this.node=e,this.from=n,this.index=r,this._parent=i}return s(t,[{key:"type",get:function(){return this.node.type}},{key:"name",get:function(){return this.node.type.name}},{key:"to",get:function(){return this.from+this.node.length}},{key:"nextChild",value:function(e,n,r){for(var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this;;){for(var a=o.node,s=a.children,u=a.positions,l=n>0?s.length:-1;e!=l;e+=n){var h=s[e],c=u[e]+o.from;if(-1e8==r||!(n<0?c>=r:c+h.length<=r))if(h instanceof m){var f=h.findChild(0,h.buffer.length,n,-1e8==r?-1e8:r-c);if(f>-1)return new w(new b(o,h,e,c),null,f)}else if(i||!h.type.isAnonymous||S(h)){var d=new t(h,c,e,o);return i||!d.type.isAnonymous?d:d.nextChild(n<0?h.children.length-1:0,n,r)}}if(i||!o.type.isAnonymous)return null;if(e=o.index+n,!(o=o._parent))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,-1e8)}},{key:"lastChild",get:function(){return this.nextChild(this.node.children.length-1,-1,-1e8)}},{key:"childAfter",value:function(t){return this.nextChild(0,1,t)}},{key:"childBefore",value:function(t){return this.nextChild(this.node.children.length-1,-1,t)}},{key:"nextSignificantParent",value:function(){for(var t=this;t.type.isAnonymous&&t._parent;)t=t._parent;return t}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent?this._parent.nextChild(this.index+1,1,-1):null}},{key:"prevSibling",get:function(){return this._parent?this._parent.nextChild(this.index-1,-1,-1):null}},{key:"cursor",get:function(){return new x(this)}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.cursor.moveTo(t,e).node}},{key:"getChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=k(this,t,e,n);return r.length?r[0]:null}},{key:"getChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return k(this,t,e,n)}},{key:"toString",value:function(){return this.node.toString()}}]),t}();function k(t,e,n,r){var i=t.cursor,o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}var b=function t(e,n,r,i){o(this,t),this.parent=e,this.buffer=n,this.index=r,this.start=i},w=function(){function t(e,n,r){o(this,t),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}return s(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(e,n){var r=this.context.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,-1e8==n?-1e8:n-this.context.start);return i<0?null:new t(this.context,this,i)}},{key:"firstChild",get:function(){return this.child(1,-1e8)}},{key:"lastChild",get:function(){return this.child(-1,-1e8)}},{key:"childAfter",value:function(t){return this.child(1,t)}},{key:"childBefore",value:function(t){return this.child(-1,t)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,-1)}},{key:"nextSibling",get:function(){var e=this.context.buffer,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,n):this.externalSibling(1)}},{key:"prevSibling",get:function(){var e=this.context.buffer,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(n,this.index,-1,-1e8))}},{key:"cursor",get:function(){return new x(this)}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.cursor.moveTo(t,e).node}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=k(this,t,e,n);return r.length?r[0]:null}},{key:"getChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return k(this,t,e,n)}}]),t}(),x=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o(this,t),this.full=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof y)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(var r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}return s(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}},{key:"yieldBuf",value:function(t,e){this.index=t;var n=this.buffer,r=n.start,i=n.buffer;return this.type=e||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}},{key:"yield",value:function(t){return!!t&&(t instanceof y?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enter",value:function(t,e){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree.node.children.length-1:0,t,e,this.full));var n=this.buffer.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],t,-1e8==e?-1e8:e-this.buffer.start);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}},{key:"firstChild",value:function(){return this.enter(1,-1e8)}},{key:"lastChild",value:function(){return this.enter(-1,-1e8)}},{key:"childAfter",value:function(t){return this.enter(1,t)}},{key:"childBefore",value:function(t){return this.enter(-1,t)}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.full?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var t=this.full?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}},{key:"sibling",value:function(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree._parent.nextChild(this._tree.index+t,t,-1e8,this.full));var e=this.buffer.buffer,n=this.stack.length-1;if(t<0){var r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,-1e8))}else{var i=e.buffer[this.index+3];if(i<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,-1e8,this.full))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(t){var e,n,r=this.buffer;if(r){if(t>0){if(this.index1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(var o=t;o;o=o._parent)if(o.index==r){if(r==this.index)return o;e=o,n=i+1;break t}r=this.stack[--i]}for(var a=n;al;)if(n.id!=e){var h=n.size,c=n.pos-h;if(h<0||c=f?4:0,p=n.start;for(n.next();n.pos>c;){if(n.size<0)break t;n.id>=f&&(d+=4),n.next()}i=p,r+=h,o+=d}else u.size=r,u.start=i,u.skip=o,o+=4,r+=4,n.next();(e<0||r==t)&&(u.size=r,u.start=i,u.skip=o);return u.size>4?u:void 0}(v.pos-e,o))){for(var T=new Uint16Array(A.size-A.skip),D=v.pos-A.size,E=T.length;v.pos>D;)E=w(A.start,T,E,o);S=new m(T,l-A.start,r,o<0?d.none:y[o]),x=A.start-t}else{var P=v.pos-c;v.next();for(var R=[],L=[],B=a>=f?a:-1;v.pos>P;)v.id==B?v.next():b(u,P,R,L,B);R.reverse(),L.reverse(),S=B>-1&&R.length>C?O(M,M,R,L,0,R.length,0,s,l-u,k):g(new p(M,R,L,l-u),k)}n.push(S),i.push(x)}function w(t,e,n,r){var i=v.id,o=v.start,a=v.end,s=v.size;if(v.next(),i==r)return n;var u=n;if(s>4)for(var l=v.pos-(s-4);v.pos>l;)n=w(t,e,n,r);return i0;)b(t.start||0,0,x,S,-1);var M=null!==(e=t.length)&&void 0!==e?e:x.length?S[0]+x[0].length:0;return new p(y[o],x.reverse(),S.reverse(),M)}function O(t,e,n,r,i,o,a,s,u,l){var h=[],c=[];if(u<=s)for(var f=i;fv)break}if(m==y+1){var b=n[y];if(b instanceof p&&b.type==e&&b.length>v<<1){for(var w=0;w0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"applyChanges",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!n.length)return e;for(var i=[],o=1,a=e.length?e[0]:null,s=0,u=0,l=0;;){var h=s=r)for(;a&&a.from=f.from||c<=f.to||l){var d=Math.max(f.from,u)-l,v=Math.min(f.to,c)-l;f=d>=v?null:new t(d,v,f.tree,f.offset+l,(s>0?1:0)|(h?2:0))}if(f&&i.push(f),a.to>c)break;a=o1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=[new t(0,e.length,e,0,o?2:0)],s=r(i);try{for(s.s();!(n=s.n()).done;){var u=n.value;u.to>e.length&&a.push(u)}}catch(l){s.e(l)}finally{s.f()}return a}}]),t}()},62038:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,o),e)for(var s=0;st.length)&&(n=t.length);for(var e=0,r=new Array(n);e1&&void 0!==arguments[1]?arguments[1]:self;n.addEventListener("message",(function e(i){if(i&&i.data){var u,f=Object.assign({path:[]},i.data),l=f.id,s=f.type,p=f.path,y=(i.data.argumentList||[]).map(_);try{var b=p.slice(0,-1).reduce((function(t,n){return t[n]}),t),m=p.reduce((function(t,n){return t[n]}),t);switch(s){case"GET":u=m;break;case"SET":b[p.slice(-1)[0]]=_(i.data.value),u=!0;break;case"APPLY":u=m.apply(b,y);break;case"CONSTRUCT":var h;u=P(a(m,c(y)));break;case"ENDPOINT":var w=new MessageChannel,S=w.port1,E=w.port2;d(t,E),u=j(S,[S]);break;case"RELEASE":u=void 0;break;default:return}}catch(h){u=o({value:h},v,0)}Promise.resolve(u).catch((function(t){return o({value:t},v,0)})).then((function(t){var o=r(A(t),2),a=o[0],i=o[1];n.postMessage(Object.assign(Object.assign({},a),{id:l}),i),"RELEASE"===s&&(n.removeEventListener("message",e),g(n))}))}})),n.start&&n.start()}function g(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function w(t){if(t)throw new Error("Proxy has been released and is not useable")}function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,a=new Proxy(e,{get:function(e,r){if(w(o),r===b)return function(){return k(t,{type:"RELEASE",path:n.map((function(t){return t.toString()}))}).then((function(){g(t),o=!0}))};if("then"===r){if(0===n.length)return{then:function(){return a}};var i=k(t,{type:"GET",path:n.map((function(t){return t.toString()}))}).then(_);return i.then.bind(i)}return S(t,[].concat(c(n),[r]))},set:function(e,a,i){w(o);var u=r(A(i),2),f=u[0],l=u[1];return k(t,{type:"SET",path:[].concat(c(n),[a]).map((function(t){return t.toString()})),value:f},l).then(_)},apply:function(e,a,i){w(o);var u=n[n.length-1];if(u===y)return k(t,{type:"ENDPOINT"}).then(_);if("bind"===u)return S(t,n.slice(0,-1));var c=r(E(i),2),f=c[0],l=c[1];return k(t,{type:"APPLY",path:n.map((function(t){return t.toString()})),argumentList:f},l).then(_)},construct:function(e,a){w(o);var i=r(E(a),2),u=i[0],c=i[1];return k(t,{type:"CONSTRUCT",path:n.map((function(t){return t.toString()})),argumentList:u},c).then(_)}});return a}function E(t){var n,e=t.map(A);return[e.map((function(t){return t[0]})),(n=e.map((function(t){return t[1]})),Array.prototype.concat.apply([],n))]}var O=new WeakMap;function j(t,n){return O.set(t,n),t}function P(t){return Object.assign(t,o({},p,!0))}function A(t){var n,e=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=f(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}(h);try{for(e.s();!(n=e.n()).done;){var o=r(n.value,2),a=o[0],i=o[1];if(i.canHandle(t)){var u=r(i.serialize(t),2);return[{type:"HANDLER",name:a,value:u[0]},u[1]]}}}catch(c){e.e(c)}finally{e.f()}return[{type:"RAW",value:t},O.get(t)||[]]}function _(t){switch(t.type){case"HANDLER":return h.get(t.name).deserialize(t.value);case"RAW":return t.value}}function k(t,n,e){return new Promise((function(r){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");t.addEventListener("message",(function n(e){e.data&&e.data.id&&e.data.id===o&&(t.removeEventListener("message",n),r(e.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),e)}))}},58556:function(t,n,e){"use strict";var r;(r="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?global:self).Proxy||(r.Proxy=e(87082)(),r.Proxy.revocable=r.Proxy.revocable)},87082:function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){var t,e=null;function r(t){return!!t&&("object"===n(t)||"function"==typeof t)}return(t=function(t,n){if(!r(t)||!r(n))throw new TypeError("Cannot create proxy with a non-object as target or handler");var o=function(){};e=function(){t=null,o=function(t){throw new TypeError("Cannot perform '".concat(t,"' on a proxy that has been revoked"))}},setTimeout((function(){e=null}),0);var a=n;for(var i in n={get:null,set:null,apply:null,construct:null},a){if(!(i in n))throw new TypeError("Proxy polyfill does not support trap '".concat(i,"'"));n[i]=a[i]}"function"==typeof a&&(n.apply=a.apply.bind(a));var u=this,c=!1,f=!1;"function"==typeof t?(u=function(){var e=this&&this.constructor===u,r=Array.prototype.slice.call(arguments);if(o(e?"construct":"apply"),e&&n.construct)return n.construct.call(this,t,r);if(!e&&n.apply)return n.apply(t,this,r);if(e){r.unshift(t);var a=t.bind.apply(t,r);return new a}return t.apply(this,r)},c=!0):t instanceof Array&&(u=[],f=!0);var l=n.get?function(t){return o("get"),n.get(this,t,u)}:function(t){return o("get"),this[t]},s=n.set?function(t,e){o("set");n.set(this,t,e,u)}:function(t,n){o("set"),this[t]=n},p=Object.getOwnPropertyNames(t),y={};p.forEach((function(n){if(!c&&!f||!(n in u)){var e={enumerable:!!Object.getOwnPropertyDescriptor(t,n).enumerable,get:l.bind(t,n),set:s.bind(t,n)};Object.defineProperty(u,n,e),y[n]=!0}}));var b=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(u,Object.getPrototypeOf(t)):u.__proto__?u.__proto__=t.__proto__:b=!1,n.get||!b)for(var v in t)y[v]||Object.defineProperty(u,v,{get:l.bind(t,v)});return Object.seal(t),Object.seal(u),u}).revocable=function(n,r){return{proxy:new t(n,r),revoke:e}},t}}}]); +//# sourceMappingURL=chunk.aa4c3f9e4936a956fbc9.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.aa4c3f9e4936a956fbc9.js.gz b/supervisor/api/panel/frontend_es5/chunk.aa4c3f9e4936a956fbc9.js.gz new file mode 100644 index 000000000..f8f889b12 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.aa4c3f9e4936a956fbc9.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.aa4c3f9e4936a956fbc9.js.map b/supervisor/api/panel/frontend_es5/chunk.aa4c3f9e4936a956fbc9.js.map new file mode 100644 index 000000000..dfd0b2289 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.aa4c3f9e4936a956fbc9.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.aa4c3f9e4936a956fbc9.js","sources":["webpack://home-assistant-frontend/chunk.aa4c3f9e4936a956fbc9.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js b/supervisor/api/panel/frontend_es5/chunk.b79f1c3cdf8953baa09a.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js rename to supervisor/api/panel/frontend_es5/chunk.b79f1c3cdf8953baa09a.js index 0afae1adb..2fe6d7060 100644 --- a/supervisor/api/panel/frontend_es5/chunk.8f2ac59a62b89d9272a7.js +++ b/supervisor/api/panel/frontend_es5/chunk.b79f1c3cdf8953baa09a.js @@ -1,3 +1,3 @@ -/*! For license information please see chunk.8f2ac59a62b89d9272a7.js.LICENSE.txt */ +/*! For license information please see chunk.b79f1c3cdf8953baa09a.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[929],{37087:function(e,n,t){"use strict";t(51309),t(65660);var i,r,a,o=t(26110),s=t(98235),l=t(67139),c=t(18149),d=t(50856);(0,l.k)({_template:(0,d.d)(i||(r=['\n \n\n \x3c!-- the mirror sizes the input/textarea so it grows with typing --\x3e\n \x3c!-- use   instead   of to allow this element to be used in XHTML --\x3e\n \n\n \x3c!-- size the input/textarea with a div, because the textarea has intrinsic size in ff --\x3e\n
    \n \n
    \n'],a=['\n \n\n \x3c!-- the mirror sizes the input/textarea so it grows with typing --\x3e\n \x3c!-- use   instead   of to allow this element to be used in XHTML --\x3e\n \n\n \x3c!-- size the input/textarea with a div, because the textarea has intrinsic size in ff --\x3e\n
    \n \n
    \n'],a||(a=r.slice(0)),i=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}})))),is:"iron-autogrow-textarea",behaviors:[s.x,o.a],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(e){this.$.textarea.selectionStart=e},set selectionEnd(e){this.$.textarea.selectionEnd=e},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&(this.$.textarea.style.marginLeft="-3px")},validate:function(){var e=this.$.textarea.validity.valid;return e&&(this.required&&""===this.value?e=!1:this.hasValidator()&&(e=s.x.validate.call(this,this.value))),this.invalid=!e,this.fire("iron-input-validate"),e},_bindValueChanged:function(e){this.value=e},_valueChanged:function(e){var n=this.textarea;n&&(n.value!==e&&(n.value=e||0===e?e:""),this.bindValue=e,this.$.mirror.innerHTML=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},_onInput:function(e){var n=(0,c.vz)(e).path;this.value=n?n[0].value:e.target.value},_constrain:function(e){var n;for(e=e||[""],n=this.maxRows>0&&e.length>this.maxRows?e.slice(0,this.maxRows):e.slice(0);this.rows>0&&n.length")+" "},_valueForMirror:function(){var e=this.textarea;if(e)return this.tokens=e&&e.value?e.value.replace(/&/gm,"&").replace(/"/gm,""").replace(/'/gm,"'").replace(//gm,">").split("\n"):[""],this._constrain(this.tokens)},_updateCached:function(){this.$.mirror.innerHTML=this._constrain(this.tokens)}})},49075:function(e,n,t){"use strict";t.d(n,{S:function(){return o},B:function(){return s}});t(51309);var i=t(51644),r=t(26110),a=t(84938),o={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=e)},_createRipple:function(){var e=a.o._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle"),e}},s=[i.P,r.a,a.o,o]},84938:function(e,n,t){"use strict";t.d(n,{o:function(){return a}});t(51309),t(60748);var i=t(51644),r=t(18149),a={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(e){i.$._downHandler.call(this,e),this.pressed&&this.ensureRipple(e)},ensureRipple:function(e){if(!this.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var n=this._rippleContainer||this.root;if(n&&(0,r.vz)(n).appendChild(this._ripple),e){var t=(0,r.vz)(this._rippleContainer||this),i=(0,r.vz)(e).rootTarget;t.deepContains(i)&&this._ripple.uiDownAction(e)}}},getRipple:function(){return this.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ripple)},_createRipple:function(){return document.createElement("paper-ripple")},_noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}}},76480:function(e,n,t){"use strict";t(51309);var i,r=t(21006),a=t(98235),o={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},_getValidity:function(e){return this.disabled||!this.required||this.checked},_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},_checkedChanged:function(){this.active=this.checked,this.fire("iron-change")},_valueChanged:function(){void 0!==this.value&&null!==this.value||(this.value="on")}},s=[r.V,a.x,o],l=t(49075),c=t(84938),d={_checkedChanged:function(){o._checkedChanged.call(this),this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},_buttonStateChanged:function(){c.o._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.active)}},p=[l.B,s,d],u=t(67139),h=t(50856),m=t(87529);var f,g,b=(0,h.d)(i||(f=['\n\n
    \n
    \n
    \n
    \n
    \n\n
    '],(g=['\n\n
    \n
    \n
    \n
    \n
    \n\n
    '])||(g=f.slice(0)),i=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(g)}}))));b.setAttribute("strip-whitespace",""),(0,u.k)({_template:b,is:"paper-checkbox",behaviors:[p],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){(0,m.T8)(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),n="px",t=e.match(/[A-Za-z]+$/);null!==t&&(n=t[0]);var i=parseFloat(e),r=8/3*i;"px"===n&&(r=Math.floor(r))%2!=i%2&&r++,this.updateStyles({"--paper-checkbox-ink-size":r+n})}}))},_computeCheckboxClass:function(e,n){var t="";return e&&(t+="checked "),n&&(t+="invalid"),t},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,l.S._createRipple.call(this)}})},25782:function(e,n,t){"use strict";t(51309),t(65660),t(70019),t(97968);var i,r,a,o=t(67139),s=t(50856),l=t(33760);(0,o.k)({_template:(0,s.d)(i||(r=['\n \n \n\n
    \n \n
    \n \n'],a||(a=r.slice(0)),i=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}})))),is:"paper-icon-item",behaviors:[l.U]})},1548:function(e,n,t){"use strict";t(65660),t(77956);var i,r,a,o=t(51309),s={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(e){return(this._clampValue(e)-this.min)/(this.max-this.min)},_clampValue:function(e){return Math.min(this.max,Math.max(this.min,this._calcStep(e)))},_calcStep:function(e){if(e=parseFloat(e),!this.step)return e;var n=Math.round((e-this.min)/this.step);return this.step<1?n/(1/this.step)+this.min:n*this.step+this.min},_validateValue:function(){var e=this._clampValue(this.value);return this.value=this.oldValue=isNaN(e)?this.oldValue:e,this.value!==e},_update:function(){this._validateValue(),this._setRatio(100*this._calcRatio(this.value))}},l=t(67139),c=t(50856);(0,l.k)({_template:(0,c.d)(i||(r=['\n \n\n
    \n
    \n
    \n
    \n'],a=['\n \n\n
    \n
    \n
    \n
    \n'],a||(a=r.slice(0)),i=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}})))),is:"paper-progress",behaviors:[s],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(e){this.toggleClass("indeterminate",e,this.$.primaryProgress)},_transformProgress:function(e,n){var t="scaleX("+n/100+")";e.style.transform=e.style.webkitTransform=t},_mainRatioChanged:function(e){this._transformProgress(this.$.primaryProgress,e)},_progressChanged:function(e,n,t,i,r){e=this._clampValue(e),n=this._clampValue(n);var a=100*this._calcRatio(e),o=100*this._calcRatio(n);this._setSecondaryRatio(a),this._transformProgress(this.$.secondaryProgress,a),this._transformProgress(this.$.primaryProgress,o),this.secondaryProgress=e,r?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",n),this.setAttribute("aria-valuemin",t),this.setAttribute("aria-valuemax",i)},_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false")},_hideSecondaryProgress:function(e){return 0===e}});var d,p=t(8621),u=t(21006),h=t(49075),m=t(81668);var f=(0,o.dy)(d||(d=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(['\n \n\n
    \n
    \n \n
    \n\n \n\n
    \n
    \n
    \n
    \n\n \n'],['\n \n\n
    \n
    \n \n
    \n\n \n\n
    \n
    \n
    \n
    \n\n \n'])));f.setAttribute("strip-whitespace",""),(0,l.k)({_template:f,is:"paper-slider",behaviors:[p.G,u.V,h.B,s],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&(0,m.BP)(this.$.sliderBar,"auto")},increment:function(){this.value=this._clampValue(this.value+this.step)},decrement:function(){this.value=this._clampValue(this.value-this.step)},_updateKnob:function(e,n,t,i,r){this.setAttribute("aria-valuemin",n),this.setAttribute("aria-valuemax",t),this.setAttribute("aria-valuenow",e),this._positionKnob(100*this._calcRatio(e))},_valueChanged:function(){this.fire("value-change",{composed:!0})},_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},_expandKnob:function(){this._setExpand(!0)},_resetKnob:function(){this.cancelDebouncer("expandKnob"),this._setExpand(!1)},_positionKnob:function(e){this._setImmediateValue(this._calcStep(this._calcKnobPosition(e))),this._setRatio(100*this._calcRatio(this.immediateValue)),this.$.sliderKnob.style.left=this.ratio+"%",this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},_calcKnobPosition:function(e){return(this.max-this.min)*e/100+this.min},_onTrack:function(e){switch(e.stopPropagation(),e.detail.state){case"start":this._trackStart(e);break;case"track":this._trackX(e);break;case"end":this._trackEnd()}},_trackStart:function(e){this._setTransiting(!1),this._w=this.$.sliderBar.offsetWidth,this._x=this.ratio*this._w/100,this._startx=this._x,this._knobstartx=this._startx,this._minx=-this._startx,this._maxx=this._w-this._startx,this.$.sliderKnob.classList.add("dragging"),this._setDragging(!0)},_trackX:function(e){this.dragging||this._trackStart(e);var n=this._isRTL?-1:1,t=Math.min(this._maxx,Math.max(this._minx,e.detail.dx*n));this._x=this._startx+t;var i=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(i);var r=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(r+"px",0,0,this.$.sliderKnob)},_trackEnd:function(){var e=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging"),this._setDragging(!1),this._resetKnob(),this.value=this.immediateValue,e.transform=e.webkitTransform="",this.fire("change",{composed:!0})},_knobdown:function(e){this._expandKnob(),e.preventDefault(),this.focus()},_bartrack:function(e){this._allowBarEvent(e)&&this._onTrack(e)},_barclick:function(e){this._w=this.$.sliderBar.offsetWidth;var n=this.$.sliderBar.getBoundingClientRect(),t=(e.detail.x-n.left)/this._w*100;this._isRTL&&(t=100-t);var i=this.ratio;this._setTransiting(!0),this._positionKnob(t),i===this.ratio&&this._setTransiting(!1),this.async((function(){this.fire("change",{composed:!0})})),e.preventDefault(),this.focus()},_bardown:function(e){this._allowBarEvent(e)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(e))},_knobTransitionEnd:function(e){e.target===this.$.sliderKnob&&this._setTransiting(!1)},_updateMarkers:function(e,n,t,i){i||this._setMarkers([]);var r=Math.round((t-n)/this.step);r>e&&(r=e),(r<0||!isFinite(r))&&(r=0),this._setMarkers(new Array(r))},_mergeClasses:function(e){return Object.keys(e).filter((function(n){return e[n]})).join(" ")},_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},_allowBarEvent:function(e){return!this.ignoreBarTouch||e.detail.sourceEvent instanceof MouseEvent},get _isRTL(){return void 0===this.__isRTL&&(this.__isRTL="rtl"===window.getComputedStyle(this).direction),this.__isRTL},_leftKey:function(e){this._isRTL?this._incrementKey(e):this._decrementKey(e)},_rightKey:function(e){this._isRTL?this._decrementKey(e):this._incrementKey(e)},_incrementKey:function(e){this.disabled||("end"===e.detail.key?this.value=this.max:this.increment(),this.fire("change"),e.preventDefault())},_decrementKey:function(e){this.disabled||("home"===e.detail.key?this.value=this.min:this.decrement(),this.fire("change"),e.preventDefault())},_changeValue:function(e){this.value=e.target.value,this.fire("change",{composed:!0})},_inputKeyDown:function(e){e.stopPropagation()},_createRipple:function(){return this._rippleContainer=this.$.sliderKnob,h.S._createRipple.call(this)},_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.style.display=e?"":"none",this._ripple.holdDown=e)}})},61740:function(){var e,n,t;n={},t={},function(e,n){function t(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=u}function i(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function r(n,i,r){var a=new t;return i&&(a.fill="both",a.duration="auto"),"number"!=typeof n||isNaN(n)?void 0!==n&&Object.getOwnPropertyNames(n).forEach((function(t){if("auto"!=n[t]){if(("number"==typeof a[t]||"duration"==t)&&("number"!=typeof n[t]||isNaN(n[t])))return;if("fill"==t&&-1==d.indexOf(n[t]))return;if("direction"==t&&-1==p.indexOf(n[t]))return;if("playbackRate"==t&&1!==n[t]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;a[t]=n[t]}})):a.duration=n,a}function a(e,n,t,i){return e<0||e>1||t<0||t>1?u:function(r){function a(e,n,t){return 3*e*(1-t)*(1-t)*t+3*n*(1-t)*t*t+t*t*t}if(r<=0){var o=0;return e>0?o=n/e:!n&&t>0&&(o=i/t),o*r}if(r>=1){var s=0;return t<1?s=(i-1)/(t-1):1==t&&e<1&&(s=(n-1)/(e-1)),1+s*(r-1)}for(var l=0,c=1;l=1)return 1;var i=1/e;return(t+=n*i)-t%i}}function s(e){b||(b=document.createElement("div").style),b.animationTimingFunction="",b.animationTimingFunction=e;var n=b.animationTimingFunction;if(""==n&&i())throw new TypeError(e+" is not a valid value for easing");return n}function l(e){if("linear"==e)return u;var n=_.exec(e);if(n)return a.apply(this,n.slice(1).map(Number));var t=y.exec(e);if(t)return o(Number(t[1]),f);var i=k.exec(e);return i?o(Number(i[1]),{start:h,middle:m,end:f}[i[2]]):g[e]||u}function c(e,n,t){if(null==n)return x;var i=t.delay+e+t.endDelay;return n=Math.min(t.delay+e,i)?T:P}var d="backwards|forwards|both|none".split("|"),p="reverse|alternate|alternate-reverse".split("|"),u=function(e){return e};t.prototype={_setMember:function(n,t){this["_"+n]=t,this._effect&&(this._effect._timingInput[n]=t,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&i())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&i())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=l(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&i())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,m=.5,f=0,g={ease:a(.25,.1,.25,1),"ease-in":a(.42,0,1,1),"ease-out":a(0,0,.58,1),"ease-in-out":a(.42,0,.58,1),"step-start":o(1,h),"step-middle":o(1,m),"step-end":o(1,f)},b=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),y=/steps\(\s*(\d+)\s*\)/,k=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,w=1,T=2,P=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var n={};for(var t in e)n[t]=e[t];return n},e.makeTiming=r,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(n,t){return r(n=e.numericTimingToObject(n),t)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,n,t){var i=c(e,n,t),r=function(e,n,t,i,r){switch(i){case w:return"backwards"==n||"both"==n?0:null;case P:return t-r;case T:return"forwards"==n||"both"==n?e:null;case x:return null}}(e,t.fill,n,i,t.delay);if(null===r)return null;var a=function(e,n,t,i,r){var a=r;return 0===e?n!==w&&(a+=t):a+=i/e,a}(t.duration,i,t.iterations,r,t.iterationStart),o=function(e,n,t,i,r,a){var o=e===1/0?n%1:e%1;return 0!==o||t!==T||0===i||0===r&&0!==a||(o=1),o}(a,t.iterationStart,i,t.iterations,r,t.duration),s=function(e,n,t,i){return e===T&&n===1/0?1/0:1===t?Math.floor(i)-1:Math.floor(i)}(i,t.iterations,o,a),l=function(e,n,t){var i=e;if("normal"!==e&&"reverse"!==e){var r=n;"alternate-reverse"===e&&(r+=1),i="normal",r!==1/0&&r%2!=0&&(i="reverse")}return"normal"===i?t:1-t}(t.direction,s,o);return t._easingFunction(l)},e.calculatePhase=c,e.normalizeEasing=s,e.parseEasingFunction=l}(e={}),function(e,n){function t(e,n){return e in l&&l[e][n]||n}function i(e,n,i){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var r=a[e];if(r)for(var s in o.style[e]=n,r){var l=r[s],c=o.style[l];i[l]=t(l,c)}else i[e]=t(e,n)}}function r(e){var n=[];for(var t in e)if(!(t in["easing","offset","composite"])){var i=e[t];Array.isArray(i)||(i=[i]);for(var r,a=i.length,o=0;o1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){if("add"==a||"accumulate"==a)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=a)throw new TypeError("Invalid composite mode "+a+".")}else a="easing"==r?e.normalizeEasing(a):""+a;i(r,a,t)}return null==t.offset&&(t.offset=null),null==t.easing&&(t.easing="linear"),t})),a=!0,o=-1/0,s=0;s=0&&e.offset<=1})),a||function(){var e=t.length;null==t[e-1].offset&&(t[e-1].offset=1),e>1&&null==t[0].offset&&(t[0].offset=0);for(var n=0,i=t[0].offset,r=1;r=e.applyFrom&&t0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(n.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),n.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),n.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var t=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),n.applyDirtiedAnimation(this)),null!=t&&(this.currentTime=t)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),n.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,n.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),n.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,n){"function"==typeof n&&"finish"==e&&this._finishHandlers.push(n)},removeEventListener:function(e,n){if("finish"==e){var t=this._finishHandlers.indexOf(n);t>=0&&this._finishHandlers.splice(t,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var n=new i(this,this._currentTime,e),t=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){t.forEach((function(e){e.call(n.target,n)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,n){this._idle||this._paused||(null==this._startTime?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),n=e.indexOf(this);-1!==n&&e.splice(n,1)}}}(e,n),function(e,n,t){function i(e){var n=c;c=[],ei?t%=i:i%=t;return e*n/(t+i)}(i.length,r.length),c=0;c=1?n:"visible"}]}),["visibility"])}(n),function(e,n){function t(e){e=e.trim(),a.fillStyle="#000",a.fillStyle=e;var n=a.fillStyle;if(a.fillStyle="#fff",a.fillStyle=e,n==a.fillStyle){a.fillRect(0,0,1,1);var t=a.getImageData(0,0,1,1).data;a.clearRect(0,0,1,1);var i=t[3]/255;return[t[0]*i,t[1]*i,t[2]*i,i]}}function i(n,t){return[n,t,function(n){function t(e){return Math.max(0,Math.min(255,e))}if(n[3])for(var i=0;i<3;i++)n[i]=Math.round(t(n[i]/n[3]));return n[3]=e.numberToString(e.clamp(0,1,n[3])),"rgba("+n.join(",")+")"}]}var r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=r.height=1;var a=r.getContext("2d");e.addPropertiesHandler(t,i,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,t),e.mergeColors=i}(n),function(e,n){function t(e){function n(){var n=o.exec(e);a=n?n[0]:void 0}function t(){if("("!==a)return function(){var e=Number(a);return n(),e}();n();var e=r();return")"!==a?NaN:(n(),e)}function i(){for(var e=t();"*"===a||"/"===a;){var i=a;n();var r=t();"*"===i?e*=r:e/=r}return e}function r(){for(var e=i();"+"===a||"-"===a;){var t=a;n();var r=i();"+"===t?e+=r:e-=r}return e}var a,o=/([\+\-\w\.]+|[\(\)\*\/])/g;return n(),r()}function i(e,n){if("0"==(n=n.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(n)){n=n.replace(/calc\(/g,"(");var i={};n=n.replace(e,(function(e){return i[e]=null,"U"+e}));for(var r="U("+e.source+")",a=n.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+r,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),o=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+t+")":t}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=i.bind(null,new RegExp(o,"g")),l=i.bind(null,new RegExp(o+"|%","g")),c=i.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=l,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,l),e.parseAngle=c,e.mergeDimensions=a;var d=e.consumeParenthesised.bind(null,s),p=e.consumeRepeated.bind(void 0,d,/^/),u=e.consumeRepeated.bind(void 0,p,/^,/);e.consumeSizePairList=u;var h=e.mergeNestedRepeated.bind(void 0,r," "),m=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var n=u(e);if(n&&""==n[1])return n[0]}),m,["background-size"]),e.addPropertiesHandler(l,r,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(l,a,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(e,n){function t(n){return e.consumeLengthOrPercent(n)||e.consumeToken(/^auto/,n)}function i(n){var i=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,t,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],n);if(i&&4==i[0].length)return i[0]}var r=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(n,t){return"auto"==n||"auto"==t?[!0,!1,function(i){var r=i?n:t;if("auto"==r)return"auto";var a=e.mergeDimensions(r,r);return a[2](a[0])}]:e.mergeDimensions(n,t)}),", ");e.parseBox=i,e.mergeBoxes=r,e.addPropertiesHandler(i,r,["clip"])}(n),function(e,n){function t(e){return function(n){var t=0;return e.map((function(e){return e===c?n[t++]:e}))}}function i(e){return e}function r(n){if("none"==(n=n.toLowerCase().trim()))return[];for(var t,i=/\s*(\w+)\(([^)]*)\)/g,r=[],a=0;t=i.exec(n);){if(t.index!=a)return;a=t.index+t[0].length;var o=t[1],s=u[o];if(!s)return;var l=t[2].split(","),c=s[0];if(c.length=0&&this._cancelHandlers.splice(t,1)}else l.call(this,e,n)},a}}}(),function(e){var n=document.documentElement,t=null,i=!1;try{var r="0"==getComputedStyle(n).getPropertyValue("opacity")?"1":"0";(t=n.animate({opacity:[r,r]},{duration:1})).currentTime=0,i=getComputedStyle(n).getPropertyValue("opacity")==r}catch(e){}finally{t&&t.cancel()}if(!i){var a=window.Element.prototype.animate;window.Element.prototype.animate=function(n,t){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&n[Symbol.iterator]&&(n=Array.from(n)),Array.isArray(n)||null===n||(n=e.convertToArrayForm(n)),a.call(this,n,t)}}}(e),function(e,n,t){function i(e){var t=n.timeline;t.currentTime=e,t._discardAnimations(),0==t._animations.length?a=!1:requestAnimationFrame(i)}var r=window.requestAnimationFrame;window.requestAnimationFrame=function(e){return r((function(t){n.timeline._updateAnimationsPromises(),e(t),n.timeline._updateAnimationsPromises()}))},n.AnimationTimeline=function(){this._animations=[],this.currentTime=void 0},n.AnimationTimeline.prototype={getAnimations:function(){return this._discardAnimations(),this._animations.slice()},_updateAnimationsPromises:function(){n.animationsWithPromises=n.animationsWithPromises.filter((function(e){return e._updatePromises()}))},_discardAnimations:function(){this._updateAnimationsPromises(),this._animations=this._animations.filter((function(e){return"finished"!=e.playState&&"idle"!=e.playState}))},_play:function(e){var t=new n.Animation(e,this);return this._animations.push(t),n.restartWebAnimationsNextTick(),t._updatePromises(),t._animation.play(),t._updatePromises(),t},play:function(e){return e&&e.remove(),this._play(e)}};var a=!1;n.restartWebAnimationsNextTick=function(){a||(a=!0,requestAnimationFrame(i))};var o=new n.AnimationTimeline;n.timeline=o;try{Object.defineProperty(window.document,"timeline",{configurable:!0,get:function(){return o}})}catch(e){}try{window.document.timeline=o}catch(e){}}(0,t),function(e,n,t){n.animationsWithPromises=[],n.Animation=function(n,t){if(this.id="",n&&n._id&&(this.id=n._id),this.effect=n,n&&(n._animation=this),!t)throw new Error("Animation with null timeline is not supported");this._timeline=t,this._sequenceNumber=e.sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGroup=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._oldPlayState="idle",this._rebuildUnderlyingAnimation(),this._animation.cancel(),this._updatePromises()},n.Animation.prototype={_updatePromises:function(){var e=this._oldPlayState,n=this.playState;return this._readyPromise&&n!==e&&("idle"==n?(this._rejectReadyPromise(),this._readyPromise=void 0):"pending"==e?this._resolveReadyPromise():"pending"==n&&(this._readyPromise=void 0)),this._finishedPromise&&n!==e&&("idle"==n?(this._rejectFinishedPromise(),this._finishedPromise=void 0):"finished"==n?this._resolveFinishedPromise():"finished"==e&&(this._finishedPromise=void 0)),this._oldPlayState=this.playState,this._readyPromise||this._finishedPromise},_rebuildUnderlyingAnimation:function(){this._updatePromises();var e,t,i,r,a=!!this._animation;a&&(e=this.playbackRate,t=this._paused,i=this.startTime,r=this.currentTime,this._animation.cancel(),this._animation._wrapper=null,this._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)&&(this._animation=n.newUnderlyingAnimationForKeyframeEffect(this.effect),n.bindAnimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(this._animation=n.newUnderlyingAnimationForGroup(this.effect),n.bindAnimationForGroup(this)),this.effect&&this.effect._onsample&&n.bindAnimationForCustomEffect(this),a&&(1!=e&&(this.playbackRate=e),null!==i?this.startTime=i:null!==r?this.currentTime=r:null!==this._holdTime&&(this.currentTime=this._holdTime),t&&this.pause()),this._updatePromises()},_updateChildren:function(){if(this.effect&&"idle"!=this.playState){var e=this.effect._timing.delay;this._childAnimations.forEach(function(t){this._arrangeChildren(t,e),this.effect instanceof window.SequenceEffect&&(e+=n.groupChildDuration(t.effect))}.bind(this))}},_setExternalAnimation:function(e){if(this.effect&&this._isGroup)for(var n=0;ne.length)&&(t=e.length);for(var n=0,u=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u={exports:{}};function r(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}u.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:r,changeDefaults:function(e){u.exports.defaults=e}};var i=/[&<>"']/,a=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(e){return l[e]},D=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(D,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g,g=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,d={},m=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,F=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(e,t){d[" "+e]||(m.test(e)?d[" "+e]=e+"/":d[" "+e]=k(e,"/",!0));var n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(A,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(F,"$1")+t:e+t}function k(e,t,n){var u=e.length;if(0===u)return"";for(var r=0;r=0&&"\\"===n[r];)u=!u;return u?"|":" |"})).split(/ \|/),u=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},T=u.exports.defaults,I=_,R=y,O=C,j=S;function q(e,t,n){var u=t.href,r=t.title?O(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:u,title:r,text:i}:{type:"image",raw:n,href:u,title:r,text:O(i)}}var L=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:I(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],u=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var u=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=u.length?e.slice(u.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:u}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var u=I(n,"#");this.options.pedantic?n=u.trim():u&&!/ $/.test(u)||(n=u.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:R(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var u,r=n.align.length;for(u=0;u ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,u,r,i,a,s,o,l,c,D=t[0],p=t[2],h=p.length>1,g={type:"list",raw:D,ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]},f=t[0].match(this.rules.block.item),d=!1,m=f.length;r=this.rules.block.listItemStart.exec(f[0]);for(var A=0;Ar[1].length:i[1].length>=r[0].length||i[1].length>3){f.splice(A,2,f[A]+(!this.options.pedantic&&i[1].length/i.test(u[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(u[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(u[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:u[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):O(u[0]):u[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var u=I(n.slice(0,-1),"\\");if((n.length-u.length)%2==0)return}else{var r=j(t[2],"()");if(r>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var a=t[2],s="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);o&&(a=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),q(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var u=(n[2]||n[1]).replace(/\s+/g," ");if(!(u=t[u.toLowerCase()])||!u.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return q(n,u,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var u=this.rules.inline.emStrong.lDelim.exec(e);if(u&&(!u[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=u[1]||u[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var i,a,s=u[0].length-1,o=s,l=0,c="*"===u[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);null!=(u=c.exec(t));)if(i=u[1]||u[2]||u[3]||u[4]||u[5]||u[6])if(a=i.length,u[3]||u[4])o+=a;else if(!((u[5]||u[6])&&s%3)||(s+a)%3){if(!((o-=a)>0)){if(o+l-a<=0&&!t.slice(c.lastIndex).match(c)&&(a=Math.min(a,a+o+l)),Math.min(s,a)%2)return{type:"em",raw:e.slice(0,s+u.index+a+1),text:e.slice(1,s+u.index+a)};if(Math.min(s,a)%2==0)return{type:"strong",raw:e.slice(0,s+u.index+a+1),text:e.slice(2,s+u.index+a-1)}}}else l+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),u=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return u&&r&&(n=n.substring(1,n.length-1)),n=O(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,u,r=this.rules.inline.autolink.exec(e);if(r)return u="@"===r[2]?"mailto:"+(n=O(this.options.mangle?t(r[1]):r[1])):n=O(r[1]),{type:"link",raw:r[0],text:n,href:u,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var u,r;if("@"===n[2])r="mailto:"+(u=O(this.options.mangle?t(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);u=O(n[0]),r="www."===n[1]?"http://"+u:u}return{type:"link",raw:n[0],text:u,href:r,tokens:[{type:"text",raw:u,text:u}]}}},t.inlineText=function(e,t,n){var u,r=this.rules.inline.text.exec(e);if(r)return u=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):O(r[0]):r[0]:O(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:u}},e}(),Z=w,P=x,U=B,V={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Z,table:Z,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};V.def=P(V.def).replace("label",V._label).replace("title",V._title).getRegex(),V.bullet=/(?:[*+-]|\d{1,9}[.)])/,V.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,V.item=P(V.item,"gm").replace(/bull/g,V.bullet).getRegex(),V.listItemStart=P(/^( *)(bull) */).replace("bull",V.bullet).getRegex(),V.list=P(V.list).replace(/bull/g,V.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+V.def.source+")").getRegex(),V._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",V._comment=/|$)/,V.html=P(V.html,"i").replace("comment",V._comment).replace("tag",V._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),V.paragraph=P(V._paragraph).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",V._tag).getRegex(),V.blockquote=P(V.blockquote).replace("paragraph",V.paragraph).getRegex(),V.normal=U({},V),V.gfm=U({},V.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),V.gfm.nptable=P(V.gfm.nptable).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",V._tag).getRegex(),V.gfm.table=P(V.gfm.table).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",V._tag).getRegex(),V.pedantic=U({},V.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",V._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Z,paragraph:P(V.normal._paragraph).replace("hr",V.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",V.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Z,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};W.punctuation=P(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/\\\*|\\_/g,W._comment=P(V._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),W.emStrong.lDelim=P(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=P(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=P(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,W.autolink=P(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=P(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=P(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=P(W.reflink).replace("label",W._label).getRegex(),W.reflinkSearch=P(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal=U({},W),W.pedantic=U({},W.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()}),W.gfm=U({},W.normal,{escape:P(W.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),u+="&#"+n+";";return u}var Y=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||N,this.options.tokenizer=this.options.tokenizer||new X,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:M.normal,inline:G.normal};this.options.pedantic?(t.block=M.pedantic,t.inline=G.pedantic):this.options.gfm&&(t.block=M.gfm,this.options.breaks?t.inline=G.breaks:t.inline=G.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,u,r,i=t.prototype;return i.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(e,t,n){var u,r,i,a;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(u=this.tokenizer.space(e))e=e.substring(u.raw.length),u.type&&t.push(u);else if(u=this.tokenizer.code(e))e=e.substring(u.raw.length),(a=t[t.length-1])&&"paragraph"===a.type?(a.raw+="\n"+u.raw,a.text+="\n"+u.text):t.push(u);else if(u=this.tokenizer.fences(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.heading(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.nptable(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.hr(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.blockquote(e))e=e.substring(u.raw.length),u.tokens=this.blockTokens(u.text,[],n),t.push(u);else if(u=this.tokenizer.list(e)){for(e=e.substring(u.raw.length),i=u.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+Q("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+Q("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(o=""),s=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,u)){e=e.substring(r.raw.length),n=r.inLink,u=r.inRawBlock;var D=t[t.length-1];D&&"text"===r.type&&"text"===D.type?(D.raw+=r.raw,D.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,u)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);var p=t[t.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,u),t.push(r)):p&&"text"===r.type&&"text"===p.type?(p.raw+=r.raw,p.text+=r.text):t.push(r)}else if(r=this.tokenizer.emStrong(e,l,o))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,u),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,u),t.push(r);else if(r=this.tokenizer.autolink(e,K))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,K))){if(r=this.tokenizer.inlineText(e,u,J))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),s=!0,(i=t[t.length-1])&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,r=[{key:"rules",get:function(){return{block:M,inline:G}}}],(u=null)&&e(n.prototype,u),r&&e(n,r),t}(),ee=u.exports.defaults,te=v,ne=C,ue=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,n){var u=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,u);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",u?'
    '+(n?e:ne(e,!0))+"
    \n":"
    "+(n?e:ne(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,n,u){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},t.list=function(e,t,n){var u=t?"ol":"ul";return"<"+u+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var u='
    "},t.image=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var u=''+n+'":">"},t.text=function(e){return e},e}(),re=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),ie=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,u=0;if(this.seen.hasOwnProperty(n)){u=this.seen[e];do{n=e+"-"+ ++u}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=u,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),ae=ue,se=re,oe=ie,le=u.exports.defaults,ce=E,De=Y,pe=function(){function e(e){this.options=e||le,this.options.renderer=this.options.renderer||new ae,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new se,this.slugger=new oe}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,u,r,i,a,s,o,l,c,D,p,h,g,f,d,m,A,F,b="",k=e.length;for(n=0;n0&&"text"===d.tokens[0].type?(d.tokens[0].text=F+" "+d.tokens[0].text,d.tokens[0].tokens&&d.tokens[0].tokens.length>0&&"text"===d.tokens[0].tokens[0].type&&(d.tokens[0].tokens[0].text=F+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:F}):f+=F),f+=this.parse(d.tokens,g),c+=this.renderer.listitem(f,A,m);b+=this.renderer.list(c,p,h);continue;case"html":b+=this.renderer.html(D.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(D.tokens));continue;case"text":for(c=D.tokens?this.parseInline(D.tokens):D.text;n+1An error occurred:

    "+Fe(o.message+"",!0)+"
    ";throw o}}return Ee.options=Ee.setOptions=function(e){return me(Ee.defaults,e),ke(Ee.defaults),Ee},Ee.getDefaults=be,Ee.defaults=Ce,Ee.use=function(e){var t=me({},e);if(e.renderer&&function(){var n=Ee.defaults.renderer||new ge,u=function(t){var u=n[t];n[t]=function(){for(var r=arguments.length,i=new Array(r),a=0;aAn error occurred:

    "+Fe(u.message+"",!0)+"
    ";throw u}},Ee.Parser=pe,Ee.parser=pe.parse,Ee.Renderer=ge,Ee.TextRenderer=fe,Ee.Lexer=De,Ee.lexer=De.lex,Ee.Tokenizer=he,Ee.Slugger=de,Ee.parse=Ee,Ee},"object"===a(t)?e.exports=i():void 0===(r="function"==typeof(u=i)?u.call(t,n,t,e):u)||(e.exports=r)},60841:function(e,t,n){var u=n(8300).FilterCSS,r=n(8300).getDefaultWhiteList,i=n(58511);function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var s=new u;function o(e){return e.replace(l,"<").replace(c,">")}var l=//g,D=/"/g,p=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,g=/:?/gim,f=/&newline;?/gim,d=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,m=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,A=/u\s*r\s*l\s*\(.*/gi;function F(e){return e.replace(D,""")}function b(e){return e.replace(p,'"')}function k(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function C(e){return e.replace(g,":").replace(f," ")}function E(e){for(var t="",n=0,u=e.length;n/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=a,t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,u){if(n=x(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(d.lastIndex=0,d.test(n))return""}else if("style"===t){if(m.lastIndex=0,m.test(n))return"";if(A.lastIndex=0,A.test(n)&&(d.lastIndex=0,d.test(n)))return"";!1!==u&&(n=(u=u||s).process(n))}return n=v(n)},t.escapeHtml=o,t.escapeQuote=F,t.unescapeQuote=b,t.escapeHtmlEntities=k,t.escapeDangerHtml5Entities=C,t.clearNonPrintableCharacter=E,t.friendlyAttrValue=x,t.escapeAttrValue=v,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),u=[],r=!1;return{onIgnoreTag:function(a,s,o){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(o.isClosing){var l="[/removed]",c=o.position+l.length;return u.push([!1!==r?r:o.position,c]),r=!1,l}return r||(r=o.position),"[removed]"}return t(a,s,o)},remove:function(e){var t="",n=0;return i.forEach(u,(function(u){t+=e.slice(n,u[0]),n=u[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){return e.replace(w,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.cssFilter=s,t.getDefaultCSSWhiteList=r},62173:function(e,t,n){var u=n(60841),r=n(79542),i=n(61585);function a(e,t){return new i(t).process(e)}for(var s in(t=e.exports=a).filterXSS=a,t.FilterXSS=i,u)t[s]=u[s];for(var s in r)t[s]=r[s];"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},79542:function(e,t,n){var u=n(58511);function r(e){var t=u.spaceIndex(e);if(-1===t)var n=e.slice(1,-1);else n=e.slice(1,t+1);return"/"===(n=u.trim(n).toLowerCase()).slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}function i(e){return"0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function l(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){"use strict";var u="",a=0,s=!1,o=!1,l=0,c=e.length,D="",p="";e:for(l=0;l"===h){u+=n(e.slice(a,s)),D=r(p=e.slice(s,l+1)),u+=t(s,u.length,D,p,i(p)),a=l+1,s=!1;continue}if('"'===h||"'"===h)for(var g=1,f=e.charAt(l-g);""===f.trim()||"="===f;){if("="===f){o=h;continue e}f=e.charAt(l-++g)}}else if(h===o){o=!1;continue}}return a";var A=function(e){var t=o.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=o.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=o.trim(e.slice(0,-1))),{html:e,closing:n}}(a),F=n[r],b=s(A.html,(function(e,t){var n,u=-1!==o.indexOf(F,e);return l(n=c(r,e,t,u))?u?(t=p(r,e,t,g))?e+'="'+t+'"':e:l(n=D(r,e,t,u))?void 0:n:n}));a="<"+r;return b&&(a+=" "+b),A.closing&&(a+=" /"),a+=">"}return l(d=i(r,a,m))?h(a):d}),h);return f&&(d=f.remove(d)),d},e.exports=c}}]); +//# sourceMappingURL=chunk.b9d30baa8281f2ef1718.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.b9d30baa8281f2ef1718.js.gz b/supervisor/api/panel/frontend_es5/chunk.b9d30baa8281f2ef1718.js.gz new file mode 100644 index 000000000..98bf84a94 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.b9d30baa8281f2ef1718.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.b9d30baa8281f2ef1718.js.map b/supervisor/api/panel/frontend_es5/chunk.b9d30baa8281f2ef1718.js.map new file mode 100644 index 000000000..1d0dfdc15 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.b9d30baa8281f2ef1718.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.b9d30baa8281f2ef1718.js","sources":["webpack://home-assistant-frontend/chunk.b9d30baa8281f2ef1718.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.7d6e3db29597366d0613.js b/supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.7d6e3db29597366d0613.js rename to supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js index c4295f2aa..7b85c1d4c 100644 --- a/supervisor/api/panel/frontend_es5/chunk.7d6e3db29597366d0613.js +++ b/supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[546],{93546:function(e,t,r){"use strict";var n,o=r(50424),i=r(55358),a=r(47181),s=r(91107);function c(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,o)}var l=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,o,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n||(n=(0,s.Ud)(new Worker(new URL(r.p+r.u(971),r.b)))),e.abrupt("return",n.renderMarkdown(t,o,i));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,s,"next",e)}function s(e){c(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function f(e){return(f="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 u(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,o)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var o=C(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){v=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var o=t.placement;if(t.kind===n&&("static"===o||"prototype"===o)){var i="static"===o?e:r;this.defineClassElement(i,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!k(e))return r.push(e);var t=this.decorateElement(e,o);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var i=this.decorateConstructor(r,t);return n.push.apply(n,i.finishers),i.finishers=n,i},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],o=e.decorators,i=o.length-1;i>=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,o[i])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var f=0;f=0;n--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[n])(o)||o);if(void 0!==i.finisher&&r.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,o[i])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var f=0;f=0;n--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[n])(o)||o);if(void 0!==i.finisher&&r.push(i.finisher),void 0!==i.elements){e=i.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this.content,this.allowSvg,this.breaks):(0,o.dy)(A||(A=j([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(x||(x=j(["\n :host {\n display: block;\n }\n ha-markdown-element {\n -ms-user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n }\n ha-markdown-element > *:first-child {\n margin-top: 0;\n }\n ha-markdown-element > *:last-child {\n margin-bottom: 0;\n }\n ha-markdown-element a {\n color: var(--primary-color);\n }\n ha-markdown-element img {\n max-width: 100%;\n }\n ha-markdown-element code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n ha-markdown-element svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n ha-markdown-element code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n ha-markdown-element pre code {\n padding: 0;\n }\n ha-markdown-element pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n ha-markdown-element h2 {\n font-size: 1.5em;\n font-weight: bold;\n }\n "])))}}]}}),o.oi)}}]); -//# sourceMappingURL=chunk.7d6e3db29597366d0613.js.map \ No newline at end of file +//# sourceMappingURL=chunk.ba6f1a3202815ae73338.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.7d6e3db29597366d0613.js.gz b/supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js.gz similarity index 74% rename from supervisor/api/panel/frontend_es5/chunk.7d6e3db29597366d0613.js.gz rename to supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js.gz index f6d8ed126..4c8aac443 100644 Binary files a/supervisor/api/panel/frontend_es5/chunk.7d6e3db29597366d0613.js.gz and b/supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js.map b/supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js.map new file mode 100644 index 000000000..c364561c2 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.ba6f1a3202815ae73338.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.ba6f1a3202815ae73338.js","sources":["webpack://home-assistant-frontend/chunk.ba6f1a3202815ae73338.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js b/supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js rename to supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js index 9b5b04fbe..5cc07f13d 100644 --- a/supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js +++ b/supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[624],{50624:function(e,t,r){"use strict";r.r(t);r(82592);var n,i,o,s,a,c,l=r(50424),u=r(55358),p=r(47181),d=(r(98762),r(93559)),f=r(41682),h=r(77097),m=r(26765),y=r(11654);r(70452);function v(e){return(v="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 b(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(l){return void r(l)}a.done?t(c):Promise.resolve(c).then(n,i)}function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?P(e):t}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(){C=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!A(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n ",'\n Error: ',"

    "])),this._error):"",this.closeDialog,this._dialogParams.supervisor.localize("common.close"),this._creatingSnapshot,this._createSnapshot,this._dialogParams.supervisor.localize("snapshot.create")):(0,l.dy)(n||(n=g([""])))}},{kind:"method",key:"_createSnapshot",value:(r=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("running"===this._dialogParams.supervisor.info.state){e.next=3;break}return(0,m.Ys)(this,{title:this._dialogParams.supervisor.localize("snapshot.could_not_create"),text:this._dialogParams.supervisor.localize("snapshot.create_blocked_not_running","state",this._dialogParams.supervisor.info.state)}),e.abrupt("return");case 3:if(t=this._snapshotContent.snapshotDetails(),this._creatingSnapshot=!0,this._error="",!this._snapshotContent.snapshotHasPassword||this._snapshotContent.snapshotPassword.length){e.next=10;break}return this._error=this._dialogParams.supervisor.localize("snapshot.enter_password"),this._creatingSnapshot=!1,e.abrupt("return");case 10:if(e.prev=10,"full"!==this._snapshotContent.snapshotType){e.next=16;break}return e.next=14,(0,h.a2)(this.hass,t);case 14:e.next=18;break;case 16:return e.next=18,(0,h.iN)(this.hass,t);case 18:this._dialogParams.onCreate(),this.closeDialog(),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(10),this._error=(0,f.js)(e.t0);case 25:this._creatingSnapshot=!1;case 26:case"end":return e.stop()}}),e,this,[[10,22]])})),v=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function s(e){b(o,n,i,s,a,"next",e)}function a(e){b(o,n,i,s,a,"throw",e)}s(void 0)}))},function(){return v.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[y.Qx,y.yu,(0,l.iv)(c||(c=g(["\n ha-circular-progress {\n display: block;\n text-align: center;\n }\n "])))]}}]}}),l.oi)}}]); -//# sourceMappingURL=chunk.dab21844f455a341c6bd.js.map \ No newline at end of file +//# sourceMappingURL=chunk.bad68485b20f9d555e1a.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js.gz b/supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js.gz new file mode 100644 index 000000000..29ba36fa4 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js.map b/supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js.map new file mode 100644 index 000000000..38085f73a --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.bad68485b20f9d555e1a.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.bad68485b20f9d555e1a.js","sources":["webpack://home-assistant-frontend/chunk.bad68485b20f9d555e1a.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.c07f5e9e4c9f8a944a64.js b/supervisor/api/panel/frontend_es5/chunk.c07f5e9e4c9f8a944a64.js new file mode 100644 index 000000000..3447594f8 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.c07f5e9e4c9f8a944a64.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[965],{43965:function(e,r,t){"use strict";t.r(r),t.d(r,{ArrayCreate:function(){return B},BasicFormatMatcher:function(){return te},BestFitFormatMatcher:function(){return C},CanonicalCodeForDisplayNames:function(){return Ie},CanonicalizeLocaleList:function(){return N},CanonicalizeTimeZoneName:function(){return T},CoerceOptionsToObject:function(){return re},ComputeExponent:function(){return Ye},ComputeExponentForMagnitude:function(){return _e},CurrencyDigits:function(){return He},DATE_TIME_PROPS:function(){return p},DateFromTime:function(){return q},DateTimeStyleFormat:function(){return ne},Day:function(){return z},DayFromYear:function(){return _},DayWithinYear:function(){return Y},DaysInYear:function(){return G},FormatDateTime:function(){return se},FormatDateTimeRange:function(){return ge},FormatDateTimeRangeToParts:function(){return de},FormatDateTimeToParts:function(){return pe},FormatNumericToParts:function(){return ar},FormatNumericToString:function(){return Ge},FormatRelativeTime:function(){return pr},FormatRelativeTimeToParts:function(){return vr},GetNumberOption:function(){return Ce},GetOperands:function(){return lr},GetOption:function(){return ye},GetOptionsObject:function(){return Pe},HasOwnProperty:function(){return P},HourFromTime:function(){return V},InLeapYear:function(){return H},InitializeDateTimeFormat:function(){return Me},InitializeNumberFormat:function(){return or},InitializePluralRules:function(){return cr},InitializeRelativeTimeFormat:function(){return yr},IsSanctionedSimpleUnitIdentifier:function(){return ze},IsValidTimeZoneName:function(){return Ee},IsWellFormedCurrencyCode:function(){return Oe},IsWellFormedUnitIdentifier:function(){return Ue},MakePartsList:function(){return mr},MinFromTime:function(){return J},MonthFromTime:function(){return W},OrdinaryHasInstance:function(){return X},PartitionDateTimePattern:function(){return ce},PartitionNumberPattern:function(){return nr},PartitionPattern:function(){return le},PartitionRelativeTimePattern:function(){return dr},RangePatternType:function(){return d},ResolveLocale:function(){return we},ResolvePlural:function(){return sr},SANCTIONED_UNITS:function(){return Re},SIMPLE_UNITS:function(){return je},SameValue:function(){return I},SecFromTime:function(){return Q},SetNumberFormatDigitOptions:function(){return ir},SetNumberFormatUnitOptions:function(){return ur},SingularRelativeTimeUnit:function(){return fr},SupportedLocales:function(){return br},TimeClip:function(){return k},TimeFromYear:function(){return Z},ToDateTimeOptions:function(){return ve},ToNumber:function(){return O},ToObject:function(){return x},ToRawFixed:function(){return $e},ToRawPrecision:function(){return Ze},ToString:function(){return A},Type:function(){return R},WeekDay:function(){return U},YearFromTime:function(){return $},_formatToParts:function(){return Xe},defineProperty:function(){return f},getInternalSlot:function(){return l},getMagnitude:function(){return a},getMultiInternalSlots:function(){return c},invariant:function(){return g},isLiteralPart:function(){return s},isMissingLocaleDataError:function(){return Fr},msFromTime:function(){return ee},parseDateTimeSkeleton:function(){return F},removeUnitNamespace:function(){return Le},setInternalSlot:function(){return i},setMultiInternalSlots:function(){return o}});var n=t(87480);function a(e){return Math.floor(Math.log(e)*Math.LOG10E)}function u(e,r){if("function"==typeof e.repeat)return e.repeat(r);for(var t=new Array(r),n=0;nt&&(t=l,a=o)}var c=(0,n.__assign)({},a),s={rawPattern:a.rawPattern};for(var f in b(a.rawPattern,s),c){var m=c[f],d=s[f],p=e[f];"minute"!==f&&"second"!==f&&(p&&(E(d)&&!E(p)||m!==p&&(s[f]=p)))}return s.pattern=c.pattern,s.pattern12=c.pattern12,s.skeleton=c.skeleton,s.rangePatterns=c.rangePatterns,s.rangePatterns12=c.rangePatterns12,s}function N(e){return Intl.getCanonicalLocales(e)}function T(e,r){var t=r.tzData,n=r.uppercaseLinks,a=e.toUpperCase(),u=Object.keys(t).reduce((function(e,r){return e[r.toUpperCase()]=r,e}),{}),i=n[a]||u[a];return"Etc/UTC"===i||"Etc/GMT"===i?"UTC":i}function M(e){return(M="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 A(e){if("symbol"===M(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function O(e){if(void 0===e)return NaN;if(null===e)return 0;if("boolean"==typeof e)return e?1:0;if("number"==typeof e)return e;if("symbol"===M(e)||"bigint"==typeof e)throw new TypeError("Cannot convert symbol/bigint to number");return Number(e)}function k(e){return isFinite(e)?Math.abs(e)>8640000000000001?NaN:function(e){var r=O(e);if(isNaN(r)||I(r,-0))return 0;if(isFinite(r))return r;var t=Math.floor(Math.abs(r));return r<0&&(t=-t),I(t,-0)?0:t}(e):NaN}function x(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function I(e,r){return Object.is?Object.is(e,r):e===r?0!==e||1/e==1/r:e!=e&&r!=r}function B(e){return new Array(e)}function P(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function R(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===M(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"===M(e)?"Symbol":"bigint"==typeof e?"BigInt":void 0}var L=864e5;function j(e,r){return e-Math.floor(e/r)*r}function z(e){return Math.floor(e/L)}function U(e){return j(z(e)+4,7)}function _(e){return Date.UTC(e,0)/L}function Z(e){return Date.UTC(e,0)}function $(e){return new Date(e).getUTCFullYear()}function G(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function Y(e){return z(e)-_($(e))}function H(e){return 365===G($(e))?0:1}function W(e){var r=Y(e),t=H(e);if(r>=0&&r<31)return 0;if(r<59+t)return 1;if(r<90+t)return 2;if(r<120+t)return 3;if(r<151+t)return 4;if(r<181+t)return 5;if(r<212+t)return 6;if(r<243+t)return 7;if(r<273+t)return 8;if(r<304+t)return 9;if(r<334+t)return 10;if(r<365+t)return 11;throw new Error("Invalid time")}function q(e){var r=Y(e),t=W(e),n=H(e);if(0===t)return r+1;if(1===t)return r-30;if(2===t)return r-58-n;if(3===t)return r-89-n;if(4===t)return r-119-n;if(5===t)return r-150-n;if(6===t)return r-180-n;if(7===t)return r-211-n;if(8===t)return r-242-n;if(9===t)return r-272-n;if(10===t)return r-303-n;if(11===t)return r-333-n;throw new Error("Invalid time")}var K=1e3;function V(e){return j(Math.floor(e/36e5),24)}function J(e){return j(Math.floor(e/6e4),60)}function Q(e){return j(Math.floor(e/K),60)}function X(e,r,t){if("function"!=typeof e)return!1;if(null==t?void 0:t.boundTargetFunction)return r instanceof(null==t?void 0:t.boundTargetFunction);if("object"!==M(r))return!1;var n=e.prototype;if("object"!==M(n))throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,r)}function ee(e){return j(e,K)}function re(e){return void 0===e?Object.create(null):x(e)}function te(e,r){var t=-1/0,a=r[0];g(Array.isArray(r),"formats should be a list of things");for(var u=0,i=r;ut&&(t=l,a=o)}return(0,n.__assign)({},a)}function ne(e,r,t){var n,a;if(void 0!==r&&(g("full"===r||"long"===r||"medium"===r||"short"===r,"invalid timeStyle"),a=t.timeFormat[r]),void 0!==e&&(g("full"===e||"long"===e||"medium"===e||"short"===e,"invalid dateStyle"),n=t.dateFormat[e]),void 0!==e&&void 0!==r){var u={};for(var i in n)"pattern"!==i&&(u[i]=n[i]);for(var i in a)"pattern"!==i&&"pattern12"!==i&&(u[i]=a[i]);var o=t.dateTimeFormat[e],l=o.replace("{0}",a.pattern).replace("{1}",n.pattern);if(u.pattern=l,"pattern12"in a){var c=o.replace("{0}",a.pattern12).replace("{1}",n.pattern);u.pattern12=c}return u}return void 0!==r?a:(g(void 0!==e,"dateStyle should not be undefined"),n)}function ae(e,r,t,n){var a=n.tzData;g("Number"===R(e),"invalid time"),g("gregory"===r,"We only support Gregory calendar right now");var u=function(e,r,t){var n,a=t[r];if(!a)return[0,!1];for(var u=0,i=0,o=!1;u<=a.length;u++)if(u===a.length||1e3*a[u][0]>e){i=(n=a[u-1])[2],o=n[3];break}return[1e3*i,o]}(e,t,a),i=u[0],o=u[1],l=e+i,c=$(l);return{weekday:U(l),era:c<0?"BC":"AD",year:c,relatedYear:void 0,yearName:void 0,month:W(l),day:q(l),hour:V(l),minute:J(l),second:Q(l),millisecond:ee(l),inDST:o,timeZoneOffset:i}}function ue(e){return e<10?"0"+e:String(e)}function ie(e,r,t,n){var a=Math.floor(t/6e4),u=Math.abs(a)%60,i=Math.floor(Math.abs(a)/60),o=r.split(";"),l=o[0],c=o[1],s="",f=t<0?c:l;return"long"===n?s=f.replace("HH",ue(i)).replace("H",String(i)).replace("mm",ue(u)).replace("m",String(u)):(u||i)&&(u||(f=f.replace(/:?m+/,"")),s=f.replace(/H+/,String(i)).replace(/m+/,String(u))),e.replace("{0}",s)}function oe(e,r,t,n){var a=n.getInternalSlots,u=n.localeData,i=n.getDefaultTimeZone,o=n.tzData;t=k(t);var l=a(e),c=u[l.dataLocale],s=l.locale,f=Object.create(null);f.useGrouping=!1;var m=new Intl.NumberFormat(s,f),g=Object.create(null);g.minimumIntegerDigits=2,g.useGrouping=!1;var d,v=new Intl.NumberFormat(s,g),h=l.fractionalSecondDigits;if(void 0!==h){var y=Object.create(null);y.minimumIntegerDigits=h,y.useGrouping=!1,d=new Intl.NumberFormat(s,y)}for(var D=ae(t,l.calendar,l.timeZone,{tzData:o}),b=[],F=0,w=r;F-1){var N="",T=l[S];C=D[S];"year"===S&&C<=0&&(C=1-C),"month"===S&&C++;var M=l.hourCycle;if("hour"!==S||"h11"!==M&&"h12"!==M||0===(C%=12)&&"h12"===M&&(C=12),"hour"===S&&"h24"===M&&0===C&&(C=24),"numeric"===T)N=m.format(C);else if("2-digit"===T)(N=v.format(C)).length>2&&(N=N.slice(N.length-2,N.length));else if("narrow"===T||"short"===T||"long"===T)if("era"===S)N=c[S][T][C];else if("timeZoneName"===S){var A=c.timeZoneName,O=c.gmtFormat,x=c.hourFormat,I=A[l.timeZone||i()];N=I&&I[T]?I[T][+D.inDST]:ie(O,x,D.timeZoneOffset,T)}else N="month"===S?c.month[T][C-1]:c[S][T][C];b.push({type:S,value:N})}else if("ampm"===S){N=void 0;N=(C=D.hour)>11?c.pm:c.am,b.push({type:"dayPeriod",value:N})}else if("relatedYear"===S){C=D.relatedYear,N=m.format(C);b.push({type:"relatedYear",value:N})}else if("yearName"===S){C=D.yearName,N=m.format(C);b.push({type:"yearName",value:N})}}return b}function le(e){for(var r=[],t=e.indexOf("{"),n=0,a=0,u=e.length;t-1;)g((n=e.indexOf("}",t))>t,"Invalid pattern "+e),t>a&&r.push({type:"literal",value:e.substring(a,t)}),r.push({type:e.substring(t+1,n),value:void 0}),a=n+1,t=e.indexOf("{",a);return a11&&b<11||D<11&&b>11)&&(m=!1)}else if("dayPeriod"===h);else if("fractionalSecondDigits"===h){var F=o.fractionalSecondDigits;void 0===F&&(F=3),I(D=Math.floor(l.millisecond*Math.pow(10,F-3)),b=Math.floor(c.millisecond*Math.pow(10,F-3)))||(m=!1)}else{I(D=l[h],b=c[h])||(m=!1)}}}if(m){for(var w=oe(e,le(s),r,n),E=0,S=w;E=2&&"-"===t[n-2]&&(n-=2),t=t.slice(0,n)}}function be(e,r){g(2===r.length,"key must have 2 elements");var t=e.length,n="-"+r+"-",a=e.indexOf(n);if(-1!==a){for(var u=a+4,i=u,o=u,l=!1;!l;){var c=e.indexOf("-",o);2===(-1===c?t-o:c-o)?l=!0:-1===c?(i=t,l=!0):(i=c,o=c+1)}return e.slice(u,i)}if(n="-"+r,-1!==(a=e.indexOf(n))&&a+3===t)return""}function Fe(e){return(Fe="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 we(e,r,t,n,a,u){for(var i,o=(i="lookup"===t.localeMatcher?function(e,r,t){for(var n={locale:""},a=0,u=r;a2){var F=o.indexOf("-x-");if(-1===F)o+=c;else{var w=o.slice(0,F),E=o.slice(F,o.length);o=w+c+E}o=Intl.getCanonicalLocales(o)[0]}return l.locale=o,l}function Ee(e,r){var t=r.tzData,n=r.uppercaseLinks,a=e.toUpperCase(),u=new Set;return Object.keys(t).map((function(e){return e.toUpperCase()})).forEach((function(e){return u.add(e)})),u.has(a)||a in n}function Se(e,r,t,n){if(void 0!==e){if(e=Number(e),isNaN(e)||et)throw new RangeError(e+" is outside of range ["+r+", "+t+"]");return Math.floor(e)}return n}function Ce(e,r,t,n,a){return Se(e[r],t,n,a)}function Ne(e,r,t){return null==e&&(e=r),void 0!==t&&(t?e="h11"===r||"h23"===r?"h11":"h12":(g(!t,"hour12 must not be set"),e="h11"===r||"h23"===r?"h23":"h24")),e}var Te=/^[a-z0-9]{3,8}$/i;function Me(e,r,t,n){var a=n.getInternalSlots,u=n.availableLocales,i=n.localeData,o=n.getDefaultLocale,l=n.getDefaultTimeZone,c=n.relevantExtensionKeys,s=n.tzData,f=n.uppercaseLinks,m=N(r),d=ve(t,"any","date"),v=Object.create(null),h=ye(d,"localeMatcher","string",["lookup","best fit"],"best fit");v.localeMatcher=h;var y=ye(d,"calendar","string",void 0,void 0);if(void 0!==y&&!Te.test(y))throw new RangeError("Malformed calendar");var D=a(e);v.ca=y;var b=ye(d,"numberingSystem","string",void 0,void 0);if(void 0!==b&&!Te.test(b))throw new RangeError("Malformed numbering system");v.nu=b;var F=ye(d,"hour12","boolean",void 0,void 0),w=ye(d,"hourCycle","string",["h11","h12","h23","h24"],void 0);void 0!==F&&(w=null),v.hc=w;var E=we(u,m,v,c,i,o);D.locale=E.locale,y=E.ca,D.calendar=y,D.hourCycle=E.hc,D.numberingSystem=E.nu;var S=E.dataLocale;D.dataLocale=S;var M=d.timeZone;if(void 0!==M){if(!Ee(M=String(M),{tzData:s,uppercaseLinks:f}))throw new RangeError("Invalid timeZoneName");M=T(M,{tzData:s,uppercaseLinks:f})}else M=l();D.timeZone=M,(v=Object.create(null)).weekday=ye(d,"weekday","string",["narrow","short","long"],void 0),v.era=ye(d,"era","string",["narrow","short","long"],void 0),v.year=ye(d,"year","string",["2-digit","numeric"],void 0),v.month=ye(d,"month","string",["2-digit","numeric","narrow","short","long"],void 0),v.day=ye(d,"day","string",["2-digit","numeric"],void 0),v.hour=ye(d,"hour","string",["2-digit","numeric"],void 0),v.minute=ye(d,"minute","string",["2-digit","numeric"],void 0),v.second=ye(d,"second","string",["2-digit","numeric"],void 0),v.timeZoneName=ye(d,"timeZoneName","string",["short","long"],void 0),v.fractionalSecondDigits=Ce(d,"fractionalSecondDigits",1,3,void 0);var A=i[S];g(!!A,"Missing locale data for "+S);var O=A.formats[y];if(!O)throw new RangeError('Calendar "'+y+'" is not supported. Try setting "calendar" to 1 of the following: '+Object.keys(A.formats).join(", "));var k=ye(d,"formatMatcher","string",["basic","best fit"],"best fit"),x=ye(d,"dateStyle","string",["full","long","medium","short"],void 0);D.dateStyle=x;var I,B,P,R=ye(d,"timeStyle","string",["full","long","medium","short"],void 0);if(D.timeStyle=R,void 0===x&&void 0===R)if("basic"===k)I=te(v,O);else{if(function(e){for(var r=0,t=["hour","minute","second"];r-1}function Ue(e){if(ze(e=e.replace(/([A-Z])/g,(function(e,r){return r.toLowerCase()}))))return!0;var r=e.split("-per-");if(2!==r.length)return!1;var t=r[0],n=r[1];return!(!ze(t)||!ze(n))}function _e(e,r,t){var n=(0,t.getInternalSlots)(e),a=n.notation,u=n.dataLocaleData,i=n.numberingSystem;switch(a){case"standard":return 0;case"scientific":return r;case"engineering":return 3*Math.floor(r/3);default:var o=n.compactDisplay,l=n.style,c=n.currencyDisplay,s=void 0;if("currency"===l&&"name"!==c){s=(u.numbers.currency[i]||u.numbers.currency[u.numbers.nu[0]]).short}else{var f=u.numbers.decimal[i]||u.numbers.decimal[u.numbers.nu[0]];s="long"===o?f.long:f.short}if(!s)return 0;var m=String(Math.pow(10,r)),g=Object.keys(s);if(mg[g.length-1])return g[g.length-1].length-1;var d=g.indexOf(m);if(-1===d)return 0;var p=g[d];return"0"===s[p].other?0:p.length-s[p].other.match(/0+/)[0].length}}function Ze(e,r,t){var n,i,o,l,c=t;if(0===e)n=u("0",c),i=0,o=0;else{var s=e.toString(),f=s.indexOf("e"),m=s.split("e"),g=m[0],d=m[1],p=g.replace(".","");if(f>=0&&p.length<=c)i=+d,n=p+u("0",c-p.length),o=e;else{var v=(i=a(e))-c+1,h=Math.round(D(e,v));D(h,c-1)>=10&&(i+=1,h=Math.floor(h/10)),n=h.toString(),o=D(h,c-1-i)}}if(i>=c-1?(n+=u("0",i-c+1),l=i+1):i>=0?(n=n.slice(0,i+1)+"."+n.slice(i+1),l=i+1):(n="0."+u("0",-i-1)+n,l=1),n.indexOf(".")>=0&&t>r){for(var y=t-r;y>0&&"0"===n[n.length-1];)n=n.slice(0,-1),y--;"."===n[n.length-1]&&(n=n.slice(0,-1))}return{formattedString:n,roundedNumber:o,integerDigitsCount:l};function D(e,r){return r<0?e*Math.pow(10,-r):e/Math.pow(10,r)}}function $e(e,r,t){var n,a,i=t,o=Math.round(e*Math.pow(10,i)),l=o/Math.pow(10,i);if(o<1e21)n=o.toString();else{var c=(n=o.toString()).split("e"),s=c[0],f=c[1];n=s.replace(".",""),n+=u("0",Math.max(+f-n.length+1,0))}if(0!==i){var m=n.length;if(m<=i)n=u("0",i+1-m)+n,m=i+1;var g=n.slice(0,m-i),d=n.slice(m-i);n=g+"."+d,a=g.length}else a=n.length;for(var p=t-r;p>0&&"0"===n[n.length-1];)n=n.slice(0,-1),p--;return"."===n[n.length-1]&&(n=n.slice(0,-1)),{formattedString:n,roundedNumber:l,integerDigitsCount:a}}function Ge(e,r){var t,n=r<0||I(r,-0);switch(n&&(r=-r),e.roundingType){case"significantDigits":t=Ze(r,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":t=$e(r,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(t=Ze(r,1,2)).integerDigitsCount>1&&(t=$e(r,0,0))}r=t.roundedNumber;var a=t.formattedString,i=t.integerDigitsCount,o=e.minimumIntegerDigits;i\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,Ve=new RegExp("^"+Ke.source),Je=new RegExp(Ke.source+"$"),Qe=/[#0](?:[\.,][#0]+)*/g;function Xe(e,r,t,n){var a,u,i=e.sign,o=e.exponent,l=e.magnitude,c=n.notation,s=n.style,f=n.numberingSystem,m=r.numbers.nu[0],g=null;if("compact"===c&&l&&(g=function(e,r,t,n,a,u,i){var o,l,c=e.roundedNumber,s=e.sign,f=e.magnitude,m=String(Math.pow(10,f)),g=t.numbers.nu[0];if("currency"===n&&"name"!==u){var d=null===(o=((p=t.numbers.currency)[i]||p[g]).short)||void 0===o?void 0:o[m];if(!d)return null;l=tr(r,c,d)}else{var p,v=((p=t.numbers.decimal)[i]||p[g])[a][m];if(!v)return null;l=tr(r,c,v)}if("0"===l)return null;return l=rr(l,s).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,t,r,s,n.compactDisplay,n.currencyDisplay,f)),"currency"===s&&"name"!==n.currencyDisplay){var d=r.currencies[n.currency];if(d)switch(n.currencyDisplay){case"code":a=n.currency;break;case"symbol":a=d.symbol;break;default:a=d.narrow}else a=n.currency}if(g)u=g;else if("decimal"===s||"unit"===s||"currency"===s&&"name"===n.currencyDisplay)u=rr((r.numbers.decimal[f]||r.numbers.decimal[m]).standard,i);else if("currency"===s){u=rr((v=r.numbers.currency[f]||r.numbers.currency[m])[n.currencySign],i)}else{u=rr(r.numbers.percent[f]||r.numbers.percent[m],i)}var p=Qe.exec(u)[0];if(u=u.replace(Qe,"{0}").replace(/'(.)'/g,"$1"),"currency"===s&&"name"!==n.currencyDisplay){var v,h=(v=r.numbers.currency[f]||r.numbers.currency[m]).currencySpacing.afterInsertBetween;h&&!Je.test(a)&&(u=u.replace("¤{0}","¤"+h+"{0}"));var y=v.currencySpacing.beforeInsertBetween;y&&!Ve.test(a)&&(u=u.replace("{0}¤","{0}"+y+"¤"))}for(var D=u.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),b=[],F=r.numbers.symbols[f]||r.numbers.symbols[m],w=0,E=D;w0?(f=l.slice(0,g),m=l.slice(g+1)):f=l,u&&("compact"!==t||c>=1e4)){var d=e.group,p=[],v=i.split(".")[0].split(","),h=3,y=3;v.length>1&&(h=v[v.length-1].length),v.length>2&&(y=v[v.length-2].length);var D=f.length-h;if(D>0){for(p.push(f.slice(D,D+h)),D-=y;D>0;D-=y)p.push(f.slice(D,D+y));p.push(f.slice(0,D+y))}else p.push(f);for(;p.length>0;){var b=p.pop();o.push({type:"integer",value:b}),p.length>0&&o.push({type:"group",value:d})}}else o.push({type:"integer",value:f});if(void 0!==m&&o.push({type:"decimal",value:e.decimal},{type:"fraction",value:m}),("scientific"===t||"engineering"===t)&&isFinite(c)){o.push({type:"exponentSeparator",value:e.exponential}),n<0&&(o.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var F=$e(n,0,0);o.push({type:"exponentInteger",value:F.formattedString})}return o}function rr(e,r){e.indexOf(";")<0&&(e=e+";-"+e);var t=e.split(";"),n=t[0],a=t[1];switch(r){case 0:return n;case-1:return a;default:return a.indexOf("-")>=0?a.replace(/-/g,"+"):"+"+n}}function tr(e,r,t){return t[e.select(r)]||t.other}function nr(e,r,t){var n,a,u,i=t.getInternalSlots,o=i(e),l=o.pl,c=o.dataLocaleData,s=o.numberingSystem,f=c.numbers.symbols[s]||c.numbers.symbols[c.numbers.nu[0]],m=0,g=0;if(isNaN(r))a=f.nan;else if(isFinite(r)){"percent"===o.style&&(r*=100),g=(n=Ye(e,r,{getInternalSlots:i}))[0],m=n[1];var d=Ge(o,r=g<0?r*Math.pow(10,-g):r/Math.pow(10,g));a=d.formattedString,r=d.roundedNumber}else a=f.infinity;switch(o.signDisplay){case"never":u=0;break;case"auto":u=I(r,0)||r>0||isNaN(r)?0:-1;break;case"always":u=I(r,0)||r>0||isNaN(r)?1:-1;break;default:u=0===r||isNaN(r)?0:r>0?1:-1}return Xe({roundedNumber:r,formattedString:a,exponent:g,magnitude:m,sign:u},o.dataLocaleData,l,o)}function ar(e,r,t){for(var n=nr(e,r,t),a=B(0),u=0,i=n;u-1?r:null}};function p(e){for(var t=[],n=1;n3?0:(e-e%10!=10?1:0)*e%10]}},b=p({},g),k=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length0?"-":"+")+k(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+k(Math.floor(Math.abs(t)/60),2)+":"+k(Math.abs(t)%60,2)}},E=function(e){return+e-1},S=[null,l],D=[null,u],P=["isPm",u,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],T=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],x=(h("monthNamesShort"),h("monthNames"),{default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"}),C=function(e,t,n){if(void 0===t&&(t=x.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var r=[];t=(t=x[t]||t).replace(d,(function(e,t){return r.push(t),"@@@"}));var i=p(p({},b),n);return(t=t.replace(a,(function(t){return w[t](e,i)}))).replace(/@@@/g,(function(){return r.shift()}))};var M=n(14516);var _,O,A=function(){try{(new Date).toLocaleDateString("i")}catch(e){return"RangeError"===e.name}return!1}(),z=(function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}}(),function(){try{(new Date).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()),j=(0,M.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric"})})),Y=A?function(e,t){return j(t).format(e)}:function(e){return C(e,"longDate")};(0,M.Z)((function(e){return new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric"})}));!function(e){e.language="language",e.system="system",e.comma_decimal="comma_decimal",e.decimal_comma="decimal_comma",e.space_comma="space_comma",e.none="none"}(_||(_={})),function(e){e.language="language",e.system="system",e.am_pm="12",e.twenty_four="24"}(O||(O={}));var H,F,R,N,I,Z=function(e){if(e.time_format===O.language||e.time_format===O.system){var t=e.time_format===O.language?e.language:void 0,n=(new Date).toLocaleString(t);return n.includes("AM")||n.includes("PM")}return e.time_format===O.am_pm},U=(0,M.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit",hour12:Z(e)})})),L=z?function(e,t){return U(t).format(e)}:function(e,t){return C(e,(Z(t)," A"))};(0,M.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:Z(e)})})),n(87507),n(41857),n(12064),n(52039);function B(e){return(B="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 V(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var i=K(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return q(this,n)}}function q(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?G(e):t}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(){Q=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!te(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,i[o])(a)||a);e=l.element,this.addElementPlacement(e,t),l.finisher&&r.push(l.finisher);var c=l.extras;if(c){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n',"\n ","\n "])),this.imageUrl?(0,i.dy)(F||(F=V([''])),this.imageUrl):this.iconPath?(0,i.dy)(R||(R=V(["'])),this.iconPath):"",this.label,this.version?(0,i.dy)(N||(N=V(['(',")"])),this.version):"")}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(I||(I=V(["\n :host {\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .label {\n margin-right: 4px;\n }\n .version {\n color: var(--secondary-text-color);\n }\n .icon {\n max-height: 22px;\n max-width: 22px;\n margin-right: 8px;\n }\n "])))}}]}}),i.oi);function De(e){return(De="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 Pe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){return(xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ie(e);if(t){var i=Ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Me(this,n)}}function Me(e,t){return!t||"object"!==De(t)&&"function"!=typeof t?_e(e):t}function _e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(){Oe=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!je(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,i[o])(a)||a);e=l.element,this.addElementPlacement(e,t),l.finisher&&r.push(l.finisher);var c=l.extras;if(c){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.name?1:-1}))),this.addons=(this.snapshot?this.snapshot.addons:null===(t=this.supervisor)||void 0===t?void 0:t.supervisor.addons).map((function(e){return{slug:e.slug,name:e.name,version:e.version,checked:!1}})).sort((function(e,t){return e.name>t.name?1:-1})),this.snapshotType=(null===(r=this.snapshot)||void 0===r?void 0:r.type)||"full",this.snapshotName=(null===(i=this.snapshot)||void 0===i?void 0:i.name)||"",this.snapshotHasPassword=(null===(o=this.snapshot)||void 0===o?void 0:o.protected)||!1)}},{kind:"method",key:"render",value:function(){var e=this;if(!this.supervisor)return(0,i.dy)(se||(se=Pe([""])));var t="partial"===this.snapshotType?this._getSection("folders"):void 0,n="partial"===this.snapshotType?this._getSection("addons"):void 0;return(0,i.dy)(ae||(ae=Pe(["\n ","\n ","\n ","\n ","\n ","\n ","\n "])),this.snapshot?(0,i.dy)(le||(le=Pe(['
    \n ',"\n (",")
    \n ","\n
    "])),"full"===this.snapshot.type?this.supervisor.localize("snapshot.full_snapshot"):this.supervisor.localize("snapshot.partial_snapshot"),Math.ceil(10*this.snapshot.size)/10+" MB",L(new Date(this.snapshot.date),this.hass.locale)):(0,i.dy)(ce||(ce=Pe(['\n ','\n
    \n
    \n \n \n \n
    ',"
    \n "])),(0,i.dy)(ye||(ye=Pe(["\n "])),this.supervisor.localize("snapshot.folders"),r.in3),this._toggleSection,t.checked,t.indeterminate,"folders",t.templates):"",null!=n&&n.templates.length?(0,i.dy)(ve||(ve=Pe(["\n \n ',"
    \n "])),(0,i.dy)(ge||(ge=Pe(["\n "])),this.supervisor.localize("snapshot.addons"),r.$Z0),this._toggleSection,n.checked,n.indeterminate,"addons",n.templates):""):"",this.snapshot?"":(0,i.dy)(be||(be=Pe(["\n \n "])),this.supervisor.localize("snapshot.password_protection"),this.snapshotHasPassword,this._toggleHasPassword),this.snapshotHasPassword?(0,i.dy)(ke||(ke=Pe(["\n \n \n \n "])),(0,i.dy)(Se||(Se=Pe(["\n "])),l.name,"addons"===e?r.$Z0:r.in3,"addons"===e&&(0,s.I)(t.hass.config.version,0,105)&&null!=o&&null!==(c=o.get(l.slug))&&void 0!==c&&c.icon?"/api/hassio/addons/".concat(l.slug,"/icon"):void 0,l.version),l,l.checked,e,t._updateSectionEntry)),l.checked&&a++}));var l=a===this[e].length;return{templates:n,checked:l,indeterminate:!l&&0!==a}}},{kind:"method",key:"_handleRadioValueChanged",value:function(e){var t=e.currentTarget;this[t.name]=t.value}},{kind:"method",key:"_handleTextValueChanged",value:function(e){this[e.currentTarget.name]=e.detail.value}},{kind:"method",key:"_toggleHasPassword",value:function(){this.snapshotHasPassword=!this.snapshotHasPassword}},{kind:"method",key:"_toggleSection",value:function(e){var t=e.currentTarget.section;this[t]=("addons"===t?this.addons:this.folders).map((function(t){return Object.assign({},t,{checked:e.currentTarget.checked})}))}},{kind:"method",key:"_updateSectionEntry",value:function(e){var t=e.currentTarget.item,n=e.currentTarget.section;this[n]=this[n].map((function(n){return n.slug===t.slug?Object.assign({},n,{checked:e.currentTarget.checked}):n}))}}]}}),i.oi)}}]); -//# sourceMappingURL=chunk.8006e4af53cfa34ca8c6.js.map \ No newline at end of file +//# sourceMappingURL=chunk.cdeb0efd2f12be167bb7.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.cdeb0efd2f12be167bb7.js.gz b/supervisor/api/panel/frontend_es5/chunk.cdeb0efd2f12be167bb7.js.gz new file mode 100644 index 000000000..2a4e5dfc2 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.cdeb0efd2f12be167bb7.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.cdeb0efd2f12be167bb7.js.map b/supervisor/api/panel/frontend_es5/chunk.cdeb0efd2f12be167bb7.js.map new file mode 100644 index 000000000..2d604b340 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.cdeb0efd2f12be167bb7.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.cdeb0efd2f12be167bb7.js","sources":["webpack://home-assistant-frontend/chunk.cdeb0efd2f12be167bb7.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js.gz b/supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js.gz deleted file mode 100644 index 0c0eaaa5a..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js.map b/supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js.map deleted file mode 100644 index bde42912f..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.ce83c8d4b6c751252bf1.js","sources":["webpack://home-assistant-frontend/chunk.ce83c8d4b6c751252bf1.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js b/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js new file mode 100644 index 000000000..a903d05d6 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[917],{14917:function(e,t,r){"use strict";r.r(t);r(87724);var n=r(55317),o=r(50424),i=r(55358),s=r(47181),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_",r="àáäâãåăæąçćčđďèéěėëêęğǵḧìíïîįłḿǹńňñòóöôœøṕŕřßşśšșťțùúüûǘůűūųẃẍÿýźžż·/_,:;",n="aaaaaaaaacccddeeeeeeegghiiiiilmnnnnooooooprrsssssttuuuuuuuuuwxyyzzz".concat(t).concat(t).concat(t).concat(t).concat(t).concat(t),o=new RegExp(r.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,t).replace(o,(function(e){return n.charAt(r.indexOf(e))})).replace(/&/g,"".concat(t,"and").concat(t)).replace(/[^\w-]+/g,"").replace(/-/,t).replace(new RegExp("/".concat(t).concat(t,"+/"),"g"),t).replace(new RegExp("/^".concat(t,"+/")),"").replace(new RegExp("/-+$/"),"")},c=(r(98762),r(39831),r(93559));r(52039);"".concat(location.protocol,"//").concat(location.host);var l,u,h,d,p,f,m=r(41682),y=r(77097),v=r(26765),g=r(11654);r(70452);function w(e){return(w="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 k(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function b(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(l){return void r(l)}a.done?t(c):Promise.resolve(c).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){b(i,n,o,s,a,"next",e)}function a(e){b(i,n,o,s,a,"throw",e)}s(void 0)}))}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=R(e);if(t){var o=R(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(){D=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var o=t.placement;if(t.kind===n&&("static"===o||"prototype"===o)){var i="static"===o?e:r;this.defineClassElement(i,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!T(e))return r.push(e);var t=this.decorateElement(e,o);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var i=this.decorateConstructor(r,t);return n.push.apply(n,i.finishers),i.finishers=n,i},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],o=e.decorators,i=o.length-1;i>=0;i--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,o[i])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[n])(o)||o);if(void 0!==i.finisher&&r.push(i.finisher),void 0!==i.elements){e=i.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n ","\n\n \n Restore\n \n\n \n \n \n \n Download Snapshot\n Delete Snapshot\n \n \n '])),this.closeDialog,(0,c.i)(this.hass,this._computeName),this._restoringSnapshot?(0,o.dy)(h||(h=k([" "]))):(0,o.dy)(d||(d=k(["\n "])),this.hass,this._dialogParams.supervisor,this._snapshot),this._error?(0,o.dy)(p||(p=k(['

    Error: ',"

    "])),this._error):"",this._restoringSnapshot,this._restoreClicked,this._handleMenuAction,(function(e){return e.stopPropagation()}),n.SXi):(0,o.dy)(l||(l=k([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[g.Qx,g.yu,(0,o.iv)(f||(f=k(["\n ha-svg-icon {\n color: var(--primary-text-color);\n }\n ha-circular-progress {\n display: block;\n text-align: center;\n }\n "])))]}},{kind:"method",key:"_handleMenuAction",value:function(e){switch(e.detail.index){case 0:this._downloadClicked();break;case 1:this._deleteClicked()}}},{kind:"method",key:"_restoreClicked",value:(R=_(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._snapshotContent.snapshotDetails(),this._restoringSnapshot=!0,"full"!==this._snapshotContent.snapshotType){e.next=7;break}return e.next=5,this._fullRestoreClicked(t);case 5:e.next=9;break;case 7:return e.next=9,this._partialRestoreClicked(t);case 9:this._restoringSnapshot=!1;case 10:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{kind:"method",key:"_partialRestoreClicked",value:(S=_(regeneratorRuntime.mark((function e(t){var r,n,o,i,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(null===(r=this._dialogParams)||void 0===r?void 0:r.supervisor)||"running"===(null===(n=this._dialogParams)||void 0===n?void 0:n.supervisor.info.state)){e.next=4;break}return e.next=3,(0,v.Ys)(this,{title:"Could not restore snapshot",text:"Restoring a snapshot is not possible right now because the system is in ".concat(null===(i=this._dialogParams)||void 0===i?void 0:i.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,v.g7)(this,{title:"Are you sure you want partially to restore this snapshot?",confirmText:"restore",dismissText:"cancel"});case 6:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:null!==(o=this._dialogParams)&&void 0!==o&&o.onboarding?((0,s.B)(this,"restoring"),fetch("/api/hassio/snapshots/".concat(this._snapshot.slug,"/restore/partial"),{method:"POST",body:JSON.stringify(t)}),this.closeDialog()):this.hass.callApi("POST","hassio/snapshots/".concat(this._snapshot.slug,"/restore/partial"),t).then((function(){a.closeDialog()}),(function(e){a._error=e.body.message}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{kind:"method",key:"_fullRestoreClicked",value:(b=_(regeneratorRuntime.mark((function e(t){var r,n,o,i,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(null===(r=this._dialogParams)||void 0===r?void 0:r.supervisor)||"running"===(null===(n=this._dialogParams)||void 0===n?void 0:n.supervisor.info.state)){e.next=4;break}return e.next=3,(0,v.Ys)(this,{title:"Could not restore snapshot",text:"Restoring a snapshot is not possible right now because the system is in ".concat(null===(i=this._dialogParams)||void 0===i?void 0:i.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,v.g7)(this,{title:"Are you sure you want to wipe your system and restore this snapshot?",confirmText:"restore",dismissText:"cancel"});case 6:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:null!==(o=this._dialogParams)&&void 0!==o&&o.onboarding?((0,s.B)(this,"restoring"),fetch("/api/hassio/snapshots/".concat(this._snapshot.slug,"/restore/full"),{method:"POST",body:JSON.stringify(t)}),this.closeDialog()):this.hass.callApi("POST","hassio/snapshots/".concat(this._snapshot.slug,"/restore/full"),t).then((function(){a.closeDialog()}),(function(e){a._error=e.body.message}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{kind:"method",key:"_deleteClicked",value:(w=_(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.g7)(this,{title:"Are you sure you want to delete this snapshot?",confirmText:"delete",dismissText:"cancel"});case 2:if(e.sent){e.next=4;break}return e.abrupt("return");case 4:this.hass.callApi("POST","hassio/snapshots/".concat(this._snapshot.slug,"/remove")).then((function(){t._dialogParams.onDelete&&t._dialogParams.onDelete(),t.closeDialog()}),(function(e){t._error=e.body.message}));case 5:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_downloadClicked",value:(r=_(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n=this.hass,o="/api/hassio/snapshots/".concat(this._snapshot.slug,"/download"),n.callWS({type:"auth/sign_path",path:o});case 3:t=e.sent,e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(0),e.next=10,(0,v.Ys)(this,{text:(0,m.js)(e.t0)});case 10:return e.abrupt("return");case 11:if(!window.location.href.includes("ui.nabu.casa")){e.next=17;break}return e.next=14,(0,v.g7)(this,{title:"Potential slow download",text:"Downloading snapshots over the Nabu Casa URL will take some time, it is recomended to use your local URL instead, do you want to continue?",confirmText:"continue",dismissText:"cancel"});case 14:if(e.sent){e.next=17;break}return e.abrupt("return");case 17:(r=document.createElement("a")).href=t.path,r.download="home_assistant_snapshot_".concat(a(this._computeName),".tar"),this.shadowRoot.appendChild(r),r.click(),this.shadowRoot.removeChild(r);case 23:case"end":return e.stop()}var n,o}),e,this,[[0,6]])}))),function(){return r.apply(this,arguments)})},{kind:"get",key:"_computeName",value:function(){return this._snapshot?this._snapshot.name||this._snapshot.slug:"Unnamed snapshot"}}]}}),o.oi)}}]); +//# sourceMappingURL=chunk.cf7a8e686721169c6488.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js.gz b/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js.gz new file mode 100644 index 000000000..c26be73a4 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js.map b/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js.map new file mode 100644 index 000000000..066e32c8e --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.cf7a8e686721169c6488.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.cf7a8e686721169c6488.js","sources":["webpack://home-assistant-frontend/chunk.cf7a8e686721169c6488.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js.gz b/supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js.gz deleted file mode 100644 index 823cc6556..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js.map b/supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js.map deleted file mode 100644 index 7a37c3130..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.dab21844f455a341c6bd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.dab21844f455a341c6bd.js","sources":["webpack://home-assistant-frontend/chunk.dab21844f455a341c6bd.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.e491a1ba2d7e57f72fef.js.gz b/supervisor/api/panel/frontend_es5/chunk.e491a1ba2d7e57f72fef.js.gz deleted file mode 100644 index 4c95eecb6..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.e491a1ba2d7e57f72fef.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.e491a1ba2d7e57f72fef.js.map b/supervisor/api/panel/frontend_es5/chunk.e491a1ba2d7e57f72fef.js.map deleted file mode 100644 index e1d8bbffd..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.e491a1ba2d7e57f72fef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.e491a1ba2d7e57f72fef.js","sources":["webpack://home-assistant-frontend/chunk.e491a1ba2d7e57f72fef.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.7c5f602fe5899e035790.js b/supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.7c5f602fe5899e035790.js rename to supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js index 1beb07edb..33e0aed9b 100644 --- a/supervisor/api/panel/frontend_es5/chunk.7c5f602fe5899e035790.js +++ b/supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[281],{1281:function(e,t,r){"use strict";r.r(t);r(82592),r(77956);var n,i,o,a,s,l,c=r(50424),u=r(55358),p=r(76666),d=r(47181),f=(r(93559),r(59189),r(11654));function h(e){return(h="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 m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function y(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,i)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(){E=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!C(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,i[o])(s)||s);e=l.element,this.addElementPlacement(e,t),l.finisher&&n.push(l.finisher);var c=l.extras;if(c){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n \n \n "])),e,e,this._dialogClosed,this._params.title?this._params.title:this._params.confirmation&&this.hass.localize("ui.dialogs.generic.default_confirmation_title"),this._params.text?(0,c.dy)(o||(o=m(["\n \n ","\n

    \n "])),(0,p.$)({"no-bottom-padding":Boolean(this._params.prompt),warning:Boolean(this._params.warning)}),this._params.text):"",this._params.prompt?(0,c.dy)(a||(a=m(["\n \n "])),this._value,this._handleKeyUp,this._valueChanged,this._params.inputLabel?this._params.inputLabel:"",this._params.inputType?this._params.inputType:"text"):"",e&&(0,c.dy)(s||(s=m(["\n \n ',"\n \n "])),this._dismiss,this._params.dismissText?this._params.dismissText:this.hass.localize("ui.dialogs.generic.cancel")),this._confirm,!this._params.prompt,this._params.confirmText?this._params.confirmText:this.hass.localize("ui.dialogs.generic.ok"))}},{kind:"method",key:"_valueChanged",value:function(e){this._value=e.detail.value}},{kind:"method",key:"_dismiss",value:function(){var e;null!==(e=this._params)&&void 0!==e&&e.cancel&&this._params.cancel(),this._close()}},{kind:"method",key:"_handleKeyUp",value:function(e){13===e.keyCode&&this._confirm()}},{kind:"method",key:"_confirm",value:function(){this._params.confirm&&this._params.confirm(this._value),this._close()}},{kind:"method",key:"_dialogClosed",value:function(e){"ignore"!==e.detail.action&&this._dismiss()}},{kind:"method",key:"_close",value:function(){this._params&&(this._params=void 0,(0,d.B)(this,"dialog-closed",{dialog:this.localName}))}},{kind:"get",static:!0,key:"styles",value:function(){return[f.yu,(0,c.iv)(l||(l=m(["\n :host([inert]) {\n pointer-events: initial !important;\n cursor: initial !important;\n }\n a {\n color: var(--primary-color);\n }\n p {\n margin: 0;\n padding-top: 6px;\n padding-bottom: 24px;\n color: var(--primary-text-color);\n }\n .no-bottom-padding {\n padding-bottom: 0;\n }\n .secondary {\n color: var(--secondary-text-color);\n }\n ha-dialog {\n /* Place above other dialogs */\n --dialog-z-index: 104;\n }\n .warning {\n color: var(--warning-color);\n }\n "])))]}}]}}),c.oi)}}]); -//# sourceMappingURL=chunk.7c5f602fe5899e035790.js.map \ No newline at end of file +//# sourceMappingURL=chunk.ee70ac715a8f3e33a1be.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js.gz b/supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js.gz new file mode 100644 index 000000000..efd056946 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js.map b/supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js.map new file mode 100644 index 000000000..7bc5ffecb --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.ee70ac715a8f3e33a1be.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.ee70ac715a8f3e33a1be.js","sources":["webpack://home-assistant-frontend/chunk.ee70ac715a8f3e33a1be.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js b/supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js rename to supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js index 29a59b015..483602b29 100644 --- a/supervisor/api/panel/frontend_es5/chunk.a54a624580f6c54a9834.js +++ b/supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[511],{46511:function(e,t,r){"use strict";r.r(t);r(82592);var n,i,o,a,s,c,l=r(50424),u=r(55358),d=r(47181),p=(r(4483),r(93559),r(14089),r(52039),r(59189),r(41682)),f=r(77097),h=r(11654);function m(e){return(m="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 y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function v(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function g(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){v(o,n,i,a,s,"next",e)}function s(e){v(o,n,i,a,s,"throw",e)}a(void 0)}))}}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?P(e):t}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(){S=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!A(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n ","\n \n "])),this._opened,null===this._action?(0,l.dy)(o||(o=y(['\n

    \n ',"\n

    \n
    \n
    \n ",'\n
    \n\n \n \n ','\n \n \n ',"\n \n \n \n \n \n ',"\n \n \n ',"\n "])),this._dialogParams.supervisor.localize("confirm.update.title","name",this._dialogParams.name),this._dialogParams.supervisor.localize("confirm.update.text","name",this._dialogParams.name,"version",this._dialogParams.version),this._dialogParams.supervisor.localize("dialog.update.snapshot"),this._dialogParams.supervisor.localize("dialog.update.create_snapshot","name",this._dialogParams.name),this._createSnapshot,this._toggleSnapshot,this.closeDialog,this._dialogParams.supervisor.localize("common.cancel"),void 0!==this._error,this._update,this._dialogParams.supervisor.localize("common.update")):(0,l.dy)(a||(a=y(['\n \n

    \n ',"\n

    "])),"update"===this._action?this._dialogParams.supervisor.localize("dialog.update.updating","name",this._dialogParams.name,"version",this._dialogParams.version):this._dialogParams.supervisor.localize("dialog.update.snapshotting","name",this._dialogParams.name)),this._error?(0,l.dy)(s||(s=y(['

    ',"

    "])),this._error):""):(0,l.dy)(n||(n=y([""])))}},{kind:"method",key:"_toggleSnapshot",value:function(){this._createSnapshot=!this._createSnapshot}},{kind:"method",key:"_update",value:(r=g(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._createSnapshot){e.next=12;break}return this._action="snapshot",e.prev=2,e.next=5,(0,f.iN)(this.hass,this._dialogParams.snapshotParams);case 5:e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(2),this._error=(0,p.js)(e.t0),this._action=null,e.abrupt("return");case 12:return this._action="update",e.prev=13,e.next=16,this._dialogParams.updateHandler();case 16:e.next=23;break;case 18:return e.prev=18,e.t1=e.catch(13),this.hass.connection.connected&&!(0,p.yz)(e.t1)&&(this._error=(0,p.js)(e.t1)),this._action=null,e.abrupt("return");case 23:this.closeDialog();case 24:case"end":return e.stop()}}),e,this,[[2,7],[13,18]])}))),function(){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[h.Qx,h.yu,(0,l.iv)(c||(c=y(["\n .form {\n color: var(--primary-text-color);\n }\n\n ha-settings-row {\n margin-top: 32px;\n padding: 0;\n }\n\n ha-circular-progress {\n display: block;\n margin: 32px;\n text-align: center;\n }\n\n .progress-text {\n text-align: center;\n }\n "])))]}}]}}),l.oi)}}]); -//# sourceMappingURL=chunk.a54a624580f6c54a9834.js.map \ No newline at end of file +//# sourceMappingURL=chunk.ef8eca24ab06c5a84f1f.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js.gz b/supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js.gz new file mode 100644 index 000000000..00c7bbc64 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js.map b/supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js.map new file mode 100644 index 000000000..03e0012dc --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.ef8eca24ab06c5a84f1f.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.ef8eca24ab06c5a84f1f.js","sources":["webpack://home-assistant-frontend/chunk.ef8eca24ab06c5a84f1f.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js b/supervisor/api/panel/frontend_es5/chunk.f93b6ebff9e18ecb569a.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js rename to supervisor/api/panel/frontend_es5/chunk.f93b6ebff9e18ecb569a.js index ba347c9c5..84a67b0cc 100644 --- a/supervisor/api/panel/frontend_es5/chunk.ce83c8d4b6c751252bf1.js +++ b/supervisor/api/panel/frontend_es5/chunk.f93b6ebff9e18ecb569a.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[251],{98251:function(e,t){"use strict";function n(e){return(n="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)}Object.defineProperty(t,"__esModule",{value:!0});var r=new WeakMap,o=new WeakMap;function i(e){var t=r.get(e);return console.assert(null!=t,"'this' is expected an Event object, but got",e),t}function l(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"==typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function u(e,t){r.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var n=Object.keys(t),o=0;o0){for(var e=new Array(arguments.length),t=0;t=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n
    ','
    \n
    \n ',"\n ","\n ","\n
    \n \n "])),this.showTopbar?(0,i.dy)(E||(E=T(['
    '])),this.topbarClass):"",this.iconImage?(0,i.dy)(S||(S=T(['\n
    \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n \n \n \n \n \n '])),e)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(i||(i=u(["\n rect {\n height: 100%;\n }\n rect:first-child {\n width: 100%;\n fill: var(--ha-bar-background-color, var(--secondary-background-color));\n }\n rect:last-child {\n fill: var(--ha-bar-primary-color, var(--primary-color));\n rx: var(--ha-bar-border-radius, 4px);\n }\n svg {\n border-radius: var(--ha-bar-border-radius, 4px);\n height: 12px;\n width: 100%;\n }\n "])))}}]}}),o.oi),n(14089);function C(e){return(C="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 A(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?I(e):t}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(){D=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!N(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ',' \n
    \n ',' % \n div[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n display: flex;\n justify-content: space-between;\n }\n ha-bar {\n --ha-bar-primary-color: var(\n --hassio-bar-ok-color,\n var(--success-color)\n );\n }\n .target-warning {\n --ha-bar-primary-color: var(\n --hassio-bar-warning-color,\n var(--warning-color)\n );\n }\n .target-critical {\n --ha-bar-primary-color: var(\n --hassio-bar-critical-color,\n var(--error-color)\n );\n }\n .value {\n width: 48px;\n padding-right: 4px;\n flex-shrink: 0;\n }\n '])))}}]}}),o.oi)},66903:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(47181),i=function(e,t){(0,r.B)(e,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return Promise.all([n.e(546),n.e(884)]).then(n.bind(n,56884))},dialogParams:t})}},3410:function(e,t,n){"use strict";n.r(t),n.d(t,{DialogHassioNetwork:function(){return qr}});n(82592),n(61359),n(62613),n(87724);function r(e){return(r="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 i(e,t,n,i){var o,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(a<3?o(s):a>3?o(t,n,s):o(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}Object.create;Object.create;var o=n(55704);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,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}Object.create;Object.create;var c,l=n(78220),u=n(87480),d=n(72774),f={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},p={CONTENT_SELECTOR:".mdc-tab-indicator__content"},h=function(e){function t(n){return e.call(this,(0,u.__assign)((0,u.__assign)({},t.defaultAdapter),n))||this}return(0,u.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},t}(d.K),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.__extends)(t,e),t.prototype.activate=function(){this.adapter.addClass(h.cssClasses.ACTIVE)},t.prototype.deactivate=function(){this.adapter.removeClass(h.cssClasses.ACTIVE)},t}(h),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.__extends)(t,e),t.prototype.activate=function(e){if(e){var t=this.computeContentClientRect(),n=e.width/t.width,r=e.left-t.left;this.adapter.addClass(h.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+r+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter.removeClass(h.cssClasses.NO_TRANSITION),this.adapter.addClass(h.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(h.cssClasses.ACTIVE)},t.prototype.deactivate=function(){this.adapter.removeClass(h.cssClasses.ACTIVE)},t}(h),v=n(81471);function b(e){return(b="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 g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n\n ',"\n \n "])),(0,v.$)({"mdc-tab-indicator--fade":this.fade}),(0,v.$)(e),this.icon)}},{key:"updated",value:function(e){e.has("fade")&&this.createFoundation()}},{key:"createAdapter",value:function(){var e=this;return Object.assign(Object.assign({},(0,l.q)(this.mdcRoot)),{computeContentClientRect:function(){return e.contentElement.getBoundingClientRect()},setContentStyleProperty:function(t,n){return e.contentElement.style.setProperty(t,n)}})}},{key:"computeContentClientRect",value:function(){return this.mdcFoundation.computeContentClientRect()}},{key:"activate",value:function(e){this.mdcFoundation.activate(e)}},{key:"deactivate",value:function(){this.mdcFoundation.deactivate()}}])&&w(t.prototype,n),r&&w(t,r),a}(l.H);s([(0,o.IO)(".mdc-tab-indicator")],O.prototype,"mdcRoot",void 0),s([(0,o.IO)(".mdc-tab-indicator__content")],O.prototype,"contentElement",void 0),s([(0,o.Cb)()],O.prototype,"icon",void 0),s([(0,o.Cb)({type:Boolean})],O.prototype,"fade",void 0);var C=(0,o.iv)(S||(S=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}'])));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 P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var i=I(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(n,e);var t=R(n);function n(){return P(this,n),t.apply(this,arguments)}return n}(O);j.styles=C,j=s([(0,o.Mo)("mwc-tab-indicator")],j);n(46427);var D,z,M,N,F,Z,B,H=n(14114),U=n(98734),V={ACTIVE:"mdc-tab--active"},G={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},K=function(e){function t(n){var r=e.call(this,(0,u.__assign)((0,u.__assign)({},t.defaultAdapter),n))||this;return r.focusOnActivate=!0,r}return(0,u.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return V},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return G},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),t.prototype.handleClick=function(){this.adapter.notifyInteracted()},t.prototype.isActive=function(){return this.adapter.hasClass(V.ACTIVE)},t.prototype.setFocusOnActivate=function(e){this.focusOnActivate=e},t.prototype.activate=function(e){this.adapter.addClass(V.ACTIVE),this.adapter.setAttr(G.ARIA_SELECTED,"true"),this.adapter.setAttr(G.TABINDEX,"0"),this.adapter.activateIndicator(e),this.focusOnActivate&&this.adapter.focus()},t.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(V.ACTIVE),this.adapter.setAttr(G.ARIA_SELECTED,"false"),this.adapter.setAttr(G.TABINDEX,"-1"),this.adapter.deactivateIndicator())},t.prototype.computeDimensions=function(){var e=this.adapter.getOffsetWidth(),t=this.adapter.getOffsetLeft(),n=this.adapter.getContentOffsetWidth(),r=this.adapter.getContentOffsetLeft();return{contentLeft:t+r,contentRight:t+r+n,rootLeft:t,rootRight:t+e}},t}(d.K);function W(e){return(W="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 q(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function Y(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){q(o,r,i,a,s,"next",e)}function s(e){q(o,r,i,a,s,"throw",e)}a(void 0)}))}}function $(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var n=0;n',""])),this.icon));var n=(0,o.dy)(M||(M=$([""])));return this.label&&(n=(0,o.dy)(N||(N=$(['\n ',""])),this.label)),(0,o.dy)(F||(F=$(['\n \n \n ',"\n ","\n ","\n \n ","\n ","\n "])),this.handleClick,(0,v.$)(e),this.focus,this.handleBlur,this.handleRippleMouseDown,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleTouchStart,this.handleRippleDeactivate,this.handleRippleDeactivate,t,n,this.isMinWidthIndicator?this.renderIndicator():"",this.isMinWidthIndicator?"":this.renderIndicator(),this.renderRipple())}},{key:"renderIndicator",value:function(){return(0,o.dy)(Z||(Z=$([''])),this.indicatorIcon,this.isFadingIndicator)}},{key:"renderRipple",value:function(){return this.shouldRenderRipple?(0,o.dy)(B||(B=$(["\n \n "]))):""}},{key:"createAdapter",value:function(){var e,t,n=this;return Object.assign(Object.assign({},(0,l.q)(this.mdcRoot)),{setAttr:function(e,t){return n.mdcRoot.setAttribute(e,t)},activateIndicator:(t=Y(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.tabIndicator.updateComplete;case 2:n.tabIndicator.activate(t);case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),deactivateIndicator:(e=Y(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.tabIndicator.updateComplete;case 2:n.tabIndicator.deactivate();case 3:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),notifyInteracted:function(){return n.dispatchEvent(new CustomEvent(K.strings.INTERACTED_EVENT,{detail:{tabId:n.id},bubbles:!0,composed:!0,cancelable:!0}))},getOffsetLeft:function(){return n.offsetLeft},getOffsetWidth:function(){return n.mdcRoot.offsetWidth},getContentOffsetLeft:function(){return n._contentElement.offsetLeft},getContentOffsetWidth:function(){return n._contentElement.offsetWidth},focus:function(){n.initFocus?n.initFocus=!1:n.mdcRoot.focus()}})}},{key:"activate",value:function(e){var t=this;e||(this.initFocus=!0),this.mdcFoundation?(this.mdcFoundation.activate(e),this.setActive(this.mdcFoundation.isActive())):this.updateComplete.then((function(){t.mdcFoundation.activate(e),t.setActive(t.mdcFoundation.isActive())}))}},{key:"deactivate",value:function(){this.mdcFoundation.deactivate(),this.setActive(this.mdcFoundation.isActive())}},{key:"setActive",value:function(e){var t=this.active;t!==e&&(this._active=e,this.requestUpdate("active",t))}},{key:"computeDimensions",value:function(){return this.mdcFoundation.computeDimensions()}},{key:"computeIndicatorClientRect",value:function(){return this.tabIndicator.computeContentClientRect()}},{key:"focus",value:function(){this.mdcRoot.focus(),this.handleFocus()}},{key:"handleClick",value:function(){this.handleFocus(),this.mdcFoundation.handleClick()}},{key:"handleFocus",value:function(){this.handleRippleFocus()}},{key:"handleBlur",value:function(){this.handleRippleBlur()}},{key:"handleRippleMouseDown",value:function(e){var t=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),t.handleRippleDeactivate()})),this.rippleHandlers.startPress(e)}},{key:"handleRippleTouchStart",value:function(e){this.rippleHandlers.startPress(e)}},{key:"handleRippleDeactivate",value:function(){this.rippleHandlers.endPress()}},{key:"handleRippleMouseEnter",value:function(){this.rippleHandlers.startHover()}},{key:"handleRippleMouseLeave",value:function(){this.rippleHandlers.endHover()}},{key:"handleRippleFocus",value:function(){this.rippleHandlers.startFocus()}},{key:"handleRippleBlur",value:function(){this.rippleHandlers.endFocus()}},{key:"isRippleActive",get:function(){var e;return(null===(e=this.rippleElement)||void 0===e?void 0:e.isActive)||!1}}])&&J(t.prototype,n),r&&J(t,r),a}(l.H);ae.shadowRootOptions={mode:"open",delegatesFocus:!0},i([(0,o.IO)(".mdc-tab")],ae.prototype,"mdcRoot",void 0),i([(0,o.IO)("mwc-tab-indicator")],ae.prototype,"tabIndicator",void 0),i([(0,o.Cb)()],ae.prototype,"label",void 0),i([(0,o.Cb)()],ae.prototype,"icon",void 0),i([(0,o.Cb)({type:Boolean})],ae.prototype,"hasImageIcon",void 0),i([(0,o.Cb)({type:Boolean})],ae.prototype,"isFadingIndicator",void 0),i([(0,o.Cb)({type:Boolean})],ae.prototype,"minWidth",void 0),i([(0,o.Cb)({type:Boolean})],ae.prototype,"isMinWidthIndicator",void 0),i([(0,o.Cb)({type:Boolean,reflect:!0,attribute:"active"})],ae.prototype,"active",null),i([(0,o.Cb)()],ae.prototype,"indicatorIcon",void 0),i([(0,o.Cb)({type:Boolean})],ae.prototype,"stacked",void 0),i([(0,H.P)(function(){var e=Y(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.updateComplete;case 2:this.mdcFoundation.setFocusOnActivate(t);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,o.Cb)({type:Boolean})],ae.prototype,"focusOnActivate",void 0),i([(0,o.IO)(".mdc-tab__content")],ae.prototype,"_contentElement",void 0),i([(0,o.SB)()],ae.prototype,"shouldRenderRipple",void 0),i([(0,o.GC)("mwc-ripple")],ae.prototype,"ripple",void 0),i([(0,o.hO)({passive:!0})],ae.prototype,"handleRippleTouchStart",null);var se=(0,o.iv)(ie||(ie=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase);padding-right:24px;padding-left:24px;min-width:90px;position:relative;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;background:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{position:relative;display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;width:24px;height:24px;font-size:24px;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tab--active .mdc-tab__icon{color:#6200ee;color:var(--mdc-theme-primary, #6200ee);fill:currentColor}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform,opacity}:host{outline:none;flex:1 0 auto;display:flex;justify-content:center;-webkit-tap-highlight-color:transparent}.mdc-tab{height:var(--mdc-tab-height, 48px);margin-left:0;margin-right:0;padding-right:var(--mdc-tab-horizontal-padding, 24px);padding-left:var(--mdc-tab-horizontal-padding, 24px)}.mdc-tab--stacked{height:var(--mdc-tab-stacked-height, 72px)}.mdc-tab::-moz-focus-inner{border:0}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mdc-tab-text-label-color-default, rgba(0, 0, 0, 0.6))}.mdc-tab:not(.mdc-tab--active) .mdc-tab__icon{color:var(--mdc-tab-color-default, rgba(0, 0, 0, 0.54))}'])));function ce(e){return(ce="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 le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){return(ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var i=pe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(e,t){return!t||"object"!==ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ue(e,t)}(n,e);var t=de(n);function n(){return le(this,n),t.apply(this,arguments)}return n}(ae);function me(e){return(me="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)}he.styles=se,he=i([(0,o.Mo)("mwc-tab")],he);function ye(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":me(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}Object.create;Object.create;function ve(e){return(ve="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 be(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":ve(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}Object.create;Object.create;var ge,we=n(58014),_e={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},ke={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},xe=function(e){this.adapter=e},Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.__extends)(t,e),t.prototype.getScrollPositionRTL=function(){var e=this.adapter.getScrollAreaScrollLeft(),t=this.calculateScrollEdges().right;return Math.round(t-e)},t.prototype.scrollToRTL=function(e){var t=this.calculateScrollEdges(),n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t.right-e);return{finalScrollPosition:r,scrollDelta:r-n}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(t-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.getAnimatingScrollPosition=function(e){return e},t.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.min(Math.max(t.left,e),t.right)},t}(xe),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.__extends)(t,e),t.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},t.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(t-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.getAnimatingScrollPosition=function(e,t){return e-t},t.prototype.calculateScrollEdges=function(){var e=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-e,right:0}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.max(Math.min(t.right,e),t.left)},t}(xe),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.__extends)(t,e),t.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},t.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(e);return{finalScrollPosition:n,scrollDelta:t-n}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(t+e);return{finalScrollPosition:n,scrollDelta:t-n}},t.prototype.getAnimatingScrollPosition=function(e,t){return e+t},t.prototype.calculateScrollEdges=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.min(Math.max(t.right,e),t.left)},t}(xe),Ce=function(e){function t(n){var r=e.call(this,(0,u.__assign)((0,u.__assign)({},t.defaultAdapter),n))||this;return r.isAnimating=!1,r}return(0,u.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return _e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ke},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-e+"px"),this.adapter.addScrollAreaClass(t.cssClasses.SCROLL_AREA_SCROLL)},t.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var e=this.calculateCurrentTranslateX();return this.adapter.getScrollAreaScrollLeft()-e},t.prototype.handleInteraction=function(){this.isAnimating&&this.stopScrollAnimation()},t.prototype.handleTransitionEnd=function(e){var n=e.target;this.isAnimating&&this.adapter.eventTargetMatchesSelector(n,t.strings.CONTENT_SELECTOR)&&(this.isAnimating=!1,this.adapter.removeClass(t.cssClasses.ANIMATING))},t.prototype.incrementScroll=function(e){0!==e&&this.animate(this.getIncrementScrollOperation(e))},t.prototype.incrementScrollImmediate=function(e){if(0!==e){var t=this.getIncrementScrollOperation(e);0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition))}},t.prototype.scrollTo=function(e){this.isRTL()?this.scrollToImplRTL(e):this.scrollToImpl(e)},t.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},t.prototype.calculateCurrentTranslateX=function(){var e=this.adapter.getScrollContentStyleValue("transform");if("none"===e)return 0;var t=/\((.+?)\)/.exec(e);if(!t)return 0;var n=t[1],r=(0,u.__read)(n.split(","),6),i=(r[0],r[1],r[2],r[3],r[4]);r[5];return parseFloat(i)},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.min(Math.max(t.left,e),t.right)},t.prototype.computeCurrentScrollPositionRTL=function(){var e=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(e)},t.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},t.prototype.scrollToImpl=function(e){var t=this.getScrollPosition(),n=this.clampScrollValue(e),r=n-t;this.animate({finalScrollPosition:n,scrollDelta:r})},t.prototype.scrollToImplRTL=function(e){var t=this.getRTLScroller().scrollToRTL(e);this.animate(t)},t.prototype.getIncrementScrollOperation=function(e){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(e);var t=this.getScrollPosition(),n=e+t,r=this.clampScrollValue(n);return{finalScrollPosition:r,scrollDelta:r-t}},t.prototype.animate=function(e){var n=this;0!==e.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+e.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame((function(){n.adapter.addClass(t.cssClasses.ANIMATING),n.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating=!0)},t.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var e=this.getAnimatingScrollPosition();this.adapter.removeClass(t.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(e)},t.prototype.getAnimatingScrollPosition=function(){var e=this.calculateCurrentTranslateX(),t=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(t,e):t-e},t.prototype.rtlScrollerFactory=function(){var e=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(e-1);var t=this.adapter.getScrollAreaScrollLeft();if(t<0)return this.adapter.setScrollAreaScrollLeft(e),new Se(this.adapter);var n=this.adapter.computeScrollAreaClientRect(),r=this.adapter.computeScrollContentClientRect(),i=Math.round(r.right-n.right);return this.adapter.setScrollAreaScrollLeft(e),i===t?new Oe(this.adapter):new Ee(this.adapter)},t.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},t}(d.K);function Ae(e){return(Ae="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 Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var n=0;n\n
    \n
    \n
    \n
    \n '])),this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleTransitionEnd)}},{key:"createAdapter",value:function(){var e=this;return Object.assign(Object.assign({},(0,l.q)(this.mdcRoot)),{eventTargetMatchesSelector:function(e,t){return(0,we.wB)(e,t)},addScrollAreaClass:function(t){return e.scrollAreaElement.classList.add(t)},setScrollAreaStyleProperty:function(t,n){return e.scrollAreaElement.style.setProperty(t,n)},setScrollContentStyleProperty:function(t,n){return e.scrollContentElement.style.setProperty(t,n)},getScrollContentStyleValue:function(t){return window.getComputedStyle(e.scrollContentElement).getPropertyValue(t)},setScrollAreaScrollLeft:function(t){return e.scrollAreaElement.scrollLeft=t},getScrollAreaScrollLeft:function(){return e.scrollAreaElement.scrollLeft},getScrollContentOffsetWidth:function(){return e.scrollContentElement.offsetWidth},getScrollAreaOffsetWidth:function(){return e.scrollAreaElement.offsetWidth},computeScrollAreaClientRect:function(){return e.scrollAreaElement.getBoundingClientRect()},computeScrollContentClientRect:function(){return e.scrollContentElement.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return-1===e._scrollbarHeight&&(e.scrollAreaElement.style.overflowX="scroll",e._scrollbarHeight=e.scrollAreaElement.offsetHeight-e.scrollAreaElement.clientHeight,e.scrollAreaElement.style.overflowX=""),e._scrollbarHeight}})}},{key:"getScrollPosition",value:function(){return this.mdcFoundation.getScrollPosition()}},{key:"getScrollContentWidth",value:function(){return this.scrollContentElement.offsetWidth}},{key:"incrementScrollPosition",value:function(e){this.mdcFoundation.incrementScroll(e)}},{key:"scrollToPosition",value:function(e){this.mdcFoundation.scrollTo(e)}}])&&Te(t.prototype,n),r&&Te(t,r),a}(l.H);be([(0,o.IO)(".mdc-tab-scroller")],ze.prototype,"mdcRoot",void 0),be([(0,o.IO)(".mdc-tab-scroller__scroll-area")],ze.prototype,"scrollAreaElement",void 0),be([(0,o.IO)(".mdc-tab-scroller__scroll-content")],ze.prototype,"scrollContentElement",void 0),be([(0,o.hO)({passive:!0})],ze.prototype,"_handleInteraction",null);var Me=(0,o.iv)(De||(De=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}:host{display:flex}.mdc-tab-scroller{flex:1}"])));function Ne(e){return(Ne="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 Fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ue(e);if(t){var i=Ue(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ze(e,t)}(n,e);var t=Be(n);function n(){return Fe(this,n),t.apply(this,arguments)}return n}(ze);Ve.styles=Me,Ve=be([(0,o.Mo)("mwc-tab-scroller")],Ve);var Ge={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},Ke={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},We=new Set;We.add(Ge.ARROW_LEFT_KEY),We.add(Ge.ARROW_RIGHT_KEY),We.add(Ge.END_KEY),We.add(Ge.HOME_KEY),We.add(Ge.ENTER_KEY),We.add(Ge.SPACE_KEY);var qe=new Map;qe.set(Ke.ARROW_LEFT_KEYCODE,Ge.ARROW_LEFT_KEY),qe.set(Ke.ARROW_RIGHT_KEYCODE,Ge.ARROW_RIGHT_KEY),qe.set(Ke.END_KEYCODE,Ge.END_KEY),qe.set(Ke.HOME_KEYCODE,Ge.HOME_KEY),qe.set(Ke.ENTER_KEYCODE,Ge.ENTER_KEY),qe.set(Ke.SPACE_KEYCODE,Ge.SPACE_KEY);var Ye,$e=function(e){function t(n){var r=e.call(this,(0,u.__assign)((0,u.__assign)({},t.defaultAdapter),n))||this;return r.useAutomaticActivation=!1,r}return(0,u.__extends)(t,e),Object.defineProperty(t,"strings",{get:function(){return Ge},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return Ke},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),t.prototype.setUseAutomaticActivation=function(e){this.useAutomaticActivation=e},t.prototype.activateTab=function(e){var t,n=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(e)&&e!==n&&(-1!==n&&(this.adapter.deactivateTabAtIndex(n),t=this.adapter.getTabIndicatorClientRectAtIndex(n)),this.adapter.activateTabAtIndex(e,t),this.scrollIntoView(e),this.adapter.notifyTabActivated(e))},t.prototype.handleKeyDown=function(e){var t=this.getKeyFromEvent(e);if(void 0!==t)if(this.isActivationKey(t)||e.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(t))return;var n=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),t);this.adapter.setActiveTab(n),this.scrollIntoView(n)}else{var r=this.adapter.getFocusedTabIndex();if(this.isActivationKey(t))this.adapter.setActiveTab(r);else{n=this.determineTargetFromKey(r,t);this.adapter.focusTabAtIndex(n),this.scrollIntoView(n)}}},t.prototype.handleTabInteraction=function(e){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(e.detail.tabId))},t.prototype.scrollIntoView=function(e){this.indexIsInRange(e)&&(0!==e?e!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(e):this.scrollIntoViewImpl(e):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},t.prototype.determineTargetFromKey=function(e,t){var n=this.isRTL(),r=this.adapter.getTabListLength()-1,i=e;return t===Ge.END_KEY?i=r:t===Ge.ARROW_LEFT_KEY&&!n||t===Ge.ARROW_RIGHT_KEY&&n?i-=1:t===Ge.ARROW_RIGHT_KEY&&!n||t===Ge.ARROW_LEFT_KEY&&n?i+=1:i=0,i<0?i=r:i>r&&(i=0),i},t.prototype.calculateScrollIncrement=function(e,t,n,r){var i=this.adapter.getTabDimensionsAtIndex(t),o=i.contentLeft-n-r,a=i.contentRight-n-Ke.EXTRA_SCROLL_AMOUNT,s=o+Ke.EXTRA_SCROLL_AMOUNT;return te?Math.max(s,0):Math.min(c,0)},t.prototype.findAdjacentTabIndexClosestToEdge=function(e,t,n,r){var i=t.rootLeft-n,o=t.rootRight-n-r,a=i+o;return i<0||a<0?e-1:o>0||a>0?e+1:-1},t.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(e,t,n,r,i){var o=i-t.rootLeft-r-n,a=i-t.rootRight-n,s=o+a;return o>0||s>0?e+1:a<0||s<0?e-1:-1},t.prototype.getKeyFromEvent=function(e){return We.has(e.key)?e.key:qe.get(e.keyCode)},t.prototype.isActivationKey=function(e){return e===Ge.SPACE_KEY||e===Ge.ENTER_KEY},t.prototype.indexIsInRange=function(e){return e>=0&&e\n \n
    \n '])),this._handleTabInteraction,this._handleKeydown)}},{key:"_getTabs",value:function(){return this.tabsSlot.assignedNodes({flatten:!0}).filter((function(e){return e instanceof he}))}},{key:"_getTab",value:function(e){return this._getTabs()[e]}},{key:"createAdapter",value:function(){var e=this;return{scrollTo:function(t){return e.scrollerElement.scrollToPosition(t)},incrementScroll:function(t){return e.scrollerElement.incrementScrollPosition(t)},getScrollPosition:function(){return e.scrollerElement.getScrollPosition()},getScrollContentWidth:function(){return e.scrollerElement.getScrollContentWidth()},getOffsetWidth:function(){return e.mdcRoot.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(e.mdcRoot).getPropertyValue("direction")},setActiveTab:function(t){return e.mdcFoundation.activateTab(t)},activateTabAtIndex:function(t,n){var r=e._getTab(t);void 0!==r&&r.activate(n),e._previousActiveIndex=t},deactivateTabAtIndex:function(t){var n=e._getTab(t);void 0!==n&&n.deactivate()},focusTabAtIndex:function(t){var n=e._getTab(t);void 0!==n&&n.focus()},getTabIndicatorClientRectAtIndex:function(t){var n=e._getTab(t);return void 0!==n?n.computeIndicatorClientRect():new DOMRect},getTabDimensionsAtIndex:function(t){var n=e._getTab(t);return void 0!==n?n.computeDimensions():{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return e._previousActiveIndex},getFocusedTabIndex:function(){var t=e._getTabs(),n=e.getRootNode().activeElement;return t.indexOf(n)},getIndexOfTabById:function(t){for(var n=e._getTabs(),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ',"\n \n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ",":\n \n \n ",":\n ","\n
    \n "])),e.hass.localize("ui.components.related-items.integration"),"/config/integrations#config_entry=".concat(t),e._navigateAwayClose,e.hass.localize("component.".concat(n.domain,".title")),n.title):""})):"",this._related.device&&this._devices?this._related.device.map((function(t){var n=e._devices.find((function(e){return e.id===t}));return n?(0,bt.dy)(Tn||(Tn=Kn(["\n

    \n ",':\n

    \n \n \n ',"\n \n \n "])),e._openMoreInfo,t,n.attributes.friendly_name||t):""}))):"",this._related.group?(0,bt.dy)(jn||(jn=Kn(["\n

    ",":

    \n
      \n ","\n
    \n "])),this.hass.localize("ui.components.related-items.group"),this._related.group.map((function(t){var n=e.hass.states[t];return n?(0,bt.dy)(Dn||(Dn=Kn(['\n
  • \n \n ',"\n \n
  • \n "])),e._openMoreInfo,t,n.attributes.friendly_name||n.entity_id):""}))):"",this._related.scene?(0,bt.dy)(zn||(zn=Kn(["\n

    ",":

    \n
      \n ","\n
    \n "])),this.hass.localize("ui.components.related-items.scene"),this._related.scene.map((function(t){var n=e.hass.states[t];return n?(0,bt.dy)(Mn||(Mn=Kn(['\n
  • \n \n ',"\n \n
  • \n "])),e._openMoreInfo,t,n.attributes.friendly_name||n.entity_id):""}))):"",this._related.automation?(0,bt.dy)(Nn||(Nn=Kn(["\n

    \n ",":\n

    \n
      \n ","\n
    \n "])),this.hass.localize("ui.components.related-items.automation"),this._related.automation.map((function(t){var n=e.hass.states[t];return n?(0,bt.dy)(Fn||(Fn=Kn(['\n
  • \n \n ',"\n \n
  • \n "])),e._openMoreInfo,t,n.attributes.friendly_name||n.entity_id):""}))):"",this._related.script?(0,bt.dy)(Zn||(Zn=Kn(["\n

    \n ",":\n

    \n
      \n ","\n
    \n "])),this.hass.localize("ui.components.related-items.script"),this._related.script.map((function(t){var n=e.hass.states[t];return n?(0,bt.dy)(Bn||(Bn=Kn(['\n
  • \n \n ',"\n \n
  • \n "])),e._openMoreInfo,t,n.attributes.friendly_name||n.entity_id):""}))):""):(0,bt.dy)(On||(On=Kn([""])))}},{kind:"method",key:"_navigateAwayClose",value:(r=Gn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,0)}));case 2:(0,jt.B)(this,"close-dialog");case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{kind:"method",key:"_findRelated",value:(n=Gn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t=this.hass,n=this.itemType,r=this.itemId,t.callWS({type:"search/related",item_type:n,item_id:r});case 2:return this._related=e.sent,e.next=5,this.updateComplete;case 5:(0,jt.B)(this,"iron-resize");case 6:case"end":return e.stop()}var t,n,r}),e,this)}))),function(){return n.apply(this,arguments)})},{kind:"method",key:"_openMoreInfo",value:function(e){var t=e.target.entityId;(0,jt.B)(this,"hass-more-info",{entityId:t})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,bt.iv)(Hn||(Hn=Kn(["\n a {\n color: var(--primary-color);\n }\n button.link {\n color: var(--primary-color);\n text-align: left;\n cursor: pointer;\n background: none;\n border-width: initial;\n border-style: none;\n border-color: initial;\n border-image: initial;\n padding: 0px;\n font: inherit;\n text-decoration: underline;\n }\n h3 {\n font-family: var(--paper-font-title_-_font-family);\n -webkit-font-smoothing: var(\n --paper-font-title_-_-webkit-font-smoothing\n );\n font-size: var(--paper-font-title_-_font-size);\n font-weight: var(--paper-font-headline-_font-weight);\n letter-spacing: var(--paper-font-title_-_letter-spacing);\n line-height: var(--paper-font-title_-_line-height);\n opacity: var(--dark-primary-opacity);\n }\n "])))}}]}}),mn(null,(function(e,t){var n=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dn(e,t)}(r,t);var n=fn(r);function r(){var t;un(this,r);for(var i=arguments.length,o=new Array(i),a=0;a=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.primary?-1:1})),this._interface=Object.assign({},this._interfaces[this._curTabIndex]),e.next=8,this.updateComplete;case 8:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:function(){this._params=void 0,this._processing=!1,(0,jt.B)(this,"dialog-closed",{dialog:this.localName})}},{kind:"method",key:"render",value:function(){return this._params&&this._interface?(0,bt.dy)(lr||(lr=Tr(["\n \n \n \n ','\n \n \n \n ',"\n ","\n ",'\n \n
    \n \n ','\n \n ']))):this.supervisor.localize("dialog.network.scan_ap"),this._accessPoints&&this._accessPoints.accesspoints&&0!==this._accessPoints.accesspoints.length?(0,bt.dy)(yr||(yr=Tr(["\n \n ","\n \n "])),this._accessPoints.accesspoints.filter((function(e){return e.ssid})).map((function(e){var t;return(0,bt.dy)(vr||(vr=Tr(["\n \n ",'\n \n '," - Strength: ","\n \n \n "])),o._selectAP,e.ssid===(null===(t=o._wifiConfiguration)||void 0===t?void 0:t.ssid),e,e.ssid,e.mac,e.signal)}))):"",this._wifiConfiguration?(0,bt.dy)(br||(br=Tr(['\n
    \n \n ',"\n
    "])),this.supervisor.localize("dialog.network.warning")):"",this.supervisor.localize("common.cancel"),this.closeDialog,this._updateNetwork,!this._dirty,this._processing?(0,bt.dy)(_r||(_r=Tr(['\n ']))):this.supervisor.localize("common.save"))}},{kind:"method",key:"_selectAP",value:function(e){this._wifiConfiguration=e.currentTarget.ap,this._dirty=!0}},{kind:"method",key:"_scanForAP",value:(i=Lr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._interface){e.next=2;break}return e.abrupt("return");case 2:return this._scanning=!0,e.prev=3,e.next=6,(0,Or.Ne)(this.hass,this._interface.interface);case 6:this._accessPoints=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),(0,Cr.Ys)(this,{title:"Failed to scan for accesspoints",text:(0,Sr.js)(e.t0)});case 12:return e.prev=12,this._scanning=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[3,9,12,15]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_renderIPConfiguration",value:function(e){var t,n,r;return(0,bt.dy)(kr||(kr=Tr(["\n \n \n \n \n \n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ',"\n
    \n \n "])),this._opened,this.closeDialog,(0,a.i)(this.hass,this._addingRegistry?this.supervisor.localize("dialog.registries.title_add"):this.supervisor.localize("dialog.registries.title_manage")),this._addingRegistry?(0,i.dy)(f||(f=S(["\n \n\n \n ','\n ',":\n ","\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ",'\n
    \n ','\n
    \n \n
    \n
    \n ',""])),this._error):"",l.length?l.map((function(e){return(0,d.dy)(a||(a=_(['\n \n \n
    ',"
    \n
    ","
    \n
    ","
    \n
    \n \n \n
    \n
    \n "])),e.name,e.maintainer,e.url,e.slug,n._dialogParams.supervisor.localize("dialog.repositories.remove"),n._removeRepository,u.x9U)})):(0,d.dy)(s||(s=_([" No repositories "]))),this._dialogParams.url||"",this._dialogParams.supervisor.localize("dialog.repositories.add"),this._handleKeyAdd,this._addRepository,this._processing?(0,d.dy)(c||(c=_(['']))):this._dialogParams.supervisor.localize("dialog.repositories.add"),this.closeDialog,null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor.localize("common.close"))}},{kind:"get",static:!0,key:"styles",value:function(){return[g.Qx,g.yu,(0,d.iv)(l||(l=_(["\n ha-dialog.button-left {\n --justify-action-buttons: flex-start;\n }\n paper-icon-item {\n cursor: pointer;\n }\n .form {\n color: var(--primary-text-color);\n }\n .option {\n border: 1px solid var(--divider-color);\n border-radius: 4px;\n margin-top: 4px;\n }\n mwc-button {\n margin-left: 8px;\n }\n ha-paper-dropdown-menu {\n display: block;\n }\n ha-circular-progress {\n display: block;\n margin: 32px;\n text-align: center;\n }\n "])))]}},{kind:"method",key:"focus",value:function(){var e=this;this.updateComplete.then((function(){var t,n;return null===(t=e.shadowRoot)||void 0===t||null===(n=t.querySelector("[dialogInitialFocus]"))||void 0===n?void 0:n.focus()}))}},{kind:"method",key:"_handleKeyAdd",value:function(e){e.stopPropagation(),13===e.keyCode&&this._addRepository()}},{kind:"method",key:"_loadData",value:(k=x(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,y.yt)(this.hass);case 3:t=e.sent,this._repositories=t.repositories,(0,h.B)(this,"supervisor-collection-refresh",{collection:"addon"}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this._error=(0,v.js)(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_addRepository",value:(w=x(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this._optionInput)&&t.value){e.next=3;break}return e.abrupt("return");case 3:return this._processing=!0,n=this._filteredRepositories(this._repositories),(r=n.map((function(e){return e.source}))).push(t.value),e.prev=7,e.next=10,(0,b.jP)(this.hass,{addons_repositories:r});case 10:return e.next=12,this._loadData();case 12:t.value="",e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),this._error=(0,v.js)(e.t0);case 18:this._processing=!1;case 19:case"end":return e.stop()}}),e,this,[[7,15]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_removeRepository",value:(n=x(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget.slug,r=this._filteredRepositories(this._repositories),i=r.find((function(e){return e.slug===n}))){e.next=5;break}return e.abrupt("return");case 5:return o=r.map((function(e){return e.source})).filter((function(e){return e!==i.source})),e.prev=6,e.next=9,(0,b.jP)(this.hass,{addons_repositories:o});case 9:return e.next=11,this._loadData();case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),this._error=(0,v.js)(e.t0);case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return n.apply(this,arguments)})}]}}),d.oi)},1808:function(e,t,n){"use strict";n.r(t),n.d(t,{DialogHassioSnapshotUpload:function(){return we}});var r,i,o,a,s,c,l=n(55317),u=n(50424),d=n(55358),f=n(47181),p=(n(23221),n(11654)),h=(n(61359),n(36280),n(98121),n(4483),n(76666));n(52039);function m(e){return(m="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 y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=R(e);if(t){var i=R(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){k=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!S(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n']))):(0,u.dy)(o||(o=y(['\n