diff --git a/home-assistant-polymer b/home-assistant-polymer index ef0bfb237..478a4b259 160000 --- a/home-assistant-polymer +++ b/home-assistant-polymer @@ -1 +1 @@ -Subproject commit ef0bfb237a08fdd6c85204d5cf6c0c7e2ad9a020 +Subproject commit 478a4b2593106ea7068a43d23ce1f11d5e77eb01 diff --git a/supervisor/api/panel/entrypoint.js b/supervisor/api/panel/entrypoint.js index 5ebbad82d..2194b15c0 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.d505d83a.js')")(); + new Function("import('/api/hassio/app/frontend_latest/entrypoint.5875b404.js')")(); } catch (err) { var el = document.createElement('script'); - el.src = '/api/hassio/app/frontend_es5/entrypoint.6ce56a3d.js'; + el.src = '/api/hassio/app/frontend_es5/entrypoint.59ace4b4.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 f99ed6c3b..adf57c34e 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.05a4e4e73d8f994a6fd1.js b/supervisor/api/panel/frontend_es5/chunk.05a4e4e73d8f994a6fd1.js new file mode 100644 index 000000000..ac8b60d39 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.05a4e4e73d8f994a6fd1.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[103],{79103:function(e,t,r){"use strict";r.r(t);var n=r(55317),i=r(99722),o=r(14516),a=r(47181),s=r(83849),c=r(15493),l=(r(35602),r(34154)),u=r(41682),d=(r(48811),r(21625),r(50054),r(11654)),f=r(55677),p=(r(30573),r(34178),r(53973),r(51095),r(61740),r(98762),r(22098),r(20258)),h=r(26765);function m(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 y=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.g7)(t,{title:n.name,text:"Do you want to restart the add-on with your changes?",confirmText:"restart add-on",dismissText:"no"});case 2:if(!e.sent){e.next=12;break}return e.prev=4,e.next=7,(0,l.P$)(r,n.slug);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),(0,h.Ys)(t,{title:"Failed to restart",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){m(o,n,i,a,s,"next",e)}function s(e){m(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();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){return function(e){if(Array.isArray(e))return N(e)}(e)||$(e)||U(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 g(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 w(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))}}function k(){var e=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 "]);return k=function(){return e},e}function E(){var e=S(["\n ","\n "]);return E=function(){return e},e}function P(){var e=S(["\n ","\n "]);return P=function(){return e},e}function x(){var e=S(['
',"
"]);return x=function(){return e},e}function _(){var e=S(['\n \n
\n ','\n\n \n \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&&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);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n \n "]);return G=function(){return e},e}function Z(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 J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ne(e);if(t){var i=ne(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return te(this,r)}}function te(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?re(e):t}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ie(){ie=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(!se(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',": ",""]);return he=function(){return e},e}function me(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){return(ve=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ae(e);if(t){var i=Ae(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ge(this,r)}}function ge(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?we(e):t}function we(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return 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(!xe(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 "]);return Te=function(){return e},e}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fe(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 Ie(this,r)}}function Ie(e,t){return!t||"object"!==je(t)&&"function"!=typeof t?Me(e):t}function Me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ue(){Ue=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(!Le(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 .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 ')),tt}}],(r=[{key:"_setImmediateValue",value:function(e){Ge(et(o.prototype),"_setImmediateValue",this).call(this,Math.round(e))}},{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}}])&&Xe(t.prototype,r),n&&Xe(t,n),o}(rt);function it(e){return(it="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 ot(){var e=lt(["\n .flex {\n display: flex;\n }\n ha-slider {\n width: 100%;\n margin-right: 16px;\n }\n "]);return ot=function(){return e},e}function at(){var e=lt(['\n \n ',"\n \n
\n \n "]);return ct=function(){return e},e}function lt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(e,t){return(dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ft(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=mt(e);if(t){var i=mt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return pt(this,r)}}function pt(e,t){return!t||"object"!==it(t)&&"function"!=typeof t?ht(e):t}function ht(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mt(e){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yt(){yt=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(!gt(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 "]);return St=function(){return e},e}function Ot(){var e=Ct(['\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 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 :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\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 ']);return Ht=function(){return e},e}function Yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qt(e,t){for(var r=0;r\n ']);return tr=function(){return e},e}function rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nr(e,t){return(nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ir(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=sr(e);if(t){var i=sr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return or(this,r)}}function or(e,t){return!t||"object"!==Jt(t)&&"function"!=typeof t?ar(e):t}function ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cr(){cr=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(!dr(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);r59&&(i+=Math.floor(r/60),r%=60),"minutes"===t&&r>59&&(n+=Math.floor(r/60),r%=60),(0,a.B)(this,"value-changed",{value:Object.assign({hours:n,minutes:i,seconds:this._seconds,milliseconds:this._milliseconds},er({},t,r))})}}}]}}),i.oi);function yr(e){return(yr="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 vr(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n \n "]);return vr=function(){return e},e}function br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gr(e,t){return(gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pr(e);if(t){var i=Pr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kr(this,r)}}function kr(e,t){return!t||"object"!==yr(t)&&"function"!=typeof t?Er(e):t}function Er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pr(e){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xr(){xr=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(!Or(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 "]);return qr=function(){return e},e}function Vr(){var e=Hr(["\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 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 =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 "]);return Cn=function(){return e},e}function Dn(){var e=zn(["\n ","\n ","\n "]);return Dn=function(){return e},e}function An(){var e=zn(["\n \n "]);return An=function(){return e},e}function jn(){var e=zn(['\n
\n ',"\n
\n "]);return jn=function(){return e},e}function Tn(){var e=zn(["\n ","\n ","\n "]);return Tn=function(){return e},e}function zn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fn(e,t){return(Fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function In(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Un(e);if(t){var i=Un(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Mn(this,r)}}function Mn(e,t){return!t||"object"!==Sn(t)&&"function"!=typeof t?Bn(e):t}function Bn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nn(){Nn=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(!qn(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=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 :host(.error-state) div.cm-wrap .cm-gutters {\n border-color: var(--error-state-color, red);\n }\n ",n=document.createElement("span"),r.appendChild(n),this.codemirror=new t.EditorView({state:t.EditorState.create({doc:this._value,extensions:[t.lineNumbers(),t.keymap.of([].concat(Jn(t.defaultKeymap),[{key:"Tab",run:t.indentMore},{key:"Shift-Tab",run:t.indentLess},ki])),t.tagExtension(gi,this._mode),t.theme,t.Prec.fallback(t.highlightStyle),t.EditorView.updateListener.of((function(e){return i._onUpdate(e)})),t.tagExtension(wi,t.EditorView.editable.of(!this.readOnly))]}),root:r,parent:n});case 9:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){ei(o,n,i,a,s,"next",e)}function s(e){ei(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})},{kind:"method",key:"_blockKeyboardShortcuts",value:function(){this.addEventListener("keydown",(function(e){return e.stopPropagation()}))}},{kind:"method",key:"_onUpdate",value:function(e){if(e.docChanged){var t=this.value;t!==this._value&&(this._value=t,(0,a.B)(this,"value-changed",{value:this._value}))}}}]}}),i.f4);function Ei(){var e=_i(["

","

"]);return Ei=function(){return e},e}function Pi(){var e=_i(["\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 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 Invalid YAML ']);return Yi=function(){return e},e}function Qi(){var e=Zi(['
',"
"]);return Qi=function(){return e},e}function Wi(){var e=Zi([" "]);return Wi=function(){return e},e}function Xi(){var e=Zi([""]);return Xi=function(){return e},e}function Gi(){var e=Zi(["\n

",'

\n \n
\n

Configuration

\n
\n \n \n \n \n Reset to defaults\n \n \n
\n
\n\n
\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&&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 ',"
"]);return wo=function(){return e},e}function ko(){var e=Po(['\n \n
\n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
ContainerHostDescription
\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 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);rt.container?1:-1}))}},{kind:"method",key:"_configChanged",value:(o=bo(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.target,this._config.forEach((function(e){e.container===r.container&&e.host!==parseInt(String(r.value),10)&&(e.host=r.value?parseInt(String(r.value),10):null)}));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{kind:"method",key:"_resetTapped",value:(n=bo(regeneratorRuntime.mark((function e(t){var r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,n={network:null},e.prev=3,e.next=6,(0,l.d3)(this.hass,this.addon.slug,n);case 6:if(o={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",o),"started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=11;break}return e.next=11,y(this,this.hass,this.addon);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),this._error="Failed to set addon network configuration, ".concat((0,u.js)(e.t0));case 16:r.progress=!1;case 17:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return n.apply(this,arguments)})},{kind:"method",key:"_saveTapped",value:(r=bo(regeneratorRuntime.mark((function e(t){var r,n,i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={},this._config.forEach((function(e){n[e.container]=parseInt(String(e.host),10)})),i={network:n},e.prev=6,e.next=9,(0,l.d3)(this.hass,this.addon.slug,i);case 9:if(s={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",s),"started"!==(null===(o=this.addon)||void 0===o?void 0:o.state)){e.next=14;break}return e.next=14,y(this,this.hass,this.addon);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),this._error="Failed to set addon network configuration, ".concat((0,u.js)(e.t0));case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[d.Qx,f.l,(0,i.iv)(yo())]}}]}}),i.oi);var Uo=r(18199);function No(e){return(No="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 $o(){var e=Wo(["\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 "]);return $o=function(){return e},e}function Lo(){var e=Wo(["\n \n "]);return Lo=function(){return e},e}function qo(){var e=Wo(["\n \n "]);return qo=function(){return e},e}function Vo(){var e=Wo(["\n \n "]);return Vo=function(){return e},e}function Ho(){var e=Wo(["\n ","\n ","\n ","\n "]);return Ho=function(){return e},e}function Yo(){var e=Wo(['\n
\n ',"\n
\n "]);return Yo=function(){return e},e}function Qo(){var e=Wo([""]);return Qo=function(){return e},e}function Wo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Go(e,t){return(Go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ea(e);if(t){var i=ea(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ko(this,r)}}function Ko(e,t){return!t||"object"!==No(t)&&"function"!=typeof t?Jo(e):t}function Jo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ea(e){return(ea=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ta(){ta=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(!ia(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"]);return da=function(){return e},e}function fa(){var e=ya([""]);return fa=function(){return e},e}function pa(){var e=ya(['
',"
"]);return pa=function(){return e},e}function ha(){var e=ya(['\n
\n \n ','\n
\n ',"\n
\n
\n
\n "]);return ha=function(){return e},e}function ma(){var e=ya([""]);return ma=function(){return e},e}function ya(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function va(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 ba(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){va(o,n,i,a,s,"next",e)}function s(e){va(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ga(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wa(e,t){return(wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ka(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=za(e);if(t){var i=za(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ea(this,r)}}function Ea(e,t){return!t||"object"!==la(t)&&"function"!=typeof t?Pa(e):t}function Pa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(){xa=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(!Oa(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 ']);return Ba=function(){return e},e}function Ua(e,t){for(var r=0;r 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 "]);return Qa=function(){return e},e}function Wa(){var e=Ja(['
',"
"]);return Wa=function(){return e},e}function Xa(){var e=Ja(['\n \n ',"\n
\n "]);return Xa=function(){return e},e}function Ga(){var e=Ja([" "," "]);return Ga=function(){return e},e}function Za(){var e=Ja([" "]);return Za=function(){return e},e}function Ka(){var e=Ja(['\n
\n
\n \n \n ',"\n ","\n \n
\n ","\n
\n ","\n \n "]);return Ka=function(){return e},e}function Ja(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function es(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ts(e,t){return(ts=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rs(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=hs(e);if(t){var i=hs(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ns(this,r)}}function ns(e,t){return!t||"object"!==Ya(t)&&"function"!=typeof t?is(e):t}function is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function os(){os=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(!cs(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);r4)}),!this.icon||this.value||this.image?"":(0,i.dy)(Za(),this.icon),this.value&&!this.image?(0,i.dy)(Ga(),this.value):"",this.label?(0,i.dy)(Xa(),(0,Ra.$)({label:!0,big:this.label.length>5}),this.label):"",this.description?(0,i.dy)(Wa(),this.description):"")}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,i.iv)(Qa())]}},{kind:"method",key:"updated",value:function(e){ps(hs(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",ms);r(14089);var ys=r(70203),vs=(r(79603),r(21050),r(66903)),bs=(0,o.Z)((function(e,t){return t.some((function(t){return e.includes(t)}))}));function gs(e){return(gs="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 ws(){var e=uc(['\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 ']);return ws=function(){return e},e}function ks(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 Es(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ks(o,n,i,a,s,"next",e)}function s(e){ks(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Ps(){var e=uc(['\n \n
\n \n Rebuild\n \n ']);return xs=function(){return e},e}function _s(){var e=uc(["\n \n Open web UI\n \n "]);return _s=function(){return e},e}function Ss(){var e=uc(["\n \n \n Open web UI\n \n \n ']);return Ss=function(){return e},e}function Os(){var e=uc([" ","\n ",'\n \n Stop\n \n \n You are running Home Assistant\n ',", to install this add-on you\n need at least version "," of\n Home Assistant\n

\n "]);return js=function(){return e},e}function Ts(){var e=uc(['\n

\n This add-on is not compatible with the processor of your\n device or the operating system you have installed on your\n device.\n

\n ']);return Ts=function(){return e},e}function zs(){var e=uc(['
',"
"]);return zs=function(){return e},e}function Rs(){var e=uc(["\n \n "]);return Rs=function(){return e},e}function Fs(){var e=uc(["\n Hostname\n \n \n ',"\n \n \n ",""]);return Fs=function(){return e},e}function Is(){var e=uc(["\n \n Protection mode\n \n \n Blocks elevated system access from the add-on\n \n \n \n Show in sidebar\n \n \n ',"\n \n \n \n "]);return Ms=function(){return e},e}function Bs(){var e=uc(["\n \n Auto update\n \n \n Auto update the add-on when there is a new\n version available\n \n \n \n Watchdog\n \n \n This will start the add-on if it crashes\n \n \n \n \n Start on boot\n \n \n Make the add-on start during a system boot\n \n \n \n \n \n \n \n \n \n \n
\n ']);return Js=function(){return e},e}function ec(){var e=uc([" "," "]);return ec=function(){return e},e}function tc(){var e=uc(['\n \n

Warning: Protection mode is disabled!

\n
\n Protection mode on this add-on is disabled! This gives the add-on full access to the entire system, which adds security risks, and could damage your system when used incorrectly. Only disable the protection mode if you know, need AND trust the source of this add-on.\n
\n
\n \n You are running Home Assistant\n ',", to update to this\n version of the add-on you need at least version\n "," of Home Assistant\n

\n "]);return ac=function(){return e},e}function sc(){var e=uc(['\n

\n This add-on is not compatible with the processor of\n your device or the operating system you have installed\n on your device.\n

\n ']);return sc=function(){return e},e}function cc(){var e=uc(['\n \n
\n \n ','\n
\n
\n \n \n
\n
\n ',"\n
\n
\n ","\n
\n
\n \n\n ","\n "]);return lc=function(){return e},e}function uc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function dc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fc(e,t){return(fc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 hc(this,r)}}function hc(e,t){return!t||"object"!==gs(t)&&"function"!=typeof t?mc(e):t}function mc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yc(){yc=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(!gc(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 **Stable**: These are add-ons ready to be used in production.\n\n **Experimental**: These may contain bugs, and may be unfinished.\n\n **Deprecated**: These add-ons will no longer receive any updates.')},rating:{title:"Add-on Security Rating",description:"Home Assistant provides a security rating to each of the add-ons, which indicates the risks involved when using this add-on. The more access an add-on requires on your system, the lower the score, thus raising the possible security risks.\n\nA score is on a scale from 1 to 6. Where 1 is the lowest score (considered the most insecure and highest risk) and a score of 6 is the highest score (considered the most secure and lowest risk)."},host_network:{title:"Host Network",description:"Add-ons usually run in their own isolated network layer, which prevents them from accessing the network of the host operating system. In some cases, this network isolation can limit add-ons in providing their services and therefore, the isolation can be lifted by the add-on author, giving the add-on full access to the network capabilities of the host machine. This gives the add-on more networking capabilities but lowers the security, hence, the security rating of the add-on will be lowered when this option is used by the add-on."},homeassistant_api:{title:"Home Assistant API Access",description:"This add-on is allowed to access your running Home Assistant instance directly via the Home Assistant API. This mode handles authentication for the add-on as well, which enables an add-on to interact with Home Assistant without the need for additional authentication tokens."},full_access:{title:"Full Hardware Access",description:"This add-on is given full access to the hardware of your system, by request of the add-on author. Access is comparable to the privileged mode in Docker. Since this opens up possible security risks, this feature impacts the add-on security score negatively.\n\nThis level of access is not granted automatically and needs to be confirmed by you. To do this, you need to disable the protection mode on the add-on manually. Only disable the protection mode if you know, need AND trust the source of this add-on."},hassio_api:{title:"Supervisor API Access",description:"The add-on was given access to the Supervisor API, by request of the add-on author. By default, the add-on can access general version information of your system. When the add-on requests 'manager' or 'admin' level access to the API, it will gain access to control multiple parts of your Home Assistant system. This permission is indicated by this badge and will impact the security score of the addon negatively."},docker_api:{title:"Full Docker Access",description:"The add-on author has requested the add-on to have management access to the Docker instance running on your system. This mode gives the add-on full access and control to your entire Home Assistant system, which adds security risks, and could damage your system when misused. Therefore, this feature impacts the add-on security score negatively.\n\nThis level of access is not granted automatically and needs to be confirmed by you. To do this, you need to disable the protection mode on the add-on manually. Only disable the protection mode if you know, need AND trust the source of this add-on."},host_pid:{title:"Host Processes Namespace",description:"Usually, the processes the add-on runs, are isolated from all other system processes. The add-on author has requested the add-on to have access to the system processes running on the host system instance, and allow the add-on to spawn processes on the host system as well. This mode gives the add-on full access and control to your entire Home Assistant system, which adds security risks, and could damage your system when misused. Therefore, this feature impacts the add-on security score negatively.\n\nThis level of access is not granted automatically and needs to be confirmed by you. To do this, you need to disable the protection mode on the add-on manually. Only disable the protection mode if you know, need AND trust the source of this add-on."},apparmor:{title:"AppArmor",description:"AppArmor ('Application Armor') is a Linux kernel security module that restricts add-ons capabilities like network access, raw socket access, and permission to read, write, or execute specific files.\n\nAdd-on authors can provide their security profiles, optimized for the add-on, or request it to be disabled. If AppArmor is disabled, it will raise security risks and therefore, has a negative impact on the security score of the add-on."},auth_api:{title:"Home Assistant Authentication",description:"An add-on can authenticate users against Home Assistant, allowing add-ons to give users the possibility to log into applications running inside add-ons, using their Home Assistant username/password. This badge indicates if the add-on author requests this capability."},ingress:{title:"Ingress",description:"This add-on is using Ingress to embed its interface securely into Home Assistant."}};!function(e,t,r,n){var i=yc();if(n)for(var o=0;o\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 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"]);return Xc=function(){return e},e}function Gc(){var e=Kc(['
',"
"]);return Gc=function(){return e},e}function Zc(){var e=Kc(["\n

","

\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&&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 =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=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 "]);return eu=function(){return e},e}function tu(){var e=nu([""]);return tu=function(){return e},e}function ru(){var e=nu([""]);return ru=function(){return e},e}function nu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function iu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ou(e,t){return(ou=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function au(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=lu(e);if(t){var i=lu(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return su(this,r)}}function su(e,t){return!t||"object"!==Gl(t)&&"function"!=typeof t?cu(e):t}function cu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lu(e){return(lu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uu(){uu=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(!pu(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);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}(new URLSearchParams(location.search).entries());try{for(r.s();!(e=r.n()).done;){var o=n(e.value,2),a=o[0],s=o[1];t[a]=s}}catch(c){r.e(c)}finally{r.f()}return t},s=function(e){return new URLSearchParams(window.location.search).get(e)},c=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),i=r[0],o=r[1];t.append(i,o)})),t.toString()}}}]); +//# sourceMappingURL=chunk.05a4e4e73d8f994a6fd1.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.05a4e4e73d8f994a6fd1.js.gz b/supervisor/api/panel/frontend_es5/chunk.05a4e4e73d8f994a6fd1.js.gz new file mode 100644 index 000000000..6342b84e2 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.05a4e4e73d8f994a6fd1.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.05a4e4e73d8f994a6fd1.js.map b/supervisor/api/panel/frontend_es5/chunk.05a4e4e73d8f994a6fd1.js.map new file mode 100644 index 000000000..f37b45363 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.05a4e4e73d8f994a6fd1.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.05a4e4e73d8f994a6fd1.js","sources":["webpack://home-assistant-frontend/chunk.05a4e4e73d8f994a6fd1.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js b/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js deleted file mode 100644 index fd7cfd693..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[530],{22530:function(e,t,n){"use strict";n.r(t);n(30573);var r=n(55317),o=(n(32296),n(77956),n(99722)),i=n(47181);n(23221),n(52039);"".concat(location.protocol,"//").concat(location.host);var s=n(41682),a=n(77097),c=n(26765),l=n(11654);function u(e){return(u="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(){var e=x(["\n paper-checkbox {\n display: block;\n margin: 4px;\n }\n mwc-button ha-svg-icon {\n margin-right: 4px;\n }\n .button-row {\n display: grid;\n gap: 8px;\n margin-right: 8px;\n }\n .details {\n color: var(--secondary-text-color);\n }\n .warning,\n .error {\n color: var(--error-color);\n }\n .buttons li {\n list-style-type: none;\n }\n .buttons .icon {\n margin-right: 16px;\n }\n .no-margin-top {\n margin-top: 0;\n }\n ha-header-bar {\n --mdc-theme-on-primary: var(--primary-text-color);\n --mdc-theme-primary: var(--mdc-theme-surface);\n flex-shrink: 0;\n }\n /* overrule the ha-style-dialog max-height on small screens */\n @media all and (max-width: 450px), all and (max-height: 500px) {\n ha-header-bar {\n --mdc-theme-primary: var(--app-header-background-color);\n --mdc-theme-on-primary: var(--app-header-text-color, white);\n }\n }\n "]);return d=function(){return e},e}function h(){var e=x(["\n \n Download Snapshot\n ']);return h=function(){return e},e}function p(){var e=x(["\n \n \n Restore Everything\n \n ']);return p=function(){return e},e}function f(){var e=x(["\n \n \n \n Delete Snapshot\n \n ']);return f=function(){return e},e}function m(){var e=x(['

Error: ',"

"]);return m=function(){return e},e}function v(){var e=x(['\n \n ',"\n \n "]);return y=function(){return e},e}function g(){var e=x(['\n
Add-on:
\n \n ',"\n \n "]);return g=function(){return e},e}function k(){var e=x(["\n \n ',"\n \n "]);return k=function(){return e},e}function b(){var e=x(['\n
Folders:
\n \n ',"\n \n "]);return b=function(){return e},e}function w(){var e=x(["\n \n \n \n ','\n \n \n \n \n \n
\n
\n ',"\n (",")
\n ","\n
\n
Home Assistant:
\n \n Home Assistant ',"\n \n ","\n ","\n ","\n ",'\n\n
\n \n Restore Selected\n \n ','\n
\n
\n ',"\n ","\n
\n \n "]);return w=function(){return e},e}function _(){var e=x([""]);return _=function(){return e},e}function x(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function E(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(r,o)}function P(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){E(i,r,o,s,a,"next",e)}function a(e){E(i,r,o,s,a,"throw",e)}s(void 0)}))}}function S(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 A(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=R(e);if(t){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?O(e):t}function O(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 T(){T=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 o=t.placement;if(t.kind===r&&("static"===o||"prototype"===o)){var i="static"===o?e:n;this.defineClassElement(i,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=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!F(e))return n.push(e);var t=this.decorateElement(e,o);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var i=this.decorateConstructor(n,t);return r.push.apply(r,i.finishers),i.finishers=r,i},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=[],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&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[r])(o)||o);if(void 0!==i.finisher&&n.push(i.finisher),void 0!==i.elements){e=i.elements;for(var s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.name?1:-1})),this._addons=(i=null===(r=this._snapshot)||void 0===r?void 0:r.addons,i.map((function(e){return{slug:e.slug,name:e.name,version:e.version,checked:!0}}))).sort((function(e,t){return e.name>t.name?1:-1})),this._dialogParams=t,this._onboarding=null!==(o=t.onboarding)&&void 0!==o&&o,this.supervisor=t.supervisor;case 8:case"end":return e.stop()}var i,s,c}),e,this)}))),function(e){return C.apply(this,arguments)})},{kind:"method",key:"render",value:function(){var e=this;return this._dialogParams&&this._snapshot?(0,o.dy)(w(),this._closeDialog,!0,this._computeName,r.r5M,"full"===this._snapshot.type?"Full snapshot":"Partial snapshot",this._computeSize,this._formatDatetime(this._snapshot.date),this._restoreHass,(function(t){e._restoreHass=t.target.checked}),this._snapshot.homeassistant,this._folders.length?(0,o.dy)(b(),this._folders.map((function(t){return(0,o.dy)(k(),t.checked,(function(n){return e._updateFolders(t,n.target.checked)}),t.name)}))):"",this._addons.length?(0,o.dy)(g(),this._addons.map((function(t){return(0,o.dy)(y(),t.checked,(function(n){return e._updateAddons(t,n.target.checked)}),t.name)}))):"",this._snapshot.protected?(0,o.dy)(v(),this._passwordInput,this._snapshotPassword):"",this._error?(0,o.dy)(m(),this._error):"",this._partialRestoreClicked,r.BBX,this._onboarding?"":(0,o.dy)(f(),this._deleteClicked,r.x9U),"full"===this._snapshot.type?(0,o.dy)(p(),this._fullRestoreClicked,r.BBX):"",this._onboarding?"":(0,o.dy)(h(),this._downloadClicked,r.OGU)):(0,o.dy)(_())}},{kind:"get",static:!0,key:"styles",value:function(){return[l.Qx,l.yu,(0,o.iv)(d())]}},{kind:"method",key:"_updateFolders",value:function(e,t){this._folders=this._folders.map((function(n){return n.slug===e.slug&&(n.checked=t),n}))}},{kind:"method",key:"_updateAddons",value:function(e,t){this._addons=this._addons.map((function(n){return n.slug===e.slug&&(n.checked=t),n}))}},{kind:"method",key:"_passwordInput",value:function(e){this._snapshotPassword=e.detail.value}},{kind:"method",key:"_partialRestoreClicked",value:(E=P(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.supervisor||"running"===this.supervisor.info.state){e.next=4;break}return e.next=3,(0,c.Ys)(this,{title:"Could not restore snapshot",text:"Restoring a snapshot is not possible right now because the system is in ".concat(this.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,c.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:t=this._addons.filter((function(e){return e.checked})).map((function(e){return e.slug})),n=this._folders.filter((function(e){return e.checked})).map((function(e){return e.slug})),r={homeassistant:this._restoreHass,addons:t,folders:n},this._snapshot.protected&&(r.password=this._snapshotPassword),this._onboarding?((0,i.B)(this,"restoring"),fetch("/api/hassio/snapshots/".concat(this._snapshot.slug,"/restore/partial"),{method:"POST",body:JSON.stringify(r)}),this._closeDialog()):this.hass.callApi("POST","hassio/snapshots/".concat(this._snapshot.slug,"/restore/partial"),r).then((function(){alert("Snapshot restored!"),o._closeDialog()}),(function(e){o._error=e.body.message}));case 13:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_fullRestoreClicked",value:(x=P(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.supervisor||"running"===this.supervisor.info.state){e.next=4;break}return e.next=3,(0,c.Ys)(this,{title:"Could not restore snapshot",text:"Restoring a snapshot is not possible right now because the system is in ".concat(this.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,c.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:t=this._snapshot.protected?{password:this._snapshotPassword}:void 0,this._onboarding?((0,i.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(){alert("Snapshot restored!"),n._closeDialog()}),(function(e){n._error=e.body.message}));case 10:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{kind:"method",key:"_deleteClicked",value:(u=P(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,c.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 u.apply(this,arguments)})},{kind:"method",key:"_downloadClicked",value:(n=P(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o=this.hass,i="/api/hassio/snapshots/".concat(this._snapshot.slug,"/download"),o.callWS({type:"auth/sign_path",path:i});case 3:t=e.sent,e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(0),alert("Error: ".concat((0,s.js)(e.t0))),e.abrupt("return");case 10:if(!window.location.href.includes("ui.nabu.casa")){e.next=16;break}return e.next=13,(0,c.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 13:if(e.sent){e.next=16;break}return e.abrupt("return");case 16:n=this._computeName.replace(/[^a-z0-9]+/gi,"_"),(r=document.createElement("a")).href=t.path,r.download="Hass_io_".concat(n,".tar"),this.shadowRoot.appendChild(r),r.click(),this.shadowRoot.removeChild(r);case 23:case"end":return e.stop()}var o,i}),e,this,[[0,6]])}))),function(){return n.apply(this,arguments)})},{kind:"get",key:"_computeName",value:function(){return this._snapshot?this._snapshot.name||this._snapshot.slug:"Unnamed snapshot"}},{kind:"get",key:"_computeSize",value:function(){return Math.ceil(10*this._snapshot.size)/10+" MB"}},{kind:"method",key:"_formatDatetime",value:function(e){return new Date(e).toLocaleDateString(navigator.language,{weekday:"long",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}},{kind:"method",key:"_closeDialog",value:function(){this._dialogParams=void 0,this._snapshot=void 0,this._snapshotPassword="",this._folders=[],this._addons=[]}}]}}),o.oi)}}]); -//# sourceMappingURL=chunk.0876b9858ed4d082cd4b.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js.gz b/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js.gz deleted file mode 100644 index 480436164..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js.map b/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js.map deleted file mode 100644 index 7a12691da..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.0876b9858ed4d082cd4b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.0876b9858ed4d082cd4b.js","sources":["webpack://home-assistant-frontend/chunk.0876b9858ed4d082cd4b.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js b/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js deleted file mode 100644 index f547f656f..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[360],{79074:function(e,t,r){var n,i,o;function l(e){return(l="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)}o=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),s=n||i||o,a=s&&(n?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(e),c=u&&/Qt\/\d+\.\d+/.test(e),f=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),C=d&&e.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(d=!1,u=!0);var S=b&&(c||d&&(null==C||C<12.11)),k=r||s&&a>=9;function M(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L,T=function(e,t){var r=e.className,n=M(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return N(e).appendChild(t)}function A(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=s-o,l+=r-l%r,o=s+1}}m?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:s&&(P=function(e){try{e.select()}catch(t){}});var B=function(){this.id=null};function G(e,t){for(var r=0;r=t)return n+Math.min(l,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}var X=[""];function Y(e){for(;X.length<=e;)X.push(q(X)+" ");return X[e]}function q(e){return e[e.length-1]}function $(e,t){for(var r=[],n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&ne.test(e)}function oe(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}var se=null;function ae(e,t,r){var n;se=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:se=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:se=i)}return null!=n?n:se}var ue=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,r=/[LRr]/,n=/[Lb1n]/,i=/[1n]/;function o(e,t,r){this.level=e,this.from=t,this.to=r}return function(l,s){var a="ltr"==s?"L":"R";if(0==l.length||"ltr"==s&&!e.test(l))return!1;for(var u,c=l.length,f=[],d=0;d-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var r=he(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function be(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){we(e),xe(e)}function ke(e){return e.target||e.srcElement}function Me(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Le,Te,Ne=function(){if(s&&a<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Oe(e){if(null==Le){var t=A("span","​");O(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Le=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&a<8))}var r=Le?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ae(e){if(null!=Te)return Te;var t=O(e,document.createTextNode("AخA")),r=L(t,0,1).getBoundingClientRect(),n=L(t,1,2).getBoundingClientRect();return N(e),!(!r||r.left==r.right)&&(Te=n.right-r.right<3)}var De,We=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},He=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(De){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(De){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},ze="oncopy"in(De=A("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Fe=null,Pe={},Ee={};function Ie(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pe[e]=t}function Re(e){if("string"==typeof e&&Ee.hasOwnProperty(e))e=Ee[e];else if(e&&"string"==typeof e.name&&Ee.hasOwnProperty(e.name)){var t=Ee[e.name];"string"==typeof t&&(t={name:t}),(e=Q(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Re("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Re("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Re(t);var r=Pe[t.name];if(!r)return Be(e,"text/plain");var n=r(e,t);if(Ge.hasOwnProperty(t.name)){var i=Ge[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var Ge={};function Ue(e,t){I(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ve(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function je(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ke(e,t,r){return!e.startState||e.startState(t,r)}var _e=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?tt(r,Xe(e,r).text.length):function(e,t){var r=e.ch;return null==r||r>t?tt(e.line,t):r<0?tt(e.line,0):e}(t,Xe(e,t.line).text.length)}function ut(e,t){for(var r=[],n=0;n=this.string.length},_e.prototype.sol=function(){return this.pos==this.lineStart},_e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_e.prototype.next=function(){if(this.post},_e.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},_e.prototype.skipToEnd=function(){this.pos=this.string.length},_e.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},_e.prototype.backUp=function(e){this.pos-=e},_e.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},_e.prototype.current=function(){return this.string.slice(this.start,this.pos)},_e.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},_e.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},_e.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ct=function(e,t){this.state=e,this.lookAhead=t},ft=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function dt(e,t,r,n){var i=[e.state.modeGen],o={};xt(e,t.text,e.doc.mode,r,(function(e,t){return i.push(e,t)}),o,n);for(var l=r.state,s=function(n){r.baseTokens=i;var s=e.state.overlays[n],a=1,u=0;r.state=!0,xt(e,t.text,s.mode,r,(function(e,t){for(var r=a;ue&&i.splice(a,1,e,i[a+1],n),a+=2,u=Math.min(e,n)}if(t)if(s.opaque)i.splice(r,a-r,e,"overlay "+t),a=r+2;else for(;re.options.maxHighlightLength&&Ve(e.doc.mode,n.state),o=dt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new ft(n,!0,t);var o=function(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>l;--s){if(s<=o.first)return o.first;var a=Xe(o,s-1),u=a.stateAfter;if(u&&(!r||s+(u instanceof ct?u.lookAhead:0)<=o.modeFrontier))return s;var c=R(a.text,null,e.options.tabSize);(null==i||n>c)&&(i=s-1,n=c)}return i}(e,t,r),l=o>n.first&&Xe(n,o-1).stateAfter,s=l?ft.fromSaved(n,l,o):new ft(n,Ke(n.mode),o);return n.iter(o,t,(function(r){gt(e,r.text,s);var n=s.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&nt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ft.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ft.fromSaved=function(e,t,r){return t instanceof ct?new ft(e,Ve(e.mode,t.state),r,t.lookAhead):new ft(e,Ve(e.mode,t),r)},ft.prototype.save=function(e){var t=!1!==e?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ct(t,this.maxLookAhead):t};var yt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function bt(e,t,r,n){var i,o,l=e.doc,s=l.mode,a=Xe(l,(t=at(l,t)).line),u=pt(e,t.line,r),c=new _e(a.text,e.options.tabSize,u);for(n&&(o=[]);(n||c.pose.options.maxHighlightLength?(s=!1,l&>(e,t,n,f.pos),f.pos=t.length,a=null):a=wt(vt(r,f,n.state,d),o),d){var h=d[0].name;h&&(a="m-"+(a?h+" "+a:h))}if(!s||c!=a){for(;u=t:o.to>t);(n||(n=[])).push(new kt(l,o.from,s?null:o.to))}}return n}(r,i,l),a=function(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var s=null==o.from||(l.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!r||Ht(r,o.marker)<0)&&(r=o.marker)}return r}function It(e,t,r,n,i){var o=Xe(e,t),l=St&&o.markedSpans;if(l)for(var s=0;s=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?rt(u.to,r)>=0:rt(u.to,r)>0)||c>=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?rt(u.from,n)<=0:rt(u.from,n)<0)))return!0}}}function Rt(e){for(var t;t=Ft(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var r=Xe(e,t),n=Rt(r);return r==n?t:Ze(n)}function Gt(e,t){if(t>e.lastLine())return t;var r,n=Xe(e,t);if(!Ut(e,n))return t;for(;r=Pt(n);)n=r.find(1,!0).line;return Ze(n)+1}function Ut(e,t){var r=St&&t.markedSpans;if(r)for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)}))}var Xt=function(e,t,r){this.text=e,At(this,t),this.height=r?r(this):1};function Yt(e){e.parent=null,Ot(e)}Xt.prototype.lineNo=function(){return Ze(this)},be(Xt);var qt={},$t={};function Zt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?$t:qt;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Qt(e,t){var r=D("span",null,null,u?"padding-right: .1px":null),n={pre:D("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=er,Ae(e.display.measure)&&(l=ce(o,e.doc.direction))&&(n.addToken=tr(n.addToken,l)),n.map=[],nr(o,n,ht(e,o,t!=e.display.externalMeasured&&Ze(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=F(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=F(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Oe(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=F(n.pre.className,n.textClass||"")),n}function Jt(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function er(e,t,r,n,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;iu&&f.from<=u);d++);if(f.to>=c)return e(r,n,i,o,l,s,a);e(r,n.slice(0,f.to-u),i,o,null,s,a),o=null,n=n.slice(f.to-u),u=f.to}}}function rr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,s,a,u,c,f,d,h=i.length,p=0,g=1,m="",v=0;;){if(v==p){a=u=c=s="",d=null,f=null,v=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&v>x.to&&(v=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==v&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((d||(d={})).title=C.title),C.attributes)for(var S in C.attributes)(d||(d={}))[S]=C.attributes[S];C.collapsed&&(!f||Ht(f.marker,C)<0)&&(f=x)}else x.from>p&&v>x.from&&(v=x.from)}if(b)for(var k=0;k=h)break;for(var L=Math.min(h,v);;){if(m){var T=p+m.length;if(!f){var N=T>L?m.slice(0,L-p):m;t.addToken(t,N,l?l+a:a,c,p+N.length==v?u:"",s,d)}if(T>=L){m=m.slice(L-p),p=L;break}p=T,c=""}m=i.slice(o,o=r[g++]),l=Zt(r[g++],t.cm.options)}}else for(var O=1;Or)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ar(e,t,r,n){return Hr(e,Wr(e,t),r,n)}function Dr(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&t2&&o.push((a.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,r,n){var i,o=Pr(t.map,r,n),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i))}else{var h;u>0&&(f=n="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==n?h.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+on(e.display),top:p.top,bottom:p.bottom}:Fr}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=a-s)-1,t>=a&&(l="right")),null!=i){if(n=e[u+2],s==a&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==a-s)for(;u=0&&(r=e[i]).left==r.right;i--);return r}function Ir(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=n.text.length?(a=n.text.length,u="before"):a<=0&&(a=0,u="after"),!s)return l("before"==u?a-1:a,"before"==u);function c(e,t,r){return l(r?e-1:e,1==s[t].level!=r)}var f=ae(s,a,u),d=se,h=c(a,f,"before"==u);return null!=d&&(h.other=c(a,d,"before"!=u)),h}function Yr(e,t){var r=0;t=at(e.doc,t),e.options.lineWrapping||(r=on(e.display)*t.ch);var n=Xe(e.doc,t.line),i=jt(n)+Sr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function qr(e,t,r,n,i){var o=tt(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function $r(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return qr(n.first,0,null,-1,-1);var i=Qe(n,r),o=n.first+n.size-1;if(i>o)return qr(n.first+n.size-1,Xe(n,o).text.length,null,1,1);t<0&&(t=0);for(var l=Xe(n,i);;){var s=en(e,l,i,t,r),a=Et(l,s.ch+(s.xRel>0||s.outside>0?1:0));if(!a)return s;var u=a.find(1);if(u.line==i)return u;l=Xe(n,i=u.line)}}function Zr(e,t,r,n){n-=Vr(t);var i=t.text.length,o=le((function(t){return Hr(e,r,t-1).bottom<=n}),i,0);return{begin:o,end:i=le((function(t){return Hr(e,r,t).top>n}),o,i)}}function Qr(e,t,r,n){return r||(r=Wr(e,t)),Zr(e,t,r,jr(e,t,Hr(e,r,n),"line").top)}function Jr(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function en(e,t,r,n,i){i-=jt(t);var o=Wr(e,t),l=Vr(t),s=0,a=t.text.length,u=!0,c=ce(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?rn:tn)(e,t,r,o,c,n,i);s=(u=1!=f.level)?f.from:f.to-1,a=u?f.to:f.from-1}var d,h,p=null,g=null,m=le((function(t){var r=Hr(e,o,t);return r.top+=l,r.bottom+=l,!!Jr(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,g=r),!0)}),s,a),v=!1;if(g){var y=n-g.left=w.bottom?1:0}return qr(r,m=oe(t.text,m,1),h,v,n-d)}function tn(e,t,r,n,i,o,l){var s=le((function(s){var a=i[s],u=1!=a.level;return Jr(Xr(e,tt(r,u?a.to:a.from,u?"before":"after"),"line",t,n),o,l,!0)}),0,i.length-1),a=i[s];if(s>0){var u=1!=a.level,c=Xr(e,tt(r,u?a.from:a.to,u?"after":"before"),"line",t,n);Jr(c,o,l,!0)&&c.top>l&&(a=i[s-1])}return a}function rn(e,t,r,n,i,o,l){var s=Zr(e,t,n,l),a=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d=u||h.to<=a)){var p=Hr(e,n,1!=h.level?Math.min(u,h.to)-1:Math.max(a,h.from)).right,g=pg)&&(c=h,f=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function nn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==zr){zr=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)zr.appendChild(document.createTextNode("x")),zr.appendChild(A("br"));zr.appendChild(document.createTextNode("x"))}O(e.measure,zr);var r=zr.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),N(e.measure),r||1}function on(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"CodeMirror-line-like");O(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ln(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var s=e.display.gutterSpecs[l].className;r[s]=o.offsetLeft+o.clientLeft+i,n[s]=o.clientWidth}return{fixedPos:sn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function sn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function an(e){var t=nn(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/on(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)St&&Bt(e.doc,t)i.viewFrom?pn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)pn(e);else if(t<=i.viewFrom){var o=gn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):pn(e)}else if(r>=i.viewTo){var l=gn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):pn(e)}else{var s=gn(e,t,t,-1),a=gn(e,r,r+n,1);s&&a?(i.view=i.view.slice(0,s.index).concat(or(e,s.lineN,a.lineN)).concat(i.view.slice(a.index)),i.viewTo+=n):pn(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[fn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==G(l,r)&&l.push(r)}}}function pn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function gn(e,t,r,n){var i,o=fn(e,t),l=e.display.view;if(!St||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,a=0;a0){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,r+=i}for(;Bt(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function mn(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||s.to().linet||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(g,r||0,null==n?d:n,(function(e,t,i,f){var m="ltr"==i,v=h(e,m?"left":"right"),y=h(t-1,m?"right":"left"),b=null==r&&0==e,w=null==n&&t==d,x=0==f,C=!g||f==g.length-1;if(y.top-v.top<=3){var S=(u?w:b)&&C,k=(u?b:w)&&x?s:(m?v:y).left,M=S?a:(m?y:v).right;c(k,v.top,M-k,v.bottom)}else{var L,T,N,O;m?(L=u&&b&&x?s:v.left,T=u?a:p(e,i,"before"),N=u?s:p(t,i,"after"),O=u&&w&&C?a:y.right):(L=u?p(e,i,"before"):s,T=!u&&b&&x?a:v.right,N=!u&&w&&C?s:y.left,O=u?p(t,i,"after"):a),c(L,v.top,T-L,v.bottom),v.bottom0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Sn(e){e.state.focused||(e.display.input.focus(),Mn(e))}function kn(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ln(e))}),100)}function Mn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,z(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Cn(e))}function Ln(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Tn(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n.005||d<-.005)&&($e(i.line,l),Nn(i.line),i.rest))for(var h=0;he.display.sizerWidth){var p=Math.ceil(u/on(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Nn(e){if(e.widgets)for(var t=0;t=l&&(o=Qe(t,jt(Xe(t,a))-e.wrapper.clientHeight),l=a)}return{from:o,to:Math.max(l,o+1)}}function An(e,t){var r=e.display,n=nn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Nr(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+kr(r),a=t.tops-n;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(l.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,d=Tr(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?l.scrollLeft=0:t.leftd+f-3&&(l.scrollLeft=t.right+(h?0:10)-d),l}function Dn(e,t){null!=t&&(zn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Wn(e){zn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Hn(e,t,r){null==t&&null==r||zn(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function zn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Fn(e,Yr(e,t.from),Yr(e,t.to),t.margin))}function Fn(e,t,r,n){var i=An(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Hn(e,i.scrollLeft,i.scrollTop)}function Pn(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||ui(e,{top:t}),En(e,t,!0),r&&ui(e),ii(e,100))}function En(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function In(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,di(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Rn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+kr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Lr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Bn=function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),de(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),de(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Bn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bn.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Bn.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto",t.set(1e3,(function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)}))},Bn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Gn=function(){};function Un(e,t){t||(t=Rn(e));var r=e.display.barWidth,n=e.display.barHeight;Vn(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Tn(e),Vn(e,Rn(e)),r=e.display.barWidth,n=e.display.barHeight}function Vn(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}Gn.prototype.update=function(){return{bottom:0,right:0}},Gn.prototype.setScrollLeft=function(){},Gn.prototype.setScrollTop=function(){},Gn.prototype.clear=function(){};var jn={native:Bn,null:Gn};function Kn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new jn[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),de(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,r){"horizontal"==r?In(e,t):Pn(e,t)}),e),e.display.scrollbars.addClass&&z(e.display.wrapper,e.display.scrollbars.addClass)}var _n=0;function Xn(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++_n},t=e.curOp,lr?lr.ops.push(t):t.ownsGroup=lr={ops:[t],delayedCallbacks:[]}}function Yn(e){var t=e.curOp;t&&function(e,t){var r=e.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,r=0;do{for(;r=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new li(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function $n(e){e.updatedDisplay=e.mustUpdate&&si(e.cm,e.update)}function Zn(e){var t=e.cm,r=t.display;e.updatedDisplay&&Tn(t),e.barMeasure=Rn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ar(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Lr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Tr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Qn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var o=A("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Sr(e.display))+"px;\n height: "+(t.bottom-t.top+Lr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?tt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?tt(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var l=!1,s=Xr(e,t),a=r&&r!=t?Xr(e,r):s,u=An(e,i={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-n,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+n}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Pn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(In(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}(t,at(n,e.scrollToPos.from),at(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l=e.display.viewTo)){var r=+new Date+e.options.workTime,n=pt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(n.line>=e.display.viewFrom){var l=o.styles,s=o.text.length>e.options.maxHighlightLength?Ve(t.mode,n.state):null,a=dt(e,o,n,!0);s&&(n.state=s),o.styles=a.styles;var u=o.styleClasses,c=a.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&dr)return ii(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&ei(e,(function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==mn(e))return!1;hi(e)&&(pn(e),t.dims=ln(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),St&&(o=Bt(e.doc,o),l=Gt(e.doc,l));var s=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;!function(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=or(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=or(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,fn(e,r)))),n.viewTo=r}(e,o,l),r.viewOffset=jt(Xe(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var a=mn(e);if(!s&&0==a&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=H();if(!t||!W(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&W(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return a>4&&(r.lineDiv.style.display="none"),function(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,l=o.firstChild;function s(t){var r=t.nextSibling;return u&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var a=n.view,c=n.viewFrom,f=0;f-1&&(h=!1),cr(e,d,c,r)),h&&(N(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(et(e.options,c)))),l=d.node.nextSibling}else{var p=vr(e,d,c,r);o.insertBefore(p,l)}c+=d.size}for(;l;)l=s(l)}(e,r.updateLineNumbers,t.dims),a>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=H()&&(e.activeElt.focus(),e.anchorNode&&W(document.body,e.anchorNode)&&W(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}(c),N(r.cursorDiv),N(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ii(e,400)),r.updateLineNumbers=null,!0}function ai(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Tr(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+kr(e.display)-Nr(e),r.top)}),t.visible=On(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&si(e,t);n=!1){Tn(e);var i=Rn(e);vn(e),Un(e,i),fi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ui(e,t){var r=new li(e,t);if(si(e,r)){Tn(e),ai(e,r);var n=Rn(e);vn(e),Un(e,n),fi(e,n),r.finish()}}function ci(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function fi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Lr(e)+"px"}function di(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=sn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;ls.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&a||o&&c){if(o&&b&&u)e:for(var f=t.target,h=l.view;f!=s;f=f.parentNode)for(var p=0;p=0&&rt(e,n.to())<=0)return r}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function Mi(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort((function(e,t){return rt(e.from(),t.from())})),r=G(t,i);for(var o=1;o0:a>=0){var u=lt(s.from(),l.from()),c=ot(s.to(),l.to()),f=s.empty()?l.from()==l.head:s.from()==s.head;o<=r&&--r,t.splice(--o,2,new ki(f?c:u,f?u:c))}}return new Si(t,r)}function Li(e,t){return new Si([new ki(e,t||e)],0)}function Ti(e){return e.text?tt(e.from.line+e.text.length-1,q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ni(e,t){if(rt(e,t.from)<0)return e;if(rt(e,t.to)<=0)return Ti(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Ti(t).ch-t.to.ch),tt(r,n)}function Oi(e,t){for(var r=[],n=0;n1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}ar(e,"change",e,t)}function Fi(e,t,r){!function e(n,i,o){if(n.linked)for(var l=0;ls-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),q(e.done)):e.done.length&&!q(e.done).ranges?q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),q(e.done)):void 0}(i,i.lastOp==n)))l=q(o.changes),0==rt(t.from,t.to)&&0==rt(t.from,l.to)?l.to=Ti(t):o.changes.push(Ri(e,t));else{var a=q(i.done);for(a&&a.ranges||Vi(e.sel,i.done),o={changes:[Ri(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||ge(e,"historyAdded")}function Ui(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,q(i.done),t))?i.done[i.done.length-1]=t:Vi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&Bi(i.undone)}function Vi(e,t){var r=q(t);r&&r.ranges&&r.equals(e)||t.push(e)}function ji(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o}))}function Ki(e){if(!e)return null;for(var t,r=0;r-1&&(q(s)[f]=u[f],delete u[f])}}}return n}function Yi(e,t,r,n){if(n){var i=e.anchor;if(r){var o=rt(t,i)<0;o!=rt(r,i)<0?(i=t,t=r):o!=rt(t,r)<0&&(t=r)}return new ki(i,t)}return new ki(r||t,t)}function qi(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),eo(e,new Si([Yi(e.sel.primary(),t,r,i)],0),n)}function $i(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(ge(a,"beforeCursorEnter"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!a.atomic)continue;if(r){var f=a.find(n<0?1:-1),d=void 0;if((n<0?c:u)&&(f=so(e,f,-n,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(d=rt(f,r))&&(n<0?d<0:d>0))return oo(e,f,t,n,i)}var h=a.find(n<0?-1:1);return(n<0?u:c)&&(h=so(e,h,n,h.line==t.line?o:null)),h?oo(e,h,t,n,i):null}}return t}function lo(e,t,r,n,i){var o=n||1,l=oo(e,t,r,o,i)||!i&&oo(e,t,r,o,!0)||oo(e,t,r,-o,i)||!i&&oo(e,t,r,-o,!0);return l||(e.cantEdit=!0,tt(e.first,0))}function so(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?at(e,tt(t.line-1)):null:r>0&&t.ch==(n||Xe(e,t.line)).text.length?t.line0)){var c=[a,1],f=rt(u.from,s.from),d=rt(u.to,s.to);(f<0||!l.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!l.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),a+=c.length-3}}return i}(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)fo(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else fo(e,t)}}function fo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=rt(t.from,t.to)){var r=Oi(e,t);Gi(e,t,r,e.cm?e.cm.curOp.id:NaN),go(e,t,r,Tt(e,t));var n=[];Fi(e,(function(e,r){r||-1!=G(n,e.history)||(bo(e.history,t),n.push(e.history)),go(e,t,null,Tt(e,t))}))}}function ho(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,l=e.sel,s="undo"==t?o.done:o.undone,a="undo"==t?o.undone:o.done,u=0;u=0;--h){var p=d(h);if(p)return p.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new Si($(e.sel.ranges,(function(e){return new ki(tt(e.anchor.line+t,e.anchor.ch),tt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){dn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:tt(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ye(e,t.from,t.to),r||(r=Oi(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=Ze(Rt(Xe(n,o.line))),n.iter(a,l.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&ve(e),zi(n,t,r,an(e)),e.options.lineWrapping||(n.iter(a,o.line+t.text.length,(function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=Xe(e,n).stateAfter;if(i&&(!(i instanceof ct)||n+i.lookAhead1||!(this.children[0]instanceof xo))){var a=[];this.collapse(a),this.children=[new xo(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var s=o.lines.length%25+25,a=s;a10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(It(e,t.line,t,r,o)||t.line!=r.line&&It(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");St=!0}o.addToHistory&&Gi(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var s,a=t.line,u=e.cm;if(e.iter(a,r.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&Rt(e)==u.display.maxLine&&(s=!0),o.collapsed&&a!=t.line&&$e(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new kt(o,a==t.line?t.ch:null,a==r.line?r.ch:null)),++a})),o.collapsed&&e.iter(t.line,r.line+1,(function(t){Ut(e,t)&&$e(t,0)})),o.clearOnEnter&&de(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ct=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Mo,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)dn(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)hn(u,c,"text");o.atomic&&no(u.doc),ar(u,"markerAdded",u,o)}return o}Lo.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Xn(t),ye(this,"clear")){var n=this.find();n&&ar(this,"clear",n.from,n.to)}for(var i=null,o=null,l=0;lt.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&dn(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&no(t.doc)),t&&ar(t,"markerCleared",t,this,i,o),r&&Yn(t),this.parent&&this.parent.clear()}},Lo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;a--)co(this,n[a]);s?Ji(this,s):this.cm&&Wn(this.cm)})),undo:ni((function(){ho(this,"undo")})),redo:ni((function(){ho(this,"redo")})),undoSelection:ni((function(){ho(this,"undo",!0)})),redoSelection:ni((function(){ho(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=at(this,e),t=at(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var l=o.markedSpans;if(l)for(var s=0;s=a.to||null==a.from&&i!=e.line||null!=a.from&&i==t.line&&a.from>=t.ch||r&&!r(a.marker)||n.push(a.marker.parent||a.marker)}++i})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r})),at(this,tt(r,t))},indexFromPos:function(e){var t=(e=at(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var c=e.dataTransfer.getData("Text");if(c){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),to(t.doc,Li(r,r)),f)for(var d=0;d=0;t--)mo(e.doc,"",n[t].from,n[t].to,"+delete");Wn(e)}))}function Jo(e,t,r){var n=oe(e.text,t+r,r);return n<0||n>e.text.length?null:n}function el(e,t,r){var n=Jo(e,t.ch,r);return null==n?null:new tt(t.line,n,r<0?"after":"before")}function tl(e,t,r,n,i){if(e){var o=ce(r,t.doc.direction);if(o){var l,s=i<0?q(o):o[0],a=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Wr(t,r);l=i<0?r.text.length-1:0;var c=Hr(t,u,l).top;l=le((function(e){return Hr(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,l),"before"==a&&(l=Jo(r,l,1))}else l=i<0?s.to:s.from;return new tt(n,l,a)}}return new tt(n,i<0?r.text.length:0,i<0?"before":"after")}jo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},jo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},jo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},jo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},jo.default=b?jo.macDefault:jo.pcDefault;var rl={selectAll:ao,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Qo(e,(function(t){if(t.empty()){var r=Xe(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new tt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),tt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=Xe(e.doc,i.line-1).text;l&&(i=new tt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),tt(i.line-1,l.length-1),i,"+transpose"))}r.push(new ki(i,i))}e.setSelections(r)}))},newlineAndIndent:function(e){return ei(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(rt((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(rt(i.to(),t)>0||t.xRel<0)?function(e,t,r,n){var i=e.display,o=!1,l=ti(e,(function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,pe(i.wrapper.ownerDocument,"mouseup",l),pe(i.wrapper.ownerDocument,"mousemove",c),pe(i.scroller,"dragstart",f),pe(i.scroller,"drop",l),o||(we(t),n.addNew||qi(e.doc,r,null,null,n.extend),u||s&&9==a?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),de(i.wrapper.ownerDocument,"mouseup",l),de(i.wrapper.ownerDocument,"mousemove",c),de(i.scroller,"dragstart",f),de(i.scroller,"drop",l),kn(e),setTimeout((function(){return i.input.focus()}),20)}(e,n,t,o):function(e,t,r,n){var i=e.display,o=e.doc;we(t);var l,s,a=o.sel,u=a.ranges;if(n.addNew&&!n.extend?(s=o.sel.contains(r),l=s>-1?u[s]:new ki(r,r)):(l=o.sel.primary(),s=o.sel.primIndex),"rectangle"==n.unit)n.addNew||(l=new ki(r,r)),r=cn(e,t,!0,!0),s=-1;else{var c=yl(e,r,n.unit);l=n.extend?Yi(l,c.anchor,c.head,n.extend):c}n.addNew?-1==s?(s=u.length,eo(o,Mi(e,u.concat([l]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==n.unit&&!n.extend?(eo(o,Mi(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),a=o.sel):Zi(o,s,l,j):(s=0,eo(o,new Si([l],0),j),a=o.sel);var f=r;function d(t){if(0!=rt(f,t))if(f=t,"rectangle"==n.unit){for(var i=[],u=e.options.tabSize,c=R(Xe(o,r.line).text,r.ch,u),d=R(Xe(o,t.line).text,t.ch,u),h=Math.min(c,d),p=Math.max(c,d),g=Math.min(r.line,t.line),m=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=m;g++){var v=Xe(o,g).text,y=_(v,h,u);h==p?i.push(new ki(tt(g,y),tt(g,y))):v.length>y&&i.push(new ki(tt(g,y),tt(g,_(v,p,u))))}i.length||i.push(new ki(r,r)),eo(o,Mi(e,a.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=l,x=yl(e,t,n.unit),C=w.anchor;rt(x.anchor,C)>0?(b=x.head,C=lt(w.from(),x.anchor)):(b=x.anchor,C=ot(w.to(),x.head));var S=a.ranges.slice(0);S[s]=function(e,t){var r=t.anchor,n=t.head,i=Xe(e.doc,r.line);if(0==rt(r,n)&&r.sticky==n.sticky)return t;var o=ce(i);if(!o)return t;var l=ae(o,r.ch,r.sticky),s=o[l];if(s.from!=r.ch&&s.to!=r.ch)return t;var a,u=l+(s.from==r.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(n.line!=r.line)a=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ae(o,n.ch,n.sticky),f=c-l||(n.ch-r.ch)*(1==s.level?-1:1);a=c==u-1||c==u?f<0:f>0}var d=o[u+(a?-1:0)],h=a==(1==d.level),p=h?d.from:d.to,g=h?"after":"before";return r.ch==p&&r.sticky==g?t:new ki(new tt(r.line,p,g),n)}(e,new ki(at(o,C),b)),eo(o,Mi(e,S,s),j)}}var h=i.wrapper.getBoundingClientRect(),p=0;function g(t){var r=++p,l=cn(e,t,!0,"rectangle"==n.unit);if(l)if(0!=rt(l,f)){e.curOp.focus=H(),d(l);var s=On(i,o);(l.line>=s.to||l.lineh.bottom?20:0;a&&setTimeout(ti(e,(function(){p==r&&(i.scroller.scrollTop+=a,g(t))})),50)}}function m(t){e.state.selectingText=!1,p=1/0,t&&(we(t),i.input.focus()),pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=ti(e,(function(e){0!==e.buttons&&Me(e)?g(e):m(e)})),y=ti(e,m);e.state.selectingText=y,de(i.wrapper.ownerDocument,"mousemove",v),de(i.wrapper.ownerDocument,"mouseup",y)}(e,n,t,o)}(t,n,o,e):ke(e)==r.scroller&&we(e):2==i?(n&&qi(t.doc,n),setTimeout((function(){return r.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):kn(t)))}}function yl(e,t,r){if("char"==r)return new ki(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new ki(tt(t.line,0),at(e.doc,tt(t.line+1,0)));var n=r(e,t);return new ki(n.from,n.to)}function bl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&we(t);var l=e.display,s=l.lineDiv.getBoundingClientRect();if(o>s.bottom||!ye(e,r))return Ce(t);o-=s.top-l.viewOffset;for(var a=0;a=i)return ge(e,r,e,Qe(e.doc,o),e.display.gutterSpecs[a].className,t),Ce(t)}}function wl(e,t){return bl(e,t,"gutterClick",!0)}function xl(e,t){Cr(e.display,t)||function(e,t){return!!ye(e,"gutterContextMenu")&&bl(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Cl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Br(e)}ml.prototype.compare=function(e,t,r){return this.time+400>e&&0==rt(t,this.pos)&&r==this.button};var Sl={toString:function(){return"CodeMirror.Init"}},kl={},Ml={};function Ll(e,t,r){if(!t!=!(r&&r!=Sl)){var n=e.display.dragFunctions,i=t?de:pe;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Tl(e){e.options.lineWrapping?(z(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),_t(e)),un(e),dn(e),Br(e),setTimeout((function(){return Un(e)}),100)}function Nl(e,t){var r=this;if(!(this instanceof Nl))return new Nl(e,t);this.options=t=t?I(t):{},I(kl,t,!1);var n=t.value;"string"==typeof n?n=new Wo(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Nl.inputStyles[t.inputStyle](this),o=this.display=new vi(e,n,i,t);for(var l in o.wrapper.CodeMirror=this,Cl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),s&&a<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),function(e){var t=e.display;de(t.scroller,"mousedown",ti(e,vl)),de(t.scroller,"dblclick",s&&a<11?ti(e,(function(t){if(!me(e,t)){var r=cn(e,t);if(r&&!wl(e,t)&&!Cr(e.display,t)){we(t);var n=e.findWordAt(r);qi(e.doc,n.anchor,n.head)}}})):function(t){return me(e,t)||we(t)}),de(t.scroller,"contextmenu",(function(t){return xl(e,t)}));var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout((function(){return t.activeTouch=null}),1e3),(n=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}de(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!o(i)&&!wl(e,i)){t.input.ensurePolled(),clearTimeout(r);var l=+new Date;t.activeTouch={start:l,moved:!1,prev:l-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),de(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),de(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!Cr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var o,s=e.coordsChar(t.activeTouch,"page");o=!n.prev||l(n,n.prev)?new ki(s,s):!n.prev.prev||l(n,n.prev.prev)?e.findWordAt(s):new ki(tt(s.line,0),at(e.doc,tt(s.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),we(r)}i()})),de(t.scroller,"touchcancel",i),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Pn(e,t.scroller.scrollTop),In(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return Ci(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return Ci(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||Se(t)},over:function(t){me(e,t)||(function(e,t){var r=cn(e,t);if(r){var n=document.createDocumentFragment();bn(e,r,n),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,n)}}(e,t),Se(t))},start:function(t){return function(e,t){if(s&&(!e.state.draggingText||+new Date-Ho<100))Se(t);else if(!me(e,t)&&!Cr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=A("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),d&&r.parentNode.removeChild(r)}}(e,t)},drop:ti(e,zo),leave:function(t){me(e,t)||Fo(e)}};var u=t.input.getField();de(u,"keyup",(function(t){return dl.call(e,t)})),de(u,"keydown",ti(e,fl)),de(u,"keypress",ti(e,hl)),de(u,"focus",(function(t){return Mn(e,t)})),de(u,"blur",(function(t){return Ln(e,t)}))}(this),Io(),Xn(this),this.curOp.forceUpdate=!0,Pi(this,n),t.autofocus&&!y||this.hasFocus()?setTimeout(E(Mn,this),20):Ln(this),Ml)Ml.hasOwnProperty(l)&&Ml[l](r,t[l],Sl);hi(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?R(Xe(o,t-1).text,null,l):0:"add"==r?u=a+e.options.indentUnit:"subtract"==r?u=a-e.options.indentUnit:"number"==typeof r&&(u=a+r),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/l);h;--h)d+=l,f+="\t";if(dl,a=We(t),u=null;if(s&&n.ranges.length>1)if(Dl&&Dl.text.join("\n")==t){if(n.ranges.length%Dl.text.length==0){u=[];for(var c=0;c=0;d--){var h=n.ranges[d],p=h.from(),g=h.to();h.empty()&&(r&&r>0?p=tt(p.line,p.ch-r):e.state.overwrite&&!s?g=tt(g.line,Math.min(Xe(o,g.line).text.length,g.ch+q(a).length)):s&&Dl&&Dl.lineWise&&Dl.text.join("\n")==t&&(p=g=tt(p.line,0)));var m={from:p,to:g,text:u?u[d%u.length]:a,origin:i||(s?"paste":e.state.cutIncoming>l?"cut":"+input")};co(e.doc,m),ar(e,"inputRead",e,m)}t&&!s&&Fl(e,t),Wn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function zl(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ei(t,(function(){return Hl(t,r,0,null,"paste")})),!0}function Fl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s-1){l=Al(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Al(e,i.head.line,"smart"));l&&ar(e,"electricInput",e,i.head.line)}}}function Pl(e){for(var t=[],r=[],n=0;n=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=ae(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from=l.from&&d>=c.begin)){var h=f?"before":"after";return new tt(r.line,d,h)}}var p=function(e,t,n){for(var o=function(e,t){return t?new tt(r.line,a(e,1),"before"):new tt(r.line,e,"after")};e>=0&&e0==(1!=l.level),u=s?n.begin:a(n.end,-1);if(l.from<=u&&u0?c.end:a(c.begin,-1);return null==m||n>0&&m==t.text.length||!(g=p(n>0?0:i.length-1,n,u(m)))?null:g}(e.cm,s,t,r):el(s,t,r))){if(n||(l=t.line+r)=e.first+e.size||(t=new tt(l,t.ch,t.sticky),!(s=Xe(e,l))))return!1;t=tl(i,e.cm,s,t.line,r)}else t=o;return!0}if("char"==n)a();else if("column"==n)a(!0);else if("word"==n||"group"==n)for(var u=null,c="group"==n,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(r<0)||a(!d);d=!1){var h=s.text.charAt(t.ch)||"\n",p=te(h,f)?"w":c&&"\n"==h?"n":!c||/\s/.test(h)?null:"p";if(!c||d||p||(p="s"),u&&u!=p){r<0&&(r=1,a(),t.sticky="after");break}if(p&&(u=p),r>0&&!a(!d))break}var g=lo(e,t,o,l,!0);return nt(o,g)&&(g.hitSide=!0),g}function Bl(e,t,r,n){var i,o,l=e.doc,s=t.left;if("page"==n){var a=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(a-.5*nn(e.display),3);i=(r>0?t.bottom:t.top)+r*u}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=$r(e,s,i)).outside;){if(r<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*r}return o}var Gl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ul(e,t){var r=Dr(e,t.line);if(!r||r.hidden)return null;var n=Xe(e.doc,t.line),i=Or(r,n,t.line),o=ce(n,e.doc.direction),l="left";o&&(l=ae(o,t.ch)%2?"right":"left");var s=Pr(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function Vl(e,t){return t&&(e.bad=!0),e}function jl(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Vl(e.clipPos(tt(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Ul(t,i)||{node:a[0].measure.map[2],offset:0},c=o.linen.firstLine()&&(l=tt(l.line-1,Xe(n.doc,l.line-1).length)),s.ch==Xe(n.doc,s.line).text.length&&s.linei.viewTo-1)return!1;l.line==i.viewFrom||0==(e=fn(n,l.line))?(t=Ze(i.view[0].line),r=i.view[0].node):(t=Ze(i.view[e].line),r=i.view[e-1].node.nextSibling);var a,u,c=fn(n,s.line);if(c==i.view.length-1?(a=i.viewTo-1,u=i.lineDiv.lastChild):(a=Ze(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(function(e,t,r,n,i){var o="",l=!1,s=e.doc.lineSeparator(),a=!1;function u(e){return function(t){return t.id==e}}function c(){l&&(o+=s,a&&(o+=s),l=a=!1)}function f(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void f(r);var o,h=t.getAttribute("cm-marker");if(h){var p=e.findMarks(tt(n,0),tt(i+1,0),u(+h));return void(p.length&&(o=p[0].find(0))&&f(Ye(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&c();for(var m=0;m1&&d.length>1;)if(q(f)==q(d))f.pop(),d.pop(),a--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var h=0,p=0,g=f[0],m=d[0],v=Math.min(g.length,m.length);hl.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var x=tt(t,h),C=tt(a,d.length?q(d).length-p:0);return f.length>1||f[0]||rt(x,C)?(mo(n.doc,f,x,C,"+input"),!0):void 0},Gl.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gl.prototype.reset=function(){this.forceCompositionEnd()},Gl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Gl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Gl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ei(this.cm,(function(){return dn(e.cm)}))},Gl.prototype.setUneditable=function(e){e.contentEditable="false"},Gl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ti(this.cm,Hl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Gl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Gl.prototype.onContextMenu=function(){},Gl.prototype.resetPosition=function(){},Gl.prototype.needsContentAttribute=!0;var _l=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};_l.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(n,e)){if(n.somethingSelected())Wl({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Pl(n);Wl({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,V):(r.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),de(i,"input",(function(){s&&a>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()})),de(i,"paste",(function(e){me(n,e)||zl(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),de(i,"cut",o),de(i,"copy",o),de(e.scroller,"paste",(function(t){if(!Cr(e,t)&&!me(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),de(e.lineSpace,"selectstart",(function(t){Cr(e,t)||we(t)})),de(i,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),de(i,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},_l.prototype.createField=function(e){this.wrapper=Il(),this.textarea=this.wrapper.firstChild},_l.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=yn(e);if(e.options.moveInputWithCursor){var i=Xr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},_l.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},_l.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&P(this.textarea),s&&a>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},_l.prototype.getField=function(){return this.textarea},_l.prototype.supportsTouch=function(){return!1},_l.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||H()!=this.textarea))try{this.textarea.focus()}catch(De){}},_l.prototype.blur=function(){this.textarea.blur()},_l.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},_l.prototype.receivedFocus=function(){this.slowPoll()},_l.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},_l.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}))},_l.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||He(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(n.length,i.length);l1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},_l.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},_l.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},_l.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=cn(r,e),l=n.scroller.scrollTop;if(o&&!d){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&ti(r,eo)(r.doc,Li(o),V);var c,f=i.style.cssText,h=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(c=window.scrollY),n.input.focus(),u&&window.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),s&&a>=9&&g(),k?(Se(e),de(window,"mouseup",(function e(){pe(window,"mouseup",e),setTimeout(m,20)}))):setTimeout(m,50)}function g(){if(null!=i.selectionStart){var e=r.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=f,s&&a<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=l),null!=i.selectionStart)){(!s||s&&a<9)&&g();var e=0;n.detectingSelectAll=setTimeout((function o(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ti(r,ao)(r):e++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())}),200)}}},_l.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},_l.prototype.setUneditable=function(){},_l.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=Sl&&i(e,t,r)}:i)}e.defineOption=r,e.Init=Sl,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,Di(e)}),!0),r("indentUnit",2,Di,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){Wi(e),Br(e),dn(e)}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(tt(n,o))}n++}));for(var i=r.length-1;i>=0;i--)mo(e.doc,t,r[i],tt(r[i].line,r[i].ch+t.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Sl&&e.refresh()})),r("specialCharPlaceholder",Jt,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!x),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){Cl(e),mi(e)}),!0),r("keyMap","default",(function(e,t,r){var n=Zo(t),i=r!=Sl&&Zo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Tl,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=pi(t,e.options.lineNumbers),mi(e)}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?sn(e.display)+"px":"0",e.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return Un(e)}),!0),r("scrollbarStyle","native",(function(e){Kn(e),Un(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=pi(e.options.gutters,t),mi(e)}),!0),r("firstLineNumber",1,mi,!0),r("lineNumberFormatter",(function(e){return e}),mi,!0),r("showCursorWhenSelecting",!1,vn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(Ln(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),r("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),r("dragDrop",!0,Ll),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,vn,!0),r("singleCursorHeightPerLine",!0,vn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Wi,!0),r("addModeClass",!1,Wi,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,Wi,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null)}(Nl),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&ti(this,t[e])(this,r,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Zo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;rn&&(Al(t,o.head.line,e,!0),n=o.head.line,i==t.doc.sel.primIndex&&Wn(t));else{var l=o.from(),s=o.to(),a=Math.max(n,l.line);n=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var u=a;u0&&Zi(t.doc,i,new ki(l,c[i].to()),V)}}})),getTokenAt:function(e,t){return bt(this,e,t)},getLineTokens:function(e,t){return bt(this,tt(e),t,!0)},getTokenTypeAt:function(e){e=at(this.doc,e);var t,r=ht(this,Xe(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]o&&(e=o,i=!0),n=Xe(this.doc,e)}else n=e;return jr(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-jt(n):0)},defaultTextHeight:function(){return nn(this.display)},defaultCharWidth:function(){return on(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o,l,s,a=this.display,u=(e=Xr(this,at(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==n)u=e.top;else if("above"==n||"near"==n){var f=Math.max(a.wrapper.clientHeight,this.doc.height),d=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(u=e.bottom),c+t.offsetWidth>d&&(c=d-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),r&&(o=this,l={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=An(o,l)).scrollTop&&Pn(o,s.scrollTop),null!=s.scrollLeft&&In(o,s.scrollLeft))},triggerOnKeyDown:ri(fl),triggerOnKeyPress:ri(hl),triggerOnKeyUp:dl,triggerOnMouseDown:ri(vl),execCommand:function(e){if(rl.hasOwnProperty(e))return rl[e].call(null,this)},triggerElectric:ri((function(e){Fl(this,e)})),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=at(this.doc,e),l=0;l0&&l(t.charAt(r-1));)--r;for(;n.5)&&un(this),ge(this,"refresh",this)})),swapDoc:ri((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Pi(this,e),Br(this),this.display.input.reset(),Hn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ar(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}(Nl);var Xl="iter insert remove copy getEditor constructor".split(" ");for(var Yl in Wo.prototype)Wo.prototype.hasOwnProperty(Yl)&&G(Xl,Yl)<0&&(Nl.prototype[Yl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Wo.prototype[Yl]));return be(Wo),Nl.inputStyles={textarea:_l,contenteditable:Gl},Nl.defineMode=function(e){Nl.defaults.mode||"null"==e||(Nl.defaults.mode=e),Ie.apply(this,arguments)},Nl.defineMIME=function(e,t){Ee[e]=t},Nl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Nl.defineMIME("text/plain","null"),Nl.defineExtension=function(e,t){Nl.prototype[e]=t},Nl.defineDocExtension=function(e,t){Wo.prototype[e]=t},Nl.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=H();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=s.getValue()}var i;if(e.form&&(de(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(De){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Nl((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=pe,e.on=de,e.wheelEventPixels=xi,e.Doc=Wo,e.splitLines=We,e.countColumn=R,e.findColumn=_,e.isWordChar=ee,e.Pass=U,e.signal=ge,e.Line=Xt,e.changeEnd=Ti,e.scrollbarModel=jn,e.Pos=tt,e.cmpPos=rt,e.modes=Pe,e.mimeModes=Ee,e.resolveMode=Re,e.getMode=Be,e.modeExtensions=Ge,e.extendMode=Ue,e.copyState=Ve,e.startState=Ke,e.innerMode=je,e.commands=rl,e.keyMap=jo,e.keyName=$o,e.isModifierKey=Yo,e.lookupKey=Xo,e.normalizeKeyMap=_o,e.StringStream=_e,e.SharedTextMarker=No,e.TextMarker=Lo,e.LineWidget=So,e.e_preventDefault=we,e.e_stopPropagation=xe,e.e_stop=Se,e.addClass=z,e.contains=W,e.rmClass=T,e.keyNames=Bo}(Nl),Nl.version="5.49.0",Nl},"object"===l(t)?e.exports=o():void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i)},22080:function(e,t,r){var n,i,o,l;function s(e){return(s="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)}e=r.nmd(e),l=function(e){"use strict";e.defineMode("jinja2",(function(){var e=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],t=/^[+\-*&%=<>!?|~^]/,r=/^[:\[\(\{]/,n=["true","false"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function o(o,l){var s=o.peek();if(l.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),l.incomment=!1):o.skipToEnd(),"comment";if(l.intag){if(l.operator){if(l.operator=!1,o.match(n))return"atom";if(o.match(i))return"number"}if(l.sign){if(l.sign=!1,o.match(n))return"atom";if(o.match(i))return"number"}if(l.instring)return s==l.instring&&(l.instring=!1),o.next(),"string";if("'"==s||'"'==s)return l.instring=s,o.next(),"string";if(o.match(l.intag+"}")||o.eat("-")&&o.match(l.intag+"}"))return l.intag=!1,"tag";if(o.match(t))return l.operator=!0,"operator";if(o.match(r))l.sign=!0;else if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(n))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next();return"variable"}if(o.eat("{")){if(o.eat("#"))return l.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),l.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return l.intag=s,"{"==s&&(l.intag="}"),o.eat("-"),"tag"}o.next()}return e=new RegExp("(("+e.join(")|(")+"))\\b"),n=new RegExp("(("+n.join(")|(")+"))\\b"),{startState:function(){return{tokenize:o}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"{#",blockCommentEnd:"#}"}})),e.defineMIME("text/jinja2","jinja2")},"object"==s(t)&&"object"==s(e)?l(r(79074)):(i=[r(79074)],void 0===(o="function"==typeof(n=l)?n.apply(t,i):n)||(e.exports=o))},19393:function(e,t,r){var n,i,o,l;function s(e){return(s="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)}e=r.nmd(e),l=function(e){"use strict";e.defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,r){var n=t.peek(),i=r.escaped;if(r.escaped=!1,"#"==n&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(r.literal&&t.indentation()>r.keyCol)return t.skipToEnd(),"string";if(r.literal&&(r.literal=!1),t.sol()){if(r.keyCol=0,r.pair=!1,r.pairStart=!1,t.match(/---/))return"def";if(t.match(/\.\.\./))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==n?r.inlinePairs++:"}"==n?r.inlinePairs--:"["==n?r.inlineList++:r.inlineList--,"meta";if(r.inlineList>0&&!i&&","==n)return t.next(),"meta";if(r.inlinePairs>0&&!i&&","==n)return r.keyCol=0,r.pair=!1,r.pairStart=!1,t.next(),"meta";if(r.pairStart){if(t.match(/^\s*(\||\>)\s*/))return r.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==r.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(r.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!r.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(r.pair=!0,r.keyCol=t.indentation(),"atom"):r.pair&&t.match(/^:\s*/)?(r.pairStart=!0,"meta"):(r.pairStart=!1,r.escaped="\\"==n,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")},"object"==s(t)&&"object"==s(e)?l(r(79074)):(i=[r(79074)],void 0===(o="function"==typeof(n=l)?n.apply(t,i):n)||(e.exports=o))},49338:function(e,t){"use strict";t.Z="/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor-mark {\n background-color: rgba(20, 255, 20, 0.5);\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n}\n.cm-animate-fat-cursor {\n width: auto;\n border: 0;\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n background-color: #7e7;\n}\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px; margin-right: -30px;\n padding-bottom: 30px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 30px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -30px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n"}}]); -//# sourceMappingURL=chunk.0aeb318c1dfa0b946242.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js.gz b/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js.gz deleted file mode 100644 index 1cdb72133..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js.map b/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js.map deleted file mode 100644 index c82e5d8ce..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.0aeb318c1dfa0b946242.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.0aeb318c1dfa0b946242.js","sources":["webpack://home-assistant-frontend/chunk.0aeb318c1dfa0b946242.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0ca880f618245e0de2ab.js.map b/supervisor/api/panel/frontend_es5/chunk.0ca880f618245e0de2ab.js.map deleted file mode 100644 index bafffcedd..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.0ca880f618245e0de2ab.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.0ca880f618245e0de2ab.js","sources":["webpack://home-assistant-frontend/chunk.0ca880f618245e0de2ab.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js b/supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js rename to supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js index 7ff4a6eb4..b64148ffa 100644 --- a/supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js +++ b/supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[694],{56884:function(e,t,r){"use strict";r.r(t);var n=r(99722),o=r(92923),i=(r(93546),r(11654)),a=r(55677);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 s(){var e=f(['\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 ']);return s=function(){return e},e}function u(){var e=f(["\n \n \n \n "]);return u=function(){return e},e}function l(){var e=f([""]);return l=function(){return e},e}function f(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 d(e,t){return(d=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(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"!==c(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(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(){b=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 c=this.fromElementDescriptor(e),s=this.toElementFinisherExtras((0,o[i])(c)||c);e=s.element,this.addElementPlacement(e,t),s.finisher&&n.push(s.finisher);var u=s.extras;if(u){for(var l=0;l=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);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:self;t.addEventListener("message",(function r(a){if(a&&a.data){var c,u=Object.assign({path:[]},a.data),l=u.id,f=u.type,p=u.path,d=(a.data.argumentList||[]).map(O);try{var h=p.slice(0,-1).reduce((function(e,t){return e[t]}),e),y=p.reduce((function(e,t){return e[t]}),e);switch(f){case 0:c=y;break;case 1:h[p.slice(-1)[0]]=O(a.data.value),c=!0;break;case 2:c=y.apply(h,d);break;case 3:var v;c=j(i(y,s(d)));break;case 4:var w=new MessageChannel,k=w.port1,E=w.port2;b(e,E),c=P(k,[k]);break;case 5:c=void 0}}catch(v){c=o({value:v},m,0)}Promise.resolve(c).catch((function(e){return o({value:e},m,0)})).then((function(e){var o=n(A(e),2),i=o[0],a=o[1];t.postMessage(Object.assign(Object.assign({},i),{id:l}),a),5===f&&(t.removeEventListener("message",r),g(t))}))}})),t.start&&t.start()}function g(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function w(e,t){return E(e,[],t)}function k(e){if(e)throw new Error("Proxy has been released and is not useable")}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,i=new Proxy(r,{get:function(r,n){if(k(o),n===h)return function(){return C(e,{type:5,path:t.map((function(e){return e.toString()}))}).then((function(){g(e),o=!0}))};if("then"===n){if(0===t.length)return{then:function(){return i}};var a=C(e,{type:0,path:t.map((function(e){return e.toString()}))}).then(O);return a.then.bind(a)}return E(e,[].concat(s(t),[n]))},set:function(r,i,a){k(o);var c=n(A(a),2),u=c[0],l=c[1];return C(e,{type:1,path:[].concat(s(t),[i]).map((function(e){return e.toString()})),value:u},l).then(O)},apply:function(r,i,a){k(o);var c=t[t.length-1];if(c===d)return C(e,{type:4}).then(O);if("bind"===c)return E(e,t.slice(0,-1));var s=n(S(a),2),u=s[0],l=s[1];return C(e,{type:2,path:t.map((function(e){return e.toString()})),argumentList:u},l).then(O)},construct:function(r,i){k(o);var a=n(S(i),2),c=a[0],s=a[1];return C(e,{type:3,path:t.map((function(e){return e.toString()})),argumentList:c},s).then(O)}});return i}function S(e){var t,r=e.map(A);return[r.map((function(e){return e[0]})),(t=r.map((function(e){return e[1]})),Array.prototype.concat.apply([],t))]}var x=new WeakMap;function P(e,t){return x.set(e,t),e}function j(e){return Object.assign(e,o({},p,!0))}function A(e){var t,r=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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 i,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(v);try{for(r.s();!(t=r.n()).done;){var o=n(t.value,2),i=o[0],a=o[1];if(a.canHandle(e)){var c=n(a.serialize(e),2);return[{type:3,name:i,value:c[0]},c[1]]}}}catch(s){r.e(s)}finally{r.f()}return[{type:0,value:e},x.get(e)||[]]}function O(e){switch(e.type){case 3:return v.get(e.name).deserialize(e.value);case 0:return e.value}}function C(e,t,r){return new Promise((function(n){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");e.addEventListener("message",(function t(r){r.data&&r.data.id&&r.data.id===o&&(e.removeEventListener("message",t),n(r.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),r)}))}}}]); -//# sourceMappingURL=chunk.42b19ffa1fa277adc9cd.js.map \ No newline at end of file +//# sourceMappingURL=chunk.114930542eafd429baaa.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js.gz b/supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js.gz new file mode 100644 index 000000000..2333ef808 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js.map b/supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js.map new file mode 100644 index 000000000..19dccf336 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.114930542eafd429baaa.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.114930542eafd429baaa.js","sources":["webpack://home-assistant-frontend/chunk.114930542eafd429baaa.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.0ca880f618245e0de2ab.js b/supervisor/api/panel/frontend_es5/chunk.1274df0d4f9b61110840.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.0ca880f618245e0de2ab.js rename to supervisor/api/panel/frontend_es5/chunk.1274df0d4f9b61110840.js index 03e646c87..fc3fc2622 100644 --- a/supervisor/api/panel/frontend_es5/chunk.0ca880f618245e0de2ab.js +++ b/supervisor/api/panel/frontend_es5/chunk.1274df0d4f9b61110840.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[546],{93546:function(e,t,r){"use strict";var n,i=r(99722),o=r(47181),a=r(91107);function s(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 c=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,i,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n||(n=(0,a.Ud)(new Worker(new URL(r.p+r.u(971),r.b)))),e.next=3,n.renderMarkdown(t,i,o);case 3:return e.abrupt("return",e.sent);case 4: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){s(o,n,i,a,c,"next",e)}function c(e){s(o,n,i,a,c,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function l(e){return(l="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,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 f(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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){y=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(!w(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 *: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 "]);return C=function(){return e},e}function x(){var e=T([""]);return x=function(){return e},e}function A(){var e=T([""]);return A=function(){return e},e}function T(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){return(z=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=I(e);if(t){var i=I(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return R(this,r)}}function R(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?F(e):t}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(){M=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(!N(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=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,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&m(e.state,a.head-1,1,i)||i.afterCursor&&(m(e.state,a.head,1,i)||a.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,a=i.brackets||f,u=(0,s.qz)(t),h=u.resolve(e,n);return(r=g(h.type,n,a))?y(t,e,n,h,r,a):k(t,e,n,u,h.type,o,a)}function y(t,e,n,r,i,o){var s=r.parent,a={from:r.from,to:r.to},u=0,h=null==s?void 0:s.cursor;if(h&&(n<0?h.childBefore(r.from):h.childAfter(r.to)))do{if(n<0?h.to<=r.from:h.from>=r.to){if(0==u&&i.indexOf(h.type.name)>-1)return{start:a,end:{from:h.from,to:h.to},matched:!0};if(g(h.type,n,o))u++;else if(g(h.type,-n,o)&&0==--u)return{start:a,end:{from:h.from,to:h.to},matched:!1}}}while(n<0?h.prevSibling():h.nextSibling());return{start:a,matched:!1}}function k(t,e,n,r,i,o,s){var a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),u=s.indexOf(a);if(u<0||u%2==0!=n>0)return null;for(var h={from:n<0?e-1:e,to:n>0?e+1:e},l=t.doc.iterRange(e,n>0?t.doc.length:0),c=0,f=0;!l.next().done&&f<=o;){var d=l.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=s.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:h,end:{from:v+p,to:v+p+1},matched:m>>1==u>>1};c--}}n>0&&(f+=d.length)}return l.done?{start:h,matched:!1}:null}function w(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return b(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 b(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,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function b(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,s.qz)(t).resolve(e.head),o=n?a.md.closedBy:a.md.openedBy,u=e.head;;){var h=n?i.childAfter(u):i.childBefore(u);if(!h)break;E(t,h,o)?i=h:u=n?h.to:h.from}var l,c;return c=i.type.prop(o)&&(l=n?m(t,i.from,1):m(t,i.to,-1))&&l.matched?n?l.end.to:l.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 B=function(t){return R(t,!1)},L=function(t){return R(t,!0)};function j(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 j(t,!1)},N=function(t){return j(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 s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(o=r.jT.cursor(i.from+s))}return o}var $=function(t){return A(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).from,1)}))},_=function(t){return A(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).to,-1)}))};function H(t,e,n){var i=!1,o=S(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.headh.from&&rn&&(e(s,o,i),n=s.number),!(i.to<=s.to);)s=t.doc.lineAt(s.to+1);var a=t.changes(o);return{changes:o,range:r.jT.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}}))}var pt=function(t){var e=t.state,n=t.dispatch,r=Object.create(null),i=new s.Gn(e,{overrideIndentation:function(t){var e=r[t];return null==e?-1:e}}),o=vt(e,(function(t,n,o){var a=(0,s.K0)(i,t.from);if(null!=a){var u=/^\s*/.exec(t.text)[0],h=(0,s.SS)(e,a);(u!=h||o.from=e&&(n=i.type.prop(a.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),h=new s.Gn(e,{simulateBreak:n,simulateDoubleBreak:!!u}),l=(0,s.K0)(h,n);null==l&&(l=/^\s*/.exec(e.doc.lineAt(n).text)[0].length);for(var c=e.doc.lineAt(n);oc.from&&n",run:nt},{key:"Ctrl-v",run:N},{key:"Alt-v",run:I}].map((function(t){return{mac:t.key,run:t.run,shift:t.shift}}))),kt=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return A(t,(function(e){return P(t.state,e,t.textDirection!=o.Nm.LTR)}))},shift:function(t){return W(t,(function(e){return P(t.state,e,t.textDirection!=o.Nm.LTR)}))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return A(t,(function(e){return P(t.state,e,t.textDirection==o.Nm.LTR)}))},shift:function(t){return W(t,(function(e){return P(t.state,e,t.textDirection==o.Nm.LTR)}))}},{key:"Alt-ArrowUp",run:function(t){return ft(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return dt(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return ft(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return dt(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var e=t.state,n=t.dispatch,i=e.selection,o=null;return i.ranges.length>1?o=r.jT.create([i.main]):i.main.empty||(o=r.jT.create([r.jT.cursor(i.main.head)])),!!o&&(n(x(e,o)),!0)}},{key:"Mod-l",run:function(t){var e=t.state,n=t.dispatch,i=ct(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=S(e.selection,(function(t){for(var n,i=(0,s.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(x(e,i)),!0}},{key:"Mod-[",run:mt},{key:"Mod-]",run:gt},{key:"Mod-Alt-\\",run:pt},{key:"Shift-Mod-k",run:function(t){var e=t.state,n=e.changes(ct(e).map((function(t){var n=t.from,r=t.to;return n>0?n--: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=t[Symbol.iterator]()},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);nthis.i;)t.dom.removeChild(t.elements.pop().dom)}}]),t}(),M=function(){function t(e,n){var i=this;h(this,t),this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className=(0,r.Zp)("gutter"+(this.config.style?"."+this.config.style:"")),this.elementClass=(0,r.Zp)("gutterElement"+(this.config.style?"."+this.config.style:""));var o=function(t){i.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 s in n.domEventHandlers)o(s);this.markers=A(n.markers(e)),n.initialSpacer&&(this.spacer=new O(e,0,0,[n.initialSpacer(e)],this.elementClass),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=A(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],this.elementClass)}return this.markers!=e}}]),t}(),O=function(){function t(e,n,r,i,o){h(this,t),this.height=-1,this.above=0,this.dom=document.createElement("div"),this.update(e,n,r,i,o)}return c(t,[{key:"update",value:function(t,e,n,r,i){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 o;o=this.dom.lastChild;)o.remove();var a,u=i,h=s(r);try{for(h.s();!(a=h.n()).done;){var l=a.value,c=l.toDOM(t);c&&this.dom.appendChild(c);var f=l.elementClass;f&&(u+=" "+f)}}catch(d){h.e(d)}finally{h.f()}this.dom.className=u}}}]),t}();var T=o.r$.define(),D=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}})}}),E=function(t){f(n,t);var e=v(n);function n(t){var r;return h(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 P(t,e){return t.state.facet(D).formatNumber(e,t.state)}var R,B=(R={style:"lineNumber",markers:function(t){return t.state.facet(T)},lineMarker:function(t,e,n){return n.length?null:new E(P(t,t.state.doc.lineAt(e.from).number))},initialSpacer:function(t){return new E(P(t,j(t.state.doc.lines)))},updateSpacer:function(t,e){var n=P(e.view,j(e.view.state.doc.lines));return n==t.number?t:new E(n)}},[S(),k.of(Object.assign(Object.assign({},y),R))]);function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[D.of(t),B]}function j(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,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function l(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=[],s=new p(o,e,n),a=h(n);try{for(a.s();!(i=a.n()).done;){i.value.instances.push(s)}}catch(m){a.e(m)}finally{a.f()}var u,l=y(n),c=h(e.set);try{for(c.s();!(u=c.n()).done;){var f,d=u.value,v=h(l);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 s}}]),t}();function y(t){for(var e=[t],n=0;n0&&c+3==s.length){u=1;break}var f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!f)throw new RangeError("Invalid path: "+s);if(a.push("*"==f[0]?null:'"'==f[0][0]?JSON.parse(f[0]):f[0]),(c+=f[0].length)==s.length)break;var d=s[c++];if(c==s.length&&"!"==d){u=0;break}if("/"!=d)throw new RangeError("Invalid path: "+s);l=s.slice(c)}var v=a.length-1,p=a[v];if(!p)throw new RangeError("Invalid path: "+s);var g=new S(r,u,v>0?a.slice(0,v):null);e[p]=g.sort(e[p])}}}catch(m){o.e(m)}finally{o.f()}}return w.add(e)}var w=new r.md,b=s.r$.define({combine:function(t){return t.length?t[0]:null}}),S=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.deptho&&s&&i(o,e,s),o=e,s=u),c)return a--,!1;O[a]=u,T[a]=n,M[a]=t.name},leave:function(t,e,r){a--;var u=O[a];if(u!=s){var h=Math.min(n,r);h>o&&s&&i(o,h,s),o=h,s=u}}})}function E(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 P=p.define,R=P(),B=P(),L=P(),j=P(L),I=P(L),N=P(),V=P(N),$=P(),_=P(),H=P(),W=P(H),z=P(),F={comment:R,lineComment:P(R),blockComment:P(R),docComment:P(R),name:B,variableName:P(B),typeName:P(B),propertyName:P(B),className:P(B),labelName:P(B),namespace:P(B),macroName:P(B),literal:L,string:j,docString:P(j),character:P(j),number:I,integer:P(I),float:P(I),bool:P(L),regexp:P(L),escape:P(L),color:P(L),url:P(L),keyword:$,self:P($),null:P($),atom:P($),unit:P($),modifier:P($),operatorKeyword:P($),controlKeyword:P($),definitionKeyword:P($),operator:_,derefOperator:P(_),arithmeticOperator:P(_),logicOperator:P(_),bitwiseOperator:P(_),compareOperator:P(_),updateOperator:P(_),definitionOperator:P(_),typeOperator:P(_),controlOperator:P(_),punctuation:H,separator:P(H),bracket:W,angleBracket:P(W),squareBracket:P(W),paren:P(W),brace:P(W),content:N,heading:V,heading1:P(V),heading2:P(V),heading3:P(V),heading4:P(V),heading5:P(V),heading6:P(V),contentSeparator:P(N),list:P(N),quote:P(N),emphasis:P(N),strong:P(N),link:P(N),monospace:P(N),inserted:P(),deleted:P(),changed:P(),invalid:P(),meta:z,documentMeta:P(z),annotation:P(z),processingInstruction:P(z),definition:p.defineModifier(),constant:p.defineModifier(),function:p.defineModifier(),standard:p.defineModifier(),local:p.defineModifier(),special:p.defineModifier()};x.define({tag:F.link,textDecoration:"underline"},{tag:F.heading,textDecoration:"underline",fontWeight:"bold"},{tag:F.emphasis,fontStyle:"italic"},{tag:F.strong,fontWeight:"bold"},{tag:F.keyword,color:"#708"},{tag:[F.atom,F.bool,F.url,F.contentSeparator,F.labelName],color:"#219"},{tag:[F.literal,F.inserted],color:"#164"},{tag:[F.string,F.deleted],color:"#a11"},{tag:[F.regexp,F.escape,F.special(F.string)],color:"#e40"},{tag:F.definition(F.variableName),color:"#00f"},{tag:F.local(F.variableName),color:"#30a"},{tag:[F.typeName,F.namespace],color:"#085"},{tag:F.className,color:"#167"},{tag:[F.special(F.variableName),F.macroName,F.local(F.variableName)],color:"#256"},{tag:F.definition(F.propertyName),color:"#00c"},{tag:F.comment,color:"#940"},{tag:F.meta,color:"#7a757a"},{tag:F.invalid,color:"#f00"})},64928:function(t,e,n){"use strict";n.d(e,{Gn:function(){return I},SQ:function(){return w},kU:function(){return k},y1:function(){return B},K0:function(){return j},tK:function(){return P},SS:function(){return L},c:function(){return R},mi:function(){return y},qz:function(){return S}});var r=n(26856),i=n(23414),o=n(77885),s=n(19753);function a(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){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,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function u(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]:[];p(this,t),this.data=e,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get:function(){return S(this)}}),this.parser=n,this.extension=[E.of(this),o.yy.languageData.of((function(t,e){return t.facet(b(t,e))}))].concat(r)}return m(t,[{key:"isActiveAt",value:function(t,e){return b(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 S(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:"parseString",value:function(t){for(var e,n=i.xv.of(t.split("\n")),s=this.parser.startParse(new x(n),0,new A(this.parser,o.yy.create({doc:n}),[],r.mp.empty,{from:0,to:t.length},[]));!(e=s.advance()););return e}},{key:"allowsNesting",get:function(){return!0}}]),t}();function b(t,e){var n=t.facet(E);if(!n)return null;if(!n.allowsNesting)return n.data;for(var r=S(t).resolve(e,-1);r;){var i=r.type.prop(y);if(i)return i;r=r.parent}return n.data}w.setState=o.Py.define();function S(t){var e=t.field(w.state,!1);return e?e.tree:r.mp.empty}var x=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)}},{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,s=arguments.length>5?arguments[5]:void 0;p(this,t),this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.viewport=o,this.skipped=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 x(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,s=this.viewport,u=this.skipped;if(this.takeTree(),!e.empty){var h=[];if(e.iterChangedRanges((function(t,e,n,r){return h.push({fromA:t,toA:e,fromB:n,toB:r})})),i=r.i9.applyChanges(i,h),o=r.mp.empty,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){u=[];var l,c=a(this.skipped);try{for(c.s();!(l=c.n()).done;){var f=l.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}}]),t}();function C(t,e,n){return r.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}A.skippingParser={startParse:function(t,e,n){return{pos:e,advance:function(){return n.tempSkipped.push({from:e,to:t.length}),this.pos=t.length,new r.mp(r.Jq.none,[],[],t.length-e)},forceFinish:function(){return this.advance()}}}};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},[]);return n.work(25)||n.takeTree(),new t(n)}}]),t}();w.state=o.QQ.define({create:M.init,update:function(t,e){var n,r=a(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is(w.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=s.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){if(t.viewportChanged){var e=this.view.state.field(w.state).context;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())}},{key:"scheduleWork",value:function(){if(!(this.working>-1)){var t=this.view.state;t.field(w.state).tree.length>=t.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 s=Math.min(this.chunkBudget,t?Math.max(25,t.timeRemaining()):100),a=o.context.work(s,i+1e6);this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0||o.context.movedPast(i))&&(o.context.takeTree(),this.view.dispatch({effects:w.setState.of(new M(o.context))})),!a&&this.chunkBudget>0&&this.scheduleWork()}}}},{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:[w.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 B(t){var e=t.facet(R);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function L(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=B(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}(),N=new r.md;function V(t){var e=t.type.prop(N);if(e)return e;var n,i=t.firstChild;if(i&&(n=i.type.prop(r.md.closedBy))){var o=t.lastChild,s=o&&n.indexOf(o.name)>-1;return function(t){return W(t,!0,1,void 0,s&&!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?$:null}function $(){return 0}var _=function(t){l(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)).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)}}]),n}(I);function H(t,e){for(var n=e;n;n=n.parent)if(t==n)return!0;return!1}function W(t,e,n,r,i){var o=t.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==t.pos+s,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,s=t.state.doc.lineAt(r.from),a=null==o||o<=s.from?s.to:Math.min(s.to,o),u=r.to;;){var h=n.childAfter(u);if(!h||h==i)return null;if(!h.type.isSkipped)return h.from!?|~^]/,o=/^[:\[\(\{]/,s=["true","false"],a=/^(\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(s))return"atom";if(t.match(a))return"number"}if(e.sign){if(e.sign=!1,t.match(s))return"atom";if(t.match(a))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(s))return"atom";if(t.match(a))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"),s=new RegExp("(("+s.join(")|(")+"))\\b");var h={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 h}});var r=n(77885);function i(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){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 s,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}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 l(t,e,this)}}]),t}();h.prototype.startSide=h.prototype.endSide=0,h.prototype.point=!1,h.prototype.mapMode=r.gc.TrackDel;var l=function t(e,n,r){s(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){s(this,t),this.from=e,this.to=n,this.value=r,this.maxPoint=i}return u(t,[{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,s=i.length;;){if(o==s)return o;var a=o+s>>1,u=i[a]-t||(e<0?this.value[a].startSide:this.value[a].endSide)-n;if(a==o)return u>=0?o:s;u>=0?s=a:o=a+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,h.endSide))||f==d&&h.startSide>0&&h.endSide<=0)continue;(d-f||h.endSide-h.startSide)<0||(s<0&&(s=f),h.point&&(a=Math.max(a,d-f)),r.push(h),i.push(f-s),o.push(d-s))}return{mapped:r.length?new t(i,o,r,a):null,pos:s}}},{key:"length",get:function(){return this.to[this.to.length-1]}}]),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;s(this,t),this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}return u(t,[{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,s=e.filterFrom,a=void 0===s?0:s,u=e.filterTo,h=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)||hd.to||h=o&&e<=o+s.length&&!1===s.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:"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:"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,s=e.filter((function(e){return e.maxPoint>=500||e!=t.empty&&n.indexOf(e)<0&&e.maxPoint>=o})),a=n.filter((function(n){return n.maxPoint>=500||n!=t.empty&&e.indexOf(n)<0&&n.maxPoint>=o})),u=p(s,a),h=new k(s,u,o),l=new k(a,u,o);r.iterGaps((function(t,e,n){return w(h,t,l,e,n,i)})),r.empty&&0==r.length&&w(h,0,l,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),s=e,a=o.openStart;;){var u=Math.min(o.to,n);if(o.point?(r.point(s,u,o.point,o.activeForPoint(o.to),a),a=o.openEnd(u)+(o.to>u?1:0)):u>s&&(r.span(s,u,o.active,a),a=o.openEnd(u)),o.to>n)break;s=o.to,o.next()}return a}},{key:"of",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new v,o=i(t instanceof l?[t]:n?t.slice().sort(c):t);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();d.empty=new d([],[],null,-1),d.empty.nextLayer=d.empty;var v=function(){function t(){s(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 s=n.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;s(this,t),this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}return u(t,[{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}},{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}}]),t}(),m=function(){function t(e){s(this,t),this.heap=e}return u(t,[{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(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)y(this.heap,s);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(s){r.e(s)}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:"startSide",get:function(){return this.value?this.value.startSide: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(s,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){s(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){S(this.active,t),S(this.activeTo,t),S(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[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>t){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),e&&S(e,r)}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 i=this.cursor.value;if(i.point){this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.fromt&&this.forward(this.to,this.endSide);break}this.addActive(e),this.cursor.next()}}if(e){for(var o=0;othis.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 w(t,e,n,r,i,o){t.goto(e),n.goto(r);for(var s=r+i,a=r,u=r-e;;){var h=t.to+u-n.to||t.endSide-n.endSide,l=h<0?t.to+u:n.to,c=Math.min(l,s);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))||o.comparePoint(a,c,t.point,n.point):c>a&&!b(t.active,n.active)&&o.compareRange(a,c,t.active,n.active),l>s)break;a=l,h<=0&&t.next(),h>=0&&n.next()}}function b(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;i=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,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(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];w(this,t,e)}},{key:"composeDesc",value:function(t){return this.empty?t:t.empty?this:S(this,t)}},{key:"mapDesc",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:b(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]:v.Simple,r=0,i=0,o=0;ot)return i+(t-r);i+=s}else{if(n!=v.Simple&&u>=t&&(n==v.TrackDel&&rt||n==v.TrackBefore&&rt))return null;if(u>t||u==t&&e<0&&!s)return t==r||e<0?i:i+a;i+=a}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&&s>=t)return!(re)||"cover";r=s}return!1}},{key:"toString",value:function(){for(var t="",e=0;e=0?":"+r:"")}return t}},{key:"length",get:function(){for(var t=0,e=0;e1&&void 0!==arguments[1]&&arguments[1];return b(this,t,e,!0)}},{key:"invert",value:function(t){for(var e=this.sections.slice(),i=[],o=0,s=0;o=0){e[o]=u,e[o+1]=a;for(var h=o>>1;i.length1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:b(this,t,e,!0)}},{key:"iterChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w(this,t,e)}},{key:"filter",value:function(t){var e=[],r=[],i=[],o=new x(this);t:for(var s=0,a=0;;){for(var u=s==t.length?1e9:t[s++];a0&&k(r,e,o.text),o.forward(h),a+=h}for(var c=t[s++];a>1].toJSON()))}return t}},{key:"desc",get:function(){return new g(this.sections)}}],[{key:"of",value:function(t,e,i){var s=[],a=[],u=0,h=null;function l(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t||s.length){um||v<0||m>e)throw new RangeError("Invalid change range ".concat(v," to ").concat(m," (in doc of length ").concat(e,")"));var b=w?"string"==typeof w?r.xv.of(w.split(i||p)):w:r.xv.empty,S=b.length;if(v==m&&0==S)return;vu&&y(s,v-u,-1),y(s,m-v,S),k(a,s,b),u=m}}(t),l(!h),h}},{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||a==t.sections.length||t.sections[a+1]<0);)u=t.sections[a++],h=t.sections[a++];e(o,l,s,c,f),o=l,s=c}}}function b(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=[],o=r?[]:null,s=new x(t),a=new x(e),u=0,h=0;;)if(-1==s.ins)u+=s.len,s.next();else if(-1==a.ins&&h=0&&(s.done||hh&&!s.done&&u+s.len=0)){if(s.done&&a.done)return o?new m(i,o):new g(i);throw new Error("Mismatched change set lengths")}for(var c=0,f=u+s.len;;)if(a.ins>=0&&h>u&&h+a.len2&&void 0!==arguments[2]&&arguments[2],r=[],i=n?[]:null,o=new x(t),s=new x(e),a=!1;;){if(o.done&&s.done)return i?new m(r,i):new g(r);if(0==o.ins)y(r,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var u=Math.min(o.len2,s.len),h=r.length;if(-1==o.ins){var l=-1==s.ins?-1:s.off?0:s.ins;y(r,u,l,a),i&&l&&k(i,r,s.text)}else-1==s.ins?(y(r,o.off?0:o.len,u,a),i&&k(i,r,o.textBit(u))):(y(r,o.off?0:o.len,s.off?0:s.ins,a),i&&!s.off&&k(i,r,s.text));a=(o.ins>u||s.ins>=0&&s.len>u)&&(a||r.length>h),o.forward2(u),s.forward(u)}else y(r,0,s.ins,a),i&&k(i,r,s.text),s.next()}}var x=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 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)}},{key:"done",get:function(){return-2==this.ins}},{key:"len2",get:function(){return this.ins<0?this.len:this.ins}},{key:"text",get:function(){var t=this.set.inserted,e=this.i-2>>1;return e>=t.length?r.xv.empty:t[e]}}]),t}(),A=function(){function t(e,n,r){c(this,t),this.from=e,this.to=n,this.flags=r}return d(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:"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:"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:"main",get:function(){return this.ranges[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(a,s):C.range(s,a))}}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,s=t[this.id]>>1,a=2==this.type,u=!1,h=!1,l=[],c=o(this.dependencies);try{for(c.s();!(n=c.n()).done;){var f=n.value;"doc"==f?u=!0:"selection"==f?h=!0:0==(1&(null!==(e=t[f.id])&&void 0!==e?e:1))&&l.push(t[f.id])}}catch(d){c.e(d)}finally{c.f()}return function(t,e){if(!e||e.reconfigure)return t.values[s]=r(t),1;if(!(u&&e.docChanged||h&&(e.docChanged||e.selection)||l.some((function(e){return(1&q(t,e))>0}))))return 0;var n=r(t),o=e.startState.values[s];return(a?function(t,e,n){if(t.length!=e.length)return!1;for(var r=0;r>1;return function(t,n){var u,h=n?n.reconfigure?n.startState.config.address[e.id]:a<<1:null,l=null==h,c=o(s);try{for(c.s();!(u=c.n()).done;){1&q(t,u.value)&&(l=!0)}}catch(k){c.e(k)}finally{c.f()}if(!l)return 0;for(var f=[],d=0;d>1;return function(t,r){if(!r)return t.values[n]=e.create(t),1;var i,o=0;if(r.reconfigure){var s=function(t,e){var n=t.config.address[e];return null==n?null:n>>1}(r.startState,e.id);i=null==s?e.create(r.startState):r.startState.values[s],o=1}else i=r.startState.values[n];var a=e.updateF(i,r);return o||e.compareF(i,a)||(o=1),o&&(t.values[n]=a),o}}},{key:"init",value:function(t){return[this,B.of({field:this,create:t})]}}],[{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}(),j=2,I=1,N=0;function V(t){return function(e){return new _(e,t)}}var $={fallback:V(3),default:V(j),extend:V(I),override:V(N)},_=function t(e,n){c(this,t),this.inner=e,this.prec=n},H=function t(e,n){c(this,t),this.tag=e,this.inner=n};function W(t,e){return new H(t,e)}var z=function(){function t(e,n,r,i,o){for(c(this,t),this.source=e,this.replacements=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),i=arguments.length>2?arguments[2]:void 0,s=[],a=Object.create(null),u=o(F(e,r));try{for(u.s();!(n=u.n()).done;){var h=n.value;h instanceof L?s.push(h):(a[h.facet.id]||(a[h.facet.id]=[])).push(h)}}catch(y){u.e(y)}finally{u.f()}for(var l=Object.create(null),c=[],f=[],d=function(){var t=p[v];l[t.id]=f.length<<1,f.push((function(e){return t.slot(e)}))},v=0,p=s;v=a)return;var h=n[u].indexOf(t);h>-1&&n[u].splice(h,1)}if(r.set(t,a),Array.isArray(t)){var l,c=o(t);try{for(c.s();!(l=c.n()).done;){s(l.value,a)}}catch(f){c.e(f)}finally{c.f()}}else if(t instanceof H){if(t.tag in i)throw new RangeError("Duplicate use of tag '".concat(String(t.tag),"' in extensions"));i[t.tag]=!0,s(e[t.tag]||t.inner,a)}else t instanceof _?s(t.inner,t.prec):t instanceof L?(n[a].push(t),t.provides&&s(t.provides,a)):t instanceof P?(n[a].push(t),t.facet.extensions&&s(t.facet.extensions,a)):s(t.extension,a)}s(t,j);var a,u,h=o((u=e,(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(u):[]).concat(Object.keys(u))));try{for(h.s();!(a=h.n()).done;){var l=a.value;!(l in i)&&"full"!=l&&e[l]&&(i[l]=!0,s(e[l],j))}}catch(c){h.e(c)}finally{h.f()}return n.reduce((function(t,e){return t.concat(e)}))}function q(t,e){if(1&e)return 2;var n=e>>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 U(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}var K=D.define(),G=D.define({combine:function(t){return t.some((function(t){return t}))},static:!0}),J=D.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Y=D.define(),X=D.define(),Q=D.define(),Z=function(){function t(e,n){c(this,t),this.type=e,this.value=n}return d(t,null,[{key:"define",value:function(){return new tt}}]),t}(),tt=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new Z(this,t)}}]),t}(),et=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 nt(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 s=n.value.map(e);s&&r.push(s)}}catch(a){i.e(a)}finally{i.f()}return r}}]),t}(),nt=function(){function t(e){c(this,t),this.map=e}return d(t,[{key:"of",value:function(t){return new et(this,t)}}]),t}(),rt=function(){function t(e,n,r,i,o,s,a){c(this,t),this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.reconfigure=s,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:"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:"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:"docChanged",get:function(){return!this.changes.empty}}]),t}();function it(t,e){for(var n=[],r=0,i=0;;){var o=void 0,s=void 0;if(r=t[r]))o=t[r++],s=t[r++];else{if(!(i=0;i--){var o=n[i](t);o&&Object.keys(o).length&&(r=ot(t,st(e,o,t.changes.newLength),!0))}return r==t?t:new rt(e,t.changes,t.selection,r.effects,r.annotations,r.reconfigure,r.scrollIntoView)}(n?function(t){var e,n=t.startState,r=!0,i=o(n.facet(Y));try{for(i.s();!(e=i.n()).done;){var s=(0,e.value)(t);if(!1===s){r=!1;break}Array.isArray(s)&&(r=!0===r?s:it(r,s))}}catch(d){i.e(d)}finally{i.f()}if(!0!==r){var a,u;if(!1===r)u=t.changes.invertedDesc,a=m.empty(n.doc.length);else{var h=t.changes.filter(r);a=h.changes,u=h.filtered.invertedDesc}t=new rt(n,a,t.selection&&t.selection.map(u),et.mapEffects(t.effects,u),t.annotations,t.reconfigure,t.scrollIntoView)}for(var l=n.facet(X),c=l.length-1;c>=0;c--){var f=l[c](t);t=f instanceof rt?f:Array.isArray(f)&&1==f.length&&f[0]instanceof rt?f[0]:at(n,lt(f),!1)}return t}(a):a)}rt.time=Z.define(),rt.userEvent=Z.define(),rt.addToHistory=Z.define();var ut,ht=[];function lt(t){return null==t?ht:Array.isArray(t)?t:[t]}!function(t){t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other"}(ut||(ut={}));var ct,ft=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{ct=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(gt){}function dt(t){return function(e){if(!/\S/.test(e))return ut.Space;if(function(t){if(ct)return ct.test(t);for(var e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||ft.test(n)))return!0}return!1}(e))return ut.Word;for(var n=0;n-1)return ut.Word;return ut.Other}}var vt=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.reconfigure)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 s=e.address[o],a=i.startState.config.address[o];null!=a&&0==(1&s)&&(this.values[s>>1]=U(i.startState,a))}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),U(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)||p))}},{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),U(this,e))}},{key:"toJSON",value:function(t){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(var n in t)e[n]=t[n].spec.toJSON(this.field(t[n]),this);return e}},{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(s){r.e(s)}finally{r.f()}return e}},{key:"languageDataAt",value:function(t,e){var n,r=[],i=o(this.facet(K));try{for(i.s();!(n=i.n()).done;){var s,a=o((0,n.value)(this,e));try{for(a.s();!(s=a.n()).done;){var u=s.value;Object.prototype.hasOwnProperty.call(u,t)&&r.push(u[t])}}catch(h){a.e(h)}finally{a.f()}}}catch(h){i.e(h)}finally{i.f()}return r}},{key:"charCategorizer",value:function(t){return dt(this.languageDataAt("wordChars",t).join(""))}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}}],[{key:"fromJSON",value:function(e){var n=arguments.length>1&&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 s in r)o(s)}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=z.resolve(e.extensions||[]),i=e.doc instanceof r.xv?e.doc:r.xv.of((e.doc||"").split(n.staticFacet(t.lineSeparator)||p)),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(G)||(o=o.asSingle()),new t(n,i,o)}}]),t}();function pt(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={},s=o(t);try{for(s.s();!(n=s.n()).done;)for(var a=n.value,u=0,h=Object.keys(a);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,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function l(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,s.IS)(t.slice(r,e),i,n)}var S=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 w(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 x(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 s,a=(0,o.kU)(t.languageData),u={token:(s=t).token,blankLine:s.blankLine||function(){},startState:s.startState||function(){return!0},copyState:s.copyState||x,indent:s.indent||function(){return null},languageData:s.languageData||{}};return(i=e.call(this,a,{startParse:function(t,e,n){return new O(p(i),t,e,n)}},[o.tK.of((function(t,e){return i.getIndent(t,e)}))])).streamParser=u,i.docType=function(t){var e=E.length;return E.push(new r.Jq("document",o.mi.set(Object.create(null),t),e)),e}(a),i.stateAfter=new WeakMap,i}return w(n,[{key:"getIndent",value:function(t,e){for(var n=(0,o.qz)(t.state),r=n.resolve(e);r&&r.type!=E[this.docType];)r=r.parent;if(!r)return null;var i,s,a=C(this,n,0,r.from,e);if(a?(s=a.state,i=a.pos+1):(s=this.streamParser.startState(t.unit),i=0),e-i>1e4)return null;for(;i=i&&n+e.length<=o&&t.stateAfter.get(e);if(s)return{state:t.streamParser.copyState(s),pos:n+e.length};for(var a=e.children.length-1;a>=0;a--){var u=e.children[a],h=n+e.positions[a],l=u instanceof r.mp&&h=e.length)return e;o||e.type!=E[t.docType]||(o=!0);for(var s=e.children.length-1;s>=0;s--){var a=e.positions[s]+n,u=e.children[s],h=void 0;if(an&&C(t,u.tree,0-u.offset,n,u.to),c=void 0;if(l&&(c=M(t,u.tree,n+u.offset,l.pos+u.offset,!1)))return{state:l.state,tree:c}}}catch(f){a.e(f)}finally{a.f()}return{state:t.streamParser.startState((0,o.y1)(i)),tree:r.mp.empty}}(e,s.fragments,i,s.state),u=a.state,l=a.tree;this.state=u,this.pos=this.chunkStart=i+l.length,l.length&&(this.chunks.push(l),this.chunkPos.push(i)),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 B(t){return t?D[t]||(D[t]=function(t){var e,n=null,o=h(t.split("."));try{for(o.s();!(e=o.n()).done;){var s=e.value,u=i.pJ[s];u?"function"==typeof u?n?n=u(n):$(s,"Modifier ".concat(s," used at start of tag")):n?$(s,"Tag ".concat(s," used as modifier")):n=u:$(s,"Unknown highlighting tag ".concat(s))}}catch(f){o.e(f)}finally{o.f()}if(!n)return 0;var l=t.replace(/ /g,"_"),c=r.Jq.define({id:E.length,name:l,props:[(0,i.Gv)(a({},l,n))]});return E.push(c),c.id}(t)):0}for(var L=0,j=[["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"]];L-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;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){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 s,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}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?w:b)(t,e)}function w(t,e){if(e==t.length)return e;e&&S(t.charCodeAt(e))&&x(t.charCodeAt(e-1))&&e--;var n=A(t,e);for(e+=C(n);e=0&&y(A(t,o));)i++,o-=2;if(i%2==0)break;e+=2}}return e}function b(t,e){for(;e>0;){var n=w(t,e-2);if(n=56320&&t<57344}function x(t){return t>=55296&&t<56320}function A(t,e){var n=t.charCodeAt(e);if(!x(n)||e+1==t.length)return n;var r=t.charCodeAt(e+1);return S(r)?r-56320+(n-55296<<10)+65536:n}function C(t){return t<65536?1:2}function M(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 T=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),E.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),E.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 L(this),n=new L(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 L(this,t)}},{key:"iterRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new j(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 D(e):E.from(D.split(e,[])):t.empty}}]),t}();"undefined"!=typeof Symbol&&(T.prototype[Symbol.iterator]=function(){return this.iter()});var D=function(t){a(n,t);var e=h(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P(t);return f(this,n),(r=e.call(this)).text=t,r.length=i,r}return v(n,[{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.text[i],s=r+o.length;if((e?n:s)>=t)return new I(r,s,n,o);r=s+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 s=r.pop(),a=R(o.text,s.text.slice(),0,o.length);if(a.length<=32)r.push(new n(a,s.length+o.length));else{var u=a.length>>1;r.push(new n(a.slice(0,u)),new n(a.slice(u)))}}else r.push(o)}},{key:"replace",value:function(t,e,r){if(!(r instanceof n))return s(c(n.prototype),"replace",this).call(this,t,e,r);var i=R(this.text,R(r.text,B(this.text,0,t)),e),o=this.length+r.length-(e-t);return i.length<=32?new n(i,o):E.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+=s.slice(Math.max(0,t-i),e-i)),i=a+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:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}}],[{key:"split",value:function(t,e){var r,o=[],s=-1,a=i(t);try{for(a.s();!(r=a.n()).done;){var u=r.value;o.push(u),s+=u.length+1,32==o.length&&(e.push(new n(o,s)),o=[],s=-1)}}catch(h){a.e(h)}finally{a.f()}return s>-1&&e.push(new n(o,s)),e}}]),n}(T),E=function(t){a(n,t);var e=h(n);function n(t,r){var o;f(this,n),(o=e.call(this)).children=t,o.length=r,o.lines=0;var s,a=i(t);try{for(a.s();!(s=a.n()).done;){var u=s.value;o.lines+=u.lines}}catch(h){a.e(h)}finally{a.f()}return o}return v(n,[{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.children[i],s=r+o.length,a=n+o.lines-1;if((e?a:s)>=t)return o.lineInner(t,e,n,r);r=s+1,n=a+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)|(a>=e?2:0));o>=t&&a<=e&&!u?n.push(s):s.decompose(t-o,e-o,n,u)}o=a+1}}},{key:"replace",value:function(t,e,r){if(r.lines=o&&e<=u){var h=a.replace(t-o,e-o,r),l=this.lines-a.lines+h.lines;if(h.lines>4&&h.lines>l>>6){var f=this.children.slice();return f[i]=h,new n(f,this.length-(e-t)+r.length)}return s(c(n.prototype),"replace",this).call(this,o,u,h)}o=u+1}return s(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+=s.sliceString(t-o,e-o,n)),o=a+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,s=i(t);try{for(s.s();!(e=s.n()).done;){var a=e.value;o+=a.lines}}catch(A){s.e(A)}finally{s.f()}if(o<32){var u,h=[],l=i(t);try{for(l.s();!(u=l.n()).done;){var c=u.value;c.flatten(h)}}catch(A){l.e(A)}finally{l.f()}return new D(h,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)?(w(),p.push(t)):t instanceof D&&g&&(e=y[y.length-1])instanceof D&&t.lines+e.lines<=32?(g+=t.lines,m+=t.length+1,y[y.length-1]=new D(e.text.concat(t.text),e.length+1+t.length)):(g+t.lines>f&&w(),g+=t.lines,m+=t.length+1,y.push(t))}function w(){0!=g&&(p.push(1==y.length?y[0]:n.from(y,m)),m=-1,g=y.length=0)}var b,S=i(t);try{for(S.s();!(b=S.n()).done;){var x=b.value;k(x)}}catch(A){S.e(A)}finally{S.f()}return w(),1==p.length?p[0]:new n(p,r)}}]),n}(T);function P(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 R(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,s=!0;o=n&&(u>r&&(a=a.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 D?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 D?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 D){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 s=n.children[this.dir>0?r:r-1];this.offsets[e]=r+this.dir,this.lineBreak=!1,t>s.length?t-=s.length:(this.nodes.push(s),this.offsets.push(this.dir>0?0:s instanceof D?s.text.length:s.children.length))}else{if(this.lineBreak=!0,0==t)return this.value="\n",this;t--}}}}]),t}(),j=function(){function t(e,n,r){f(this,t),this.value="",this.cursor=new L(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}(),I=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 Ct},p:function(){return Ot},Nm:function(){return ke},tk:function(){return _n},BF:function(){return ne},lg:function(){return oe},$f:function(){return Qn},Zp:function(){return Vt}});for(var r=n(77885),i=n(23414),o=n(62038),s=n(13764),a={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"},h="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),l="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=h&&(f||+h[1]<57)||c&&f,p=0;p<10;p++)a[48+p]=a[96+p]=String(p);for(p=1;p<=24;p++)a[p+111]="F"+p;for(p=65;p<=90;p++)a[p]=String.fromCharCode(p+32),u[p]=String.fromCharCode(p);for(var g in a)u.hasOwnProperty(g)||(u[g]=a[g]);function m(t,e,n){return(m="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 y(t){return(y="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 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&&w(t,e)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 S(this,n)}}function S(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?x(t):e}function x(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 P(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||E(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;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=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,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n2),android:/Android\b/.test(B.userAgent),webkit:H,safari:W,webkit_version:H?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=L.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function F(t){return t.getSelection?t.getSelection():document.getSelection()}function q(t,e){if(!e.anchorNode)return!1;try{return t.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)}catch(n){return!1}}function U(t){if(3==t.nodeType){var e=it();return e.setEnd(t,t.nodeValue.length),e.setStart(t,0),e.getClientRects()}return 1==t.nodeType?t.getClientRects():[]}function K(t,e,n,r){return!!n&&(J(t,e,n,r,-1)||J(t,e,n,r,1))}function G(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function J(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:Y(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;e=G(t)+(i<0?0:1),t=o}else{if(1!=t.nodeType)return!1;t=t.childNodes[e+(i<0?-1:0)],e=i<0?Y(t):0}}}function Y(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var X={left:0,right:0,top:0,bottom:0};function Q(t,e){var n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function Z(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var tt,et=function(){function t(){O(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return D(t,[{key:"eq",value:function(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}},{key:"set",value:function(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}}]),t}(),nt=null;function rt(t){if(t.setActive)return t.setActive();if(nt)return t.focus(nt);for(var e=[],n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(null==nt?{get preventScroll(){return nt={preventScroll:!0},!0}}:void 0),!nt){nt=!1;for(var r=0;r2&&void 0!==arguments[2])||arguments[2];O(this,t),this.node=e,this.offset=n,this.precise=r}return D(t,null,[{key:"before",value:function(e,n){return new t(e.parentNode,G(e),n)}},{key:"after",value:function(e,n){return new t(e.parentNode,G(e)+1,n)}}]),t}(),st=[],at=function(){function t(){O(this,t),this.parent=null,this.dom=null,this.dirty=2}return D(t,[{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){if(2&this.dirty){var n,r=this.dom,i=null,o=M(this.children);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(s.dirty){var a=i?i.nextSibling:r.firstChild;!a||s.dom||t.get(a)||s.reuseDOM(a),s.sync(e),s.dirty=0}e&&e.node==r&&i!=s.dom&&(e.written=!0),ht(r,i,s.dom),i=s.dom}}catch(f){o.e(f)}finally{o.f()}var u=i?i.nextSibling:r.firstChild;for(u&&e&&e.node==r&&(e.written=!0);u;)u=ut(u)}else if(1&this.dirty){var h,l=M(this.children);try{for(l.s();!(h=l.n()).done;){var c=h.value;c.dirty&&(c.sync(e),c.dirty=0)}}catch(f){l.e(f)}finally{l.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==Y(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 s=0,a=0;;s++){var u=this.children[s];if(u.dom==r)return a;a+=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,s=-1,a=0,u=n;ae)return h.domBoundsAround(t,e,u);if(l>=t&&-1==r&&(r=a,i=u),l>=e&&l!=u&&-1==o){o=a,s=l;break}u=l+h.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o+1].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:"replaceChildren",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st;this.markDirty();for(var i=t;i0&&void 0!==arguments[0]?arguments[0]:this.length;return new lt(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:"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:"rootView",get:function(){for(var t=this;;){var e=t.parent;if(!e)return t;t=e}}}],[{key:"get",value:function(t){return t.cmView}}]),t}();function ut(t){var e=t.nextSibling;return t.parentNode.removeChild(t),e}function ht(t,e,n){var r=e?e.nextSibling:t.firstChild;if(n.parentNode==t)for(;r!=n;)r=ut(r);else t.insertBefore(n,r)}at.prototype.breakAfter=0;var lt=function(){function t(e,n,r){O(this,t),this.children=e,this.pos=n,this.i=r,this.off=0}return D(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}(),ct=[],ft=function(t){k(n,t);var e=b(n);function n(){return O(this,n),e.apply(this,arguments)}return D(n,[{key:"become",value:function(t){return!1}},{key:"getSide",value:function(){return 0}}]),n}(at);ft.prototype.children=ct;var dt=function(t){k(n,t);var e=b(n);function n(t){var r;return O(this,n),(r=e.call(this)).text=t,r}return D(n,[{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 ot(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 pt(this.dom,t,e)}},{key:"length",get:function(){return this.text.length}}]),n}(ft),vt=function(t){k(n,t);var e=b(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;O(this,n),(r=e.call(this)).mark=t,r.children=i,r.length=o;var s,a=M(i);try{for(a.s();!(s=a.n()).done;){var u=s.value;u.setParent(x(r))}}catch(h){a.e(h)}finally{a.f()}return r}return D(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(),m(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,s=0;0==e&&n<0||e==r&&n>=0?z.chrome||z.gecko||(e?(i--,s=1):(o++,s=-1)):n<0?i--:o++;var a=it();a.setEnd(t,o),a.setStart(t,i);var u=a.getClientRects();if(!u.length)return X;var h=u[(s?s<0:n>=0)?0:u.length-1];return z.safari&&!s&&0==h.width&&(h=Array.prototype.find.call(u,(function(t){return t.width}))||h),s?Q(h,s<0):h}var gt=function(t){k(n,t);var e=b(n);function n(t,r,i){var o;return O(this,n),(o=e.call(this)).widget=t,o.length=r,o.side=i,o}return D(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:Q(r,0==t)}},{key:"overrideDOMText",get:function(){if(0==this.length)return i.xv.empty;for(var t=this;t.parent;)t=t.parent;var e=t.editorView,n=e&&e.state.doc,r=this.posAtStart;return n?n.slice(r,r+this.length):i.xv.empty}}],[{key:"create",value:function(t,e,r){return new(t.customView||n)(t,e,r)}}]),n}(ft),mt=function(t){k(n,t);var e=b(n);function n(){return O(this,n),e.apply(this,arguments)}return D(n,[{key:"domAtPos",value:function(t){return new ot(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:"coordsAt",value:function(t,e){return pt(this.widget.text,t,e)}},{key:"overrideDOMText",get:function(){return null}}]),n}(gt);function yt(t,e,n,r,i,o){var s,a=t.childCursor(),u=a.findPos(n,1),h=u.i,l=u.off,c=a.findPos(e,-1),f=c.i,d=c.off,v=e-n,p=M(r);try{for(p.s();!(s=p.n()).done;){v+=s.value.length}}catch(S){p.e(S)}finally{p.f()}t.length+=v;var g=t.children;if(f==h&&d){var m=g[f];if(1==r.length&&m.merge(d,l,r[0],i,o))return;if(0==r.length)return void m.merge(d,l,null,i,o);var y=m.slice(l);y.merge(0,0,r[r.length-1],0,o)?r[r.length-1]=y:r.push(y),h++,o=l=0}if(l){var k=g[h];r.length&&k.merge(0,l,r[r.length-1],0,o)?(r.pop(),o=0):k.merge(0,l,null,0,0)}else hi&&n0;r--){var a=e[r-1].dom;if(a.parentNode==t)return ot.after(a)}return new ot(t,0)}function wt(t,e,n){var r,i=t.children;n>0&&e instanceof vt&&i.length&&(r=i[i.length-1])instanceof vt&&r.mark.eq(e.mark)?wt(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function bt(t,e,n){for(var r=0,i=0;i=e:s>e)return o.coordsAt(e-r,n);r=s}}return(t.dom.lastChild||t.dom).getBoundingClientRect()}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 xt(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:"heightRelevant",get:function(){return!1}}],[{key:"mark",value:function(t){return new Tt(t)}},{key:"widget",value:function(t){var e=t.side||0;return t.block&&(e+=200000001*(e>0?1:-1)),new Et(t,e,e,!!t.block,t.widget||null,!1)}},{key:"replace",value:function(t){var e=!!t.block,n=Pt(t),r=n.start,i=n.end;return new Et(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 Dt(t)}},{key:"set",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Xs.of(t,e)}}]),n}(s.uU);Ot.none=s.Xs.empty;var Tt=function(t){k(n,t);var e=b(n);function n(t){var r;O(this,n);var i=Pt(t),o=i.start,s=i.end;return(r=e.call(this,1e8*(o?-1:1),1e8*(s?1:-1),null,t)).tagName=t.tagName||"span",r.class=t.class||"",r.attrs=t.attributes||null,r}return D(n,[{key:"eq",value:function(t){return this==t||t instanceof n&&this.tagName==t.tagName&&this.class==t.class&&xt(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 m(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Ot);Tt.prototype.point=!1;var Dt=function(t){k(n,t);var e=b(n);function n(t){return O(this,n),e.call(this,-1e8,-1e8,null,t)}return D(n,[{key:"eq",value:function(t){return t instanceof n&&xt(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 m(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Ot);Dt.prototype.mapMode=r.gc.TrackBefore,Dt.prototype.point=!0;var Et=function(t){k(n,t);var e=b(n);function n(t,i,o,s,a,u){var h;return O(this,n),(h=e.call(this,i,o,a,t)).block=s,h.isReplace=u,h.mapMode=s?i<0?r.gc.TrackBefore:r.gc.TrackAfter:r.gc.TrackDel,h}return D(n,[{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 m(A(n.prototype),"range",this).call(this,t,e)}},{key:"type",get:function(){return this.startSide=5}}]),n}(Ot);function Pt(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 Rt(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)}Et.prototype.point=!0;var Bt=r.r$.define({combine:function(t){return t.join(" ")}}),Lt=r.r$.define({combine:function(t){return t.indexOf(!0)>-1}}),jt=o.V.newName();function It(t){return t.replace(/\$\w[\w\.]*/g,(function(t){for(var e=t.slice(1).split("."),n="",r=1;r<=e.length;r++)n+=".cm-"+e.slice(0,r).join("-");return n}))}function Nt(t,e){return new o.V(e,{process:function(e){return e=It(e),/\$/.test(e)?e.replace(/\$/,t):t+" "+e},extend:function(e,n){return e=It(e),n.slice(0,t.length+1)==t+" "?t+" "+e.replace(/&/,n.slice(t.length+1)):e.replace(/&/,n)}})}function Vt(t){if(t.indexOf(".")<0)return"cm-"+t;for(var e=t.split("."),n="",r=1;r<=e.length;r++)n+=(n?" ":"")+"cm-"+e.slice(0,r).join("-");return n}var $t=Nt("."+jt,{$:{position:"relative !important",boxSizing:"border-box","&$focused":{outline_fallback:"1px dotted #212121",outline:"5px auto -webkit-focus-ring-color"},display:"flex !important",flexDirection:"column"},$scroller:{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},$content:{margin:0,flexGrow:2,minHeight:"100%",display:"block",whiteSpace:"pre",boxSizing:"border-box",padding:"4px 0",outline:"none"},"$$light $content":{caretColor:"black"},"$$dark $content":{caretColor:"white"},$line:{display:"block",padding:"0 2px 0 4px"},$selectionLayer:{zIndex:-1,contain:"size style"},$selectionBackground:{position:"absolute"},"$$light $selectionBackground":{background:"#d9d9d9"},"$$dark $selectionBackground":{background:"#222"},"$$focused$light $selectionBackground":{background:"#d7d4f0"},"$$focused$dark $selectionBackground":{background:"#233"},$cursorLayer:{zIndex:100,contain:"size style",pointerEvents:"none"},"$$focused $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%":{}},$cursor:{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none",display:"none"},"$$dark $cursor":{borderLeftColor:"#444"},"$$focused $cursor":{display:"block"},"$$light $activeLine":{backgroundColor:"#f3f9ff"},"$$dark $activeLine":{backgroundColor:"#223039"},"$$light $specialChar":{color:"red"},"$$dark $specialChar":{color:"#f78"},$tab:{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},$placeholder:{color:"#888",display:"inline-block"},$button:{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"3px"},"$$light $button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"$$dark $button":{backgroundImage:"linear-gradient(#555, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},$textfield:{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"$$light $textfield":{backgroundColor:"white"},"$$dark $textfield":{border:"1px solid #555",backgroundColor:"inherit"}}),_t=Vt("line"),Ht=function(t){k(n,t);var e=b(n);function n(){var t;return O(this,n),(t=e.apply(this,arguments)).children=[],t.length=0,t.prevAttrs=void 0,t.attrs=null,t.breakAfter=0,t}return D(n,[{key:"merge",value:function(t,e,r,i,o,s){if(r){if(!(r instanceof n))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),yt(this,t,e,r?r.children:Wt,o,s),!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 s=i;s0&&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){xt(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 kt(this.dom,this.children,t)}},{key:"sync",value:function(t){this.dom||(this.setDOM(document.createElement("div")),this.dom.className=_t,this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(At(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add(_t),this.prevAttrs=void 0),m(A(n.prototype),"sync",this).call(this,t);var e=this.dom.lastChild;if(!e||"BR"!=e.nodeName&&at.get(e)instanceof gt){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 dt))return null;var i=U(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 bt(this,t,e)}},{key:"match",value:function(t){return!1}},{key:"type",get:function(){return Ct.Text}}],[{key:"find",value:function(t,e){for(var r=0,i=0;;r++){var o=t.children[r],s=i+o.length;if(s>=e){if(o instanceof n)return o;if(o.length)return null}i=s+o.breakAfter}}}]),n}(at),Wt=[],zt=function(t){k(n,t);var e=b(n);function n(t,r,i){var o;return O(this,n),(o=e.call(this)).widget=t,o.length=r,o.type=i,o.breakAfter=0,o}return D(n,[{key:"merge",value:function(t,e,r,i,o,s){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||t>0&&o<=0||e=0;n--)t=new vt(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,s=r.done;if(this.skip=0,s)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 a=Math.min(this.text.length-this.textOff,t,512);this.getLine().append(this.wrapMarks(new dt(this.text.slice(this.textOff,this.textOff+a)),e),n),this.textOff+=a,t-=a,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 Et)if(n.block){var s=n.type;s!=Ct.WidgetAfter||this.posCovered()||this.getLine(),this.addWidget(new zt(n.widget||new qt("div"),o,s))}else{var a=this.wrapMarks(gt.create(n.widget||new qt("span"),o,n.startSide),r);this.getLine().append(a,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=s.Xs.spans(i,n,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(),o}}]),t}(),qt=function(t){k(n,t);var e=b(n);function n(t){var r;return O(this,n),(r=e.call(this)).tag=t,r}return D(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),Ut=[],Kt=r.r$.define(),Gt=r.r$.define(),Jt=r.r$.define(),Yt=r.r$.define(),Xt=r.r$.define(),Qt=r.r$.define();function Zt(t,e,n){var r=t.facet(Yt);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 te=r.r$.define({combine:function(t){return!t.length||t[0]}}),ee=function t(e,n){O(this,t),this.field=e,this.get=n},ne=function(){function t(){O(this,t)}return D(t,[{key:"from",value:function(t){return new ee(this,t)}}],[{key:"define",value:function(){return new t}}]),t}();ne.decorations=ne.define(),ne.scrollMargins=ne.define();var re=0,ie=r.r$.define(),oe=function(){function t(e,n,r){O(this,t),this.id=e,this.create=n,this.fields=r,this.extension=ie.of(this)}return D(t,null,[{key:"define",value:function(e,n){var r=n||{},i=r.eventHandlers,o=r.provide,s=r.decorations,a=[];if(o){var u,h=M(Array.isArray(o)?o:[o]);try{for(h.s();!(u=h.n()).done;){var l=u.value;a.push(l)}}catch(c){h.e(c)}finally{h.f()}}return i&&a.push(se.from((function(t){return{plugin:t,handlers:i}}))),s&&a.push(ne.decorations.from(s)),new t(re++,e,a)}},{key:"fromClass",value:function(e,n){return t.define((function(t){return new e(t)}),n)}}]),t}(),se=ne.define(),ae=function(){function t(e){O(this,t),this.spec=e,this.mustUpdate=null,this.value=null}return D(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,s=i.get;o==t&&e.push(s(this.value))}}catch(a){r.e(a)}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(Zt(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 Zt(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){Zt(t.state,n,"CodeMirror plugin crashed")}}}]),t}();ae.dummy=new ae(oe.define((function(){return{}})));var ue=r.r$.define({combine:function(t){return t.reduce((function(t,e){return St(e,t)}),{})}}),he=r.r$.define({combine:function(t){return t.reduce((function(t,e){return St(e,t)}),{})}}),le=r.r$.define(),ce=r.r$.define(),fe=function(){function t(e,n,r,i){O(this,t),this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}return D(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.toAl)break;o+=2}if(!u)return r;new t(u.fromA,u.toA,u.fromB,u.toB).addToSet(r),s=u.toA,a=u.toB}}}]),t}(),de=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ut;O(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,s=M(i);try{for(s.s();!(o=s.n()).done;){var a=o.value;this.changes=this.changes.compose(a.changes)}}catch(l){s.e(l)}finally{s.f()}var u=[];this.changes.iterChangedRanges((function(t,e,n,r){return u.push(new fe(t,e,n,r))})),this.changedRanges=u;var h=e.hasFocus;h!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=h,this.flags|=1),this.docChanged&&(this.flags|=2)}return D(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}(),ve=function(t){k(n,t);var e=b(n);function n(t){var r;return O(this,n),(r=e.call(this)).view=t,r.compositionDeco=Ot.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 Ht],r.children[0].setParent(x(r)),r.updateInner([new fe(0,0,0,t.state.doc.length)],r.updateDeco(),0),r}return D(n,[{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=Ot.none:t.transactions.length&&(this.compositionDeco=function(t,e){var n=F(t.root),r=n.focusNode&&me(n.focusNode,n.focusOffset,0);if(!r)return Ot.none;var i,o,s=t.docView.nearest(r),a=r;if(s instanceof ft){for(;s.parent instanceof ft;)s=s.parent;o=(i=s.posAtStart)+s.length,a=s.dom}else{if(!(s instanceof Ht))return Ot.none;for(;a.parentNode!=s.dom;)a=a.parentNode;for(var u=a.previousSibling;u&&!at.get(u);)u=u.previousSibling;i=o=u?at.get(u).posAtEnd:s.posAtStart}var h=e.mapPos(i,1),l=Math.max(h,e.mapPos(o,-1)),c=r.nodeValue,f=t.state;if(l-h=this.view.viewport.from&&t.state.selection.main.to<=this.view.viewport.to?(this.updateSelection(h,d),!1):(this.updateInner(n,c,t.startState.doc.length,h,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=z.chrome?{node:F(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 s=o.fromA,a=o.toA,u=o.fromB,h=o.toB,l=Ft.build(this.view.state.doc,u,h,e),c=l.content,f=l.breakAtStart,d=l.openStart,v=l.openEnd,p=r.findPos(a,1),g=p.i,m=p.off,y=r.findPos(s,-1),k=y.i,w=y.off;this.replaceRange(k,w,g,m,c,f,d,v)}}},{key:"replaceRange",value:function(t,e,n,r,i,o,s,a){var u=this.children[t],h=i.length?i[i.length-1]:null,l=h?h.breakAfter:o;if(t!=n||o||l||!(i.length<2)||!u.merge(e,r,i.length?h:null,0==e,s,a)){var c=this.children[n];for(r0&&(!o&&i.length&&u.merge(e,u.length,i[0],!1,s,0)?u.breakAfter=i.shift().breakAfter:(e0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e||this.mayControlSelection()){var n=this.view.state.selection.main,r=this.domAtPos(n.anchor),i=this.domAtPos(n.head),o=F(this.root);(t||!o.focusNode||z.gecko&&n.empty&&ye(o.focusNode,o.focusOffset)||!K(r.node,r.offset,o.anchorNode,o.anchorOffset)||!K(i.node,i.offset,o.focusNode,o.focusOffset))&&this.view.observer.ignore((function(){if(n.empty){if(z.gecko){var t=ye(r.node,r.offset);if(t&&3!=t){var e=me(r.node,r.offset,1==t?1:-1);e&&(r=new ot(e,1==t?0:e.nodeValue.length))}}o.collapse(r.node,r.offset),null!=n.bidiLevel&&null!=o.cursorBidiLevel&&(o.cursorBidiLevel=n.bidiLevel)}else if(o.extend)o.collapse(r.node,r.offset),o.extend(i.node,i.offset);else{var s=document.createRange();if(n.anchor>n.head){var a=[i,r];r=a[0],i=a[1]}s.setEnd(i.node,i.offset),s.setStart(r.node,r.offset),o.removeAllRanges(),o.addRange(s)}})),this.impreciseAnchor=r.precise?null:new ot(o.anchorNode,o.anchorOffset),this.impreciseHead=i.precise?null:new ot(o.focusNode,o.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){var t=this.view.state.selection.main,e=F(this.root);if(t.empty&&t.assoc&&e.modify){var n=Ht.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 s=this.domAtPos(t.head+t.assoc);e.collapse(s.node,s.offset),e.modify("move",t.assoc<0?"forward":"backward","lineboundary")}}}}}},{key:"mayControlSelection",value:function(){return this.view.state.facet(te)?this.root.activeElement==this.dom:q(this.dom,F(this.root))}},{key:"nearest",value:function(t){for(var e=t;e;){var n=at.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==Ct.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,s=0;sr)break;if(o>=n){t.push(a.dom.getBoundingClientRect().height);var h=a.dom.scrollWidth;h>i&&(this.minWidth=i=h,this.minWidthFrom=o,this.minWidthTo=u)}o=u+a.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 Ht){var i=r.measureTextSize();if(i)return i}}}catch(u){n.e(u)}finally{n.f()}var o,s,a=document.createElement("div");return a.className="cm-line",a.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((function(){e.dom.appendChild(a);var t=U(a.firstChild)[0];o=a.getBoundingClientRect().height,s=t?t.width/27:7,a.remove()})),{lineHeight:o,charWidth:s}}},{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 lt(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 s=e.lineAt(o,0).bottom-e.lineAt(n,0).top;t.push(Ot.replace({widget:new pe(s),block:!0,inclusive:!0}).range(n,o))}if(!i)break;n=i.to+1}return Ot.set(t)}},{key:"updateDeco",value:function(){return this.decorations=[this.computeBlockGapDeco(),this.view.viewState.lineGapDeco,this.compositionDeco].concat(C(this.view.state.facet(le)),C(this.view.pluginField(ne.decorations)))}},{key:"scrollPosIntoView",value:function(t,e){var n=this.coordsAt(t,e);if(n){var r,i=0,o=0,s=0,a=0,u=M(this.view.pluginField(ne.scrollMargins));try{for(u.s();!(r=u.n()).done;){var h=r.value;if(h){var l=h.left,c=h.right,f=h.top,d=h.bottom;null!=l&&(i=Math.max(i,l)),null!=c&&(o=Math.max(o,c)),null!=f&&(s=Math.max(s,f)),null!=d&&(a=Math.max(a,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=Z(n);else{if(r.scrollHeight<=r.clientHeight&&r.scrollWidth<=r.clientWidth){r=r.parentNode;continue}var s=r.getBoundingClientRect();i={left:s.left,right:s.left+r.clientWidth,top:s.top,bottom:s.top+r.clientHeight}}var a=0,u=0;if(e.topi.bottom&&(u=e.bottom-i.bottom+5),e.lefti.right&&(a=e.right-i.right+5),a||u)if(o)n.scrollBy(a,u);else{if(u){var h=r.scrollTop;r.scrollTop+=u,u=r.scrollTop-h}if(a){var l=r.scrollLeft;r.scrollLeft+=a,a=r.scrollLeft-l}e={left:e.left-a,top:e.top-u,right:e.right-a,bottom:e.bottom-u}}if(o)break;r=r.parentNode}else{if(11!=r.nodeType)break;r=r.host}}(this.dom,{left:n.left-i,top:n.top-s,right:n.right+o,bottom:n.bottom+a})}}},{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}}]),n}(at),pe=function(t){k(n,t);var e=b(n);function n(t){var r;return O(this,n),(r=e.call(this)).height=t,r}return D(n,[{key:"toDOM",value:function(){var t=document.createElement("div");return this.updateDOM(t),t}},{key:"eq",value:function(t){return t.height==this.height}},{key:"updateDOM",value:function(t){return t.style.height=this.height+"px",!0}},{key:"estimatedHeight",get:function(){return this.height}}]),n}(Mt);var ge=function(t){k(n,t);var e=b(n);function n(t,r){var i;return O(this,n),(i=e.call(this)).top=t,i.text=r,i}return D(n,[{key:"eq",value:function(t){return this.top==t.top&&this.text==t.text}},{key:"toDOM",value:function(){return this.top}},{key:"ignoreEvent",value:function(){return!1}},{key:"customView",get:function(){return mt}}]),n}(Mt);function me(t,e,n){for(;;){if(3==t.nodeType)return t;if(1==t.nodeType&&e>0&&n<=0)e=Y(t=t.childNodes[e-1]);else{if(!(1==t.nodeType&&e=0))return null;t=t.childNodes[e],e=0}}}function ye(t,e){return 1!=t.nodeType?0:(e&&"false"==t.childNodes[e-1].contentEditable?1:0)|(e=e){if(s.level==n)return o;(i<0||(0!=r?r<0?s.frome:t[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}]),t}(),Te=[];function De(t,e){var n,r=t.length,i=e==be?1:2;if(!t||1==i&&!Me.test(t))return Ee(r);for(var o=0,s=i,a=i;ox;){for(var M=C,O=2!=Te[--C];C>x&&O==(2!=Te[C-1]);)C--;b.push(new Oe(C,M,O?2:1))}else b.push(new Oe(x,S,0))}else for(var T=0;Tt?e.left-t:Math.max(0,t-e.right)}function Le(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 Ie(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Ve(t,e,n){for(var r,i,o,s,a,u,h,l,c=t.firstChild;c;c=c.nextSibling)for(var f=U(c),d=0;dg||s==g&&o>p)&&(r=c,i=v,o=p,s=g),0==p?n>v.bottom&&(!h||h.bottomv.top)&&(u=c,l=v):h&&je(h,v)?h=Ne(h,v.bottom):l&&je(l,v)&&(l=Ie(l,v.top))}if(h&&h.bottom>=n?(r=a,i=h):l&&l.top<=n&&(r=u,i=l),!r)return{node:t,offset:0};var m=Math.max(i.left,Math.min(i.right,e));return 3==r.nodeType?$e(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)}:Ve(r,m,n)}function $e(t,e,n){for(var r=t.nodeValue.length,i=it(),o=0;o=e&&u.top-1<=n&&u.bottom+1>=n)){var h=e>=(u.left+u.right)/2,l=h;if(z.chrome||z.gecko)i.setEnd(t,o),i.getBoundingClientRect().left==u.right&&(l=!h);return{node:t,offset:o+(l?1:0)}}}}return{node:t,offset:0}}function _e(t,e){for(var n,r=e.x,i=e.y,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=t.contentDOM.getBoundingClientRect(),a=t.defaultLineHeight/2,u=!1;;){if((n=t.blockAtHeight(i,s.top)).top>i||n.bottomi?-1:1,i=Math.min(n.bottom-a,Math.max(n.top+a,i)),u)return-1;u=!0}if(n.type==Ct.Text)break;i=o>0?n.bottom+a:n.top-a}var h=n.from;if(ht.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:null;r=Math.max(s.left+1,Math.min(s.right-1,r));var l,c=t.root,f=c.elementFromPoint(r,i),d=-1;if(f&&t.contentDOM.contains(f)&&!(t.docView.nearest(f)instanceof gt))if(c.caretPositionFromPoint){var v=c.caretPositionFromPoint(r,i);v&&(l=v.offsetNode,d=v.offset)}else if(c.caretRangeFromPoint){var p=c.caretRangeFromPoint(r,i);p&&(l=p.startContainer,d=p.startOffset)}if(!l||!t.docView.dom.contains(l)){var g=Ht.find(t.docView,h),m=Ve(g.dom,r,i);l=m.node,d=m.offset}return t.docView.posFromDOM(l,d)}function He(t,e,n,i){var o=t.state.doc.lineAt(e.head),s=i&&t.lineWrapping?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(s){var a=t.dom.getBoundingClientRect(),u=t.posAtCoords({x:n==(t.textDirection==ke.LTR)?a.right-1:a.left+1,y:(s.top+s.bottom)/2});if(null!=u)return r.jT.cursor(u,n?-1:1)}var h=Ht.find(t.docView,e.head),l=h?n?h.posAtEnd:h.posAtStart:n?o.to:o.from;return r.jT.cursor(l,n?-1:1)}function We(t,e,n,i){for(var o=t.state.doc.lineAt(e.head),s=t.bidiSpans(o),a=e,u=null;;){var h=Re(o,s,t.textDirection,a,n),l=Pe;if(!h){if(o.number==(n?t.state.doc.lines:1))return a;l="\n",o=t.state.doc.line(o.number+(n?1:-1)),s=t.bidiSpans(o),h=r.jT.cursor(n?o.from:o.to)}if(u){if(!u(l))return a}else{if(!i)return h;u=i(l)}a=h}}var ze=function(){function t(e){var n=this;O(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionEndedAt=0,this.mouseSelection=null;var r=function(t){var r=Ke[t];e.contentDOM.addEventListener(t,(function(i){!Ue(e,i)||n.ignoreDuringComposition(i)||"keydown"==t&&n.screenKeyEvent(e,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 Ke)r(i);e.contentDOM.addEventListener("keydown",(function(t){e.inputState.lastKeyCode=t.keyCode,e.inputState.lastKeyTime=Date.now()})),this.notifiedFocused=e.hasFocus,this.ensureHandlers(e)}return D(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(se));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){Ue(t,r)&&n.runCustomHandlers(e,t,r)&&r.preventDefault()})))};for(var s in i.handlers)o(s)}}catch(a){r.e(a)}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,s=o.handlers[t],a=!1;if(s){try{a=s.call(o.plugin,n,e)}catch(u){Zt(e.state,u)}if(a||n.defaultPrevented)return z.android&&"keydown"==t&&13==n.keyCode&&e.observer.flushSoon(),!0}}}catch(h){i.e(h)}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(s){Zt(t.state,s)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"ignoreDuringComposition",value:function(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(z.safari&&t.timeStamp-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 D(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 Ue(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=at.get(r))&&n.ignoreEvent(e))return!1;return!0}var Ke=Object.create(null),Ge=z.ie&&z.ie_version<15||z.ios&&z.webkit_version<604;function Je(t,e){var n,i=t.state,o=1,s=i.toText(e),a=s.lines==i.selection.ranges.length;if(on&&i.selection.ranges.every((function(t){return t.empty}))&&on==s.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 h=i.toText((a?s.line(o++).text:e)+i.lineBreak);return{changes:{from:n.from,insert:h},range:r.jT.cursor(t.from+h.length)}}))}else n=a?i.changeByRange((function(t){var e=s.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:r.jT.cursor(t.from+e.length)}})):i.replaceSelection(s);t.dispatch(n,{annotations:r.YW.userEvent.of("paste"),scrollIntoView:!0})}function Ye(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),s=t.doc.lineAt(e),a=e-s.from;if(0==s.length)return r.jT.cursor(e);0==a?n=1:a==s.length&&(n=-1);var u=a,h=a;n<0?u=(0,i.cp)(s.text,a,!1):h=(0,i.cp)(s.text,a);for(var l=o(s.text.slice(u,h));u>0;){var c=(0,i.cp)(s.text,u,!1);if(o(s.text.slice(c,u))!=l)break;u=c}for(;hDate.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(rn+1)%3:1}(e),o=t.state.selection,s=n,a=e;return{update:function(t){t.changes&&(n&&(n.pos=t.changes.mapPos(n.pos)),o=o.map(t.changes))},get:function(e,u,h){var l;if(e.clientX==a.clientX&&e.clientY==a.clientY?l=s:(l=s=tn(t,e),a=e),!l||!n)return o;var c=Ye(t,l.pos,l.bias,i);if(n.pos!=l.pos&&!u){var f=Ye(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},Qe=function(t,e,n){return Xe(e,n)&&t>=n.left&&t<=n.right};function Ze(t,e,n,r){var i=Ht.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 s=i.coordsAt(o,-1);if(s&&Qe(n,r,s))return-1;var a=i.coordsAt(o,1);return a&&Qe(n,r,a)?1:s&&Xe(r,s)?-1:1}function tn(t,e){var n=t.posAtCoords({x:e.clientX,y:e.clientY});return null==n?null:{pos:n,bias:Ze(t,n,e.clientX,e.clientY)}}var en=z.ie&&z.ie_version<=11,nn=null,rn=0;Ke.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")},Ke.drop=function(t,e){if(e.dataTransfer){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,s=o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:n,insert:i},u=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(n,-1),head:u.mapPos(n,1)},annotations:r.YW.userEvent.of("drop")})}}},Ke.paste=function(t,e){t.observer.flush();var n=Ge?null:e.clipboardData,r=n&&n.getData("text/plain");r?(Je(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(),Je(t,n.value)}),50)}}(t)};var on=null;function sn(t){t.docView.compositionDeco.size&&t.update([])}Ke.copy=Ke.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 s=e.value;s.empty||(n.push(t.sliceDoc(s.from,s.to)),r.push(s))}}catch(f){o.e(f)}finally{o.f()}if(!n.length){var a,u=-1,h=M(t.selection.ranges);try{for(h.s();!(a=h.n()).done;){var l=a.value.from,c=t.doc.lineAt(l);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){h.e(f)}finally{h.f()}i=!0}return{text:n.join(t.lineBreak),ranges:r,linewise:i}}(t.state),i=n.text,o=n.ranges,s=n.linewise;if(i){on=s?i:null;var a=Ge?null:e.clipboardData;a?(e.preventDefault(),a.clearData(),a.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.dispatch({changes:o,scrollIntoView:!0,annotations:r.YW.userEvent.of("cut")})}},Ke.focus=Ke.blur=function(t){setTimeout((function(){t.hasFocus!=t.inputState.notifiedFocused&&t.update([])}),10)},Ke.beforeprint=function(t){t.viewState.printing=!0,t.requestMeasure(),setTimeout((function(){t.viewState.printing=!1,t.requestMeasure()}),2e3)},Ke.compositionstart=Ke.compositionupdate=function(t){t.inputState.composing<0&&(t.docView.compositionDeco.size&&(t.observer.flush(),sn(t)),t.inputState.composing=0)},Ke.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),setTimeout((function(){t.inputState.composing<0&&sn(t)}),50)};var an,un=["pre-wrap","normal","pre-line"],hn=function(){function t(){O(this,t),this.doc=i.xv.empty,this.lineWrapping=!1,this.direction=ke.LTR,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return D(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 s=un.indexOf(t)>-1,a=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s||this.direction!=e;if(this.lineWrapping=s,this.direction=e,this.lineHeight=n,this.charWidth=r,this.lineLength=i,a){this.heightSamples={};for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:2;O(this,t),this.length=e,this.height=n,this.flags=r}return D(t,[{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 s=r[o],a=s.fromA,u=s.toA,h=s.fromB,l=s.toB,c=i.lineAt(a,an.ByPosNoHeight,e,0,0),f=c.to>=u?c:i.lineAt(u,an.ByPosNoHeight,e,0,0);for(l+=f.to-u,u=f.to;o>0&&c.from<=r[o-1].toA;)a=r[o-1].fromA,h=r[o-1].fromB,o--,a0},set:function(t){this.flags=(t?2:0)|-3&this.flags}}],[{key:"empty",value:function(){return new vn(0,0)}},{key:"of",value:function(e){if(1==e.length)return e[0];for(var n=0,r=e.length,i=0,o=0;;)if(n==r)if(i>2*o){var s=e[n-1];s.break?e.splice(--n,1,s.left,null,s.right):e.splice(--n,1,s.left,s.right),r+=1+s.break,i-=s.size}else{if(!(o>2*i))break;var a=e[r];a.break?e.splice(r,1,a.left,null,a.right):e.splice(r,1,a.left,a.right),r+=2+a.break,o-=a.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}(fn),vn=function(t){k(n,t);var e=b(n);function n(t,r){var i;return O(this,n),(i=e.call(this,t,r,Ct.Text)).collapsed=0,i.widgetHeight=0,i}return D(n,[{key:"replace",value:function(t,e,r){var i=r[0];return 1==r.length&&(i instanceof n||i instanceof pn&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof pn?i=new n(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):fn.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}(dn),pn=function(t){k(n,t);var e=b(n);function n(t){return O(this,n),e.call(this,t,0)}return D(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,s=i.lastLine,a=i.lineHeight,u=Math.max(0,Math.min(s-o,Math.floor((t-n)/a))),h=e.line(o+u),l=h.from,c=h.length;return new cn(l,c,n+a*u,a,Ct.Text)}},{key:"lineAt",value:function(t,e,n,r,i){if(e==an.ByHeight)return this.blockAt(t,n,r,i);if(e==an.ByPosNoHeight){var o=n.lineAt(t),s=o.from,a=o.to;return new cn(s,a-s,0,0,Ct.Text)}var u=this.lines(n,i),h=u.firstLine,l=u.lineHeight,c=n.lineAt(t),f=c.from,d=c.length,v=c.number;return new cn(f,d,r+l*(v-h),l,Ct.Text)}},{key:"forEachLine",value:function(t,e,n,r,i,o){for(var s=this.lines(n,i),a=s.firstLine,u=s.lineHeight,h=Math.max(t,i),l=Math.min(i+this.length,e);h<=l;){var c=n.lineAt(h);h==t&&(r+=u*(c.number-a)),o(new cn(c.from,c.length,r,r+=u,Ct.Text)),h=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 s=r[0];s instanceof n?r[0]=new n(t+s.length):r.unshift(new n(t-1),null)}return fn.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 s=[],a=Math.max(e,i.from);for(i.from>e&&s.push(new n(i.from-e-1).updateHeight(t,e));a<=o&&i.more;){var u=t.doc.lineAt(a).length;s.length&&s.push(null);var h=new vn(u,i.heights[i.index++]);h.outdated=!1,s.push(h),a+=u+1}return a<=o&&s.push(null,new n(o-a).updateHeight(t,a)),t.heightChanged=!0,fn.of(s)}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}(fn),gn=function(t){k(n,t);var e=b(n);function n(t,r,i){var o;return O(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 D(n,[{key:"blockAt",value:function(t,e,n,r){var i=n+this.left.height;return ts))return u;var h=e==an.ByPosNoHeight?an.ByPosNoHeight:an.ByPos;return a?u.join(this.right.lineAt(s,h,n,o,s)):this.left.lineAt(s,h,n,r,i).join(u)}},{key:"forEachLine",value:function(t,e,n,r,i,o){var s=r+this.left.height,a=i+this.left.length+this.break;if(this.break)t=a&&this.right.forEachLine(t,e,n,s,a,o);else{var u=this.lineAt(a,an.ByPos,n,r,i);t=t&&u.from<=e&&o(u),e>u.to&&this.right.forEachLine(u.to+1,e,n,s,a,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,s=i.length,a=M(n);try{for(a.s();!(o=a.n()).done;){var u=o.value;i.push(u)}}catch(l){a.e(l)}finally{a.f()}if(t>0&&mn(i,s-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?fn.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,s=e+i.length+this.break,a=null;return r&&r.from<=e+i.length&&r.more?a=i=i.updateHeight(t,e,n,r):i.updateHeight(t,e,n),r&&r.from<=s+o.length&&r.more?a=o=o.updateHeight(t,s,n,r):o.updateHeight(t,s,n),a?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}},{key:"break",get:function(){return 1&this.flags}}]),n}(fn);function mn(t,e){var n,r;null==t[e]&&(n=t[e-1])instanceof pn&&(r=t[e+1])instanceof pn&&t.splice(e-1,3,new pn(n.length+1+r.length))}var yn=function(){function t(e,n){O(this,t),this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}return D(t,[{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 vn?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new vn(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 vn(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(t,e){var n=new pn(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 vn)return t;var e=new vn(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(t){this.enterLine(),t.type!=Ct.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=Ct.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 vn||this.isCovered?(this.writtenTo=e&&i<=n}))){var o=t.lineAt(i,0),s=o.from,a=o.to;e.push(new An(s,a))}},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?Tn:new Dn(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(le),o=t.changedRanges,s=fe.extendWithRanges(o,kn(t.startState.facet(le),i,t?t.changes:r.as.empty(this.state.doc.length))),a=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(i,n.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=a&&(t.flags|=2);var u=s.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=ke.LTR;if(!e){var o=window.getComputedStyle(n);r=o.whiteSpace,i="rtl"==o.direction?ke.RTL:ke.LTR,this.paddingTop=parseInt(o.paddingTop)||0,this.paddingBottom=parseInt(o.paddingBottom)||0}var s=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),s=Math.min(innerHeight,n.bottom),a=t.parentNode;a;)if(1==a.nodeType){if((a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth)&&"visible"!=window.getComputedStyle(a).overflow){var u=a.getBoundingClientRect();r=Math.max(r,u.left),i=Math.min(i,u.right),o=Math.max(o,u.top),s=Math.min(s,u.bottom)}a=a.parentNode}else{if(11!=a.nodeType)break;a=a.host}return{left:r-n.left,right:i-n.left,top:o-(n.top+e),bottom:s-(n.top+e)}}(n,this.paddingTop),a=s.top-this.pixelViewport.top,u=s.bottom-this.pixelViewport.bottom;if(this.pixelViewport=s,this.inView=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left,!this.inView)return 0;var h=t.measureVisibleLineHeights(),l=!1,c=0,f=0,d=this.heightOracle;if(!e){var v=t.dom.clientWidth;if(d.mustRefresh(h,r,i)||d.lineWrapping&&Math.abs(v-this.contentWidth)>d.charWidth){var p=t.measureTextSize(),g=p.lineHeight,m=p.charWidth;(l=d.refresh(r,i,g,m,v/m,h))&&(t.minWidth=0,f|=16)}this.contentWidth!=v&&(this.contentWidth=v,f|=16),a>0&&u>0?c=Math.max(a,u):a<0&&u<0&&(c=Math.min(a,u))}if(d.heightChanged=!1,this.heightMap=this.heightMap.updateHeight(d,0,l,new ln(this.viewport.from,h)),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(l?[]:this.lineGaps))),this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.enforceCursorAssoc()),f}},{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,s=this.visibleBottom,a=new An(r.lineAt(o-1e3*n,an.ByHeight,i,0,0).from,r.lineAt(s+1e3*(1-n),an.ByHeight,i,0,0).to);if(e)if(e.heada.to){var h=r.lineAt(e.head,an.ByPos,i,0,0).bottom;a=new An(r.lineAt(h-(s-o)-500,an.ByHeight,i,0,0).from,r.lineAt(h+500,an.ByHeight,i,0,0).to)}return a}},{key:"mapViewport",value:function(t,e){var n=e.mapPos(t.from,-1),r=e.mapPos(t.to,1);return new An(this.heightMap.lineAt(n,an.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(r,an.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,an.ByPos,this.state.doc,0,0),o=i.top,s=this.heightMap.lineAt(n,an.ByPos,this.state.doc,0,0),a=s.bottom,u=this.visibleTop,h=this.visibleBottom;return(0==e||o<=u-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||a>=h+Math.max(10,Math.min(r,250)))&&o>u-2e3&&ai&&(r.push({from:i,to:t}),o+=t-i),i=e}},20),i=r.from&&(o=h.from),h.from<=r.to&&h.to>=a&&(a=h.to);var l=o-1e4,c=a+1e4;l>r.from+5e3&&n.push(On(t,(function(t){return t.from==r.from&&t.to>l-5e3&&t.toc-5e3&&t.from=1)return r[r.length-1].to;for(var i=Math.floor(n*e),o=0;;o++){var s=r[o],a=s.from,u=s.to-a;if(i<=u)return a+i;i-=u}}function Mn(t,e){var n,r=0,i=M(t.ranges);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=o.from,a=o.to;if(e<=a){r+=e-s;break}r+=a-s}}catch(u){i.e(u)}finally{i.f()}return r/t.total}function On(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 Tn={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},Dn=function(){function t(e,n,r){O(this,t);var i=0,o=0,s=0;this.viewports=r.map((function(t){var r=t.from,o=t.to,s=n.lineAt(r,an.ByPos,e,0,0).top,a=n.lineAt(o,an.ByPos,e,0,0).bottom;return i+=a-s,{from:r,to:o,top:s,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-i)/(n.height-i);var a,u=M(this.viewports);try{for(u.s();!(a=u.n()).done;){var h=a.value;h.domTop=s+(h.top-o)*this.scale,s=h.domBottom=h.domTop+(h.bottom-h.top),o=h.bottom}}catch(l){u.e(l)}finally{u.f()}}return D(t,[{key:"toDOM",value:function(t,e){t-=e;for(var n=0,r=0,i=0;;n++){var o=nt.target.nodeValue.length}))?i.flushSoon():i.flush()})),Rn&&(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.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom)),this.listenForScroll()}return D(t,[{key:"onScroll",value:function(t){this.intersecting&&(this.flush(),this.onScrollChanged(t))}},{key:"onSelectionChange",value:function(t){var e=this.view,n=F(e.root);if(e.state.facet(te)?e.root.activeElement==this.dom:q(e.dom,n)){var r=n.anchorNode&&e.docView.nearest(n.anchorNode);r&&r.ignoreEvent(t)||(z.ie&&z.ie_version<=11&&!e.state.selection.main.empty&&n.focusNode&&K(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush())}}},{key:"listenForScroll",value:function(){this.parentCheck=-1;for(var t=0,e=null,n=this.dom;n;)if(1==n.nodeType)!e&&t=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1,this.flush())}},{key:"flush",value:function(){var t=this;if(!(this.delayedFlush>=0)){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=F(this.view.root),s=!this.ignoreSelection.eq(o)&&q(this.dom,o);if(0!=n.length||s){var a,u=-1,h=-1,l=!1,c=M(n);try{for(c.s();!(a=c.n()).done;){var f=a.value,d=this.readMutation(f);d&&(d.typeOver&&(l=!0),-1==u?(u=d.from,h=d.to):(u=Math.min(d.from,u),h=Math.max(d.to,h)))}}catch(p){c.e(p)}finally{c.f()}var v=this.view.state;(u>-1||s)&&this.onChange(u,h,l),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=Ln(e,t.previousSibling||t.target.previousSibling,-1),r=Ln(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 Ln(t,e,n){for(;e;){var r=at.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,s,a,u=t.state.selection.main;if(e>-1&&(a=t.docView.domBoundsAround(e,n,0))){var h=a,l=h.from,c=h.to,f=t.docView.impreciseHead||t.docView.impreciseAnchor?[]:function(t,e){var n=[];if(e.activeElement!=t)return n;var r=F(e),i=r.anchorNode,o=r.anchorOffset,s=r.focusNode,a=r.focusOffset;i&&(n.push(new Vn(i,o)),s==i&&a==o||n.push(new Vn(s,a)));return n}(t.contentDOM,t.root),d=new In(f,t);d.readRange(a.startDOM,a.endDOM),s=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,l);var v=u.from,p=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||z.android&&d.text.length0&&a>0&&t.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if("end"==r){n-=s+Math.max(0,o-Math.min(s,a))-o}if(s=s?o-n:0)+(a-s),s=o}else if(a=a?o-n:0)+(s-a),a=o}return{from:o,toA:s,toB:a}}(t.state.sliceDoc(l,c),d.text,v-l,p);g&&(o={from:l+g.from,to:l+g.toA,insert:t.state.toText(d.text.slice(g.from,g.toB))})}else if(t.hasFocus||!t.state.facet(te)){var m=F(t.root),y=t.docView,k=y.impreciseHead,w=y.impreciseAnchor,b=k&&k.node==m.focusNode&&k.offset==m.focusOffset?t.state.selection.main.head:t.docView.posFromDOM(m.focusNode,m.focusOffset),S=w&&w.node==m.anchorNode&&w.offset==m.anchorOffset?t.state.selection.main.anchor:function(t){var e=t.isCollapsed;return e&&z.chrome&&t.rangeCount&&!t.getRangeAt(0).collapsed&&(e=!1),e}(m)?b:t.docView.posFromDOM(m.anchorNode,m.anchorOffset);b==u.head&&S==u.anchor||(s=r.jT.single(S,b))}if(o||s)if(!o&&i&&!u.empty&&s&&s.main.empty&&(o={from:u.from,to:u.to,insert:t.state.doc.slice(u.from,u.to)}),o){var x=t.state;if(z.android&&(o.from==u.from&&o.to==u.to&&1==o.insert.length&&2==o.insert.lines&&$n(t,"Enter",10)||o.from==u.from-1&&o.to==u.to&&0==o.insert.length&&$n(t,"Backspace",8)||o.from==u.from&&o.to==u.to+1&&0==o.insert.length&&$n(t,"Delete",46)))return;var A,C=o.insert.toString();if(t.state.facet(Qt).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){var M=u.fromo.to?x.sliceDoc(o.to,u.to):"";A=x.replaceSelection(t.state.toText(M+o.insert.sliceString(0,void 0,t.state.lineBreak)+O))}else{var T=x.changes(o);A={changes:T,selection:s&&!x.selection.main.eq(s.main)&&s.main.to<=T.newLength?x.selection.replaceRange(s.main):void 0}}t.dispatch(A,{scrollIntoView:!0,annotations:r.YW.userEvent.of("input")})}else if(s&&!s.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:s,scrollIntoView:E,annotations:D})}}var In=function(){function t(e,n){O(this,t),this.points=e,this.view=n,this.text="",this.lineBreak=n.state.lineBreak}return D(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=at.get(r),s=at.get(i);((o?o.breakAfter:Nn(r))||(s?s.breakAfter:Nn(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=at.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,z.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 Nn(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Vn=function t(e,n){O(this,t),this.node=e,this.offset=n,this.pos=-1};function $n(t,e,n){var r={key:e,code:e,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);t.contentDOM.dispatchEvent(i);var o=new KeyboardEvent("keyup",r);return t.contentDOM.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}var _n=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};O(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=Vt("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 xn(n.state||r.yy.create()),this.plugins=this.state.facet(ie).map((function(t){return new ae(t).update(e)})),this.observer=new Bn(this,(function(t,n,r){jn(e,t,n,r)}),(function(t){e.inputState.runScrollHandlers(e,t),e.measure()})),this.inputState=new ze(this),this.docView=new ve(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,Fn(),this.requestMeasure(),n.parent&&n.parent.appendChild(this.dom)}return D(t,[{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=!1;this.updateState=2;try{var r,i=this.state,o=M(t);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=s.state}}catch(l){o.e(l)}finally{o.f()}e=new de(this,i,t);var a=t.some((function(t){return t.scrollIntoView}))?i.selection.main:null;this.viewState.update(e,a),this.bidiCache=Kn.update(this.bidiCache,e.changes),e.empty||this.updatePlugins(e),n=this.docView.update(e),this.state.facet(ce)!=this.styleModules&&this.mountStyles(),this.updateAttrs(),this.showAnnouncements(t)}finally{this.updateState=0}if((n||scrollTo||this.viewState.mustEnforceCursorAssoc)&&this.requestMeasure(),!e.empty){var u,h=M(this.state.facet(Xt));try{for(h.s();!(u=h.n()).done;){(0,u.value)(e)}}catch(l){h.e(l)}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 xn(t),this.plugins=t.facet(ie).map((function(t){return new ae(t).update(e)})),this.docView=new ve(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(ie),n=t.state.facet(ie);if(e!=n){var r,i=[],o=M(n);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=e.indexOf(s);if(a<0)i.push(new ae(s));else{var u=this.plugins[a];u.mustUpdate=t,i.push(u)}}}catch(p){o.e(p)}finally{o.f()}var h,l=M(this.plugins);try{for(l.s();!(h=l.n()).done;){var c=h.value;c.mustUpdate!=t&&c.destroy(this)}}catch(p){l.e(p)}finally{l.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 Zt(t.state,n),Un}})),s=new de(this,this.state);s.flags|=r,e?e.flags|=r:e=s,this.updateState=2,s.empty||this.updatePlugins(s),this.updateAttrs(),r&&this.docView.update(s);for(var a=0;a-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:"moveByChar",value:function(t,e,n){return We(this,t,e,n)}},{key:"moveByGroup",value:function(t,e){var n=this;return We(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 He(this,t,e,n)}},{key:"moveVertically",value:function(t,e,n){return function(t,e,n,o){var s,a=e.head,u=n?1:-1;if(a==(n?t.state.doc.length:0))return r.jT.cursor(a);var h=t.coordsAtPos(a);if(h)for(var l=t.dom.getBoundingClientRect(),c=null!==(s=e.goalColumn)&&void 0!==s?s:h.left-l.left,f=l.left+c,d=null!=o?o:5,v=u<0?h.top:h.bottom,p=0;p<50;p+=10){var g=_e(t,{x:f,y:v+(d+p)*u},u);if(null==g)break;if(g!=a)return r.jT.cursor(g,void 0,void 0,c)}var m=t.state.doc,y=m.lineAt(a),k=t.state.tabSize,w=e.goalColumn,b=0;if(null==w){for(var S=m.iterRange(y.from,a);!S.next().done;)b=(0,i.IS)(S.value,b,k);w=b*t.defaultCharacterWidth}else b=Math.round(w/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 x=m.line(y.number+u),A=x.from,C=0,M=m.iterRange(x.from,x.to);C>=b&&!M.next().done;){var O=(0,i.Gz)(M.value,C,b,k),T=O.offset;C=b-O.leftOver,A+=T}return r.jT.cursor(A,void 0,void 0,w)}(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(),_e(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[Oe.find(i,t-r.from,-1,e)];return Q(n,o.dir==ke.LTR==e>0)}},{key:"bidiSpans",value:function(t){if(t.length>Hn)return Ee(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(s){r.e(s)}finally{r.f()}var o=De(t.text,this.textDirection);return this.bidiCache.push(new Kn(t.from,t.to,n,o)),o}},{key:"focus",value:function(){var t=this;this.observer.ignore((function(){rt(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:"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:"themeClasses",get:function(){return jt+" "+(this.state.facet(Lt)?"cm-dark":"cm-light")+" "+this.state.facet(Bt)}},{key:"contentHeight",get:function(){return this.viewState.contentHeight}},{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:"hasFocus",get:function(){return document.hasFocus()&&this.root.activeElement==this.contentDOM}}],[{key:"domEventHandlers",value:function(t){return oe.define((function(){return{}}),{eventHandlers:t})}},{key:"theme",value:function(t,e){var n=o.V.newName(),r=[Bt.of(n),ce.of(Nt(".".concat(jt,".").concat(n),t))];return e&&e.dark&&r.push(Lt.of(!0)),r}},{key:"baseTheme",value:function(t){return r.Wl.fallback(ce.of(Nt("."+jt,t)))}}]),t}();_n.styleModule=ce,_n.inputHandler=Qt,_n.exceptionSink=Yt,_n.updateListener=Xt,_n.editable=te,_n.mouseSelectionStyle=Jt,_n.dragMovesSelection=Gt,_n.clickAddsSelectionRange=Kt,_n.decorations=le,_n.lineWrapping=_n.theme({$content:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"}}),_n.contentAttributes=he,_n.editorAttributes=ue,_n.announce=r.Py.define();var Hn=4096;function Wn(t,e){return null==t?e.getBoundingClientRect().top:t}var zn=-1;function Fn(){window.addEventListener("resize",(function(){-1==zn&&(zn=setTimeout(qn,50))}))}function qn(){zn=-1;for(var t=document.querySelectorAll(".cm-content"),e=0;e1&&void 0!==arguments[1]?arguments[1]:Gn,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")},s=function(t,e,i,s){for(var a=r[t]||(r[t]=Object.create(null)),u=e.split(/ (?!$)/).map((function(t){return Jn(t,n)})),h=function(e){var n=u.slice(0,e).join(" ");o(n,!0),a[n]||(a[n]={preventDefault:!0,commands:[function(e){var r=er={view:e,prefix:n,scope:t};return setTimeout((function(){er==r&&(er=null)}),nr),!0}]})},l=1;l=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}(),ar=(oe.fromClass(function(){function t(e){O(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=Vt("selectionLayer"),this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className=Vt("cursorLayer"),this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}return D(t,[{key:"setBlinkRate",value:function(){this.cursorLayer.style.animationDuration=this.view.state.facet(or).cursorBlinkRate+"ms"}},{key:"update",value:function(t){var e=t.startState.facet(or)!=t.state.facet(or);(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,i=n.facet(or),o=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),i=Math.min(e.to,t.viewport.to),o=t.textDirection==ke.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),u=hr(t),h=window.getComputedStyle(s.firstChild),l=a.left+parseInt(h.paddingLeft),c=a.right-parseInt(h.paddingRight),f=t.visualLineAt(n),d=t.visualLineAt(i);t.lineWrapping&&(f=lr(t,n,f),d=lr(t,i,d));if(f.from==d.from)return y(k(e.from,e.to));var v=k(e.from,null),p=k(null,e.to),g=[];return f.tof&&p.from=m)break;x>g&&u(Math.max(S,g),null==e&&S<=f,Math.min(x,m),null==n&&x>=d,b.dir)}}catch(C){w.e(C)}finally{w.f()}if((g=k.to+1)>=m)break}}}catch(C){v.e(C)}finally{v.f()}if(0==a.length){var A=t.coordsAtPos(f,-1);i=Math.min(A.top,i),s=Math.max(A.bottom,s)}return{top:i,bottom:s,horizontal:a}}}(e.view,t)})).reduce((function(t,e){return t.concat(e)})),s=[],a=M(n.selection.ranges);try{for(a.s();!(t=a.n()).done;){var u=t.value,h=u==n.selection.main;if(u.empty?!h||ir:i.drawRangeCursor){var l=dr(this.view,u,h);l&&s.push(l)}}}catch(c){a.e(c)}finally{a.f()}return{rangePieces:o,cursors:s}}},{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 s=i.value;this.selectionLayer.appendChild(s.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 a=this.cursorLayer.children;if(a.length!==r.length){this.cursorLayer.textContent="";var u,h=M(r);try{for(h.s();!(u=h.n()).done;){var l=u.value;this.cursorLayer.appendChild(l.draw())}}catch(c){h.e(c)}finally{h.f()}}else r.forEach((function(t,e){return t.adjust(a[e])}));this.cursors=r}}},{key:"destroy",value:function(){this.selectionLayer.remove(),this.cursorLayer.remove()}}]),t}()),{$line:{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}});ir&&(ar.$line.caretColor="transparent !important");r.Wl.override(_n.theme(ar));var ur=Vt("selectionBackground");function hr(t){var e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==ke.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function lr(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)}}var cr=Vt("cursor.primary"),fr=Vt("cursor.secondary");function dr(t,e,n){var r=t.coordsAtPos(e.head,e.assoc||1);if(!r)return null;var i=hr(t);return new sr(r.left-i.left,r.top-i.top,-1,r.bottom-r.top,n?cr:fr)}var vr=null!=/x/.unicode?"gu":"g",pr=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029\ufeff-]",vr),gr=null;r.r$.define({combine:function(t){var e=(0,r.BO)(t,{render:null,specialChars:pr,addSpecialChars:null});return(e.replaceTabs=!function(){if(null==gr&&"undefined"!=typeof document&&document.body){var t=document.body.style;gr=null!=(t.tabSize||t.MozTabSize)}return gr||!1}())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,vr)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,vr)),e}});var mr=Ot.line({attributes:{class:Vt("activeLine")}});oe.fromClass(function(){function t(e){O(this,t),this.decorations=this.getDeco(e)}return D(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){var s=t.visualLineAt(o.head);s.from>n&&(r.push(mr.range(s.from)),n=s.from)}}}catch(a){i.e(a)}finally{i.f()}return Ot.set(r)}}]),t}(),{decorations:function(t){return t.decorations}})},26856:function(t,e,n){"use strict";function r(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){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 s,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}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=h++,this.deserialize=n||function(){throw new Error("This node type doesn't define a deserialize function")}}return a(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 a(t,[{key:"prop",value:function(t){return this.props[t.id]}},{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:"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:"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 s,a=r(e.props);try{for(a.s();!(s=a.n()).done;){var u=s.value;Array.isArray(u)||(u=u(o)),u&&u[0].set(n,u[1])}}catch(h){a.e(h)}finally{a.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 s=i.value;e[s]=t[n]}}catch(a){o.e(a)}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&&l.get(this)||this.topNode,r=new S(n);return null!=t&&(r.moveTo(t,e),l.set(this,r._tree)),r}},{key:"fullCursor",value:function(){return new S(this.topNode,!0)}},{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,s=void 0===o?this.length:o,a=this.cursor();;){var u=!1;if(a.from<=s&&a.to>=i&&(a.type.isAnonymous||!1!==e(a.type,a.from,a.to))){if(a.firstChild())continue;a.type.isAnonymous||(u=!0)}for(;u&&n&&n(a.type,a.from,a.to),u=a.type.isAnonymous,!a.nextSibling();){if(!a.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:"topNode",get:function(){return new y(this,0,0,null)}}],[{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 a(t,[{key:"toString",value:function(){for(var t=[],e=0;e0){if(u>r&&(o=s),u>r)break}else if(a=r)break}else if(o=s,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 a(t,[{key:"nextChild",value:function(e,n,r){for(var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this;;){for(var s=o.node,a=s.children,u=s.positions,h=n>0?a.length:-1;e!=h;e+=n){var l=a[e],c=u[e]+o.from;if(-1e8==r||!(n<0?c>=r:c+l.length<=r))if(l instanceof m){var f=l.findChild(0,l.buffer.length,n,-1e8==r?-1e8:r-c);if(f>-1)return new b(new w(o,l,e,c),null,f)}else if(i||!l.type.isAnonymous||x(l)){var d=new t(l,c,e,o);return i||!d.type.isAnonymous?d:d.nextChild(n<0?l.children.length-1:0,n,r)}}if(i||!o.type.isAnonymous)return null;if(e=o.index+n,!(o=o._parent))return null}}},{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:"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()}},{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:"firstChild",get:function(){return this.nextChild(0,1,-1e8)}},{key:"lastChild",get:function(){return this.nextChild(this.node.children.length-1,-1,-1e8)}},{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 S(this)}}]),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 w=function t(e,n,r,i){o(this,t),this.parent=e,this.buffer=n,this.index=r,this.start=i},b=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 a(t,[{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:"childAfter",value:function(t){return this.child(1,t)}},{key:"childBefore",value:function(t){return this.child(-1,t)}},{key:"externalSibling",value:function(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,-1)}},{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)}},{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:"firstChild",get:function(){return this.child(1,-1e8)}},{key:"lastChild",get:function(){return this.child(-1,-1e8)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{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 S(this)}}]),t}(),S=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 a(t,[{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 s=n;sh;)if(n.id!=e){var l=n.size,c=n.pos-l;if(l<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+=l,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=b(A.start,T,E,o);x=new m(T,h-A.start,r,o<0?d.none:y[o]),S=A.start-t}else{var P=v.pos-c;v.next();for(var R=[],B=[],L=s>=f?s:-1;v.pos>P;)v.id==L?v.next():w(u,P,R,B,L);R.reverse(),B.reverse(),x=L>-1&&R.length>C?O(M,M,R,B,0,R.length,0,a,h-u,k):g(new p(M,R,B,h-u),k)}n.push(x),i.push(S)}function b(t,e,n,r){var i=v.id,o=v.start,s=v.end,a=v.size;if(v.next(),i==r)return n;var u=n;if(a>4)for(var h=v.pos-(a-4);v.pos>h;)n=b(t,e,n,r);return i0;)w(t.start||0,0,S,x,-1);var M=null!==(e=t.length)&&void 0!==e?e:S.length?x[0]+S[0].length:0;return new p(y[o],S.reverse(),x.reverse(),M)}function O(t,e,n,r,i,o,s,a,u,h){var l=[],c=[];if(u<=a)for(var f=i;fv)break}if(m==y+1){var w=n[y];if(w instanceof p&&w.type==e&&w.length>v<<1){for(var b=0;b0}},{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,s=e.length?e[0]:null,a=0,u=0,h=0;;){var l=a=r)for(;s&&s.from=f.from||c<=f.to||h){var d=Math.max(f.from,u)-h,v=Math.min(f.to,c)-h;f=d>=v?null:new t(d,v,f.tree,f.offset+h,(a>0?1:0)|(l?2:0))}if(f&&i.push(f),s.to>c)break;s=o1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=[new t(0,e.length,e,0,o?2:0)],a=r(i);try{for(a.s();!(n=a.n()).done;){var u=n.value;u.to>e.length&&s.push(u)}}catch(h){a.e(h)}finally{a.f()}return s}}]),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(s,1),r--,s=-1),-1==s){if(this.modules.splice(r++,0,o),e)for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:self;t.addEventListener("message",(function n(o){if(o&&o.data){var a,l=Object.assign({path:[]},o.data),c=l.id,p=l.type,f=l.path,D=(o.data.argumentList||[]).map(w);try{var h=f.slice(0,-1).reduce((function(e,t){return e[t]}),e),d=f.reduce((function(e,t){return e[t]}),e);switch(p){case 0:a=d;break;case 1:h[f.slice(-1)[0]]=w(o.data.value),a=!0;break;case 2:a=d.apply(h,D);break;case 3:var m;a=y(i(d,s(D)));break;case 4:var F=new MessageChannel,k=F.port1,C=F.port2;b(e,C),a=E(k,[k]);break;case 5:a=void 0}}catch(m){a=u({value:m},g,0)}Promise.resolve(a).catch((function(e){return u({value:e},g,0)})).then((function(e){var u=r(x(e),2),i=u[0],o=u[1];t.postMessage(Object.assign(Object.assign({},i),{id:c}),o),5===p&&(t.removeEventListener("message",n),A(t))}))}})),t.start&&t.start()}function A(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function F(e){if(e)throw new Error("Proxy has been released and is not useable")}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},u=!1,i=new Proxy(n,{get:function(n,r){if(F(u),r===h)return function(){return B(e,{type:5,path:t.map((function(e){return e.toString()}))}).then((function(){A(e),u=!0}))};if("then"===r){if(0===t.length)return{then:function(){return i}};var o=B(e,{type:0,path:t.map((function(e){return e.toString()}))}).then(w);return o.then.bind(o)}return k(e,[].concat(s(t),[r]))},set:function(n,i,o){F(u);var a=r(x(o),2),l=a[0],c=a[1];return B(e,{type:1,path:[].concat(s(t),[i]).map((function(e){return e.toString()})),value:l},c).then(w)},apply:function(n,i,o){F(u);var a=t[t.length-1];if(a===D)return B(e,{type:4}).then(w);if("bind"===a)return k(e,t.slice(0,-1));var s=r(C(o),2),l=s[0],c=s[1];return B(e,{type:2,path:t.map((function(e){return e.toString()})),argumentList:l},c).then(w)},construct:function(n,i){F(u);var o=r(C(i),2),a=o[0],s=o[1];return B(e,{type:3,path:t.map((function(e){return e.toString()})),argumentList:a},s).then(w)}});return i}function C(e){var t,n=e.map(x);return[n.map((function(e){return e[0]})),(t=n.map((function(e){return e[1]})),Array.prototype.concat.apply([],t))]}var v=new WeakMap;function E(e,t){return v.set(e,t),e}function y(e){return Object.assign(e,u({},f,!0))}function x(e){var t,n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,u=function(){};return{s:u,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:u}}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 i,o=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}(m);try{for(n.s();!(t=n.n()).done;){var u=r(t.value,2),i=u[0],o=u[1];if(o.canHandle(e)){var a=r(o.serialize(e),2);return[{type:3,name:i,value:a[0]},a[1]]}}}catch(s){n.e(s)}finally{n.f()}return[{type:0,value:e},v.get(e)||[]]}function w(e){switch(e.type){case 3:return m.get(e.name).deserialize(e.value);case 0:return e.value}}function B(e,t,n){return new Promise((function(r){var u=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===u&&(e.removeEventListener("message",t),r(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:u},t),n)}))}},91100:function(e,t,n){var r=n(79668),u=n(48544);n(27301);function i(e){return null==e}function o(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}o.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,o=t.onIgnoreAttr,a=t.safeAttrValue;return u(e,(function(e,t,u,s,l){var c=n[u],p=!1;if(!0===c?p=c:"function"==typeof c?p=c(s):c instanceof RegExp&&(p=c.test(s)),!0!==p&&(p=!1),s=a(u,s)){var f,D={position:t,sourcePosition:e,source:l,isWhite:p};return p?i(f=r(u,s,D))?u+":"+s:f:i(f=o(u,s,D))?void 0:f}}))},e.exports=o},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 r=/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 r.test(t)?"":t}},8300:function(e,t,n){var r=n(79668),u=n(91100);for(var i in(t=e.exports=function(e,t){return new u(t).process(e)}).FilterCSS=u,r)t[i]=r[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)},48544:function(e,t,n){var r=n(27301);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,u=!1,i=0,o=0,a="";function s(){if(!u){var n=r.trim(e.slice(i,o)),s=n.indexOf(":");if(-1!==s){var l=r.trim(n.slice(0,s)),c=r.trim(n.slice(s+1));if(l){var p=t(i,a.length,l,c,n);p&&(a+=p+"; ")}}}i=o+1}for(;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[u++]}}}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(r=e[Symbol.iterator]()).next.bind(r)}var r=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}}})),u=/[&<>"']/,i=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(e){return s[e]},c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(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 f=/(^|[^\[])\^/g,D=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},d=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function A(e,t){g[" "+e]||(d.test(e)?g[" "+e]=e+"/":g[" "+e]=F(e,"/",!0));var n=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(m,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}function F(e,t,n){var r=e.length;if(0===r)return"";for(var u=0;u=0&&"\\"===n[u];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},$=r.defaults,T=B,I=w,O=k,j=S;function R(e,t,n){var r=t.href,u=t.title?O(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:u,text:i}:{type:"image",raw:n,href:r,title:u,text:O(i)}}var P=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],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=T(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.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 r,u=n.align.length;for(r=0;r ?/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,r,u,i,o,a,s,l,c=t[0],p=t[2],f=p.length>1,D={type:"list",raw:c,ordered:f,start:f?+p.slice(0,-1):"",loose:!1,items:[]},h=t[0].match(this.rules.block.item),g=!1,d=h.length;u=this.rules.block.listItemStart.exec(h[0]);for(var m=0;mu[1].length:i[1].length>u[0].length||i[1].length>3){h.splice(m,2,h[m]+"\n"+h[m+1]),m--,d--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==p[p.length-1]:f===(1===i[2].length))&&(o=h.slice(m+1).join("\n"),D.raw=D.raw.substring(0,D.raw.length-o.length),m=d-1),u=i}r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(r-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+r+"}","gm"),"")),a=g||/\n\n(?!\s*$)/.test(n),m!==d-1&&(g="\n"===n.charAt(n.length-1),a||(a=g)),a&&(D.loose=!0),this.options.gfm&&(l=void 0,(s=/^\[[ xX]\] /.test(n))&&(l=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),D.items.push({type:"list_item",raw:c,task:s,checked:l,loose:a,text:n})}return D}},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]):O(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 r,u=n.align.length;for(r=0;r/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):O(r[0]):r[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 r=T(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var u=j(t[2],"()");if(u>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+u;t[2]=t[2].substring(0,u),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var o=t[2],a="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],a=s[3])}else a=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^$/.test(n)?o.slice(1):o.slice(1,-1)),R(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:a?a.replace(this.rules.inline._escapes,"$1"):a},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 r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return R(n,r,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[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 u=r[1]||r[2]||"";if(!u||u&&(""===n||this.rules.inline.punctuation.exec(n))){var i,o,a=r[0].length-1,s=a,l=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));)if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(o=i.length,r[3]||r[4])s+=o;else if(!((r[5]||r[6])&&a%3)||(a+o)%3){if(!((s-=o)>0)){if(s+l-o<=0&&!t.slice(c.lastIndex).match(c)&&(o=Math.min(o,o+s+l)),Math.min(a,o)%2)return{type:"em",raw:e.slice(0,a+r.index+o+1),text:e.slice(1,a+r.index+o)};if(Math.min(a,o)%2==0)return{type:"strong",raw:e.slice(0,a+r.index+o+1),text:e.slice(2,a+r.index+o-1)}}}else l+=o}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),u=/^ /.test(n)&&/ $/.test(n);return r&&u&&(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,r,u=this.rules.inline.autolink.exec(e);if(u)return r="@"===u[2]?"mailto:"+(n=O(this.options.mangle?t(u[1]):u[1])):n=O(u[1]),{type:"link",raw:u[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,u;if("@"===n[2])u="mailto:"+(r=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]);r=O(n[0]),u="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:u,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t,n){var r,u=this.rules.inline.text.exec(e);if(u)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):O(u[0]):u[0]:O(this.options.smartypants?n(u[0]):u[0]),{type:"text",raw:u[0],text:r}},e}(),L=y,q=v,Z=x,M={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?'|\([^()]*\))/};M.def=q(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,M.item=q(M.item,"gm").replace(/bull/g,M.bullet).getRegex(),M.listItemStart=q(/^( *)(bull)/).replace("bull",M.bullet).getRegex(),M.list=q(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._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",M._comment=/|$)/,M.html=q(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=q(M._paragraph).replace("hr",M.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",M._tag).getRegex(),M.blockquote=q(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=Z({},M),M.gfm=Z({},M.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*|$)"}),M.gfm.nptable=q(M.gfm.nptable).replace("hr",M.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",M._tag).getRegex(),M.gfm.table=q(M.gfm.table).replace("hr",M.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",M._tag).getRegex(),M.pedantic=Z({},M.normal,{html:q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._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:q(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var U={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]*?(?:(?=[\\?@\\[\\]`^{|}~"};U.punctuation=q(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex(),U.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,U.escapedEmSt=/\\\*|\\_/g,U._comment=q(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),U.emStrong.lDelim=q(U.emStrong.lDelim).replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimAst=q(U.emStrong.rDelimAst,"g").replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimUnd=q(U.emStrong.rDelimUnd,"g").replace(/punct/g,U._punctuation).getRegex(),U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._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])?)+(?![-_])/,U.autolink=q(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=q(U.tag).replace("comment",U._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=q(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=q(U.reflink).replace("label",U._label).getRegex(),U.reflinkSearch=q(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex(),U.normal=Z({},U),U.pedantic=Z({},U.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:q(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=Z({},U.normal,{escape:q(U.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)),r+="&#"+n+";";return r}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 P,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:N.normal,inline:W.normal};this.options.pedantic?(t.block=N.pedantic,t.inline=W.pedantic):this.options.gfm&&(t.block=N.gfm,this.options.breaks?t.inline=W.breaks:t.inline=W.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,r,u,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 r,u,i,o;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),(o=t[t.length-1])&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text):t.push(r);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),i=r.items.length,u=0;u0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+X("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+X("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(s=""),a=!1,u=this.tokenizer.escape(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.tag(e,n,r)){e=e.substring(u.raw.length),n=u.inLink,r=u.inRawBlock;var p=t[t.length-1];p&&"text"===u.type&&"text"===p.type?(p.raw+=u.raw,p.text+=u.text):t.push(u)}else if(u=this.tokenizer.link(e))e=e.substring(u.raw.length),"link"===u.type&&(u.tokens=this.inlineTokens(u.text,[],!0,r)),t.push(u);else if(u=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(u.raw.length);var f=t[t.length-1];"link"===u.type?(u.tokens=this.inlineTokens(u.text,[],!0,r),t.push(u)):f&&"text"===u.type&&"text"===f.type?(f.raw+=u.raw,f.text+=u.text):t.push(u)}else if(u=this.tokenizer.emStrong(e,l,s))e=e.substring(u.raw.length),u.tokens=this.inlineTokens(u.text,[],n,r),t.push(u);else if(u=this.tokenizer.codespan(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.br(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.del(e))e=e.substring(u.raw.length),u.tokens=this.inlineTokens(u.text,[],n,r),t.push(u);else if(u=this.tokenizer.autolink(e,Q))e=e.substring(u.raw.length),t.push(u);else if(n||!(u=this.tokenizer.url(e,Q))){if(u=this.tokenizer.inlineText(e,r,G))e=e.substring(u.raw.length),"_"!==u.raw.slice(-1)&&(s=u.raw.slice(-1)),a=!0,(i=t[t.length-1])&&"text"===i.type?(i.raw+=u.raw,i.text+=u.text):t.push(u);else if(e){var D="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(D);break}throw new Error(D)}}else e=e.substring(u.raw.length),t.push(u);return t},n=t,u=[{key:"rules",get:function(){return{block:N,inline:W}}}],(r=null)&&e(n.prototype,r),u&&e(n,u),t}(),K=r.defaults,Y=E,ee=k,te=function(){function e(e){this.options=e||K}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var u=this.options.highlight(e,r);null!=u&&u!==e&&(n=!0,e=u)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(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,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(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 r='
    "},t.image=function(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+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}(),re=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,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,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}(),ue=r.defaults,ie=C,oe=function(){function e(e){this.options=e||ue,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 re}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,r,u,i,o,a,s,l,c,p,f,D,h,g,d,m,b,A,F="",k=e.length;for(n=0;n0&&"text"===d.tokens[0].type?(d.tokens[0].text=A+" "+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=A+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:A}):g+=A),g+=this.parse(d.tokens,h),c+=this.renderer.listitem(g,b,m);F+=this.renderer.list(c,f,D);continue;case"html":F+=this.renderer.html(p.text);continue;case"paragraph":F+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(c=p.tokens?this.parseInline(p.tokens):p.text;n+1An error occurred:

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

    "+le(r.message+"",!0)+"
    ";throw r}},De.Parser=oe,De.parser=oe.parse,De.Renderer=te,De.TextRenderer=ne,De.Lexer=J,De.lexer=J.lex,De.Tokenizer=P,De.Slugger=re,De.parse=De,De},"object"===o(t)?e.exports=i():void 0===(u="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=u)},58556:function(e,t,n){"use strict";var r;(r="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?global:self).Proxy||(r.Proxy=n(87082)(),r.Proxy.revocable=r.Proxy.revocable)},87082:function(e){function t(e){return(t="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)}e.exports=function(){var e,n=null;function r(e){return!!e&&("object"===t(e)||"function"==typeof e)}return(e=function(e,t){if(!r(e)||!r(t))throw new TypeError("Cannot create proxy with a non-object as target or handler");var u=function(){};n=function(){e=null,u=function(e){throw new TypeError("Cannot perform '".concat(e,"' on a proxy that has been revoked"))}},setTimeout((function(){n=null}),0);var i=t;for(var o in t={get:null,set:null,apply:null,construct:null},i){if(!(o in t))throw new TypeError("Proxy polyfill does not support trap '".concat(o,"'"));t[o]=i[o]}"function"==typeof i&&(t.apply=i.apply.bind(i));var a=this,s=!1,l=!1;"function"==typeof e?(a=function(){var n=this&&this.constructor===a,r=Array.prototype.slice.call(arguments);if(u(n?"construct":"apply"),n&&t.construct)return t.construct.call(this,e,r);if(!n&&t.apply)return t.apply(e,this,r);if(n){r.unshift(e);var i=e.bind.apply(e,r);return new i}return e.apply(this,r)},s=!0):e instanceof Array&&(a=[],l=!0);var c=t.get?function(e){return u("get"),t.get(this,e,a)}:function(e){return u("get"),this[e]},p=t.set?function(e,n){u("set");t.set(this,e,n,a)}:function(e,t){u("set"),this[e]=t},f=Object.getOwnPropertyNames(e),D={};f.forEach((function(t){if(!s&&!l||!(t in a)){var n={enumerable:!!Object.getOwnPropertyDescriptor(e,t).enumerable,get:c.bind(e,t),set:p.bind(e,t)};Object.defineProperty(a,t,n),D[t]=!0}}));var h=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(a,Object.getPrototypeOf(e)):a.__proto__?a.__proto__=e.__proto__:h=!1,t.get||!h)for(var g in e)D[g]||Object.defineProperty(a,g,{get:c.bind(e,g)});return Object.seal(e),Object.seal(a),a}).revocable=function(t,r){return{proxy:new e(t,r),revoke:n}},e}},60841:function(e,t,n){var r=n(8300).FilterCSS,u=n(8300).getDefaultWhiteList,i=n(58511);function o(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","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:[],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:[],sup:[],strong:[],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","loop","preload","src","height","width"]}}var a=new r;function s(e){return e.replace(l,"<").replace(c,">")}var l=//g,p=/"/g,f=/"/g,D=/&#([a-zA-Z0-9]*);?/gim,h=/:?/gim,g=/&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,b=/u\s*r\s*l\s*\(.*/gi;function A(e){return e.replace(p,""")}function F(e){return e.replace(f,'"')}function k(e){return e.replace(D,(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(h,":").replace(g," ")}function v(e){for(var t="",n=0,r=e.length;n/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","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:[],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:[],sup:[],strong:[],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","loop","preload","src","height","width"]},t.getDefaultWhiteList=o,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,r){if(n=E(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)&&"#"!==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(b.lastIndex=0,b.test(n)&&(d.lastIndex=0,d.test(n)))return"";!1!==r&&(n=(r=r||a).process(n))}return n=y(n)},t.escapeHtml=s,t.escapeQuote=A,t.unescapeQuote=F,t.escapeHtmlEntities=k,t.escapeDangerHtml5Entities=C,t.clearNonPrintableCharacter=v,t.friendlyAttrValue=E,t.escapeAttrValue=y,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],u=!1;return{onIgnoreTag:function(o,a,s){if(function(t){return!!n||-1!==i.indexOf(e,t)}(o)){if(s.isClosing){var l="[/removed]",c=s.position+l.length;return r.push([!1!==u?u:s.position,c]),u=!1,l}return u||(u=s.position),"[removed]"}return t(o,a,s)},remove:function(e){var t="",n=0;return i.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){return e.replace(x,"")},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=a,t.getDefaultCSSWhiteList=u},62173:function(e,t,n){var r=n(60841),u=n(79542),i=n(61585);function o(e,t){return new i(t).process(e)}for(var a in(t=e.exports=o).filterXSS=o,t.FilterXSS=i,r)t[a]=r[a];for(var a in u)t[a]=u[a];"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 r=n(58511);function u(e){var t=r.spaceIndex(e);if(-1===t)var n=e.slice(1,-1);else n=e.slice(1,t+1);return"/"===(n=r.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){var r="",o=0,a=!1,s=!1,l=0,c=e.length,p="",f="";for(l=0;l"===D){r+=n(e.slice(o,a)),p=u(f=e.slice(a,l+1)),r+=t(a,r.length,p,f,i(f)),o=l+1,a=!1;continue}if(('"'===D||"'"===D)&&"="===e.charAt(l-1)){s=D;continue}}else if(D===s){s=!1;continue}}return o";var b=function(e){var t=s.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=s.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=s.trim(e.slice(0,-1))),{html:e,closing:n}}(o),A=n[u],F=a(b.html,(function(e,t){var n,r=-1!==s.indexOf(A,e);return l(n=c(u,e,t,r))?r?(t=f(u,e,t,h))?e+'="'+t+'"':e:l(n=p(u,e,t,r))?void 0:n:n}));o="<"+u;return F&&(o+=" "+F),b.closing&&(o+=" /"),o+=">"}return l(d=i(u,o,m))?D(o):d}),D);return g&&(d=g.remove(d)),d},e.exports=c}}]); -//# sourceMappingURL=chunk.f577afe8820bdf5ca141.js.map \ No newline at end of file +//# sourceMappingURL=chunk.23709353009814f6ec3d.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.23709353009814f6ec3d.js.gz b/supervisor/api/panel/frontend_es5/chunk.23709353009814f6ec3d.js.gz new file mode 100644 index 000000000..045482840 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.23709353009814f6ec3d.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.23709353009814f6ec3d.js.map b/supervisor/api/panel/frontend_es5/chunk.23709353009814f6ec3d.js.map new file mode 100644 index 000000000..593726171 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.23709353009814f6ec3d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.23709353009814f6ec3d.js","sources":["webpack://home-assistant-frontend/chunk.23709353009814f6ec3d.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js b/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js new file mode 100644 index 000000000..59f510861 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js @@ -0,0 +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,{keymap:function(){return t.$f},EditorView:function(){return t.tk},EditorState:function(){return l.yy},Prec:function(){return l.Wl},tagExtension:function(){return l.kU},defaultKeymap:function(){return p.wQ},indentLess:function(){return p.xi},indentMore:function(){return p.at},lineNumbers:function(){return d.Eu},langs:function(){return u},theme:function(){return g},highlightStyle:function(){return m}});var a=e(49619),t=e(19753),n=e(11163),c=e(49413),i=e(8987),l=e(77885),p=e(86876),d=e(11254),u={jinja2:n.i.define(c.b),yaml:n.i.define(i.r)},g=t.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.2)"},height:"var(--code-mirror-height, auto)"},$content:{caretColor:"var(--secondary-text-color)"},$$focused:{outline:"none"},"$$focused $cursor":{borderLeftColor:"#var(--secondary-text-color)"},"$$focused $selectionBackground, $selectionBackground":{backgroundColor:"rgba(var(--rgb-primary-color), 0.2)"},$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))"},"$$focused $gutters":{borderRight:"2px solid var(--paper-input-container-focus-color, var(--primary-color))"},"$gutterElementags.lineNumber":{color:"inherit"}}),m=a.Qf.define({tag:a.pJ.keyword,color:"var(--codemirror-keyword, #6262FF)"},{tag:[a.pJ.name,a.pJ.deleted,a.pJ.character,a.pJ.propertyName,a.pJ.macroName],color:"var(--codemirror-property, #905)"},{tag:[a.pJ.function(a.pJ.variableName),a.pJ.labelName],color:"var(--codemirror-variable, #07a)"},{tag:[a.pJ.color,a.pJ.constant(a.pJ.name),a.pJ.standard(a.pJ.name)],color:"var(--codemirror-qualifier, #690)"},{tag:[a.pJ.definition(a.pJ.name),a.pJ.separator],color:"var(--codemirror-def, #8DA6CE)"},{tag:[a.pJ.typeName,a.pJ.className,a.pJ.number,a.pJ.changed,a.pJ.annotation,a.pJ.modifier,a.pJ.self,a.pJ.namespace],color:"var(--codemirror-number, #ca7841)"},{tag:[a.pJ.operator,a.pJ.operatorKeyword,a.pJ.url,a.pJ.escape,a.pJ.regexp,a.pJ.link,a.pJ.special(a.pJ.string)],color:"var(--codemirror-operator, #cda869)"},{tag:a.pJ.comment,color:"var(--codemirror-comment, #777)"},{tag:a.pJ.meta,color:"var(--codemirror-meta, var(--primary-text-color))"},{tag:a.pJ.strong,fontWeight:"bold"},{tag:a.pJ.emphasis,fontStyle:"italic"},{tag:a.pJ.link,color:"var(--primary-color)",textDecoration:"underline"},{tag:a.pJ.heading,fontWeight:"bold"},{tag:a.pJ.atom,color:"var(--codemirror-atom, #F90)"},{tag:a.pJ.bool,color:"var(--codemirror-atom, #F90)"},{tag:a.pJ.special(a.pJ.variableName),color:"var(--codemirror-variable-2, #690)"},{tag:a.pJ.processingInstruction,color:"var(--secondary-text-color)"},{tag:a.pJ.string,color:"var(--codemirror-string, #07a)"},{tag:a.pJ.inserted,color:"var(--codemirror-string2, #07a)"},{tag:a.pJ.invalid,color:"var(--error-color)"})}}]); +//# sourceMappingURL=chunk.26873c1843972911e786.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js.gz b/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js.gz new file mode 100644 index 000000000..2b8db313b Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js.map b/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js.map new file mode 100644 index 000000000..efcf8c4e1 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.26873c1843972911e786.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.26873c1843972911e786.js","sources":["webpack://home-assistant-frontend/chunk.26873c1843972911e786.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.1da2af7a753728051dc0.js b/supervisor/api/panel/frontend_es5/chunk.3a2a2f6b4ddd0c4883f8.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.1da2af7a753728051dc0.js rename to supervisor/api/panel/frontend_es5/chunk.3a2a2f6b4ddd0c4883f8.js index 2036c97de..ecd7e8348 100644 --- a/supervisor/api/panel/frontend_es5/chunk.1da2af7a753728051dc0.js +++ b/supervisor/api/panel/frontend_es5/chunk.3a2a2f6b4ddd0c4883f8.js @@ -1,3 +1,3 @@ -/*! For license information please see chunk.1da2af7a753728051dc0.js.LICENSE.txt */ +/*! For license information please see chunk.3a2a2f6b4ddd0c4883f8.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[619],{37087:function(e,n,t){"use strict";t(51309),t(65660);var i=t(26110),r=t(98235),a=t(67139),o=t(18149),s=t(50856);function l(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(['\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'],['\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']);return l=function(){return e},e}(0,a.k)({_template:(0,s.d)(l()),is:"iron-autogrow-textarea",behaviors:[r.x,i.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=r.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,o.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)}})},25782:function(e,n,t){"use strict";t(51309),t(65660),t(70019),t(97968);var i=t(67139),r=t(50856),a=t(33760);function o(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(['\n \n \n\n
    \n \n
    \n \n']);return o=function(){return e},e}(0,i.k)({_template:(0,r.d)(o()),is:"paper-icon-item",behaviors:[a.U]})},1548:function(e,n,t){"use strict";t(65660),t(77956);var i=t(51309),r={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))}},a=t(67139),o=t(50856);function s(){var e=function(e,n){n||(n=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(['\n \n\n
    \n
    \n
    \n
    \n'],['\n \n\n
    \n
    \n
    \n
    \n']);return s=function(){return e},e}(0,a.k)({_template:(0,o.d)(s()),is:"paper-progress",behaviors:[r],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 l=t(8621),c=t(21006),u=t(49075),d=t(81668);function p(){var e=function(e,n){n||(n=e.slice(0));return 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']);return p=function(){return e},e}var h=(0,i.dy)(p());h.setAttribute("strip-whitespace",""),(0,a.k)({_template:h,is:"paper-slider",behaviors:[l.G,c.V,u.B,r],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,d.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,u.S._createRipple.call(this)},_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.style.display=e?"":"none",this._ripple.holdDown=e)}})},91107:function(e,n,t){"use strict";function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(t.push(o.value),!n||t.length!==n);i=!0);}catch(l){r=!0,a=l}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return t}(e,n)||c(e,n)||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 r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n,t){return(a=o()?Reflect.construct:function(e,n,t){var i=[null];i.push.apply(i,n);var r=new(Function.bind.apply(e,i));return t&&s(r,t.prototype),r}).apply(null,arguments)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,n){return(s=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||c(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 c(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:self;n.addEventListener("message",(function t(o){if(o&&o.data){var s,c=Object.assign({path:[]},o.data),u=c.id,d=c.type,p=c.path,h=(o.data.argumentList||[]).map(S);try{var f=p.slice(0,-1).reduce((function(e,n){return e[n]}),e),g=p.reduce((function(e,n){return e[n]}),e);switch(d){case 0:s=g;break;case 1:f[p.slice(-1)[0]]=S(o.data.value),s=!0;break;case 2:s=g.apply(f,h);break;case 3:var b;s=E(a(g,l(h)));break;case 4:var _=new MessageChannel,w=_.port1,x=_.port2;v(e,x),s=P(w,[w]);break;case 5:s=void 0}}catch(b){s=r({value:b},m,0)}Promise.resolve(s).catch((function(e){return r({value:e},m,0)})).then((function(e){var r=i(A(e),2),a=r[0],o=r[1];n.postMessage(Object.assign(Object.assign({},a),{id:u}),o),5===d&&(n.removeEventListener("message",t),y(n))}))}})),n.start&&n.start()}function y(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function _(e,n){return x(e,[],n)}function w(e){if(e)throw new Error("Proxy has been released and is not useable")}function x(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=!1,a=new Proxy(t,{get:function(t,i){if(w(r),i===f)return function(){return R(e,{type:5,path:n.map((function(e){return e.toString()}))}).then((function(){y(e),r=!0}))};if("then"===i){if(0===n.length)return{then:function(){return a}};var o=R(e,{type:0,path:n.map((function(e){return e.toString()}))}).then(S);return o.then.bind(o)}return x(e,[].concat(l(n),[i]))},set:function(t,a,o){w(r);var s=i(A(o),2),c=s[0],u=s[1];return R(e,{type:1,path:[].concat(l(n),[a]).map((function(e){return e.toString()})),value:c},u).then(S)},apply:function(t,a,o){w(r);var s=n[n.length-1];if(s===h)return R(e,{type:4}).then(S);if("bind"===s)return x(e,n.slice(0,-1));var l=i(k(o),2),c=l[0],u=l[1];return R(e,{type:2,path:n.map((function(e){return e.toString()})),argumentList:c},u).then(S)},construct:function(t,a){w(r);var o=i(k(a),2),s=o[0],l=o[1];return R(e,{type:3,path:n.map((function(e){return e.toString()})),argumentList:s},l).then(S)}});return a}function k(e){var n,t=e.map(A);return[t.map((function(e){return e[0]})),(n=t.map((function(e){return e[1]})),Array.prototype.concat.apply([],n))]}var T=new WeakMap;function P(e,n){return T.set(e,n),e}function E(e){return Object.assign(e,r({},p,!0))}function A(e){var n,t=function(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=c(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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 a,o=!0,s=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw a}}}}(b);try{for(t.s();!(n=t.n()).done;){var r=i(n.value,2),a=r[0],o=r[1];if(o.canHandle(e)){var s=i(o.serialize(e),2);return[{type:3,name:a,value:s[0]},s[1]]}}}catch(l){t.e(l)}finally{t.f()}return[{type:0,value:e},T.get(e)||[]]}function S(e){switch(e.type){case 3:return b.get(e.name).deserialize(e.value);case 0:return e.value}}function R(e,n,t){return new Promise((function(i){var r=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");e.addEventListener("message",(function n(t){t.data&&t.data.id&&t.data.id===r&&(e.removeEventListener("message",n),i(t.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:r},n),t)}))}},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=p}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==u.indexOf(n[t]))return;if("direction"==t&&-1==d.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?p: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 p;var n=y.exec(e);if(n)return a.apply(this,n.slice(1).map(Number));var t=_.exec(e);if(t)return o(Number(t[1]),m);var i=w.exec(e);return i?o(Number(i[1]),{start:h,middle:f,end:m}[i[2]]):g[e]||p}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 u="backwards|forwards|both|none".split("|"),d="reverse|alternate|alternate-reverse".split("|"),p=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,f=.5,m=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,f),"step-end":o(1,m)},b=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",y=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),_=/steps\(\s*(\d+)\s*\)/,w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,k=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 k: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!==k&&(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 u=e.consumeParenthesised.bind(null,s),d=e.consumeRepeated.bind(void 0,u,/^/),p=e.consumeRepeated.bind(void 0,d,/^,/);e.consumeSizePairList=p;var h=e.mergeNestedRepeated.bind(void 0,r," "),f=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var n=p(e);if(n&&""==n[1])return n[0]}),f,["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=p[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;n2&&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)(a()(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(){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.f577afe8820bdf5ca141.js"},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},n=r.x,r.x=function(){return r.e(474).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 a in i)r.o(i,a)&&(r.m[a]=i[a]);for(u&&u(r);o.length;)n[o.pop()]=1;e(t)}}(),r.x()}(); -//# sourceMappingURL=chunk.42a609fb0560e1666a33.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.42a609fb0560e1666a33.js.gz b/supervisor/api/panel/frontend_es5/chunk.42a609fb0560e1666a33.js.gz deleted file mode 100644 index 5192c33c3..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.42a609fb0560e1666a33.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.42a609fb0560e1666a33.js.map b/supervisor/api/panel/frontend_es5/chunk.42a609fb0560e1666a33.js.map deleted file mode 100644 index da7e4cc26..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.42a609fb0560e1666a33.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.42a609fb0560e1666a33.js","sources":["webpack://home-assistant-frontend/chunk.42a609fb0560e1666a33.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js.gz b/supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js.gz deleted file mode 100644 index f0fd465c9..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js.map b/supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js.map deleted file mode 100644 index 491a7974d..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.42b19ffa1fa277adc9cd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.42b19ffa1fa277adc9cd.js","sources":["webpack://home-assistant-frontend/chunk.42b19ffa1fa277adc9cd.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js.gz b/supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js.gz deleted file mode 100644 index a1a1d86e4..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js.map b/supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js.map deleted file mode 100644 index a294fd812..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.4c6cc0df3826f46a28c4.js","sources":["webpack://home-assistant-frontend/chunk.4c6cc0df3826f46a28c4.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.64cfea4cb45824881949.js.gz b/supervisor/api/panel/frontend_es5/chunk.64cfea4cb45824881949.js.gz deleted file mode 100644 index 0806b9803..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.64cfea4cb45824881949.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.64cfea4cb45824881949.js.map b/supervisor/api/panel/frontend_es5/chunk.64cfea4cb45824881949.js.map deleted file mode 100644 index 8eb6c8b7e..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.64cfea4cb45824881949.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.64cfea4cb45824881949.js","sources":["webpack://home-assistant-frontend/chunk.64cfea4cb45824881949.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js b/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js deleted file mode 100644 index 2fa15e400..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[914],{92914:function(n,e,r){"use strict";r.r(e),r.d(e,{codeMirror:function(){return c},codeMirrorCss:function(){return i}});var t=r(79074),s=r.n(t),o=r(49338),a=(r(22080),r(19393),r(47181));s().commands.save=function(n){(0,a.B)(n.getWrapperElement(),"editor-save")};var c=s(),i=o.Z}}]); -//# sourceMappingURL=chunk.6e5ce6bddf1cc3ddee5c.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js.gz b/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js.gz deleted file mode 100644 index 0c8b9d118..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js.map b/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js.map deleted file mode 100644 index 11d04644d..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.6e5ce6bddf1cc3ddee5c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.6e5ce6bddf1cc3ddee5c.js","sources":["webpack://home-assistant-frontend/chunk.6e5ce6bddf1cc3ddee5c.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js b/supervisor/api/panel/frontend_es5/chunk.727437146a6e434a2ec2.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js rename to supervisor/api/panel/frontend_es5/chunk.727437146a6e434a2ec2.js index 90cd6f8d2..f6de29922 100644 --- a/supervisor/api/panel/frontend_es5/chunk.4c6cc0df3826f46a28c4.js +++ b/supervisor/api/panel/frontend_es5/chunk.727437146a6e434a2ec2.js @@ -1,2 +1,2 @@ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[395],{42395:function(e,t,r){"use strict";r.r(t);var n=r(55317),i=r(99722),o=r(47181),s=r(83849),a=r(34154),c=r(63864);function u(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){u(o,n,i,s,a,"next",e)}function a(e){u(o,n,i,s,a,"throw",e)}s(void 0)}))}}function d(e){return document.cookie="ingress_session=".concat(e,";path=/api/hassio_ingress/;SameSite=Strict").concat("https:"===location.protocol?";Secure":""),e}var f=function(){var e=l(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,c.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",d(r.session));case 5:return e.next=7,t.callApi("POST","hassio/ingress/session");case 7:return n=e.sent,e.abrupt("return",d(n.data.session));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=l(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,c.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)}}(),h=r(26765);r(21625),r(60010);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 m(){var e=P(["\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 "]);return m=function(){return e},e}function y(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function b(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){y(o,n,i,s,a,"next",e)}function a(e){y(o,n,i,s,a,"throw",e)}s(void 0)}))}}function g(){var e=P(['
    \n \n \n
    ',"
    \n
    \n ",""]);return g=function(){return e},e}function k(){var e=P(["",""]);return k=function(){return e},e}function w(){var e=P(["\n ","\n "]);return w=function(){return e},e}function x(){var e=P([""]);return x=function(){return e},e}function E(){var e=P([" "]);return E=function(){return e},e}function P(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 S(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Y(e);if(t){var i=Y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){return!t||"object"!==v(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 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(!R(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 u=c.extras;if(u){for(var l=0;l=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 "]);return E=function(){return e},e}function P(){var e=S(["\n ","\n "]);return P=function(){return e},e}function x(){var e=S(['
    ',"
    "]);return x=function(){return e},e}function _(){var e=S(['\n \n
    \n ','\n\n \n \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&&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);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n \n "]);return X=function(){return e},e}function K(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Z(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 ee(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ne(e);if(t){var i=ne(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return te(this,r)}}function te(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?re(e):t}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ie(){ie=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(!se(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',": ",""]);return he=function(){return e},e}function me(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){return(ve=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ae(e);if(t){var i=Ae(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ge(this,r)}}function ge(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?we(e):t}function we(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return 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(!xe(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 "]);return Te=function(){return e},e}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fe(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 Ie(this,r)}}function Ie(e,t){return!t||"object"!==je(t)&&"function"!=typeof t?Me(e):t}function Me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ue(){Ue=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(!qe(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 .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 ')),et}}],(r=[{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}}])&&Ge(t.prototype,r),n&&Ge(t,n),o}(tt);function nt(e){return(nt="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 it(){var e=ct(["\n .flex {\n display: flex;\n }\n ha-slider {\n width: 100%;\n margin-right: 16px;\n }\n "]);return it=function(){return e},e}function ot(){var e=ct(['\n \n ',"\n \n
    \n
    \n "]);return st=function(){return e},e}function ct(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ht(e);if(t){var i=ht(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ft(this,r)}}function ft(e,t){return!t||"object"!==nt(t)&&"function"!=typeof t?pt(e):t}function pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mt(){mt=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(!bt(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 "]);return _t=function(){return e},e}function St(){var e=Ot(['\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 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 :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\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 ']);return Ht=function(){return e},e}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(e,t){for(var r=0;r\n ']);return er=function(){return e},e}function tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(e,t){return(rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 ir(this,r)}}function ir(e,t){return!t||"object"!==Zt(t)&&"function"!=typeof t?or(e):t}function or(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 sr(){sr=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(!ur(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);r59&&(i+=Math.floor(r/60),r%=60),"minutes"===t&&r>59&&(n+=Math.floor(r/60),r%=60),(0,a.B)(this,"value-changed",{value:Object.assign({hours:n,minutes:i,seconds:this._seconds,milliseconds:this._milliseconds},Jt({},t,r))})}}}]}}),i.oi);function mr(e){return(mr="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 yr(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n \n "]);return yr=function(){return e},e}function vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function br(e,t){return(br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Er(e);if(t){var i=Er(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return wr(this,r)}}function wr(e,t){return!t||"object"!==mr(t)&&"function"!=typeof t?kr(e):t}function kr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pr(){Pr=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(!Sr(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 "]);return qr=function(){return e},e}function Lr(){var e=Hr(["\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 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 =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 "]);return On=function(){return e},e}function Cn(){var e=Tn(["\n ","\n ","\n "]);return Cn=function(){return e},e}function Dn(){var e=Tn(["\n \n "]);return Dn=function(){return e},e}function An(){var e=Tn(['\n
    \n ',"\n
    \n "]);return An=function(){return e},e}function jn(){var e=Tn(["\n ","\n ","\n "]);return jn=function(){return e},e}function Tn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rn(e,t){return(Rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Bn(e);if(t){var i=Bn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return In(this,r)}}function In(e,t){return!t||"object"!==_n(t)&&"function"!=typeof t?Mn(e):t}function Mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Un(){Un=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(!qn(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=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 ".concat(t.codeMirrorCss,"\n .CodeMirror {\n height: var(--code-mirror-height, auto);\n direction: var(--code-mirror-direction, ltr);\n font-family: var(--code-font-family, monospace);\n }\n .CodeMirror-scroll {\n max-height: var(--code-mirror-max-height, --code-mirror-height);\n }\n :host(.error-state) .CodeMirror-gutters {\n border-color: var(--error-state-color, red);\n }\n .CodeMirror-focused .CodeMirror-gutters {\n border-right: 2px solid var(--paper-input-container-focus-color, var(--primary-color));\n }\n .CodeMirror-linenumber {\n color: var(--paper-dialog-color, var(--secondary-text-color));\n }\n .rtl .CodeMirror-vscrollbar {\n right: auto;\n left: 0px;\n }\n .rtl-gutter {\n width: 20px;\n }\n .CodeMirror-gutters {\n border-right: 1px solid var(--paper-input-container-color, var(--secondary-text-color));\n background-color: var(--paper-dialog-background-color, var(--primary-background-color));\n transition: 0.2s ease border-right;\n }\n .cm-s-default.CodeMirror {\n background-color: var(--code-editor-background-color, var(--card-background-color));\n color: var(--primary-text-color);\n }\n .cm-s-default .CodeMirror-cursor {\n border-left: 1px solid var(--secondary-text-color);\n }\n\n .cm-s-default div.CodeMirror-selected, .cm-s-default.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(var(--rgb-primary-color), 0.2);\n }\n\n .cm-s-default .CodeMirror-line::selection,\n .cm-s-default .CodeMirror-line>span::selection,\n .cm-s-default .CodeMirror-line>span>span::selection {\n background: rgba(var(--rgb-primary-color), 0.2);\n }\n\n .cm-s-default .cm-keyword {\n color: var(--codemirror-keyword, #6262FF);\n }\n\n .cm-s-default .cm-operator {\n color: var(--codemirror-operator, #cda869);\n }\n\n .cm-s-default .cm-variable-2 {\n color: var(--codemirror-variable-2, #690);\n }\n\n .cm-s-default .cm-builtin {\n color: var(--codemirror-builtin, #9B7536);\n }\n\n .cm-s-default .cm-atom {\n color: var(--codemirror-atom, #F90);\n }\n\n .cm-s-default .cm-number {\n color: var(--codemirror-number, #ca7841);\n }\n\n .cm-s-default .cm-def {\n color: var(--codemirror-def, #8DA6CE);\n }\n\n .cm-s-default .cm-string {\n color: var(--codemirror-string, #07a);\n }\n\n .cm-s-default .cm-string-2 {\n color: var(--codemirror-string-2, #bd6b18);\n }\n\n .cm-s-default .cm-comment {\n color: var(--codemirror-comment, #777);\n }\n\n .cm-s-default .cm-variable {\n color: var(--codemirror-variable, #07a);\n }\n\n .cm-s-default .cm-tag {\n color: var(--codemirror-tag, #997643);\n }\n\n .cm-s-default .cm-meta {\n color: var(--codemirror-meta, var(--primary-text-color));\n }\n\n .cm-s-default .cm-attribute {\n color: var(--codemirror-attribute, #d6bb6d);\n }\n\n .cm-s-default .cm-property {\n color: var(--codemirror-property, #905);\n }\n\n .cm-s-default .cm-qualifier {\n color: var(--codemirror-qualifier, #690);\n }\n\n .cm-s-default .cm-variable-3 {\n color: var(--codemirror-variable-3, #07a);\n }\n\n .cm-s-default .cm-type {\n color: var(--codemirror-type, #07a);\n }\n "),this.codemirror=r(n,{value:this._value,lineNumbers:!0,tabSize:2,mode:this.mode,autofocus:!1!==this.autofocus,viewportMargin:1/0,readOnly:this.readOnly,extraKeys:{Tab:"indentMore","Shift-Tab":"indentLess"},gutters:this._calcGutters()}),this._setScrollBarDirection(),this.codemirror.on("changes",(function(){return i._onChange()}));case 9:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Jn(o,n,i,a,s,"next",e)}function s(e){Jn(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})},{kind:"method",key:"_blockKeyboardShortcuts",value:function(){this.addEventListener("keydown",(function(e){return e.stopPropagation()}))}},{kind:"method",key:"_onChange",value:function(){var e=this.value;e!==this._value&&(this._value=e,(0,a.B)(this,"value-changed",{value:this._value}))}},{kind:"method",key:"_calcGutters",value:function(){return this.rtl?["rtl-gutter","CodeMirror-linenumbers"]:[]}},{kind:"method",key:"_setScrollBarDirection",value:function(){this.codemirror&&this.codemirror.getWrapperElement().classList.toggle("rtl",this.rtl)}}]}}),i.f4);function mi(){var e=bi(["

    ","

    "]);return mi=function(){return e},e}function yi(){var e=bi(["\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 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);rInvalid YAML ']);return Bi=function(){return e},e}function Ui(){var e=Li(['
    ',"
    "]);return Ui=function(){return e},e}function Ni(){var e=Li([" "]);return Ni=function(){return e},e}function $i(){var e=Li([""]);return $i=function(){return e},e}function qi(){var e=Li(["\n

    ",'

    \n \n
    \n

    Configuration

    \n
    \n \n \n \n \n Reset to defaults\n \n \n
    \n
    \n\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&&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 ',"
    "]);return fo=function(){return e},e}function po(){var e=mo(['\n \n
    \n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
    ContainerHostDescription
    \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 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);rt.container?1:-1}))}},{kind:"method",key:"_configChanged",value:(o=lo(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.target,this._config.forEach((function(e){e.container===r.container&&e.host!==parseInt(String(r.value),10)&&(e.host=r.value?parseInt(String(r.value),10):null)}));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{kind:"method",key:"_resetTapped",value:(n=lo(regeneratorRuntime.mark((function e(t){var r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,n={network:null},e.prev=3,e.next=6,(0,l.d3)(this.hass,this.addon.slug,n);case 6:if(o={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",o),"started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=11;break}return e.next=11,y(this,this.hass,this.addon);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),this._error="Failed to set addon network configuration, ".concat((0,u.js)(e.t0));case 16:r.progress=!1;case 17:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return n.apply(this,arguments)})},{kind:"method",key:"_saveTapped",value:(r=lo(regeneratorRuntime.mark((function e(t){var r,n,i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={},this._config.forEach((function(e){n[e.container]=parseInt(String(e.host),10)})),i={network:n},e.prev=6,e.next=9,(0,l.d3)(this.hass,this.addon.slug,i);case 9:if(s={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",s),"started"!==(null===(o=this.addon)||void 0===o?void 0:o.state)){e.next=14;break}return e.next=14,y(this,this.hass,this.addon);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),this._error="Failed to set addon network configuration, ".concat((0,u.js)(e.t0));case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[d.Qx,f.l,(0,i.iv)(so())]}}]}}),i.oi);var jo=r(18199);function To(e){return(To="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 zo(){var e=No(["\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 "]);return zo=function(){return e},e}function Ro(){var e=No(["\n \n "]);return Ro=function(){return e},e}function Fo(){var e=No(["\n \n "]);return Fo=function(){return e},e}function Io(){var e=No(["\n \n "]);return Io=function(){return e},e}function Mo(){var e=No(["\n ","\n ","\n ","\n "]);return Mo=function(){return e},e}function Bo(){var e=No(['\n
    \n ',"\n
    \n "]);return Bo=function(){return e},e}function Uo(){var e=No([""]);return Uo=function(){return e},e}function No(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){return(qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Yo(e);if(t){var i=Yo(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ho(this,r)}}function Ho(e,t){return!t||"object"!==To(t)&&"function"!=typeof t?Vo(e):t}function Vo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yo(e){return(Yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qo(){Qo=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(!Xo(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"]);return na=function(){return e},e}function ia(){var e=ca([""]);return ia=function(){return e},e}function oa(){var e=ca(['
    ',"
    "]);return oa=function(){return e},e}function aa(){var e=ca(['\n
    \n \n ','\n
    \n ',"\n
    \n
    \n
    \n "]);return aa=function(){return e},e}function sa(){var e=ca([""]);return sa=function(){return e},e}function ca(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function la(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 ua(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){la(o,n,i,a,s,"next",e)}function s(e){la(o,n,i,a,s,"throw",e)}a(void 0)}))}}function da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fa(e,t){return(fa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pa(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 ha(this,r)}}function ha(e,t){return!t||"object"!==ta(t)&&"function"!=typeof t?ma(e):t}function ma(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ya(){ya=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(!ga(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 ']);return Aa=function(){return e},e}function ja(e,t){for(var r=0;r 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 "]);return Ua=function(){return e},e}function Na(){var e=Va(['
    ',"
    "]);return Na=function(){return e},e}function $a(){var e=Va(['\n \n ',"\n
    \n "]);return $a=function(){return e},e}function qa(){var e=Va([" "," "]);return qa=function(){return e},e}function La(){var e=Va([" "]);return La=function(){return e},e}function Ha(){var e=Va(['\n
    \n
    \n \n \n ',"\n ","\n \n
    \n ","\n
    \n ","\n \n "]);return Ha=function(){return e},e}function Va(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ya(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 Wa(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=as(e);if(t){var i=as(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ga(this,r)}}function Ga(e,t){return!t||"object"!==Ba(t)&&"function"!=typeof t?Xa(e):t}function Xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ka(){Ka=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(!es(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);r4)}),!this.icon||this.value||this.image?"":(0,i.dy)(La(),this.icon),this.value&&!this.image?(0,i.dy)(qa(),this.value):"",this.label?(0,i.dy)($a(),(0,Sa.$)({label:!0,big:this.label.length>5}),this.label):"",this.description?(0,i.dy)(Na(),this.description):"")}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,i.iv)(Ua())]}},{kind:"method",key:"updated",value:function(e){os(as(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",ss);r(14089),r(59602);var cs=r(70203),ls=(r(79603),r(21050),r(66903)),us=(0,o.Z)((function(e,t){return t.some((function(t){return e.includes(t)}))}));function ds(e){return(ds="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 fs(){var e=rc(['\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 ']);return fs=function(){return e},e}function ps(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 hs(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ps(o,n,i,a,s,"next",e)}function s(e){ps(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ms(){var e=rc(['\n \n
    \n \n Rebuild\n \n ']);return ys=function(){return e},e}function vs(){var e=rc(["\n \n Open web UI\n \n "]);return vs=function(){return e},e}function bs(){var e=rc(["\n \n \n Open web UI\n \n \n ']);return bs=function(){return e},e}function gs(){var e=rc([" ","\n ",'\n \n Stop\n \n \n You are running Home Assistant\n ',", to install this add-on you\n need at least version "," of Home\n Assistant\n

    \n "]);return Ps=function(){return e},e}function xs(){var e=rc(['\n

    \n This add-on is not compatible with the processor of your\n device or the operating system you have installed on your\n device.\n

    \n ']);return xs=function(){return e},e}function _s(){var e=rc(['
    ',"
    "]);return _s=function(){return e},e}function Ss(){var e=rc(["\n \n "]);return Ss=function(){return e},e}function Os(){var e=rc(["\n Hostname\n \n \n ',"\n \n \n ",""]);return Os=function(){return e},e}function Cs(){var e=rc(["\n \n Protection mode\n \n \n Blocks elevated system access from the add-on\n \n \n \n Show in sidebar\n \n \n ',"\n \n \n \n "]);return Ds=function(){return e},e}function As(){var e=rc(["\n \n Auto update\n \n \n Auto update the add-on when there is a new\n version available\n \n \n \n Watchdog\n \n \n This will start the add-on if it crashes\n \n \n \n \n Start on boot\n \n \n Make the add-on start during a system boot\n \n \n \n \n \n \n \n \n \n \n
    \n ']);return Vs=function(){return e},e}function Ys(){var e=rc([" "," "]);return Ys=function(){return e},e}function Qs(){var e=rc(['\n \n

    Warning: Protection mode is disabled!

    \n
    \n Protection mode on this add-on is disabled! This gives the add-on full access to the entire system, which adds security risks, and could damage your system when used incorrectly. Only disable the protection mode if you know, need AND trust the source of this add-on.\n
    \n
    \n \n
    \n \n ','\n
    \n
    \n \n \n
    \n
    \n ',"\n
    \n
    \n ","\n
    \n
    \n \n\n ","\n "]);return tc=function(){return e},e}function rc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function nc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ic(e,t){return(ic=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=vc(e);if(t){var i=vc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ac(this,r)}}function ac(e,t){return!t||"object"!==ds(t)&&"function"!=typeof t?sc(e):t}function sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cc(){cc=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(!dc(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 **Stable**: These are add-ons ready to be used in production.\n\n **Experimental**: These may contain bugs, and may be unfinished.\n\n **Deprecated**: These add-ons will no longer receive any updates.')},rating:{title:"Add-on Security Rating",description:"Home Assistant provides a security rating to each of the add-ons, which indicates the risks involved when using this add-on. The more access an add-on requires on your system, the lower the score, thus raising the possible security risks.\n\nA score is on a scale from 1 to 6. Where 1 is the lowest score (considered the most insecure and highest risk) and a score of 6 is the highest score (considered the most secure and lowest risk)."},host_network:{title:"Host Network",description:"Add-ons usually run in their own isolated network layer, which prevents them from accessing the network of the host operating system. In some cases, this network isolation can limit add-ons in providing their services and therefore, the isolation can be lifted by the add-on author, giving the add-on full access to the network capabilities of the host machine. This gives the add-on more networking capabilities but lowers the security, hence, the security rating of the add-on will be lowered when this option is used by the add-on."},homeassistant_api:{title:"Home Assistant API Access",description:"This add-on is allowed to access your running Home Assistant instance directly via the Home Assistant API. This mode handles authentication for the add-on as well, which enables an add-on to interact with Home Assistant without the need for additional authentication tokens."},full_access:{title:"Full Hardware Access",description:"This add-on is given full access to the hardware of your system, by request of the add-on author. Access is comparable to the privileged mode in Docker. Since this opens up possible security risks, this feature impacts the add-on security score negatively.\n\nThis level of access is not granted automatically and needs to be confirmed by you. To do this, you need to disable the protection mode on the add-on manually. Only disable the protection mode if you know, need AND trust the source of this add-on."},hassio_api:{title:"Supervisor API Access",description:"The add-on was given access to the Supervisor API, by request of the add-on author. By default, the add-on can access general version information of your system. When the add-on requests 'manager' or 'admin' level access to the API, it will gain access to control multiple parts of your Home Assistant system. This permission is indicated by this badge and will impact the security score of the addon negatively."},docker_api:{title:"Full Docker Access",description:"The add-on author has requested the add-on to have management access to the Docker instance running on your system. This mode gives the add-on full access and control to your entire Home Assistant system, which adds security risks, and could damage your system when misused. Therefore, this feature impacts the add-on security score negatively.\n\nThis level of access is not granted automatically and needs to be confirmed by you. To do this, you need to disable the protection mode on the add-on manually. Only disable the protection mode if you know, need AND trust the source of this add-on."},host_pid:{title:"Host Processes Namespace",description:"Usually, the processes the add-on runs, are isolated from all other system processes. The add-on author has requested the add-on to have access to the system processes running on the host system instance, and allow the add-on to spawn processes on the host system as well. This mode gives the add-on full access and control to your entire Home Assistant system, which adds security risks, and could damage your system when misused. Therefore, this feature impacts the add-on security score negatively.\n\nThis level of access is not granted automatically and needs to be confirmed by you. To do this, you need to disable the protection mode on the add-on manually. Only disable the protection mode if you know, need AND trust the source of this add-on."},apparmor:{title:"AppArmor",description:"AppArmor ('Application Armor') is a Linux kernel security module that restricts add-ons capabilities like network access, raw socket access, and permission to read, write, or execute specific files.\n\nAdd-on authors can provide their security profiles, optimized for the add-on, or request it to be disabled. If AppArmor is disabled, it will raise security risks and therefore, has a negative impact on the security score of the add-on."},auth_api:{title:"Home Assistant Authentication",description:"An add-on can authenticate users against Home Assistant, allowing add-ons to give users the possibility to log into applications running inside add-ons, using their Home Assistant username/password. This badge indicates if the add-on author requests this capability."},ingress:{title:"Ingress",description:"This add-on is using Ingress to embed its interface securely into Home Assistant."}};!function(e,t,r,n){var i=cc();if(n)for(var o=0;o\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 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"]);return $c=function(){return e},e}function qc(){var e=Hc(['
    ',"
    "]);return qc=function(){return e},e}function Lc(){var e=Hc(["\n

    ","

    \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&&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 =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=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 "]);return Yl=function(){return e},e}function Ql(){var e=Gl([""]);return Ql=function(){return e},e}function Wl(){var e=Gl([""]);return Wl=function(){return e},e}function Gl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kl(e,t){return(Kl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zl(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=tu(e);if(t){var i=tu(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Jl(this,r)}}function Jl(e,t){return!t||"object"!==ql(t)&&"function"!=typeof t?eu(e):t}function eu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tu(e){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ru(){ru=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(!ou(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);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}(new URLSearchParams(location.search).entries());try{for(r.s();!(e=r.n()).done;){var o=n(e.value,2),a=o[0],s=o[1];t[a]=s}}catch(c){r.e(c)}finally{r.f()}return t},s=function(e){return new URLSearchParams(window.location.search).get(e)},c=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),i=r[0],o=r[1];t.append(i,o)})),t.toString()}}}]); -//# sourceMappingURL=chunk.ac014fe07fa8d22fd39a.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.ac014fe07fa8d22fd39a.js.gz b/supervisor/api/panel/frontend_es5/chunk.ac014fe07fa8d22fd39a.js.gz deleted file mode 100644 index 6536c76d7..000000000 Binary files a/supervisor/api/panel/frontend_es5/chunk.ac014fe07fa8d22fd39a.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/chunk.ac014fe07fa8d22fd39a.js.map b/supervisor/api/panel/frontend_es5/chunk.ac014fe07fa8d22fd39a.js.map deleted file mode 100644 index 7e660fb67..000000000 --- a/supervisor/api/panel/frontend_es5/chunk.ac014fe07fa8d22fd39a.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chunk.ac014fe07fa8d22fd39a.js","sources":["webpack://home-assistant-frontend/chunk.ac014fe07fa8d22fd39a.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.b292b81cc0bdb261f6c1.js b/supervisor/api/panel/frontend_es5/chunk.b292b81cc0bdb261f6c1.js new file mode 100644 index 000000000..3d3a79c1c --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.b292b81cc0bdb261f6c1.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[310],{42310:function(e,t,r){"use strict";r.r(t);r(30573);var n=r(99722),i=r(47181),o=(r(35602),r(92923),r(14089),r(52039),r(59602),r(34154)),s=r(41682),a=r(77097),c=r(11654);function l(e){return(l="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(){var e=m(["\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 "]);return u=function(){return e},e}function d(){var e=m(['

    ',"

    "]);return d=function(){return e},e}function p(){var e=m(['\n \n

    \n ',"\n

    "]);return p=function(){return e},e}function f(){var e=m(["
    \n Are you sure you want to update this add-on to version\n ",'?\n
    \n\n \n \n Snapshot\n \n \n Create a snapshot of the add-on before updating\n \n \n Cancel\n
    \n \n Update\n ']);return f=function(){return e},e}function h(){var e=m(['\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\n \n Download Snapshot\n ']);return h=function(){return e},e}function p(){var e=E(["\n \n \n Restore Everything\n \n ']);return p=function(){return e},e}function f(){var e=E(["\n \n \n \n Delete Snapshot\n \n ']);return f=function(){return e},e}function m(){var e=E(['

    Error: ',"

    "]);return m=function(){return e},e}function v(){var e=E(['\n \n ',"\n \n "]);return y=function(){return e},e}function g(){var e=E(['\n
    Add-on:
    \n \n ',"\n \n "]);return g=function(){return e},e}function k(){var e=E(["\n \n ',"\n \n "]);return k=function(){return e},e}function b(){var e=E(['\n
    Folders:
    \n \n ',"\n \n "]);return b=function(){return e},e}function w(){var e=E(["
    Home Assistant:
    \n \n Home Assistant ',"\n "]);return w=function(){return e},e}function _(){var e=E(["\n \n \n \n ','\n \n \n \n \n \n
    \n
    \n ',"\n (",")
    \n ","\n
    \n ","\n ","\n ","\n ","\n ",'\n\n
    \n \n Restore Selected\n \n ','\n
    \n
    \n ',"\n ","\n
    \n \n "]);return _=function(){return e},e}function x(){var e=E([""]);return x=function(){return e},e}function E(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function P(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(r,o)}function S(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){P(i,r,o,s,a,"next",e)}function a(e){P(i,r,o,s,a,"throw",e)}s(void 0)}))}}function D(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 C(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?R(e):t}function R(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 z(){z=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 o=t.placement;if(t.kind===r&&("static"===o||"prototype"===o)){var i="static"===o?e:n;this.defineClassElement(i,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=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!H(e))return n.push(e);var t=this.decorateElement(e,o);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var i=this.decorateConstructor(n,t);return r.push.apply(r,i.finishers),i.finishers=r,i},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=[],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&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var o=this.fromClassDescriptor(e),i=this.toClassDescriptor((0,t[r])(o)||o);if(void 0!==i.finisher&&n.push(i.finisher),void 0!==i.elements){e=i.elements;for(var s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.name?1:-1})),this._addons=(i=null===(r=this._snapshot)||void 0===r?void 0:r.addons,i.map((function(e){return{slug:e.slug,name:e.name,version:e.version,checked:!0}}))).sort((function(e,t){return e.name>t.name?1:-1})),this._dialogParams=t,this._onboarding=null!==(o=t.onboarding)&&void 0!==o&&o,this.supervisor=t.supervisor,this._snapshot.homeassistant||(this._restoreHass=!1);case 9:case"end":return e.stop()}var i,s,c}),e,this)}))),function(e){return O.apply(this,arguments)})},{kind:"method",key:"render",value:function(){var e=this;return this._dialogParams&&this._snapshot?(0,o.dy)(_(),this._closeDialog,!0,this._computeName,r.r5M,"full"===this._snapshot.type?"Full snapshot":"Partial snapshot",this._computeSize,this._formatDatetime(this._snapshot.date),this._snapshot.homeassistant?(0,o.dy)(w(),this._restoreHass,(function(t){e._restoreHass=t.target.checked}),this._snapshot.homeassistant):"",this._folders.length?(0,o.dy)(b(),this._folders.map((function(t){return(0,o.dy)(k(),t.checked,(function(n){return e._updateFolders(t,n.target.checked)}),t.name)}))):"",this._addons.length?(0,o.dy)(g(),this._addons.map((function(t){return(0,o.dy)(y(),t.checked,(function(n){return e._updateAddons(t,n.target.checked)}),t.name)}))):"",this._snapshot.protected?(0,o.dy)(v(),this._passwordInput,this._snapshotPassword):"",this._error?(0,o.dy)(m(),this._error):"",this._partialRestoreClicked,r.BBX,this._onboarding?"":(0,o.dy)(f(),this._deleteClicked,r.x9U),"full"===this._snapshot.type?(0,o.dy)(p(),this._fullRestoreClicked,r.BBX):"",this._onboarding?"":(0,o.dy)(h(),this._downloadClicked,r.OGU)):(0,o.dy)(x())}},{kind:"get",static:!0,key:"styles",value:function(){return[l.Qx,l.yu,(0,o.iv)(d())]}},{kind:"method",key:"_updateFolders",value:function(e,t){this._folders=this._folders.map((function(n){return n.slug===e.slug&&(n.checked=t),n}))}},{kind:"method",key:"_updateAddons",value:function(e,t){this._addons=this._addons.map((function(n){return n.slug===e.slug&&(n.checked=t),n}))}},{kind:"method",key:"_passwordInput",value:function(e){this._snapshotPassword=e.detail.value}},{kind:"method",key:"_partialRestoreClicked",value:(P=S(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.supervisor||"running"===this.supervisor.info.state){e.next=4;break}return e.next=3,(0,c.Ys)(this,{title:"Could not restore snapshot",text:"Restoring a snapshot is not possible right now because the system is in ".concat(this.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,c.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:t=this._addons.filter((function(e){return e.checked})).map((function(e){return e.slug})),n=this._folders.filter((function(e){return e.checked})).map((function(e){return e.slug})),r={homeassistant:this._restoreHass,addons:t,folders:n},this._snapshot.protected&&(r.password=this._snapshotPassword),this._onboarding?((0,i.B)(this,"restoring"),fetch("/api/hassio/snapshots/".concat(this._snapshot.slug,"/restore/partial"),{method:"POST",body:JSON.stringify(r)}),this._closeDialog()):this.hass.callApi("POST","hassio/snapshots/".concat(this._snapshot.slug,"/restore/partial"),r).then((function(){alert("Snapshot restored!"),o._closeDialog()}),(function(e){o._error=e.body.message}));case 13:case"end":return e.stop()}}),e,this)}))),function(){return P.apply(this,arguments)})},{kind:"method",key:"_fullRestoreClicked",value:(E=S(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.supervisor||"running"===this.supervisor.info.state){e.next=4;break}return e.next=3,(0,c.Ys)(this,{title:"Could not restore snapshot",text:"Restoring a snapshot is not possible right now because the system is in ".concat(this.supervisor.info.state," state.")});case 3:return e.abrupt("return");case 4:return e.next=6,(0,c.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:t=this._snapshot.protected?{password:this._snapshotPassword}:void 0,this._onboarding?((0,i.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(){alert("Snapshot restored!"),n._closeDialog()}),(function(e){n._error=e.body.message}));case 10:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_deleteClicked",value:(u=S(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,c.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 u.apply(this,arguments)})},{kind:"method",key:"_downloadClicked",value:(n=S(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o=this.hass,i="/api/hassio/snapshots/".concat(this._snapshot.slug,"/download"),o.callWS({type:"auth/sign_path",path:i});case 3:t=e.sent,e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(0),alert("Error: ".concat((0,s.js)(e.t0))),e.abrupt("return");case 10:if(!window.location.href.includes("ui.nabu.casa")){e.next=16;break}return e.next=13,(0,c.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 13:if(e.sent){e.next=16;break}return e.abrupt("return");case 16:n=this._computeName.replace(/[^a-z0-9]+/gi,"_"),(r=document.createElement("a")).href=t.path,r.download="Hass_io_".concat(n,".tar"),this.shadowRoot.appendChild(r),r.click(),this.shadowRoot.removeChild(r);case 23:case"end":return e.stop()}var o,i}),e,this,[[0,6]])}))),function(){return n.apply(this,arguments)})},{kind:"get",key:"_computeName",value:function(){return this._snapshot?this._snapshot.name||this._snapshot.slug:"Unnamed snapshot"}},{kind:"get",key:"_computeSize",value:function(){return Math.ceil(10*this._snapshot.size)/10+" MB"}},{kind:"method",key:"_formatDatetime",value:function(e){return new Date(e).toLocaleDateString(navigator.language,{weekday:"long",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}},{kind:"method",key:"_closeDialog",value:function(){this._dialogParams=void 0,this._snapshot=void 0,this._snapshotPassword="",this._folders=[],this._addons=[]}}]}}),o.oi)}}]); +//# sourceMappingURL=chunk.b729c536fbd35941bc86.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.b729c536fbd35941bc86.js.gz b/supervisor/api/panel/frontend_es5/chunk.b729c536fbd35941bc86.js.gz new file mode 100644 index 000000000..7ab0531b8 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.b729c536fbd35941bc86.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.b729c536fbd35941bc86.js.map b/supervisor/api/panel/frontend_es5/chunk.b729c536fbd35941bc86.js.map new file mode 100644 index 000000000..49d327648 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.b729c536fbd35941bc86.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.b729c536fbd35941bc86.js","sources":["webpack://home-assistant-frontend/chunk.b729c536fbd35941bc86.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js b/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js new file mode 100644 index 000000000..1478e072c --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js @@ -0,0 +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)),f={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)(f)}},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.23709353009814f6ec3d.js"},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},n=r.x,r.x=function(){return r.e(474).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.df460c6964334a453095.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js.gz b/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js.gz new file mode 100644 index 000000000..efae3e81f Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js.map b/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js.map new file mode 100644 index 000000000..ad4fe2750 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.df460c6964334a453095.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.df460c6964334a453095.js","sources":["webpack://home-assistant-frontend/chunk.df460c6964334a453095.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.e3171242353384f14b6d.js b/supervisor/api/panel/frontend_es5/chunk.e3171242353384f14b6d.js new file mode 100644 index 000000000..b37fec172 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.e3171242353384f14b6d.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[850],{78850:function(e,t,r){"use strict";r.r(t);r(30573);var n=r(99722),i=r(47181),o=(r(35602),r(92923),r(14089),r(52039),r(59602),r(41682)),s=r(77097),a=r(51283),c=r(11654);function l(e){return(l="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(){var e=m(["\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 "]);return u=function(){return e},e}function p(){var e=m(['

    ',"

    "]);return p=function(){return e},e}function f(){var e=m(['\n \n

    \n ',"\n

    "]);return f=function(){return e},e}function d(){var e=m(["
    \n Are you sure you want to update Home Assistant Core to version\n ",'?\n
    \n\n \n \n Snapshot\n \n \n Create a snapshot of Home Assistant Core before updating\n \n \n Cancel\n \n \n Update\n ']);return d=function(){return e},e}function h(){var e=m(["\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"]);return u=function(){return e},e}function f(){var e=d(['This redirect is not supported by your Home Assistant\n instance. Check the\n My Home Assistant FAQ\n for the supported redirects and the version they where introduced.']);return f=function(){return e},e}function d(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}function p(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function h(e,r){return(h=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=D(e);if(r){var i=D(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return m(this,t)}}function m(e,r){return!r||"object"!==s(r)&&"function"!=typeof r?v(e):r}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){b=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(!g(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 a=r[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,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 a=0;ae.length)&&(r=e.length);for(var t=0,n=new Array(r);t-1}(r))return r;var a=r.match(i);if(!a)return r;var s=a[0];return t.test(s)?"about:blank":r}},15493:function(e,r,t){"use strict";function n(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(t.push(a.value),!r||t.length!==r);n=!0);}catch(c){i=!0,o=c}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}(e,r)||i(e,r)||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(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,c=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==t.return||t.return()}finally{if(c)throw a}}}}(new URLSearchParams(location.search).entries());try{for(t.s();!(e=t.n()).done;){var o=n(e.value,2),a=o[0],s=o[1];r[a]=s}}catch(c){t.e(c)}finally{t.f()}return r},s=function(e){return new URLSearchParams(window.location.search).get(e)},c=function(e){var r=new URLSearchParams;return Object.entries(e).forEach((function(e){var t=n(e,2),i=t[0],o=t[1];r.append(i,o)})),r.toString()}}}]); -//# sourceMappingURL=chunk.64cfea4cb45824881949.js.map \ No newline at end of file +//# sourceMappingURL=chunk.fba36c0c74567a38a911.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.fba36c0c74567a38a911.js.gz b/supervisor/api/panel/frontend_es5/chunk.fba36c0c74567a38a911.js.gz new file mode 100644 index 000000000..528751202 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/chunk.fba36c0c74567a38a911.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/chunk.fba36c0c74567a38a911.js.map b/supervisor/api/panel/frontend_es5/chunk.fba36c0c74567a38a911.js.map new file mode 100644 index 000000000..94cc7c0ba --- /dev/null +++ b/supervisor/api/panel/frontend_es5/chunk.fba36c0c74567a38a911.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chunk.fba36c0c74567a38a911.js","sources":["webpack://home-assistant-frontend/chunk.fba36c0c74567a38a911.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/chunk.79b4e240c46ccbe25e4d.js b/supervisor/api/panel/frontend_es5/chunk.fdd4272cf21810fd4c58.js similarity index 99% rename from supervisor/api/panel/frontend_es5/chunk.79b4e240c46ccbe25e4d.js rename to supervisor/api/panel/frontend_es5/chunk.fdd4272cf21810fd4c58.js index 4ae941677..66efbda63 100644 --- a/supervisor/api/panel/frontend_es5/chunk.79b4e240c46ccbe25e4d.js +++ b/supervisor/api/panel/frontend_es5/chunk.fdd4272cf21810fd4c58.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(30573),r(77956);var n=r(99722),i=r(81471),o=r(47181),a=(r(92923),r(59602),r(11654));function s(e){return(s="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 c(){var e=h(["\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 "]);return c=function(){return e},e}function l(){var e=h(["\n \n ',"\n \n "]);return l=function(){return e},e}function u(){var e=h(["\n \n "]);return u=function(){return e},e}function p(){var e=h(["\n \n ","\n

    \n "]);return p=function(){return e},e}function d(){var e=h(["\n \n ',"\n \n \n "]);return d=function(){return e},e}function f(){var e=h([""]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function m(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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(){_=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(!x(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=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:{},r=((n.compareTime||new Date).getTime()-t.getTime())/1e3,i=r>=0?"past":"future";r=Math.abs(r);var s=Math.round(r);if(0===s)return e("ui.components.relative_time.just_now");for(var c="week",l=0;l\n \n
    \n
    \n ']);return C=function(){return t},t}function O(){var t=T(['
    ']);return O=function(){return t},t}function P(){var t=T(["\n ","\n ",'\n
    \n
    \n ','\n
    \n
    \n ',"\n ","\n ","\n
    \n
    \n "]);return P=function(){return t},t}function T(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function R(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=z(t);if(e){var i=z(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}function I(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?D(t):e}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function M(){M=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!Z(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n \n \n \n \n ']);return d=function(){return t},t}function p(){var t=h(["\n ","\n "]);return p=function(){return t},t}function h(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=P(t);if(e){var i=P(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(){w=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!x(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n Have a look here on how to restore it.']);return I=function(){return t},t}function D(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,i)}function z(){var t=M(["\n =0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n1073741824)){t.next=4;break}return(0,L.Ys)(this,{title:"Snapshot file is too big",text:(0,i.dy)(I()),confirmText:"ok"}),t.abrupt("return");case 4:if(["application/x-tar"].includes(n.type)){t.next=7;break}return(0,L.Ys)(this,{title:"Unsupported file format",text:"Please choose a Home Assistant snapshot file (.tar)",confirmText:"ok"}),t.abrupt("return");case 7:return this._uploading=!0,t.prev=8,t.next=11,(0,R.oS)(this.hass,n);case 11:r=t.sent,(0,o.B)(this,"snapshot-uploaded",{snapshot:r.data}),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(8),(0,L.Ys)(this,{title:"Upload failed",text:(0,T.js)(t.t0),confirmText:"ok"});case 18:return t.prev=18,this._uploading=!1,t.finish(18);case 21:case"end":return t.stop()}}),t,this,[[8,15,18,21]])})),a=function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){D(o,r,i,a,s,"next",t)}function s(t){D(o,r,i,a,s,"throw",t)}a(void 0)}))},function(t){return a.apply(this,arguments)})}]}}),i.oi)},21050:function(t,e,n){"use strict";var r=n(99722),i=n(81471),o=n(88027);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(){var t=l(["\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 "]);return s=function(){return t},t}function c(){var t=l(['\n \n \n \n \n \n \n ']);return c=function(){return t},t}function l(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(){y=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!g(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);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: 42px;\n padding-right: 4px;\n }\n ']);return S=function(){return t},t}function A(){var t=C(['\n \n ','\n \n
    \n \n ','%\n \n =0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n50,"target-critical":e>85}),this.value)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,r.iv)(S())}}]}}),r.oi)},66903:function(t,e,n){"use strict";n.d(e,{v:function(){return i}});var r=n(47181),i=function(t,e){(0,r.B)(t,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return Promise.all([n.e(546),n.e(694)]).then(n.bind(n,56884))},dialogParams:e})}},9402:function(t,e,n){"use strict";n.r(e),n.d(e,{DialogHassioNetwork:function(){return fo}});n(30573),n(32358),n(36051),n(81689);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,n,i){var o,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}Object.create;Object.create;var o=n(99722);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,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}Object.create;Object.create;var c=n(78220),l=n(87480),u=n(72774),f={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},d={CONTENT_SELECTOR:".mdc-tab-indicator__content"},p=function(t){function e(n){return t.call(this,(0,l.pi)((0,l.pi)({},e.defaultAdapter),n))||this}return(0,l.ZT)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return f},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(e,"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:!0,configurable:!0}),e.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},e}(u.K),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,l.ZT)(e,t),e.prototype.activate=function(){this.adapter.addClass(p.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(p.cssClasses.ACTIVE)},e}(p),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,l.ZT)(e,t),e.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),n=t.width/e.width,r=t.left-e.left;this.adapter.addClass(p.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+r+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter.removeClass(p.cssClasses.NO_TRANSITION),this.adapter.addClass(p.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(p.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(p.cssClasses.ACTIVE)},e}(p),y=n(81471);function v(t){return(v="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 b(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n \n ',"\n \n "]);return b=function(){return t},t}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n\n "]);return U=function(){return t},t}function V(){var t=$(['']);return V=function(){return t},t}function K(){var t=$(['\n \n \n ',"\n ","\n ","\n \n ","\n ","\n "]);return K=function(){return t},t}function G(){var t=$(['\n ',""]);return G=function(){return t},t}function W(){var t=$([""]);return W=function(){return t},t}function q(){var t=$(['\n ',""]);return q=function(){return t},t}function Y(){var t=$([""]);return Y=function(){return t},t}function $(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function X(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J(t,e){for(var n=0;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}Object.create;Object.create;function vt(t){return(vt="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 bt(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":vt(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}Object.create;Object.create;var gt=n(58014),wt={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},_t={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},kt=function(t){this.adapter=t},xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,l.ZT)(e,t),e.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),e=this.calculateScrollEdges_().right;return Math.round(e-t)},e.prototype.scrollToRTL=function(t){var e=this.calculateScrollEdges_(),n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue_(e.right-t);return{finalScrollPosition:r,scrollDelta:r-n}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(e-t);return{finalScrollPosition:n,scrollDelta:n-e}},e.prototype.getAnimatingScrollPosition=function(t){return t},e.prototype.calculateScrollEdges_=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},e.prototype.clampScrollValue_=function(t){var e=this.calculateScrollEdges_();return Math.min(Math.max(e.left,t),e.right)},e}(kt),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,l.ZT)(e,t),e.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},e.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(-t);return{finalScrollPosition:n,scrollDelta:n-e}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(e-t);return{finalScrollPosition:n,scrollDelta:n-e}},e.prototype.getAnimatingScrollPosition=function(t,e){return t-e},e.prototype.calculateScrollEdges_=function(){var t=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-t,right:0}},e.prototype.clampScrollValue_=function(t){var e=this.calculateScrollEdges_();return Math.max(Math.min(e.right,t),e.left)},e}(kt),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,l.ZT)(e,t),e.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},e.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(t);return{finalScrollPosition:n,scrollDelta:e-n}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue_(e+t);return{finalScrollPosition:n,scrollDelta:e-n}},e.prototype.getAnimatingScrollPosition=function(t,e){return t+e},e.prototype.calculateScrollEdges_=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},e.prototype.clampScrollValue_=function(t){var e=this.calculateScrollEdges_();return Math.min(Math.max(e.right,t),e.left)},e}(kt),At=function(t){function e(n){var r=t.call(this,(0,l.pi)((0,l.pi)({},e.defaultAdapter),n))||this;return r.isAnimating_=!1,r}return(0,l.ZT)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return wt},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return _t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"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:!0,configurable:!0}),e.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(e.cssClasses.SCROLL_AREA_SCROLL)},e.prototype.getScrollPosition=function(){if(this.isRTL_())return this.computeCurrentScrollPositionRTL_();var t=this.calculateCurrentTranslateX_();return this.adapter.getScrollAreaScrollLeft()-t},e.prototype.handleInteraction=function(){this.isAnimating_&&this.stopScrollAnimation_()},e.prototype.handleTransitionEnd=function(t){var n=t.target;this.isAnimating_&&this.adapter.eventTargetMatchesSelector(n,e.strings.CONTENT_SELECTOR)&&(this.isAnimating_=!1,this.adapter.removeClass(e.cssClasses.ANIMATING))},e.prototype.incrementScroll=function(t){0!==t&&this.animate_(this.getIncrementScrollOperation_(t))},e.prototype.incrementScrollImmediate=function(t){if(0!==t){var e=this.getIncrementScrollOperation_(t);0!==e.scrollDelta&&(this.stopScrollAnimation_(),this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition))}},e.prototype.scrollTo=function(t){if(this.isRTL_())return this.scrollToRTL_(t);this.scrollTo_(t)},e.prototype.getRTLScroller=function(){return this.rtlScrollerInstance_||(this.rtlScrollerInstance_=this.rtlScrollerFactory_()),this.rtlScrollerInstance_},e.prototype.calculateCurrentTranslateX_=function(){var t=this.adapter.getScrollContentStyleValue("transform");if("none"===t)return 0;var e=/\((.+?)\)/.exec(t);if(!e)return 0;var n=e[1],r=(0,l.CR)(n.split(","),6),i=(r[0],r[1],r[2],r[3],r[4]);r[5];return parseFloat(i)},e.prototype.clampScrollValue_=function(t){var e=this.calculateScrollEdges_();return Math.min(Math.max(e.left,t),e.right)},e.prototype.computeCurrentScrollPositionRTL_=function(){var t=this.calculateCurrentTranslateX_();return this.getRTLScroller().getScrollPositionRTL(t)},e.prototype.calculateScrollEdges_=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},e.prototype.scrollTo_=function(t){var e=this.getScrollPosition(),n=this.clampScrollValue_(t),r=n-e;this.animate_({finalScrollPosition:n,scrollDelta:r})},e.prototype.scrollToRTL_=function(t){var e=this.getRTLScroller().scrollToRTL(t);this.animate_(e)},e.prototype.getIncrementScrollOperation_=function(t){if(this.isRTL_())return this.getRTLScroller().incrementScrollRTL(t);var e=this.getScrollPosition(),n=t+e,r=this.clampScrollValue_(n);return{finalScrollPosition:r,scrollDelta:r-e}},e.prototype.animate_=function(t){var n=this;0!==t.scrollDelta&&(this.stopScrollAnimation_(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame((function(){n.adapter.addClass(e.cssClasses.ANIMATING),n.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating_=!0)},e.prototype.stopScrollAnimation_=function(){this.isAnimating_=!1;var t=this.getAnimatingScrollPosition_();this.adapter.removeClass(e.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},e.prototype.getAnimatingScrollPosition_=function(){var t=this.calculateCurrentTranslateX_(),e=this.adapter.getScrollAreaScrollLeft();return this.isRTL_()?this.getRTLScroller().getAnimatingScrollPosition(e,t):e-t},e.prototype.rtlScrollerFactory_=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var e=this.adapter.getScrollAreaScrollLeft();if(e<0)return this.adapter.setScrollAreaScrollLeft(t),new Et(this.adapter);var n=this.adapter.computeScrollAreaClientRect(),r=this.adapter.computeScrollContentClientRect(),i=Math.round(r.right-n.right);return this.adapter.setScrollAreaScrollLeft(t),i===e?new St(this.adapter):new xt(this.adapter)},e.prototype.isRTL_=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},e}(u.K);function Ct(t){return(Ct="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 Ot(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n
    \n
    \n
    \n
    \n
    \n ']);return Ot=function(){return t},t}function Pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tt(t,e){for(var n=0;nr&&(i=0),i},e.prototype.calculateScrollIncrement_=function(t,e,n,r){var i=this.adapter.getTabDimensionsAtIndex(e),o=i.contentLeft-n-r,a=i.contentRight-n-Gt.EXTRA_SCROLL_AMOUNT,s=o+Gt.EXTRA_SCROLL_AMOUNT;return et?Math.max(s,0):Math.min(c,0)},e.prototype.findAdjacentTabIndexClosestToEdge_=function(t,e,n,r){var i=e.rootLeft-n,o=e.rootRight-n-r,a=i+o;return i<0||a<0?t-1:o>0||a>0?t+1:-1},e.prototype.findAdjacentTabIndexClosestToEdgeRTL_=function(t,e,n,r,i){var o=i-e.rootLeft-r-n,a=i-e.rootRight-n,s=o+a;return o>0||s>0?t+1:a<0||s<0?t-1:-1},e.prototype.getKeyFromEvent_=function(t){return Wt.has(t.key)?t.key:qt.get(t.keyCode)},e.prototype.isActivationKey_=function(t){return t===Kt.SPACE_KEY||t===Kt.ENTER_KEY},e.prototype.indexIsInRange_=function(t){return t>=0&&t\n \n
    \n ']);return Qt=function(){return t},t}function te(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ee(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var n=e.committer.element,r=t.interactionNode||n,i=e.value,o=Ie.get(i);void 0!==o&&o!==r&&(i.destroy(),i=ge.Jb),i===ge.Jb?(i=je(Object.assign({},t,{surfaceNode:n})),Ie.set(i,r),e.setValue(i)):(void 0!==t.unbounded&&i.setUnbounded(t.unbounded),void 0!==t.disabled&&i.setUnbounded(t.disabled)),!0===t.active?i.startPress():!1===t.active&&i.endPress()}}));function ze(t){return(ze="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 Me(){var t=Be(["\n ","\n .mdc-chip {\n background-color: rgba(var(--rgb-primary-text-color), 0.15);\n color: var(--primary-text-color);\n }\n "]);return Me=function(){return t},t}function Ne(){var t=Be(['\n
    \n
    \n \n \n ',"\n \n \n
    \n "]);return Ne=function(){return t},t}function Fe(){var t=Be(['\n
    \n ',"\n
    \n "]);return Fe=function(){return t},t}function Ze(){var t=Be([""]);return Ze=function(){return t},t}function Be(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function He(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ue(t,e){return(Ue=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ve(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=We(t);if(e){var i=We(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(t,e){return!e||"object"!==ze(e)&&"function"!=typeof e?Ge(t):e}function Ge(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function We(t){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qe(){qe=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!Xe(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n ',"\n
    \n
    \n =0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}Object.create;Object.create;var xn=n(18601);function En(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Sn(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 Sn(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=t[Symbol.iterator]()},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 Sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n \n
    \n
    \n
    \n
    \n ',"\n "]);return Dn=function(){return t},t}function zn(){var t=Mn(['']);return zn=function(){return t},t}function Mn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Nn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fn(t,e){for(var n=0;n=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n \n ',"\n \n \n "]);return Wr=function(){return t},t}function qr(){var t=li(["\n

    \n ",":\n

    \n
      \n ","\n
    \n "]);return qr=function(){return t},t}function Yr(){var t=li(['\n
  • \n \n ',"\n \n
  • \n "]);return Yr=function(){return t},t}function $r(){var t=li(["\n

    \n ",":\n

    \n
      \n ","\n
    \n "]);return $r=function(){return t},t}function Xr(){var t=li(['\n
  • \n \n ',"\n \n
  • \n "]);return Xr=function(){return t},t}function Jr(){var t=li(["\n

    ",":

    \n
      \n ","\n
    \n "]);return Jr=function(){return t},t}function Qr(){var t=li(['\n
  • \n \n ',"\n \n
  • \n "]);return Qr=function(){return t},t}function ti(){var t=li(["\n

    ",":

    \n
      \n ","\n
    \n "]);return ti=function(){return t},t}function ei(){var t=li(["\n
  • \n \n ',"\n \n
  • \n "]);return ei=function(){return t},t}function ni(){var t=li(["\n

    \n ",":\n

    \n
      \n ","\n
    \n "]);return ni=function(){return t},t}function ri(){var t=li(["\n

    \n ",':\n

    \n \n =0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n \n \n \n \n
    \n \n \n \n \n \n \n \n \n \n \n ']);return ji=function(){return t},t}function Ii(){var t=Wi(['
    \n If you are changing the Wi-Fi, IP or gateway addresses, you might\n lose the connection!\n
    ']);return Ii=function(){return t},t}function Di(){var t=Wi(['\n \n \n \n \n \n \n \n \n \n \n \n \n '," - Strength: ","\n \n \n "]);return Mi=function(){return t},t}function Ni(){var t=Wi(["\n \n ","\n \n "]);return Ni=function(){return t},t}function Fi(){var t=Wi(['\n ']);return Fi=function(){return t},t}function Zi(){var t=Wi(["

    Connected to: ","

    "]);return Zi=function(){return t},t}function Bi(){var t=Wi(['\n \n ','\n \n ',"\n ","\n ",'\n
    \n
    \n \n
    \n \n \n Network settings\n \n \n =0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);ne.primary?-1:1})),this._interface=Object.assign({},this._interfaces[this._curTabIndex]),t.next=7,this.updateComplete;case 7:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:function(){this._params=void 0,this._processing=!1,(0,ke.B)(this,"dialog-closed",{dialog:this.localName})}},{kind:"method",key:"render",value:function(){return this._params&&this._interface?(0,o.dy)(Ki(),!0,this.closeDialog,ve.r5M,this._interfaces.length>1?(0,o.dy)(Vi(),this._curTabIndex,this._handleTabActivated,this._interfaces.map((function(t){return(0,o.dy)(Ui(),t.interface,t.interface)}))):"",_e(this._renderTab())):(0,o.dy)(Gi())}},{kind:"method",key:"_renderTab",value:function(){var t,e,n,r,i,a=this;return(0,o.dy)(Hi(),uo.map((function(t){return a._interface[t]?a._renderIPConfiguration(t):""})),"wireless"===(null===(t=this._interface)||void 0===t?void 0:t.type)?(0,o.dy)(Bi(),(null===(e=this._interface)||void 0===e||null===(n=e.wifi)||void 0===n?void 0:n.ssid)?(0,o.dy)(Zi(),null===(r=this._interface)||void 0===r||null===(i=r.wifi)||void 0===i?void 0:i.ssid):"",this._scanForAP,this._scanning,this._scanning?(0,o.dy)(Fi()):"Scan for accesspoints",this._accessPoints&&this._accessPoints.accesspoints&&0!==this._accessPoints.accesspoints.length?(0,o.dy)(Ni(),this._accessPoints.accesspoints.filter((function(t){return t.ssid})).map((function(t){var e;return(0,o.dy)(Mi(),a._selectAP,t.ssid===(null===(e=a._wifiConfiguration)||void 0===e?void 0:e.ssid),t,t.ssid,t.mac,t.signal)}))):"",this._wifiConfiguration?(0,o.dy)(zi(),this._handleRadioValueChangedAp,this._wifiConfiguration,void 0===this._wifiConfiguration.auth||"open"===this._wifiConfiguration.auth,this._handleRadioValueChangedAp,this._wifiConfiguration,"wep"===this._wifiConfiguration.auth,this._handleRadioValueChangedAp,this._wifiConfiguration,"wpa-psk"===this._wifiConfiguration.auth,"wpa-psk"===this._wifiConfiguration.auth||"wep"===this._wifiConfiguration.auth?(0,o.dy)(Di(),this._handleInputValueChangedWifi):""):""):"",this._dirty?(0,o.dy)(Ii()):"",this.closeDialog,this._updateNetwork,!this._dirty,this._processing?(0,o.dy)(ji()):"Save")}},{kind:"method",key:"_selectAP",value:function(t){this._wifiConfiguration=t.currentTarget.ap,this._dirty=!0}},{kind:"method",key:"_scanForAP",value:(i=Yi(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._interface){t.next=2;break}return t.abrupt("return");case 2:return this._scanning=!0,t.prev=3,t.next=6,(0,Ai.Ne)(this.hass,this._interface.interface);case 6:this._accessPoints=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),(0,Ci.Ys)(this,{title:"Failed to scan for accesspoints",text:(0,Si.js)(t.t0)});case 12:return t.prev=12,this._scanning=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,this,[[3,9,12,15]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_renderIPConfiguration",value:function(t){var e,n,r;return(0,o.dy)(Li(),"IPv".concat(t.charAt(t.length-1)),this._handleRadioValueChanged,t,t,"auto"===(null===(e=this._interface[t])||void 0===e?void 0:e.method),this._handleRadioValueChanged,t,t,"static"===(null===(n=this._interface[t])||void 0===n?void 0:n.method),this._handleRadioValueChanged,t,t,"disabled"===(null===(r=this._interface[t])||void 0===r?void 0:r.method),"static"===this._interface[t].method?(0,o.dy)(Ri(),t,this._toString(this._interface[t].address),this._handleInputValueChanged,t,this._interface[t].gateway,this._handleInputValueChanged,t,this._toString(this._interface[t].nameservers),this._handleInputValueChanged):"")}},{kind:"method",key:"_toArray",value:function(t){return Array.isArray(t)&&t&&"string"==typeof t[0]&&(t=t[0]),t?"string"==typeof t?t.replace(/ /g,"").split(","):t:[]}},{kind:"method",key:"_toString",value:function(t){return t?Array.isArray(t)?t.join(", "):t:""}},{kind:"method",key:"_updateNetwork",value:(r=Yi(regeneratorRuntime.mark((function t(){var e,n,r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._processing=!0,i={},uo.forEach((function(t){var e,n,r,a,s;i[t]={method:(null===(e=o._interface[t])||void 0===e?void 0:e.method)||"auto"},"static"===(null===(n=o._interface[t])||void 0===n?void 0:n.method)&&(i[t]=Object.assign({},i[t],{address:o._toArray(null===(r=o._interface[t])||void 0===r?void 0:r.address),gateway:null===(a=o._interface[t])||void 0===a?void 0:a.gateway,nameservers:o._toArray(null===(s=o._interface[t])||void 0===s?void 0:s.nameservers)}))})),this._wifiConfiguration&&"open"!==(i=Object.assign({},i,{wifi:{ssid:this._wifiConfiguration.ssid,mode:this._wifiConfiguration.mode,auth:this._wifiConfiguration.auth||"open"}})).wifi.auth&&(i.wifi=Object.assign({},i.wifi,{psk:this._wifiConfiguration.psk})),i.enabled=void 0!==this._wifiConfiguration||"disabled"!==(null===(e=i.ipv4)||void 0===e?void 0:e.method)||"disabled"!==(null===(n=i.ipv6)||void 0===n?void 0:n.method),t.prev=5,t.next=8,(0,Ai.tJ)(this.hass,this._interface.interface,i);case 8:t.next=15;break;case 10:return t.prev=10,t.t0=t.catch(5),(0,Ci.Ys)(this,{title:"Failed to change network settings",text:(0,Si.js)(t.t0)}),this._processing=!1,t.abrupt("return");case 15:null===(r=this._params)||void 0===r||r.loadData(),this.closeDialog();case 17:case"end":return t.stop()}}),t,this,[[5,10]])}))),function(){return r.apply(this,arguments)})},{kind:"method",key:"_handleTabActivated",value:(n=Yi(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._dirty){t.next=7;break}return t.next=3,(0,Ci.g7)(this,{text:"You have unsaved changes, these will get lost if you change tabs, do you want to continue?",confirmText:"yes",dismissText:"no"});case 3:if(t.sent){t.next=7;break}return this.requestUpdate("_interface"),t.abrupt("return");case 7:this._curTabIndex=e.detail.index,this._interface=Object.assign({},this._interfaces[e.detail.index]);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{kind:"method",key:"_handleRadioValueChanged",value:function(t){var e=t.target.value,n=t.target.version;e&&this._interface&&this._interface[n].method!==e&&(this._dirty=!0,this._interface[n].method=e,this.requestUpdate("_interface"))}},{kind:"method",key:"_handleRadioValueChangedAp",value:function(t){var e=t.target.value;this._wifiConfiguration.auth=e,this._dirty=!0,this.requestUpdate("_wifiConfiguration")}},{kind:"method",key:"_handleInputValueChanged",value:function(t){var e=t.target.value,n=t.target.version,r=t.target.id;e&&this._interface&&this._toString(this._interface[n][r])!==this._toString(e)&&(this._dirty=!0,this._interface[n][r]=e)}},{kind:"method",key:"_handleInputValueChangedWifi",value:function(t){var e=t.target.value,n=t.target.id;e&&this._wifiConfiguration&&this._wifiConfiguration[n]!==e&&(this._dirty=!0,this._wifiConfiguration[n]=e)}},{kind:"get",static:!0,key:"styles",value:function(){return[Oi.yu,(0,o.iv)(Ti())]}}]}}),o.oi)},1822:function(t,e,n){"use strict";n.r(e);n(30573),n(32358),n(81689);var r=n(55317),i=n(99722),o=(n(35602),n(92923)),a=(n(52039),n(41682)),s=n(63864);function c(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,i)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,a,s,"throw",t)}a(void 0)}))}}var u=function(){var t=l(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,s.I)(e.config.version,2021,2,4)){t.next=4;break}return t.next=3,e.callWS({type:"supervisor/api",endpoint:"/docker/registries",method:"get"});case 3:return t.abrupt("return",t.sent);case 4:return t.t0=a.rY,t.next=7,e.callApi("GET","hassio/docker/registries");case 7:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=function(){var t=l(regeneratorRuntime.mark((function t(e,n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,s.I)(e.config.version,2021,2,4)){t.next=4;break}return t.next=3,e.callWS({type:"supervisor/api",endpoint:"/docker/registries",method:"post",data:n});case 3:return t.abrupt("return");case 4:return t.next=6,e.callApi("POST","hassio/docker/registries",n);case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),d=function(){var t=l(regeneratorRuntime.mark((function t(e,n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,s.I)(e.config.version,2021,2,4)){t.next=4;break}return t.next=3,e.callWS({type:"supervisor/api",endpoint:"/docker/registries/".concat(n),method:"delete"});case 3:return t.abrupt("return");case 4:return t.next=6,e.callApi("DELETE","hassio/docker/registries/".concat(n));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),p=n(26765),h=n(11654);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(){var t=E(['\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 mwc-icon-button {\n color: var(--error-color);\n margin: -10px;\n }\n mwc-list-item {\n cursor: default;\n }\n mwc-list-item span[slot="secondary"] {\n color: var(--secondary-text-color);\n }\n ha-paper-dropdown-menu {\n display: block;\n }\n ']);return y=function(){return t},t}function v(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,i)}function b(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){v(o,r,i,a,s,"next",t)}function s(t){v(o,r,i,a,s,"throw",t)}a(void 0)}))}}function g(){var t=E(["\n \n No registries configured\n \n "]);return g=function(){return t},t}function w(){var t=E(['\n \n ','\n Username: ',"\n \n \n \n\n \n
    \n ',"\n
    \n \n "]);return x=function(){return t},t}function E(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){return(A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=T(t);if(e){var i=T(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?P(t):e}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function R(){R=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!I(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n"]);return d=function(){return t},t}function p(){var t=v(["\n \n No repositories\n \n "]);return p=function(){return t},t}function h(){var t=v(['\n \n \n
    ',"
    \n
    ","
    \n
    ","
    \n
    \n ',"
    "]);return m=function(){return t},t}function y(){var t=v(["\n \n ','\n
    \n ','\n
    \n \n
    \n
    \n \n Close\n \n \n ']);return y=function(){return t},t}function v(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function b(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,i)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){b(o,r,i,a,s,"next",t)}function s(t){b(o,r,i,a,s,"throw",t)}a(void 0)}))}}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=S(t);if(e){var i=S(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"!==u(e)&&"function"!=typeof e?E(t):e}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function A(){A=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!P(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n \n \n Upload snapshot\n \n \n =0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,i[o])(s)||s);t=c.element,this.addElementPlacement(t,e),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function d(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof g?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(r){u(o[0][3],r)}var n}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function k(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=m(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var E=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&p(e,t,n);return E(e,t),e}function A(t){return t&&t.__esModule?t:{default:t}}function C(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function O(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},7151:function(t,e,n){"use strict";var r=n(39460),i=n(16723);"undefined"==typeof Intl&&("undefined"!=typeof window?Object.defineProperty(window,"Intl",{value:{}}):"undefined"!=typeof global&&Object.defineProperty(global,"Intl",{value:{}})),i.shouldPolyfill()&&Object.defineProperty(Intl,"getCanonicalLocales",{value:r.getCanonicalLocales,writable:!0,enumerable:!1,configurable:!0})},16723:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldPolyfill=void 0,e.shouldPolyfill=function(){return"undefined"==typeof Intl||!("getCanonicalLocales"in Intl)||"x-private"===Intl.getCanonicalLocales("und-x-private")[0]}},73887:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canonicalizeUnicodeLocaleId=e.canonicalizeUnicodeLanguageId=void 0;var r=n(86576),i=n(10879),o=n(36838),a=r.__importStar(n(16085)),s=n(55946);function c(t){for(var e={},n=[],r=0,i=t;re[0]?1:0}function u(t,e){return t.typee.type?1:0}function f(t,e){for(var n=r.__spreadArrays(t),i=0,o=e;i-1&&(v=w)}}v&&(e.region=v),e.region=e.region.toUpperCase()}if(e.script&&(e.script=e.script[0].toUpperCase()+e.script.slice(1).toLowerCase(),i.scriptAlias[e.script]&&(e.script=i.scriptAlias[e.script])),e.variants.length){for(var _=0;_=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,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function o(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]:window.document,e=t.activeElement,n=[];if(!e)return n;for(;e&&(n.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return n},d=function(t){var e=f();if(!e.length)return!1;var n=e[e.length-1],r=new Event("check-if-focused",{bubbles:!0,composed:!0}),i=[],o=function(t){i=t.composedPath()};return document.body.addEventListener("check-if-focused",o),n.dispatchEvent(r),document.body.removeEventListener("check-if-focused",o),-1!==i.indexOf(t)}},30573: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,n,i){var o,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}Object.create;Object.create;var o=n(99722);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)}Object.create;Object.create;function s(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([':host{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"}']);return s=function(){return t},t}var c=(0,o.iv)(s());function l(t){return(l="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 u(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([""]);return u=function(){return t},t}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([(0,o.Mo)("mwc-icon")],v);n(30747);var b=n(98734),g=n(81471);function w(t){return(w="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 _(){var t=S(['\n \n ',"\n "]);return _=function(){return t},t}function k(){var t=S(['\n \n ',"\n ",'\n \n \n ','\n \n \n ','\n \n \n \n \n \n ',"\n \n \n "]);return k=function(){return t},t}function x(){var t=S(['']);return x=function(){return t},t}function E(){var t=S([""]);return E=function(){return t},t}function S(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){for(var n=0;n=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}Object.create;Object.create;var o=n(99722),a=(n(30747),n(98734));function s(t){return(s="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 c(){var t=u(['\n ','\n ','\n \n \n \n ']);return c=function(){return t},t}function l(){var t=u(['\n \n ']);return l=function(){return t},t}function u(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;ni{position:absolute;top:0;padding-top:inherit}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}']);return b=function(){return t},t}i([(0,o.Cb)({type:Boolean,reflect:!0})],v.prototype,"disabled",void 0),i([(0,o.Cb)({type:String})],v.prototype,"icon",void 0),i([(0,o.Cb)({type:String})],v.prototype,"label",void 0),i([(0,o.IO)("button")],v.prototype,"buttonElement",void 0),i([(0,o.GC)("mwc-ripple")],v.prototype,"ripple",void 0),i([(0,o.sz)()],v.prototype,"shouldRenderRipple",void 0),i([(0,o.hO)({passive:!0})],v.prototype,"handleRippleMouseDown",null),i([(0,o.hO)({passive:!0})],v.prototype,"handleRippleTouchStart",null);var g=(0,o.iv)(b());function w(t){return(w="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 _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==w(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}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&&k(t,e)}(n,t);var e=x(n);function n(){return _(this,n),e.apply(this,arguments)}return n}(v);A.styles=g,A=i([(0,o.Mo)("mwc-icon-button")],A)},81689:function(t,e,n){"use strict";var r=n(36220),i=n(99722),o=(n(30747),n(14114)),a=n(98734),s=n(81471);function c(t){return(c="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 l(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){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=t[Symbol.iterator]()},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);n\n \n \n \n \n \n ']);return f=function(){return t},t}function d(){var t=_([""]);return d=function(){return t},t}function p(){var t=_(['\n \n ',"\n "]);return p=function(){return t},t}function h(){var t=_(['\n \n \n ']);return h=function(){return t},t}function m(){var t=_(['\n \n \n ']);return m=function(){return t},t}function y(){var t=_(['
    ']);return y=function(){return t},t}function v(){var t=_(["\n \n "]);return v=function(){return t},t}function b(){var t=_(["\n ","\n ","\n ","\n ",""]);return b=function(){return t},t}function g(){var t=_([""]);return g=function(){return t},t}function w(){var t=_([""]);return w=function(){return t},t}function _(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(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=t[Symbol.iterator]()},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 K(t,e){if(t){if("string"==typeof t)return G(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)?G(t,e):void 0}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&this.adapter.setTabIndexForElementIndex(e,0)}},{key:"handleFocusOut",value:function(t,e){var n=this;e>=0&&this.adapter.setTabIndexForElementIndex(e,-1),setTimeout((function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedItem_()}),0)}},{key:"handleKeydown",value:function(t,e,n){var r="ArrowLeft"===Z(t),i="ArrowUp"===Z(t),o="ArrowRight"===Z(t),a="ArrowDown"===Z(t),s="Home"===Z(t),c="End"===Z(t),l="Enter"===Z(t),u="Spacebar"===Z(t);if(this.adapter.isRootFocused())i||c?(t.preventDefault(),this.focusLastElement()):(a||s)&&(t.preventDefault(),this.focusFirstElement());else{var f=this.adapter.getFocusedElementIndex();if(!(-1===f&&(f=n)<0)){var d;if(this.isVertical_&&a||!this.isVertical_&&o)this.preventDefaultEvent(t),d=this.focusNextElement(f);else if(this.isVertical_&&i||!this.isVertical_&&r)this.preventDefaultEvent(t),d=this.focusPrevElement(f);else if(s)this.preventDefaultEvent(t),d=this.focusFirstElement();else if(c)this.preventDefaultEvent(t),d=this.focusLastElement();else if((l||u)&&e){var p=t.target;if(p&&"A"===p.tagName&&l)return;this.preventDefaultEvent(t),this.setSelectedIndexOnAction_(f,!0)}this.focusedItemIndex_=f,void 0!==d&&(this.setTabindexAtIndex_(d),this.focusedItemIndex_=d)}}}},{key:"handleSingleSelection",value:function(t,e,n){t!==B.KT.UNSET_INDEX&&(this.setSelectedIndexOnAction_(t,e,n),this.setTabindexAtIndex_(t),this.focusedItemIndex_=t)}},{key:"focusNextElement",value:function(t){var e=t+1;if(e>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return t;e=0}return this.adapter.focusItemAtIndex(e),e}},{key:"focusPrevElement",value:function(t){var e=t-1;if(e<0){if(!this.wrapFocus_)return t;e=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(e),e}},{key:"focusFirstElement",value:function(){return this.adapter.focusItemAtIndex(0),0}},{key:"focusLastElement",value:function(){var t=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(t),t}},{key:"setEnabled",value:function(t,e){this.isIndexValid_(t)&&this.adapter.setDisabledStateForElementIndex(t,!e)}},{key:"preventDefaultEvent",value:function(t){var e=t.target,n="".concat(e.tagName).toLowerCase();-1===Q.indexOf(n)&&t.preventDefault()}},{key:"setSingleSelectionAtIndex_",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.selectedIndex_!==t&&(this.selectedIndex_!==B.KT.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),e&&this.adapter.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!0),this.setAriaForSingleSelectionAtIndex_(t),this.selectedIndex_=t,this.adapter.notifySelected(t))}},{key:"setMultiSelectionAtIndex_",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=et(this.selectedIndex_),r=J(n,t);if(r.removed.length||r.added.length){var i,o=V(r.removed);try{for(o.s();!(i=o.n()).done;){var a=i.value;e&&this.adapter.setSelectedStateForElementIndex(a,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(a,!1)}}catch(u){o.e(u)}finally{o.f()}var s,c=V(r.added);try{for(c.s();!(s=c.n()).done;){var l=s.value;e&&this.adapter.setSelectedStateForElementIndex(l,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(l,!0)}}catch(u){c.e(u)}finally{c.f()}this.selectedIndex_=t,this.adapter.notifySelected(t,r)}}},{key:"setAriaForSingleSelectionAtIndex_",value:function(t){this.selectedIndex_===B.KT.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(t,B.j2.ARIA_CURRENT));var e=null!==this.ariaCurrentAttrValue_,n=e?B.j2.ARIA_CURRENT:B.j2.ARIA_SELECTED;this.selectedIndex_!==B.KT.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false");var r=e?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(t,n,r)}},{key:"setTabindexAtIndex_",value:function(t){this.focusedItemIndex_===B.KT.UNSET_INDEX&&0!==t?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==t&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(t,0)}},{key:"setTabindexToFirstSelectedItem_",value:function(){var t=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==B.KT.UNSET_INDEX?t=this.selectedIndex_:tt(this.selectedIndex_)&&this.selectedIndex_.size>0&&(t=Math.min.apply(Math,U(this.selectedIndex_))),this.setTabindexAtIndex_(t)}},{key:"isIndexValid_",value:function(t){if(t instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===t.size)return!0;var e,n=!1,r=V(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(n=this.isIndexInRange_(i))break}}catch(o){r.e(o)}finally{r.f()}return n}if("number"==typeof t){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return t===B.KT.UNSET_INDEX||this.isIndexInRange_(t)}return!1}},{key:"isIndexInRange_",value:function(t){var e=this.adapter.getListItemCount();return t>=0&&t2&&void 0!==arguments[2])||arguments[2],r=!1;r=void 0===e?!this.adapter.getSelectedStateForElementIndex(t):e;var i=et(this.selectedIndex_);r?i.add(t):i.delete(t),this.setMultiSelectionAtIndex_(i,n)}}])&&W(e.prototype,n),r&&W(e,r),o}(l.K);function rt(t){return(rt="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 it(){var t=at(["\n ","\n "]);return it=function(){return t},t}function ot(){var t=at(["\n \x3c!-- @ts-ignore --\x3e\n 1&&void 0!==arguments[1]?arguments[1]:50;return function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];clearTimeout(e),e=setTimeout((function(){t(r)}),n)}}(t.layout.bind(mt(t)));return t.debouncedLayout=function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];bt.call(mt(t)),e(n)},t}return e=u,(n=[{key:"_getUpdateComplete",value:(o=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ft(yt(u.prototype),"_getUpdateComplete",this).call(this);case 2:return t.next=4,this.itemsReady;case 4:case"end":return t.stop()}}),t,this)})),a=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){lt(i,n,r,a,s,"next",t)}function s(t){lt(i,n,r,a,s,"throw",t)}a(void 0)}))},function(){return a.apply(this,arguments)})},{key:"updateItems",value:function(){var t,e=this,n=[],r=st(this.assignedElements);try{for(r.s();!(t=r.n()).done;){var i=t.value;vt(i)&&(n.push(i),i._managingList=this),i.hasAttribute("divider")&&!i.hasAttribute("role")&&i.setAttribute("role","separator")}}catch(c){r.e(c)}finally{r.f()}this.items_=n;var o=new Set;if(this.items_.forEach((function(t,n){e.itemRoles?t.setAttribute("role",e.itemRoles):t.removeAttribute("role"),t.selected&&o.add(n)})),this.multi)this.select(o);else{var a=o.size?o.entries().next().value[1]:-1;this.select(a)}var s=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(s)}},{key:"render",value:function(){var t=null===this.innerRole?void 0:this.innerRole,e=null===this.innerAriaLabel?void 0:this.innerAriaLabel,n=this.rootTabbable?"0":"-1";return(0,i.dy)(ot(),n,(0,c.o)(t),(0,c.o)(e),this.onKeydown,this.onFocusIn,this.onFocusOut,this.onRequestSelected,this.onListItemConnected,this.renderPlaceholder())}},{key:"renderPlaceholder",value:function(){return void 0!==this.emptyMessage&&0===this.assignedElements.length?(0,i.dy)(it(),this.emptyMessage):null}},{key:"firstUpdated",value:function(){ft(yt(u.prototype),"firstUpdated",this).call(this),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}},{key:"onFocusIn",value:function(t){if(this.mdcFoundation&&this.mdcRoot){var e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusIn(t,e)}}},{key:"onFocusOut",value:function(t){if(this.mdcFoundation&&this.mdcRoot){var e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusOut(t,e)}}},{key:"onKeydown",value:function(t){if(this.mdcFoundation&&this.mdcRoot){var e=this.getIndexOfTarget(t),n=t.target,r=vt(n);this.mdcFoundation.handleKeydown(t,r,e)}}},{key:"onRequestSelected",value:function(t){if(this.mdcFoundation){var e=this.getIndexOfTarget(t);if(-1===e&&(this.layout(),-1===(e=this.getIndexOfTarget(t))))return;if(this.items[e].disabled)return;var n=t.detail.selected,r=t.detail.source;this.mdcFoundation.handleSingleSelection(e,"interaction"===r,n),t.stopPropagation()}}},{key:"getIndexOfTarget",value:function(t){var e,n=this.items,r=st(t.composedPath());try{for(r.s();!(e=r.n()).done;){var i=e.value,o=-1;if((0,s.OE)(i)&&vt(i)&&(o=n.indexOf(i)),-1!==o)return o}}catch(a){r.e(a)}finally{r.f()}return-1}},{key:"createAdapter",value:function(){var t=this;return this.mdcAdapter={getListItemCount:function(){return t.mdcRoot?t.items.length:0},getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:function(e,n){if(!t.mdcRoot)return"";var r=t.items[e];return r?r.getAttribute(n):""},setAttributeForElementIndex:function(e,n,r){if(t.mdcRoot){var i=t.items[e];i&&i.setAttribute(n,r)}},focusItemAtIndex:function(e){var n=t.items[e];n&&n.focus()},setTabIndexForElementIndex:function(e,n){var r=t.items[e];r&&(r.tabindex=n)},notifyAction:function(e){var n={bubbles:!0,composed:!0};n.detail={index:e};var r=new CustomEvent("action",n);t.dispatchEvent(r)},notifySelected:function(e,n){var r={bubbles:!0,composed:!0};r.detail={index:e,diff:n};var i=new CustomEvent("selected",r);t.dispatchEvent(i)},isFocusInsideList:function(){return(0,s.WU)(t)},isRootFocused:function(){var e=t.mdcRoot;return e.getRootNode().activeElement===e},setDisabledStateForElementIndex:function(e,n){var r=t.items[e];r&&(r.disabled=n)},getDisabledStateForElementIndex:function(e){var n=t.items[e];return!!n&&n.disabled},setSelectedStateForElementIndex:function(e,n){var r=t.items[e];r&&(r.selected=n)},getSelectedStateForElementIndex:function(e){var n=t.items[e];return!!n&&n.selected},setActivatedStateForElementIndex:function(e,n){var r=t.items[e];r&&(r.activated=n)}},this.mdcAdapter}},{key:"selectUi",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.items[t];n&&(n.selected=!0,n.activated=e)}},{key:"deselectUi",value:function(t){var e=this.items[t];e&&(e.selected=!1,e.activated=!1)}},{key:"select",value:function(t){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(t)}},{key:"toggle",value:function(t,e){this.multi&&this.mdcFoundation.toggleMultiAtIndex(t,e)}},{key:"onListItemConnected",value:function(t){var e=t.target;this.layout(-1===this.items.indexOf(e))}},{key:"layout",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&this.updateItems();var e,n=this.items[0],r=st(this.items);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.tabindex=-1}}catch(o){r.e(o)}finally{r.f()}n&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=n):n.tabindex=0),this.itemsReadyResolver()}},{key:"getFocusedItemIndex",value:function(){if(!this.mdcRoot)return-1;if(!this.items.length)return-1;var t=(0,s.Mh)();if(!t.length)return-1;for(var e=t.length-1;e>=0;e--){var n=t[e];if(vt(n))return this.items.indexOf(n)}return-1}},{key:"focusItemAtIndex",value:function(t){var e,n=st(this.items);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(0===r.tabindex){r.tabindex=-1;break}}}catch(i){n.e(i)}finally{n.f()}this.items[t].tabindex=0,this.items[t].focus()}},{key:"focus",value:function(){var t=this.mdcRoot;t&&t.focus()}},{key:"blur",value:function(){var t=this.mdcRoot;t&&t.blur()}},{key:"assignedElements",get:function(){var t=this.slotElement;return t?t.assignedNodes({flatten:!0}).filter(s.OE):[]}},{key:"items",get:function(){return this.items_}},{key:"selected",get:function(){var t=this.index;if(!tt(t))return-1===t?null:this.items[t];var e,n=[],r=st(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(this.items[i])}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"index",get:function(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}}])&&ut(e.prototype,n),r&&ut(e,r),u}(o.H);function wt(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['@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}}:host{display:block}.mdc-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-list:focus{outline:none}.mdc-list-item{height:48px}.mdc-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc(100% - var(--mdc-list-inset-margin, 72px))}.mdc-list-group[dir=rtl] .mdc-list ::slotted([divider][inset]),[dir=rtl] .mdc-list-group .mdc-list ::slotted([divider][inset]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-list ::slotted([divider][inset][padded]){width:calc(100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px))}.mdc-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-list--two-line.mdc-list--dense ::slotted([mwc-list-item]),.mdc-list--avatar-list.mdc-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-list--avatar-list.mdc-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-list--dense ::slotted(.mdc-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list--dense ::slotted(.mdc-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list--dense ::slotted(.mdc-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}']);return wt=function(){return t},t}(0,r.gn)([(0,i.Cb)({type:String})],gt.prototype,"emptyMessage",void 0),(0,r.gn)([(0,i.IO)(".mdc-list")],gt.prototype,"mdcRoot",void 0),(0,r.gn)([(0,i.IO)("slot")],gt.prototype,"slotElement",void 0),(0,r.gn)([(0,i.Cb)({type:Boolean}),(0,a.P)((function(t){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(t)}))],gt.prototype,"activatable",void 0),(0,r.gn)([(0,i.Cb)({type:Boolean}),(0,a.P)((function(t,e){this.mdcFoundation&&this.mdcFoundation.setMulti(t),void 0!==e&&this.layout()}))],gt.prototype,"multi",void 0),(0,r.gn)([(0,i.Cb)({type:Boolean}),(0,a.P)((function(t){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(t)}))],gt.prototype,"wrapFocus",void 0),(0,r.gn)([(0,i.Cb)({type:String}),(0,a.P)((function(t,e){void 0!==e&&this.updateItems()}))],gt.prototype,"itemRoles",void 0),(0,r.gn)([(0,i.Cb)({type:String})],gt.prototype,"innerRole",void 0),(0,r.gn)([(0,i.Cb)({type:String})],gt.prototype,"innerAriaLabel",void 0),(0,r.gn)([(0,i.Cb)({type:Boolean})],gt.prototype,"rootTabbable",void 0),(0,r.gn)([(0,i.Cb)({type:Boolean,reflect:!0}),(0,a.P)((function(t){var e=this.slotElement;if(t&&e){var n=(0,s.f6)(e,'[tabindex="0"]');this.previousTabindex=n,n&&n.setAttribute("tabindex","-1")}else!t&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)}))],gt.prototype,"noninteractive",void 0);var _t=(0,i.iv)(wt());function kt(t){return(kt="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 xt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Et(t,e){return(Et=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function St(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ct(t);if(e){var i=Ct(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return At(this,n)}}function At(t,e){return!e||"object"!==kt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ct(t){return(Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ot=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&&Et(t,e)}(n,t);var e=St(n);function n(){return xt(this,n),e.apply(this,arguments)}return n}(gt);Ot.styles=_t,Ot=(0,r.gn)([(0,i.Mo)("mwc-list")],Ot)},36220: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)}n.d(e,{gn:function(){return i}});function i(t,e,n,i){var o,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}Object.create;Object.create},30747: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,n,i){var o,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}Object.create;Object.create;var o=n(99722),a=n(78220),s=n(9451),c=n(81471),l=n(79865);function u(t){return(u="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 f(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n
    ']);return f=function(){return t},t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n0&&f.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState_():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers_(t)),n.wasElementMadeActive=this.checkElementMadeActive_(t),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame((function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive_(t),n.wasElementMadeActive&&e.animateActivation_()),n.wasElementMadeActive||(e.activationState_=e.defaultActivationState_())})))}}},e.prototype.checkElementMadeActive_=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation_=function(){var t=this,n=e.strings,r=n.VAR_FG_TRANSLATE_START,i=n.VAR_FG_TRANSLATE_END,o=e.cssClasses,a=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var l="",u="";if(!this.adapter.isUnbounded()){var f=this.getFgTranslationCoordinates_(),d=f.startPoint,p=f.endPoint;l=d.x+"px, "+d.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(r,l),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer_=setTimeout((function(){return t.activationTimerCallback_()}),c)},e.prototype.getFgTranslationCoordinates_=function(){var t,e=this.activationState_,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?(0,c.Y)(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:t.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},e.prototype.runDeactivationUXLogicIfReady_=function(){var t=this,n=e.cssClasses.FG_DEACTIVATION,r=this.activationState_,i=r.hasDeactivationUXRun,o=r.isActivated;(i||!o)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout((function(){t.adapter.removeClass(n)}),s.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses_=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState_=function(){var t=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout((function(){return t.previousActivationEvent_=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivate_=function(){var t=this,e=this.activationState_;if(e.isActivated){var n=(0,r.pi)({},e);e.isProgrammatic?(requestAnimationFrame((function(){return t.animateDeactivation_(n)})),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame((function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(n),t.resetActivationState_()})))}},e.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady_()},e.prototype.layoutInternal_=function(){var t=this;this.frame_=this.adapter.computeBoundingRect();var n=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(t.frame_.width,2)+Math.pow(t.frame_.height,2))+e.numbers.PADDING;var r=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize_=r-1:this.initialSize_=r,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},e.prototype.updateLayoutCssVars_=function(){var t=e.strings,n=t.VAR_FG_SIZE,r=t.VAR_LEFT,i=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize_+"px"),this.adapter.updateCssVariable(o,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(r,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords_.top+"px"))},e}(i.K)},84445:function(t,e,n){"use strict";var r;function i(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof r&&!e)return r;if(!(i&&"function"==typeof i.supports))return!1;var o=i.supports("--css-vars","yes"),a=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=o||a,e||(r=n),n}function o(t,e,n){if(!t)return{x:0,y:0};var r,i,o=e.x,a=e.y,s=o+n.left,c=a+n.top;if("touchstart"===t.type){var l=t;r=l.changedTouches[0].pageX-s,i=l.changedTouches[0].pageY-c}else{var u=t;r=u.pageX-s,i=u.pageY-c}return{x:r,y:i}}n.d(e,{x:function(){return i},Y:function(){return o}})},8621:function(t,e,n){"use strict";n.d(e,{G:function(){return m}});n(51309);var r={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},i={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},o={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},a=/[a-z0-9*]/,s=/U\+/,c=/^arrow/,l=/^space(bar)?/,u=/^escape$/;function f(t,e){var n="";if(t){var r=t.toLowerCase();" "===r||l.test(r)?n="space":u.test(r)?n="esc":1==r.length?e&&!a.test(r)||(n=r):n=c.test(r)?r.replace("arrow",""):"multiply"==r?"*":r}return n}function d(t,e){return t.key?f(t.key,e):t.detail&&t.detail.key?f(t.detail.key,e):(n=t.keyIdentifier,o="",n&&(n in r?o=r[n]:s.test(n)?(n=parseInt(n.replace("U+","0x"),16),o=String.fromCharCode(n).toLowerCase()):o=n.toLowerCase()),o||function(t){var e="";return Number(t)&&(e=t>=65&&t<=90?String.fromCharCode(32+t):t>=112&&t<=123?"f"+(t-112+1):t>=48&&t<=57?String(t-48):t>=96&&t<=105?String(t-96):i[t]),e}(t.keyCode)||"");var n,o}function p(t,e){return d(e,t.hasModifiers)===t.key&&(!t.hasModifiers||!!e.shiftKey==!!t.shiftKey&&!!e.ctrlKey==!!t.ctrlKey&&!!e.altKey==!!t.altKey&&!!e.metaKey==!!t.metaKey)}function h(t){return t.trim().split(" ").map((function(t){return function(t){return 1===t.length?{combo:t,key:t,event:"keydown"}:t.split("+").reduce((function(t,e){var n=e.split(":"),r=n[0],i=n[1];return r in o?(t[o[r]]=!0,t.hasModifiers=!0):(t.key=r,t.event=i||"keydown"),t}),{combo:t.split(":").shift()})}(t)}))}var m={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(t,e){this._imperativeKeyBindings[t]=e,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(t,e){for(var n=h(e),r=0;r\n \n\n\n \n']);return r=function(){return t},t}var i=(0,n(50856).d)(r());i.setAttribute("style","display: none;"),document.head.appendChild(i.content);var o=document.createElement("style");o.textContent="[hidden] { display: none !important; }",document.head.appendChild(o)},21006:function(t,e,n){"use strict";n.d(e,{V:function(){return r}});n(51309);var r={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},detached:function(){}}},63207:function(t,e,n){"use strict";n(65660),n(15112);var r=n(67139),i=n(18149),o=n(50856),a=n(51309);function s(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n \n"]);return s=function(){return t},t}(0,r.k)({_template:(0,o.d)(s()),is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:a.XY.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(t){var e=(t||"").split(":");this._iconName=e.pop(),this._iconsetName=e.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(t){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&(0,i.vz)(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,(0,i.vz)(this.root).appendChild(this._img))}})},36280:function(t,e,n){"use strict";n(51309);var r=n(67139),i=n(50856);function o(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n \n
    [[_text]]
    \n']);return o=function(){return t},t}var a=(0,r.k)({_template:(0,i.d)(o()),is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text:{type:String,value:""}},created:function(){a.instance||(a.instance=this),document.body.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(t){this._text="",this.async((function(){this._text=t}),100)},_onIronAnnounce:function(t){t.detail&&t.detail.text&&this.announce(t.detail.text)}});a.instance=null,a.requestAvailability=function(){a.instance||(a.instance=document.createElement("iron-a11y-announcer")),document.body.appendChild(a.instance)};var s=n(98235),c=n(18149);function l(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n \n \n']);return l=function(){return t},t}(0,r.k)({_template:(0,i.d)(l()),is:"iron-input",behaviors:[s.x],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){a.requestAvailability(),this._previousValidInput="",this._patternAlreadyChecked=!1},attached:function(){this._observer=(0,c.vz)(this).observeNodes(function(t){this._initSlottedInput()}.bind(this))},detached:function(){this._observer&&((0,c.vz)(this).unobserveNodes(this._observer),this._observer=null)},get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0],this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value),this.fire("iron-input-ready")},get _patternRegExp(){var t;if(this.allowedPattern)t=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case"number":t=/[0-9.,e-]/}return t},_bindValueChanged:function(t,e){e&&(void 0===t?e.value=null:t!==e.value&&(this.inputElement.value=t),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:t}))},_onInput:function(){this.allowedPattern&&!this._patternAlreadyChecked&&(this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput));this.bindValue=this._previousValidInput=this.inputElement.value,this._patternAlreadyChecked=!1},_isPrintable:function(t){var e=8==t.keyCode||9==t.keyCode||13==t.keyCode||27==t.keyCode,n=19==t.keyCode||20==t.keyCode||45==t.keyCode||46==t.keyCode||144==t.keyCode||145==t.keyCode||t.keyCode>32&&t.keyCode<41||t.keyCode>111&&t.keyCode<124;return!(e||0==t.charCode&&n)},_onKeypress:function(t){if(this.allowedPattern||"number"===this.inputElement.type){var e=this._patternRegExp;if(e&&!(t.metaKey||t.ctrlKey||t.altKey)){this._patternAlreadyChecked=!0;var n=String.fromCharCode(t.charCode);this._isPrintable(t)&&!e.test(n)&&(t.preventDefault(),this._announceInvalidCharacter("Invalid character "+n+" not entered."))}}},_checkPatternValidity:function(){var t=this._patternRegExp;if(!t)return!0;for(var e=0;e0&&(this.selectedValues=this.selectedItems.map((function(t){return this._indexToValue(this.indexOf(t))}),this).filter((function(t){return null!=t}),this)):i.P._updateAttrForSelected.apply(this)},_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},_selectMulti:function(t){t=t||[];var e=(this._valuesToItems(t)||[]).filter((function(t){return null!=t}));this._selection.clear(e);for(var n=0;n=0}},{key:"setItemSelected",value:function(t,e){if(null!=t&&e!==this.isSelected(t)){if(e)this.selection.push(t);else{var n=this.selection.indexOf(t);n>=0&&this.selection.splice(n,1)}this.selectCallback&&this.selectCallback(t,e)}}},{key:"select",value:function(t){this.multi?this.toggle(t):this.get()!==t&&(this.setItemSelected(this.get(),!1),this.setItemSelected(t,!0))}},{key:"toggle",value:function(t){this.setItemSelected(t,!this.isSelected(t))}}])&&o(e.prototype,n),r&&o(e,r),t}(),s={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this),this._selection=new a(this._applySelection.bind(this))},attached:function(){this._observer=this._observeItems(this),this._addListener(this.activateEvent)},detached:function(){this._observer&&(0,r.vz)(this).unobserveNodes(this._observer),this._removeListener(this.activateEvent)},indexOf:function(t){return this.items?this.items.indexOf(t):-1},select:function(t){this.selected=t},selectPrevious:function(){var t=this.items.length,e=t-1;void 0!==this.selected&&(e=(Number(this._valueToIndex(this.selected))-1+t)%t),this.selected=this._indexToValue(e)},selectNext:function(){var t=0;void 0!==this.selected&&(t=(Number(this._valueToIndex(this.selected))+1)%this.items.length),this.selected=this._indexToValue(t)},selectIndex:function(t){this.select(this._indexToValue(t))},forceSynchronousItemUpdate:function(){this._observer&&"function"==typeof this._observer.flush?this._observer.flush():this._updateItems()},get _shouldUpdateSelection(){return null!=this.selected},_checkFallback:function(){this._updateSelected()},_addListener:function(t){this.listen(this,t,"_activateHandler")},_removeListener:function(t){this.unlisten(this,t,"_activateHandler")},_activateEventChanged:function(t,e){this._removeListener(e),this._addListener(t)},_updateItems:function(){var t=(0,r.vz)(this).queryDistributedElements(this.selectable||"*");t=Array.prototype.filter.call(t,this._bindFilterItem),this._setItems(t)},_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},_updateSelected:function(){this._selectSelected(this.selected)},_selectSelected:function(t){if(this.items){var e=this._valueToItem(this.selected);e?this._selection.select(e):this._selection.clear(),this.fallbackSelection&&this.items.length&&void 0===this._selection.get()&&(this.selected=this.fallbackSelection)}},_filterItem:function(t){return!this._excludedLocalNames[t.localName]},_valueToItem:function(t){return null==t?null:this.items[this._valueToIndex(t)]},_valueToIndex:function(t){if(!this.attrForSelected)return Number(t);for(var e,n=0;e=this.items[n];n++)if(this._valueForItem(e)==t)return n},_indexToValue:function(t){if(!this.attrForSelected)return t;var e=this.items[t];return e?this._valueForItem(e):void 0},_valueForItem:function(t){if(!t)return null;if(!this.attrForSelected){var e=this.indexOf(t);return-1===e?null:e}var n=t[(0,i.z)(this.attrForSelected)];return null!=n?n:t.getAttribute(this.attrForSelected)},_applySelection:function(t,e){this.selectedClass&&this.toggleClass(this.selectedClass,e,t),this.selectedAttribute&&this.toggleAttribute(this.selectedAttribute,e,t),this._selectionChange(),this.fire("iron-"+(e?"select":"deselect"),{item:t})},_selectionChange:function(){this._setSelectedItem(this._selection.get())},_observeItems:function(t){return(0,r.vz)(t).observeNodes((function(t){this._updateItems(),this._updateSelected(),this.fire("iron-items-changed",t,{bubbles:!1,cancelable:!1})}))},_activateHandler:function(t){for(var e=t.target,n=this.items;e&&e!=this;){var r=n.indexOf(e);if(r>=0){var i=this._indexToValue(r);return void this._itemActivate(i,e)}e=e.parentNode}},_itemActivate:function(t,e){this.fire("iron-activate",{selected:t,item:e},{cancelable:!0}).defaultPrevented||this.select(t)}}},98235:function(t,e,n){"use strict";n.d(e,{x:function(){return o}});n(51309);var r=n(15112),i=null,o={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){i=new r.P({type:"validator"})},_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},get _validator(){return i&&i.byKey(this.validator)},hasValidator:function(){return null!=this._validator},validate:function(t){return void 0===t&&void 0!==this.value?this.invalid=!this._getValidity(this.value):this.invalid=!this._getValidity(t),!this.invalid},_getValidity:function(t){return!this.hasValidator()||this._validator.validate(t)}}},50611:function(t,e,n){"use strict";n.d(e,{K:function(){return u}});n(51309);var r=n(21006),i=n(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(t){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")}},a=[r.V,i.x,o],s=n(49075),c=n(84938),l={_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)}},u=[s.B,a,l]},49075:function(t,e,n){"use strict";n.d(e,{S:function(){return a},B:function(){return s}});n(51309);var r=n(51644),i=n(26110),o=n(84938),a={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(t){t&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=t)},_createRipple:function(){var t=o.o._createRipple();return t.id="ink",t.setAttribute("center",""),t.classList.add("circle"),t}},s=[r.P,i.a,o.o,a]},84938:function(t,e,n){"use strict";n.d(e,{o:function(){return o}});n(51309),n(60748);var r=n(51644),i=n(18149),o={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(t){r.$._downHandler.call(this,t),this.pressed&&this.ensureRipple(t)},ensureRipple:function(t){if(!this.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var e=this._rippleContainer||this.root;if(e&&(0,i.vz)(e).appendChild(this._ripple),t){var n=(0,i.vz)(this._rippleContainer||this),r=(0,i.vz)(t).rootTarget;n.deepContains(r)&&this._ripple.uiDownAction(t)}}},getRipple:function(){return this.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ripple)},_createRipple:function(){return document.createElement("paper-ripple")},_noinkChanged:function(t){this.hasRipple()&&(this._ripple.noink=t)}}},32296:function(t,e,n){"use strict";n(51309);var r=n(50611),i=n(49075),o=n(67139),a=n(50856),s=n(87529);function c(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n\n
    \n
    \n
    \n
    \n
    \n\n
    '],['\n\n
    \n
    \n
    \n
    \n
    \n\n
    ']);return c=function(){return t},t}var l=(0,a.d)(c());l.setAttribute("strip-whitespace",""),(0,o.k)({_template:l,is:"paper-checkbox",behaviors:[r.K],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){(0,s.T8)(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var t=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),e="px",n=t.match(/[A-Za-z]+$/);null!==n&&(e=n[0]);var r=parseFloat(t),i=8/3*r;"px"===e&&(i=Math.floor(i))%2!=r%2&&i++,this.updateStyles({"--paper-checkbox-ink-size":i+e})}}))},_computeCheckboxClass:function(t,e){var n="";return t&&(n+="checked "),e&&(n+="invalid"),n},_computeCheckmarkClass:function(t){return t?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,i.S._createRipple.call(this)}})},34178:function(t,e,n){"use strict";n(51309),n(8621),n(63207),n(77956),n(55489),n(60748);var r=n(15112),i=n(67139),o=n(18149);(0,i.k)({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new r.P({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.keys(this._icons).map((function(t){return this.name+":"+t}),this)},applyIcon:function(t,e){this.removeIcon(t);var n=this._cloneIcon(e,this.rtlMirroring&&this._targetIsRTL(t));if(n){var r=(0,o.vz)(t.root||t);return r.insertBefore(n,r.childNodes[0]),t._svgIcon=n}return null},removeIcon:function(t){t._svgIcon&&((0,o.vz)(t.root||t).removeChild(t._svgIcon),t._svgIcon=null)},_targetIsRTL:function(t){if(null==this.__targetIsRTL)if(this.useGlobalRtlAttribute){var e=document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement;this.__targetIsRTL="rtl"===e.getAttribute("dir")}else t&&t.nodeType!==Node.ELEMENT_NODE&&(t=t.host),this.__targetIsRTL=t&&"rtl"===window.getComputedStyle(t).direction;return this.__targetIsRTL},_nameChanged:function(){this._meta.value=null,this._meta.key=this.name,this._meta.value=this,this.async((function(){this.fire("iron-iconset-added",this,{node:window})}))},_createIconMap:function(){var t=Object.create(null);return(0,o.vz)(this).querySelectorAll("[id]").forEach((function(e){t[e.id]=e})),t},_cloneIcon:function(t,e){return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(this._icons[t],this.size,e)},_prepareSvgClone:function(t,e,n){if(t){var r=t.cloneNode(!0),i=document.createElementNS("http://www.w3.org/2000/svg","svg"),o=r.getAttribute("viewBox")||"0 0 "+e+" "+e,a="pointer-events: none; display: block; width: 100%; height: 100%;";return n&&r.hasAttribute("mirror-in-rtl")&&(a+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;"),i.setAttribute("viewBox",o),i.setAttribute("preserveAspectRatio","xMidYMid meet"),i.setAttribute("focusable","false"),i.style.cssText=a,i.appendChild(r).removeAttribute("id"),i}return null}});var a=document.createElement("template");a.setAttribute("style","display: none;"),a.innerHTML='\n\n\n\n',document.head.appendChild(a.content);var s=document.createElement("template");s.setAttribute("style","display: none;"),s.innerHTML='\n \n',document.head.appendChild(s.content);var c=n(51644),l=n(26110),u=n(21006),f=n(98235),d=n(81668),p=n(50856);function h(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n \n\n \x3c!-- this div fulfills an a11y requirement for combobox, do not remove --\x3e\n \n \n \x3c!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via --\x3e\n \n \n \n']);return h=function(){return t},t}(0,i.k)({_template:(0,p.d)(h()),is:"paper-dropdown-menu",behaviors:[c.P,l.a,u.V,f.x],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},hostAttributes:{role:"combobox","aria-autocomplete":"none","aria-haspopup":"true"},observers:["_selectedItemChanged(selectedItem)"],attached:function(){var t=this.contentElement;t&&t.selectedItem&&this._setSelectedItem(t.selectedItem)},get contentElement(){for(var t=(0,o.vz)(this.$.content).getDistributedNodes(),e=0,n=t.length;e\n :host {\n display: block;\n padding: 8px 0;\n @apply --paper-input-container;\n }\n\n :host([inline]) {\n display: inline-block;\n }\n\n :host([disabled]) {\n pointer-events: none;\n opacity: 0.33;\n\n @apply --paper-input-container-disabled;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n [hidden] {\n display: none !important;\n }\n\n .floated-label-placeholder {\n @apply --paper-font-caption;\n }\n\n .underline {\n height: 2px;\n position: relative;\n }\n\n .focused-line {\n @apply --layout-fit;\n border-bottom: 2px solid var(--paper-input-container-focus-color, var(--primary-color));\n\n -webkit-transform-origin: center center;\n transform-origin: center center;\n -webkit-transform: scale3d(0,1,1);\n transform: scale3d(0,1,1);\n\n @apply --paper-input-container-underline-focus;\n }\n\n .underline.is-highlighted .focused-line {\n -webkit-transform: none;\n transform: none;\n -webkit-transition: -webkit-transform 0.25s;\n transition: transform 0.25s;\n\n @apply --paper-transition-easing;\n }\n\n .underline.is-invalid .focused-line {\n border-color: var(--paper-input-container-invalid-color, var(--error-color));\n -webkit-transform: none;\n transform: none;\n -webkit-transition: -webkit-transform 0.25s;\n transition: transform 0.25s;\n\n @apply --paper-transition-easing;\n }\n\n .unfocused-line {\n @apply --layout-fit;\n border-bottom: 1px solid var(--paper-input-container-color, var(--secondary-text-color));\n @apply --paper-input-container-underline;\n }\n\n :host([disabled]) .unfocused-line {\n border-bottom: 1px dashed;\n border-color: var(--paper-input-container-color, var(--secondary-text-color));\n @apply --paper-input-container-underline-disabled;\n }\n\n .input-wrapper {\n @apply --layout-horizontal;\n @apply --layout-center;\n position: relative;\n }\n\n .input-content {\n @apply --layout-flex-auto;\n @apply --layout-relative;\n max-width: 100%;\n }\n\n .input-content ::slotted(label),\n .input-content ::slotted(.paper-input-label) {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n font: inherit;\n color: var(--paper-input-container-color, var(--secondary-text-color));\n -webkit-transition: -webkit-transform 0.25s, width 0.25s;\n transition: transform 0.25s, width 0.25s;\n -webkit-transform-origin: left top;\n transform-origin: left top;\n /* Fix for safari not focusing 0-height date/time inputs with -webkit-apperance: none; */\n min-height: 1px;\n\n @apply --paper-font-common-nowrap;\n @apply --paper-font-subhead;\n @apply --paper-input-container-label;\n @apply --paper-transition-easing;\n }\n\n .input-content.label-is-floating ::slotted(label),\n .input-content.label-is-floating ::slotted(.paper-input-label) {\n -webkit-transform: translateY(-75%) scale(0.75);\n transform: translateY(-75%) scale(0.75);\n\n /* Since we scale to 75/100 of the size, we actually have 100/75 of the\n original space now available */\n width: 133%;\n\n @apply --paper-input-container-label-floating;\n }\n\n :host(:dir(rtl)) .input-content.label-is-floating ::slotted(label),\n :host(:dir(rtl)) .input-content.label-is-floating ::slotted(.paper-input-label) {\n right: 0;\n left: auto;\n -webkit-transform-origin: right top;\n transform-origin: right top;\n }\n\n .input-content.label-is-highlighted ::slotted(label),\n .input-content.label-is-highlighted ::slotted(.paper-input-label) {\n color: var(--paper-input-container-focus-color, var(--primary-color));\n\n @apply --paper-input-container-label-focus;\n }\n\n .input-content.is-invalid ::slotted(label),\n .input-content.is-invalid ::slotted(.paper-input-label) {\n color: var(--paper-input-container-invalid-color, var(--error-color));\n }\n\n .input-content.label-is-hidden ::slotted(label),\n .input-content.label-is-hidden ::slotted(.paper-input-label) {\n visibility: hidden;\n }\n\n .input-content ::slotted(input),\n .input-content ::slotted(iron-input),\n .input-content ::slotted(textarea),\n .input-content ::slotted(iron-autogrow-textarea),\n .input-content ::slotted(.paper-input-input) {\n @apply --paper-input-container-shared-input-style;\n /* The apply shim doesn\'t apply the nested color custom property,\n so we have to re-apply it here. */\n color: var(--paper-input-container-input-color, var(--primary-text-color));\n @apply --paper-input-container-input;\n }\n\n .input-content ::slotted(input)::-webkit-outer-spin-button,\n .input-content ::slotted(input)::-webkit-inner-spin-button {\n @apply --paper-input-container-input-webkit-spinner;\n }\n\n .input-content.focused ::slotted(input),\n .input-content.focused ::slotted(iron-input),\n .input-content.focused ::slotted(textarea),\n .input-content.focused ::slotted(iron-autogrow-textarea),\n .input-content.focused ::slotted(.paper-input-input) {\n @apply --paper-input-container-input-focus;\n }\n\n .input-content.is-invalid ::slotted(input),\n .input-content.is-invalid ::slotted(iron-input),\n .input-content.is-invalid ::slotted(textarea),\n .input-content.is-invalid ::slotted(iron-autogrow-textarea),\n .input-content.is-invalid ::slotted(.paper-input-input) {\n @apply --paper-input-container-input-invalid;\n }\n\n .prefix ::slotted(*) {\n display: inline-block;\n @apply --paper-font-subhead;\n @apply --layout-flex-none;\n @apply --paper-input-prefix;\n }\n\n .suffix ::slotted(*) {\n display: inline-block;\n @apply --paper-font-subhead;\n @apply --layout-flex-none;\n\n @apply --paper-input-suffix;\n }\n\n /* Firefox sets a min-width on the input, which can cause layout issues */\n .input-content ::slotted(input) {\n min-width: 0;\n }\n\n .input-content ::slotted(textarea) {\n resize: none;\n }\n\n .add-on-content {\n position: relative;\n }\n\n .add-on-content.is-invalid ::slotted(*) {\n color: var(--paper-input-container-invalid-color, var(--error-color));\n }\n\n .add-on-content.is-highlighted ::slotted(*) {\n color: var(--paper-input-container-focus-color, var(--primary-color));\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']);return s=function(){return t},t}function c(){var t=l(['\n\n \n\n']);return c=function(){return t},t}function l(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var u=(0,a.d)(c());u.setAttribute("style","display: none;"),document.head.appendChild(u.content),(0,r.k)({_template:(0,a.d)(s()),is:"paper-input-container",properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,iron-input,textarea,.paper-input-input"},_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return(0,o.z)(this.attrForValue)},get _inputElement(){return(0,i.vz)(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0,this._addons||(this._addons=[]),this.addEventListener("focus",this._boundOnFocus,!0),this.addEventListener("blur",this._boundOnBlur,!0)},attached:function(){this.attrForValue?this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged):this.addEventListener("input",this._onInput),this._inputElementValue&&""!=this._inputElementValue?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement)},_onAddonAttached:function(t){this._addons||(this._addons=[]);var e=t.target;-1===this._addons.indexOf(e)&&(this._addons.push(e),this.isAttached&&this._handleValue(this._inputElement))},_onFocus:function(){this._setFocused(!0)},_onBlur:function(){this._setFocused(!1),this._handleValueAndAutoValidate(this._inputElement)},_onInput:function(t){this._handleValueAndAutoValidate(t.target)},_onValueChanged:function(t){var e=t.target;this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,void 0===e.value||""===e.value)||this._handleValueAndAutoValidate(t.target)},_handleValue:function(t){var e=this._inputElementValue;e||0===e||"number"===t.type&&!t.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1,this.updateAddons({inputElement:t,value:e,invalid:this.invalid})},_handleValueAndAutoValidate:function(t){var e;this.autoValidate&&t&&(e=t.validate?t.validate(this._inputElementValue):t.checkValidity(),this.invalid=!e);this._handleValue(t)},_onIronInputValidate:function(t){this.invalid=this._inputElement.invalid},_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},updateAddons:function(t){for(var e,n=0;e=this._addons[n];n++)e.update(t)},_computeInputContentClass:function(t,e,n,r,i){var o="input-content";if(t)i&&(o+=" label-is-hidden"),r&&(o+=" is-invalid");else{var a=this.querySelector("label");e||i?(o+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",r?o+=" is-invalid":n&&(o+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),r&&(o+=" is-invalid"))}return n&&(o+=" focused"),o},_computeUnderlineClass:function(t,e){var n="underline";return e?n+=" is-invalid":t&&(n+=" is-highlighted"),n},_computeAddOnContentClass:function(t,e){var n="add-on-content";return e?n+=" is-invalid":t&&(n+=" is-highlighted"),n}})},77956:function(t,e,n){"use strict";n(51309),n(36280),n(70019);var r=n(67139),i=n(50856),o={attached:function(){this.fire("addon-attached")},update:function(t){}};function a(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n \n\n [[_charCounterStr]]\n"]);return a=function(){return t},t}(0,r.k)({_template:(0,i.d)(a()),is:"paper-input-char-counter",behaviors:[o],properties:{_charCounterStr:{type:String,value:"0"}},update:function(t){if(t.inputElement){t.value=t.value||"";var e=t.value.toString().length.toString();t.inputElement.hasAttribute("maxlength")&&(e+="/"+t.inputElement.getAttribute("maxlength")),this._charCounterStr=e}}});n(98121);function s(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n `aria-describedby` attribute, such as when used as a paper-input add-on,\n then applying `visibility: hidden;` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
    \n \n
    \n'],['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n \\`aria-describedby\\` attribute, such as when used as a paper-input add-on,\n then applying \\`visibility: hidden;\\` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
    \n \n
    \n']);return s=function(){return t},t}(0,r.k)({_template:(0,i.d)(s()),is:"paper-input-error",behaviors:[o],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(t){this._setInvalid(t.invalid)}});var c=n(21006),l=(n(21384),n(8621)),u=n(26110),f=n(18149),d=n(28426),p={NextLabelID:1,NextAddonID:1,NextInputID:1},h={properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){return this.$||(this.$={}),this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId)),this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText=["date","datetime","datetime-local","month","time","week","file"]},attached:function(){this._updateAriaLabelledBy(),!d.H3&&this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.inputElement.type)&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(t,e){return t=t?t+" "+e:e},_onAddonAttached:function(t){var e=(0,f.vz)(t).rootTarget;if(e.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,e.id);else{var n="paper-input-add-on-"+p.NextAddonID++;e.id=n,this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,n)}},validate:function(){return this.inputElement.validate()},_focusBlurHandler:function(t){u.a._focusBlurHandler.call(this,t),this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},_onShiftTabDown:function(t){var e=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribute("tabindex","-1"),this.async((function(){this.setAttribute("tabindex",e),this._shiftTabPressed=!1}),1)},_handleAutoValidate:function(){this.autoValidate&&this.validate()},updateValueAndPreserveCaret:function(t){try{var e=this.inputElement.selectionStart;this.value=t,this.inputElement.selectionStart=e,this.inputElement.selectionEnd=e}catch(n){this.value=t}},_computeAlwaysFloatLabel:function(t,e){return e||t},_updateAriaLabelledBy:function(){var t,e=(0,f.vz)(this.root).querySelector("label");e?(e.id?t=e.id:(t="paper-input-label-"+p.NextLabelID++,e.id=t),this._ariaLabelledBy=t):this._ariaLabelledBy=""},_generateInputId:function(){this._inputId&&""!==this._inputId||(this._inputId="input-"+p.NextInputID++)},_onChange:function(t){this.shadowRoot&&this.fire(t.type,{sourceEvent:t},{node:this,bubbles:t.bubbles,cancelable:t.cancelable})},_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var t=document.activeElement;t instanceof HTMLElement&&t!==document.body&&t!==document.documentElement||this._focusableElement.focus()}}},m=[u.a,l.G,h];function y(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n \n\n \n\n \n\n \n\n \x3c!-- Need to bind maxlength so that the paper-input-char-counter works correctly --\x3e\n \n \n \n\n \n\n \n\n \n\n \n ']);return y=function(){return t},t}(0,r.k)({is:"paper-input",_template:(0,i.d)(y()),behaviors:[m,c.V],properties:{value:{type:String}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input")),this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.$.nativeInput.type)&&(this.alwaysFloatLabel=!0),this.inputElement.bindValue&&this.$.container._handleValueAndAutoValidate(this.inputElement)}})},33760:function(t,e,n){"use strict";n.d(e,{U:function(){return o}});n(51309);var r=n(51644),i=n(26110),o=[r.P,i.a,{hostAttributes:{role:"option",tabindex:"0"}}]},89194:function(t,e,n){"use strict";n(51309),n(65660),n(70019);var r=n(67139),i=n(50856);function o(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n \n\n \n"]);return o=function(){return t},t}(0,r.k)({_template:(0,i.d)(o()),is:"paper-item-body"})},97968:function(t,e,n){"use strict";n(65660),n(70019);var r=document.createElement("template");r.setAttribute("style","display: none;"),r.innerHTML="\n \n",document.head.appendChild(r.content)},53973:function(t,e,n){"use strict";n(51309),n(65660),n(97968);var r=n(67139),i=n(50856),o=n(33760);function a(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n \n \n']);return a=function(){return t},t}(0,r.k)({_template:(0,i.d)(a()),is:"paper-item",behaviors:[o.U]})},51095:function(t,e,n){"use strict";n(51309);var r=n(79787),i=n(67139),o=n(50856);function a(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n \n\n \n"]);return a=function(){return t},t}(0,i.k)({_template:(0,o.d)(a()),is:"paper-listbox",behaviors:[r.i],hostAttributes:{role:"listbox"}})},55489:function(t,e,n){"use strict";n(51309);var r=n(8621),i=n(26110),o=n(18149),a={properties:{sizingTarget:{type:Object,value:function(){return this}},fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},_fitInfo:{type:Object}},get _fitWidth(){return this.fitInto===window?this.fitInto.innerWidth:this.fitInto.getBoundingClientRect().width},get _fitHeight(){return this.fitInto===window?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get _fitLeft(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().left},get _fitTop(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().top},get _defaultPositionTarget(){var t=(0,o.vz)(this).parentNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t=t.host),t},get _localeHorizontalAlign(){if(this._isRTL){if("right"===this.horizontalAlign)return"left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},attached:function(){void 0===this._isRTL&&(this._isRTL="rtl"==window.getComputedStyle(this).direction),this.positionTarget=this.positionTarget||this._defaultPositionTarget,this.autoFitOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit()))},detached:function(){this.__deferredFit&&(clearTimeout(this.__deferredFit),this.__deferredFit=null)},fit:function(){this.position(),this.constrain(),this.center()},_discoverInfo:function(){if(!this._fitInfo){var t=window.getComputedStyle(this),e=window.getComputedStyle(this.sizingTarget);this._fitInfo={inlineStyle:{top:this.style.top||"",left:this.style.left||"",position:this.style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||""},positionedBy:{vertically:"auto"!==t.top?"top":"auto"!==t.bottom?"bottom":null,horizontally:"auto"!==t.left?"left":"auto"!==t.right?"right":null},sizedBy:{height:"none"!==e.maxHeight,width:"none"!==e.maxWidth,minWidth:parseInt(e.minWidth,10)||0,minHeight:parseInt(e.minHeight,10)||0},margin:{top:parseInt(t.marginTop,10)||0,right:parseInt(t.marginRight,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0}}}},resetFit:function(){var t=this._fitInfo||{};for(var e in t.sizerInlineStyle)this.sizingTarget.style[e]=t.sizerInlineStyle[e];for(var e in t.inlineStyle)this.style[e]=t.inlineStyle[e];this._fitInfo=null},refit:function(){var t=this.sizingTarget.scrollLeft,e=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),this.sizingTarget.scrollLeft=t,this.sizingTarget.scrollTop=e},position:function(){if(this.__shouldPosition){this._discoverInfo(),this.style.position="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0px",this.style.top="0px";var t=this.getBoundingClientRect(),e=this.__getNormalizedRect(this.positionTarget),n=this.__getNormalizedRect(this.fitInto),r=this._fitInfo.margin,i={width:t.width+r.left+r.right,height:t.height+r.top+r.bottom},o=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,i,t,e,n),a=o.left+r.left,s=o.top+r.top,c=Math.min(n.right-r.right,a+t.width),l=Math.min(n.bottom-r.bottom,s+t.height);a=Math.max(n.left+r.left,Math.min(a,c-this._fitInfo.sizedBy.minWidth)),s=Math.max(n.top+r.top,Math.min(s,l-this._fitInfo.sizedBy.minHeight)),this.sizingTarget.style.maxWidth=Math.max(c-a,this._fitInfo.sizedBy.minWidth)+"px",this.sizingTarget.style.maxHeight=Math.max(l-s,this._fitInfo.sizedBy.minHeight)+"px",this.style.left=a-t.left+"px",this.style.top=s-t.top+"px"}},constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var t=this._fitInfo;t.positionedBy.vertically||(this.style.position="fixed",this.style.top="0px"),t.positionedBy.horizontally||(this.style.position="fixed",this.style.left="0px"),this.sizingTarget.style.boxSizing="border-box";var e=this.getBoundingClientRect();t.sizedBy.height||this.__sizeDimension(e,t.positionedBy.vertically,"top","bottom","Height"),t.sizedBy.width||this.__sizeDimension(e,t.positionedBy.horizontally,"left","right","Width")}},_sizeDimension:function(t,e,n,r,i){this.__sizeDimension(t,e,n,r,i)},__sizeDimension:function(t,e,n,r,i){var o=this._fitInfo,a=this.__getNormalizedRect(this.fitInto),s="Width"===i?a.width:a.height,c=e===r,l=c?s-t[r]:t[n],u=o.margin[c?n:r],f="offset"+i,d=this[f]-this.sizingTarget[f];this.sizingTarget.style["max"+i]=s-u-l-d+"px"},center:function(){if(!this.__shouldPosition){this._discoverInfo();var t=this._fitInfo.positionedBy;if(!t.vertically||!t.horizontally){this.style.position="fixed",t.vertically||(this.style.top="0px"),t.horizontally||(this.style.left="0px");var e=this.getBoundingClientRect(),n=this.__getNormalizedRect(this.fitInto);if(!t.vertically){var r=n.top-e.top+(n.height-e.height)/2;this.style.top=r+"px"}if(!t.horizontally){var i=n.left-e.left+(n.width-e.width)/2;this.style.left=i+"px"}}}},__getNormalizedRect:function(t){return t===document.documentElement||t===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:t.getBoundingClientRect()},__getOffscreenArea:function(t,e,n){var r=Math.min(0,t.top)+Math.min(0,n.bottom-(t.top+e.height)),i=Math.min(0,t.left)+Math.min(0,n.right-(t.left+e.width));return Math.abs(r)*e.width+Math.abs(i)*e.height},__getPosition:function(t,e,n,r,i,o){var a,s=[{verticalAlign:"top",horizontalAlign:"left",top:i.top+this.verticalOffset,left:i.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:i.top+this.verticalOffset,left:i.right-n.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:i.bottom-n.height-this.verticalOffset,left:i.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:i.bottom-n.height-this.verticalOffset,left:i.right-n.width-this.horizontalOffset}];if(this.noOverlap){for(var c=0,l=s.length;c-1&&(this._interestedResizables.splice(e,1),this._unsubscribeIronResize(t))},_subscribeIronResize:function(t){t.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(t){t.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(t){return!0},_onDescendantIronResize:function(t){this._notifyingDescendant?t.stopPropagation():s.my||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(t){var e=(0,o.vz)(t).rootTarget;e!==this&&(e.assignParentResizable(this),this._notifyDescendant(e),t.stopPropagation())},_parentResizableChanged:function(t){t&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(t){this.isAttached&&(this._notifyingDescendant=!0,t.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var t=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function e(){document.removeEventListener("readystatechange",e),t()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(t){t!==this&&t._findParent()}),this):(c.forEach((function(t){t!==this&&t._findParent()}),this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?c.delete(this):c.add(this)}},u=Element.prototype,f=u.matches||u.matchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector,d={getTabbableNodes:function(t){var e=[];return this._collectTabbableNodes(t,e)?this._sortByTabIndex(e):e},isFocusable:function(t){return f.call(t,"input, select, textarea, button, object")?f.call(t,":not([disabled])"):f.call(t,"a[href], area[href], iframe, [tabindex], [contentEditable]")},isTabbable:function(t){return this.isFocusable(t)&&f.call(t,':not([tabindex="-1"])')&&this._isVisible(t)},_normalizedTabIndex:function(t){if(this.isFocusable(t)){var e=t.getAttribute("tabindex")||0;return Number(e)}return-1},_collectTabbableNodes:function(t,e){if(t.nodeType!==Node.ELEMENT_NODE||!this._isVisible(t))return!1;var n,r=t,i=this._normalizedTabIndex(r),a=i>0;i>=0&&e.push(r),n="content"===r.localName||"slot"===r.localName?(0,o.vz)(r).getDistributedNodes():(0,o.vz)(r.root||r).children;for(var s=0;s0&&e.length>0;)this._hasLowerTabOrder(t[0],e[0])?n.push(e.shift()):n.push(t.shift());return n.concat(t,e)},_hasLowerTabOrder:function(t,e){var n=Math.max(t.tabIndex,0),r=Math.max(e.tabIndex,0);return 0===n||0===r?r>n:n>r}},p=n(67139),h=n(50856);function m(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n \n\n \n"]);return m=function(){return t},t}(0,p.k)({_template:(0,h.d)(m()),is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&(0,o.vz)(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||(0,o.vz)(this.parentNode).removeChild(this)},_onTransitionend:function(t){t&&t.target===this&&this.complete()},_openedChanged:function(t){if(t)this.prepare();else{var e=window.getComputedStyle(this);"0s"!==e.transitionDuration&&0!=e.opacity||this.complete()}this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.opened)}.bind(this)))}});var y=n(81668),v=function(){this._overlays=[],this._minimumZ=101,this._backdropElement=null,y.IH(document.documentElement,"tap",(function(){})),document.addEventListener("tap",this._onCaptureClick.bind(this),!0),document.addEventListener("focus",this._onCaptureFocus.bind(this),!0),document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)};v.prototype={constructor:v,get backdropElement(){return this._backdropElement||(this._backdropElement=document.createElement("iron-overlay-backdrop")),this._backdropElement},get deepActiveElement(){var t=document.activeElement;for(t&&t instanceof Element!=!1||(t=document.body);t.root&&(0,o.vz)(t.root).activeElement;)t=(0,o.vz)(t.root).activeElement;return t},_bringOverlayAtIndexToFront:function(t){var e=this._overlays[t];if(e){var n=this._overlays.length-1,r=this._overlays[n];if(r&&this._shouldBeBehindOverlay(e,r)&&n--,!(t>=n)){var i=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._getZ(e)<=i&&this._applyOverlayZ(e,i);t=0)return this._bringOverlayAtIndexToFront(e),void this.trackBackdrop();var n=this._overlays.length,r=this._overlays[n-1],i=Math.max(this._getZ(r),this._minimumZ),o=this._getZ(t);if(r&&this._shouldBeBehindOverlay(t,r)){this._applyOverlayZ(r,i),n--;var a=this._overlays[n-1];i=Math.max(this._getZ(a),this._minimumZ)}o<=i&&this._applyOverlayZ(t,i),this._overlays.splice(n,0,t),this.trackBackdrop()},removeOverlay:function(t){var e=this._overlays.indexOf(t);-1!==e&&(this._overlays.splice(e,1),this.trackBackdrop())},currentOverlay:function(){var t=this._overlays.length-1;return this._overlays[t]},currentOverlayZ:function(){return this._getZ(this.currentOverlay())},ensureMinimumZ:function(t){this._minimumZ=Math.max(this._minimumZ,t)},focusOverlay:function(){var t=this.currentOverlay();t&&t._applyFocus()},trackBackdrop:function(){var t=this._overlayWithBackdrop();(t||this._backdropElement)&&(this.backdropElement.style.zIndex=this._getZ(t)-1,this.backdropElement.opened=!!t,this.backdropElement.prepare())},getBackdrops:function(){for(var t=[],e=0;e=0;t--)if(this._overlays[t].withBackdrop)return this._overlays[t]},_getZ:function(t){var e=this._minimumZ;if(t){var n=Number(t.style.zIndex||window.getComputedStyle(t).zIndex);n==n&&(e=n)}return e},_setZ:function(t,e){t.style.zIndex=e},_applyOverlayZ:function(t,e){this._setZ(t,e+2)},_overlayInPath:function(t){t=t||[];for(var e=0;e=0||(0===C.length&&function(){b=b||O.bind(void 0);for(var t=0,e=E.length;t=Math.abs(e),i=0;i0:o.scrollTop0:o.scrollLeft=0))switch(this.scrollAction){case"lock":this.__restoreScrollPosition();break;case"refit":this.__deraf("refit",this.refit);break;case"cancel":this.cancel(t)}},__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}},T=[a,l,P],R=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},_copyProperties:function(t,e){for(var n in e)t[n]=e[n]},_cloneConfig:function(t){var e={isClone:!0};return this._copyProperties(e,t),e},_getAnimationConfigRecursive:function(t,e,n){var r;if(this.animationConfig)if(this.animationConfig.value&&"function"==typeof this.animationConfig.value)this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else if(r=t?this.animationConfig[t]:this.animationConfig,Array.isArray(r)||(r=[r]),r)for(var i,o=0;i=r[o];o++)if(i.animatable)i.animatable._getAnimationConfigRecursive(i.type||t,e,n);else if(i.id){var a=e[i.id];a?(a.isClone||(e[i.id]=this._cloneConfig(a),a=e[i.id]),this._copyProperties(a,i)):e[i.id]=i}else n.push(i)},getAnimationConfig:function(t){var e={},n=[];for(var r in this._getAnimationConfigRecursive(t,e,n),e)n.push(e[r]);return n}},{_configureAnimations:function(t){var e=[],n=[];if(t.length>0)for(var r,i=0;r=t[i];i++){var o=document.createElement(r.name);if(o.isNeonAnimation){var a;o.configure||(o.configure=function(t){return null}),a=o.configure(r),n.push({result:a,config:r,neonAnimation:o})}else console.warn(this.is+":",r.name,"not found!")}for(var s=0;s\n :host {\n position: fixed;\n }\n\n #contentWrapper ::slotted(*) {\n overflow: auto;\n }\n\n #contentWrapper.animating ::slotted(*) {\n overflow: hidden;\n pointer-events: none;\n }\n \n\n
    \n \n
    \n']);return L=function(){return t},t}(0,p.k)({_template:(0,h.d)(L()),is:"iron-dropdown",behaviors:[i.a,r.G,T,R],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],get containedElement(){for(var t=(0,o.vz)(this.$.content).getDistributedNodes(),e=0,n=t.length;e\n :host {\n display: inline-block;\n position: relative;\n padding: 8px;\n outline: none;\n\n @apply --paper-menu-button;\n }\n\n :host([disabled]) {\n cursor: auto;\n color: var(--disabled-text-color);\n\n @apply --paper-menu-button-disabled;\n }\n\n iron-dropdown {\n @apply --paper-menu-button-dropdown;\n }\n\n .dropdown-content {\n @apply --shadow-elevation-2dp;\n\n position: relative;\n border-radius: 2px;\n background-color: var(--paper-menu-button-dropdown-background, var(--primary-background-color));\n\n @apply --paper-menu-button-content;\n }\n\n :host([vertical-align="top"]) .dropdown-content {\n margin-bottom: 20px;\n margin-top: -10px;\n top: 10px;\n }\n\n :host([vertical-align="bottom"]) .dropdown-content {\n bottom: 10px;\n margin-bottom: -10px;\n margin-top: 20px;\n }\n\n #trigger {\n cursor: pointer;\n }\n \n\n
    \n \n
    \n\n \n \n \n']);return I=function(){return t},t}(0,p.k)({is:"paper-menu-grow-height-animation",behaviors:[j],configure:function(t){var e=t.node,n=e.getBoundingClientRect().height;return this._effect=new KeyframeEffect(e,[{height:n/2+"px"},{height:n+"px"}],this.timingFromConfig(t)),this._effect}}),(0,p.k)({is:"paper-menu-grow-width-animation",behaviors:[j],configure:function(t){var e=t.node,n=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:n/2+"px"},{width:n+"px"}],this.timingFromConfig(t)),this._effect}}),(0,p.k)({is:"paper-menu-shrink-width-animation",behaviors:[j],configure:function(t){var e=t.node,n=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:n+"px"},{width:n-n/20+"px"}],this.timingFromConfig(t)),this._effect}}),(0,p.k)({is:"paper-menu-shrink-height-animation",behaviors:[j],configure:function(t){var e=t.node,n=e.getBoundingClientRect().height;return this.setPrefixedProperty(e,"transformOrigin","0 0"),this._effect=new KeyframeEffect(e,[{height:n+"px",transform:"translateY(0)"},{height:n/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(t)),this._effect}});var D={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},z=(0,p.k)({_template:(0,h.d)(I()),is:"paper-menu-button",behaviors:[r.G,i.a],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean,value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:D.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:D.ANIMATION_CUBIC_BEZIER}}]}},closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:D.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var t=(0,o.vz)(this.$.content).getDistributedNodes(),e=0,n=t.length;e-1&&t.preventDefault()}});Object.keys(D).forEach((function(t){z[t]=D[t]}))},60748:function(t,e,n){"use strict";n(51309);var r=n(8621),i=n(67139),o=n(18149),a=n(50856);function s(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n \n\n
    \n
    \n']);return s=function(){return t},t}var c={distance:function(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function l(t){this.element=t,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function u(t){this.element=t,this.color=window.getComputedStyle(t).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),(0,o.vz)(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}l.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(t,e){var n=c.distance(t,e,0,0),r=c.distance(t,e,this.width,0),i=c.distance(t,e,0,this.height),o=c.distance(t,e,this.width,this.height);return Math.max(n,r,i,o)}},u.MAX_RADIUS=300,u.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var t;return this.mouseDownStart?(t=c.now()-this.mouseDownStart,this.mouseUpStart&&(t-=this.mouseUpElapsed),t):0},get mouseUpElapsed(){return this.mouseUpStart?c.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var t=this.containerMetrics.width*this.containerMetrics.width,e=this.containerMetrics.height*this.containerMetrics.height,n=1.1*Math.min(Math.sqrt(t+e),u.MAX_RADIUS)+5,r=1.1-n/u.MAX_RADIUS*.2,i=this.mouseInteractionSeconds/r,o=n*(1-Math.pow(80,-i));return Math.abs(o)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var t=.3*this.mouseUpElapsedSeconds,e=this.opacity;return Math.max(0,Math.min(t,e))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,u.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,u.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new l(this.element)},draw:function(){var t,e,n;this.wave.style.opacity=this.opacity,t=this.radius/(this.containerMetrics.size/2),e=this.xNow-this.containerMetrics.width/2,n=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+e+"px, "+n+"px)",this.waveContainer.style.transform="translate3d("+e+"px, "+n+"px, 0)",this.wave.style.webkitTransform="scale("+t+","+t+")",this.wave.style.transform="scale3d("+t+","+t+",1)"},downAction:function(t){var e=this.containerMetrics.width/2,n=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=c.now(),this.center?(this.xStart=e,this.yStart=n,this.slideDistance=c.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=t?t.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=t?t.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=e,this.yEnd=n,this.slideDistance=c.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(t){this.isMouseDown&&(this.mouseUpStart=c.now())},remove:function(){(0,o.vz)(this.waveContainer.parentNode).removeChild(this.waveContainer)}},(0,i.k)({_template:(0,a.d)(s()),is:"paper-ripple",behaviors:[r.G],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==this.parentNode.nodeType?this.keyEventTarget=(0,o.vz)(this).getOwnerRoot().host:this.keyEventTarget=this.parentNode;var t=this.keyEventTarget;this.listen(t,"up","uiUpAction"),this.listen(t,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var t=0;t0||(this.addRipple().downAction(t),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(t){this.noink||this.upAction(t)},upAction:function(t){this.holdDown||(this.ripples.forEach((function(e){e.upAction(t)})),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor=null,this.fire("transitionend")},addRipple:function(){var t=new u(this);return(0,o.vz)(this.$.waves).appendChild(t.waveContainer),this.$.background.style.backgroundColor=t.color,this.ripples.push(t),this._setAnimating(!0),t},removeRipple:function(t){var e=this.ripples.indexOf(t);e<0||(this.ripples.splice(e,1),t.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var t,e;for(t=0;t\n \n']);return r=function(){return t},t}var i=(0,n(50856).d)(r());i.setAttribute("style","display: none;"),document.head.appendChild(i.content)},70019:function(t,e,n){"use strict";n(51309);function r(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n \n"]);return r=function(){return t},t}var i=(0,n(50856).d)(r());i.setAttribute("style","display: none;"),document.head.appendChild(i.content)},5618:function(t,e,n){"use strict";var r=n(34816),i=n(10868),o=n(26539),a=new r.ZP;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(t,e,n){},prepareTemplateDom:function(t,e){},prepareTemplateStyles:function(t,e,n){},styleSubtree:function(t,e){a.processStyles(),(0,i.wW)(t,e)},styleElement:function(t){a.processStyles()},styleDocument:function(t){a.processStyles(),(0,i.wW)(document.body,t)},getComputedStyleValue:function(t,e){return(0,i.B7)(t,e)},flushCustomStyles:function(){},nativeCss:o.rd,nativeShadow:o.WA,cssBuild:o.Cp,disableRuntime:o.jF}),window.ShadyCSS.CustomStyleInterface=a;var s=n(15392);function c(t){return(c="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 l(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",r="";if(t.cssText||t.rules){var i=t.rules;if(i&&!c(i))for(var o,a=0,u=i.length;a1&&void 0!==arguments[1]?arguments[1]:"",n=k(t);return this.transformRules(n,e),t.textContent=_(n),n}},{key:"transformCustomStyle",value:function(t){var e=this,n=k(t);return x(n,(function(t){":root"===t.selector&&(t.selector="html"),e.transformRule(t)})),t.textContent=_(n),n}},{key:"transformRules",value:function(t,e){var n=this;this._currentElement=e,x(t,(function(t){n.transformRule(t)})),this._currentElement=null}},{key:"transformRule",value:function(t){t.cssText=this.transformCssText(t.parsedCssText,t),":root"===t.selector&&(t.selector=":host > *")}},{key:"transformCssText",value:function(t,e){var n=this;return t=t.replace(v.CN,(function(t,r,i,o){return n._produceCssProperties(t,r,i,o,e)})),this._consumeCssProperties(t,e)}},{key:"_getInitialValueForProperty",value:function(t){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(t)}},{key:"_fallbacksFromPreviousRules",value:function(t){for(var e=this,n=t;n.parent;)n=n.parent;var r={},i=!1;return x(n,(function(n){(i=i||n===t)||n.selector===t.selector&&Object.assign(r,e._cssTextToMap(n.parsedCssText))})),r}},{key:"_consumeCssProperties",value:function(t,e){for(var n=null;n=v.$T.exec(t);){var r=n[0],i=n[1],o=n.index,a=o+r.indexOf("@apply"),s=o+r.length,c=t.slice(0,a),l=t.slice(s),u=e?this._fallbacksFromPreviousRules(e):{};Object.assign(u,this._cssTextToMap(c));var f=this._atApplyToCssProperties(i,u);t="".concat(c).concat(f).concat(l),v.$T.lastIndex=o+f.length}return t}},{key:"_atApplyToCssProperties",value:function(t,e){t=t.replace(j,"");var n=[],r=this._map.get(t);if(r||(this._map.set(t,{}),r=this._map.get(t)),r){var i,o,a;this._currentElement&&(r.dependants[this._currentElement]=!0);var s=r.properties;for(i in s)a=e&&e[i],o=[i,": var(",t,z,i],a&&o.push(",",a.replace(D,"")),o.push(")"),D.test(s[i])&&o.push(" !important"),n.push(o.join(""))}return n.join("; ")}},{key:"_replaceInitialOrInherit",value:function(t,e){var n=I.exec(e);return n&&(e=n[1]?this._getInitialValueForProperty(t):"apply-shim-inherit"),e}},{key:"_cssTextToMap",value:function(t){for(var e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=t.split(";"),s={},c=0;c1&&(e=i[0].trim(),n=i.slice(1).join(":"),o&&(n=this._replaceInitialOrInherit(e,n)),s[e]=n);return s}},{key:"_invalidateMixinEntry",value:function(t){if(N)for(var e in t.dependants)e!==this._currentElement&&N(e)}},{key:"_produceCssProperties",value:function(t,e,n,r,i){var o=this;if(n&&S(n,(function(t,e){e&&o._map.get(e)&&(r="@apply ".concat(e,";"))})),!r)return t;var a=this._consumeCssProperties(""+r,i),s=t.slice(0,t.indexOf("--")),c=this._cssTextToMap(a,!0),l=c,u=this._map.get(e),f=u&&u.properties;f?l=Object.assign(Object.create(f),c):this._map.set(e,l);var d,p,h=[],m=!1;for(d in l)void 0===(p=c[d])&&(p="initial"),f&&!(d in f)&&(m=!0),h.push("".concat(e).concat(z).concat(d,": ").concat(p));return m&&this._invalidateMixinEntry(u),u&&(u.properties=l),n&&(s="".concat(t,";").concat(s)),"".concat(s).concat(h.join("; "),";")}}]),t}();F.prototype.detectMixin=F.prototype.detectMixin,F.prototype.transformStyle=F.prototype.transformStyle,F.prototype.transformCustomStyle=F.prototype.transformCustomStyle,F.prototype.transformRules=F.prototype.transformRules,F.prototype.transformRule=F.prototype.transformRule,F.prototype.transformTemplate=F.prototype.transformTemplate,F.prototype._separator=z,Object.defineProperty(F.prototype,"invalidCallback",{get:function(){return N},set:function(t){N=t}});var Z=F,B={},H="_applyShimCurrentVersion",U="_applyShimNextVersion",V="_applyShimValidatingVersion",K=Promise.resolve();function G(t){var e=B[t];e&&function(t){t[H]=t[H]||0,t[V]=t[V]||0,t[U]=(t[U]||0)+1}(e)}function W(t){return t[H]===t[U]}function q(t){return!W(t)&&t[V]===t[U]}function Y(t){t[V]=t[U],t._validating||(t._validating=!0,K.then((function(){t[H]=t[U],t._validating=!1})))}n(34816);function $(t,e){for(var n=0;n-1?n=e:(r=e,n=t.getAttribute&&t.getAttribute("is")||""):(n=t.is,r=t.extends),{is:n,typeExtension:r}}(t).is,n=B[e];if((!n||!O(n))&&n&&!W(n)){q(n)||(this.prepareTemplate(n,e),Y(n));var r=t.shadowRoot;if(r){var i=r.querySelector("style");i&&(i.__cssRules=n._styleAst,i.textContent=_(n._styleAst))}}}},{key:"styleDocument",value:function(t){this.ensure(),this.styleSubtree(document.body,t)}}])&&$(e.prototype,n),r&&$(e,r),t}();if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Q=new J,tt=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(t,e,n){Q.flushCustomStyles(),Q.prepareTemplate(t,e)},prepareTemplateStyles:function(t,e,n){window.ShadyCSS.prepareTemplate(t,e,n)},prepareTemplateDom:function(t,e){},styleSubtree:function(t,e){Q.flushCustomStyles(),Q.styleSubtree(t,e)},styleElement:function(t){Q.flushCustomStyles(),Q.styleElement(t)},styleDocument:function(t){Q.flushCustomStyles(),Q.styleDocument(t)},getComputedStyleValue:function(t,e){return(0,P.B7)(t,e)},flushCustomStyles:function(){Q.flushCustomStyles()},nativeCss:r.rd,nativeShadow:r.WA,cssBuild:r.Cp,disableRuntime:r.jF},tt&&(window.ShadyCSS.CustomStyleInterface=tt)}window.ShadyCSS.ApplyShim=X;var et=n(36608),nt=n(60995),rt=n(63933),it=n(76389);function ot(t){return(ot="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 at(t,e){for(var n=0;n-1&&mt.splice(t,1)}}}]),r}(e);return n.__activateDir=!1,n}));n(87529);function kt(){document.body.removeAttribute("unresolved")}"interactive"===document.readyState||"complete"===document.readyState?kt():window.addEventListener("DOMContentLoaded",kt);var xt=n(18149),Et=n(81668),St=n(78956),At=n(21683),Ct=n(4059);function Ot(t){return(Ot="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 Pt(t){return function(t){if(Array.isArray(t))return Tt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Tt(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 Tt(t,e)}(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 Tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?At.Wc.after(n):At.YA,e.bind(this))}},{key:"isDebouncerActive",value:function(t){this._debouncers=this._debouncers||{};var e=this._debouncers[t];return!(!e||!e.isActive())}},{key:"flushDebouncer",value:function(t){this._debouncers=this._debouncers||{};var e=this._debouncers[t];e&&e.flush()}},{key:"cancelDebouncer",value:function(t){this._debouncers=this._debouncers||{};var e=this._debouncers[t];e&&e.cancel()}},{key:"async",value:function(t,e){return e>0?At.Wc.run(t.bind(this),e):~At.YA.run(t.bind(this))}},{key:"cancelAsync",value:function(t){t<0?At.YA.cancel(~t):At.Wc.cancel(t)}},{key:"create",value:function(t,e){var n=document.createElement(t);if(e)if(n.setProperties)n.setProperties(e);else for(var r in e)n[r]=e[r];return n}},{key:"elementMatches",value:function(t,e){return(0,xt.Ku)(e||this,t)}},{key:"toggleAttribute",value:function(t,e){var n=this;return 3===arguments.length&&(n=arguments[2]),1==arguments.length&&(e=!n.hasAttribute(t)),e?(n.setAttribute(t,""),!0):(n.removeAttribute(t),!1)}},{key:"toggleClass",value:function(t,e,n){n=n||this,1==arguments.length&&(e=!n.classList.contains(t)),e?n.classList.add(t):n.classList.remove(t)}},{key:"transform",value:function(t,e){(e=e||this).style.webkitTransform=t,e.style.transform=t}},{key:"translate3d",value:function(t,e,n,r){r=r||this,this.transform("translate3d("+t+","+e+","+n+")",r)}},{key:"arrayDelete",value:function(t,e){var n;if(Array.isArray(t)){if((n=t.indexOf(e))>=0)return t.splice(n,1)}else if((n=(0,Ct.U2)(this,t).indexOf(e))>=0)return this.splice(t,n,1);return null}},{key:"_logger",value:function(t,e){var n;switch(Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&(e=e[0]),t){case"log":case"warn":case"error":(n=console)[t].apply(n,Pt(e))}}},{key:"_log",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),r=1;r=0;r--){var i=t[r];i?Array.isArray(i)?m(i,e):e.indexOf(i)<0&&(!n||n.indexOf(i)<0)&&e.unshift(i):console.warn("behavior is null, check for missing or 404 import")}return e}function y(t,e){var n=function(e){!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&&c(t,e)}(d,e);var n,r,i,u=l(d);function d(){return o(this,d),u.apply(this,arguments)}return n=d,i=[{key:"properties",get:function(){return t.properties}},{key:"observers",get:function(){return t.observers}}],(r=[{key:"created",value:function(){s(f(d.prototype),"created",this).call(this),t.created&&t.created.call(this)}},{key:"_registered",value:function(){s(f(d.prototype),"_registered",this).call(this),t.beforeRegister&&t.beforeRegister.call(Object.getPrototypeOf(this)),t.registered&&t.registered.call(Object.getPrototypeOf(this))}},{key:"_applyListeners",value:function(){if(s(f(d.prototype),"_applyListeners",this).call(this),t.listeners)for(var e in t.listeners)this._addMethodEventListenerToNode(this,e,t.listeners[e])}},{key:"_ensureAttributes",value:function(){if(t.hostAttributes)for(var e in t.hostAttributes)this._ensureAttribute(e,t.hostAttributes[e]);s(f(d.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){s(f(d.prototype),"ready",this).call(this),t.ready&&t.ready.call(this)}},{key:"attached",value:function(){s(f(d.prototype),"attached",this).call(this),t.attached&&t.attached.call(this)}},{key:"detached",value:function(){s(f(d.prototype),"detached",this).call(this),t.detached&&t.detached.call(this)}},{key:"attributeChanged",value:function(e,n,r){s(f(d.prototype),"attributeChanged",this).call(this,e,n,r),t.attributeChanged&&t.attributeChanged.call(this,e,n,r)}}])&&a(n.prototype,r),i&&a(n,i),d}(e);for(var r in n.generatedFrom=t,t)if(!(r in d)){var i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(n.prototype,r,i)}return n}n(56646);var v=function t(e){var n;return n="function"==typeof e?e:t.Class(e),customElements.define(n.is,n),n};v.Class=function(t,e){t||console.warn("Polymer's Class function requires `info` argument");var n=t.behaviors?p(t.behaviors,HTMLElement):(0,r.x)(HTMLElement),i=y(t,e?e(n):n);return i.is=t.is,i}},18149:function(t,e,n){"use strict";n.d(e,{vz:function(){return v},Ku:function(){return h}});n(56646),n(74460);var r=n(4507),i=n(21683);function o(t,e){for(var n=0;nu.source.length&&"property"==l.kind&&!l.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[l.target]){var f=n[e];e=(0,i.Iu)(u.source,l.target,e),c._setPendingPropertyOrPath(e,f,!1,!0)&&t._enqueueClient(c)}else{!function(t,e,n,r,i){i=function(t,e,n,r){if(n.isCompound){var i=t.__dataCompoundStorage[n.target];i[r.compoundIndex]=e,e=i.join("")}"attribute"!==n.kind&&("textContent"!==n.target&&("value"!==n.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,i,n,r),_.v1&&(i=(0,_.v1)(i,n.target,n.kind,e));if("attribute"==n.kind)t._valueToNodeAttribute(e,i,n.target);else{var o=n.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?e[L.READ_ONLY]&&e[L.READ_ONLY][o]||e._setPendingProperty(o,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,o,i)}}(t,c,l,u,o.evaluator._evaluateBinding(t,u,e,n,r,a))}}function W(t,e){if(e.isCompound){for(var n=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length),o=0;o="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=e.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(e),n.literal=!0}return n.literal||(n.rootProperty=(0,i.Jz)(e),n.structured=(0,i.AZ)(e),n.structured&&(n.wildcard=".*"==e.slice(-2),n.wildcard&&(n.name=e.slice(0,-2)))),n}function nt(t,e,n,r){var i=n+".splices";t.notifyPath(i,{indexSplices:r}),t.notifyPath(n+".length",e.length),t.__data[i]={indexSplices:null}}function rt(t,e,n,r,i,o){nt(t,e,n,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}var it=(0,r.o)((function(t){var e=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&&A(t,e)}(n,t);var e=C(n);function n(){var t;return k(this,n),(t=e.call(this)).__isPropertyEffectsClient=!0,t.__dataCounter=0,t.__dataClientsReady,t.__dataPendingClients,t.__dataToNotify,t.__dataLinkedPaths,t.__dataHasPaths,t.__dataCompoundStorage,t.__dataHost,t.__dataTemp,t.__dataClientsInitialized,t.__data,t.__dataPending,t.__dataOld,t.__computeEffects,t.__reflectEffects,t.__notifyEffects,t.__propagateEffects,t.__observeEffects,t.__readOnly,t.__templateInfo,t}return E(n,[{key:"_initializeProperties",value:function(){S(P(n.prototype),"_initializeProperties",this).call(this),ot.registerHost(this),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}},{key:"_initializeProtoProperties",value:function(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}},{key:"_initializeInstanceProperties",value:function(t){var e=this[L.READ_ONLY];for(var n in t)e&&e[n]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=t[n])}},{key:"_addPropertyEffect",value:function(t,e,n){this._createPropertyAccessor(t,e==L.READ_ONLY);var r=I(this,e)[t];r||(r=this[e][t]=[]),r.push(n)}},{key:"_removePropertyEffect",value:function(t,e,n){var r=I(this,e)[t],i=r.indexOf(n);i>=0&&r.splice(i,1)}},{key:"_hasPropertyEffect",value:function(t,e){var n=this[e];return Boolean(n&&n[t])}},{key:"_hasReadOnlyEffect",value:function(t){return this._hasPropertyEffect(t,L.READ_ONLY)}},{key:"_hasNotifyEffect",value:function(t){return this._hasPropertyEffect(t,L.NOTIFY)}},{key:"_hasReflectEffect",value:function(t){return this._hasPropertyEffect(t,L.REFLECT)}},{key:"_hasComputedEffect",value:function(t){return this._hasPropertyEffect(t,L.COMPUTE)}},{key:"_setPendingPropertyOrPath",value:function(t,e,r,o){if(o||(0,i.Jz)(Array.isArray(t)?t[0]:t)!==t){if(!o){var a=(0,i.U2)(this,t);if(!(t=(0,i.t8)(this,t,e))||!S(P(n.prototype),"_shouldPropertyChange",this).call(this,t,e,a))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,r))return function(t,e,n){var r,o=t.__dataLinkedPaths;if(o)for(var a in o){var s=o[a];(0,i.SG)(a,e)?(r=(0,i.Iu)(a,s,e),t._setPendingPropertyOrPath(r,n,!0,!0)):(0,i.SG)(s,e)&&(r=(0,i.Iu)(s,a,e),t._setPendingPropertyOrPath(r,n,!0,!0))}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,r);this[t]=e}return!1}},{key:"_setUnmanagedPropertyToNode",value:function(t,e,n){n===t[e]&&"object"!=T(n)||(t[e]=n)}},{key:"_setPendingProperty",value:function(t,e,n){var r=this.__dataHasPaths&&(0,i.AZ)(t),o=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,o[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),r?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(r||this[L.NOTIFY]&&this[L.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=n),!0)}},{key:"_setProperty",value:function(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}},{key:"_invalidateProperties",value:function(){this.__dataReady&&this._flushProperties()}},{key:"_enqueueClient",value:function(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}},{key:"_flushProperties",value:function(){this.__dataCounter++,S(P(n.prototype),"_flushProperties",this).call(this),this.__dataCounter--}},{key:"_flushClients",value:function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}},{key:"__enableOrFlushClients",value:function(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(var e=0;e1?o-1:0),s=1;s3?r-3:0),a=3;a1?r-1:0),a=1;ai&&r.push({literal:t.slice(i,n.index)});var o=n[1][0],a=Boolean(n[2]),s=n[3].trim(),c=!1,l="",u=-1;"{"==o&&(u=s.indexOf("::"))>0&&(l=s.substring(u+2),s=s.substring(0,u),c=!0);var f=tt(s),d=[];if(f){for(var p=f.args,h=f.methodName,m=0;m0||n>0;)if(0!=e)if(0!=n){var o=t[e-1][n-1],a=t[e-1][n],s=t[e][n-1],c=void 0;(c=a=0){if(!o[e])throw new Error("invalid async handle: "+t);o[e]=null}}}},56646:function(){"use strict";window.JSCompiler_renameProperty=function(t,e){return t}},67130:function(t,e,n){"use strict";n.d(e,{z:function(){return a},n:function(){return s}});n(56646);var r={},i=/-[a-z]/g,o=/([A-Z])/g;function a(t){return r[t]||(r[t]=t.indexOf("-")<0?t:t.replace(i,(function(t){return t[1].toUpperCase()})))}function s(t){return r[t]||(r[t]=t.replace(o,"-$1").toLowerCase())}},78956:function(t,e,n){"use strict";n.d(e,{d:function(){return i}});n(56646),n(76389),n(21683);function r(t,e){for(var n=0;n-1}var h=!1;function m(t){if(!p(t)&&"touchend"!==t)return a&&h&&o.f6?{passive:!0}:void 0}!function(){try{var t=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}();var y=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),v=[],b={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},g={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function w(t){var e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];var n=t.getRootNode();if(t.id)for(var r=n.querySelectorAll("label[for = ".concat(t.id,"]")),i=0;i-1;if(i[o]===E.mouse.target)return}if(r)return;t.preventDefault(),t.stopPropagation()}};function k(t){for(var e,n=y?["click"]:u,r=0;r0?e[0]:t.target}return t.target}function T(t){var e,n=t.type,r=t.currentTarget[s];if(r){var i=r[n];if(i){if(!t[c]&&(t[c]={},"touch"===n.slice(0,5))){var o=(t=t).changedTouches[0];if("touchstart"===n&&1===t.touches.length&&(E.touch.id=o.identifier),E.touch.id!==o.identifier)return;a||"touchstart"!==n&&"touchmove"!==n||function(t){var e=t.changedTouches[0],n=t.type;if("touchstart"===n)E.touch.x=e.clientX,E.touch.y=e.clientY,E.touch.scrollDecided=!1;else if("touchmove"===n){if(E.touch.scrollDecided)return;E.touch.scrollDecided=!0;var r=function(t){var e="auto",n=t.composedPath&&t.composedPath();if(n)for(var r,i=0;io:"pan-y"===r&&(i=o>a)),i?t.preventDefault():z("track")}}(t)}if(!(e=t[c]).skip){for(var u,f=0;f-1&&u.reset&&u.reset();for(var d,p=0;p=5||i>=5}function F(t,e,n){if(e){var r,i=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1],a=o.x-t.x,s=o.y-t.y,c=0;i&&(r=o.x-i.x,c=o.y-i.y),D(e,"track",{state:t.state,x:n.clientX,y:n.clientY,dx:a,dy:s,ddx:r,ddy:c,sourceEvent:n,hover:function(){return function(t,e){for(var n=document.elementFromPoint(t,e),r=n;r&&r.shadowRoot&&!window.ShadyDOM&&r!==(r=r.shadowRoot.elementFromPoint(t,e));)r&&(n=r);return n}(n.clientX,n.clientY)}})}}function Z(t,e,n){var r=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),o=P(n||e);!o||g[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;var e=P(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;var n=e.getBoundingClientRect(),r=t.pageX,i=t.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}return!1}(e))&&(t.prevent||D(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:n}))}j({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){A(this.info)},mousedown:function(t){if(x(t)){var e=P(t),n=this;S(this.info,(function(t){x(t)||(M("up",e,t),A(n.info))}),(function(t){x(t)&&M("up",e,t),A(n.info)})),M("down",e,t)}},touchstart:function(t){M("down",P(t),t.changedTouches[0],t)},touchend:function(t){M("up",P(t),t.changedTouches[0],t)}}),j({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,A(this.info)},mousedown:function(t){if(x(t)){var e=P(t),n=this,r=function(t){var r=t.clientX,i=t.clientY;N(n.info,r,i)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&z("tap"),n.info.addMove({x:r,y:i}),x(t)||(n.info.state="end",A(n.info)),e&&F(n.info,e,t),n.info.started=!0)};S(this.info,r,(function(t){n.info.started&&r(t),A(n.info)})),this.info.x=t.clientX,this.info.y=t.clientY}},touchstart:function(t){var e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(t){var e=P(t),n=t.changedTouches[0],r=n.clientX,i=n.clientY;N(this.info,r,i)&&("start"===this.info.state&&z("tap"),this.info.addMove({x:r,y:i}),F(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend:function(t){var e=P(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),F(this.info,e,n))}}),j({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(t){x(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){x(t)&&Z(this.info,t)},touchstart:function(t){var e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){Z(this.info,t.changedTouches[0],t)}});var B=P,H=R},50856:function(t,e,n){"use strict";n.d(e,{d:function(){return s}});n(56646);function r(t,e){for(var n=0;n1?n-1:0),i=1;i=0}function i(t){var e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function o(t,e){return 0===t.indexOf(e+".")}function a(t,e){return 0===e.indexOf(t+".")}function s(t,e,n){return e+n.slice(t.length)}function c(t,e){return t===e||o(t,e)||a(t,e)}function l(t){if(Array.isArray(t)){for(var e=[],n=0;n1){for(var a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n can only be templatized once");t.__templatizeOwner=e;var r=(e?e.constructor:j)._parseTemplate(t),i=r.templatizeInstanceClass;i||(i=z(t,r,n),r.templatizeInstanceClass=i),M(t,r,n);var o=function(t){k(n,t);var e=E(n);function n(){return O(this,n),e.apply(this,arguments)}return n}(i);return o.prototype._methodHost=D(t),o.prototype.__dataHost=t,o.prototype.__templatizeOwner=e,o.prototype.__hostProps=r.hostProps,o=o}function B(t,e){for(var n;e;)if(n=e.__templatizeInstance){if(n.__dataHost==t)return n;e=n.__dataHost}else e=e.parentNode;return null}function H(t){return(H="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 U(t,e){for(var n=0;n child");n.disconnect(),e.render()}));return void n.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(var r=this.root.firstChild;r;r=r.nextSibling)this.__children[this.__children.length]=r;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}]),n}((0,n(60995)._)(v((0,i.q)(HTMLElement))));customElements.define("dom-bind",Y);var $=n(28426),X=n(78956),J=n(93252),Q=n(4059),tt=n(21683);function et(t){return(et="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 nt(t,e,n){return(nt="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=ct(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 rt(t,e){for(var n=0;n child");n.disconnect(),t.__render()}));return n.observe(this,{childList:!0}),!1}var r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Z(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(t,e){for(var n,r=this.__instances,i=0;i1&&void 0!==arguments[1]?arguments[1]:0;this.__renderDebouncer=X.d.debounce(this.__renderDebouncer,e>0?tt.Wc.after(e):tt.YA,t.bind(this)),(0,J.E)(this.__renderDebouncer)}},{key:"render",value:function(){this.__debounceRender(this.__render),(0,J.y)()}},{key:"__render",value:function(){this.__ensureTemplatized()&&(this.__applyFullRefresh(),this.__pool.length=0,this._setRenderedItemCount(this.__instances.length),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this.__tryRenderChunk())}},{key:"__applyFullRefresh",value:function(){for(var t=this,e=this.items||[],n=new Array(e.length),r=0;r=o;u--)this.__detachAndRemoveInstance(u)}},{key:"__detachInstance",value:function(t){for(var e=this.__instances[t],n=0;n child");r.disconnect(),t.__render()}));return r.observe(this,{childList:!0}),!1}this.__ctor=Z(n,this,{mutableData:!0,forwardHostProp:function(t,e){this.__instance&&(this.if?this.__instance.forwardHostProp(t,e):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[(0,Q.Jz)(t)]=!0))}})}if(this.__instance){this.__syncHostProperties();var i=this.__instance.children;if(i&&i.length)if(this.previousSibling!==i[i.length-1])for(var o,a=0;a=i.index+i.removed.length?n.set(e,t+i.addedCount-i.removed.length):n.set(e,-1))}));for(var o=0;o=0&&t.linkPaths("items."+n,"selected."+e++)}))}else this.__selectedMap.forEach((function(e){t.linkPaths("selected","items."+e),t.linkPaths("selectedItem","items."+e)}))}},{key:"clearSelection",value:function(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}},{key:"isSelected",value:function(t){return this.__selectedMap.has(t)}},{key:"isIndexSelected",value:function(t){return this.isSelected(this.items[t])}},{key:"__deselectChangedIdx",value:function(t){var e=this,n=this.__selectedIndexForItemIndex(t);if(n>=0){var r=0;this.__selectedMap.forEach((function(t,i){n==r++&&e.deselect(i)}))}}},{key:"__selectedIndexForItemIndex",value:function(t){var e=this.__dataLinkedPaths["items."+t];if(e)return parseInt(e.slice("selected.".length),10)}},{key:"deselect",value:function(t){var e,n=this.__selectedMap.get(t);n>=0&&(this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice("selected",e,1):this.selected=this.selectedItem=null)}},{key:"deselectIndex",value:function(t){this.deselect(this.items[t])}},{key:"select",value:function(t){this.selectIndex(this.items.indexOf(t))}},{key:"selectIndex",value:function(t){var e=this.items[t];this.isSelected(e)?this.toggle&&this.deselectIndex(t):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(e,t),this.__updateLinks(),this.multi?this.push("selected",e):this.selected=this.selectedItem=e)}}]),n}((0,wt.SH)(t))}))($.H3));customElements.define(Tt.is,Tt);n(5618);y._mutablePropertyChange;Boolean;var Rt=n(50856),Lt=(0,r.x)(HTMLElement).prototype},60309:function(t,e,n){"use strict";n.d(e,{CN:function(){return r},$T:function(){return i},mA:function(){return o}});var r=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,i=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,o=/@media\s(.*)/},10868:function(t,e,n){"use strict";n.d(e,{wW:function(){return i},B7:function(){return o},OH:function(){return a}});var r=n(60309);function i(t,e){for(var n in e)null===n?t.style.removeProperty(n):t.style.setProperty(n,e[n])}function o(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return n?n.trim():""}function a(t){var e=r.$T.test(t)||r.CN.test(t);return r.$T.lastIndex=0,r.CN.lastIndex=0,e}},34816:function(t,e,n){"use strict";n.d(e,{ZP:function(){return d}});var r,i=null,o=window.HTMLImports&&window.HTMLImports.whenReady||null;function a(t){requestAnimationFrame((function(){o?o(t):(i||(i=new Promise((function(t){r=t})),"complete"===document.readyState?r():document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&r()}))),i.then((function(){t&&t()})))}))}function s(t,e){for(var n=0;n0?a-4:a;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[u++]=255&e);1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e);return l},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,c=r-i;sc?c:s+a));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,r){for(var i,o,a=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},16638:function(){function t(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},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,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&a>0&&n[o]===r[a];)o--,a--;n[o]!==r[a]&&this[d](n[o],r[a]),o>0&&this[h](n.slice(0,o)),a>0&&this[p](r.slice(0,a),i,null)}else this[p](r,i,e)}},{key:d,value:function(t,e){var n=t[l];this[v](t)&&!t.inert&&(t.inert=!0,n.add(t)),n.has(e)&&(e.inert=!1,n.delete(e)),e[u]=t[u],e[l]=n,t[u]=void 0,t[l]=void 0}},{key:h,value:function(e){var n,r=t(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;i[u].disconnect(),i[u]=void 0;var o,a=t(i[l]);try{for(a.s();!(o=a.n()).done;)o.value.inert=!1}catch(s){a.e(s)}finally{a.f()}i[l]=void 0}}catch(s){r.e(s)}finally{r.f()}}},{key:p,value:function(e,n,r){var i,o=t(e);try{for(o.s();!(i=o.n()).done;){for(var a=i.value,s=a.parentNode,c=s.children,f=new Set,d=0;ds)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|y(t,e),r=c(n),i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return p(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+r(t));if(U(t,ArrayBuffer)||t&&U(t.buffer,ArrayBuffer))return h(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(U(t,SharedArrayBuffer)||t&&U(t.buffer,SharedArrayBuffer)))return h(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return l.from(i,e,n);var o=function(t){if(l.isBuffer(t)){var e=0|m(t.length),n=c(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||V(t.length)?c(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+r(t))}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t){return f(t),c(t<0?0:0|m(t))}function p(t){for(var e=t.length<0?0:0|m(t.length),n=c(e),r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||U(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+r(t));var n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(o)return i?-1:Z(t).length;e=(""+e).toLowerCase(),o=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),V(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){var o,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var u=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=e.length;r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;for(;rn&&(t+=" ... "),""},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(t,e,n,i,o){if(U(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+r(t));if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(o>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),c=Math.min(a,s),u=this.slice(i,o),f=t.slice(e,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function z(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(t,e,n,r,i){return e=+e,n>>>=0,i||z(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,i){return e=+e,n>>>=0,i||z(t,0,n,8),o.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){t>>>=0,e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||I(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||I(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||I(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||I(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e>>>=0,n>>>=0,r)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeFloatLE=function(t,e,n){return M(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return M(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return i},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var i=t.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function U(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function V(t){return t!=t}var K=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)e[r+i]=t[n]+t[i];return e}()},80118:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},42193:function(t,e,n){var r=n(42521);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},29690:function(t,e,n){var r=n(1386),i=n(63571),o=n(67455),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},67675:function(t,e,n){"use strict";var r=n(73832).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},30680:function(t){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},86956:function(t,e,n){var r=n(42521);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},90251:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},44162:function(t,e,n){"use strict";var r,i=n(90251),o=n(37703),a=n(76121),s=n(42521),c=n(52766),l=n(79538),u=n(91471),f=n(62327),d=n(67455).f,p=n(99366),h=n(86594),m=n(1386),y=n(51735),v=a.Int8Array,b=v&&v.prototype,g=a.Uint8ClampedArray,w=g&&g.prototype,_=v&&p(v),k=b&&p(b),x=Object.prototype,E=x.isPrototypeOf,S=m("toStringTag"),A=y("TYPED_ARRAY_TAG"),C=i&&!!h&&"Opera"!==l(a.opera),O=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T=function(t){return s(t)&&c(P,l(t))};for(r in P)a[r]||(C=!1);if((!C||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},C))for(r in P)a[r]&&h(a[r],_);if((!C||!k||k===x)&&(k=_.prototype,C))for(r in P)a[r]&&h(a[r].prototype,k);if(C&&p(w)!==k&&h(w,k),o&&!c(k,S))for(r in O=!0,d(k,S,{get:function(){return s(this)?this[A]:void 0}}),P)a[r]&&u(a[r],A,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:O&&A,aTypedArray:function(t){if(T(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(h){if(E.call(_,t))return t}else for(var e in P)if(c(P,r)){var n=a[e];if(n&&(t===n||E.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(o){if(n)for(var r in P){var i=a[r];i&&c(i.prototype,t)&&delete i.prototype[t]}k[t]&&!n||f(k,t,n?e:C&&b[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(o){if(h){if(n)for(r in P)(i=a[r])&&c(i,t)&&delete i[t];if(_[t]&&!n)return;try{return f(_,t,n?e:C&&v[t]||e)}catch(s){}}for(r in P)!(i=a[r])||i[t]&&!n||f(i,t,e)}},isView:function(t){var e=l(t);return"DataView"===e||c(P,e)},isTypedArray:T,TypedArray:_,TypedArrayPrototype:k}},75117:function(t,e,n){"use strict";var r=n(76121),i=n(37703),o=n(90251),a=n(91471),s=n(39757),c=n(72763),l=n(30680),u=n(25623),f=n(48331),d=n(35639),p=n(6601),h=n(99366),m=n(86594),y=n(2042).f,v=n(67455).f,b=n(6922),g=n(54849),w=n(2995),_=w.get,k=w.set,x="ArrayBuffer",E="DataView",S="Wrong index",A=r.ArrayBuffer,C=A,O=r.DataView,P=O&&O.prototype,T=Object.prototype,R=r.RangeError,L=p.pack,j=p.unpack,I=function(t){return[255&t]},D=function(t){return[255&t,t>>8&255]},z=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},M=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},N=function(t){return L(t,23,4)},F=function(t){return L(t,52,8)},Z=function(t,e){v(t.prototype,e,{get:function(){return _(this)[e]}})},B=function(t,e,n,r){var i=d(n),o=_(t);if(i+e>o.byteLength)throw R(S);var a=_(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+e);return r?c:c.reverse()},H=function(t,e,n,r,i,o){var a=d(n),s=_(t);if(a+e>s.byteLength)throw R(S);for(var c=_(s.buffer).bytes,l=a+s.byteOffset,u=r(+i),f=0;fG;)(U=K[G++])in C||a(C,U,A[U]);V.constructor=C}m&&h(P)!==T&&m(P,T);var W=new O(new C(2)),q=P.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||s(P,{setInt8:function(t,e){q.call(this,t,e<<24>>24)},setUint8:function(t,e){q.call(this,t,e<<24>>24)}},{unsafe:!0})}else C=function(t){l(this,C,x);var e=d(t);k(this,{bytes:b.call(new Array(e),0),byteLength:e}),i||(this.byteLength=e)},O=function(t,e,n){l(this,O,E),l(t,C,E);var r=_(t).byteLength,o=u(e);if(o<0||o>r)throw R("Wrong offset");if(o+(n=void 0===n?r-o:f(n))>r)throw R("Wrong length");k(this,{buffer:t,byteLength:n,byteOffset:o}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=o)},i&&(Z(C,"byteLength"),Z(O,"buffer"),Z(O,"byteLength"),Z(O,"byteOffset")),s(O.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return M(B(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return M(B(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return j(B(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return j(B(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){H(this,1,t,I,e)},setUint8:function(t,e){H(this,1,t,I,e)},setInt16:function(t,e){H(this,2,t,D,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){H(this,2,t,D,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){H(this,4,t,z,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){H(this,4,t,z,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){H(this,4,t,N,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){H(this,8,t,F,e,arguments.length>2?arguments[2]:void 0)}});g(C,x),g(O,E),t.exports={ArrayBuffer:C,DataView:O}},24579:function(t,e,n){"use strict";var r=n(84766),i=n(11588),o=n(48331),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),c=i(t,s),l=i(e,s),u=arguments.length>2?arguments[2]:void 0,f=a((void 0===u?s:i(u,s))-l,s-c),d=1;for(l0;)l in n?n[c]=n[l]:delete n[c],c+=d,l+=d;return n}},6922:function(t,e,n){"use strict";var r=n(84766),i=n(11588),o=n(48331);t.exports=function(t){for(var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,l=void 0===c?n:i(c,n);l>s;)e[s++]=t;return e}},20702:function(t,e,n){"use strict";var r=n(25097).forEach,i=n(49719),o=n(76571),a=i("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},54513:function(t,e,n){"use strict";var r=n(43322),i=n(84766),o=n(95913),a=n(19439),s=n(48331),c=n(32385),l=n(85111);t.exports=function(t){var e,n,u,f,d,p,h=i(t),m="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,b=void 0!==v,g=l(h),w=0;if(b&&(v=r(v,y>2?arguments[2]:void 0,2)),null==g||m==Array&&a(g))for(n=new m(e=s(h.length));e>w;w++)p=b?v(h[w],w):h[w],c(n,w,p);else for(d=(f=g.call(h)).next,n=new m;!(u=d.call(f)).done;w++)p=b?o(f,v,[u.value,w],!0):u.value,c(n,w,p);return n.length=w,n}},59729:function(t,e,n){var r=n(19969),i=n(48331),o=n(11588),a=function(t){return function(e,n,a){var s,c=r(e),l=i(c.length),u=o(a,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},25097:function(t,e,n){var r=n(43322),i=n(23169),o=n(84766),a=n(48331),s=n(48347),c=[].push,l=function(t){var e=1==t,n=2==t,l=3==t,u=4==t,f=6==t,d=5==t||f;return function(p,h,m,y){for(var v,b,g=o(p),w=i(g),_=r(h,m,3),k=a(w.length),x=0,E=y||s,S=e?E(p,k):n?E(p,0):void 0;k>x;x++)if((d||x in w)&&(b=_(v=w[x],x,g),t))if(e)S[x]=b;else if(b)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:c.call(S,v)}else if(u)return!1;return f?-1:l||u?u:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},8139:function(t,e,n){"use strict";var r=n(19969),i=n(25623),o=n(48331),a=n(49719),s=n(76571),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),d=s("indexOf",{ACCESSORS:!0,1:0}),p=u||!f||!d;t.exports=p?function(t){if(u)return l.apply(this,arguments)||0;var e=r(this),n=o(e.length),a=n-1;for(arguments.length>1&&(a=c(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:l},1566:function(t,e,n){var r=n(72763),i=n(1386),o=n(56962),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},49719:function(t,e,n){"use strict";var r=n(72763);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},76571:function(t,e,n){var r=n(37703),i=n(72763),o=n(52766),a=Object.defineProperty,s={},c=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],l=!!o(e,"ACCESSORS")&&e.ACCESSORS,u=o(e,0)?e[0]:c,f=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(l&&!r)return!0;var t={length:-1};l?a(t,1,{enumerable:!0,get:c}):t[1]=1,n.call(t,u,f)}))}},59856:function(t,e,n){var r=n(80118),i=n(84766),o=n(23169),a=n(48331),s=function(t){return function(e,n,s,c){r(n);var l=i(e),u=o(l),f=a(l.length),d=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(d in u){c=u[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in u&&(c=n(c,u[d],d,l));return c}};t.exports={left:s(!1),right:s(!0)}},48347:function(t,e,n){var r=n(42521),i=n(43964),o=n(1386)("species");t.exports=function(t,e){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},13561:function(t,e,n){"use strict";var r=n(1035),i=n(80118),o=n(86956),a=n(63571),s=n(91471),c=n(39757),l=n(1386),u=n(2995),f=n(77642)("Promise"),d=u.set,p=u.get,h=l("toStringTag"),m=function(t){var e=p(this).iterator,n=e.return;return void 0===n?f.resolve({done:!0,value:t}):o(n.call(e,t))},y=function(t){var e=p(this).iterator,n=e.throw;return void 0===n?f.reject(t):n.call(e,t)};t.exports=function(t,e){var n=function(t){t.next=i(t.iterator.next),t.done=!1,d(this,t)};return n.prototype=c(a(r.AsyncIterator.prototype),{next:function(e){var n=p(this);if(n.done)return f.resolve({done:!0,value:void 0});try{return f.resolve(o(t.call(n,e,f)))}catch(r){return f.reject(r)}},return:m,throw:y}),e||s(n.prototype,h,"Generator"),n}},20877:function(t,e,n){"use strict";var r=n(80118),i=n(86956),o=n(77642)("Promise"),a=[].push,s=function(t){var e=0==t,n=1==t,s=2==t,c=3==t;return function(t,l){i(t);var u=r(t.next),f=e?[]:void 0;return e||r(l),new o((function(r,d){!function p(){try{o.resolve(i(u.call(t))).then((function(t){try{if(i(t).done)r(e?f:!c&&(s||void 0));else{var u=t.value;e?(a.call(f,u),p()):o.resolve(l(u)).then((function(t){n?p():s?t?p():r(!1):t?r(c||u):p()}),d)}}catch(h){d(h)}}),d)}catch(h){d(h)}}()}))}};t.exports={toArray:s(0),forEach:s(1),every:s(2),some:s(3),find:s(4)}},48199:function(t,e,n){var r,i,o=n(76121),a=n(4682),s=n(99366),c=n(52766),l=n(91471),u=n(1386),f=n(8451),d=u("asyncIterator"),p=o.AsyncIterator,h=a.AsyncIteratorPrototype;if(!f)if(h)r=h;else if("function"==typeof p)r=p.prototype;else if(a.USE_FUNCTION_CONSTRUCTOR||o.USE_FUNCTION_CONSTRUCTOR)try{i=s(s(s(Function("return async function*(){}()")()))),s(i)===Object.prototype&&(r=i)}catch(m){}r||(r={}),c(r,d)||l(r,d,(function(){return this})),t.exports=r},95913:function(t,e,n){var r=n(86956);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t.return;throw void 0!==o&&r(o.call(t)),a}}},4684:function(t,e,n){var r=n(1386)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(s){}return n}},42849:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},79538:function(t,e,n){var r=n(16395),i=n(42849),o=n(1386)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),o))?n:a?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},20737:function(t,e,n){"use strict";var r=n(86956),i=n(80118);t.exports=function(){for(var t=r(this),e=i(t.add),n=0,o=arguments.length;n1?arguments[1]:void 0;return r(this),(e=void 0!==l)&&r(l),null==t?new this:(n=[],e?(a=0,s=i(l,c>2?arguments[2]:void 0,2),o(t,(function(t){n.push(s(t,a++))}))):o(t,n.push,n),new this(n))}},11171:function(t){"use strict";t.exports=function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}},95365:function(t,e,n){"use strict";var r=n(67455).f,i=n(63571),o=n(39757),a=n(43322),s=n(30680),c=n(64572),l=n(94247),u=n(8395),f=n(37703),d=n(9154).fastKey,p=n(2995),h=p.set,m=p.getterFor;t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){s(t,u,e),h(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&c(r,t[l],t,n)})),p=m(e),y=function(t,e,n){var r,i,o=p(t),a=v(t,e);return a?a.value=n:(o.last=a={index:i=d(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},v=function(t,e){var n,r=p(t),i=d(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(u.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=v(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),f?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!v(this,t)}}),o(u.prototype,n?{get:function(t){var e=v(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),f&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(t,e,n){var r=e+" Iterator",i=m(e),o=m(r);l(t,e,(function(t,e){h(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(e)}}},59285:function(t,e,n){"use strict";var r=n(39757),i=n(9154).getWeakData,o=n(86956),a=n(42521),s=n(30680),c=n(64572),l=n(25097),u=n(52766),f=n(2995),d=f.set,p=f.getterFor,h=l.find,m=l.findIndex,y=0,v=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},g=function(t,e){return h(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,r){s(t,f,e),d(t,{type:e,id:y++,frozen:void 0}),null!=r&&c(r,t[l],t,n)})),h=p(e),m=function(t,e,n){var r=h(t),a=i(o(e),!0);return!0===a?v(r).set(e,n):a[r.id]=n,t};return r(f.prototype,{delete:function(t){var e=h(this);if(!a(t))return!1;var n=i(t);return!0===n?v(e).delete(t):n&&u(n,e.id)&&delete n[e.id]},has:function(t){var e=h(this);if(!a(t))return!1;var n=i(t);return!0===n?v(e).has(t):n&&u(n,e.id)}}),r(f.prototype,n?{get:function(t){var e=h(this);if(a(t)){var n=i(t);return!0===n?v(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),f}}},35246:function(t,e,n){"use strict";var r=n(7309),i=n(76121),o=n(20676),a=n(62327),s=n(9154),c=n(64572),l=n(30680),u=n(42521),f=n(72763),d=n(4684),p=n(54849),h=n(31985);t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),v=m?"set":"add",b=i[t],g=b&&b.prototype,w=b,_={},k=function(t){var e=g[t];a(g,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!u(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!u(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,"function"!=typeof b||!(y||g.forEach&&!f((function(){(new b).entries().next()})))))w=n.getConstructor(e,t,m,v),s.REQUIRED=!0;else if(o(t,!0)){var x=new w,E=x[v](y?{}:-0,1)!=x,S=f((function(){x.has(1)})),A=d((function(t){new b(t)})),C=!y&&f((function(){for(var t=new b,e=5;e--;)t[v](e,e);return!t.has(-0)}));A||((w=e((function(e,n){l(e,w,t);var r=h(new b,e,w);return null!=n&&c(n,r[v],r,m),r}))).prototype=g,g.constructor=w),(S||C)&&(k("delete"),k("has"),m&&k("get")),(C||E)&&k(v),y&&g.clear&&delete g.clear}return _[t]=w,r({global:!0,forced:w!=b},_),p(w,t),y||n.setStrong(w,t,m),w}},49098:function(t,e,n){var r=n(8974),i=n(38742),o=n(63571),a=n(42521),s=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=o(null)};s.prototype.get=function(t,e){return this[t]||(this[t]=e())},s.prototype.next=function(t,e,n){var o=n?this.objectsByIndex[t]||(this.objectsByIndex[t]=new i):this.primitives||(this.primitives=new r),a=o.get(e);return a||o.set(e,a=new s),a};var c=new s;t.exports=function(){var t,e,n=c,r=arguments.length;for(t=0;t"+a+""}},34427:function(t,e,n){"use strict";var r=n(94109).IteratorPrototype,i=n(63571),o=n(5938),a=n(54849),s=n(23403),c=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,l,!1,!0),s[l]=c,t}},91471:function(t,e,n){var r=n(37703),i=n(67455),o=n(5938);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},5938:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},32385:function(t,e,n){"use strict";var r=n(40687),i=n(67455),o=n(5938);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},59671:function(t,e,n){"use strict";var r=n(72763),i=n(25427).start,o=Math.abs,a=Date.prototype,s=a.getTime,c=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!r((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+i(o(e),r?6:4,0)+"-"+i(t.getUTCMonth()+1,2,0)+"-"+i(t.getUTCDate(),2,0)+"T"+i(t.getUTCHours(),2,0)+":"+i(t.getUTCMinutes(),2,0)+":"+i(t.getUTCSeconds(),2,0)+"."+i(n,3,0)+"Z"}:c},83976:function(t,e,n){"use strict";var r=n(86956),i=n(40687);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!==t)}},94247:function(t,e,n){"use strict";var r=n(7309),i=n(34427),o=n(99366),a=n(86594),s=n(54849),c=n(91471),l=n(62327),u=n(1386),f=n(8451),d=n(23403),p=n(94109),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=u("iterator"),v="keys",b="values",g="entries",w=function(){return this};t.exports=function(t,e,n,u,p,_,k){i(n,e,u);var x,E,S,A=function(t){if(t===p&&R)return R;if(!m&&t in P)return P[t];switch(t){case v:case b:case g:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",O=!1,P=t.prototype,T=P[y]||P["@@iterator"]||p&&P[p],R=!m&&T||A(p),L="Array"==e&&P.entries||T;if(L&&(x=o(L.call(new t)),h!==Object.prototype&&x.next&&(f||o(x)===h||(a?a(x,h):"function"!=typeof x[y]&&c(x,y,w)),s(x,C,!0,!0),f&&(d[C]=w))),p==b&&T&&T.name!==b&&(O=!0,R=function(){return T.call(this)}),f&&!k||P[y]===R||c(P,y,R),d[e]=R,p)if(E={values:A(b),keys:_?R:A(v),entries:A(g)},k)for(S in E)(m||O||!(S in P))&&l(P,S,E[S]);else r({target:e,proto:!0,forced:m||O},E);return E}},56316:function(t,e,n){var r=n(1035),i=n(52766),o=n(89103),a=n(67455).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},37703:function(t,e,n){var r=n(72763);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6004:function(t,e,n){var r=n(76121),i=n(42521),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},83729:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},60987:function(t,e,n){var r=n(58635);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},58635:function(t,e,n){var r=n(77642);t.exports=r("navigator","userAgent")||""},56962:function(t,e,n){var r,i,o=n(76121),a=n(58635),s=o.process,c=s&&s.versions,l=c&&c.v8;l?i=(r=l.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},64731:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7309:function(t,e,n){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)}var i=n(76121),o=n(38769).f,a=n(91471),s=n(62327),c=n(6565),l=n(94488),u=n(20676);t.exports=function(t,e){var n,f,d,p,h,m=t.target,y=t.global,v=t.stat;if(n=y?i:v?i[m]||c(m,{}):(i[m]||{}).prototype)for(f in e){if(p=e[f],d=t.noTargetGet?(h=o(n,f))&&h.value:n[f],!u(y?f:m+(v?".":"#")+f,t.forced)&&void 0!==d){if(r(p)===r(d))continue;l(p,d)}(t.sham||d&&d.sham)&&a(p,"sham",!0),s(n,f,p,t)}}},72763:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},1325:function(t,e,n){"use strict";n(48775);var r=n(62327),i=n(72763),o=n(1386),a=n(73546),s=n(91471),c=o("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$
    ")})),u="$0"==="a".replace(/./,"$0"),f=o("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,f){var h=o(t),m=!i((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),y=m&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!m||!y||"replace"===t&&(!l||!u||d)||"split"===t&&!p){var v=/./[h],b=n(h,""[t],(function(t,e,n,r,i){return e.exec===a?m&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),g=b[0],w=b[1];r(String.prototype,t,g),r(RegExp.prototype,h,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},25538:function(t,e,n){"use strict";var r=n(43964),i=n(48331),o=n(43322);t.exports=function t(e,n,a,s,c,l,u,f){for(var d,p=c,h=0,m=!!u&&o(u,f,3);h0&&r(d))p=t(e,n,d,i(d.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p}},91104:function(t,e,n){var r=n(72763);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},43322:function(t,e,n){var r=n(80118);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},48659:function(t,e,n){"use strict";var r=n(80118),i=n(42521),o=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i>1,y=23===s?r(2,-24)-r(2,-77):0,v=t<0||0===t&&1/t<0?1:0,b=0;for((t=n(t))!=t||t===e?(u=t!=t?1:0,l=h):(l=i(o(t)/a),t*(f=r(2,-l))<1&&(l--,f*=2),(t+=l+m>=1?y/f:y*r(2,1-m))*f>=2&&(l++,f/=2),l+m>=h?(u=0,l=h):l+m>=1?(u=(t*f-1)*r(2,s),l+=m):(u=t*r(2,m-1)*r(2,s),l=0));s>=8;d[b++]=255&u,u/=256,s-=8);for(l=l<0;d[b++]=255&l,l/=256,p-=8);return d[--b]|=128*v,d},unpack:function(t,n){var i,o=t.length,a=8*o-n-1,s=(1<>1,l=a-7,u=o-1,f=t[u--],d=127&f;for(f>>=7;l>0;d=256*d+t[u],u--,l-=8);for(i=d&(1<<-l)-1,d>>=-l,l+=n;l>0;i=256*i+t[u],u--,l-=8);if(0===d)d=1-c;else{if(d===s)return i?NaN:f?-1/0:e;i+=r(2,n),d-=c}return(f?-1:1)*i*r(2,d-n)}}},23169:function(t,e,n){var r=n(72763),i=n(42849),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},31985:function(t,e,n){var r=n(42521),i=n(86594);t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},99835:function(t,e,n){var r=n(4682),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},9154:function(t,e,n){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)}var i=n(32048),o=n(42521),a=n(52766),s=n(67455).f,c=n(51735),l=n(91104),u=c("meta"),f=0,d=Object.isExtensible||function(){return!0},p=function(t){s(t,u,{value:{objectID:"O"+ ++f,weakData:{}}})},h=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==r(t)?t:("string"==typeof t?"S":"P")+t;if(!a(t,u)){if(!d(t))return"F";if(!e)return"E";p(t)}return t[u].objectID},getWeakData:function(t,e){if(!a(t,u)){if(!d(t))return!0;if(!e)return!1;p(t)}return t[u].weakData},onFreeze:function(t){return l&&h.REQUIRED&&d(t)&&!a(t,u)&&p(t),t}};i[u]=!0},2995:function(t,e,n){var r,i,o,a=n(45546),s=n(76121),c=n(42521),l=n(91471),u=n(52766),f=n(52562),d=n(32048),p=s.WeakMap;if(a){var h=new p,m=h.get,y=h.has,v=h.set;r=function(t,e){return v.call(h,t,e),e},i=function(t){return m.call(h,t)||{}},o=function(t){return y.call(h,t)}}else{var b=f("state");d[b]=!0,r=function(t,e){return l(t,b,e),e},i=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},19439:function(t,e,n){var r=n(1386),i=n(23403),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},43964:function(t,e,n){var r=n(42849);t.exports=Array.isArray||function(t){return"Array"==r(t)}},20676:function(t,e,n){var r=n(72763),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==l||n!=c&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},56038:function(t,e,n){var r=n(42521),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},42521:function(t){function e(t){return(e="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(t){return"object"===e(t)?null!==t:"function"==typeof t}},8451:function(t){t.exports=!1},16272:function(t,e,n){var r=n(42521),i=n(42849),o=n(1386)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},64572:function(t,e,n){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)}var i=n(86956),o=n(19439),a=n(48331),s=n(43322),c=n(85111),l=n(95913),u=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,d){var p,h,m,y,v,b,g,w=s(e,n,f?2:1);if(d)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(m=0,y=a(t.length);y>m;m++)if((v=f?w(i(g=t[m])[0],g[1]):w(t[m]))&&v instanceof u)return v;return new u(!1)}p=h.call(t)}for(b=p.next;!(g=b.call(p)).done;)if("object"==r(v=l(p,w,g.value,f))&&v&&v instanceof u)return v;return new u(!1)}).stop=function(t){return new u(!0,t)}},36020:function(t,e,n){"use strict";var r=n(1035),i=n(80118),o=n(86956),a=n(63571),s=n(91471),c=n(39757),l=n(1386),u=n(2995),f=u.set,d=u.get,p=l("toStringTag"),h=function(t){var e=d(this).iterator,n=e.return;return void 0===n?{done:!0,value:t}:o(n.call(e,t))},m=function(t){var e=d(this).iterator,n=e.throw;if(void 0===n)throw t;return n.call(e,t)};t.exports=function(t,e){var n=function(t){t.next=i(t.iterator.next),t.done=!1,f(this,t)};return n.prototype=c(a(r.Iterator.prototype),{next:function(){var e=d(this),n=e.done?void 0:t.apply(e,arguments);return{done:e.done,value:n}},return:h,throw:m}),e||s(n.prototype,p,"Generator"),n}},94109:function(t,e,n){"use strict";var r,i,o,a=n(99366),s=n(91471),c=n(52766),l=n(1386),u=n(8451),f=l("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):d=!0),null==r&&(r={}),u||c(r,f)||s(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},23403:function(t){t.exports={}},7230:function(t,e,n){"use strict";var r=n(86956);t.exports=function(t,e){var n,i=r(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof e&&"function"!=typeof o)throw TypeError("At least one callback required");return i.has(t)?(n=i.get(t),"function"==typeof e&&(n=e(n),i.set(t,n))):"function"==typeof o&&(n=o(),i.set(t,n)),n}},89188:function(t){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:e},63094:function(t,e,n){var r=n(4380),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),c=o(2,127)*(2-s),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=i(t),u=r(t);return oc||n!=n?u*(1/0):u*n}},39370:function(t){var e=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:e(1+t)}},50969:function(t){t.exports=Math.scale||function(t,e,n,r,i){return 0===arguments.length||t!=t||e!=e||n!=n||r!=r||i!=i?NaN:t===1/0||t===-1/0?t:(t-e)*(i-r)/(n-e)+r}},4380:function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},26745:function(t,e,n){var r,i,o,a,s,c,l,u,f=n(76121),d=n(38769).f,p=n(42849),h=n(94825).set,m=n(60987),y=f.MutationObserver||f.WebKitMutationObserver,v=f.process,b=f.Promise,g="process"==p(v),w=d(f,"queueMicrotask"),_=w&&w.value;_||(r=function(){var t,e;for(g&&(t=v.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},g?a=function(){v.nextTick(r)}:y&&!m?(s=!0,c=document.createTextNode(""),new y(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):b&&b.resolve?(l=b.resolve(void 0),u=l.then,a=function(){u.call(l,r)}):a=function(){h.call(f,r)}),t.exports=_||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},34860:function(t,e,n){var r=n(76121);t.exports=r.Promise},54020:function(t,e,n){var r=n(72763);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},50307:function(t,e,n){var r=n(72763),i=n(1386),o=n(8451),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},45546:function(t,e,n){var r=n(76121),i=n(99835),o=r.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},40500:function(t,e,n){"use strict";var r=n(80118),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},11330:function(t,e,n){var r=n(16272);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},30097:function(t,e,n){var r=n(76121).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},30706:function(t,e,n){var r=n(76121),i=n(36842).trim,o=n(82350),a=r.parseFloat,s=1/a(o+"-0")!=-1/0;t.exports=s?function(t){var e=i(String(t)),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},92437:function(t,e,n){var r=n(76121),i=n(36842).trim,o=n(82350),a=r.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(o+"08")||22!==a(o+"0x16");t.exports=c?function(t,e){var n=i(String(t));return a(n,e>>>0||(s.test(n)?16:10))}:a},81179:function(t,e,n){"use strict";var r=n(37703),i=n(72763),o=n(31792),a=n(92719),s=n(77751),c=n(84766),l=n(23169),u=Object.assign,f=Object.defineProperty;t.exports=!u||i((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||o(u({},e)).join("")!=i}))?function(t,e){for(var n=c(t),i=arguments.length,u=1,f=a.f,d=s.f;i>u;)for(var p,h=l(arguments[u++]),m=f?o(h).concat(f(h)):o(h),y=m.length,v=0;y>v;)p=m[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:u},63571:function(t,e,n){var r,i=n(86956),o=n(37532),a=n(64731),s=n(32048),c=n(24174),l=n(6004),u=n(52562),f=u("IE_PROTO"),d=function(){},p=function(t){return"