diff --git a/home-assistant-polymer b/home-assistant-polymer index d5a161769..cb11c6b3e 160000 --- a/home-assistant-polymer +++ b/home-assistant-polymer @@ -1 +1 @@ -Subproject commit d5a161769ceed8d672b24f0c267cfa05216f2936 +Subproject commit cb11c6b3eabc9f35fbcb9f6dcc864d1f83589726 diff --git a/supervisor/api/panel/entrypoint.js b/supervisor/api/panel/entrypoint.js index 4c0245b00..5502f78c0 100644 --- a/supervisor/api/panel/entrypoint.js +++ b/supervisor/api/panel/entrypoint.js @@ -1,14 +1,14 @@ function loadES5() { var el = document.createElement('script'); - el.src = '/api/hassio/app/frontend_es5/entrypoint.2bed31c0.js'; + el.src = '/api/hassio/app/frontend_es5/entrypoint.1796fc9b.js'; document.body.appendChild(el); } if (/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent)) { loadES5(); } else { try { - new Function("import('/api/hassio/app/frontend_latest/entrypoint.74ae643f.js')")(); + new Function("import('/api/hassio/app/frontend_latest/entrypoint.5a9040a4.js')")(); } catch (err) { loadES5(); } diff --git a/supervisor/api/panel/entrypoint.js.gz b/supervisor/api/panel/entrypoint.js.gz index 61f6f0efb..c12bf6486 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/01378878.js b/supervisor/api/panel/frontend_es5/01378878.js deleted file mode 100644 index 7f378c3dc..000000000 --- a/supervisor/api/panel/frontend_es5/01378878.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[534],{68441:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=new WeakMap;t.default=function(e){var t=l.get(e);return t||(t=Object.create(null),l.set(e,t)),t}},78643:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluralRules=void 0;var a=l(87480),n=l(43965),r=a.__importDefault(l(68441));function o(e,t){if(!(e instanceof u))throw new TypeError("Method Intl.PluralRules.prototype."+t+" called on incompatible receiver "+String(e))}function i(e,t,l,a){var n=a.IntegerDigits,r=a.NumberOfFractionDigits,o=a.FractionDigits;return u.localeData[e].fn(r?n+"."+o:n,"ordinal"===t)}var u=function(){function e(t,l){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.PluralRules must be called with 'new'");return n.InitializePluralRules(this,t,l,{availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale,getInternalSlots:r.default})}return e.prototype.resolvedOptions=function(){o(this,"resolvedOptions");var t=Object.create(null),l=r.default(this);return t.locale=l.locale,t.type=l.type,["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach((function(e){var a=l[e];void 0!==a&&(t[e]=a)})),t.pluralCategories=a.__spreadArray([],e.localeData[t.locale].categories[t.type]),t},e.prototype.select=function(e){o(this,"select");var t=n.ToNumber(e);return n.ResolvePlural(this,t,{getInternalSlots:r.default,PluralRuleSelect:i})},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,l){return n.SupportedLocales(e.availableLocales,n.CanonicalizeLocaleList(t),l)},e.__addLocaleData=function(){for(var t=[],l=0;le.length)&&(t=e.length);for(var n=0,u=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u={exports:{}};function r(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}u.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:r,changeDefaults:function(e){u.exports.defaults=e}};var i=/[&<>"']/,a=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(e){return l[e]},D=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(D,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g,g=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,d={},m=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,F=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(e,t){d[" "+e]||(m.test(e)?d[" "+e]=e+"/":d[" "+e]=k(e,"/",!0));var n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(A,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(F,"$1")+t:e+t}function k(e,t,n){var u=e.length;if(0===u)return"";for(var r=0;r=0&&"\\"===n[r];)u=!u;return u?"|":" |"})).split(/ \|/),u=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},T=u.exports.defaults,I=_,R=y,O=C,j=S;function q(e,t,n){var u=t.href,r=t.title?O(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:u,title:r,text:i}:{type:"image",raw:n,href:u,title:r,text:O(i)}}var L=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:I(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],u=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var u=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=u.length?e.slice(u.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:u}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var u=I(n,"#");this.options.pedantic?n=u.trim():u&&!/ $/.test(u)||(n=u.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:R(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var u,r=n.align.length;for(u=0;u ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,u,r,i,a,s,o,l,c,D=t[0],p=t[2],h=p.length>1,g={type:"list",raw:D,ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]},f=t[0].match(this.rules.block.item),d=!1,m=f.length;r=this.rules.block.listItemStart.exec(f[0]);for(var A=0;Ar[1].length:i[1].length>=r[0].length||i[1].length>3){f.splice(A,2,f[A]+(!this.options.pedantic&&i[1].length/i.test(u[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(u[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(u[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:u[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):O(u[0]):u[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var u=I(n.slice(0,-1),"\\");if((n.length-u.length)%2==0)return}else{var r=j(t[2],"()");if(r>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var a=t[2],s="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);o&&(a=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),q(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var u=(n[2]||n[1]).replace(/\s+/g," ");if(!(u=t[u.toLowerCase()])||!u.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return q(n,u,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var u=this.rules.inline.emStrong.lDelim.exec(e);if(u&&(!u[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=u[1]||u[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var i,a,s=u[0].length-1,o=s,l=0,c="*"===u[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);null!=(u=c.exec(t));)if(i=u[1]||u[2]||u[3]||u[4]||u[5]||u[6])if(a=i.length,u[3]||u[4])o+=a;else if(!((u[5]||u[6])&&s%3)||(s+a)%3){if(!((o-=a)>0)){if(o+l-a<=0&&!t.slice(c.lastIndex).match(c)&&(a=Math.min(a,a+o+l)),Math.min(s,a)%2)return{type:"em",raw:e.slice(0,s+u.index+a+1),text:e.slice(1,s+u.index+a)};if(Math.min(s,a)%2==0)return{type:"strong",raw:e.slice(0,s+u.index+a+1),text:e.slice(2,s+u.index+a-1)}}}else l+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),u=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return u&&r&&(n=n.substring(1,n.length-1)),n=O(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,u,r=this.rules.inline.autolink.exec(e);if(r)return u="@"===r[2]?"mailto:"+(n=O(this.options.mangle?t(r[1]):r[1])):n=O(r[1]),{type:"link",raw:r[0],text:n,href:u,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var u,r;if("@"===n[2])r="mailto:"+(u=O(this.options.mangle?t(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);u=O(n[0]),r="www."===n[1]?"http://"+u:u}return{type:"link",raw:n[0],text:u,href:r,tokens:[{type:"text",raw:u,text:u}]}}},t.inlineText=function(e,t,n){var u,r=this.rules.inline.text.exec(e);if(r)return u=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):O(r[0]):r[0]:O(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:u}},e}(),Z=w,P=x,U=B,V={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Z,table:Z,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};V.def=P(V.def).replace("label",V._label).replace("title",V._title).getRegex(),V.bullet=/(?:[*+-]|\d{1,9}[.)])/,V.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,V.item=P(V.item,"gm").replace(/bull/g,V.bullet).getRegex(),V.listItemStart=P(/^( *)(bull) */).replace("bull",V.bullet).getRegex(),V.list=P(V.list).replace(/bull/g,V.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+V.def.source+")").getRegex(),V._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",V._comment=/|$)/,V.html=P(V.html,"i").replace("comment",V._comment).replace("tag",V._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),V.paragraph=P(V._paragraph).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",V._tag).getRegex(),V.blockquote=P(V.blockquote).replace("paragraph",V.paragraph).getRegex(),V.normal=U({},V),V.gfm=U({},V.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),V.gfm.nptable=P(V.gfm.nptable).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",V._tag).getRegex(),V.gfm.table=P(V.gfm.table).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",V._tag).getRegex(),V.pedantic=U({},V.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",V._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Z,paragraph:P(V.normal._paragraph).replace("hr",V.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",V.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Z,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};W.punctuation=P(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/\\\*|\\_/g,W._comment=P(V._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),W.emStrong.lDelim=P(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=P(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=P(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,W.autolink=P(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=P(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=P(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=P(W.reflink).replace("label",W._label).getRegex(),W.reflinkSearch=P(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal=U({},W),W.pedantic=U({},W.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()}),W.gfm=U({},W.normal,{escape:P(W.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),u+="&#"+n+";";return u}var Y=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||N,this.options.tokenizer=this.options.tokenizer||new X,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:M.normal,inline:G.normal};this.options.pedantic?(t.block=M.pedantic,t.inline=G.pedantic):this.options.gfm&&(t.block=M.gfm,this.options.breaks?t.inline=G.breaks:t.inline=G.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,u,r,i=t.prototype;return i.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(e,t,n){var u,r,i,a;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(u=this.tokenizer.space(e))e=e.substring(u.raw.length),u.type&&t.push(u);else if(u=this.tokenizer.code(e))e=e.substring(u.raw.length),(a=t[t.length-1])&&"paragraph"===a.type?(a.raw+="\n"+u.raw,a.text+="\n"+u.text):t.push(u);else if(u=this.tokenizer.fences(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.heading(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.nptable(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.hr(e))e=e.substring(u.raw.length),t.push(u);else if(u=this.tokenizer.blockquote(e))e=e.substring(u.raw.length),u.tokens=this.blockTokens(u.text,[],n),t.push(u);else if(u=this.tokenizer.list(e)){for(e=e.substring(u.raw.length),i=u.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+Q("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+Q("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(o=""),s=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,u)){e=e.substring(r.raw.length),n=r.inLink,u=r.inRawBlock;var D=t[t.length-1];D&&"text"===r.type&&"text"===D.type?(D.raw+=r.raw,D.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,u)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);var p=t[t.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,u),t.push(r)):p&&"text"===r.type&&"text"===p.type?(p.raw+=r.raw,p.text+=r.text):t.push(r)}else if(r=this.tokenizer.emStrong(e,l,o))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,u),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,u),t.push(r);else if(r=this.tokenizer.autolink(e,K))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,K))){if(r=this.tokenizer.inlineText(e,u,J))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),s=!0,(i=t[t.length-1])&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,r=[{key:"rules",get:function(){return{block:M,inline:G}}}],(u=null)&&e(n.prototype,u),r&&e(n,r),t}(),ee=u.exports.defaults,te=v,ne=C,ue=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,n){var u=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,u);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",u?'
'+(n?e:ne(e,!0))+"
\n":"
"+(n?e:ne(e,!0))+"
\n"},t.blockquote=function(e){return"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,n,u){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,n){var u=t?"ol":"ul";return"<"+u+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

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

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

    "+Fe(u.message+"",!0)+"
    ";throw u}},Ee.Parser=pe,Ee.parser=pe.parse,Ee.Renderer=ge,Ee.TextRenderer=fe,Ee.Lexer=De,Ee.lexer=De.lex,Ee.Tokenizer=he,Ee.Slugger=de,Ee.parse=Ee,Ee},"object"===a(t)?e.exports=i():void 0===(r="function"==typeof(u=i)?u.call(t,n,t,e):u)||(e.exports=r)},60841:function(e,t,n){var u=n(8300).FilterCSS,r=n(8300).getDefaultWhiteList,i=n(58511);function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var s=new u;function o(e){return e.replace(l,"<").replace(c,">")}var l=//g,D=/"/g,p=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,g=/:?/gim,f=/&newline;?/gim,d=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,m=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,A=/u\s*r\s*l\s*\(.*/gi;function F(e){return e.replace(D,""")}function b(e){return e.replace(p,'"')}function k(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function C(e){return e.replace(g,":").replace(f," ")}function E(e){for(var t="",n=0,u=e.length;n/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=a,t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,u){if(n=x(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(d.lastIndex=0,d.test(n))return""}else if("style"===t){if(m.lastIndex=0,m.test(n))return"";if(A.lastIndex=0,A.test(n)&&(d.lastIndex=0,d.test(n)))return"";!1!==u&&(n=(u=u||s).process(n))}return n=v(n)},t.escapeHtml=o,t.escapeQuote=F,t.unescapeQuote=b,t.escapeHtmlEntities=k,t.escapeDangerHtml5Entities=C,t.clearNonPrintableCharacter=E,t.friendlyAttrValue=x,t.escapeAttrValue=v,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),u=[],r=!1;return{onIgnoreTag:function(a,s,o){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(o.isClosing){var l="[/removed]",c=o.position+l.length;return u.push([!1!==r?r:o.position,c]),r=!1,l}return r||(r=o.position),"[removed]"}return t(a,s,o)},remove:function(e){var t="",n=0;return i.forEach(u,(function(u){t+=e.slice(n,u[0]),n=u[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){return e.replace(w,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.cssFilter=s,t.getDefaultCSSWhiteList=r},62173:function(e,t,n){var u=n(60841),r=n(79542),i=n(61585);function a(e,t){return new i(t).process(e)}for(var s in(t=e.exports=a).filterXSS=a,t.FilterXSS=i,u)t[s]=u[s];for(var s in r)t[s]=r[s];"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},79542:function(e,t,n){var u=n(58511);function r(e){var t=u.spaceIndex(e);if(-1===t)var n=e.slice(1,-1);else n=e.slice(1,t+1);return"/"===(n=u.trim(n).toLowerCase()).slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}function i(e){return"0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function l(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){"use strict";var u="",a=0,s=!1,o=!1,l=0,c=e.length,D="",p="";e:for(l=0;l"===h){u+=n(e.slice(a,s)),D=r(p=e.slice(s,l+1)),u+=t(s,u.length,D,p,i(p)),a=l+1,s=!1;continue}if('"'===h||"'"===h)for(var g=1,f=e.charAt(l-g);""===f.trim()||"="===f;){if("="===f){o=h;continue e}f=e.charAt(l-++g)}}else if(h===o){o=!1;continue}}return a";var A=function(e){var t=o.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=o.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=o.trim(e.slice(0,-1))),{html:e,closing:n}}(a),F=n[r],b=s(A.html,(function(e,t){var n,u=-1!==o.indexOf(F,e);return l(n=c(r,e,t,u))?u?(t=p(r,e,t,g))?e+'="'+t+'"':e:l(n=D(r,e,t,u))?void 0:n:n}));a="<"+r;return b&&(a+=" "+b),A.closing&&(a+=" /"),a+=">"}return l(d=i(r,a,m))?h(a):d}),h);return f&&(d=f.remove(d)),d},e.exports=c}}]); -//# sourceMappingURL=2995ba79.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/2995ba79.js.gz b/supervisor/api/panel/frontend_es5/2995ba79.js.gz deleted file mode 100644 index a354ebba7..000000000 Binary files a/supervisor/api/panel/frontend_es5/2995ba79.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/2995ba79.js.map b/supervisor/api/panel/frontend_es5/2995ba79.js.map deleted file mode 100644 index 0b6d0b411..000000000 --- a/supervisor/api/panel/frontend_es5/2995ba79.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2995ba79.js","sources":["webpack://home-assistant-frontend/2995ba79.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/337a39f0.js b/supervisor/api/panel/frontend_es5/337a39f0.js new file mode 100644 index 000000000..a44660de3 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/337a39f0.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[633],{27232:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=new WeakMap;n.default=function(e){var n=t.get(e);return n||(n=Object.create(null),t.set(e,n)),n}},52443:function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.Locale=void 0;var a=t(87480),i=t(71160),o=t(39460),l=a.__importDefault(t(27232)),c=["ca","co","hc","kf","kn","nu"],u=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function d(e,n,t,r,i){return void 0===r&&(r=[]),i?{lang:e&&"und"!==e?e:i.lang,script:n||i.script,region:t||i.region,variants:a.__spreadArray(a.__spreadArray([],r),i.variants)}:{lang:e||"und",script:n,region:t,variants:r}}function s(e){var n=o.parseUnicodeLocaleId(e),t=n.lang,r=t.lang,a=t.script,i=t.region,l=t.variants;if(a&&i){var c=o.likelySubtags[o.emitUnicodeLanguageId({lang:r,script:a,region:i,variants:[]})];if(c){var u=o.parseUnicodeLanguageId(c);return n.lang=d(void 0,void 0,void 0,l,u),o.emitUnicodeLocaleId(n)}}if(a){var s=o.likelySubtags[o.emitUnicodeLanguageId({lang:r,script:a,variants:[]})];if(s){var g=o.parseUnicodeLanguageId(s);return n.lang=d(void 0,void 0,i,l,g),o.emitUnicodeLocaleId(n)}}if(i){var f=o.likelySubtags[o.emitUnicodeLanguageId({lang:r,region:i,variants:[]})];if(f){var v=o.parseUnicodeLanguageId(f);return n.lang=d(void 0,a,void 0,l,v),o.emitUnicodeLocaleId(n)}}var p=o.likelySubtags[r]||o.likelySubtags[o.emitUnicodeLanguageId({lang:"und",script:a,variants:[]})];if(!p)throw new Error("No match for addLikelySubtags");var y=o.parseUnicodeLanguageId(p);return n.lang=d(void 0,a,i,l,y),o.emitUnicodeLocaleId(n)}var g=function(){function e(n,t){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.Locale must be called with 'new'");var c,d=e.relevantExtensionKeys,s=["initializedLocale","locale","calendar","collation","hourCycle","numberingSystem"];if(d.indexOf("kf")>-1&&s.push("caseFirst"),d.indexOf("kn")>-1&&s.push("numeric"),void 0===n)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if("string"!=typeof n&&"object"!==r(n))throw new TypeError("tag must be a string or object");n="object"===r(n)&&(c=l.default(n))&&c.initializedLocale?c.locale:n.toString(),c=l.default(this);var g=i.CoerceOptionsToObject(t);n=function(e,n){i.invariant("string"==typeof e,"language tag must be a string"),i.invariant(o.isStructurallyValidLanguageTag(e),"malformed language tag",RangeError);var t=i.GetOption(n,"language","string",void 0,void 0);void 0!==t&&i.invariant(o.isUnicodeLanguageSubtag(t),"Malformed unicode_language_subtag",RangeError);var r=i.GetOption(n,"script","string",void 0,void 0);void 0!==r&&i.invariant(o.isUnicodeScriptSubtag(r),"Malformed unicode_script_subtag",RangeError);var l=i.GetOption(n,"region","string",void 0,void 0);void 0!==l&&i.invariant(o.isUnicodeRegionSubtag(l),"Malformed unicode_region_subtag",RangeError);var c=o.parseUnicodeLanguageId(e);return void 0!==t&&(c.lang=t),void 0!==r&&(c.script=r),void 0!==l&&(c.region=l),Intl.getCanonicalLocales(o.emitUnicodeLocaleId(a.__assign(a.__assign({},o.parseUnicodeLocaleId(e)),{lang:c})))[0]}(n,g);var f=Object.create(null),v=i.GetOption(g,"calendar","string",void 0,void 0);if(void 0!==v&&!u.test(v))throw new RangeError("invalid calendar");f.ca=v;var p=i.GetOption(g,"collation","string",void 0,void 0);if(void 0!==p&&!u.test(p))throw new RangeError("invalid collation");f.co=p;var y=i.GetOption(g,"hourCycle","string",["h11","h12","h23","h24"],void 0);f.hc=y;var b=i.GetOption(g,"caseFirst","string",["upper","lower","false"],void 0);f.kf=b;var m,h=i.GetOption(g,"numeric","boolean",void 0,void 0);void 0!==h&&(m=String(h)),f.kn=m;var L=i.GetOption(g,"numberingSystem","string",void 0,void 0);if(void 0!==L&&!u.test(L))throw new RangeError("Invalid numberingSystem");f.nu=L;var _=function(e,n,t){for(var r,a=[],l=o.parseUnicodeLocaleId(e),c=0,u=l.extensions;c-1&&(c.caseFirst=_.kf),d.indexOf("kn")>-1&&(c.numeric=i.SameValue(_.kn,"true")),c.numberingSystem=_.nu}return e.prototype.maximize=function(){var n=l.default(this).locale;try{return new e(s(n))}catch(t){return new e(n)}},e.prototype.minimize=function(){var n=l.default(this).locale;try{return new e(function(e){var n=s(e);if(!n)return e;n=o.emitUnicodeLanguageId(a.__assign(a.__assign({},o.parseUnicodeLanguageId(n)),{variants:[]}));var t=o.parseUnicodeLocaleId(e),r=t.lang,i=r.lang,l=r.script,c=r.region,u=r.variants;return s(o.emitUnicodeLanguageId({lang:i,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:d(i,void 0,void 0,u)})):c&&s(o.emitUnicodeLanguageId({lang:i,region:c,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:d(i,void 0,c,u)})):l&&s(o.emitUnicodeLanguageId({lang:i,script:l,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:d(i,l,void 0,u)})):e}(n))}catch(t){return new e(n)}},e.prototype.toString=function(){return l.default(this).locale},Object.defineProperty(e.prototype,"baseName",{get:function(){var e=l.default(this).locale;return o.emitUnicodeLanguageId(o.parseUnicodeLanguageId(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return l.default(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collation",{get:function(){return l.default(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourCycle",{get:function(){return l.default(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caseFirst",{get:function(){return l.default(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numeric",{get:function(){return l.default(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberingSystem",{get:function(){return l.default(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var e=l.default(this).locale;return o.parseUnicodeLanguageId(e).lang},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"script",{get:function(){var e=l.default(this).locale;return o.parseUnicodeLanguageId(e).script},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"region",{get:function(){var e=l.default(this).locale;return o.parseUnicodeLanguageId(e).region},enumerable:!1,configurable:!0}),e.relevantExtensionKeys=c,e}();n.Locale=g;try{"undefined"!=typeof Symbol&&Object.defineProperty(g.prototype,Symbol.toStringTag,{value:"Intl.Locale",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype.constructor,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(f){}n.default=g},33633:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(52443);t(32812).shouldPolyfill()&&Object.defineProperty(Intl,"Locale",{value:r.Locale,writable:!0,enumerable:!1,configurable:!0})},32812:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shouldPolyfill=void 0,n.shouldPolyfill=function(){return!("Locale"in Intl)||function(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(e){return!0}}()}}}]); +//# sourceMappingURL=337a39f0.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/337a39f0.js.gz b/supervisor/api/panel/frontend_es5/337a39f0.js.gz new file mode 100644 index 000000000..2754a8b66 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/337a39f0.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/337a39f0.js.map b/supervisor/api/panel/frontend_es5/337a39f0.js.map new file mode 100644 index 000000000..64f3a2e6d --- /dev/null +++ b/supervisor/api/panel/frontend_es5/337a39f0.js.map @@ -0,0 +1 @@ +{"version":3,"file":"337a39f0.js","sources":["webpack://home-assistant-frontend/337a39f0.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/4b7385c7.js b/supervisor/api/panel/frontend_es5/4b7385c7.js deleted file mode 100644 index 16a08d930..000000000 --- a/supervisor/api/panel/frontend_es5/4b7385c7.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[965],{43965:function(e,r,t){"use strict";t.r(r),t.d(r,{ArrayCreate:function(){return B},BasicFormatMatcher:function(){return te},BestFitFormatMatcher:function(){return C},CanonicalCodeForDisplayNames:function(){return Ie},CanonicalizeLocaleList:function(){return N},CanonicalizeTimeZoneName:function(){return T},CoerceOptionsToObject:function(){return re},ComputeExponent:function(){return Ye},ComputeExponentForMagnitude:function(){return _e},CurrencyDigits:function(){return He},DATE_TIME_PROPS:function(){return p},DateFromTime:function(){return q},DateTimeStyleFormat:function(){return ne},Day:function(){return z},DayFromYear:function(){return _},DayWithinYear:function(){return Y},DaysInYear:function(){return G},FormatDateTime:function(){return se},FormatDateTimeRange:function(){return ge},FormatDateTimeRangeToParts:function(){return de},FormatDateTimeToParts:function(){return pe},FormatNumericToParts:function(){return ar},FormatNumericToString:function(){return Ge},FormatRelativeTime:function(){return pr},FormatRelativeTimeToParts:function(){return vr},GetNumberOption:function(){return Ce},GetOperands:function(){return lr},GetOption:function(){return ye},GetOptionsObject:function(){return Pe},HasOwnProperty:function(){return P},HourFromTime:function(){return V},InLeapYear:function(){return H},InitializeDateTimeFormat:function(){return Me},InitializeNumberFormat:function(){return or},InitializePluralRules:function(){return cr},InitializeRelativeTimeFormat:function(){return yr},IsSanctionedSimpleUnitIdentifier:function(){return ze},IsValidTimeZoneName:function(){return Ee},IsWellFormedCurrencyCode:function(){return Oe},IsWellFormedUnitIdentifier:function(){return Ue},MakePartsList:function(){return mr},MinFromTime:function(){return J},MonthFromTime:function(){return W},OrdinaryHasInstance:function(){return X},PartitionDateTimePattern:function(){return ce},PartitionNumberPattern:function(){return nr},PartitionPattern:function(){return le},PartitionRelativeTimePattern:function(){return dr},RangePatternType:function(){return d},ResolveLocale:function(){return we},ResolvePlural:function(){return sr},SANCTIONED_UNITS:function(){return Re},SIMPLE_UNITS:function(){return je},SameValue:function(){return I},SecFromTime:function(){return Q},SetNumberFormatDigitOptions:function(){return ir},SetNumberFormatUnitOptions:function(){return ur},SingularRelativeTimeUnit:function(){return fr},SupportedLocales:function(){return br},TimeClip:function(){return k},TimeFromYear:function(){return Z},ToDateTimeOptions:function(){return ve},ToNumber:function(){return O},ToObject:function(){return x},ToRawFixed:function(){return $e},ToRawPrecision:function(){return Ze},ToString:function(){return A},Type:function(){return R},WeekDay:function(){return U},YearFromTime:function(){return $},_formatToParts:function(){return Xe},defineProperty:function(){return f},getInternalSlot:function(){return l},getMagnitude:function(){return a},getMultiInternalSlots:function(){return c},invariant:function(){return g},isLiteralPart:function(){return s},isMissingLocaleDataError:function(){return Fr},msFromTime:function(){return ee},parseDateTimeSkeleton:function(){return F},removeUnitNamespace:function(){return Le},setInternalSlot:function(){return i},setMultiInternalSlots:function(){return o}});var n=t(87480);function a(e){return Math.floor(Math.log(e)*Math.LOG10E)}function u(e,r){if("function"==typeof e.repeat)return e.repeat(r);for(var t=new Array(r),n=0;nt&&(t=l,a=o)}var c=(0,n.__assign)({},a),s={rawPattern:a.rawPattern};for(var f in b(a.rawPattern,s),c){var m=c[f],d=s[f],p=e[f];"minute"!==f&&"second"!==f&&(p&&(E(d)&&!E(p)||m!==p&&(s[f]=p)))}return s.pattern=c.pattern,s.pattern12=c.pattern12,s.skeleton=c.skeleton,s.rangePatterns=c.rangePatterns,s.rangePatterns12=c.rangePatterns12,s}function N(e){return Intl.getCanonicalLocales(e)}function T(e,r){var t=r.tzData,n=r.uppercaseLinks,a=e.toUpperCase(),u=Object.keys(t).reduce((function(e,r){return e[r.toUpperCase()]=r,e}),{}),i=n[a]||u[a];return"Etc/UTC"===i||"Etc/GMT"===i?"UTC":i}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e){if("symbol"===M(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function O(e){if(void 0===e)return NaN;if(null===e)return 0;if("boolean"==typeof e)return e?1:0;if("number"==typeof e)return e;if("symbol"===M(e)||"bigint"==typeof e)throw new TypeError("Cannot convert symbol/bigint to number");return Number(e)}function k(e){return isFinite(e)?Math.abs(e)>8640000000000001?NaN:function(e){var r=O(e);if(isNaN(r)||I(r,-0))return 0;if(isFinite(r))return r;var t=Math.floor(Math.abs(r));return r<0&&(t=-t),I(t,-0)?0:t}(e):NaN}function x(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function I(e,r){return Object.is?Object.is(e,r):e===r?0!==e||1/e==1/r:e!=e&&r!=r}function B(e){return new Array(e)}function P(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function R(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===M(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"===M(e)?"Symbol":"bigint"==typeof e?"BigInt":void 0}var L=864e5;function j(e,r){return e-Math.floor(e/r)*r}function z(e){return Math.floor(e/L)}function U(e){return j(z(e)+4,7)}function _(e){return Date.UTC(e,0)/L}function Z(e){return Date.UTC(e,0)}function $(e){return new Date(e).getUTCFullYear()}function G(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function Y(e){return z(e)-_($(e))}function H(e){return 365===G($(e))?0:1}function W(e){var r=Y(e),t=H(e);if(r>=0&&r<31)return 0;if(r<59+t)return 1;if(r<90+t)return 2;if(r<120+t)return 3;if(r<151+t)return 4;if(r<181+t)return 5;if(r<212+t)return 6;if(r<243+t)return 7;if(r<273+t)return 8;if(r<304+t)return 9;if(r<334+t)return 10;if(r<365+t)return 11;throw new Error("Invalid time")}function q(e){var r=Y(e),t=W(e),n=H(e);if(0===t)return r+1;if(1===t)return r-30;if(2===t)return r-58-n;if(3===t)return r-89-n;if(4===t)return r-119-n;if(5===t)return r-150-n;if(6===t)return r-180-n;if(7===t)return r-211-n;if(8===t)return r-242-n;if(9===t)return r-272-n;if(10===t)return r-303-n;if(11===t)return r-333-n;throw new Error("Invalid time")}var K=1e3;function V(e){return j(Math.floor(e/36e5),24)}function J(e){return j(Math.floor(e/6e4),60)}function Q(e){return j(Math.floor(e/K),60)}function X(e,r,t){if("function"!=typeof e)return!1;if(null==t?void 0:t.boundTargetFunction)return r instanceof(null==t?void 0:t.boundTargetFunction);if("object"!==M(r))return!1;var n=e.prototype;if("object"!==M(n))throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,r)}function ee(e){return j(e,K)}function re(e){return void 0===e?Object.create(null):x(e)}function te(e,r){var t=-1/0,a=r[0];g(Array.isArray(r),"formats should be a list of things");for(var u=0,i=r;ut&&(t=l,a=o)}return(0,n.__assign)({},a)}function ne(e,r,t){var n,a;if(void 0!==r&&(g("full"===r||"long"===r||"medium"===r||"short"===r,"invalid timeStyle"),a=t.timeFormat[r]),void 0!==e&&(g("full"===e||"long"===e||"medium"===e||"short"===e,"invalid dateStyle"),n=t.dateFormat[e]),void 0!==e&&void 0!==r){var u={};for(var i in n)"pattern"!==i&&(u[i]=n[i]);for(var i in a)"pattern"!==i&&"pattern12"!==i&&(u[i]=a[i]);var o=t.dateTimeFormat[e],l=o.replace("{0}",a.pattern).replace("{1}",n.pattern);if(u.pattern=l,"pattern12"in a){var c=o.replace("{0}",a.pattern12).replace("{1}",n.pattern);u.pattern12=c}return u}return void 0!==r?a:(g(void 0!==e,"dateStyle should not be undefined"),n)}function ae(e,r,t,n){var a=n.tzData;g("Number"===R(e),"invalid time"),g("gregory"===r,"We only support Gregory calendar right now");var u=function(e,r,t){var n,a=t[r];if(!a)return[0,!1];for(var u=0,i=0,o=!1;u<=a.length;u++)if(u===a.length||1e3*a[u][0]>e){i=(n=a[u-1])[2],o=n[3];break}return[1e3*i,o]}(e,t,a),i=u[0],o=u[1],l=e+i,c=$(l);return{weekday:U(l),era:c<0?"BC":"AD",year:c,relatedYear:void 0,yearName:void 0,month:W(l),day:q(l),hour:V(l),minute:J(l),second:Q(l),millisecond:ee(l),inDST:o,timeZoneOffset:i}}function ue(e){return e<10?"0"+e:String(e)}function ie(e,r,t,n){var a=Math.floor(t/6e4),u=Math.abs(a)%60,i=Math.floor(Math.abs(a)/60),o=r.split(";"),l=o[0],c=o[1],s="",f=t<0?c:l;return"long"===n?s=f.replace("HH",ue(i)).replace("H",String(i)).replace("mm",ue(u)).replace("m",String(u)):(u||i)&&(u||(f=f.replace(/:?m+/,"")),s=f.replace(/H+/,String(i)).replace(/m+/,String(u))),e.replace("{0}",s)}function oe(e,r,t,n){var a=n.getInternalSlots,u=n.localeData,i=n.getDefaultTimeZone,o=n.tzData;t=k(t);var l=a(e),c=u[l.dataLocale],s=l.locale,f=Object.create(null);f.useGrouping=!1;var m=new Intl.NumberFormat(s,f),g=Object.create(null);g.minimumIntegerDigits=2,g.useGrouping=!1;var d,v=new Intl.NumberFormat(s,g),h=l.fractionalSecondDigits;if(void 0!==h){var y=Object.create(null);y.minimumIntegerDigits=h,y.useGrouping=!1,d=new Intl.NumberFormat(s,y)}for(var D=ae(t,l.calendar,l.timeZone,{tzData:o}),b=[],F=0,w=r;F-1){var N="",T=l[S];C=D[S];"year"===S&&C<=0&&(C=1-C),"month"===S&&C++;var M=l.hourCycle;if("hour"!==S||"h11"!==M&&"h12"!==M||0===(C%=12)&&"h12"===M&&(C=12),"hour"===S&&"h24"===M&&0===C&&(C=24),"numeric"===T)N=m.format(C);else if("2-digit"===T)(N=v.format(C)).length>2&&(N=N.slice(N.length-2,N.length));else if("narrow"===T||"short"===T||"long"===T)if("era"===S)N=c[S][T][C];else if("timeZoneName"===S){var A=c.timeZoneName,O=c.gmtFormat,x=c.hourFormat,I=A[l.timeZone||i()];N=I&&I[T]?I[T][+D.inDST]:ie(O,x,D.timeZoneOffset,T)}else N="month"===S?c.month[T][C-1]:c[S][T][C];b.push({type:S,value:N})}else if("ampm"===S){N=void 0;N=(C=D.hour)>11?c.pm:c.am,b.push({type:"dayPeriod",value:N})}else if("relatedYear"===S){C=D.relatedYear,N=m.format(C);b.push({type:"relatedYear",value:N})}else if("yearName"===S){C=D.yearName,N=m.format(C);b.push({type:"yearName",value:N})}}return b}function le(e){for(var r=[],t=e.indexOf("{"),n=0,a=0,u=e.length;t-1;)g((n=e.indexOf("}",t))>t,"Invalid pattern "+e),t>a&&r.push({type:"literal",value:e.substring(a,t)}),r.push({type:e.substring(t+1,n),value:void 0}),a=n+1,t=e.indexOf("{",a);return a11&&b<11||D<11&&b>11)&&(m=!1)}else if("dayPeriod"===h);else if("fractionalSecondDigits"===h){var F=o.fractionalSecondDigits;void 0===F&&(F=3),I(D=Math.floor(l.millisecond*Math.pow(10,F-3)),b=Math.floor(c.millisecond*Math.pow(10,F-3)))||(m=!1)}else{I(D=l[h],b=c[h])||(m=!1)}}}if(m){for(var w=oe(e,le(s),r,n),E=0,S=w;E=2&&"-"===t[n-2]&&(n-=2),t=t.slice(0,n)}}function be(e,r){g(2===r.length,"key must have 2 elements");var t=e.length,n="-"+r+"-",a=e.indexOf(n);if(-1!==a){for(var u=a+4,i=u,o=u,l=!1;!l;){var c=e.indexOf("-",o);2===(-1===c?t-o:c-o)?l=!0:-1===c?(i=t,l=!0):(i=c,o=c+1)}return e.slice(u,i)}if(n="-"+r,-1!==(a=e.indexOf(n))&&a+3===t)return""}function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function we(e,r,t,n,a,u){for(var i,o=(i="lookup"===t.localeMatcher?function(e,r,t){for(var n={locale:""},a=0,u=r;a2){var F=o.indexOf("-x-");if(-1===F)o+=c;else{var w=o.slice(0,F),E=o.slice(F,o.length);o=w+c+E}o=Intl.getCanonicalLocales(o)[0]}return l.locale=o,l}function Ee(e,r){var t=r.tzData,n=r.uppercaseLinks,a=e.toUpperCase(),u=new Set;return Object.keys(t).map((function(e){return e.toUpperCase()})).forEach((function(e){return u.add(e)})),u.has(a)||a in n}function Se(e,r,t,n){if(void 0!==e){if(e=Number(e),isNaN(e)||et)throw new RangeError(e+" is outside of range ["+r+", "+t+"]");return Math.floor(e)}return n}function Ce(e,r,t,n,a){return Se(e[r],t,n,a)}function Ne(e,r,t){return null==e&&(e=r),void 0!==t&&(t?e="h11"===r||"h23"===r?"h11":"h12":(g(!t,"hour12 must not be set"),e="h11"===r||"h23"===r?"h23":"h24")),e}var Te=/^[a-z0-9]{3,8}$/i;function Me(e,r,t,n){var a=n.getInternalSlots,u=n.availableLocales,i=n.localeData,o=n.getDefaultLocale,l=n.getDefaultTimeZone,c=n.relevantExtensionKeys,s=n.tzData,f=n.uppercaseLinks,m=N(r),d=ve(t,"any","date"),v=Object.create(null),h=ye(d,"localeMatcher","string",["lookup","best fit"],"best fit");v.localeMatcher=h;var y=ye(d,"calendar","string",void 0,void 0);if(void 0!==y&&!Te.test(y))throw new RangeError("Malformed calendar");var D=a(e);v.ca=y;var b=ye(d,"numberingSystem","string",void 0,void 0);if(void 0!==b&&!Te.test(b))throw new RangeError("Malformed numbering system");v.nu=b;var F=ye(d,"hour12","boolean",void 0,void 0),w=ye(d,"hourCycle","string",["h11","h12","h23","h24"],void 0);void 0!==F&&(w=null),v.hc=w;var E=we(u,m,v,c,i,o);D.locale=E.locale,y=E.ca,D.calendar=y,D.hourCycle=E.hc,D.numberingSystem=E.nu;var S=E.dataLocale;D.dataLocale=S;var M=d.timeZone;if(void 0!==M){if(!Ee(M=String(M),{tzData:s,uppercaseLinks:f}))throw new RangeError("Invalid timeZoneName");M=T(M,{tzData:s,uppercaseLinks:f})}else M=l();D.timeZone=M,(v=Object.create(null)).weekday=ye(d,"weekday","string",["narrow","short","long"],void 0),v.era=ye(d,"era","string",["narrow","short","long"],void 0),v.year=ye(d,"year","string",["2-digit","numeric"],void 0),v.month=ye(d,"month","string",["2-digit","numeric","narrow","short","long"],void 0),v.day=ye(d,"day","string",["2-digit","numeric"],void 0),v.hour=ye(d,"hour","string",["2-digit","numeric"],void 0),v.minute=ye(d,"minute","string",["2-digit","numeric"],void 0),v.second=ye(d,"second","string",["2-digit","numeric"],void 0),v.timeZoneName=ye(d,"timeZoneName","string",["short","long"],void 0),v.fractionalSecondDigits=Ce(d,"fractionalSecondDigits",1,3,void 0);var A=i[S];g(!!A,"Missing locale data for "+S);var O=A.formats[y];if(!O)throw new RangeError('Calendar "'+y+'" is not supported. Try setting "calendar" to 1 of the following: '+Object.keys(A.formats).join(", "));var k=ye(d,"formatMatcher","string",["basic","best fit"],"best fit"),x=ye(d,"dateStyle","string",["full","long","medium","short"],void 0);D.dateStyle=x;var I,B,P,R=ye(d,"timeStyle","string",["full","long","medium","short"],void 0);if(D.timeStyle=R,void 0===x&&void 0===R)if("basic"===k)I=te(v,O);else{if(function(e){for(var r=0,t=["hour","minute","second"];r-1}function Ue(e){if(ze(e=e.replace(/([A-Z])/g,(function(e,r){return r.toLowerCase()}))))return!0;var r=e.split("-per-");if(2!==r.length)return!1;var t=r[0],n=r[1];return!(!ze(t)||!ze(n))}function _e(e,r,t){var n=(0,t.getInternalSlots)(e),a=n.notation,u=n.dataLocaleData,i=n.numberingSystem;switch(a){case"standard":return 0;case"scientific":return r;case"engineering":return 3*Math.floor(r/3);default:var o=n.compactDisplay,l=n.style,c=n.currencyDisplay,s=void 0;if("currency"===l&&"name"!==c){s=(u.numbers.currency[i]||u.numbers.currency[u.numbers.nu[0]]).short}else{var f=u.numbers.decimal[i]||u.numbers.decimal[u.numbers.nu[0]];s="long"===o?f.long:f.short}if(!s)return 0;var m=String(Math.pow(10,r)),g=Object.keys(s);if(mg[g.length-1])return g[g.length-1].length-1;var d=g.indexOf(m);if(-1===d)return 0;var p=g[d];return"0"===s[p].other?0:p.length-s[p].other.match(/0+/)[0].length}}function Ze(e,r,t){var n,i,o,l,c=t;if(0===e)n=u("0",c),i=0,o=0;else{var s=e.toString(),f=s.indexOf("e"),m=s.split("e"),g=m[0],d=m[1],p=g.replace(".","");if(f>=0&&p.length<=c)i=+d,n=p+u("0",c-p.length),o=e;else{var v=(i=a(e))-c+1,h=Math.round(D(e,v));D(h,c-1)>=10&&(i+=1,h=Math.floor(h/10)),n=h.toString(),o=D(h,c-1-i)}}if(i>=c-1?(n+=u("0",i-c+1),l=i+1):i>=0?(n=n.slice(0,i+1)+"."+n.slice(i+1),l=i+1):(n="0."+u("0",-i-1)+n,l=1),n.indexOf(".")>=0&&t>r){for(var y=t-r;y>0&&"0"===n[n.length-1];)n=n.slice(0,-1),y--;"."===n[n.length-1]&&(n=n.slice(0,-1))}return{formattedString:n,roundedNumber:o,integerDigitsCount:l};function D(e,r){return r<0?e*Math.pow(10,-r):e/Math.pow(10,r)}}function $e(e,r,t){var n,a,i=t,o=Math.round(e*Math.pow(10,i)),l=o/Math.pow(10,i);if(o<1e21)n=o.toString();else{var c=(n=o.toString()).split("e"),s=c[0],f=c[1];n=s.replace(".",""),n+=u("0",Math.max(+f-n.length+1,0))}if(0!==i){var m=n.length;if(m<=i)n=u("0",i+1-m)+n,m=i+1;var g=n.slice(0,m-i),d=n.slice(m-i);n=g+"."+d,a=g.length}else a=n.length;for(var p=t-r;p>0&&"0"===n[n.length-1];)n=n.slice(0,-1),p--;return"."===n[n.length-1]&&(n=n.slice(0,-1)),{formattedString:n,roundedNumber:l,integerDigitsCount:a}}function Ge(e,r){var t,n=r<0||I(r,-0);switch(n&&(r=-r),e.roundingType){case"significantDigits":t=Ze(r,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":t=$e(r,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(t=Ze(r,1,2)).integerDigitsCount>1&&(t=$e(r,0,0))}r=t.roundedNumber;var a=t.formattedString,i=t.integerDigitsCount,o=e.minimumIntegerDigits;i\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,Ve=new RegExp("^"+Ke.source),Je=new RegExp(Ke.source+"$"),Qe=/[#0](?:[\.,][#0]+)*/g;function Xe(e,r,t,n){var a,u,i=e.sign,o=e.exponent,l=e.magnitude,c=n.notation,s=n.style,f=n.numberingSystem,m=r.numbers.nu[0],g=null;if("compact"===c&&l&&(g=function(e,r,t,n,a,u,i){var o,l,c=e.roundedNumber,s=e.sign,f=e.magnitude,m=String(Math.pow(10,f)),g=t.numbers.nu[0];if("currency"===n&&"name"!==u){var d=null===(o=((p=t.numbers.currency)[i]||p[g]).short)||void 0===o?void 0:o[m];if(!d)return null;l=tr(r,c,d)}else{var p,v=((p=t.numbers.decimal)[i]||p[g])[a][m];if(!v)return null;l=tr(r,c,v)}if("0"===l)return null;return l=rr(l,s).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,t,r,s,n.compactDisplay,n.currencyDisplay,f)),"currency"===s&&"name"!==n.currencyDisplay){var d=r.currencies[n.currency];if(d)switch(n.currencyDisplay){case"code":a=n.currency;break;case"symbol":a=d.symbol;break;default:a=d.narrow}else a=n.currency}if(g)u=g;else if("decimal"===s||"unit"===s||"currency"===s&&"name"===n.currencyDisplay)u=rr((r.numbers.decimal[f]||r.numbers.decimal[m]).standard,i);else if("currency"===s){u=rr((v=r.numbers.currency[f]||r.numbers.currency[m])[n.currencySign],i)}else{u=rr(r.numbers.percent[f]||r.numbers.percent[m],i)}var p=Qe.exec(u)[0];if(u=u.replace(Qe,"{0}").replace(/'(.)'/g,"$1"),"currency"===s&&"name"!==n.currencyDisplay){var v,h=(v=r.numbers.currency[f]||r.numbers.currency[m]).currencySpacing.afterInsertBetween;h&&!Je.test(a)&&(u=u.replace("¤{0}","¤"+h+"{0}"));var y=v.currencySpacing.beforeInsertBetween;y&&!Ve.test(a)&&(u=u.replace("{0}¤","{0}"+y+"¤"))}for(var D=u.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),b=[],F=r.numbers.symbols[f]||r.numbers.symbols[m],w=0,E=D;w0?(f=l.slice(0,g),m=l.slice(g+1)):f=l,u&&("compact"!==t||c>=1e4)){var d=e.group,p=[],v=i.split(".")[0].split(","),h=3,y=3;v.length>1&&(h=v[v.length-1].length),v.length>2&&(y=v[v.length-2].length);var D=f.length-h;if(D>0){for(p.push(f.slice(D,D+h)),D-=y;D>0;D-=y)p.push(f.slice(D,D+y));p.push(f.slice(0,D+y))}else p.push(f);for(;p.length>0;){var b=p.pop();o.push({type:"integer",value:b}),p.length>0&&o.push({type:"group",value:d})}}else o.push({type:"integer",value:f});if(void 0!==m&&o.push({type:"decimal",value:e.decimal},{type:"fraction",value:m}),("scientific"===t||"engineering"===t)&&isFinite(c)){o.push({type:"exponentSeparator",value:e.exponential}),n<0&&(o.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var F=$e(n,0,0);o.push({type:"exponentInteger",value:F.formattedString})}return o}function rr(e,r){e.indexOf(";")<0&&(e=e+";-"+e);var t=e.split(";"),n=t[0],a=t[1];switch(r){case 0:return n;case-1:return a;default:return a.indexOf("-")>=0?a.replace(/-/g,"+"):"+"+n}}function tr(e,r,t){return t[e.select(r)]||t.other}function nr(e,r,t){var n,a,u,i=t.getInternalSlots,o=i(e),l=o.pl,c=o.dataLocaleData,s=o.numberingSystem,f=c.numbers.symbols[s]||c.numbers.symbols[c.numbers.nu[0]],m=0,g=0;if(isNaN(r))a=f.nan;else if(isFinite(r)){"percent"===o.style&&(r*=100),g=(n=Ye(e,r,{getInternalSlots:i}))[0],m=n[1];var d=Ge(o,r=g<0?r*Math.pow(10,-g):r/Math.pow(10,g));a=d.formattedString,r=d.roundedNumber}else a=f.infinity;switch(o.signDisplay){case"never":u=0;break;case"auto":u=I(r,0)||r>0||isNaN(r)?0:-1;break;case"always":u=I(r,0)||r>0||isNaN(r)?1:-1;break;default:u=0===r||isNaN(r)?0:r>0?1:-1}return Xe({roundedNumber:r,formattedString:a,exponent:g,magnitude:m,sign:u},o.dataLocaleData,l,o)}function ar(e,r,t){for(var n=nr(e,r,t),a=B(0),u=0,i=n;u-1?r:null}};function p(e){for(var t=[],n=1;n3?0:(e-e%10!=10?1:0)*e%10]}},b=p({},v),g=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length0?"-":"+")+g(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+g(Math.floor(Math.abs(t)/60),2)+":"+g(Math.abs(t)%60,2)}},w=function(e){return+e-1},E=[null,s],D=[null,l],P=["isPm",l,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],S=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],C=(f("monthNamesShort"),f("monthNames"),{default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"}),T=function(e,t,n){if(void 0===t&&(t=C.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var r=[];t=(t=C[t]||t).replace(u,(function(e,t){return r.push(t),"@@@"}));var i=p(p({},b),n);return(t=t.replace(a,(function(t){return k[t](e,i)}))).replace(/@@@/g,(function(){return r.shift()}))};var A=n(14516);var M,_,x=function(){try{(new Date).toLocaleDateString("i")}catch(e){return"RangeError"===e.name}return!1}(),O=(function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}}(),function(){try{(new Date).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()),z=((0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric"})})),x?function(e,t){return H(t).format(e)}:function(e){return T(e,"MMMM D, YYYY")}),H=(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric"})}));(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"numeric",day:"numeric"})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short"})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric"})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{month:"long"})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric"})}));!function(e){e.language="language",e.system="system",e.comma_decimal="comma_decimal",e.decimal_comma="decimal_comma",e.space_comma="space_comma",e.none="none"}(M||(M={})),function(e){e.language="language",e.system="system",e.am_pm="12",e.twenty_four="24"}(_||(_={}));var j,Y,F,R,V,I=(0,A.Z)((function(e){if(e.time_format===_.language||e.time_format===_.system){var t=e.time_format===_.language?e.language:void 0,n=(new Date).toLocaleString(t);return n.includes("AM")||n.includes("PM")}return e.time_format===_.am_pm})),Z=O?function(e,t){return L(t).format(e)}:function(e,t){return T(e,(I(t)," A"))},L=(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:I(e)?"numeric":"2-digit",minute:"2-digit",hour12:I(e)})}));(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:I(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hour12:I(e)})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",hour12:I(e)})})),n(12497),n(78358),n(14678),n(52039);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function U(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 $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G(e);if(t){var i=G(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?q(e):t}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function K(){K=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ee(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n',"\n ","\n "])),this.imageUrl?(0,r.dy)(Y||(Y=B([''])),this.imageUrl):this.iconPath?(0,r.dy)(F||(F=B(["'])),this.iconPath):"",this.label,this.version?(0,r.dy)(R||(R=B(['(',")"])),this.version):"")}},{kind:"get",static:!0,key:"styles",value:function(){return(0,r.iv)(V||(V=B(["\n :host {\n display: flex;\n align-items: center;\n }\n .label {\n margin-right: 4px;\n }\n .version {\n color: var(--secondary-text-color);\n }\n .icon {\n max-height: 22px;\n max-width: 22px;\n margin-right: 8px;\n }\n "])))}}]}}),r.oi);function Pe(e){return(Pe="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 Se(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){return(Te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ie(e);if(t){var i=Ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Me(this,n)}}function Me(e,t){return!t||"object"!==Pe(t)&&"function"!=typeof t?_e(e):t}function _e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xe(){xe=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!He(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.name?1:-1}))),this.addons=(this.backup?this.backup.addons:null===(t=this.supervisor)||void 0===t?void 0:t.supervisor.addons).map((function(e){return{slug:e.slug,name:e.name,version:e.version,checked:!1}})).sort((function(e,t){return e.name>t.name?1:-1})),this.backupType=(null===(r=this.backup)||void 0===r?void 0:r.type)||"full",this.backupName=(null===(i=this.backup)||void 0===i?void 0:i.name)||"",this.backupHasPassword=(null===(o=this.backup)||void 0===o?void 0:o.protected)||!1)}},{kind:"field",key:"_localize",value:function(){var e=this;return function(t){var n;return(null===(n=e.supervisor)||void 0===n?void 0:n.localize("backup.".concat(t)))||e.localize("ui.panel.page-onboarding.restore.".concat(t))}}},{kind:"method",key:"render",value:function(){var e=this;if(!this.onboarding&&!this.supervisor)return(0,r.dy)(oe||(oe=Se([""])));var t="partial"===this.backupType?this._getSection("folders"):void 0,n="partial"===this.backupType?this._getSection("addons"):void 0;return(0,r.dy)(ae||(ae=Se(["\n ","\n ","\n ","\n ","\n ","\n ","\n "])),this.backup?(0,r.dy)(se||(se=Se(['
    \n ',"\n (",")
    \n ","\n
    "])),"full"===this.backup.type?this._localize("full_backup"):this._localize("partial_backup"),Math.ceil(10*this.backup.size)/10+" MB",this.hass?Z(new Date(this.backup.date),this.hass.locale):this.backup.date):(0,r.dy)(ce||(ce=Se(['\n ','\n \n
    \n \n ',"\n ","\n ","\n
    "])),this.backup&&this.backup.homeassistant?(0,r.dy)(de||(de=Se(["\n \n \n \n \n "])),(0,r.dy)(fe||(fe=Se(['\n \n \n
    ',"
    \n "])),(0,r.dy)(he||(he=Se(["\n "])),this._localize("folders"),Ze),this._toggleSection,t.checked,t.indeterminate,"folders",t.templates):"",null!=n&&n.templates.length?(0,r.dy)(me||(me=Se(["\n \n ',"\n "])),(0,r.dy)(ye||(ye=Se(["\n "])),this._localize("addons"),Le),this._toggleSection,n.checked,n.indeterminate,"addons",n.templates):""):"","partial"!==this.backupType||this.backup&&!this.backupHasPassword?"":(0,r.dy)(ve||(ve=Se(["
    "]))),this.backup?"":(0,r.dy)(be||(be=Se(['=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n
    \n ',""])),this._error):"",this.supervisor.localize("addon.configuration.audio.input"),this._setInputDevice,this._selectedInput,this._inputDevices&&this._inputDevices.map((function(e){return(0,n.dy)(b||(b=x(["\n \n ","\n \n "])),e.device||"",e.name)})),this.supervisor.localize("addon.configuration.audio.output"),this._setOutputDevice,this._selectedOutput,this._outputDevices&&this._outputDevices.map((function(e){return(0,n.dy)(g||(g=x(["\n ","\n "])),e.device||"",e.name)})),this._saveSettings,this.supervisor.localize("common.save"))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(w||(w=x(["\n :host,\n ha-card,\n paper-dropdown-menu {\n display: block;\n }\n paper-item {\n width: 450px;\n }\n .card-actions {\n text-align: right;\n }\n "])))]}},{kind:"method",key:"update",value:function(e){$(N(a.prototype),"update",this).call(this,e),e.has("addon")&&this._addonChanged()}},{kind:"method",key:"_setInputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedInput=t}},{kind:"method",key:"_setOutputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedOutput=t}},{kind:"method",key:"_addonChanged",value:(o=P(regeneratorRuntime.mark((function e(){var t,r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selectedInput=null===this.addon.audio_input?"default":this.addon.audio_input,this._selectedOutput=null===this.addon.audio_output?"default":this.addon.audio_output,!this._outputDevices){e.next=4;break}return e.abrupt("return");case 4:return t={device:"default",name:this.supervisor.localize("addon.configuration.audio.default")},e.prev=5,e.next=8,(0,p.G)(this.hass);case 8:r=e.sent,n=r.audio,i=Object.keys(n.input).map((function(e){return{device:e,name:n.input[e]}})),o=Object.keys(n.output).map((function(e){return{device:e,name:n.output[e]}})),this._inputDevices=[t].concat(_(i)),this._outputDevices=[t].concat(_(o)),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(5),this._error="Failed to fetch audio hardware",this._inputDevices=[t],this._outputDevices=[t];case 21:case"end":return e.stop()}}),e,this,[[5,16]])}))),function(){return o.apply(this,arguments)})},{kind:"method",key:"_saveSettings",value:(r=P(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={audio_input:"default"===this._selectedInput?null:this._selectedInput,audio_output:"default"===this._selectedOutput?null:this._selectedOutput},e.prev=4,e.next=7,(0,l.d3)(this.hass,this.addon.slug,n);case 7:if("started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=10;break}return e.next=10,k(this,this.hass,this.supervisor,this.addon);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this._error="Failed to set addon audio device";case 15:r.progress=!1;case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return r.apply(this,arguments)})}]}}),n.oi),r(87724);var U=r(98595),q=(r(40191),r(19967));function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n \n "])),this.data,this._valueChanged,this.label)}},{kind:"method",key:"_valueChanged",value:function(e){(0,a.B)(this,"value-changed",{value:e.target.checked})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(re||(re=oe(["\n paper-checkbox {\n display: block;\n padding: 22px 0;\n }\n "])))}}]}}),n.oi);function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Le(e);if(t){var i=Le(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Oe(this,r)}}function Oe(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?Se(e):t}function Se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ae(){Ae=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Te(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',": ",""])),this.label,this.schema.value)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(ke||(ke=_e(["\n :host {\n display: block;\n }\n .label {\n font-weight: 500;\n }\n "])))}}]}}),n.oi),r(77956);function He(e){return(He="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 Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $e(e,t){return($e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ze(e);if(t){var i=Ze(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ue(this,r)}}function Ue(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?qe(e):t}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(){Ke=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!We(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',"\n \n "],t||(t=e.slice(0)),Be=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this._value,this.schema.required,this.schema.required,this._valueChanged,this.suffix);var e,t}},{kind:"get",key:"_value",value:function(){return this.data}},{kind:"method",key:"_valueChanged",value:function(e){var t=e.target.value?Number(e.target.value):void 0;this._value!==t&&(0,a.B)(this,"value-changed",{value:t})}}]}}),n.oi),r(1548);function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e,t){for(var r=0;r .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n }\n\n .pin > .slider-knob > .slider-knob-inner {\n font-size: var(--ha-slider-pin-font-size, 15px);\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(--disabled-text-color));\n border: 2px solid var(--paper-slider-disabled-knob-color, var(--disabled-text-color));\n }\n\n .pin > .slider-knob > .slider-knob-inner::before {\n top: unset;\n margin-left: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n width: 2.2em;\n height: 2.2em;\n\n -webkit-transform-origin: left bottom;\n transform-origin: left bottom;\n -webkit-transform: rotate(-45deg) scale(0) translate(0);\n transform: rotate(-45deg) scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::before {\n -webkit-transform: rotate(-45deg) scale(1) translate(7px, -7px);\n transform: rotate(-45deg) scale(1) translate(7px, -7px);\n }\n\n .pin > .slider-knob > .slider-knob-inner::after {\n top: unset;\n font-size: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n margin-left: -1.1em;\n width: 2.2em;\n height: 2.1em;\n\n -webkit-transform-origin: center bottom;\n transform-origin: center bottom;\n -webkit-transform: scale(0) translate(0);\n transform: scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -10px);\n transform: scale(1) translate(0, -10px);\n }\n\n .slider-input {\n width: 54px;\n }\n ')),lt}}],(r=[{key:"_setImmediateValue",value:function(e){it(ct(o.prototype),"_setImmediateValue",this).call(this,this.step>=1?Math.round(e):Math.round(100*e)/100)}},{key:"_calcStep",value:function(e){if(!this.step)return parseFloat(e);var t=Math.round((e-this.min)/this.step),r=this.step.toString(),n=r.indexOf(".");if(-1!==n){var i=Math.pow(10,r.length-n-1);return Math.round((t*this.step+this.min)*i)/i}return t*this.step+this.min}}])&&nt(t.prototype,r),n&&nt(t,n),o}(ht);function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){return(gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_t(e);if(t){var i=_t(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kt(this,r)}}function kt(e,t){return!t||"object"!==yt(t)&&"function"!=typeof t?Et(e):t}function Et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(){Ct=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(!Ot(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",'\n
    \n ',"\n \n
    \n
    \n "])),this.label,this.schema.optional&&void 0===this.schema.default?(0,n.dy)(ut||(ut=vt(["\n \n "])),this._handleCheckboxChange,void 0!==this.data):"",this._value,this.schema.valueMin,this.schema.valueMax,void 0===this.data&&this.schema.optional&&void 0===this.schema.default,this._valueChanged):(0,n.dy)(ft||(ft=vt(['\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n ',"\n \n "])),i,r.includes(i),e._optionLabel(t))})))}},{kind:"method",key:"firstUpdated",value:function(){var e=this;this.updateComplete.then((function(){var t,r,n,i=null===(t=e.shadowRoot)||void 0===t||null===(r=t.querySelector("paper-input"))||void 0===r||null===(n=r.inputElement)||void 0===n?void 0:n.inputElement;i&&(i.style.textOverflow="ellipsis")}))}},{kind:"method",key:"_optionValue",value:function(e){return Array.isArray(e)?e[0]:e}},{kind:"method",key:"_optionLabel",value:function(e){return Array.isArray(e)?e[1]||e[0]:e}},{kind:"method",key:"_onSelect",value:function(e){e.stopPropagation()}},{kind:"method",key:"_valueChanged",value:function(e){e.detail.value&&this._init?(0,a.B)(this,"value-changed",{value:e.detail.value.map((function(e){return e.itemValue}))},{bubbles:!1}):this._init=!0}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Rt||(Rt=Mt(["\n paper-menu-button {\n display: block;\n padding: 0;\n --paper-item-icon-width: 34px;\n }\n paper-ripple {\n top: 12px;\n left: 0px;\n bottom: 8px;\n right: 0px;\n }\n paper-input {\n text-overflow: ellipsis;\n }\n "])))}}]}}),n.oi);var Xt,Jt=r(50856);function Gt(e){return(Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tr(e,t){for(var r=0;r\n :host {\n display: block;\n @apply --paper-font-common-base;\n }\n\n paper-input {\n width: 30px;\n text-align: center;\n --paper-input-container-input: {\n /* Damn you firefox\n * Needed to hide spin num in firefox\n * http://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-box\n */\n -moz-appearance: textfield;\n @apply --paper-time-input-cotnainer;\n }\n --paper-input-container-input-webkit-spinner: {\n -webkit-appearance: none;\n margin: 0;\n display: none;\n }\n --paper-input-container-shared-input-style_-_-webkit-appearance: textfield;\n }\n\n paper-dropdown-menu {\n width: 55px;\n padding: 0;\n /* Force ripple to use the whole container */\n --paper-dropdown-menu-ripple: {\n color: var(\n --paper-time-input-dropdown-ripple-color,\n var(--primary-color)\n );\n }\n --paper-input-container-input: {\n @apply --paper-font-button;\n text-align: center;\n padding-left: 5px;\n @apply --paper-time-dropdown-input-cotnainer;\n }\n --paper-input-container-underline: {\n border-color: transparent;\n }\n --paper-input-container-underline-focus: {\n border-color: transparent;\n }\n }\n\n paper-item {\n cursor: pointer;\n text-align: center;\n font-size: 14px;\n }\n\n paper-listbox {\n padding: 0;\n }\n\n label {\n @apply --paper-font-caption;\n color: var(\n --paper-input-container-color,\n var(--secondary-text-color)\n );\n }\n\n .time-input-wrap {\n @apply --layout-horizontal;\n @apply --layout-no-wrap;\n justify-content: var(--paper-time-input-justify-content, normal);\n }\n\n [hidden] {\n display: none !important;\n }\n\n #millisec {\n width: 38px;\n }\n\n .no-suffix {\n margin-left: -2px;\n }\n \n\n \n
    \n \x3c!-- Hour Input --\x3e\n \n :\n \n\n \x3c!-- Min Input --\x3e\n \n :\n \n\n \x3c!-- Sec Input --\x3e\n \n :\n \n\n \x3c!-- Millisec Input --\x3e\n \n \n\n \x3c!-- Dropdown Menu --\x3e\n \n \n AM\n PM\n \n \n
    \n '],t||(t=e.slice(0)),Xt=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))));var e,t}},{key:"properties",get:function(){return{label:{type:String,value:"Time"},autoValidate:{type:Boolean,value:!0},hideLabel:{type:Boolean,value:!1},floatInputLabels:{type:Boolean,value:!1},alwaysFloatInputLabels:{type:Boolean,value:!1},format:{type:Number,value:12},disabled:{type:Boolean,value:!1},hour:{type:String,notify:!0},min:{type:String,notify:!0},sec:{type:String,notify:!0},millisec:{type:String,notify:!0},hourLabel:{type:String,value:""},minLabel:{type:String,value:""},secLabel:{type:String,value:""},millisecLabel:{type:String,value:""},enableSecond:{type:Boolean,value:!1},enableMillisecond:{type:Boolean,value:!1},noHoursLimit:{type:Boolean,value:!1},amPm:{type:String,notify:!0,value:"AM"},value:{type:String,notify:!0,readOnly:!0,computed:"_computeTime(min, hour, sec, millisec, amPm)"}}}}],(r=[{key:"validate",value:function(){var e=!0;return this.$.hour.validate()&&this.$.min.validate()||(e=!1),this.enableSecond&&!this.$.sec.validate()&&(e=!1),this.enableMillisecond&&!this.$.millisec.validate()&&(e=!1),12!==this.format||this.$.dropdown.validate()||(e=!1),e}},{key:"_computeTime",value:function(e,t,r,n,i){var o;return(t||e||r&&this.enableSecond||n&&this.enableMillisecond)&&(r=r||"00",n=n||"000",o=(t=t||"00")+":"+(e=e||"00"),this.enableSecond&&r&&(o=o+":"+r),this.enableMillisecond&&n&&(o=o+":"+n),12===this.format&&(o=o+" "+i)),o}},{key:"_onFocus",value:function(e){e.target.inputElement.inputElement.select()}},{key:"_formatMillisec",value:function(){1===this.millisec.toString().length&&(this.millisec=this.millisec.toString().padStart(3,"0"))}},{key:"_formatSec",value:function(){1===this.sec.toString().length&&(this.sec=this.sec.toString().padStart(2,"0"))}},{key:"_formatMin",value:function(){1===this.min.toString().length&&(this.min=this.min.toString().padStart(2,"0"))}},{key:"_shouldFormatHour",value:function(){24===this.format&&1===this.hour.toString().length&&(this.hour=this.hour.toString().padStart(2,"0"))}},{key:"_computeHourMax",value:function(e){return this.noHoursLimit?null:12===e?e:23}},{key:"_equal",value:function(e,t){return e===t}},{key:"_computeClassNames",value:function(e){return e?" ":"no-suffix"}}])&&tr(t.prototype,r),n&&tr(t,n),o}(r(28426).H3);function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){return(ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=mr(e);if(t){var i=mr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return pr(this,r)}}function pr(e,t){return!t||"object"!==cr(t)&&"function"!=typeof t?hr(e):t}function hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mr(e){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yr(){yr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!gr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n '],t||(t=e.slice(0)),ar=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.required,this.required,this.enableMillisecond,this._parseDuration(this._hours),this._parseDuration(this._minutes),this._parseDuration(this._seconds),this._parseDurationMillisec(this._milliseconds),this._hourChanged,this._minChanged,this._secChanged,this._millisecChanged);var e,t}},{kind:"get",key:"_hours",value:function(){return this.data&&this.data.hours?Number(this.data.hours):0}},{kind:"get",key:"_minutes",value:function(){return this.data&&this.data.minutes?Number(this.data.minutes):0}},{kind:"get",key:"_seconds",value:function(){return this.data&&this.data.seconds?Number(this.data.seconds):0}},{kind:"get",key:"_milliseconds",value:function(){return this.data&&this.data.milliseconds?Number(this.data.milliseconds):0}},{kind:"method",key:"_parseDuration",value:function(e){return e.toString().padStart(2,"0")}},{kind:"method",key:"_parseDurationMillisec",value:function(e){return e.toString().padStart(3,"0")}},{kind:"method",key:"_hourChanged",value:function(e){this._durationChanged(e,"hours")}},{kind:"method",key:"_minChanged",value:function(e){this._durationChanged(e,"minutes")}},{kind:"method",key:"_secChanged",value:function(e){this._durationChanged(e,"seconds")}},{kind:"method",key:"_millisecChanged",value:function(e){this._durationChanged(e,"milliseconds")}},{kind:"method",key:"_durationChanged",value:function(e,t){var r=Number(e.detail.value);if(r!==this["_".concat(t)]){var n=this._hours,i=this._minutes;"seconds"===t&&r>59&&(i+=Math.floor(r/60),r%=60),"minutes"===t&&r>59&&(n+=Math.floor(r/60),r%=60),(0,a.B)(this,"value-changed",{value:Object.assign({hours:n,minutes:i,seconds:this._seconds,milliseconds:this._milliseconds},lr({},t,r))})}}}]}}),n.oi);function Pr(e){return(Pr="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 xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Or(e,t){return(Or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jr(e);if(t){var i=jr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ar(this,r)}}function Ar(e,t){return!t||"object"!==Pr(t)&&"function"!=typeof t?Dr(e):t}function Dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(e){return(jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tr(){Tr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Fr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "],t||(t=e.slice(0)),Cr=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.schema.required,this.data);var e,t}}]}}),n.oi),r(58856),r(52039);function Ur(e){return(Ur="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 qr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kr(e,t){return(Kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Xr(e);if(t){var i=Xr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Yr(this,r)}}function Yr(e,t){return!t||"object"!==Ur(t)&&"function"!=typeof t?Wr(e):t}function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xr(e){return(Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jr(){Jr=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(!tn(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n \n "])),this._computeError(this.error.base,this.schema)):"",this.schema.map((function(t){return(0,n.dy)(Sn||(Sn=zn(["\n \n "])),e._getValue(e.data,t),t,e._getValue(e.error,t),e._valueChanged,e.computeError,e.computeLabel,e.computeSuffix)}))):(0,n.dy)(An||(An=zn(["\n ","\n ","\n "])),this.error?(0,n.dy)(Dn||(Dn=zn(['\n
    \n ',"\n
    \n "])),this._computeError(this.error,this.schema)):"",ne("ha-form-".concat(this.schema.type),{schema:this.schema,data:this.data,label:this._computeLabel(this.schema),suffix:this._computeSuffix(this.schema),id:"child-form"}))}},{kind:"method",key:"_computeLabel",value:function(e){return this.computeLabel?this.computeLabel(e):e?e.name:""}},{kind:"method",key:"_computeSuffix",value:function(e){return this.computeSuffix?this.computeSuffix(e):e&&e.description?e.description.suffix:""}},{kind:"method",key:"_computeError",value:function(e,t){return this.computeError?this.computeError(e,t):e}},{kind:"method",key:"_getValue",value:function(e,t){return e?e[t.name]:null}},{kind:"method",key:"_valueChanged",value:function(e){e.stopPropagation();var t,r,n,i=e.target.schema,o=this.data;(0,a.B)(this,"value-changed",{value:Object.assign({},o,(t={},r=i.name,n=e.detail.value,r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t))})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(jn||(jn=zn(["\n .error {\n color: var(--error-color);\n }\n "])))}}]}}),n.oi),r(78358),r(7315);function Yn(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 Wn,Xn=function(){var e,t=(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Qn||(Qn=Promise.all([r.e(102),r.e(914)]).then(r.bind(r,92914))),e.abrupt("return",Qn);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Yn(o,n,i,a,s,"next",e)}function s(e){Yn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function Jn(e){return(Jn="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 Gn(e){return function(e){if(Array.isArray(e))return hi(e)}(e)||mi(e)||pi(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 ei(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 ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ri(e,t){return(ri=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=vi(e);if(t){var i=vi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ii(this,r)}}function ii(e,t){return!t||"object"!==Jn(t)&&"function"!=typeof t?oi(e):t}function oi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(){ai=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(!li(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r",'\n \n
    \n

    \n ','\n

    \n
    \n \n \n \n \n ','\n \n \n
    \n
    \n\n
    \n ',"\n ","\n ","\n
    \n ",'\n
    \n ',""])),this._error):"",!this._yamlMode||this._canShowSchema&&this.addon.schema||this._valid?"":(0,n.dy)($i||($i=Qi(['\n \n ',"\n \n "])),this.supervisor.localize("addon.configuration.options.invalid_yaml")),t?(0,n.dy)(Ni||(Ni=Qi(['=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
    \n ","\n \n ","\n ","
    \n
    \n
    \n ',""])),this._error):"",this.supervisor.localize("addon.configuration.network.container"),this.supervisor.localize("addon.configuration.network.host"),this.supervisor.localize("common.description"),this._config.map((function(t){return(0,n.dy)(ho||(ho=ko(["\n \n ","\n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])));var e=this.addon.options&&Object.keys(this.addon.options).length||this.addon.schema&&Object.keys(this.addon.schema).length;return(0,n.dy)(Lo||(Lo=Zo(['\n
    \n ',"\n
    \n "])),e||this.addon.network||this.addon.audio?(0,n.dy)(Bo||(Bo=Zo(["\n ","\n ","\n ","\n "])),e?(0,n.dy)(Ho||(Ho=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.network?(0,n.dy)(Vo||(Vo=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.audio?(0,n.dy)($o||($o=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):""):this.supervisor.localize("addon.configuration.no_configuration"))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(No||(No=Zo(["\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 "])))]}}]}}),n.oi),r(93546);function pa(e){return(pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ha(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ma(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function ya(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ma(o,n,i,a,s,"next",e)}function s(e){ma(o,n,i,a,s,"throw",e)}a(void 0)}))}}function va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ba(e,t){return(ba=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ga(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ja(e);if(t){var i=ja(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return wa(this,r)}}function wa(e,t){return!t||"object"!==pa(t)&&"function"!=typeof t?ka(e):t}function ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(){Ea=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(!Pa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ','\n
    \n ',"\n
    \n
    \n
    \n "])),this._error?(0,n.dy)(la||(la=ha(['',""])),this._error):"",this._content?(0,n.dy)(da||(da=ha([""])),this._content):(0,n.dy)(ua||(ua=ha([""])))):(0,n.dy)(sa||(sa=ha([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(fa||(fa=ha(["\n ha-card {\n display: block;\n }\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n ha-markdown {\n padding: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(r=ya(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,l.ii)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.documentation.get_logs","error",(0,d.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi);var Ta,za,Ra=r(76666),Fa=r(63864);function Ma(e){return(Ma="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 Ia(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 La(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ba(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ua(e);if(t){var i=Ua(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return $a(this,r)}}function $a(e,t){return!t||"object"!==Ma(t)&&"function"!=typeof t?Na(e):t}function Na(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e){return(Ua=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qa(){qa=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(!Qa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "])),this.progress,this._buttonTapped,this.disabled)}},{kind:"method",key:"_buttonTapped",value:(r=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.progress=!0,t={method:this.method,path:this.path,data:this.data},e.prev=2,e.next=5,this.hass.callApi(this.method,this.path,this.data);case 5:r=e.sent,this.progress=!1,this._progressButton.actionSuccess(),t.success=!0,t.response=r,e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.progress=!1,this._progressButton.actionError(),t.success=!1,t.response=e.t0;case 18:(0,a.B)(this,"hass-api-called",t);case 19:case"end":return e.stop()}}),e,this,[[2,12]])})),o=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Ia(o,n,i,a,s,"next",e)}function s(e){Ia(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return o.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(za||(za=La(["\n :host([disabled]) {\n pointer-events: none;\n }\n "])))}}]}}),n.oi);function as(e){return(as="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 ss(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ls(e,t){return(ls=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ds(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Es(e);if(t){var i=Es(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return us(this,r)}}function us(e,t){return!t||"object"!==as(t)&&"function"!=typeof t?fs(e):t}function fs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ps(){ps=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(!ys(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
    \n \n \n ',"\n ","\n \n
    \n ","\n \n ","\n \n "])),(0,Ra.$)({value:!0,big:Boolean(this.value&&this.value.length>4)}),!this.icon||this.value||this.image?"":(0,n.dy)(es||(es=ss([""])),this.icon),this.value&&!this.image?(0,n.dy)(ts||(ts=ss(["",""])),this.value):"",this.label?(0,n.dy)(rs||(rs=ss(['\n \n ',"\n \n "])),(0,Ra.$)({label:!0,big:this.label.length>5}),this.label):"",this.description?(0,n.dy)(ns||(ns=ss(['
    ',"
    "])),this.description):"")}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,n.iv)(is||(is=ss(["\n .badge-container {\n display: inline-block;\n text-align: center;\n vertical-align: top;\n padding: var(--ha-label-badge-padding, 0 0 0 0);\n }\n .label-badge {\n position: relative;\n display: block;\n margin: 0 auto;\n width: var(--ha-label-badge-size, 2.5em);\n text-align: center;\n height: var(--ha-label-badge-size, 2.5em);\n line-height: var(--ha-label-badge-size, 2.5em);\n font-size: var(--ha-label-badge-font-size, 1.5em);\n border-radius: 50%;\n border: 0.1em solid var(--ha-label-badge-color, var(--primary-color));\n color: var(--label-badge-text-color, rgb(76, 76, 76));\n\n white-space: nowrap;\n background-color: var(--label-badge-background-color, white);\n background-size: cover;\n transition: border 0.3s ease-in-out;\n }\n .label-badge .value {\n font-size: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .label-badge .value.big {\n font-size: 70%;\n }\n .label-badge .label {\n position: absolute;\n bottom: -1em;\n /* Make the label as wide as container+border. (parent_borderwidth / font-size) */\n left: -0.2em;\n right: -0.2em;\n line-height: 1em;\n font-size: 0.5em;\n }\n .label-badge .label span {\n box-sizing: border-box;\n max-width: 100%;\n display: inline-block;\n background-color: var(--ha-label-badge-color, var(--primary-color));\n color: var(--ha-label-badge-label-color, white);\n border-radius: 1em;\n padding: 9% 16% 8% 16%; /* mostly apitalized text, not much descenders => bit more top margin */\n font-weight: 500;\n overflow: hidden;\n text-transform: uppercase;\n text-overflow: ellipsis;\n transition: background-color 0.3s ease-in-out;\n text-transform: var(--ha-label-badge-label-text-transform, uppercase);\n }\n .label-badge .label.big span {\n font-size: 90%;\n padding: 10% 12% 7% 12%; /* push smaller text a bit down to center vertically */\n }\n .badge-container .title {\n margin-top: 1em;\n font-size: var(--ha-label-badge-title-font-size, 0.9em);\n width: var(--ha-label-badge-title-width, 5em);\n font-weight: var(--ha-label-badge-title-font-weight, 400);\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: normal;\n }\n "])))]}},{kind:"method",key:"updated",value:function(e){ks(Es(r.prototype),"updated",this).call(this,e),e.has("image")&&(this.shadowRoot.getElementById("badge").style.backgroundImage=this.image?"url(".concat(this.image,")"):"")}}]}}),n.oi);customElements.define("ha-label-badge",_s);r(14089);var Cs,Ps,xs,Os,Ss,As,Ds,js,Ts,zs,Rs,Fs,Ms,Is,Ls,Bs,Hs,Vs,$s,Ns,Us,qs,Zs,Ks,Qs,Ys,Ws,Xs,Js,Gs,ec,tc,rc,nc,ic,oc,ac,sc,cc,lc,dc,uc,fc,pc,hc=r(70203),mc=(r(23295),r(21050),function(e,t){(0,a.B)(e,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return r.e(884).then(r.bind(r,56884))},dialogParams:t})}),yc=r(7628),vc=(0,o.Z)((function(e,t){return t.some((function(t){return e.includes(t)}))}));function bc(e){return(bc="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 gc(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 wc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){gc(o,n,i,a,s,"next",e)}function s(e){gc(o,n,i,a,s,"throw",e)}a(void 0)}))}}function kc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _c(e,t){return(_c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mc(e);if(t){var i=Mc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Pc(this,r)}}function Pc(e,t){return!t||"object"!==bc(t)&&"function"!=typeof t?xc(e):t}function xc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oc(){Oc=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 d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
    \n
    \n ','\n
    \n ','\n
    \n
    \n
    \n ','\n
    \n\n
    \n ',".
    \n ",'\n
    \n
    \n
    \n ','\n
    \n ',"\n\n \n ',"\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n
    \n\n ","\n
    \n
    \n ","\n
    \n
    \n ","\n ",'\n
    \n
    \n
    \n ',"\n
    \n
    \n ","\n
    \n
    \n
    \n\n ","\n "])),this.addon.update_available?(0,n.dy)(Ps||(Ps=kc(['\n \n
    \n \n ','\n
    \n
    \n ',"\n \n ","\n \n
    \n \n "])),this.supervisor.localize("common.update_available","count",1),this.hass,this.supervisor.localize("addon.dashboard.new_update_available","name",this.addon.name,"version",this.addon.version_latest),this.supervisor.localize("common.running_version","version",this.addon.version),"M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",!this.addon.available&&a?vc(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(Os||(Os=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(xs||(xs=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")):"",this.addon.changelog?(0,n.dy)(Ss||(Ss=kc(["\n \n ","\n \n "])),this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(As||(As=kc([""]))),this._updateClicked,this.supervisor.localize("common.update")):"",this.addon.protected?"":(0,n.dy)(Ds||(Ds=kc(['\n \n

    ','\n

    \n
    \n ','\n
    \n
    \n \n (',")\n
    \n "])),this.addon.version,this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(Ms||(Ms=kc(['',""])),this.addon.url,this.addon.name)),this.addon.logo?(0,n.dy)(Ls||(Ls=kc(['\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.watchdog.title"),this.supervisor.localize("addon.dashboard.option.watchdog.description"),this._watchdogToggled,this.addon.watchdog):"",this.addon.auto_update||null!==(o=this.hass.userData)&&void 0!==o&&o.showAdvanced?(0,n.dy)(Xs||(Xs=kc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.auto_update.title"),this.supervisor.localize("addon.dashboard.option.auto_update.description"),this._autoUpdateToggled,this.addon.auto_update):"",!this._computeCannotIngressSidebar&&this.addon.ingress?(0,n.dy)(Js||(Js=kc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.ingress_panel.title"),this.supervisor.localize("addon.dashboard.option.ingress_panel.description"),this._panelToggled,this.addon.ingress_panel):"",this._computeUsesProtectedOptions?(0,n.dy)(Gs||(Gs=kc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.protected.title"),this.supervisor.localize("addon.dashboard.option.protected.description"),this._protectionToggled,this.addon.protected):""):"","started"===this.addon.state?(0,n.dy)(ec||(ec=kc(["\n ','\n \n '," \n \n ",""])),this.narrow,this.supervisor.localize("addon.dashboard.hostname"),this.addon.hostname,s.map((function(e){var t;return(0,n.dy)(tc||(tc=kc(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)}))):"",this._error?(0,n.dy)(rc||(rc=kc(['',""])),this._error):"",this.addon.version||!a||this.addon.available?"":vc(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(ic||(ic=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_version","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(nc||(nc=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")),this.addon.version?this._computeIsRunning?(0,n.dy)(oc||(oc=kc(['\n \n \n \n ',"\n \n
    \n "])),this._pathWebui,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._computeShowIngressUI?(0,n.dy)(dc||(dc=kc(["\n \n ","\n \n "])),this._openIngress,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._uninstallClicked,this.supervisor.localize("addon.dashboard.uninstall"),this.addon.build?(0,n.dy)(uc||(uc=kc(['\n \n ',"\n \n "])),this.hass,this.addon.slug,this.supervisor.localize("addon.dashboard.rebuild")):""):"",this.addon.long_description?(0,n.dy)(fc||(fc=kc(['\n \n
    \n '),"icon_experimental",''),"icon_deprecated",'')):this.supervisor.localize("addon.dashboard.capability.".concat(t,".description"))})}},{kind:"get",key:"_computeIsRunning",value:function(){var e;return"started"===(null===(e=this.addon)||void 0===e?void 0:e.state)}},{kind:"get",key:"_pathWebui",value:function(){return this.addon.webui&&this.addon.webui.replace("[HOST]",document.location.hostname)}},{kind:"get",key:"_computeShowWebUI",value:function(){return!this.addon.ingress&&this.addon.webui&&this._computeIsRunning}},{kind:"method",key:"_openIngress",value:function(){(0,s.c)("/hassio/ingress/".concat(this.addon.slug))}},{kind:"get",key:"_computeShowIngressUI",value:function(){return this.addon.ingress&&this._computeIsRunning}},{kind:"get",key:"_computeCannotIngressSidebar",value:function(){return!this.addon.ingress||!(0,Fa.I)(this.hass.config.version,0,92)}},{kind:"get",key:"_computeUsesProtectedOptions",value:function(){return this.addon.docker_api||this.addon.full_access||this.addon.host_pid}},{kind:"method",key:"_startOnBootToggled",value:(C=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={boot:"auto"===this.addon.boot?"manual":"auto"},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return C.apply(this,arguments)})},{kind:"method",key:"_watchdogToggled",value:(_=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={watchdog:!this.addon.watchdog},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return _.apply(this,arguments)})},{kind:"method",key:"_autoUpdateToggled",value:(E=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={auto_update:!this.addon.auto_update},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_protectionToggled",value:(k=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={protected:!this.addon.protected},e.prev=2,e.next=5,(0,l.NI)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"security"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_panelToggled",value:(w=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={ingress_panel:!this.addon.ingress_panel},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_openChangelog",value:(g=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,l.CH)(this.hass,this.addon.slug);case 3:(t=e.sent).includes("# ".concat(this.addon.version))&&t.includes("# ".concat(this.addon.version_latest))&&(r=t.split("# ".concat(this.addon.version))[0]).includes("# ".concat(this.addon.version_latest))&&(t=r),mc(this,{title:this.supervisor.localize("addon.dashboard.changelog"),content:t}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.get_changelog"),text:(0,d.js)(e.t0)});case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_installClicked",value:(b=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.fU)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"install"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.install"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return b.apply(this,arguments)})},{kind:"method",key:"_stopClicked",value:(v=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.ow)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.stop"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return v.apply(this,arguments)})},{kind:"method",key:"_restartClicked",value:(y=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.P$)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.restart"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return y.apply(this,arguments)})},{kind:"method",key:"_updateClicked",value:(m=wc(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,yc.z)(this,{supervisor:this.supervisor,name:this.addon.name,version:this.addon.version_latest,backupParams:{name:"addon_".concat(this.addon.slug,"_").concat(this.addon.version),addons:[this.addon.slug],homeassistant:!1},updateHandler:function(){var e=wc(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t._updateAddon());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_updateAddon",value:(p=wc(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.V_)(this.hass,this.addon.slug);case 2:(0,a.B)(this,"supervisor-collection-refresh",{collection:"addon"}),t={success:!0,response:void 0,path:"update"},(0,a.B)(this,"hass-api-called",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{kind:"method",key:"_startClicked",value:(c=wc(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.su)(this.hass,this.addon.slug);case 5:if((n=e.sent).valid){e.next=11;break}return e.next=9,(0,h.g7)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start_invalid_config"),text:n.message.split(" Got ")[0],confirm:function(){return o._openConfiguration()},confirmText:this.supervisor.localize("addon.dashboard.action_error.go_to_config"),dismissText:this.supervisor.localize("common.cancel")});case 9:return r.progress=!1,e.abrupt("return");case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(2),(0,h.Ys)(this,{title:"Failed to validate addon configuration",text:(0,d.js)(e.t0)}),r.progress=!1,e.abrupt("return");case 18:return e.prev=18,e.next=21,(0,l.kP)(this.hass,this.addon.slug);case 21:return e.next=23,(0,l.AD)(this.hass,this.addon.slug);case 23:this.addon=e.sent,i={success:!0,response:void 0,path:"start"},(0,a.B)(this,"hass-api-called",i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(18),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start"),text:(0,d.js)(e.t1)});case 31:r.progress=!1;case 32:case"end":return e.stop()}}),e,this,[[2,13],[18,28]])}))),function(e){return c.apply(this,arguments)})},{kind:"method",key:"_openConfiguration",value:function(){(0,s.c)("/hassio/addon/".concat(this.addon.slug,"/config"))}},{kind:"method",key:"_uninstallClicked",value:(r=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.next=4,(0,h.g7)(this,{title:this.addon.name,text:"Are you sure you want to uninstall this add-on?",confirmText:"uninstall add-on",dismissText:"no"});case 4:if(e.sent){e.next=8;break}return r.progress=!1,e.abrupt("return");case 8:return this._error=void 0,e.prev=9,e.next=12,(0,l.Yn)(this.hass,this.addon.slug);case 12:n={success:!0,response:void 0,path:"uninstall"},(0,a.B)(this,"hass-api-called",n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.uninstall"),text:(0,d.js)(e.t0)});case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(pc||(pc=kc(['\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-width: 100%;\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(--success-color);\n }\n ha-svg-icon.stopped {\n color: var(--error-color);\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 '])))]}}]}}),n.oi);function Nc(e){return(Nc="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 Uc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function qc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zc(e,t){return(Zc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Wc(e);if(t){var i=Wc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Qc(this,r)}}function Qc(e,t){return!t||"object"!==Nc(t)&&"function"!=typeof t?Yc(e):t}function Yc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wc(e){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xc(){Xc=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(!el(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r","\n \n ",'\n
    \n ','\n
    \n
    \n ',""])),this._error):"",this._content?(0,n.dy)(sl||(sl=dl([""])),this._content):"",this._refresh,this.supervisor.localize("common.refresh"))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(cl||(cl=dl(["\n :host,\n ha-card {\n display: block;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(o=fl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,l.kr)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.logs.get_logs","error",(0,d.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return o.apply(this,arguments)})},{kind:"method",key:"_refresh",value:(r=fl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]}}),n.oi);function jl(e){return(jl="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 Tl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(e,t){return(Rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ll(e);if(t){var i=Ll(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ml(this,r)}}function Ml(e,t){return!t||"object"!==jl(t)&&"function"!=typeof t?Il(e):t}function Il(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ll(e){return(Ll=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bl(){Bl=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(!$l(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this._error);if(!this.addon)return(0,n.dy)(ld||(ld=md([""])));var e=[{translationKey:"addon.panel.info",path:"/hassio/addon/".concat(this.addon.slug,"/info"),iconPath:"M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"}];this.addon.documentation&&e.push({translationKey:"addon.panel.documentation",path:"/hassio/addon/".concat(this.addon.slug,"/documentation"),iconPath:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}),this.addon.version&&e.push({translationKey:"addon.panel.configuration",path:"/hassio/addon/".concat(this.addon.slug,"/config"),iconPath:"M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z"},{translationKey:"addon.panel.log",path:"/hassio/addon/".concat(this.addon.slug,"/logs"),iconPath:"M18 7C16.9 7 16 7.9 16 9V15C16 16.1 16.9 17 18 17H20C21.1 17 22 16.1 22 15V11H20V15H18V9H22V7H18M2 7V17H8V15H4V7H2M11 7C9.9 7 9 7.9 9 9V15C9 16.1 9.9 17 11 17H13C14.1 17 15 16.1 15 15V9C15 7.9 14.1 7 13 7H11M11 9H13V15H11V9Z"});var t=this._computeTail(this.route);return(0,n.dy)(dd||(dd=md(["\n ',"\n \n \n "])),this.hass,this.supervisor.localize,this.narrow,this.addon.version?"/hassio/dashboard":"/hassio/store",t,e,this.addon.name,t,this.narrow,this.hass,this.supervisor,this.addon)}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(ud||(ud=md(["\n :host {\n color: var(--primary-text-color);\n }\n .content {\n padding: 24px 0 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n width: 600px;\n }\n hassio-addon-logs {\n max-width: calc(100% - 8px);\n min-width: 600px;\n }\n @media only screen and (max-width: 600px) {\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config,\n hassio-addon-logs {\n max-width: 100%;\n min-width: 100%;\n }\n }\n "])))]}},{kind:"method",key:"firstUpdated",value:(h=hd(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=8;break}if(!(t=(0,c.io)("addon"))){e.next=8;break}return e.next=5,(0,l.yt)(this.hass);case 5:e.sent.addons.some((function(e){return e.slug===t}))?(0,s.c)("/hassio/addon/".concat(t),{replace:!0}):this._error=this.supervisor.localize("my.error_addon_not_found");case 8:this.addEventListener("hass-api-called",(function(e){return r._apiCalled(e)}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{kind:"method",key:"_apiCalled",value:(p=hd(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.detail.success){e.next=2;break}return e.abrupt("return");case 2:if((n=null===(r=t.detail.path)||void 0===r?void 0:r.split("/"))&&0!==n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=n[n.length-1],["uninstall","install","update","start","stop"].includes(i)&&(0,a.B)(this,"supervisor-collection-refresh",{collection:"supervisor"}),"uninstall"!==i){e.next=11;break}window.history.back(),e.next=13;break;case 11:return e.next=13,this._routeDataChanged();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){e.has("route")&&!this.addon&&this._routeDataChanged()}},{kind:"method",key:"_routeDataChanged",value:(r=hd(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.route.path.split("/")[1]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,l.AD)(this.hass,t);case 6:r=e.sent,this.addon=r,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),this._error="Error fetching addon info: ".concat((0,d.js)(e.t0)),this.addon=void 0;case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi)},93546:function(e,t,r){"use strict";var n,i=r(50424),o=r(55358),a=r(47181),s=r(91107);function c(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 l=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,s.Ud)(new Worker(new URL(r.p+r.u(971),r.b)))),e.abrupt("return",n.renderMarkdown(t,i,o));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function d(e){return(d="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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var i=x(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){v=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var 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 d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this.content,this.allowSvg,this.breaks):(0,i.dy)(O||(O=j([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(A||(A=j(["\n :host {\n display: block;\n }\n ha-markdown-element {\n -ms-user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n }\n ha-markdown-element > *:first-child {\n margin-top: 0;\n }\n ha-markdown-element > *:last-child {\n margin-bottom: 0;\n }\n ha-markdown-element a {\n color: var(--primary-color);\n }\n ha-markdown-element img {\n max-width: 100%;\n }\n ha-markdown-element code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n ha-markdown-element svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n ha-markdown-element code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n ha-markdown-element pre code {\n padding: 0;\n }\n ha-markdown-element pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n ha-markdown-element h2 {\n font-size: 1.5em;\n font-weight: bold;\n }\n "])))}}]}}),i.oi)}}]); +//# sourceMappingURL=649b5acd.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/649b5acd.js.gz b/supervisor/api/panel/frontend_es5/649b5acd.js.gz new file mode 100644 index 000000000..261248d9d Binary files /dev/null and b/supervisor/api/panel/frontend_es5/649b5acd.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/649b5acd.js.map b/supervisor/api/panel/frontend_es5/649b5acd.js.map new file mode 100644 index 000000000..3ad7bb39a --- /dev/null +++ b/supervisor/api/panel/frontend_es5/649b5acd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"649b5acd.js","sources":["webpack://home-assistant-frontend/649b5acd.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/6de58640.js b/supervisor/api/panel/frontend_es5/6de58640.js new file mode 100644 index 000000000..bde3f1ebc --- /dev/null +++ b/supervisor/api/panel/frontend_es5/6de58640.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[354],{91107:function(t,n,r){"use strict";function e(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var e,o,a=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(e=r.next()).done)&&(a.push(e.value),!n||a.length!==n);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(t,n)||l(t,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 o(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function a(t,n,r){return(a=i()?Reflect.construct:function(t,n,r){var e=[null];e.push.apply(e,n);var o=new(Function.bind.apply(t,e));return r&&u(o,r.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function u(t,n){return(u=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(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 l(t,n){if(t){if("string"==typeof t)return f(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,n):void 0}}function f(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r1&&void 0!==arguments[1]?arguments[1]:self;n.addEventListener("message",(function r(i){if(i&&i.data){var u,l=Object.assign({path:[]},i.data),f=l.id,s=l.type,p=l.path,y=(i.data.argumentList||[]).map(O);try{var v=p.slice(0,-1).reduce((function(t,n){return t[n]}),t),h=p.reduce((function(t,n){return t[n]}),t);switch(s){case"GET":u=h;break;case"SET":v[p.slice(-1)[0]]=O(i.data.value),u=!0;break;case"APPLY":u=h.apply(v,y);break;case"CONSTRUCT":var m;u=P(a(h,c(y)));break;case"ENDPOINT":var w=new MessageChannel,S=w.port1,E=w.port2;d(t,E),u=A(S,[S]);break;case"RELEASE":u=void 0;break;default:return}}catch(m){u=o({value:m},b,0)}Promise.resolve(u).catch((function(t){return o({value:t},b,0)})).then((function(t){var o=e(j(t),2),a=o[0],i=o[1];n.postMessage(Object.assign(Object.assign({},a),{id:f}),i),"RELEASE"===s&&(n.removeEventListener("message",r),g(n))}))}})),n.start&&n.start()}function g(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function w(t){if(t)throw new Error("Proxy has been released and is not useable")}function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,a=new Proxy(r,{get:function(r,e){if(w(o),e===v)return function(){return T(t,{type:"RELEASE",path:n.map((function(t){return t.toString()}))}).then((function(){g(t),o=!0}))};if("then"===e){if(0===n.length)return{then:function(){return a}};var i=T(t,{type:"GET",path:n.map((function(t){return t.toString()}))}).then(O);return i.then.bind(i)}return S(t,[].concat(c(n),[e]))},set:function(r,a,i){w(o);var u=e(j(i),2),l=u[0],f=u[1];return T(t,{type:"SET",path:[].concat(c(n),[a]).map((function(t){return t.toString()})),value:l},f).then(O)},apply:function(r,a,i){w(o);var u=n[n.length-1];if(u===y)return T(t,{type:"ENDPOINT"}).then(O);if("bind"===u)return S(t,n.slice(0,-1));var c=e(E(i),2),l=c[0],f=c[1];return T(t,{type:"APPLY",path:n.map((function(t){return t.toString()})),argumentList:l},f).then(O)},construct:function(r,a){w(o);var i=e(E(a),2),u=i[0],c=i[1];return T(t,{type:"CONSTRUCT",path:n.map((function(t){return t.toString()})),argumentList:u},c).then(O)}});return a}function E(t){var n,r=t.map(j);return[r.map((function(t){return t[0]})),(n=r.map((function(t){return t[1]})),Array.prototype.concat.apply([],n))]}var _=new WeakMap;function A(t,n){return _.set(t,n),t}function P(t){return Object.assign(t,o({},p,!0))}function j(t){var n,r=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,o=function(){};return{s:o,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}(m);try{for(r.s();!(n=r.n()).done;){var o=e(n.value,2),a=o[0],i=o[1];if(i.canHandle(t)){var u=e(i.serialize(t),2);return[{type:"HANDLER",name:a,value:u[0]},u[1]]}}}catch(c){r.e(c)}finally{r.f()}return[{type:"RAW",value:t},_.get(t)||[]]}function O(t){switch(t.type){case"HANDLER":return m.get(t.name).deserialize(t.value);case"RAW":return t.value}}function T(t,n,r){return new Promise((function(e){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");t.addEventListener("message",(function n(r){r.data&&r.data.id&&r.data.id===o&&(t.removeEventListener("message",n),e(r.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),r)}))}},58556:function(t,n,r){"use strict";var e;(e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?global:self).Proxy||(e.Proxy=r(87082)(),e.Proxy.revocable=e.Proxy.revocable)},87082:function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){var t,r=null;function e(t){return!!t&&("object"===n(t)||"function"==typeof t)}function o(t){if(null!==t&&!e(t))throw new TypeError("Object prototype may only be an Object or null: "+t)}var a=Object,i=Boolean(a.create)||!({__proto__:null}instanceof a),u=a.create||(i?function(t){return o(t),{__proto__:t}}:function(t){if(o(t),null===t)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var n=function(){};return n.prototype=t,new n}),c=function(){return null},l=a.getPrototypeOf||([].__proto__===Array.prototype?function(t){var n=t.__proto__;return e(n)?n:null}:c);return(t=function(n,f){if(void 0===(this&&this instanceof t?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!e(n)||!e(f))throw new TypeError("Cannot create proxy with a non-object as target or handler");var s=function(){};r=function(){n=null,s=function(t){throw new TypeError("Cannot perform '".concat(t,"' on a proxy that has been revoked"))}},setTimeout((function(){r=null}),0);var p=f;for(var y in f={get:null,set:null,apply:null,construct:null},p){if(!(y in f))throw new TypeError("Proxy polyfill does not support trap '".concat(y,"'"));f[y]=p[y]}"function"==typeof p&&(f.apply=p.apply.bind(p));var v,b=l(n),h=!1,m=!1;"function"==typeof n?(v=function(){var t=this&&this.constructor===v,r=Array.prototype.slice.call(arguments);if(s(t?"construct":"apply"),t&&f.construct)return f.construct.call(this,n,r);if(!t&&f.apply)return f.apply(n,this,r);if(t){r.unshift(n);var e=n.bind.apply(n,r);return new e}return n.apply(this,r)},h=!0):n instanceof Array?(v=[],m=!0):v=i||null!==b?u(b):{};var d=f.get?function(t){return s("get"),f.get(this,t,v)}:function(t){return s("get"),this[t]},g=f.set?function(t,n){s("set");f.set(this,t,n,v)}:function(t,n){s("set"),this[t]=n},w=a.getOwnPropertyNames(n),S={};w.forEach((function(t){if(!h&&!m||!(t in v)){var r=a.getOwnPropertyDescriptor(n,t),e={enumerable:Boolean(r.enumerable),get:d.bind(n,t),set:g.bind(n,t)};a.defineProperty(v,t,e),S[t]=!0}}));var E=!0;if(h||m){var _=a.setPrototypeOf||([].__proto__===Array.prototype?function(t,n){return o(n),t.__proto__=n,t}:c);b&&_(v,b)||(E=!1)}if(f.get||!E)for(var A in n)S[A]||a.defineProperty(v,A,{get:d.bind(n,A)});return a.seal(n),a.seal(v),v}).revocable=function(n,e){return{proxy:new t(n,e),revoke:r}},t}}}]); +//# sourceMappingURL=6de58640.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/6de58640.js.gz b/supervisor/api/panel/frontend_es5/6de58640.js.gz new file mode 100644 index 000000000..2f137d86a Binary files /dev/null and b/supervisor/api/panel/frontend_es5/6de58640.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/6de58640.js.map b/supervisor/api/panel/frontend_es5/6de58640.js.map new file mode 100644 index 000000000..8701ac685 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/6de58640.js.map @@ -0,0 +1 @@ +{"version":3,"file":"6de58640.js","sources":["webpack://home-assistant-frontend/6de58640.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/71906b61.js b/supervisor/api/panel/frontend_es5/71906b61.js new file mode 100644 index 000000000..e17ac2f45 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/71906b61.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[468],{91100:function(e,t,n){var r=n(79668),u=n(48544);n(27301);function i(e){return null==e}function s(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}s.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,s=t.onIgnoreAttr,o=t.safeAttrValue;return u(e,(function(e,t,u,a,l){var c=n[u],D=!1;if(!0===c?D=c:"function"==typeof c?D=c(a):c instanceof RegExp&&(D=c.test(a)),!0!==D&&(D=!1),a=o(u,a)){var p,h={position:t,sourcePosition:e,source:l,isWhite:D};return D?i(p=r(u,a,h))?u+":"+a:p:i(p=s(u,a,h))?void 0:p}}))},e.exports=s},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,s=0,o="";function a(){if(!u){var n=r.trim(e.slice(i,s)),a=n.indexOf(":");if(-1!==a){var l=r.trim(n.slice(0,a)),c=r.trim(n.slice(a+1));if(l){var D=t(i,o.length,l,c,n);D&&(o+=D+"; ")}}}i=s+1}for(;se.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.")}var r={exports:{}};function u(){return{baseUrl:null,breaks:!1,extensions:null,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}}r.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,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:u,changeDefaults:function(e){r.exports.defaults=e}};var i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(e){return l[e]},D=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(D,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g,f=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,d={},m=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function F(e,t){d[" "+e]||(m.test(e)?d[" "+e]=e+"/":d[" "+e]=x(e,"/",!0));var n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(A,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(k,"$1")+t:e+t}function x(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[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},$=r.exports.defaults,I=_,R=y,L=b,O=z;function j(e,t,n,r){var u=t.href,i=t.title?L(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var o={type:"link",raw:n,href:u,title:i,text:s,tokens:r.inlineTokens(s,[])};return r.state.inLink=!1,o}return{type:"image",raw:n,href:u,title:i,text:L(s)}}var q=function(){function e(e){this.options=e||$}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:I(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=I(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}var u={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(u.text,u.tokens),u}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,u,i,s,o,a,l,c,D,p=t[1].trim(),h=p.length>1,f={type:"list",raw:"",ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]};p=h?"\\d{1,9}\\"+p.slice(-1):"\\"+p,this.options.pedantic&&(p=h?p:"[*+-]");for(var g=new RegExp("^( {0,3}"+p+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");e&&!this.rules.block.hr.test(e)&&(t=g.exec(e));){c=t[2].split("\n"),this.options.pedantic?(i=2,D=c[0].trimLeft()):(i=t[2].search(/[^ ]/),i=t[1].length+(i>4?1:i),D=c[0].slice(i-t[1].length)),o=!1,n=t[0],!c[0]&&/^ *$/.test(c[1])&&(n=t[1]+c.slice(0,2).join("\n")+"\n",f.loose=!0,c=[]);var d=new RegExp("^ {0,"+Math.min(3,i-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(s=1;s=i)&&l.trim()){n=t[1]+c.slice(0,s).join("\n")+"\n";break}D+="\n"+l.slice(i)}else l.trim()||(o=!0),l.search(/[^ ]/)>=i?D+="\n"+l.slice(i):D+="\n"+l}f.loose||(a?f.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(D))&&(u="[ ] "!==r[0],D=D.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:n,task:!!r,checked:u,loose:!1,text:D}),f.raw+=n,e=e.slice(n.length)}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=D.trimRight(),f.raw=f.raw.trimRight();var m=f.items.length;for(s=0;s/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):L(t[0]):t[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=I(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var u=O(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 s=t[2],o="";if(this.options.pedantic){var a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);a&&(s=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^$/.test(n)?s.slice(1):s.slice(1,-1)),j(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0],this.lexer)}},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 j(n,r,n[0],this.lexer)}},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,s,o=r[0].length-1,a=o,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+o);null!=(r=c.exec(t));)if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(s=i.length,r[3]||r[4])a+=s;else if(!((r[5]||r[6])&&o%3)||(o+s)%3){if(!((a-=s)>0)){if(s=Math.min(s,s+a+l),Math.min(o,s)%2){var D=e.slice(1,o+r.index+s);return{type:"em",raw:e.slice(0,o+r.index+s+1),text:D,tokens:this.lexer.inlineTokens(D,[])}}var p=e.slice(2,o+r.index+s-1);return{type:"strong",raw:e.slice(0,o+r.index+s+1),text:p,tokens:this.lexer.inlineTokens(p,[])}}}else l+=s}}},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=L(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],tokens:this.lexer.inlineTokens(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=L(this.options.mangle?t(u[1]):u[1])):n=L(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=L(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=L(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){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):L(r[0]):r[0]:L(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}},e}(),Z=w,P=E,Q=B,U={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:Z,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};U.def=P(U.def).replace("label",U._label).replace("title",U._title).getRegex(),U.bullet=/(?:[*+-]|\d{1,9}[.)])/,U.listItemStart=P(/^( *)(bull) */).replace("bull",U.bullet).getRegex(),U.list=P(U.list).replace(/bull/g,U.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+U.def.source+")").getRegex(),U._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",U._comment=/|$)/,U.html=P(U.html,"i").replace("comment",U._comment).replace("tag",U._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U.paragraph=P(U._paragraph).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",U._tag).getRegex(),U.blockquote=P(U.blockquote).replace("paragraph",U.paragraph).getRegex(),U.normal=Q({},U),U.gfm=Q({},U.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),U.gfm.table=P(U.gfm.table).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",U._tag).getRegex(),U.pedantic=Q({},U.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",U._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Z,paragraph:P(U.normal._paragraph).replace("hr",U.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",U.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Z,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};V.punctuation=P(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/\\\*|\\_/g,V._comment=P(U._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=P(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=P(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=P(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,V.autolink=P(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=P(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=P(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=P(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=P(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=Q({},V),V.pedantic=Q({},V.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=Q({},V.normal,{escape:P(V.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Y=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||M,this.options.tokenizer=this.options.tokenizer||new H,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:X.normal,inline:N.normal};this.options.pedantic?(t.block=X.pedantic,t.inline=N.pedantic):this.options.gfm&&(t.block=X.gfm,this.options.breaks?t.inline=N.breaks:t.inline=N.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,r,u,i=t.prototype;return i.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},i.blockTokens=function(e,t){var n,r,u,i,s=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(r){return!!(n=r.call({lexer:s},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),!(r=t[t.length-1])||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),!(r=t[t.length-1])||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else if(u=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),r=void 0;s.options.extensions.startBlock.forEach((function(e){"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(u=e.substring(0,t+1))}(),this.state.top&&(n=this.tokenizer.paragraph(u)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=u.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){var o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}throw new Error(o)}return this.state.top=!0,t},i.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},i.inlineTokens=function(e,t){var n,r,u,i=this;void 0===t&&(t=[]);var s,o,a,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+G("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+G("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,s.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(r){return!!(n=r.call({lexer:i},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,a))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,K))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,K))){if(u=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;i.options.extensions.startInline.forEach((function(e){"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(u=e.substring(0,t+1))}(),n=this.tokenizer.inlineText(u,J))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),o=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);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(n.raw.length),t.push(n);return t},n=t,u=[{key:"rules",get:function(){return{block:X,inline:N}}}],(r=null)&&e(n.prototype,r),u&&e(n,u),t}(),ee=r.exports.defaults,te=v,ne=b,re=function(){function e(e){this.options=e||ee}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:ne(e,!0))+"
    \n":"
    "+(n?e:ne(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,n,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=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},t.image=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},t.text=function(e){return e},e}(),ue=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),ie=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,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}(),se=re,oe=ue,ae=ie,le=r.exports.defaults,ce=C,De=Y,pe=function(){function e(e){this.options=e||le,this.options.renderer=this.options.renderer||new se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new oe,this.slugger=new ae}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,s,o,a,l,c,D,p,h,f,g,d,m,A,k,F,x="",b=e.length;for(n=0;n0&&"paragraph"===d.tokens[0].type?(d.tokens[0].text=k+" "+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=k+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:k}):g+=k),g+=this.parse(d.tokens,f),c+=this.renderer.listitem(g,A,m);x+=this.renderer.list(c,p,h);continue;case"html":x+=this.renderer.html(D.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(D.tokens));continue;case"text":for(c=D.tokens?this.parseInline(D.tokens):D.text;n+1An error occurred:

    "+ke(a.message+"",!0)+"
    ";throw a}}return Ce.options=Ce.setOptions=function(e){return me(Ce.defaults,e),xe(Ce.defaults),Ce},Ce.getDefaults=Fe,Ce.defaults=be,Ce.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;rAn error occurred:

    "+ke(r.message+"",!0)+"
    ";throw r}},Ce.Parser=pe,Ce.parser=pe.parse,Ce.Renderer=fe,Ce.TextRenderer=ge,Ce.Lexer=De,Ce.lexer=De.lex,Ce.Tokenizer=he,Ce.Slugger=de,Ce.parse=Ce,Ce},"object"===s(t)?e.exports=i():void 0===(u="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=u)},60841:function(e,t,n){var r=n(8300).FilterCSS,u=n(8300).getDefaultWhiteList,i=n(58511);function s(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new r;function a(e){return e.replace(l,"<").replace(c,">")}var l=//g,D=/"/g,p=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,f=/:?/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,A=/u\s*r\s*l\s*\(.*/gi;function k(e){return e.replace(D,""")}function F(e){return e.replace(p,'"')}function x(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function b(e){return e.replace(f,":").replace(g," ")}function C(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","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=s,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)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(d.lastIndex=0,d.test(n))return""}else if("style"===t){if(m.lastIndex=0,m.test(n))return"";if(A.lastIndex=0,A.test(n)&&(d.lastIndex=0,d.test(n)))return"";!1!==r&&(n=(r=r||o).process(n))}return n=v(n)},t.escapeHtml=a,t.escapeQuote=k,t.unescapeQuote=F,t.escapeHtmlEntities=x,t.escapeDangerHtml5Entities=b,t.clearNonPrintableCharacter=C,t.friendlyAttrValue=E,t.escapeAttrValue=v,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(s,o,a){if(function(t){return!!n||-1!==i.indexOf(e,t)}(s)){if(a.isClosing){var l="[/removed]",c=a.position+l.length;return r.push([!1!==u?u:a.position,c]),u=!1,l}return u||(u=a.position),"[removed]"}return t(s,o,a)},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(w,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.cssFilter=o,t.getDefaultCSSWhiteList=u},62173:function(e,t,n){var r=n(60841),u=n(79542),i=n(61585);function s(e,t){return new i(t).process(e)}for(var o in(t=e.exports=s).filterXSS=s,t.FilterXSS=i,r)t[o]=r[o];for(var o in u)t[o]=u[o];"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){"use strict";var r="",s=0,o=!1,a=!1,l=0,c=e.length,D="",p="";e:for(l=0;l"===h){r+=n(e.slice(s,o)),D=u(p=e.slice(o,l+1)),r+=t(o,r.length,D,p,i(p)),s=l+1,o=!1;continue}if('"'===h||"'"===h)for(var f=1,g=e.charAt(l-f);""===g.trim()||"="===g;){if("="===g){a=h;continue e}g=e.charAt(l-++f)}}else if(h===a){a=!1;continue}}return s";var A=function(e){var t=a.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=a.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=a.trim(e.slice(0,-1))),{html:e,closing:n}}(s),k=n[u],F=o(A.html,(function(e,t){var n,r=-1!==a.indexOf(k,e);return l(n=c(u,e,t,r))?r?(t=p(u,e,t,f))?e+'="'+t+'"':e:l(n=D(u,e,t,r))?void 0:n:n}));s="<"+u;return F&&(s+=" "+F),A.closing&&(s+=" /"),s+=">"}return l(d=i(u,s,m))?h(s):d}),h);return g&&(d=g.remove(d)),d},e.exports=c}}]); +//# sourceMappingURL=71906b61.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/71906b61.js.gz b/supervisor/api/panel/frontend_es5/71906b61.js.gz new file mode 100644 index 000000000..600ed2b78 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/71906b61.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/71906b61.js.map b/supervisor/api/panel/frontend_es5/71906b61.js.map new file mode 100644 index 000000000..6a00679f2 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/71906b61.js.map @@ -0,0 +1 @@ +{"version":3,"file":"71906b61.js","sources":["webpack://home-assistant-frontend/71906b61.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/799b0b1b.js.gz b/supervisor/api/panel/frontend_es5/799b0b1b.js.gz deleted file mode 100644 index b7d4465d0..000000000 Binary files a/supervisor/api/panel/frontend_es5/799b0b1b.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/799b0b1b.js.map b/supervisor/api/panel/frontend_es5/799b0b1b.js.map deleted file mode 100644 index 01620ba0d..000000000 --- a/supervisor/api/panel/frontend_es5/799b0b1b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"799b0b1b.js","sources":["webpack://home-assistant-frontend/799b0b1b.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/e1f7ebc5.js b/supervisor/api/panel/frontend_es5/8849adea.js similarity index 96% rename from supervisor/api/panel/frontend_es5/e1f7ebc5.js rename to supervisor/api/panel/frontend_es5/8849adea.js index 173d40f51..87cb056ef 100644 --- a/supervisor/api/panel/frontend_es5/e1f7ebc5.js +++ b/supervisor/api/panel/frontend_es5/8849adea.js @@ -1,2 +1,2 @@ -!function(){"use strict";var r,t,n={5425:function(r,t,n){var e=n(91107);n(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);i=!0);}catch(f){a=!0,o=f}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return u(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(r);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(r,t)}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);na?1*u:0}))}};(0,e.Jj)(i)}},e={};function o(r){var t=e[r];if(void 0!==t)return t.exports;var u=e[r]={exports:{}};return n[r](u,u.exports,o),u.exports}o.m=n,o.x=function(){var r=o.O(void 0,[354],(function(){return o(5425)}));return r=o.O(r)},r=[],o.O=function(t,n,e,u){if(!n){var i=1/0;for(l=0;l=u)&&Object.keys(o.O).every((function(r){return o.O[r](n[f])}))?n.splice(f--,1):(a=!1,u0&&r[l-1][2]>u;l--)r[l]=r[l-1];r[l]=[n,e,u]},o.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(t,{a:t}),t},o.d=function(r,t){for(var n in t)o.o(t,n)&&!o.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(r){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](r,t),t}),[]))},o.u=function(r){return"e612d98f.js"},o.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},o.p="/api/hassio/app/frontend_es5/",function(){var r={477:1,425:1};o.f.i=function(t,n){r[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],n=t.push.bind(t);t.push=function(t){var e=t[0],u=t[1],i=t[2];for(var a in u)o.o(u,a)&&(o.m[a]=u[a]);for(i&&i(o);e.length;)r[e.pop()]=1;n(t)}}(),t=o.x,o.x=function(){return o.e(354).then(t)};o.x()}(); -//# sourceMappingURL=e1f7ebc5.js.map \ No newline at end of file +!function(){"use strict";var r,t,n={5425:function(r,t,n){var e=n(91107);n(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);i=!0);}catch(f){a=!0,o=f}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return u(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(r);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(r,t)}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);na?1*u:0}))}};(0,e.Jj)(i)}},e={};function o(r){var t=e[r];if(void 0!==t)return t.exports;var u=e[r]={exports:{}};return n[r](u,u.exports,o),u.exports}o.m=n,o.x=function(){var r=o.O(void 0,[354],(function(){return o(5425)}));return r=o.O(r)},r=[],o.O=function(t,n,e,u){if(!n){var i=1/0;for(l=0;l=u)&&Object.keys(o.O).every((function(r){return o.O[r](n[f])}))?n.splice(f--,1):(a=!1,u0&&r[l-1][2]>u;l--)r[l]=r[l-1];r[l]=[n,e,u]},o.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(t,{a:t}),t},o.d=function(r,t){for(var n in t)o.o(t,n)&&!o.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(r){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](r,t),t}),[]))},o.u=function(r){return"6de58640.js"},o.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},o.p="/api/hassio/app/frontend_es5/",function(){var r={477:1,425:1};o.f.i=function(t,n){r[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],n=t.push.bind(t);t.push=function(t){var e=t[0],u=t[1],i=t[2];for(var a in u)o.o(u,a)&&(o.m[a]=u[a]);for(i&&i(o);e.length;)r[e.pop()]=1;n(t)}}(),t=o.x,o.x=function(){return o.e(354).then(t)};o.x()}(); +//# sourceMappingURL=8849adea.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/8849adea.js.gz b/supervisor/api/panel/frontend_es5/8849adea.js.gz new file mode 100644 index 000000000..7d78d5af0 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/8849adea.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/8849adea.js.map b/supervisor/api/panel/frontend_es5/8849adea.js.map new file mode 100644 index 000000000..7f4fcdba7 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/8849adea.js.map @@ -0,0 +1 @@ +{"version":3,"file":"8849adea.js","sources":["webpack://home-assistant-frontend/8849adea.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/9e6dea06.js b/supervisor/api/panel/frontend_es5/9e6dea06.js deleted file mode 100644 index aa1556460..000000000 --- a/supervisor/api/panel/frontend_es5/9e6dea06.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[633],{27232:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=new WeakMap;n.default=function(e){var n=t.get(e);return n||(n=Object.create(null),t.set(e,n)),n}},52443:function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.Locale=void 0;var a=t(87480),i=t(43965),o=t(39460),l=a.__importStar(t(16085)),c=a.__importDefault(t(27232)),u=l.supplemental.likelySubtags,d=["ca","co","hc","kf","kn","nu"],s=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function g(e,n,t,r,i){return void 0===r&&(r=[]),i?{lang:e&&"und"!==e?e:i.lang,script:n||i.script,region:t||i.region,variants:a.__spreadArray(a.__spreadArray([],r),i.variants)}:{lang:e||"und",script:n,region:t,variants:r}}function f(e){var n=o.parseUnicodeLocaleId(e),t=n.lang,r=t.lang,a=t.script,i=t.region,l=t.variants;if(a&&i){var c=u[o.emitUnicodeLanguageId({lang:r,script:a,region:i,variants:[]})];if(c){var d=o.parseUnicodeLanguageId(c);return n.lang=g(void 0,void 0,void 0,l,d),o.emitUnicodeLocaleId(n)}}if(a){var s=u[o.emitUnicodeLanguageId({lang:r,script:a,variants:[]})];if(s){var f=o.parseUnicodeLanguageId(s);return n.lang=g(void 0,void 0,i,l,f),o.emitUnicodeLocaleId(n)}}if(i){var p=u[o.emitUnicodeLanguageId({lang:r,region:i,variants:[]})];if(p){var v=o.parseUnicodeLanguageId(p);return n.lang=g(void 0,a,void 0,l,v),o.emitUnicodeLocaleId(n)}}var y=u[r]||u[o.emitUnicodeLanguageId({lang:"und",script:a,variants:[]})];if(!y)throw new Error("No match for addLikelySubtags");var b=o.parseUnicodeLanguageId(y);return n.lang=g(void 0,a,i,l,b),o.emitUnicodeLocaleId(n)}var p=function(){function e(n,t){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.Locale must be called with 'new'");var l,u=e.relevantExtensionKeys,d=["initializedLocale","locale","calendar","collation","hourCycle","numberingSystem"];if(u.indexOf("kf")>-1&&d.push("caseFirst"),u.indexOf("kn")>-1&&d.push("numeric"),void 0===n)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if("string"!=typeof n&&"object"!==r(n))throw new TypeError("tag must be a string or object");n="object"===r(n)&&(l=c.default(n))&&l.initializedLocale?l.locale:n.toString(),l=c.default(this);var g=i.CoerceOptionsToObject(t);n=function(e,n){i.invariant("string"==typeof e,"language tag must be a string"),i.invariant(o.isStructurallyValidLanguageTag(e),"malformed language tag",RangeError);var t=i.GetOption(n,"language","string",void 0,void 0);void 0!==t&&i.invariant(o.isUnicodeLanguageSubtag(t),"Malformed unicode_language_subtag",RangeError);var r=i.GetOption(n,"script","string",void 0,void 0);void 0!==r&&i.invariant(o.isUnicodeScriptSubtag(r),"Malformed unicode_script_subtag",RangeError);var l=i.GetOption(n,"region","string",void 0,void 0);void 0!==l&&i.invariant(o.isUnicodeRegionSubtag(l),"Malformed unicode_region_subtag",RangeError);var c=o.parseUnicodeLanguageId(e);return void 0!==t&&(c.lang=t),void 0!==r&&(c.script=r),void 0!==l&&(c.region=l),Intl.getCanonicalLocales(o.emitUnicodeLocaleId(a.__assign(a.__assign({},o.parseUnicodeLocaleId(e)),{lang:c})))[0]}(n,g);var f=Object.create(null),p=i.GetOption(g,"calendar","string",void 0,void 0);if(void 0!==p&&!s.test(p))throw new RangeError("invalid calendar");f.ca=p;var v=i.GetOption(g,"collation","string",void 0,void 0);if(void 0!==v&&!s.test(v))throw new RangeError("invalid collation");f.co=v;var y=i.GetOption(g,"hourCycle","string",["h11","h12","h23","h24"],void 0);f.hc=y;var b=i.GetOption(g,"caseFirst","string",["upper","lower","false"],void 0);f.kf=b;var m,h=i.GetOption(g,"numeric","boolean",void 0,void 0);void 0!==h&&(m=String(h)),f.kn=m;var L=i.GetOption(g,"numberingSystem","string",void 0,void 0);if(void 0!==L&&!s.test(L))throw new RangeError("Invalid numberingSystem");f.nu=L;var _=function(e,n,t){for(var r,a=[],l=o.parseUnicodeLocaleId(e),c=0,u=l.extensions;c-1&&(l.caseFirst=_.kf),u.indexOf("kn")>-1&&(l.numeric=i.SameValue(_.kn,"true")),l.numberingSystem=_.nu}return e.prototype.maximize=function(){var n=c.default(this).locale;try{return new e(f(n))}catch(t){return new e(n)}},e.prototype.minimize=function(){var n=c.default(this).locale;try{return new e(function(e){var n=f(e);if(!n)return e;n=o.emitUnicodeLanguageId(a.__assign(a.__assign({},o.parseUnicodeLanguageId(n)),{variants:[]}));var t=o.parseUnicodeLocaleId(e),r=t.lang,i=r.lang,l=r.script,c=r.region,u=r.variants;return f(o.emitUnicodeLanguageId({lang:i,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,void 0,void 0,u)})):c&&f(o.emitUnicodeLanguageId({lang:i,region:c,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,void 0,c,u)})):l&&f(o.emitUnicodeLanguageId({lang:i,script:l,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,l,void 0,u)})):e}(n))}catch(t){return new e(n)}},e.prototype.toString=function(){return c.default(this).locale},Object.defineProperty(e.prototype,"baseName",{get:function(){var e=c.default(this).locale;return o.emitUnicodeLanguageId(o.parseUnicodeLanguageId(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return c.default(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collation",{get:function(){return c.default(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourCycle",{get:function(){return c.default(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caseFirst",{get:function(){return c.default(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numeric",{get:function(){return c.default(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberingSystem",{get:function(){return c.default(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).lang},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"script",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).script},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"region",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).region},enumerable:!1,configurable:!0}),e.relevantExtensionKeys=d,e}();n.Locale=p;try{"undefined"!=typeof Symbol&&Object.defineProperty(p.prototype,Symbol.toStringTag,{value:"Intl.Locale",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype.constructor,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(v){}n.default=p},33633:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(52443);t(32812).shouldPolyfill()&&Object.defineProperty(Intl,"Locale",{value:r.Locale,writable:!0,enumerable:!1,configurable:!0})},32812:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shouldPolyfill=void 0,n.shouldPolyfill=function(){return"undefined"==typeof Intl||!("Locale"in Intl)||function(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(e){return!0}}()}}}]); -//# sourceMappingURL=9e6dea06.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/9e6dea06.js.gz b/supervisor/api/panel/frontend_es5/9e6dea06.js.gz deleted file mode 100644 index eebf2792e..000000000 Binary files a/supervisor/api/panel/frontend_es5/9e6dea06.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/9e6dea06.js.map b/supervisor/api/panel/frontend_es5/9e6dea06.js.map deleted file mode 100644 index 0ccfb6a6c..000000000 --- a/supervisor/api/panel/frontend_es5/9e6dea06.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"9e6dea06.js","sources":["webpack://home-assistant-frontend/9e6dea06.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/9f0e09af.js b/supervisor/api/panel/frontend_es5/9f0e09af.js new file mode 100644 index 000000000..6b2da856f --- /dev/null +++ b/supervisor/api/panel/frontend_es5/9f0e09af.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[160],{71160:function(e,n,t){"use strict";function r(e){return Intl.getCanonicalLocales(e)}function u(e,n){var t=n.tzData,r=n.uppercaseLinks,u=e.toUpperCase(),i=Object.keys(t).reduce((function(e,n){return e[n.toUpperCase()]=n,e}),{}),o=r[u]||i[u];return"Etc/UTC"===o||"Etc/GMT"===o?"UTC":o}function i(e){return(i="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(e){if("symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function a(e){if(void 0===e)return NaN;if(null===e)return 0;if("boolean"==typeof e)return e?1:0;if("number"==typeof e)return e;if("symbol"===i(e)||"bigint"==typeof e)throw new TypeError("Cannot convert symbol/bigint to number");return Number(e)}function c(e){return isFinite(e)?Math.abs(e)>8640000000000001?NaN:function(e){var n=a(e);if(isNaN(n)||s(n,-0))return 0;if(isFinite(n))return n;var t=Math.floor(Math.abs(n));return n<0&&(t=-t),s(t,-0)?0:t}(e):NaN}function l(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function s(e,n){return Object.is?Object.is(e,n):e===n?0!==e||1/e==1/n:e!=e&&n!=n}function f(e){return new Array(e)}function p(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function m(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===i(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"===i(e)?"Symbol":"bigint"==typeof e?"BigInt":void 0}t.r(n),t.d(n,{ArrayCreate:function(){return f},CanonicalizeLocaleList:function(){return r},CanonicalizeTimeZoneName:function(){return u},CoerceOptionsToObject:function(){return I},ComputeExponent:function(){return oe},ComputeExponentForMagnitude:function(){return te},CurrencyDigits:function(){return ae},DateFromTime:function(){return w},Day:function(){return d},DayFromYear:function(){return v},DayWithinYear:function(){return E},DaysInYear:function(){return F},FormatNumericToParts:function(){return ve},FormatNumericToString:function(){return ie},GetNumberOption:function(){return L},GetOption:function(){return j},GetOptionsObject:function(){return U},HasOwnProperty:function(){return p},HourFromTime:function(){return N},InLeapYear:function(){return C},InitializeNumberFormat:function(){return Ee},IsSanctionedSimpleUnitIdentifier:function(){return z},IsValidTimeZoneName:function(){return X},IsWellFormedCurrencyCode:function(){return V},IsWellFormedUnitIdentifier:function(){return Q},MinFromTime:function(){return O},MonthFromTime:function(){return S},OrdinaryHasInstance:function(){return M},PartitionNumberPattern:function(){return ye},PartitionPattern:function(){return Ce},RangePatternType:function(){return we},SANCTIONED_UNITS:function(){return R},SIMPLE_UNITS:function(){return G},SameValue:function(){return s},SecFromTime:function(){return B},SetNumberFormatDigitOptions:function(){return Fe},SetNumberFormatUnitOptions:function(){return he},SupportedLocales:function(){return Se},TimeClip:function(){return c},TimeFromYear:function(){return b},ToNumber:function(){return a},ToObject:function(){return l},ToRawFixed:function(){return ue},ToRawPrecision:function(){return re},ToString:function(){return o},Type:function(){return m},WeekDay:function(){return y},YearFromTime:function(){return h},_formatToParts:function(){return me},defineProperty:function(){return ee},getInternalSlot:function(){return q},getMagnitude:function(){return Z},getMultiInternalSlots:function(){return J},invariant:function(){return ne},isLiteralPart:function(){return K},isMissingLocaleDataError:function(){return Ne},msFromTime:function(){return x},removeUnitNamespace:function(){return P},setInternalSlot:function(){return H},setMultiInternalSlots:function(){return W}});var D=864e5;function g(e,n){return e-Math.floor(e/n)*n}function d(e){return Math.floor(e/D)}function y(e){return g(d(e)+4,7)}function v(e){return Date.UTC(e,0)/D}function b(e){return Date.UTC(e,0)}function h(e){return new Date(e).getUTCFullYear()}function F(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function E(e){return d(e)-v(h(e))}function C(e){return 365===F(h(e))?0:1}function S(e){var n=E(e),t=C(e);if(n>=0&&n<31)return 0;if(n<59+t)return 1;if(n<90+t)return 2;if(n<120+t)return 3;if(n<151+t)return 4;if(n<181+t)return 5;if(n<212+t)return 6;if(n<243+t)return 7;if(n<273+t)return 8;if(n<304+t)return 9;if(n<334+t)return 10;if(n<365+t)return 11;throw new Error("Invalid time")}function w(e){var n=E(e),t=S(e),r=C(e);if(0===t)return n+1;if(1===t)return n-30;if(2===t)return n-58-r;if(3===t)return n-89-r;if(4===t)return n-119-r;if(5===t)return n-150-r;if(6===t)return n-180-r;if(7===t)return n-211-r;if(8===t)return n-242-r;if(9===t)return n-272-r;if(10===t)return n-303-r;if(11===t)return n-333-r;throw new Error("Invalid time")}var A=1e3;function N(e){return g(Math.floor(e/36e5),24)}function O(e){return g(Math.floor(e/6e4),60)}function B(e){return g(Math.floor(e/A),60)}function M(e,n,t){if("function"!=typeof e)return!1;if(null==t?void 0:t.boundTargetFunction)return n instanceof(null==t?void 0:t.boundTargetFunction);if("object"!==i(n))return!1;var r=e.prototype;if("object"!==i(r))throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(r,n)}function x(e){return g(e,A)}function I(e){return void 0===e?Object.create(null):l(e)}function k(e,n,t,r){if(void 0!==e){if(e=Number(e),isNaN(e)||et)throw new RangeError(e+" is outside of range ["+n+", "+t+"]");return Math.floor(e)}return r}function L(e,n,t,r,u){return k(e[n],t,r,u)}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)}function j(e,n,t,r,u){if("object"!==T(e))throw new TypeError("Options must be an object");var i=e[n];if(void 0!==i){if("boolean"!==t&&"string"!==t)throw new TypeError("invalid type");if("boolean"===t&&(i=Boolean(i)),"string"===t&&(i=o(i)),void 0!==r&&!r.filter((function(e){return e==i})).length)throw new RangeError(i+" is not within "+r.join(", "));return i}return u}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e){if(void 0===e)return Object.create(null);if("object"===_(e))return e;throw new TypeError("Options must be an object")}var R=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function P(e){return e.slice(e.indexOf("-")+1)}var G=R.map(P);function z(e){return G.indexOf(e)>-1}function X(e,n){var t=n.tzData,r=n.uppercaseLinks,u=e.toUpperCase(),i=new Set,o=new Set;return Object.keys(t).map((function(e){return e.toUpperCase()})).forEach((function(e){return i.add(e)})),Object.keys(r).forEach((function(e){o.add(e.toUpperCase()),i.add(r[e].toUpperCase())})),i.has(u)||o.has(u)}var Y=/[^A-Z]/;function V(e){return 3===(e=e.replace(/([a-z])/g,(function(e,n){return n.toUpperCase()}))).length&&!Y.test(e)}function Q(e){if(z(e=e.replace(/([A-Z])/g,(function(e,n){return n.toLowerCase()}))))return!0;var n=e.split("-per-");if(2!==n.length)return!1;var t=n[0],r=n[1];return!(!z(t)||!z(r))}function Z(e){return Math.floor(Math.log(e)*Math.LOG10E)}function $(e,n){if("function"==typeof e.repeat)return e.repeat(n);for(var t=new Array(n),r=0;rm[m.length-1])return m[m.length-1].length-1;var D=m.indexOf(p);if(-1===D)return 0;var g=m[D];return"0"===s[g].other?0:g.length-s[g].other.match(/0+/)[0].length}}function re(e,n,t){var r,u,i,o,a=t;if(0===e)r=$("0",a),u=0,i=0;else{var c=e.toString(),l=c.indexOf("e"),s=c.split("e"),f=s[0],p=s[1],m=f.replace(".","");if(l>=0&&m.length<=a)u=+p,r=m+$("0",a-m.length),i=e;else{var D=(u=Z(e))-a+1,g=Math.round(y(e,D));y(g,a-1)>=10&&(u+=1,g=Math.floor(g/10)),r=g.toString(),i=y(g,a-1-u)}}if(u>=a-1?(r+=$("0",u-a+1),o=u+1):u>=0?(r=r.slice(0,u+1)+"."+r.slice(u+1),o=u+1):(r="0."+$("0",-u-1)+r,o=1),r.indexOf(".")>=0&&t>n){for(var d=t-n;d>0&&"0"===r[r.length-1];)r=r.slice(0,-1),d--;"."===r[r.length-1]&&(r=r.slice(0,-1))}return{formattedString:r,roundedNumber:i,integerDigitsCount:o};function y(e,n){return n<0?e*Math.pow(10,-n):e/Math.pow(10,n)}}function ue(e,n,t){var r,u,i=t,o=Math.round(e*Math.pow(10,i)),a=o/Math.pow(10,i);if(o<1e21)r=o.toString();else{var c=(r=o.toString()).split("e"),l=c[0],s=c[1];r=l.replace(".",""),r+=$("0",Math.max(+s-r.length+1,0))}if(0!==i){var f=r.length;if(f<=i)r=$("0",i+1-f)+r,f=i+1;var p=r.slice(0,f-i),m=r.slice(f-i);r=p+"."+m,u=p.length}else u=r.length;for(var D=t-n;D>0&&"0"===r[r.length-1];)r=r.slice(0,-1),D--;return"."===r[r.length-1]&&(r=r.slice(0,-1)),{formattedString:r,roundedNumber:a,integerDigitsCount:u}}function ie(e,n){var t,r=n<0||s(n,-0);switch(r&&(n=-n),e.roundingType){case"significantDigits":t=re(n,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":t=ue(n,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(t=re(n,1,2)).integerDigitsCount>1&&(t=ue(n,0,0))}n=t.roundedNumber;var u=t.formattedString,i=t.integerDigitsCount,o=e.minimumIntegerDigits;i\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,se=new RegExp("^"+le.source),fe=new RegExp(le.source+"$"),pe=/[#0](?:[\.,][#0]+)*/g;function me(e,n,t,r){var u,i,o=e.sign,a=e.exponent,c=e.magnitude,l=r.notation,s=r.style,f=r.numberingSystem,p=n.numbers.nu[0],m=null;if("compact"===l&&c&&(m=function(e,n,t,r,u,i,o){var a,c,l=e.roundedNumber,s=e.sign,f=e.magnitude,p=String(Math.pow(10,f)),m=t.numbers.nu[0];if("currency"===r&&"name"!==i){var D=null===(a=((g=t.numbers.currency)[o]||g[m]).short)||void 0===a?void 0:a[p];if(!D)return null;c=de(n,l,D)}else{var g,d=((g=t.numbers.decimal)[o]||g[m])[u][p];if(!d)return null;c=de(n,l,d)}if("0"===c)return null;return c=ge(c,s).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,t,n,s,r.compactDisplay,r.currencyDisplay,f)),"currency"===s&&"name"!==r.currencyDisplay){var D=n.currencies[r.currency];if(D)switch(r.currencyDisplay){case"code":u=r.currency;break;case"symbol":u=D.symbol;break;default:u=D.narrow}else u=r.currency}if(m)i=m;else if("decimal"===s||"unit"===s||"currency"===s&&"name"===r.currencyDisplay)i=ge((n.numbers.decimal[f]||n.numbers.decimal[p]).standard,o);else if("currency"===s){i=ge((d=n.numbers.currency[f]||n.numbers.currency[p])[r.currencySign],o)}else{i=ge(n.numbers.percent[f]||n.numbers.percent[p],o)}var g=pe.exec(i)[0];if(i=i.replace(pe,"{0}").replace(/'(.)'/g,"$1"),"currency"===s&&"name"!==r.currencyDisplay){var d,y=(d=n.numbers.currency[f]||n.numbers.currency[p]).currencySpacing.afterInsertBetween;y&&!fe.test(u)&&(i=i.replace("¤{0}","¤"+y+"{0}"));var v=d.currencySpacing.beforeInsertBetween;v&&!se.test(u)&&(i=i.replace("{0}¤","{0}"+v+"¤"))}for(var b=i.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),h=[],F=n.numbers.symbols[f]||n.numbers.symbols[p],E=0,C=b;E0?(f=c.slice(0,m),p=c.slice(m+1)):f=c,i&&("compact"!==t||l>=1e4)){var D=e.group,g=[],d=o.split(".")[0].split(","),y=3,v=3;d.length>1&&(y=d[d.length-1].length),d.length>2&&(v=d[d.length-2].length);var b=f.length-y;if(b>0){for(g.push(f.slice(b,b+y)),b-=v;b>0;b-=v)g.push(f.slice(b,b+v));g.push(f.slice(0,b+v))}else g.push(f);for(;g.length>0;){var h=g.pop();a.push({type:"integer",value:h}),g.length>0&&a.push({type:"group",value:D})}}else a.push({type:"integer",value:f});if(void 0!==p&&a.push({type:"decimal",value:e.decimal},{type:"fraction",value:p}),("scientific"===t||"engineering"===t)&&isFinite(l)){a.push({type:"exponentSeparator",value:e.exponential}),r<0&&(a.push({type:"exponentMinusSign",value:e.minusSign}),r=-r);var F=ue(r,0,0);a.push({type:"exponentInteger",value:F.formattedString})}return a}function ge(e,n){e.indexOf(";")<0&&(e=e+";-"+e);var t=e.split(";"),r=t[0],u=t[1];switch(n){case 0:return r;case-1:return u;default:return u.indexOf("-")>=0?u.replace(/-/g,"+"):"+"+r}}function de(e,n,t){return t[e.select(n)]||t.other}function ye(e,n,t){var r,u,i,o=t.getInternalSlots,a=o(e),c=a.pl,l=a.dataLocaleData,f=a.numberingSystem,p=l.numbers.symbols[f]||l.numbers.symbols[l.numbers.nu[0]],m=0,D=0;if(isNaN(n))u=p.nan;else if(isFinite(n)){"percent"===a.style&&(n*=100),D=(r=oe(e,n,{getInternalSlots:o}))[0],m=r[1];var g=ie(a,n=D<0?n*Math.pow(10,-D):n/Math.pow(10,D));u=g.formattedString,n=g.roundedNumber}else u=p.infinity;switch(a.signDisplay){case"never":i=0;break;case"auto":i=s(n,0)||n>0||isNaN(n)?0:-1;break;case"always":i=s(n,0)||n>0||isNaN(n)?1:-1;break;default:i=0===n||isNaN(n)?0:n>0?1:-1}return me({roundedNumber:n,formattedString:u,exponent:D,magnitude:m,sign:i},a.dataLocaleData,c,a)}function ve(e,n,t){for(var r=ye(e,n,t),u=f(0),i=0,o=r;i-1;)ne((r=e.indexOf("}",t))>t,"Invalid pattern "+e),t>u&&n.push({type:"literal",value:e.substring(u,t)}),n.push({type:e.substring(t+1,r),value:void 0}),u=r+1,t=e.indexOf("{",u);return u=2&&"-"===t[r-2]&&(r-=2),t=t.slice(0,r)}}},76099:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BestFitMatcher=void 0;var r=t(96512),u=t(30598);n.BestFitMatcher=function(e,n,t){var i,o=Array.from(e).reduce((function(e,n){return e[n]=n,e}),{}),a=new Set;e.forEach((function(e){var n=new Intl.Locale(e).minimize().toString();o[n]=e,a.add(n)}));for(var c=0,l=n;c2){var S=p.indexOf("-x-");if(-1===S)p+=D;else{var w=p.slice(0,S),A=p.slice(S,p.length);p=w+D+A}p=Intl.getCanonicalLocales(p)[0]}return m.locale=p,m}},71387:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UnicodeExtensionValue=void 0;var r=t(30598);n.UnicodeExtensionValue=function(e,n){r.invariant(2===n.length,"key must have 2 elements");var t=e.length,u="-"+n+"-",i=e.indexOf(u);if(-1!==i){for(var o=i+4,a=o,c=o,l=!1;!l;){var s=e.indexOf("-",c);2===(-1===s?t-c:s-c)?l=!0:-1===s?(a=t,l=!0):(a=s,c=s+1)}return e.slice(o,a)}if(u="-"+n,-1!==(i=e.indexOf(u))&&i+3===t)return""}},30598:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.invariant=n.UNICODE_EXTENSION_SEQUENCE_REGEX=void 0,n.UNICODE_EXTENSION_SEQUENCE_REGEX=/-u(?:-[0-9a-z]{2,8})+/gi,n.invariant=function(e,n,t){if(void 0===t&&(t=Error),!e)throw new t(n)}},17595:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ResolveLocale=n.LookupSupportedLocales=n.match=void 0;var r=t(92904);n.match=function(e,n,t,u){var i=n.reduce((function(e,n){return e.add(n),e}),new Set);return r.ResolveLocale(i,e,{localeMatcher:(null==u?void 0:u.algorithm)||"best fit"},[],{},(function(){return t})).locale};var u=t(42776);Object.defineProperty(n,"LookupSupportedLocales",{enumerable:!0,get:function(){return u.LookupSupportedLocales}});var i=t(92904);Object.defineProperty(n,"ResolveLocale",{enumerable:!0,get:function(){return i.ResolveLocale}})}}]); +//# sourceMappingURL=9f0e09af.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/9f0e09af.js.gz b/supervisor/api/panel/frontend_es5/9f0e09af.js.gz new file mode 100644 index 000000000..78f935ef9 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/9f0e09af.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/9f0e09af.js.map b/supervisor/api/panel/frontend_es5/9f0e09af.js.map new file mode 100644 index 000000000..f66be4c22 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/9f0e09af.js.map @@ -0,0 +1 @@ +{"version":3,"file":"9f0e09af.js","sources":["webpack://home-assistant-frontend/9f0e09af.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/9fa7e44f.js b/supervisor/api/panel/frontend_es5/9fa7e44f.js new file mode 100644 index 000000000..14f67615c --- /dev/null +++ b/supervisor/api/panel/frontend_es5/9fa7e44f.js @@ -0,0 +1,2 @@ +(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[102],{86876:function(t,e,n){"use strict";n.d(e,{wQ:function(){return ft},xi:function(){return ct},at:function(){return lt}});var r=n(77885),i=n(23414),o=n(19753),s=n(64928),a=n(80340);var u=1e4,h="()[]{}";function l(t,e,n){var r=t.prop(e<0?a.md.openedBy:a.md.closedBy);if(r)return r;if(1==t.name.length){var i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function c(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.maxScanDistance||u,a=i.brackets||h,c=(0,s.qz)(t),v=c.resolve(e,n);return(r=l(v.type,n,a))?f(t,e,n,v,r,a):d(t,e,n,c,v.type,o,a)}function f(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(l(h.type,n,o))u++;else if(l(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 d(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 v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return p(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 p(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=n.call(t)},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 p(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 C(t,e,n){for(var i=(0,s.qz)(t).resolveInner(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;A(t,h,o)?i=h:u=n?h.to:h.from}var l,f;return f=i.type.prop(o)&&(l=n?c(t,i.from,1):c(t,i.to,-1))&&l.matched?n?l.end.to:l.end.from:n?i.to:i.from,r.jT.cursor(f,n?-1:1)}function M(t,e){return y(t,(function(n){return n.empty?t.moveVertically(n,e):k(n,e)}))}var O=function(t){return M(t,!1)},T=function(t){return M(t,!0)};function D(t,e){return y(t,(function(n){return n.empty?t.moveVertically(n,e,t.dom.clientHeight):k(n,e)}))}var E=function(t){return D(t,!1)},R=function(t){return D(t,!0)};function P(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 L=function(t){return y(t,(function(e){return P(t,e,!0)}))},B=function(t){return y(t,(function(e){return P(t,e,!1)}))};function I(t,e,n){var i=!1,o=g(t.selection,(function(e){var o=c(t,e.head,-1)||c(t,e.head,1)||e.head>0&&c(t,e.head-1,1)||e.headn&&(o="delete.forward"),n=Math.min(n,s),i=Math.max(i,s)}return n==i?{range:t}:{changes:{from:n,to:i},range:r.jT.cursor(n)}}));return!s.changes.empty&&(i(n.update(s,{scrollIntoView:!0,userEvent:o})),!0)}var tt=function(t,e){return Z(t,(function(n){var r,a,u=t.state,h=u.doc.lineAt(n);if(!e&&n>h.from&&n=s.number){var u=n[n.length-1];u.to=a.to,u.ranges.push(o)}else n.push({from:s.from,to:a.to,ranges:[o]});r=a.number+1}}catch(h){i.e(h)}finally{i.f()}return n}function at(t,e,n){var i,o=[],s=[],a=v(st(t));try{for(a.s();!(i=a.n()).done;){var u=i.value;if(n?u.to!=t.doc.length:0!=u.from){var h=t.doc.lineAt(n?u.to+1:u.from-1),l=h.length+1;if(n){o.push({from:u.to,to:h.to},{from:u.from,insert:h.text+t.lineBreak});var c,f=v(u.ranges);try{for(f.s();!(c=f.n()).done;){var d=c.value;s.push(r.jT.range(Math.min(t.doc.length,d.anchor+l),Math.min(t.doc.length,d.head+l)))}}catch(y){f.e(y)}finally{f.f()}}else{o.push({from:h.from,to:u.from},{from:u.to,insert:t.lineBreak+h.text});var p,g=v(u.ranges);try{for(g.s();!(p=g.n()).done;){var m=p.value;s.push(r.jT.range(m.anchor-l,m.head-l))}}catch(y){g.e(y)}finally{g.f()}}}}}catch(y){a.e(y)}finally{a.f()}return!!o.length&&(e(t.update({changes:o,scrollIntoView:!0,selection:r.jT.create(s,t.selection.mainIndex),userEvent:"move.line"})),!0)}function ut(t,e,n){var r,i=[],o=v(st(t));try{for(o.s();!(r=o.n()).done;){var s=r.value;n?i.push({from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}):i.push({from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}function ht(t,e){var n=-1;return t.changeByRange((function(i){for(var o=[],s=i.from;s<=i.to;){var a=t.doc.lineAt(s);a.number>n&&(i.empty||i.to>a.from)&&(e(a,o,i),n=a.number),s=a.to+1}var u=t.changes(o);return{changes:o,range:r.jT.range(u.mapPos(i.anchor,1),u.mapPos(i.head,1))}}))}var lt=function(t){var e=t.state;return(0,t.dispatch)(e.update(ht(e,(function(t,n){n.push({from:t.from,insert:e.facet(s.c)})})),{userEvent:"input.indent"})),!0},ct=function(t){var e=t.state;return(0,t.dispatch)(e.update(ht(e,(function(t,n){var r=/^\s*/.exec(t.text)[0];if(r){for(var o=(0,i.IS)(r,e.tabSize),a=0,u=(0,s.SS)(e,Math.max(0,o-(0,s.y1)(e)));a1?o=r.jT.create([i.main]):i.main.empty||(o=r.jT.create([r.jT.cursor(i.main.head)])),!!o&&(n(m(e,o)),!0)}},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var e=t.state,n=t.dispatch,i=st(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),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var e=t.state,n=t.dispatch,i=g(e.selection,(function(t){for(var n,i=(0,s.qz)(e).resolveInner(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(m(e,i)),!0},preventDefault:!0},{key:"Mod-[",run:ct},{key:"Mod-]",run:lt},{key:"Mod-Alt-\\",run: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=ht(e,(function(t,n,o){var a=(0,s.K0)(i,t.from);if(null!=a){/\S/.test(t.text)||(a=0);var u=/^\s*/.exec(t.text)[0],h=(0,s.SS)(e,a);(u!=h||o.from0?n--:r=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&&nn?n:Math.max(0,e-1)}))}},{mac:"Mod-Delete",run:ot}].concat([{key:"Ctrl-b",run:w,shift:V,preventDefault:!0},{key:"Ctrl-f",run:x,shift:_},{key:"Ctrl-p",run:O,shift:q},{key:"Ctrl-n",run:T,shift:W},{key:"Ctrl-a",run:function(t){return y(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).from,1)}))},shift:function(t){return N(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).from)}))}},{key:"Ctrl-e",run:function(t){return y(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).to,-1)}))},shift:function(t){return N(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).to)}))}},{key:"Ctrl-d",run:nt},{key:"Ctrl-h",run:et},{key:"Ctrl-k",run:ot},{key:"Ctrl-Alt-h",run:it},{key:"Ctrl-o",run:function(t){var e=t.state,n=t.dispatch,o=e.changeByRange((function(t){return{changes:{from:t.from,to:t.to,insert:i.xv.of(["",""])},range:r.jT.cursor(t.from)}}));return n(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:function(t){var e=t.state,n=t.dispatch,o=e.changeByRange((function(t){if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};var n=t.from,o=e.doc.lineAt(n),s=n==o.from?n-1:(0,i.cp)(o.text,n-o.from,!1)+o.from,a=n==o.to?n+1:(0,i.cp)(o.text,n-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:e.doc.slice(n,a).append(e.doc.slice(s,n))},range:r.jT.cursor(a)}}));return!o.changes.empty&&(n(e.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Alt-<",run:J},{key:"Alt->",run:X},{key:"Ctrl-v",run:R},{key:"Alt-v",run:E}].map((function(t){return{mac:t.key,run:t.run,shift:t.shift}}))))},11254:function(t,e,n){"use strict";n.d(e,{Eu:function(){return N}});var r=n(19753),i=n(13764),o=n(77885);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 a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},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);nthis.i;)t.dom.removeChild(t.elements.pop().dom)}}]),t}(),D=function(){function t(e,n){var r=this;h(this,t),this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var i=function(t){r.dom.addEventListener(t,(function(r){var i=e.visualLineAtHeight(r.clientY,e.contentDOM.getBoundingClientRect().top);n.domEventHandlers[t](e,i,r)&&r.preventDefault()}))};for(var o in n.domEventHandlers)i(o);this.markers=M(n.markers(e)),n.initialSpacer&&(this.spacer=new E(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return c(t,[{key:"update",value:function(t){var e=this.markers;if(this.markers=M(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])}var r=t.view.viewport;return!i.Xs.eq(this.markers,e,r.from,r.to)}}]),t}(),E=function(){function t(e,n,r,i){h(this,t),this.height=-1,this.above=0,this.dom=document.createElement("div"),this.update(e,n,r,i)}return c(t,[{key:"update",value:function(t,e,n,r){if(this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),this.markers!=r){this.markers=r;for(var i;i=this.dom.lastChild;)i.remove();var o,s="cm-gutterElement",u=a(r);try{for(u.s();!(o=u.n()).done;){var h=o.value;h.toDOM&&this.dom.appendChild(h.toDOM(t));var l=h.elementClass;l&&(s+=" "+l)}}catch(c){u.e(c)}finally{u.f()}this.dom.className=s}}}]),t}();var R=o.r$.define(),P=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}})}}),L=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(t){return document.createTextNode(this.number)}}]),n}(m);function B(t,e){return t.state.facet(P).formatNumber(e,t.state)}var I=w({class:"cm-lineNumbers",markers:function(t){return t.state.facet(R)},lineMarker:function(t,e,n){return n.some((function(t){return t.toDOM}))?null:new L(B(t,t.state.doc.lineAt(e.from).number))},initialSpacer:function(t){return new L(B(t,j(t.state.doc.lines)))},updateSpacer:function(t,e){var n=B(e.view,j(e.view.state.doc.lines));return n==t.number?t:new L(n)}});function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[P.of(t),I]}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=n.call(t)},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 A(r,u,v>0?a.slice(0,v):null);e[p]=g.sort(e[p])}}}catch(m){o.e(m)}finally{o.f()}}return b.add(e)}var b=new r.md,w=s.r$.define({combine:function(t){return t.length?C.combinedMatch(t):null}}),x=s.r$.define({combine:function(t){return t.length?t[0].match:null}});function S(t){return t.facet(w)||t.facet(x)}var A=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.depththis.at&&(this.at=t),this.class=e)}},{key:"flush",value:function(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}},{key:"highlightRange",value:function(t,e,n,i,o,s){var a=t.type,u=t.from,l=t.to;if(!(u>=n||l<=e)){T[o]=a.name,a.isTop&&(s=a);for(var c=i,f=a.prop(b),d=!1;f;){if(!f.context||R(f.context,T,o)){var v,p=h(f.tags);try{for(p.s();!(v=p.n()).done;){var g=v.value,m=this.style(g,s);m&&(c&&(c+=" "),c+=m,1==f.mode?i+=(i?" ":"")+m:0==f.mode&&(d=!0))}}catch(M){p.e(M)}finally{p.f()}break}f=f.next}if(this.startSpan(t.from,c),!d){var y=t.tree&&t.tree.prop(r.md.mounted);if(y&&y.overlay){for(var k=t.node.enter(y.overlay[0].from+u,1),w=t.firstChild(),x=0,S=u;;x++){var A=xS&&w)for(;t.from=C)&&t.nextSibling()););if(!A)break;this.highlightRange(k.cursor,A.from+u,A.to+u,i,o,y.tree.type),S=A.to+u,this.startSpan(S,c)}w&&t.parent()}else if(t.firstChild()){do{if(!(t.to<=e)){if(t.from>=n)break;this.highlightRange(t,e,n,i,o+1,s),this.startSpan(Math.min(n,t.to),c)}}while(t.nextSibling());t.parent()}}}}}]),t}();function E(t,e,n,r,i){var o=new D(e,r,i);o.highlightRange(t.cursor(),e,n,"",0,t.type),o.flush(n)}function R(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,L=P(),B=P(),I=P(B),N=P(),j=P(N),V=P(N),_=P(),H=P(_),z=P(),q=P(),W=P(),F=P(W),$=P(),U={comment:L,lineComment:P(L),blockComment:P(L),docComment:P(L),name:B,variableName:P(B),typeName:I,tagName:P(I),propertyName:P(B),className:P(B),labelName:P(B),namespace:P(B),macroName:P(B),literal:N,string:j,docString:P(j),character:P(j),number:V,integer:P(V),float:P(V),bool:P(N),regexp:P(N),escape:P(N),color:P(N),url:P(N),keyword:z,self:P(z),null:P(z),atom:P(z),unit:P(z),modifier:P(z),operatorKeyword:P(z),controlKeyword:P(z),definitionKeyword:P(z),operator:q,derefOperator:P(q),arithmeticOperator:P(q),logicOperator:P(q),bitwiseOperator:P(q),compareOperator:P(q),updateOperator:P(q),definitionOperator:P(q),typeOperator:P(q),controlOperator:P(q),punctuation:W,separator:P(W),bracket:F,angleBracket:P(F),squareBracket:P(F),paren:P(F),brace:P(F),content:_,heading:H,heading1:P(H),heading2:P(H),heading3:P(H),heading4:P(H),heading5:P(H),heading6:P(H),contentSeparator:P(_),list:P(_),quote:P(_),emphasis:P(_),strong:P(_),link:P(_),monospace:P(_),strikethrough:P(_),inserted:P(),deleted:P(),changed:P(),invalid:P(),meta:$,documentMeta:P($),annotation:P($),processingInstruction:P($),definition:p.defineModifier(),constant:p.defineModifier(),function:p.defineModifier(),standard:p.defineModifier(),local:p.defineModifier(),special:p.defineModifier()};U.link,U.heading,U.emphasis,U.strong,U.strikethrough,U.keyword,U.atom,U.bool,U.url,U.contentSeparator,U.labelName,U.literal,U.inserted,U.string,U.deleted,U.regexp,U.escape,U.string,U.variableName,U.variableName,U.typeName,U.namespace,U.className,U.variableName,U.macroName,U.propertyName,U.comment,U.meta,U.invalid,U.link,U.heading,U.emphasis,U.strong,U.keyword,U.atom,U.bool,U.url,U.labelName,U.inserted,U.deleted,U.literal,U.string,U.number,U.regexp,U.escape,U.string,U.variableName,U.variableName,U.variableName,U.variableName,U.typeName,U.namespace,U.macroName,U.propertyName,U.operator,U.comment,U.meta,U.invalid,U.punctuation},62118:function(t,e,n){"use strict";n.d(e,{m8:function(){return p},f$:function(){return E}});var r=n(77885),i=n(19753);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return s(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 s(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,u=!1;return{s:function(){n=n.call(t)},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);n0&&void 0!==arguments[0]?arguments[0]:{};return[v,d.of(t),i.tk.domEventHandlers({beforeinput:function(t,e){return"historyUndo"==t.inputType?m(e):"historyRedo"==t.inputType&&y(e)}})]}function g(t,e){return function(n){var r=n.state,i=n.dispatch,o=r.field(v,!1);if(!o)return!1;var s=o.pop(t,r,e);return!!s&&(i(s),!0)}}var m=g(0,!1),y=g(1,!1),k=g(0,!0),b=g(1,!0);var w=function(){function t(e,n,r,i,o){a(this,t),this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}return h(t,[{key:"setSelAfter",value:function(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}},{key:"toJSON",value:function(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((function(t){return t.toJSON()}))}}}],[{key:"fromJSON",value:function(e){return new t(e.changes&&r.as.fromJSON(e.changes),[],e.mapped&&r.n0.fromJSON(e.mapped),e.startSelection&&r.jT.fromJSON(e.startSelection),e.selectionsAfter.map(r.jT.fromJSON))}},{key:"fromTransaction",value:function(e){var n,r=A,i=o(e.startState.facet(f));try{for(i.s();!(n=i.n()).done;){var s=(0,n.value)(e);s.length&&(r=r.concat(s))}}catch(a){i.e(a)}finally{i.f()}return!r.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),r,void 0,e.startState.selection,A)}},{key:"selection",value:function(e){return new t(void 0,A,void 0,void 0,e)}}]),t}();function x(t,e,n,r){var i=e+1>n+20?e-n-1:0,o=t.slice(i,e);return o.push(r),o}function S(t,e){return t.length?e.length?t.concat(e):t:e}var A=[];function C(t,e){if(t.length){var n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),x(t,t.length-1,1e9,n.setSelAfter(r)))}return[w.selection([e])]}function M(t){var e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function O(t,e){if(!t.length)return t;for(var n=t.length,r=A;n;){var i=T(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){var o=t.slice(0,n);return o[n-1]=i,o}e=i.mapped,n--,r=i.selectionsAfter}return r.length?[w.selection(r)]:A}function T(t,e,n){var i=S(t.selectionsAfter.length?t.selectionsAfter.map((function(t){return t.map(e)})):A,n);if(!t.changes)return w.selection(i);var o=t.changes.map(e),s=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(s):s;return new w(o,r.Py.mapEffects(t.effects,e),a,t.startSelection.map(s),i)}var D=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;a(this,t),this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}return h(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(e,n,r,i,o){var s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&e.changes&&(!a.selectionsAfter.length&&n-this.prevTime=a&&i<=u&&(r=!0)}})),r}(a.changes,e.changes)||"input.type.compose"==r)?x(s,s.length-1,o,new w(e.changes.compose(a.changes),S(e.effects,a.effects),a.mapped,a.startSelection,A)):x(s,s.length,o,e),A,n,r)}},{key:"addSelection",value:function(e,n,r,i){var o,s,a=this.done.length?this.done[this.done.length-1].selectionsAfter:A;return a.length>0&&n-this.prevTime=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},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 v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:[];p(this,t),this.data=e,this.topNode=r,i.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(i.yy.prototype,"tree",{get:function(){return x(this)}}),this.parser=n,this.extension=[R.of(this),i.yy.languageData.of((function(t,e,n){return t.facet(w(t,e,n))}))].concat(o)}return m(t,[{key:"isActiveAt",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return w(t,e,n)==this.data}},{key:"findRegions",value:function(t){var e=this,n=t.facet(R);if((null==n?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];var i=[];return function t(n,o){if(n.prop(y)!=e.data){var s=n.prop(r.md.mounted);if(s){if(s.tree.prop(y)==e.data){if(s.overlay){var a,u=d(s.overlay);try{for(u.s();!(a=u.n()).done;){var h=a.value;i.push({from:h.from+o,to:h.to+o})}}catch(v){u.e(v)}finally{u.f()}}else i.push({from:o,to:o+n.length});return}if(s.overlay){var l=i.length;if(t(s.tree,s.overlay[0].from+o),i.length>l)return}}for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:e.length;p(this,t),this.doc=e,this.length=n,this.cursorPos=0,this.string="",this.cursor=e.iter()}return m(t,[{key:"syncTo",value:function(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}},{key:"chunk",value:function(t){return this.syncTo(t),this.string}},{key:"lineChunks",get:function(){return!0}},{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)}}]),t}(),A=null,C=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,a=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0;p(this,t),this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}return m(t,[{key:"startParse",value:function(){return this.parser.startParse(new S(this.state.doc),this.fragments)}},{key:"work",value:function(t,e){var n=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=r.mp.empty&&(null==e?this.treeLen==this.state.doc.length:this.treeLen>=e)?(this.takeTree(),!0):this.withContext((function(){var i;n.parse||(n.parse=n.startParse()),null!=e&&(null==n.parse.stoppedAt||n.parse.stoppedAt>e)&&eo)return!1}}))}},{key:"takeTree",value:function(){var t,e,n=this;this.parse&&(t=this.parse.parsedPos)>this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext((function(){for(;!(e=n.parse.advance()););})),this.tree=e,this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(t){var e=A;A=this;try{return t()}finally{A=e}}},{key:"withoutTempSkipped",value:function(t){for(var e;e=this.tempSkipped.pop();)t=M(t,e.from,e.to);return t}},{key:"changes",value:function(e,n){var i=this.fragments,o=this.tree,s=this.treeLen,a=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=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){u=[];var l,c=d(this.skipped);try{for(c.s();!(l=c.n()).done;){var f=l.value,v=e.mapPos(f.from,1),p=e.mapPos(f.to,-1);vt.from&&(this.fragments=M(this.fragments,i,o),this.skipped.splice(n--,1))}return this.skipped.length=t}}],[{key:"getSkippingParser",value:function(t){return new(function(e){u(i,e);var n=l(i);function i(){return p(this,i),n.apply(this,arguments)}return m(i,[{key:"createParse",value:function(e,n,i){var o=i[0].from,s=i[i.length-1].to;return{parsedPos:o,advance:function(){var e=A;if(e){var n,a=d(i);try{for(a.s();!(n=a.n()).done;){var u=n.value;e.tempSkipped.push(u)}}catch(h){a.e(h)}finally{a.f()}t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=s,new r.mp(r.Jq.none,[],[],s-o)},stoppedAt:null,stopAt:function(){}}}}]),i}(r._b))}},{key:"get",value:function(){return A}}]),t}();function M(t,e,n){return r.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}var O=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.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(25,r)||n.takeTree(),new t(n)}}],[{key:"init",value:function(e){var n=new C(e.facet(R).parser,e,[],r.mp.empty,0,{from:0,to:e.doc.length},[],null);return n.work(25)||n.takeTree(),new t(n)}}]),t}();b.state=i.QQ.define({create:O.init,update:function(t,e){var n,r=d(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is(b.setState))return i.value}}catch(o){r.e(o)}finally{r.f()}return e.startState.facet(R)!=e.state.facet(R)?O.init(e.state):t.apply(e)}});var T="undefined"!=typeof window&&window.requestIdleCallback||function(t,e){var n=e.timeout;return setTimeout(t,n)},D="undefined"!=typeof window&&window.cancelIdleCallback||clearTimeout,E=o.lg.fromClass(function(){function t(e){p(this,t),this.view=e,this.working=-1,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return m(t,[{key:"update",value:function(t){var e=this.view.state.field(b.state).context;t.viewportChanged&&(e.updateViewport(t.view.viewport)&&e.reset(),this.view.viewport.to>e.treeLen&&this.scheduleWork()),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!(this.working>-1)){var t=this.view.state,e=t.field(b.state),n=e.context.fragments;e.tree==e.context.tree&&e.context.treeLen>=t.doc.length&&n.length&&0==n[0].from&&n[0].to>=t.doc.length||(this.working=T(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:b.setState.of(new O(o.context))})),!a&&this.chunkBudget>0&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}}}},{key:"checkAsyncSchedule",value:function(t){var e=this;t.scheduleOn&&(t.scheduleOn.then((function(){return e.scheduleWork()})),t.scheduleOn=null)}},{key:"destroy",value:function(){this.working>=0&&D(this.working)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),R=i.r$.define({combine:function(t){return t.length?t[0]:null},enables:[b.state,E]}),P=i.r$.define(),L=i.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(L);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function I(t,e){var n="",r=t.tabSize;if(9==t.facet(L).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:"lineAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.state.doc.lineAt(t),r=this.options.simulateBreak;return null!=r&&r>=n.from&&r<=n.to?(e<0?r1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";var n=this.lineAt(t,e),r=n.text,i=n.from;return r.slice(t-i,Math.min(r.length,t+100-i))}},{key:"column",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.lineAt(t,e),r=n.text,i=n.from,o=this.countColumn(r,t-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(o+=s-this.countColumn(r,r.search(/\S|$/))),o}},{key:"countColumn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return(0,s.IS)(t,this.state.tabSize,e)}},{key:"lineIndent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.lineAt(t,e),r=n.text,i=n.from,o=this.options.overrideIndentation;if(o){var s=o(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),V=new r.md;function _(t){var e=t.type.prop(V);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 F(t,!0,1,void 0,s&&!function(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}(t)?o.from:void 0)}}return null==t.parent?z:null}function H(t,e,n){for(;t;t=t.parent){var r=_(t);if(r)return r(new q(n,e,t))}return null}function z(){return 0}var q=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t.state,t.options)).base=t,o.pos=r,o.node=i,o}return m(n,[{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){for(var t=this.state.doc.lineAt(this.node.from);;){for(var e=this.node.resolve(t.from);e.parent&&e.parent.from==e.from;)e=e.parent;if(W(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t.from)}},{key:"continue",value:function(){var t=this.node.parent;return t?H(t,this.pos,this.base):0}}]),n}(j);function W(t,e){for(var n=e;n;n=n.parent)if(t==n)return!0;return!1}function F(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=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;for(var i=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i),a=n.to;;){var u=e.childAfter(a);if(!u||u==r)return null;if(!u.type.isSkipped)return u.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 p},uU:function(){return h}});var r=n(77885);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(t)},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:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n?this.to:this.from,o=r,s=i.length;;){if(o==s)return o;var a=o+s>>1,u=i[a]-t||(n?this.value[a].endSide:this.value[a].startSide)-e;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,-1e9,!0),o=this.findIndex(n,1e9,!1,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}}}]),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:"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.isEmpty)return 0;var t,e=this.nextLayer.size,n=i(this.chunk);try{for(n.s();!(t=n.n()).done;){e+=t.value.value.length}}catch(r){n.e(r)}finally{n.f()}return e}},{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.isEmpty)return r.length?t.of(r):this;for(var d=new m(this,null,-1).goto(0),v=0,g=[],y=new p;d.value||v=0){var k=r[v++];y.addInner(k.from,k.to,k.value)||g.push(k)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||hd.to||h=i&&t<=i+o.length&&!1===o.between(i,t-i,e-i,n))return}this.nextLayer.between(t,e,n)}}},{key:"iter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return y.from([this]).goto(t)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"iter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return y.from(t).goto(e)}},{key:"compare",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=t.filter((function(t){return t.maxPoint>=500||!t.isEmpty&&e.indexOf(t)<0&&t.maxPoint>=i})),s=e.filter((function(e){return e.maxPoint>=500||!e.isEmpty&&t.indexOf(e)<0&&e.maxPoint>=i})),a=g(o,s),u=new b(o,a,i),h=new b(s,a,i);n.iterGaps((function(t,e,n){return w(u,t,h,e,n,r)})),n.empty&&0==n.length&&w(u,0,h,0,0,r)}},{key:"eq",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=1e9);var i=t.filter((function(t){return!t.isEmpty&&e.indexOf(t)<0})),o=e.filter((function(e){return!e.isEmpty&&t.indexOf(e)<0}));if(i.length!=o.length)return!1;if(!i.length)return!0;for(var s=g(i,o),a=new b(i,s,0).goto(n),u=new b(o,s,0).goto(n);;){if(a.to!=u.to||!x(a.active,u.active)||a.point&&(!u.point||!a.point.eq(u.point)))return!1;if(a.to>=r)return!0;a.next(),u.next()}}},{key:"spans",value:function(t,e,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=new b(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 p,o=i(t instanceof l?[t]:n?v(t):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}();function v(t){if(t.length>1)for(var e=t[0],n=1;n0)return t.slice().sort(c);e=r}return t}d.empty=new d([],[],null,-1),d.empty.nextLayer=d.empty;var p=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 g(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:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}},{key:"gotoInner",value:function(t,e,n){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&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--)k(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--)k(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(),k(this.heap,0)}}}],[{key:"from",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],o=0;o=r&&i.push(new m(s,n,r,o));return 1==i.length?i[0]:new t(i)}}]),t}();function k(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 b=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=y.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=C(this.active,this.activeTo)}},{key:"addActive",value:function(t){for(var e=0,n=this.cursor,r=n.value,i=n.to,o=n.rank;e-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&S(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.fromt&&this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}if(n){for(var s=0;s=0&&!(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}},{key:"openEnd",value:function(t){for(var e=0,n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)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))&&x(t.activeForPoint(t.to+u),n.activeForPoint(n.to))||o.comparePoint(a,c,t.point,n.point):c>a&&!x(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 x(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 C(t,e){for(var n=-1,r=1e9,i=0;is?-1:i==r.length?function(t,e){var n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):(0,o.IS)(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function u(t,e){var n=a(t,e),i=t.state.selection;return n?{update:function(t){if(t.docChanged){var e=t.changes.mapPos(t.startState.doc.line(n.line).from),r=t.state.doc.lineAt(e);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(t.changes)}},get:function(e,u,h){var l=a(t,e);if(!l)return i;var c=function(t,e,n){var i=Math.min(e.line,n.line),a=Math.max(e.line,n.line),u=[];if(e.off>s||n.off>s||e.col<0||n.col<0)for(var h=Math.min(e.off,n.off),l=Math.max(e.off,n.off),c=i;c<=a;c++){var f=t.doc.line(c);f.length<=l&&u.push(r.jT.range(f.from+h,f.to+l))}else for(var d=Math.min(e.col,n.col),v=Math.max(e.col,n.col),p=i;p<=a;p++){var g=t.doc.line(p),m=(0,o.Gz)(g.text,d,t.tabSize),y=(0,o.Gz)(g.text,v,t.tabSize);m=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},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);n-1?n.panels[r]:null}var f=r.lg.fromClass(function(){function t(e){o(this,t),this.input=e.state.facet(g),this.specs=this.input.filter((function(t){return t})),this.panels=this.specs.map((function(t){return t(e)}));var n=e.state.facet(l);this.top=new d(e,!0,n.topContainer),this.bottom=new d(e,!1,n.bottomContainer),this.top.sync(this.panels.filter((function(t){return t.top}))),this.bottom.sync(this.panels.filter((function(t){return!t.top})));var r,i=u(this.panels);try{for(i.s();!(r=i.n()).done;){var s=r.value;s.dom.classList.add("cm-panel"),s.mount&&s.mount()}}catch(a){i.e(a)}finally{i.f()}}return a(t,[{key:"update",value:function(t){var e=t.state.facet(l);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new d(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new d(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var n=t.state.facet(g);if(n!=this.input){var r,i=n.filter((function(t){return t})),o=[],s=[],a=[],h=[],c=u(i);try{for(c.s();!(r=c.n()).done;){var f=r.value,v=this.specs.indexOf(f),p=void 0;v<0?(p=f(t.view),h.push(p)):(p=this.panels[v]).update&&p.update(t),o.push(p),(p.top?s:a).push(p)}}catch(S){c.e(S)}finally{c.f()}this.specs=i,this.panels=o,this.top.sync(s),this.bottom.sync(a);for(var m=0,y=h;m=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},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 D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(u){a=!0,i=u}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(t,e)||E(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){if(t){if("string"==typeof t)return R(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(t,e):void 0}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,o=arguments.length>4?arguments[4]:void 0;P(this,t),this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=o?function(t){return o(I(t))}:I,this.query=this.normalize(n)}return B(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,w.gm)(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var t=this.peek();if(t<0)return this.done=!0,this;var e=(0,w.bg)(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,w.nZ)(t);for(var r=this.normalize(e),i=0,o=n;;i++){var s=r.charCodeAt(i),a=this.match(s,o);if(a)return this.value=a,this;if(i==r.length-1)break;o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(P(this,t),this.to=o,this.curLine="",this.done=!1,this.value=j,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new q(e,n,r,i,o);this.re=new RegExp(n,V+((null==r?void 0:r.ignoreCase)?"i":"")),this.iter=e.iter();var s=e.lineAt(i);this.curLineStart=s.from,this.matchPos=i,this.getLine(this.curLineStart)}return B(t,[{key:"getLine",value:function(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var n=this.curLineStart+e.index,r=n+e[0].length;if(this.matchPos=r+(n==r?1:0),n==this.curLine.length&&this.nextLine(),nthis.value.to)return this.value={from:n,to:r,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=r||i.to<=n){var o=new t(n,e.sliceString(n,r));return H.set(e,o),o}if(i.from==n&&i.to==r)return i;var s=i.text,a=i.from;return a>n&&(s=e.sliceString(n,a)+s,a=n),i.to=this.to?this.to:this.text.lineAt(t).to}},{key:"next",value:function(){for(;;){var t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e&&this.flat.tothis.flat.text.length-10&&(e=null),e){var n=this.flat.from+e.index,r=n+e[0].length;return this.value={from:n,to:r,match:e},this.matchPos=r+(n==r?1:0),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=z.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function W(t){var e=k("input",{class:"cm-textfield",name:"line"});function n(){var n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(n){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=D(n,5),a=s[1],u=s[2],h=s[3],l=s[4],c=h?+h.slice(1):0,f=u?+u:o.number;if(u&&l){var d=f/100;a&&(d=d*("-"==a?-1:1)+o.number/r.doc.lines),f=Math.round(r.doc.lines*d)}else u&&a&&(f=f*("-"==a?-1:1)+o.number);var v=r.doc.line(Math.max(1,Math.min(r.doc.lines,f)));t.dispatch({effects:F.of(!1),selection:i.jT.cursor(v.from+Math.max(0,Math.min(c,v.length))),scrollIntoView:!0}),t.focus()}}return{dom:k("form",{class:"cm-gotoLine",onkeydown:function(e){27==e.keyCode?(e.preventDefault(),t.dispatch({effects:F.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),n())},onsubmit:function(t){t.preventDefault(),n()}},k("label",t.state.phrase("Go to line"),": ",e)," ",k("button",{class:"cm-button",type:"submit"},t.state.phrase("go"))),pos:-10}}var F=i.Py.define(),$=i.QQ.define({create:function(){return!0},update:function(t,e){var n,r=T(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(F)&&(t=i.value)}}catch(o){r.e(o)}finally{r.f()}return t},provide:function(t){return g.from(t,(function(t){return t?W:null}))}}),U=r.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),G={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100},K=i.r$.define({combine:function(t){return(0,i.BO)(t,G,{highlightWordAroundCursor:function(t,e){return t||e},minSelectionLength:Math.min,maxMatches:Math.min})}});function J(t){var e=[Z,Y];return t&&e.push(K.of(t)),e}var X=r.p.mark({class:"cm-selectionMatch"}),Q=r.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"}),Y=r.lg.fromClass(function(){function t(e){P(this,t),this.decorations=this.getDeco(e)}return B(t,[{key:"update",value:function(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var e=t.state.facet(K),n=t.state,o=n.selection;if(o.ranges.length>1)return r.p.none;var s,a=o.main,u=null;if(a.empty){if(!e.highlightWordAroundCursor)return r.p.none;var h=n.wordAt(a.head);if(!h)return r.p.none;u=n.charCategorizer(a.head),s=n.sliceDoc(h.from,h.to)}else{var l=a.to-a.from;if(l200)return r.p.none;if(!(s=n.sliceDoc(a.from,a.to).trim()))return r.p.none}var c,f=[],d=T(t.visibleRanges);try{for(d.s();!(c=d.n()).done;)for(var v=c.value,p=new N(n.doc,s,v.from,v.to);!p.nextOverlapping().done;){var g=p.value,m=g.from,y=g.to;if((!u||(0==m||u(n.sliceDoc(m-1,m))!=i.D0.Word)&&(y==n.doc.length||u(n.sliceDoc(y,y+1))!=i.D0.Word))&&(u&&m<=a.from&&y>=a.to?f.push(Q.range(m,y)):(m>=a.to||y<=a.from)&&f.push(X.range(m,y)),f.length>e.maxMatches))return r.p.none}}catch(k){d.e(k)}finally{d.f()}return r.p.set(f)}}]),t}(),{decorations:function(t){return t.decorations}}),Z=r.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});var tt=i.r$.define({combine:function(t){return{top:t.some((function(t){return t.top}))}}});var et=function(){function t(e,n,r){P(this,t),this.search=e,this.replace=n,this.caseInsensitive=r}return B(t,[{key:"eq",value:function(t){return this.search==t.search&&this.replace==t.replace&&this.caseInsensitive==t.caseInsensitive&&this.constructor==t.constructor}}]),t}(),nt=function(t){S(n,t);var e=C(n);function n(t,r,i){var o;return P(this,n),(o=e.call(this,t,r,i)).unquoted=t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"})),o}return B(n,[{key:"cursor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;return new N(t,this.unquoted,e,n,this.caseInsensitive?function(t){return t.toLowerCase()}:void 0)}},{key:"nextMatch",value:function(t,e,n){var r=this.cursor(t,n).nextOverlapping();return r.done&&(r=this.cursor(t,0,e).nextOverlapping()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(t,e,n){for(var r=n;;){for(var i=Math.max(e,r-1e4-this.unquoted.length),o=this.cursor(t,i,r),s=null;!o.nextOverlapping().done;)s=o.value;if(s)return s;if(i==e)return null;r-=1e4}}},{key:"prevMatch",value:function(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.length)}},{key:"getReplacement",value:function(t){return this.replace}},{key:"matchAll",value:function(t,e){for(var n=this.cursor(t),r=[];!n.next().done;){if(r.length>=e)return null;r.push(n.value)}return r}},{key:"highlight",value:function(t,e,n,r){for(var i=this.cursor(t,Math.max(0,e-this.unquoted.length),Math.min(n+this.unquoted.length,t.length));!i.next().done;)r(i.value.from,i.value.to)}},{key:"valid",get:function(){return!!this.search}}]),n}(et),rt=function(t){S(n,t);var e=C(n);function n(t,r,i){var o;return P(this,n),(o=e.call(this,t,r,i)).valid=!!t&&function(t){try{return new RegExp(t,V),!0}catch(e){return!1}}(t),o}return B(n,[{key:"cursor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;return new _(t,this.search,this.caseInsensitive?{ignoreCase:!0}:void 0,e,n)}},{key:"nextMatch",value:function(t,e,n){var r=this.cursor(t,n).next();return r.done&&(r=this.cursor(t,0,e).next()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(t,e,n){for(var r=1;;r++){for(var i=Math.max(e,n-1e4*r),o=this.cursor(t,i,n),s=null;!o.next().done;)s=o.value;if(s&&(i==e||s.from>i+10))return s;if(i==e)return null}}},{key:"prevMatch",value:function(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.length)}},{key:"getReplacement",value:function(t){return this.replace.replace(/\$([$&\d+])/g,(function(e,n){return"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;r.push(n.value)}return r}},{key:"highlight",value:function(t,e,n,r){for(var i=this.cursor(t,Math.max(0,e-250),Math.min(n+250,t.length));!i.next().done;)r(i.value.from,i.value.to)}}]),n}(et),it=i.Py.define(),ot=i.Py.define(),st=i.QQ.define({create:function(t){return new at(yt(t),mt)},update:function(t,e){var n,r=T(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(it)?t=new at(i.value,t.panel):i.is(ot)&&(t=new at(t.query,i.value?mt:null))}}catch(o){r.e(o)}finally{r.f()}return t},provide:function(t){return g.from(t,(function(t){return t.panel}))}}),at=function t(e,n){P(this,t),this.query=e,this.panel=n},ut=r.p.mark({class:"cm-searchMatch"}),ht=r.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),lt=r.lg.fromClass(function(){function t(e){P(this,t),this.view=e,this.decorations=this.highlight(e.state.field(st))}return B(t,[{key:"update",value:function(t){var e=t.state.field(st);(e!=t.startState.field(st)||t.docChanged||t.selectionSet)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(t){var e=t.query;if(!t.panel||!e.valid)return r.p.none;for(var n=this.view,i=new m.f_,o=0,s=n.visibleRanges,a=s.length;os[o+1].from-500;)l=s[++o].to;e.highlight(n.state.doc,h,l,(function(t,e){var r=n.state.selection.ranges.some((function(n){return n.from==t&&n.to==e}));i.add(t,e,r?ht:ut)}))}return i.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function ct(t){return function(e){var n=e.state.field(st,!1);return n&&n.query.valid?t(e,n):kt(e)}}var ft=ct((function(t,e){var n=e.query,r=t.state.selection.main,i=r.from,o=r.to,s=n.nextMatch(t.state.doc,i,o);return!(!s||s.from==i&&s.to==o)&&(t.dispatch({selection:{anchor:s.from,head:s.to},scrollIntoView:!0,effects:At(t,s)}),!0)})),dt=ct((function(t,e){var n=e.query,r=t.state,i=r.selection.main,o=i.from,s=i.to,a=n.prevMatch(r.doc,o,s);return!!a&&(t.dispatch({selection:{anchor:a.from,head:a.to},scrollIntoView:!0,effects:At(t,a)}),!0)})),vt=ct((function(t,e){var n=e.query.matchAll(t.state.doc,1e3);return!(!n||!n.length)&&(t.dispatch({selection:i.jT.create(n.map((function(t){return i.jT.range(t.from,t.to)})))}),!0)})),pt=ct((function(t,e){var n=e.query,r=t.state,i=r.selection.main,o=i.from,s=i.to,a=n.nextMatch(r.doc,o,o);if(!a)return!1;var u,h,l=[];if(a.from==o&&a.to==s&&(h=r.toText(n.getReplacement(a)),l.push({from:a.from,to:a.to,insert:h}),a=n.nextMatch(r.doc,a.from,a.to)),a){var c=0==l.length||l[0].from>=a.to?0:a.to-a.from-h.length;u={anchor:a.from-c,head:a.to-c}}return t.dispatch({changes:l,selection:u,scrollIntoView:!!u,effects:a?At(t,a):void 0}),!0})),gt=ct((function(t,e){var n=e.query,r=n.matchAll(t.state.doc,1e9).map((function(t){return{from:t.from,to:t.to,insert:n.getReplacement(t)}}));return!!r.length&&(t.dispatch({changes:r}),!0)}));function mt(t){var e=t.state.field(st).query;return{dom:xt({view:t,query:e,updateQuery:function(n){e.eq(n)||(e=n,t.dispatch({effects:it.of(e)}))}}),mount:function(){this.dom.querySelector("[name=search]").select()},pos:80,top:t.state.facet(tt).top}}function yt(t,e){var n=t.selection.main,r=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);return e&&!r?e:new nt(r.replace(/\n/g,"\\n"),"",(null==e?void 0:e.caseInsensitive)||!1)}var kt=function(t){var e=t.state.field(st,!1);if(e&&e.panel){var n=c(t,mt);if(!n)return!1;n.dom.querySelector("[name=search]").focus()}else t.dispatch({effects:[ot.of(!0),e?it.of(yt(t.state,e.query)):i.Py.appendConfig.of(Mt)]});return!0},bt=function(t){var e=t.state.field(st,!1);if(!e||!e.panel)return!1;var n=c(t,mt);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:ot.of(!1)}),!0},wt=[{key:"Mod-f",run:kt,scope:"editor search-panel"},{key:"F3",run:ft,shift:dt,scope:"editor search-panel"},{key:"Mod-g",run:ft,shift:dt,scope:"editor search-panel"},{key:"Escape",run:bt,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var e=t.state,n=t.dispatch,r=e.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var o=r.main,s=o.from,a=o.to,u=[],h=0,l=new N(e.doc,e.sliceDoc(s,a));!l.next().done;){if(u.length>1e3)return!1;l.value.from==s&&(h=u.length),u.push(i.jT.range(l.value.from,l.value.to))}return n(e.update({selection:i.jT.create(u,h)})),!0}},{key:"Alt-g",run:function(t){var e=c(t,W);if(!e){var n=[F.of(!0)];null==t.state.field($,!1)&&n.push(i.Py.appendConfig.of([$,U])),t.dispatch({effects:n}),e=c(t,W)}return e&&e.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var e=t.state,n=t.dispatch,r=e.selection.ranges;if(r.some((function(t){return t.from===t.to})))return function(t){var e=t.state,n=t.dispatch,r=e.selection,o=i.jT.create(r.ranges.map((function(t){return e.wordAt(t.head)||i.jT.cursor(t.head)})),r.mainIndex);return!o.eq(r)&&(n(e.update({selection:o})),!0)}({state:e,dispatch:n});var o=e.sliceDoc(r[0].from,r[0].to);if(e.selection.ranges.some((function(t){return e.sliceDoc(t.from,t.to)!=o})))return!1;var s=function(t,e){var n=t.selection.ranges,r=new N(t.doc,e,n[n.length-1].to).next();if(!r.done)return r.value;for(var i=new N(t.doc,e,0,Math.max(0,n[n.length-1].from-1));!i.next().done;)if(!n.some((function(t){return t.from===i.value.from})))return i.value;return null}(e,o);return!!s&&(n(e.update({selection:e.selection.addRange(i.jT.range(s.from,s.to)),scrollIntoView:!0})),!0)},preventDefault:!0}];function xt(t){function e(e){return t.view.state.phrase(e)}var n=k("input",{value:t.query.search,placeholder:e("Find"),"aria-label":e("Find"),class:"cm-textfield",name:"search",onchange:a,onkeyup:a}),i=k("input",{value:t.query.replace,placeholder:e("Replace"),"aria-label":e("Replace"),class:"cm-textfield",name:"replace",onchange:a,onkeyup:a}),o=k("input",{type:"checkbox",name:"case",checked:!t.query.caseInsensitive,onchange:a}),s=k("input",{type:"checkbox",name:"re",checked:t.query instanceof rt,onchange:a});function a(){t.updateQuery(new(s.checked?rt:nt)(n.value,i.value,!o.checked))}function u(t,e,n){return k("button",{class:"cm-button",name:t,onclick:e},n)}return k("div",{onkeydown:function(e){(0,r.$1)(t.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==n?(e.preventDefault(),(e.shiftKey?dt:ft)(t.view)):13==e.keyCode&&e.target==i&&(e.preventDefault(),pt(t.view))},class:"cm-search"},[n,u("next",(function(){return ft(t.view)}),[e("next")]),u("prev",(function(){return dt(t.view)}),[e("previous")]),u("select",(function(){return vt(t.view)}),[e("all")]),k("label",null,[o,e("match case")]),k("label",null,[s,e("regexp")]),k("br"),i,u("replace",(function(){return pt(t.view)}),[e("replace")]),u("replaceAll",(function(){return gt(t.view)}),[e("replace all")]),k("button",{name:"close",onclick:function(){return bt(t.view)},"aria-label":e("close")},["×"])])}var St=/[\s\.,:;?!]/;function At(t,e){var n=e.from,i=e.to,o=t.state.doc.lineAt(n).from,s=t.state.doc.lineAt(i).to,a=Math.max(o,n-30),u=Math.min(s,i+30),h=t.state.sliceDoc(a,u);if(a!=o)for(var l=0;l<30;l++)if(!St.test(h[l+1])&&St.test(h[l])){h=h.slice(l);break}if(u!=s)for(var c=h.length-1;c>h.length-30;c--)if(!St.test(h[c-1])&&St.test(h[c])){h=h.slice(0,c);break}return r.tk.announce.of("".concat(t.state.phrase("current match"),". ").concat(h," ").concat(t.state.phrase("on line")," ").concat(t.state.doc.lineAt(n).number))}var Ct=r.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Mt=[st,i.Wl.fallback(lt),Ct]},77885:function(t,e,n){"use strict";n.d(e,{q6:function(){return Y},n0:function(){return g},as:function(){return m},D0:function(){return lt},F6:function(){return z},jT:function(){return C},yy:function(){return dt},r$:function(){return D},gc:function(){return p},Wl:function(){return _},Py:function(){return et},QQ:function(){return B},YW:function(){return nt},BO:function(){return vt}});var r=n(23414);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return s(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 s(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,u=!1;return{s:function(){n=n.call(t)},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];b(this,t,e)}},{key:"invertedDesc",get:function(){for(var e=[],n=0;n1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:w(this,t,e)}},{key:"mapPos",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Simple,r=0,i=0,o=0;ot)return i+(t-r);i+=s}else{if(n!=p.Simple&&u>=t&&(n==p.TrackDel&&rt||n==p.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:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(e){if(!Array.isArray(e)||e.length%2||e.some((function(t){return"number"!=typeof t})))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}}]),t}(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=u(n);function n(t,r){var i;return c(this,n),(i=e.call(this,t)).inserted=r,i}return d(n,[{key:"apply",value:function(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return b(this,(function(e,n,r,i,o){return t=t.replace(r,r+(n-e),o)}),!1),t}},{key:"mapDesc",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return w(this,t,e,!0)}},{key:"invert",value:function(t){for(var e=this.sections.slice(),i=[],o=0,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:w(this,t,e,!0)}},{key:"iterChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(this,t,e)}},{key:"desc",get:function(){return new g(this.sections)}},{key:"filter",value:function(t){var e=[],r=[],i=[],o=new S(this);t:for(var 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:"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||p<0||m>e)throw new RangeError("Invalid change range ".concat(p," to ").concat(m," (in doc of length ").concat(e,")"));var w=b?"string"==typeof b?r.xv.of(b.split(i||v)):b:r.xv.empty,x=w.length;if(p==m&&0==x)return;pu&&y(s,p-u,-1),y(s,m-p,x),k(a,s,w),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 w(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=[],o=r?[]:null,s=new S(t),a=new S(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 S(t),s=new S(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 S=function(){function t(e){c(this,t),this.set=e,this.i=0,this.next()}return d(t,[{key:"next",value:function(){var t=this.set.sections;this.i>1;return e>=t.length?r.xv.empty:t[e]}},{key:"textBit",value:function(t){var e=this.set.inserted,n=this.i-2>>1;return n>=e.length&&!t?r.xv.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}},{key:"forward",value:function(t){t==this.len?this.next():(this.len-=t,this.off+=t)}},{key:"forward2",value:function(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}]),t}(),A=function(){function t(e,n,r){c(this,t),this.from=e,this.to=n,this.flags=r}return d(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var t=3&this.flags;return 3==t?null:t}},{key:"goalColumn",get:function(){var t=this.flags>>5;return 33554431==t?void 0:t}},{key:"map",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=e.mapPos(this.from,n),i=e.mapPos(this.to,n);return r==this.from&&i==this.to?this:new t(r,i,this.flags)}},{key:"extend",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(t<=this.anchor&&e>=this.anchor)return C.range(t,e);var n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return C.range(this.anchor,n)}},{key:"eq",value:function(t){return this.anchor==t.anchor&&this.head==t.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return C.range(t.anchor,t.head)}}]),t}(),C=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,t),this.ranges=e,this.mainIndex=n}return d(t,[{key:"map",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.empty?this:t.create(this.ranges.map((function(t){return t.map(e,n)})),this.mainIndex)}},{key:"eq",value:function(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([e].concat(this.ranges),n?0:this.mainIndex+1)}},{key:"replaceRange",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,r=this.ranges.slice();return r[n]=e,t.create(r,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map((function(t){return t.toJSON()})),main:this.mainIndex}}}],[{key:"fromJSON",value:function(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map((function(t){return A.fromJSON(t)})),e.main)}},{key:"single",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new t([t.range(e,n)],0)}},{key:"create",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==e.length)throw new RangeError("A selection needs at least one range");for(var r=0,i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return new A(t,t,(0==e?0:e<0?4:8)|(null==n?3:Math.min(2,n))|(null!=r?r:33554431)<<5)}},{key:"range",value:function(t,e,n){var r=(null!=n?n:33554431)<<5;return e1&&void 0!==arguments[1]?arguments[1]:0,n=t[e];t.sort((function(t,e){return t.from-e.from})),e=t.indexOf(n);for(var r=1;ri.head?C.range(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 R([],this,0,t)}},{key:"compute",value:function(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new R(t,this,1,e)}},{key:"computeN",value:function(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new R(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 R=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.reconfigured)return t.values[s]=r(t),1;if(!(u&&e.docChanged||h&&(e.docChanged||e.selection)||l.some((function(e){return(1&F(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}var L=D.define({static:!0}),B=function(){function t(e,n,r,i,o){c(this,t),this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=o,this.provides=void 0}return d(t,[{key:"create",value:function(t){var e=this,n=t.facet(L).find((function(t){return t.field==e}));return((null==n?void 0:n.create)||this.createF)(t)}},{key:"slot",value:function(t){var e=this,n=t[this.id]>>1;return function(t,r){if(!r||r.reconfigured&&null==P(r.startState,e.id))return t.values[n]=e.create(t),1;var i,o=0;r.reconfigured?(i=r.startState.values[P(r.startState,e.id)],o=1):i=r.startState.values[n];var s=e.updateF(i,r);return o||e.compareF(i,s)||(o=1),o&&(t.values[n]=s),o}}},{key:"init",value:function(t){return[this,L.of({field:this,create:t})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(e){var n=new t(T++,e.create,e.update,e.compare||function(t,e){return t===e},e);return e.provide&&(n.provides=e.provide(n)),n}}]),t}(),I=2,N=1,j=0;function V(t){return function(e){return new H(e,t)}}var _={fallback:V(3),default:V(I),extend:V(N),override:V(j)},H=function t(e,n){c(this,t),this.inner=e,this.prec=n},z=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new q(this,t)}},{key:"reconfigure",value:function(e){return t.reconfigure.of({compartment:this,extension:e})}},{key:"get",value:function(t){return t.config.compartments.get(this)}}]),t}(),q=function t(e,n){c(this,t),this.compartment=e,this.inner=n},W=function(){function t(e,n,r,i,o){for(c(this,t),this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(e,n,r){var i,s=[],a=Object.create(null),u=new Map,h=o(function(t,e,n){var r=[[],[],[],[]],i=new Map;function s(t,a){var u=i.get(t);if(null!=u){if(u>=a)return;var h=r[u].indexOf(t);h>-1&&r[u].splice(h,1),t instanceof q&&n.delete(t.compartment)}if(i.set(t,a),Array.isArray(t)){var l,c=o(t);try{for(c.s();!(l=c.n()).done;){s(l.value,a)}}catch(v){c.e(v)}finally{c.f()}}else if(t instanceof q){if(n.has(t.compartment))throw new RangeError("Duplicate use of compartment in extensions");var f=e.get(t.compartment)||t.inner;n.set(t.compartment,f),s(f,a)}else if(t instanceof H)s(t.inner,t.prec);else if(t instanceof B)r[a].push(t),t.provides&&s(t.provides,a);else if(t instanceof R)r[a].push(t),t.facet.extensions&&s(t.facet.extensions,a);else{var d=t.extension;if(!d)throw new Error("Unrecognized extension value in extension set (".concat(t,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));s(d,a)}}return s(t,I),r.reduce((function(t,e){return t.concat(e)}))}(e,n,u));try{for(h.s();!(i=h.n()).done;){var l=i.value;l instanceof B?s.push(l):(a[l.facet.id]||(a[l.facet.id]=[])).push(l)}}catch(k){h.e(k)}finally{h.f()}for(var c=Object.create(null),f=[],d=[],v=function(){var t=g[p];c[t.id]=d.length<<1,d.push((function(e){return t.slot(e)}))},p=0,g=s;p>1;return function(t,n){var u,h=n?n.reconfigured?n.startState.config.address[e.id]:a<<1:null,l=null==h,c=o(s);try{for(c.s();!(u=c.n()).done;)1&F(t,u.value)&&(l=!0)}catch(k){c.e(k)}finally{c.f()}if(!l)return 0;for(var f=[],d=0;d>1,r=t.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;t.status[n]=4;var i=t.config.dynamicSlots[n](t,t.applying);return t.status[n]=2|i}function $(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}var U=D.define(),G=D.define({combine:function(t){return t.some((function(t){return t}))},static:!0}),K=D.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),J=D.define(),X=D.define(),Q=D.define(),Y=function(){function t(e,n){c(this,t),this.type=e,this.value=n}return d(t,null,[{key:"define",value:function(){return new Z}}]),t}(),Z=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new Y(this,t)}}]),t}(),tt=function(){function t(e){c(this,t),this.map=e}return d(t,[{key:"of",value:function(t){return new et(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 tt(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}();et.reconfigure=et.define(),et.appendConfig=et.define();var nt=function(){function t(e,n,r,i,o,s){c(this,t),this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,r&&O(r,n.newLength),o.some((function(e){return e.type==t.time}))||(this.annotations=o.concat(t.time.of(Date.now())))}return d(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(t){var e,n=o(this.annotations);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.type==t)return r.value}}catch(i){n.e(i)}finally{n.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(e){var n=this.annotation(t.userEvent);return n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&"."==n[e.length])}}]),t}();function rt(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=it(t,ot(e,o,t.changes.newLength),!0))}return r==t?t:new nt(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(t){var e,n=t.startState,r=!0,i=o(n.facet(J));try{for(i.s();!(e=i.n()).done;){var s=(0,e.value)(t);if(!1===s){r=!1;break}Array.isArray(s)&&(r=!0===r?s:rt(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 nt(n,a,t.selection&&t.selection.map(u),et.mapEffects(t.effects,u),t.annotations,t.scrollIntoView)}for(var l=n.facet(X),c=l.length-1;c>=0;c--){var f=l[c](t);t=f instanceof nt?f:Array.isArray(f)&&1==f.length&&f[0]instanceof nt?f[0]:st(n,ut(f),!1)}return t}(a):a)}nt.time=Y.define(),nt.userEvent=Y.define(),nt.addToHistory=Y.define(),nt.remote=Y.define();var at=[];function ut(t){return null==t?at:Array.isArray(t)?t:[t]}var ht,lt=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(lt||(lt={})),ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{ht=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(pt){}function ft(t){return function(e){if(!/\S/.test(e))return lt.Space;if(function(t){if(ht)return ht.test(t);for(var e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||ct.test(n)))return!0}return!1}(e))return lt.Word;for(var n=0;n-1)return lt.Word;return lt.Other}}var dt=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(c(this,t),this.config=e,this.doc=n,this.selection=r,this.applying=null,this.status=e.statusTemplate.slice(),i&&i.startState.config==e)this.values=i.startState.values.slice();else if(this.values=e.dynamicSlots.map((function(t){return null})),i)for(var o in e.address){var s=e.address[o],a=i.startState.config.address[o];null!=a&&0==(1&s)&&(this.values[s>>1]=$(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 F(this,n),$(this,n);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return e instanceof m?e:m.of(e,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(e){return r.xv.of(e.split(this.facet(t.lineSeparator)||v))}},{key:"sliceDoc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(t,e,this.lineBreak)}},{key:"facet",value:function(t){var e=this.config.address[t.id];return null==e?t.default:(F(this,e),$(this,e))}},{key:"toJSON",value:function(t){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(var n in t){var r=t[n];r instanceof B&&(e[n]=r.spec.toJSON(this.field(t[n]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"phrase",value:function(e){var n,r=o(this.facet(t.phrases));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Object.prototype.hasOwnProperty.call(i,e))return i[e]}}catch(s){r.e(s)}finally{r.f()}return e}},{key:"languageDataAt",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],s=o(this.facet(U));try{for(s.s();!(n=s.n()).done;){var a,u=n.value,h=o(u(this,e,r));try{for(h.s();!(a=h.n()).done;){var l=a.value;Object.prototype.hasOwnProperty.call(l,t)&&i.push(l[t])}}catch(c){h.e(c)}finally{h.f()}}}catch(c){s.e(c)}finally{s.f()}return i}},{key:"charCategorizer",value:function(t){return ft(this.languageDataAt("wordChars",t).join(""))}},{key:"wordAt",value:function(t){for(var e=this.doc.lineAt(t),n=e.text,i=e.from,o=e.length,s=this.charCategorizer(t),a=t-i,u=t-i;a>0;){var h=(0,r.cp)(n,a,!1);if(s(n.slice(h,a))!=lt.Word)break;a=h}for(;u1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");var i=[];if(r){var o=function(t){var n=r[t],o=e[t];i.push(n.init((function(t){return n.spec.fromJSON(o,t)})))};for(var 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=W.resolve(e.extensions||[],new Map),i=e.doc instanceof r.xv?e.doc:r.xv.of((e.doc||"").split(n.staticFacet(t.lineSeparator)||v)),o=e.selection?e.selection instanceof C?e.selection:C.single(e.selection.anchor,e.selection.head):C.single(0);return O(o,i.length),n.staticFacet(G)||(o=o.asSingle()),new t(n,i,o)}}]),t}();function vt(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=n.call(t)},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){if(t){if("string"==typeof t)return l(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)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=i,s=r;s=this.string.length}},{key:"sol",value:function(){return 0==this.pos}},{key:"peek",value:function(){return this.string.charAt(this.pos)||void 0}},{key:"next",value:function(){if(this.pose}},{key:"eatSpace",value:function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}},{key:"skipToEnd",value:function(){this.pos=this.string.length}},{key:"skipTo",value:function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}},{key:"backUp",value:function(t){this.pos-=t}},{key:"column",value:function(){return this.lastColumnPos0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}},{key:"current",value:function(){return this.string.slice(this.start,this.pos)}}]),t}();function S(t){if("object"!=m(t))return t;var e={};for(var n in t){var r=t[n];e[n]=r instanceof Array?r.slice():r}return e}var A=function(t){c(n,t);var e=d(n);function n(t){var i;y(this,n);var s,a,u=(0,o.kU)(t.languageData),h={token:(a=t).token,blankLine:a.blankLine||function(){},startState:a.startState||function(){return!0},copyState:a.copyState||S,indent:a.indent||function(){return null},languageData:a.languageData||{}},l=new(function(t){c(n,t);var e=d(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"createParse",value:function(t,e,n){return new O(s,t,e,n)}}]),n}(r._b));return i=e.call(this,u,l,function(t){var e=r.Jq.define({id:E.length,name:"Document",props:[o.mi.add((function(){return t}))]});return E.push(e),e}(u),[o.tK.of((function(t,e){return i.getIndent(t,e)}))]),s=p(i),i.streamParser=h,i.stateAfter=new r.md({perNode:!0}),i}return b(n,[{key:"getIndent",value:function(t,e){for(var n=(0,o.qz)(t.state),r=n.resolve(e);r&&r.type!=this.topNode;)r=r.parent;if(!r)return null;var i,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&&e.prop(t.stateAfter);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!=t.topNode||(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,h.tree,0-h.offset,n,h.to),c=void 0;if(l&&(c=M(t,h.tree,n+h.offset,l.pos+h.offset,!1)))return{state:l.state,tree:c}}}catch(f){a.e(f)}finally{a.f()}return{state:t.streamParser.startState(i?(0,o.y1)(i):4),tree:r.mp.empty}}(e,i,h,null==a?void 0:a.state),c=l.state,f=l.tree;this.state=c,this.parsedPos=this.chunkStart=h+f.length,f.length&&(this.chunks.push(f),this.chunkPos.push(0)),a&&this.parsedPos=e?this.finish():t&&this.parsedPos>t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}},{key:"stopAt",value:function(t){this.stoppedAt=t}},{key:"lineAfter",value:function(t){var e=this.input.chunk(t);if(this.input.lineChunks)"\n"==e&&(e="");else{var n=e.indexOf("\n");n>-1&&(e=e.slice(0,n))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}},{key:"nextLine",value:function(){for(var t=this.parsedPos,e=this.lineAfter(t),n=t+e.length,r=this.rangeIndex;;){var i=this.ranges[r].to;if(i>=n)break;if(e=e.slice(0,i-(n-e.length)),++r==this.ranges.length)break;var o=this.ranges[r].from,s=this.lineAfter(o);e+=s,n=o+s.length}return{line:e,end:n}}},{key:"skipGapsTo",value:function(t,e,n){for(;;){var r=this.ranges[this.rangeIndex].to,i=t+e;if(n>0?r>i:r>=i)break;e+=this.ranges[++this.rangeIndex].from-r}return e}},{key:"emitToken",value:function(t,e,n,r,i){if(this.ranges.length>1){e+=i=this.skipGapsTo(e,i,1);var o=this.chunk.length;n+=i=this.skipGapsTo(n,i,-1),r+=this.chunk.length-o}return this.chunk.push(t,e,n,r),i}},{key:"parseLine",value:function(t){var e=this.nextLine(),n=e.line,r=e.end,i=0,s=this.lang.streamParser,a=new x(n,t?t.state.tabSize:4,t?(0,o.y1)(t.state):2);if(a.eol())s.blankLine(this.state,a.indentUnit);else for(;!a.eol();){var u=T(s.token,a,this.state);u&&(i=this.emitToken(L(u),this.parsedPos+a.start,this.parsedPos+a.pos,4,i))}this.parsedPos=r,this.parsedPose.start)return i}throw new Error("Stream parser failed to advance stream.")}var D=Object.create(null),E=[r.Jq.none],R=new r.Lj(E),P=[];function L(t){return t?D[t]||(D[t]=function(t){var e,n=null,o=u(t.split("."));try{for(o.s();!(e=o.n()).done;){var a=e.value,h=i.pJ[a];h?"function"==typeof h?n?n=h(n):_(a,"Modifier ".concat(a," used at start of tag")):n?_(a,"Tag ".concat(a," used as modifier")):n=h:_(a,"Unknown highlighting tag ".concat(a))}}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)(s({},l,n))]});return E.push(c),c.id}(t)):0}for(var B=0,I=[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","typeName"],["attribute","propertyName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]];B-1||(P.push(t),console.warn(e))}},23414:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(t)},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?b:w)(t,e)}function b(t,e){if(e==t.length)return e;e&&x(t.charCodeAt(e))&&S(t.charCodeAt(e-1))&&e--;var n=A(t,e);for(e+=M(n);e=0&&y(A(t,o));)i++,o-=2;if(i%2==0)break;e+=2}}return e}function w(t,e){for(;e>0;){var n=b(t,e-2);if(n=56320&&t<57344}function S(t){return t>=55296&&t<56320}function A(t,e){var n=t.charCodeAt(e);if(!S(n)||e+1==t.length)return n;var r=t.charCodeAt(e+1);return x(r)?r-56320+(n-55296<<10)+65536:n}function C(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function M(t){return t<65536?1:2}function O(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=0,i=0;i=e)return r;i+=9==t.charCodeAt(r)?n-i%n:1,r=k(t,r)}return t.length}var D=function(){function t(){f(this,t)}return v(t,[{key:"lineAt",value:function(t){if(t<0||t>this.length)throw new RangeError("Invalid position ".concat(t," in document of length ").concat(this.length));return this.lineInner(t,!1,1,0)}},{key:"line",value:function(t){if(t<1||t>this.lines)throw new RangeError("Invalid line number ".concat(t," in ").concat(this.lines,"-line document"));return this.lineInner(t,!0,1,0)}},{key:"replace",value:function(t,e,n){var r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),R.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),R.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 I(this),n=new I(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 I(this,t)}},{key:"iterRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new N(this,t,e)}},{key:"iterLines",value:function(t,e){var n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(t).from;n=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new j(n)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var t=[];return this.flatten(t),t}}],[{key:"of",value:function(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new E(e):R.from(E.split(e,[])):t.empty}}]),t}();"undefined"!=typeof Symbol&&(D.prototype[Symbol.iterator]=function(){return this.iter()});var E=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:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.text[i],s=r+o.length;if((e?n:s)>=t)return new V(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=L(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=L(this.text,L(r.text,B(this.text,0,t)),e),o=this.length+r.length-(e-t);return i.length<=32?new n(i,o):R.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:"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}(D),R=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 E(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)?(b(),p.push(t)):t instanceof E&&g&&(e=y[y.length-1])instanceof E&&t.lines+e.lines<=32?(g+=t.lines,m+=t.length+1,y[y.length-1]=new E(e.text.concat(t.text),e.length+1+t.length)):(g+t.lines>f&&b(),g+=t.lines,m+=t.length+1,y.push(t))}function b(){0!=g&&(p.push(1==y.length?y[0]:n.from(y,m)),m=-1,g=y.length=0)}var w,x=i(t);try{for(x.s();!(w=x.n()).done;){var S=w.value;k(S)}}catch(A){x.e(A)}finally{x.f()}return b(),1==p.length?p[0]:new n(p,r)}}]),n}(D);function 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 L(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,i=0,o=0,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?1:(e instanceof E?e.text.length:e.children.length)<<1]}return v(t,[{key:"nextInner",value:function(t,e){for(this.done=this.lineBreak=!1;;){var n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,s=r instanceof E?r.text.length:r.children.length;if(o==(e>0?s:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(r instanceof E){var a=r.text[o+(e<0?-1:0)];if(this.offsets[n]+=e,a.length>Math.max(0,t))return this.value=0==t?a:e>0?a.slice(t):a.slice(0,a.length-t),this;t-=a.length}else{var u=r.children[o+(e<0?-1:0)];t>u.length?(t-=u.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(u),this.offsets.push(e>0?1:(u instanceof E?u.text.length:u.children.length)<<1))}}}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}]),t}(),N=function(){function t(e,n,r){f(this,t),this.value="",this.done=!1,this.cursor=new I(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}return v(t,[{key:"nextInner",value:function(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;this.done=!1,t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;var r=this.cursor.next(t).value;return this.pos+=(r.length+t)*e,this.value=r.length<=n?r:e<0?r.slice(r.length-n):r.slice(0,n),this}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),j=function(){function t(e){f(this,t),this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}return v(t,[{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.inner.next(t),n=e.done,r=e.lineBreak,i=e.value;return n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}(),V=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 Et},p:function(){return Rt},Nm:function(){return me},tk:function(){return ir},BF:function(){return Yt},lg:function(){return ee},Uw:function(){return Cr},ZO:function(){return Br},$f:function(){return gr},$1:function(){return kr}});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){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=A(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=A(t);if(e){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function C(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},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){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:e,r=W||(W=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function K(t,e,n){var r={key:e,code:e,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,t.dispatchEvent(i);var o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}var J=null;function X(){if(null==J){J=!1;var t=document.createElement("div");try{t.contentEditable="plaintext-only",J="plaintext-only"==t.contentEditable}catch(e){}}return J}var Q=function(){function t(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];D(this,t),this.node=e,this.offset=n,this.precise=r}return R(t,null,[{key:"before",value:function(e,n){return new t(e.parentNode,j(e),n)}},{key:"after",value:function(e,n){return new t(e.parentNode,j(e)+1,n)}}]),t}(),Y=[],Z=function(){function t(){D(this,t),this.parent=null,this.dom=null,this.dirty=2}return R(t,[{key:"editorView",get:function(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}},{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(t){var e,n=this.posAtStart,r=M(this.children);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i==t)return n;n+=i.length+i.breakAfter}}catch(o){r.e(o)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(t){return this.posBefore(t)+t.length}},{key:"coordsAt",value:function(t,e){return null}},{key:"sync",value:function(e){var n;if(2&this.dirty){var r,i=this.dom,o=null,s=M(this.children);try{for(s.s();!(r=s.n()).done;){var a=r.value;if(a.dirty){var u=o?o.nextSibling:i.firstChild;a.dom||!u||(null===(n=t.get(u))||void 0===n?void 0:n.parent)||a.reuseDOM(u),a.sync(e),a.dirty=0}e&&e.node==i&&o!=a.dom&&(e.written=!0),et(i,o,a.dom),o=a.dom}}catch(d){s.e(d)}finally{s.f()}var h=o?o.nextSibling:i.firstChild;for(h&&e&&e.node==i&&(e.written=!0);h;)h=tt(h)}else if(1&this.dirty){var l,c=M(this.children);try{for(c.s();!(l=c.n()).done;){var f=l.value;f.dirty&&(f.sync(e),f.dirty=0)}}catch(d){c.e(d)}finally{c.f()}}}},{key:"reuseDOM",value:function(t){return!1}},{key:"localPosFromDOM",value:function(e,n){var r;if(e==this.dom)r=this.dom.childNodes[n];else{for(var i=0==_(e)?0:0==n?-1:1;;){var o=e.parentNode;if(o==this.dom)break;0==i&&o.firstChild!=o.lastChild&&(i=e==o.firstChild?-1:1),e=o}r=i<0?e:e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!t.get(r);)r=r.nextSibling;if(!r)return this.length;for(var 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,h=n;ae)return l.domBoundsAround(t,e,u);if(c>=t&&-1==r&&(r=a,i=u),u>e&&l.dom.parentNode==this.dom){o=a,s=h;break}h=c,u=c+l.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].dom:null}}},{key:"markDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];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&&(this.dom.cmView=null),this.dom=t,t.cmView=this}},{key:"rootView",get:function(){for(var t=this;;){var e=t.parent;if(!e)return t;t=e}}},{key:"replaceChildren",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y;this.markDirty();for(var i=t;i0&&void 0!==arguments[0]?arguments[0]:this.length;return new nt(this.children,t,this.children.length)}},{key:"childPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(t,e)}},{key:"toString",value:function(){var t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==t?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}}],[{key:"get",value:function(t){return t.cmView}}]),t}();function tt(t){var e=t.nextSibling;return t.parentNode.removeChild(t),e}function et(t,e,n){var r=e?e.nextSibling:t.firstChild;if(n.parentNode==t)for(;r!=n;)r=tt(r);else t.insertBefore(n,r)}Z.prototype.breakAfter=0;var nt=function(){function t(e,n,r){D(this,t),this.children=e,this.pos=n,this.i=r,this.off=0}return R(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}(),rt=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(u){a=!0,i=u}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(t,e)||O(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}("undefined"!=typeof navigator?[navigator,document]:[{userAgent:"",vendor:"",platform:""},{documentElement:{style:{}}}],2),it=rt[0],ot=rt[1],st=/Edge\/(\d+)/.exec(it.userAgent),at=/MSIE \d/.test(it.userAgent),ut=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(it.userAgent),ht=!!(at||ut||st),lt=!ht&&/gecko\/(\d+)/i.test(it.userAgent),ct=!ht&&/Chrome\/(\d+)/.exec(it.userAgent),ft="webkitFontSmoothing"in ot.documentElement.style,dt=!ht&&/Apple Computer/.test(it.vendor),vt={mac:/Mac/.test(it.platform),ie:ht,ie_version:at?ot.documentMode||6:ut?+ut[1]:st?+st[1]:0,gecko:lt,gecko_version:lt?+(/Firefox\/(\d+)/.exec(it.userAgent)||[0,0])[1]:0,chrome:!!ct,chrome_version:ct?+ct[1]:0,ios:dt&&(/Mobile\/\w+/.test(it.userAgent)||it.maxTouchPoints>2),android:/Android\b/.test(it.userAgent),webkit:ft,safari:dt,webkit_version:ft?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=ot.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},pt=[],gt=function(t){k(n,t);var e=w(n);function n(){return D(this,n),e.apply(this,arguments)}return R(n,[{key:"become",value:function(t){return!1}},{key:"getSide",value:function(){return 0}}]),n}(Z);gt.prototype.children=pt;var mt=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).text=t,r}return R(n,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(t){this.setDOM(t||document.createTextNode(this.text))}},{key:"sync",value:function(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(t){return 3==t.nodeType&&(this.createDOM(t),!0)}},{key:"merge",value:function(t,e,r){return(!r||r instanceof n&&!(this.length-(e-t)+r.length>256))&&(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(e),this.markDirty(),!0)}},{key:"slice",value:function(t){var e=new n(this.text.slice(t));return this.text=this.text.slice(0,t),e}},{key:"localPosFromDOM",value:function(t,e){return t==this.dom?e:e?this.text.length:0}},{key:"domAtPos",value:function(t){return new Q(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 kt(this.dom,t,e)}}]),n}(gt),yt=function(t){k(n,t);var e=w(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;D(this,n),(r=e.call(this)).mark=t,r.children=i,r.length=o;var s,a=M(i);try{for(a.s();!(s=a.n()).done;){var u=s.value;u.setParent(S(r))}}catch(h){a.e(h)}finally{a.f()}return r}return R(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||4&this.dirty)&&this.createDOM(),y(A(n.prototype),"sync",this).call(this,t)}},{key:"merge",value:function(t,e,r,i,o){return(!r||!(!(r instanceof n&&r.mark.eq(this.mark))||t&&i<=0||et&&r.push(i=t&&(o=s),i=h,s++}}catch(c){a.e(c)}finally{a.f()}var l=this.length-t;return this.length=t,o>-1&&this.replaceChildren(o,this.children.length),new n(this.mark,r,l)}},{key:"domAtPos",value:function(t){return St(this.dom,this.children,t)}},{key:"coordsAt",value:function(t,e){return Ct(this,t,e)}}]),n}(gt);function kt(t,e,n){var r=t.nodeValue.length;e>r&&(e=r);var i=e,o=e,s=0;0==e&&n<0||e==r&&n>=0?vt.chrome||vt.gecko||(e?(i--,s=1):(o++,s=-1)):n<0?i--:o++;var a=G(t,i,o).getClientRects();if(!a.length)return H;var u=a[(s?s<0:n>=0)?0:a.length-1];return vt.safari&&!s&&0==u.width&&(u=Array.prototype.find.call(a,(function(t){return t.width}))||u),s?z(u,s<0):u}var bt=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this)).widget=t,o.length=r,o.side=i,o}return R(n,[{key:"slice",value:function(t){var e=n.create(this.widget,this.length-t,this.side);return this.length-=t,e}},{key:"sync",value:function(){this.dom&&this.widget.updateDOM(this.dom)||(this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(t,e,r,i,o){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||t>0&&i<=0||e0?n.length-1:0;r=n[i],!(t>0?0==i:i==n.length-1||r.top0?-1:1);return 0==t&&e>0||t==this.length&&e<=0?r:z(r,0==t)}}],[{key:"create",value:function(t,e,r){return new(t.customView||n)(t,e,r)}}]),n}(gt),wt=function(t){k(n,t);var e=w(n);function n(){return D(this,n),e.apply(this,arguments)}return R(n,[{key:"domAtPos",value:function(t){return new Q(this.widget.text,t)}},{key:"sync",value:function(){this.dom||this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(t,e){return e?3==t.nodeType?Math.min(e,this.length):this.length:0}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(t,e){return kt(this.widget.text,t,e)}}]),n}(bt);function xt(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(x){p.e(x)}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=r.length?0:i):k.merge(0,l,null,0,0)}else hi&&n0;r--){var a=e[r-1].dom;if(a.parentNode==t)return Q.after(a)}return new Q(t,0)}function At(t,e,n){var r,i=t.children;n>0&&e instanceof yt&&i.length&&(r=i[i.length-1])instanceof yt&&r.mark.eq(e.mark)?At(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function Ct(t,e,n){for(var r=0,i=0;i0?s>=e:s>e)&&(e0)){var u=0;if(s==r){if(o.getSide()<=0)continue;u=n=-o.getSide()}var h=o.coordsAt(e-r,n);return u&&h?z(h,n<0):h}r=s}var l=t.dom.lastChild;if(!l)return t.dom.getBoundingClientRect();var c=I(l);return c[c.length-1]}function Mt(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 Ot(t,e){if(t==e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0,o=n;i-1}}],[{key:"mark",value:function(t){return new Pt(t)}},{key:"widget",value:function(t){var e=t.side||0;return t.block&&(e+=200000001*(e>0?1:-1)),new Bt(t,e,e,!!t.block,t.widget||null,!1)}},{key:"replace",value:function(t){var e=!!t.block,n=It(t),r=n.start,i=n.end;return new Bt(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 Lt(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);Rt.none=s.Xs.empty;var Pt=function(t){k(n,t);var e=w(n);function n(t){var r;D(this,n);var i=It(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 R(n,[{key:"eq",value:function(t){return this==t||t instanceof n&&this.tagName==t.tagName&&this.class==t.class&&Ot(this.attrs,t.attrs)}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(t>=e)throw new RangeError("Mark decorations may not be empty");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Rt);Pt.prototype.point=!1;var Lt=function(t){k(n,t);var e=w(n);function n(t){return D(this,n),e.call(this,-1e8,-1e8,null,t)}return R(n,[{key:"eq",value:function(t){return t instanceof n&&Ot(this.spec.attributes,t.spec.attributes)}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Rt);Lt.prototype.mapMode=r.gc.TrackBefore,Lt.prototype.point=!0;var Bt=function(t){k(n,t);var e=w(n);function n(t,i,o,s,a,u){var h;return D(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 R(n,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(t){return t instanceof n&&(e=this.widget,r=t.widget,e==r||!!(e&&r&&e.compare(r)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide;var e,r}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Rt);function It(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 Nt(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)}Bt.prototype.point=!0;var jt=function(t){k(n,t);var e=w(n);function n(){var t;return D(this,n),(t=e.apply(this,arguments)).children=[],t.length=0,t.prevAttrs=void 0,t.attrs=null,t.breakAfter=0,t}return R(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),xt(this,t,e,r?r.children:Vt,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){Ot(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}},{key:"append",value:function(t,e){At(this,t,e)}},{key:"addLineDeco",value:function(t){var e=t.spec.attributes;e&&(this.attrs=Mt(e,this.attrs||{}))}},{key:"domAtPos",value:function(t){return St(this.dom,this.children,t)}},{key:"sync",value:function(t){(!this.dom||4&this.dirty)&&(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Tt(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),y(A(n.prototype),"sync",this).call(this,t);for(var e=this.dom.lastChild;e&&Z.get(e)instanceof yt;)e=e.lastChild;if(!e||"BR"!=e.nodeName&&Z.get(e)instanceof bt&&(!vt.ios||!this.children.some((function(t){return t instanceof mt})))){var r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var t,e=0,n=M(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!(r instanceof mt))return null;var i=I(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 Ct(this,t,e)}},{key:"match",value:function(t){return!1}},{key:"type",get:function(){return Et.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}(Z),Vt=[],_t=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this)).widget=t,o.length=r,o.type=i,o.breakAfter=0,o}return R(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||e0;){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 mt(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 Bt)if(n.block){var s=n.type;s!=Et.WidgetAfter||this.posCovered()||this.getLine(),this.addWidget(new _t(n.widget||new zt("div"),o,s))}else{var a=this.wrapMarks(bt.create(n.widget||new zt("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}(),zt=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).tag=t,r}return R(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}(Dt),qt=[],Wt=r.r$.define(),Ft=r.r$.define(),$t=r.r$.define(),Ut=r.r$.define(),Gt=r.r$.define(),Kt=r.r$.define();function Jt(t,e,n){var r=t.facet(Ut);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 Xt=r.r$.define({combine:function(t){return!t.length||t[0]}}),Qt=function t(e,n){D(this,t),this.field=e,this.get=n},Yt=function(){function t(){D(this,t)}return R(t,[{key:"from",value:function(t){return new Qt(this,t)}}],[{key:"define",value:function(){return new t}}]),t}();Yt.decorations=Yt.define(),Yt.atomicRanges=Yt.define(),Yt.scrollMargins=Yt.define();var Zt=0,te=r.r$.define(),ee=function(){function t(e,n,r){D(this,t),this.id=e,this.create=n,this.fields=r,this.extension=te.of(this)}return R(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(ne.from((function(t){return{plugin:t,handlers:i}}))),s&&a.push(Yt.decorations.from(s)),new t(Zt++,e,a)}},{key:"fromClass",value:function(e,n){return t.define((function(t){return new e(t)}),n)}}]),t}(),ne=Yt.define(),re=function(){function t(e){D(this,t),this.spec=e,this.mustUpdate=null,this.value=null}return R(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(Jt(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 Jt(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){Jt(t.state,n,"CodeMirror plugin crashed")}}}]),t}();re.dummy=new re(ee.define((function(){return{}})));var ie=r.r$.define({combine:function(t){return t.reduce((function(t,e){return Mt(e,t)}),{})}}),oe=r.r$.define({combine:function(t){return t.reduce((function(t,e){return Mt(e,t)}),{})}}),se=r.r$.define(),ae=r.r$.define(),ue=function(){function t(e,n,r,i){D(this,t),this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}return R(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}(),he=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qt;D(this,t),this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=r.as.empty(this.startState.doc.length);var o,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 ue(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 R(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}(),le=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).view=t,r.compositionDeco=Rt.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 jt],r.children[0].setParent(S(r)),r.updateInner([new ue(0,0,0,t.state.doc.length)],r.updateDeco(),0),r}return R(n,[{key:"root",get:function(){return this.view.root}},{key:"editorView",get:function(){return this.view}},{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(t){var e=this,n=t.changedRanges;this.minWidth>0&&n.length&&(n.every((function(t){var n=t.fromA;return t.toAe.minWidthTo}))?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=0),this.view.inputState.composing<0?this.compositionDeco=Rt.none:t.transactions.length&&(this.compositionDeco=function(t,e){var n=t.observer.selectionRange,r=n.focusNode&&ve(n.focusNode,n.focusOffset,0);if(!r)return Rt.none;var i,o,s=t.docView.nearest(r),a=r;if(s instanceof gt){for(;s.parent instanceof gt;)s=s.parent;o=(i=s.posAtStart)+s.length,a=s.dom}else{if(!(s instanceof jt))return Rt.none;for(;a.parentNode!=s.dom;)a=a.parentNode;for(var u=a.previousSibling;u&&!Z.get(u);)u=u.previousSibling;i=o=u?Z.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(u,f),!1):(this.updateInner(n,l,t.startState.doc.length,u,f),!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);var s=this.view.observer;s.ignore((function(){r.dom.style.height=r.view.viewState.domHeight+"px",r.dom.style.minWidth=r.minWidth?r.minWidth+"px":"";var t=vt.chrome||vt.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;r.sync(t),r.dirty=0,t&&(t.written||s.selectionRange.focusNode!=t.node)&&(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=Ht.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,b=y.off;this.replaceRange(k,b,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],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(!n&&!this.mayControlSelection()||vt.ios&&this.view.inputState.rapidCompositionStart)){var r=this.view.state.selection.main,i=this.domAtPos(r.anchor),o=r.empty?i:this.domAtPos(r.head);if(vt.gecko&&r.empty&&ce(i)){var s=document.createTextNode("");this.view.observer.ignore((function(){return i.node.insertBefore(s,i.node.childNodes[i.offset]||null)})),i=o=new Q(s,0),e=!0}var a=this.view.observer.selectionRange;!e&&a.focusNode&&N(i.node,i.offset,a.anchorNode,a.anchorOffset)&&N(o.node,o.offset,a.focusNode,a.focusOffset)||(this.view.observer.ignore((function(){var e=P(t.root);if(r.empty){if(vt.gecko){var n=pe(i.node,i.offset);if(n&&3!=n){var s=ve(i.node,i.offset,1==n?1:-1);s&&(i=new Q(s,1==n?0:s.nodeValue.length))}}e.collapse(i.node,i.offset),null!=r.bidiLevel&&null!=a.cursorBidiLevel&&(a.cursorBidiLevel=r.bidiLevel)}else if(e.extend)e.collapse(i.node,i.offset),e.extend(o.node,o.offset);else{var u=document.createRange();if(r.anchor>r.head){var h=[o,i];i=h[0],o=h[1]}u.setEnd(o.node,o.offset),u.setStart(i.node,i.offset),e.removeAllRanges(),e.addRange(u)}})),this.view.observer.setSelectionRange(i,o)),this.impreciseAnchor=i.precise?null:new Q(a.anchorNode,a.anchorOffset),this.impreciseHead=o.precise?null:new Q(a.focusNode,a.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.view.composing){var t=this.view.state.selection.main,e=P(this.root);if(t.empty&&t.assoc&&e.modify){var n=jt.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(Xt)?this.root.activeElement==this.dom:B(this.dom,this.view.observer.selectionRange)}},{key:"nearest",value:function(t){for(var e=t;e;){var n=Z.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!=Et.WidgetBefore&&i.type!=Et.WidgetAfter&&(!r||2==e||this.children[r-1].breakAfter||this.children[r-1].type==Et.WidgetBefore&&e>-2))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 jt){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=I(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 nt(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(Rt.replace({widget:new fe(s),block:!0,inclusive:!0}).range(n,o))}if(!i)break;n=i.to+1}return Rt.set(t)}},{key:"updateDeco",value:function(){return this.decorations=[].concat(C(this.view.pluginField(Yt.decorations)),C(this.view.state.facet(se)),[this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco])}},{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(Yt.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,r=n.defaultView,i=t.parentNode;i;)if(1==i.nodeType){var o=void 0,s=i==n.body;if(s)o=q(r);else{if(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.parentNode;continue}var a=i.getBoundingClientRect();o={left:a.left,right:a.left+i.clientWidth,top:a.top,bottom:a.top+i.clientHeight}}var u=0,h=0;if(e.topo.bottom&&(h=e.bottom-o.bottom+5),e.lefto.right&&(u=e.right-o.right+5),u||h)if(s)r.scrollBy(u,h);else{if(h){var l=i.scrollTop;i.scrollTop+=h,h=i.scrollTop-l}if(u){var c=i.scrollLeft;i.scrollLeft+=u,u=i.scrollLeft-c}e={left:e.left-u,top:e.top-h,right:e.right-u,bottom:e.bottom-h}}if(s)break;i=i.assignedSlot||i.parentNode}else{if(11!=i.nodeType)break;i=i.host}}(this.dom,{left:n.left-i,top:n.top-s,right:n.right+o,bottom:n.bottom+a})}}}]),n}(Z);function ce(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}var fe=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).height=t,r}return R(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}(Dt);var de=function(t){k(n,t);var e=w(n);function n(t,r){var i;return D(this,n),(i=e.call(this)).top=t,i.text=r,i}return R(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 wt}}]),n}(Dt);function ve(t,e,n){for(;;){if(3==t.nodeType)return t;if(1==t.nodeType&&e>0&&n<=0)e=_(t=t.childNodes[e-1]);else{if(!(1==t.nodeType&&e=0))return null;t=t.childNodes[e],e=0}}}function pe(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}(),Le=[];function Be(t,e){var n=t.length,r=e==ye?1:2,i=e==ye?2:1;if(!t||1==r&&!Re.test(t))return Ie(n);for(var o=0,s=r,a=r;o=0;x-=3)if(Ae[x+1]==-m){var S=Ae[x+2],A=2&S?r:4&S?1&S?i:r:0;A&&(Le[k]=Le[Ae[x]]=A),b=x;break}}else{if(189==Ae.length)break;Ae[b++]=k,Ae[b++]=g,Ae[b++]=w}else if(2==(y=Le[k])||1==y){var C=y==r;w=C?0:1;for(var M=b-3;M>=0;M-=3){var O=Ae[M+2];if(2&O)break;if(C)Ae[M+2]|=2;else{if(4&O)break;Ae[M+2]|=4}}}for(var T=0;TI;){for(var V=j,_=2!=Le[--j];j>I&&_==(2!=Le[j-1]);)j--;L.push(new Pe(j,V,_?2:1))}else L.push(new Pe(I,B,0))}else for(var H=0;Ht?e.left-t:Math.max(0,t-e.right)}function _e(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function He(t,e){return t.tope.top+1}function ze(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function We(t,e,n){for(var r,i,o,s,a,u,h,l,c=t.firstChild;c;c=c.nextSibling)for(var f=I(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&&He(h,v)?h=qe(h,v.bottom):l&&He(l,v)&&(l=ze(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?Fe(r,m,n):o||"true"!=r.contentEditable?{node:t,offset:Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0)}:We(r,m,n)}function Fe(t,e,n){for(var r=t.nodeValue.length,i=-1,o=1e9,s=0,a=0;an?l.top-n:n-l.bottom)-1;if(l.left-1<=e&&l.right+1>=e&&c=(l.left+l.right)/2,d=f;if(vt.chrome||vt.gecko)G(t,a).getBoundingClientRect().left==l.right&&(d=!f);if(c<=0)return{node:t,offset:a+(d?1:0)};i=a+(d?1:0),o=c}}}return{node:t,offset:i>-1?i:s>0?t.nodeValue.length:0}}function $e(t,e,n){for(var r,i=e.x,o=e.y,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=t.contentDOM.getBoundingClientRect(),u=t.defaultLineHeight/2,h=!1;;){if((r=t.blockAtHeight(o,a.top)).top>o||r.bottomo?-1:1,o=Math.min(r.bottom-u,Math.max(r.top+u,o)),h)return n?null:0;h=!0}if(r.type==Et.Text)break;o=s>0?r.bottom+u:r.top-u}var l=r.from;if(i=Math.max(a.left+1,Math.min(a.right-1,i)),lt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:Ue(t,a,r,i,o);var c,f=t.root,d=f.elementFromPoint(i,o),v=-1;if(d&&t.contentDOM.contains(d)&&!(t.docView.nearest(d)instanceof bt))if(f.caretPositionFromPoint){var p=f.caretPositionFromPoint(i,o);p&&(c=p.offsetNode,v=p.offset)}else if(f.caretRangeFromPoint){var g=f.caretRangeFromPoint(i,o);g&&(c=g.startContainer,v=g.startOffset,vt.safari&&Ge(c,v,i)&&(c=void 0))}if(!c||!t.docView.dom.contains(c)){var m=jt.find(t.docView,l),y=We(m.dom,i,o);c=y.node,v=y.offset}return t.docView.posFromDOM(c,v)}function Ue(t,e,n,r,o){var s=Math.round((r-e.left)*t.defaultCharacterWidth);t.lineWrapping&&n.height>1.5*t.defaultLineHeight&&(s+=Math.floor((o-n.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var a=t.state.sliceDoc(n.from,n.to);return n.from+(0,i.Gz)(a,s,t.state.tabSize)}function Ge(t,e,n){var r;if(3!=t.nodeType||e!=(r=t.nodeValue.length))return!1;for(var i=t.nextSibling;i;i=i.nextSibling)if(1!=i.nodeType||"BR"!=i.nodeName)return!1;return G(t,r-1,r).getBoundingClientRect().left>n}function Ke(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==me.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=jt.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 Je(t,e,n,i){for(var o=t.state.doc.lineAt(e.head),s=t.bidiSpans(o),a=e,u=null;;){var h=je(o,s,t.textDirection,a,n),l=Ne;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}}function Xe(t,e,n){for(var i=t.pluginField(Yt.atomicRanges);;){var o,s=!1,a=M(i);try{for(a.s();!(o=a.n()).done;){o.value.between(n.from-1,n.from+1,(function(t,i,o){n.from>t&&n.fromn.from?r.jT.cursor(t,1):r.jT.cursor(i,-1),s=!0)}))}}catch(u){a.e(u)}finally{a.f()}if(!s)return n}}var Qe=function(){function t(e){var n=this;D(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.pendingIOSKey=null,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null;var r=function(t){var r=en[t];e.contentDOM.addEventListener(t,(function(i){"keydown"==t&&n.keydown(e,i)||tn(e,i)&&!n.ignoreDuringComposition(i)&&(n.mustFlushObserver(i)&&e.observer.forceFlush(),n.runCustomHandlers(t,e,i)?i.preventDefault():r(e,i))})),n.registeredEvents.push(t)};for(var i in en)r(i);this.notifiedFocused=e.hasFocus,this.ensureHandlers(e),vt.safari&&e.contentDOM.addEventListener("input",(function(){return null}))}return R(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(ne));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){tn(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){Jt(e.state,u)}if(a||n.defaultPrevented)return vt.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){Jt(t.state,s)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(t,e){var n=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!!this.screenKeyEvent(t,e)||!(!vt.ios||13!=e.keyCode&&8!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey||e.synthetic)&&(this.pendingIOSKey=13==e.keyCode?"enter":"backspace",setTimeout((function(){return n.flushIOSKey(t)}),250),!0)}},{key:"flushIOSKey",value:function(t){if(!this.pendingIOSKey)return!1;var e=t.contentDOM,n=this.pendingIOSKey;return this.pendingIOSKey=null,"enter"==n?K(e,"Enter",13):K(e,"Backspace",8)}},{key:"ignoreDuringComposition",value:function(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(vt.safari&&Date.now()-this.compositionEndedAt<500)&&(this.compositionEndedAt=0,!0))}},{key:"screenKeyEvent",value:function(t,e){var n=9==e.keyCode&&Date.now()=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}(n,i)&&null,!1===this.dragging&&(i.preventDefault(),this.select(i))}return R(t,[{key:"move",value:function(t){if(0==t.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=t)}},{key:"up",value:function(t){null==this.dragging&&this.select(this.lastEvent),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,userEvent:"select.pointer",scrollIntoView:!0})}},{key:"update",value:function(t){var e=this;t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout((function(){return e.select(e.lastEvent)}),20)}}]),t}();function tn(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=Z.get(r))&&n.ignoreEvent(e))return!1;return!0}var en=Object.create(null),nn=vt.ie&&vt.ie_version<15||vt.ios&&vt.webkit_version<604;function rn(t,e){var n,i=t.state,o=1,s=i.toText(e),a=s.lines==i.selection.ranges.length;if(gn&&i.selection.ranges.every((function(t){return t.empty}))&&gn==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,{userEvent:"input.paste",scrollIntoView:!0})}en.keydown=function(t,e){t.inputState.setSelectionOrigin("select")};var on=0;function sn(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()-2e3)){var n,i=null,o=M(t.state.facet($t));try{for(o.s();!(n=o.n()).done;){if(i=(0,n.value)(t,e))break}}catch(s){o.e(s)}finally{o.f()}i||0!=e.button||(i=function(t,e){var n=ln(t,e),i=function(t){if(!cn)return t.detail;var e=fn,n=vn;return fn=t,vn=Date.now(),dn=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(dn+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),a=null)},get:function(e,u,h){var l;if(a&&e.clientX==a.clientX&&e.clientY==a.clientY?l=s:(l=s=ln(t,e),a=e),!l||!n)return o;var c=sn(t,l.pos,l.bias,i);if(n.pos!=l.pos&&!u){var f=sn(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},un=function(t,e,n){return an(e,n)&&t>=n.left&&t<=n.right};function hn(t,e,n,r){var i=jt.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&&un(n,r,s))return-1;var a=i.coordsAt(o,1);return a&&un(n,r,a)?1:s&&an(r,s)?-1:1}function ln(t,e){var n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:hn(t,n,e.clientX,e.clientY)}}var cn=vt.ie&&vt.ie_version<=11,fn=null,dn=0,vn=0;function pn(t,e,n,r){var i=t.posAtCoords({x:e.clientX,y:e.clientY});if(null!=i&&n){e.preventDefault();var o=t.inputState.mouseSelection,s=r&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:i,insert:n},u=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(i,-1),head:u.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"})}}en.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")},en.drop=function(t,e){if(e.dataTransfer&&t.state.facet(Xt)){var n=e.dataTransfer.files;n&&n.length?function(){e.preventDefault();for(var r=Array(n.length),i=0,o=function(){++i==n.length&&pn(t,e,r.filter((function(t){return null!=t})).join(t.state.lineBreak),!1)},s=function(t){var e=new FileReader;e.onerror=o,e.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)||(r[t]=e.result),o()},e.readAsText(n[t])},a=0;au&&(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),r=n.text,i=n.ranges,o=n.linewise;if(r){gn=o?r:null;var s=nn?null:e.clipboardData;s?(e.preventDefault(),s.clearData(),s.setData("text/plain",r)):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,r),"cut"==e.type&&t.state.facet(Xt)&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"})}},en.focus=en.blur=function(t){setTimeout((function(){t.hasFocus!=t.inputState.notifiedFocused&&t.update([])}),10)},en.beforeprint=function(t){t.viewState.printing=!0,t.requestMeasure(),setTimeout((function(){t.viewState.printing=!1,t.requestMeasure()}),2e3)},en.compositionstart=en.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.docView.compositionDeco.size&&(t.observer.flush(),mn(t,!0)),t.inputState.composing=0)},en.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,setTimeout((function(){t.inputState.composing<0&&mn(t,!1)}),50)},en.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()};var yn=["pre-wrap","normal","pre-line"],kn=function(){function t(){D(this,t),this.doc=i.xv.empty,this.lineWrapping=!1,this.direction=me.LTR,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return R(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=yn.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;D(this,t),this.length=e,this.height=n,this.flags=r}return R(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(t){this.flags=(t?2:0)|-3&this.flags}},{key:"setHeight",value:function(t,e){this.height!=e&&(Math.abs(this.height-e)>1e-4&&(t.heightChanged=!0),this.height=e)}},{key:"replace",value:function(e,n,r){return t.of(r)}},{key:"decomposeLeft",value:function(t,e){e.push(this)}},{key:"decomposeRight",value:function(t,e){e.push(this)}},{key:"applyChanges",value:function(t,e,n,r){for(var i=this,o=r.length-1;o>=0;o--){var s=r[o],a=s.fromA,u=s.toA,h=s.fromB,l=s.toB,c=i.lineAt(a,xn.ByPosNoHeight,e,0,0),f=c.to>=u?c:i.lineAt(u,xn.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--,a2*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}(Sn),Cn=function(t){k(n,t);var e=w(n);function n(t,r){var i;return D(this,n),(i=e.call(this,t,r,Et.Text)).collapsed=0,i.widgetHeight=0,i}return R(n,[{key:"replace",value:function(t,e,r){var i=r[0];return 1==r.length&&(i instanceof n||i instanceof Mn&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof Mn?i=new n(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Sn.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}(An),Mn=function(t){k(n,t);var e=w(n);function n(t){return D(this,n),e.call(this,t,0)}return R(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 wn(l,c,n+a*u,a,Et.Text)}},{key:"lineAt",value:function(t,e,n,r,i){if(e==xn.ByHeight)return this.blockAt(t,n,r,i);if(e==xn.ByPosNoHeight){var o=n.lineAt(t),s=o.from,a=o.to;return new wn(s,a-s,0,0,Et.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 wn(f,d,r+l*(v-h),l,Et.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 wn(c.from,c.length,r,u,Et.Text)),r+=u,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 Sn.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 Cn(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,Sn.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}(Sn),On=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this,t.length+r+i.length,t.height+i.height,r|(t.outdated||i.outdated?2:0))).left=t,o.right=i,o.size=t.size+i.size,o}return R(n,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(t,e,n,r){var i=n+this.left.height;return ts))return u;var h=e==xn.ByPosNoHeight?xn.ByPosNoHeight:xn.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,xn.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&&Tn(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?Sn.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}}]),n}(Sn);function Tn(t,e){var n,r;null==t[e]&&(n=t[e-1])instanceof Mn&&(r=t[e+1])instanceof Mn&&t.splice(e-1,3,new Mn(n.length+1+r.length))}var Dn=function(){function t(e,n){D(this,t),this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}return R(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(t,e){if(this.lineStart>-1){var n=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Cn?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Cn(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 Cn(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(t,e){var n=new Mn(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 Cn)return t;var e=new Cn(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(t){this.enterLine(),t.type!=Et.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=Et.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 Cn||this.isCovered?(this.writtenTo=e&&i<=n}))){var o=t.lineAt(i,0),s=o.from,a=o.to;e.push(new In(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?_n:new Hn(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(se),o=t.changedRanges,s=ue.extendWithRanges(o,En(t.startState.facet(se),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=me.LTR;if(!e){var o=window.getComputedStyle(n);r=o.whiteSpace,i="rtl"==o.direction?me.RTL:me.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){var u=window.getComputedStyle(a);if((a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth)&&"visible"!=u.overflow){var h=a.getBoundingClientRect();r=Math.max(r,h.left),i=Math.min(i,h.right),o=Math.max(o,h.top),s=Math.min(s,h.bottom)}a="absolute"==u.position||"fixed"==u.position?a.offsetParent: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 bn(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:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top,0)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom,0)}},{key:"getViewport",value:function(t,e){var n=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),r=this.heightMap,i=this.state.doc,o=this.visibleTop,s=this.visibleBottom,a=new In(r.lineAt(o-1e3*n,xn.ByHeight,i,0,0).from,r.lineAt(s+1e3*(1-n),xn.ByHeight,i,0,0).to);if(e)if(e.heada.to){var h=r.lineAt(e.head,xn.ByPos,i,0,0).bottom;a=new In(r.lineAt(h-(s-o)-500,xn.ByHeight,i,0,0).from,r.lineAt(h+500,xn.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 In(this.heightMap.lineAt(n,xn.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(r,xn.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,xn.ByPos,this.state.doc,0,0),o=i.top,s=this.heightMap.lineAt(n,xn.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(Vn(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 jn(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 Vn(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 _n={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},Hn=function(){function t(e,n,r){D(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,xn.ByPos,e,0,0).top,a=n.lineAt(o,xn.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 R(t,[{key:"toDOM",value:function(t,e){t-=e;for(var n=0,r=0,i=0;;n++){var o=n-1}}),Fn=o.V.newName(),$n=o.V.newName(),Un=o.V.newName(),Gn={"&light":"."+$n,"&dark":"."+Un};function Kn(t,e,n){return new o.V(e,{finish:function(e){return/&/.test(e)?e.replace(/&\w*/,(function(e){if("&"==e)return t;if(!n||!n[e])throw new RangeError("Unsupported selector: ".concat(e));return n[e]})):t+" "+e}})}var Jn=Kn("."+Fn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none"},".cm-lineWrapping":{whiteSpace:"pre-wrap",wordBreak:"break-word",overflowWrap:"anywhere"},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},".cm-cursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none",display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-placeholder":{color:"#888",display:"inline-block"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"3px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Gn),Xn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Qn=vt.ie&&vt.ie_version<=11,Yn=function(){function t(e,n,r){var i=this;D(this,t),this.view=e,this.onChange=n,this.onScrollChanged=r,this.active=!1,this.ignoreSelection=new F,this.delayedFlush=-1,this.queue=[],this.lastFlush=0,this.scrollTargets=[],this.intersection=null,this.intersecting=!1,this._selectionRange=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((function(t){var n,r=M(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;i.queue.push(o)}}catch(s){r.e(s)}finally{r.f()}i._selectionRange=null,(vt.ie&&vt.ie_version<=11||vt.ios&&e.composing)&&t.some((function(t){return"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length}))?i.flushSoon():i.flush()})),Qn&&(this.onCharData=function(t){i.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),i.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.start(),this.onScroll=this.onScroll.bind(this),window.addEventListener("scroll",this.onScroll),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((function(t){i.parentCheck<0&&(i.parentCheck=setTimeout(i.listenForScroll.bind(i),1e3)),t[t.length-1].intersectionRatio>0!=i.intersecting&&(i.intersecting=!i.intersecting,i.intersecting!=i.view.inView&&i.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom)),this.listenForScroll()}return R(t,[{key:"onScroll",value:function(t){this.intersecting&&this.flush(),this.onScrollChanged(t)}},{key:"onSelectionChange",value:function(t){this.lastFlush=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1,this.flush())}},{key:"flush",value:function(){var t=this;if(!(this.delayedFlush>=0)){this.lastFlush=Date.now();var e,n=this.queue,r=M(this.observer.takeRecords());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i)}}catch(p){r.e(p)}finally{r.f()}n.length&&(this.queue=[]);var o=this.selectionRange,s=!this.ignoreSelection.eq(o)&&B(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),s&&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("attributes"==t.type),"attributes"==t.type&&(e.dirty|=4),"childList"==t.type){var n=Zn(e,t.previousSibling||t.target.previousSibling,-1),r=Zn(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"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}},{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 Zn(t,e,n){for(;e;){var r=Z.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 tr(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){var e=[];if(t.root.activeElement!=t.contentDOM)return e;var n=t.observer.selectionRange,r=n.anchorNode,i=n.anchorOffset,o=n.focusNode,s=n.focusOffset;r&&(e.push(new rr(r,i)),o==r&&s==i||e.push(new rr(o,s)));return e}(t),d=new er(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||vt.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(Xt)){var m=t.observer.selectionRange,y=t.docView,k=y.impreciseHead,b=y.impreciseAnchor,w=k&&k.node==m.focusNode&&k.offset==m.focusOffset||!L(t.contentDOM,m.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(m.focusNode,m.focusOffset),x=b&&b.node==m.anchorNode&&b.offset==m.anchorOffset||!L(t.contentDOM,m.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(m.anchorNode,m.anchorOffset);w==u.head&&x==u.anchor||(s=r.jT.single(x,w))}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&&o.from>=u.from&&o.to<=u.to&&(o.from!=u.from||o.to!=u.to)&&u.to-u.from-(o.to-o.from)<=4&&(o={from:u.from,to:u.to,insert:t.state.doc.slice(u.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,u.to))}),o){var S=t.state;if(vt.android&&(o.from==u.from&&o.to==u.to&&1==o.insert.length&&2==o.insert.lines&&K(t.contentDOM,"Enter",13)||o.from==u.from-1&&o.to==u.to&&0==o.insert.length&&K(t.contentDOM,"Backspace",8)||o.from==u.from&&o.to==u.to+1&&0==o.insert.length&&K(t.contentDOM,"Delete",46))||vt.ios&&t.inputState.flushIOSKey(t))return;var A,C=o.insert.toString();if(t.state.facet(Kt).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&&(!s||s.main.empty&&s.main.from==o.from+o.insert.length)){var M=u.fromo.to?S.sliceDoc(o.to,u.to):"";A=S.replaceSelection(t.state.toText(M+o.insert.sliceString(0,void 0,t.state.lineBreak)+O))}else{var T=S.changes(o);A={changes:T,selection:s&&!S.selection.main.eq(s.main)&&s.main.to<=T.newLength?S.selection.replaceRange(s.main):void 0}}var D="input.type";t.composing&&(D+=".compose",t.inputState.compositionFirstChange&&(D+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(A,{scrollIntoView:!0,userEvent:D})}else if(s&&!s.main.eq(u)){var E=!1,R="select";t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(E=!0),R=t.inputState.lastSelectionOrigin),t.dispatch({selection:s,scrollIntoView:E,userEvent:R})}}var er=function(){function t(e,n){D(this,t),this.points=e,this.view=n,this.text="",this.lineBreak=n.state.lineBreak}return R(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=Z.get(r),s=Z.get(i);((o?o.breakAfter:nr(r))||(s?s.breakAfter:nr(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=Z.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,vt.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 nr(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var rr=function t(e,n){D(this,t),this.node=e,this.offset=n,this.pos=-1};var ir=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};D(this,t),this.plugins=[],this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=n.dispatch||function(t){return e.update([t])},this.dispatch=this.dispatch.bind(this),this.root=n.root||document,this.viewState=new Bn(n.state||r.yy.create()),this.plugins=this.state.facet(te).map((function(t){return new re(t).update(e)})),this.observer=new Yn(this,(function(t,n,r){tr(e,t,n,r)}),(function(t){e.inputState.runScrollHandlers(e,t),e.observer.intersecting&&e.measure()})),this.inputState=new Qe(this),this.docView=new le(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,ur(),this.requestMeasure(),n.parent&&n.parent.appendChild(this.dom)}return R(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"dispatch",value:function(){var t;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof r.YW?arguments.length<=0?void 0:arguments[0]:(t=this.state).update.apply(t,arguments))}},{key:"update",value:function(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var e,n,i,o=!1,s=this.state,a=M(t);try{for(a.s();!(n=a.n()).done;){var u=n.value;if(u.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=u.state}}catch(c){a.e(c)}finally{a.f()}if(s.facet(r.yy.phrases)!=this.state.facet(r.yy.phrases))return this.setState(s);e=new he(this,s,t);try{this.updateState=2,i=t.some((function(t){return t.scrollIntoView}))?s.selection.main:null,this.viewState.update(e,i),this.bidiCache=cr.update(this.bidiCache,e.changes),e.empty||(this.updatePlugins(e),this.inputState.update(e)),o=this.docView.update(e),this.state.facet(ae)!=this.styleModules&&this.mountStyles(),this.updateAttrs(),this.showAnnouncements(t)}finally{this.updateState=0}if((o||i||this.viewState.mustEnforceCursorAssoc)&&this.requestMeasure(),!e.empty){var h,l=M(this.state.facet(Gt));try{for(l.s();!(h=l.n()).done;){(0,h.value)(e)}}catch(c){l.e(c)}finally{l.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 Bn(t),this.plugins=t.facet(te).map((function(t){return new re(t).update(e)})),this.docView=new le(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(te),n=t.state.facet(te);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 re(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;v0&&void 0!==arguments[0])||arguments[0];this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=-1,e&&this.observer.flush();var n=null;try{for(var r=0;;r++){this.updateState=1;var i=this.viewState.measure(this.docView,r>0),o=this.measureRequests;if(!i&&!o.length&&null==this.viewState.scrollTo)break;if(this.measureRequests=[],r>5){console.warn("Viewport failed to stabilize");break}var s=o.map((function(e){try{return e.read(t)}catch(n){return Jt(t.state,n),lr}})),a=new he(this,this.state);a.flags|=i,n?n.flags|=i:n=a,this.updateState=2,a.empty||(this.updatePlugins(a),this.inputState.update(a)),this.updateAttrs(),i&&this.docView.update(a);for(var u=0;u-1&&this.measure(!1)}},{key:"requestMeasure",value:function(t){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame((function(){return e.measure()}))),t){if(null!=t.key)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return this.viewState.lineAt(t,e)}},{key:"contentHeight",get:function(){return this.viewState.contentHeight}},{key:"moveByChar",value:function(t,e,n){return Xe(this,t,Je(this,t,e,n))}},{key:"moveByGroup",value:function(t,e){var n=this;return Xe(this,t,Je(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 Ke(this,t,e,n)}},{key:"moveVertically",value:function(t,e,n){return Xe(this,t,function(t,e,n,i){var o=e.head,s=n?1:-1;if(o==(n?t.state.doc.length:0))return r.jT.cursor(o);var a,u=e.goalColumn,h=t.contentDOM.getBoundingClientRect(),l=t.coordsAtPos(o);if(l)null==u&&(u=l.left-h.left),a=s<0?l.top:l.bottom;else{var c=t.viewState.lineAt(o,t.dom.getBoundingClientRect().top);null==u&&(u=Math.min(h.right-h.left,t.defaultCharacterWidth*(o-c.from))),a=s<0?c.top:c.bottom}for(var f=h.left+u,d=null!=i?i:t.defaultLineHeight>>1,v=0;;v+=10){var p=a+(d+v)*s,g=$e(t,{x:f,y:p},!1,s);if(ph.bottom||(s<0?go))return r.jT.cursor(g,void 0,void 0,u)}}(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){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),$e(this,t,e)}},{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[Pe.find(i,t-r.from,-1,e)];return z(n,o.dir==me.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.heightOracle.direction}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(t){if(t.length>or)return Ie(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=Be(t.text,this.textDirection);return this.bidiCache.push(new cr(t.from,t.to,n,o)),o}},{key:"hasFocus",get:function(){var t;return(document.hasFocus()||vt.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var t=this;this.observer.ignore((function(){U(t.contentDOM),t.docView.updateSelection()}))}},{key:"destroy",value:function(){var t,e=M(this.plugins);try{for(e.s();!(t=e.n()).done;){t.value.destroy(this)}}catch(n){e.e(n)}finally{e.f()}this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled)}}],[{key:"domEventHandlers",value:function(t){return ee.define((function(){return{}}),{eventHandlers:t})}},{key:"theme",value:function(t,e){var n=o.V.newName(),r=[qn.of(n),ae.of(Kn(".".concat(n),t))];return e&&e.dark&&r.push(Wn.of(!0)),r}},{key:"baseTheme",value:function(t){return r.Wl.fallback(ae.of(Kn("."+Fn,t,Gn)))}}]),t}();ir.styleModule=ae,ir.inputHandler=Kt,ir.exceptionSink=Ut,ir.updateListener=Gt,ir.editable=Xt,ir.mouseSelectionStyle=$t,ir.dragMovesSelection=Ft,ir.clickAddsSelectionRange=Wt,ir.decorations=se,ir.contentAttributes=oe,ir.editorAttributes=ie,ir.lineWrapping=ir.contentAttributes.of({class:"cm-lineWrapping"}),ir.announce=r.Py.define();var or=4096;function sr(t,e){return null==t?e.getBoundingClientRect().top:t}var ar=-1;function ur(){window.addEventListener("resize",(function(){-1==ar&&(ar=setTimeout(hr,50))}))}function hr(){ar=-1;for(var t=document.querySelectorAll(".cm-content"),e=0;e1&&void 0!==arguments[1]?arguments[1]:fr,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 dr(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=br={view:e,prefix:n,scope:t};return setTimeout((function(){br==r&&(br=null)}),wr),!0}]})},l=1;l0&&void 0!==arguments[0]?arguments[0]:{};return[Ar.of(t),Or,Dr]}var Mr=function(){function t(e,n,r,i,o){D(this,t),this.left=e,this.top=n,this.width=r,this.height=i,this.className=o}return R(t,[{key:"draw",value:function(){var t=document.createElement("div");return t.className=this.className,this.adjust(t),t}},{key:"adjust",value:function(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width>=0&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}},{key:"eq",value:function(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}}]),t}(),Or=ee.fromClass(function(){function t(e){D(this,t),this.view=e,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=e.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className="cm-selectionLayer",this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}return R(t,[{key:"setBlinkRate",value:function(){this.cursorLayer.style.animationDuration=this.view.state.facet(Ar).cursorBlinkRate+"ms"}},{key:"update",value:function(t){var e=t.startState.facet(Ar)!=t.state.facet(Ar);(e||t.selectionSet||t.geometryChanged||t.viewportChanged)&&this.view.requestMeasure(this.measureReq),t.transactions.some((function(t){return t.scrollIntoView}))&&(this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),e&&this.setBlinkRate()}},{key:"readPos",value:function(){var t,e=this,n=this.view.state,r=n.facet(Ar),i=n.selection.ranges.map((function(t){return t.empty?[]:function(t,e){if(e.to<=t.viewport.from||e.from>=t.viewport.to)return[];var n=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),i=t.textDirection==me.LTR,o=t.contentDOM,s=o.getBoundingClientRect(),a=Er(t),u=window.getComputedStyle(o.firstChild),h=s.left+parseInt(u.paddingLeft),l=s.right-parseInt(u.paddingRight),c=Pr(t,n),f=Pr(t,r),d=c.type==Et.Text?c:null,v=f.type==Et.Text?f:null;t.lineWrapping&&(d&&(d=Rr(t,n,d)),v&&(v=Rr(t,r,v)));if(d&&v&&d.from==v.from)return k(b(e.from,e.to,d));var p=d?b(e.from,null,d):w(c,!1),g=v?b(null,e.to,v):w(f,!0),m=[];return(d||c).to<(v||f).from-1?m.push(y(h,p.bottom,l,g.top)):p.bottomf&&p.from=m)break;S>g&&u(Math.max(x,g),null==e&&x<=f,Math.min(S,m),null==n&&S>=d,w.dir)}}catch(A){b.e(A)}finally{b.f()}if((g=k.to+1)>=m)break}}}catch(A){v.e(A)}finally{v.f()}return 0==a.length&&u(f,null==e,d,null==n,t.textDirection),{top:o,bottom:s,horizontal:a}}function w(t,e){var n=s.top+(e?t.top:t.bottom);return{top:n,bottom:n,horizontal:[]}}}(e.view,t)})).reduce((function(t,e){return t.concat(e)})),o=[],s=M(n.selection.ranges);try{for(s.s();!(t=s.n()).done;){var a=t.value,u=a==n.selection.main;if(a.empty?!u||Sr:r.drawRangeCursor){var h=Lr(this.view,a,u);h&&o.push(h)}}}catch(l){s.e(l)}finally{s.f()}return{rangePieces:i,cursors:o}}},{key:"drawSel",value:function(t){var e=this,n=t.rangePieces,r=t.cursors;if(n.length!=this.rangePieces.length||n.some((function(t,n){return!t.eq(e.rangePieces[n])}))){this.selectionLayer.textContent="";var i,o=M(n);try{for(o.s();!(i=o.n()).done;){var 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}()),Tr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Sr&&(Tr[".cm-line"].caretColor="transparent !important");var Dr=r.Wl.override(ir.theme(Tr));function Er(t){var e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==me.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function Rr(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),type:Et.Text}}function Pr(t,e){var n=t.visualLineAt(e);if(Array.isArray(n.type)){var r,i=M(n.type);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o.to>e||o.to==e&&(o.to==n.to||o.type==Et.Text))return o}}catch(s){i.e(s)}finally{i.f()}}return n}function Lr(t,e,n){var r=t.coordsAtPos(e.head,e.assoc||1);if(!r)return null;var i=Er(t);return new Mr(r.left-i.left,r.top-i.top,-1,r.bottom-r.top,n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary")}function Br(){return Nr}var Ir=Rt.line({attributes:{class:"cm-activeLine"}}),Nr=ee.fromClass(function(){function t(e){D(this,t),this.decorations=this.getDeco(e)}return R(t,[{key:"update",value:function(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var e,n=-1,r=[],i=M(t.state.selection.ranges);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(!o.empty)return Rt.none;var s=t.visualLineAt(o.head);s.from>n&&(r.push(Ir.range(s.from)),n=s.from)}}catch(a){i.e(a)}finally{i.f()}return Rt.set(r)}}]),t}(),{decorations:function(t){return t.decorations}})},80340:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(u){a=!0,i=u}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(t)},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){if(t){if("string"==typeof t)return s(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)?s(t,e):void 0}}function s(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]:{};h(this,t),this.id=l++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return u(t,[{key:"add",value:function(t){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=v.match(t)),function(n){var r=t(n);return void 0===r?null:[e,r]}}}]),t}();f.closedBy=new f({deserialize:function(t){return t.split(" ")}}),f.openedBy=new f({deserialize:function(t){return t.split(" ")}}),f.group=new f({deserialize:function(t){return t.split(" ")}}),f.contextHash=new f({perNode:!0}),f.lookAhead=new f({perNode:!0}),f.mounted=new f({perNode:!0});var d=Object.create(null),v=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;h(this,t),this.name=e,this.props=n,this.id=r,this.flags=i}return u(t,[{key:"prop",value:function(t){return this.props[t.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(t){if("string"==typeof t){if(this.name==t)return!0;var e=this.prop(f.group);return!!e&&e.indexOf(t)>-1}return this.id==t}}],[{key:"define",value:function(e){var n=e.props&&e.props.length?Object.create(null):d,r=(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,r);if(e.props){var s,a=i(e.props);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(Array.isArray(u)||(u=u(o)),u){if(u[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[u[0].id]=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 r,o=i(n.split(" "));try{for(o.s();!(r=o.n()).done;){var s=r.value;e[s]=t[n]}}catch(a){o.e(a)}finally{o.f()}}return function(t){for(var n=t.prop(f.group),r=-1;r<(n?n.length:0);r++){var i=e[r<0?t.name:n[r]];if(i)return i}}}}]),t}();v.none=new v("",Object.create(null),0,8);var p=function(){function t(e){h(this,t),this.types=e;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=null!=t&&g.get(this)||this.topNode,r=new C(n);return null!=t&&(r.moveTo(t,e),g.set(this,r._tree)),r}},{key:"fullCursor",value:function(){return new C(this.topNode,1)}},{key:"topNode",get:function(){return new w(this,0,0,null)}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.cursor(t,e).node}},{key:"resolveInner",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.topNode;;){var r=n.enter(t,e);if(!r)return n;n=r}}},{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(),u=function(){return a.node};;){var h=!1;if(a.from<=s&&a.to>=i&&(a.type.isAnonymous||!1!==e(a.type,a.from,a.to,u))){if(a.firstChild())continue;a.type.isAnonymous||(h=!0)}for(;h&&n&&n(a.type,a.from,a.to,u),h=a.type.isAnonymous,!a.nextSibling();){if(!a.parent())return;h=!0}}}},{key:"prop",value:function(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}},{key:"propValues",get:function(){var t=[];if(this.props)for(var e in this.props)t.push([+e,this.props[e]]);return t}},{key:"balance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.children.length<=8?this:E(this.type,this.children,this.positions,0,this.children.length,0,this.length,(function(n,r,i){return new t(e.type,n,r,i,e.propValues)}),n.makeTree||function(e,n,r){return new t(v.none,e,n,r)})}}],[{key:"build",value:function(t){return O(t)}}]),t}();m.empty=new m(v.none,[],[],0);var y=function(){function t(e,n){h(this,t),this.buffer=e,this.index=n}return u(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),k=function(){function t(e,n,r){h(this,t),this.buffer=e,this.length=n,this.set=r}return u(t,[{key:"type",get:function(){return v.none}},{key:"toString",value:function(){for(var t=[],e=0;e0));a=o[a+3]);return s}},{key:"slice",value:function(e,n,r,i){for(var o=this.buffer,s=new Uint16Array(n-e),a=e,u=0;a=e&&ne;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}var w=function(){function t(e,n,r,i){h(this,t),this.node=e,this._from=n,this.index=r,this._parent=i}return u(t,[{key:"type",get:function(){return this.node.type}},{key:"name",get:function(){return this.node.type.name}},{key:"from",get:function(){return this._from}},{key:"to",get:function(){return this._from+this.node.length}},{key:"nextChild",value:function(e,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s.node,u=a.children,h=a.positions,l=n>0?u.length:-1;e!=l;e+=n){var c=u[e],d=h[e]+s._from;if(b(i,r,d,d+c.length))if(c instanceof k){if(2&o)continue;var v=c.findChild(0,c.buffer.length,n,r-d,i);if(v>-1)return new A(new S(s,c,e,d),null,v)}else if(1&o||!c.type.isAnonymous||M(c)){var p=void 0;if(c.props&&(p=c.prop(f.mounted))&&!p.overlay)return new t(p.tree,d,e,s);var g=new t(c,d,e,s);return 1&o||!g.type.isAnonymous?g:g.nextChild(n<0?c.children.length-1:0,n,r,i)}}if(1&o||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+n:n<0?-1:s._parent.node.children.length,!(s=s._parent))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this.node.children.length-1,-1,0,4)}},{key:"childAfter",value:function(t){return this.nextChild(0,1,t,2)}},{key:"childBefore",value:function(t){return this.nextChild(this.node.children.length-1,-1,t,-2)}},{key:"enter",value:function(e,n){var r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(o&&(r=this.node.prop(f.mounted))&&r.overlay){var a,u=e-this.from,h=i(r.overlay);try{for(h.s();!(a=h.n()).done;){var l=a.value,c=l.from,d=l.to;if((n>0?c<=u:c=u:d>u))return new t(r.tree,r.overlay[0].from+this.from,-1,this)}}catch(v){h.e(v)}finally{h.f()}}return this.nextChild(0,1,e,n,s?0:2)}},{key:"nextSignificantParent",value:function(){for(var t=this;t.type.isAnonymous&&t._parent;)t=t._parent;return t}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",get:function(){return new C(this)}},{key:"tree",get:function(){return this.node}},{key:"toTree",value:function(){return this.node}},{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=x(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 x(this,t,e,n)}},{key:"toString",value:function(){return this.node.toString()}}]),t}();function x(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 S=function t(e,n,r,i){h(this,t),this.parent=e,this.buffer=n,this.index=r,this.start=i},A=function(){function t(e,n,r){h(this,t),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}return u(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(e,n,r){var i=this.context.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(t){return this.child(1,t,2)}},{key:"childBefore",value:function(t){return this.child(-1,t,-2)}},{key:"enter",value:function(e,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!i)return null;var o=this.context.buffer,s=o.findChild(this.index+4,o.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new t(this.context,this,s)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}},{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,0,4))}},{key:"cursor",get:function(){return new C(this)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var t=[],e=[],n=this.context.buffer,r=this.index+4,i=n.buffer[this.index+3];if(i>r){var o=n.buffer[this.index+1],s=n.buffer[this.index+2];t.push(n.slice(r,i,o,s)),e.push(0)}return new m(this.type,t,e,this.to-this.from)}},{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=x(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 x(this,t,e,n)}}]),t}(),C=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(h(this,t),this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof w)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 u(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}},{key:"yieldBuf",value:function(t,e){this.index=t;var n=this.buffer,r=n.start,i=n.buffer;return this.type=e||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}},{key:"yield",value:function(t){return!!t&&(t instanceof w?(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:"enterChild",value:function(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree.node.children.length-1:0,t,e,n,this.mode));var r=this.buffer.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(t){return this.enterChild(1,t,2)}},{key:"childBefore",value:function(t){return this.enterChild(-1,t,-2)}},{key:"enter",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.buffer?!!r&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n,r))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(1&this.mode?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var t=1&this.mode?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.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));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,0,4))}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,0,4,this.mode))}},{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.index-1)for(var a=e+t,u=t<0?-1:n.node.children.length;a!=u;a+=t){var h=n.node.children[a];if(1&this.mode||h instanceof k||!h.type.isAnonymous||M(h))return!1}}return!0}},{key:"move",value:function(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}},{key:"next",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(1,t)}},{key:"prev",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(-1,t)}},{key:"moveTo",value:function(t){for(var e=arguments.length>1&&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=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;sc;){var f=n.size;if(n.id==e&&f>=0)u.size=r,u.start=i,u.skip=s,s+=4,r+=4,n.next();else{var d=n.pos-f;if(f<0||d=h?4:0,p=n.start;for(n.next();n.pos>d;){if(n.size<0){if(-3!=n.size)break t;v+=4}else n.id>=h&&(v+=4);n.next()}i=p,r+=f,s+=v}}(e<0||r==t)&&(u.size=r,u.start=i,u.skip=s);return u.size>4?u:void 0}(l.pos-e,s))){for(var R=new Uint16Array(O.size-O.skip),P=l.pos-O.size,L=R.length;l.pos>P;)L=w(O.start,R,L);M=new k(R,x-O.start,r),D=O.start-t}else{var B=l.pos-S;l.next();for(var I=[],N=[],j=u>=h?u:-1,V=0,_=x;l.pos>B;)j>=0&&l.id==j&&l.size>=0?(l.end<=_-o&&(g(I,N,y,V,l.end,_,j,A),V=I.length,_=l.end),l.next()):p(y,B,I,N,j);if(j>=0&&V>0&&V-1&&V>0){var H=function(t){return function(e,n,r){var i,o,s=0,a=e.length-1;if(a>=0&&(i=e[a])instanceof m){if(!a&&i.type==t&&i.length==r)return i;(o=i.prop(f.lookAhead))&&(s=n[a]+i.length+o)}return b(t,e,n,r,s)}}(T);M=E(T,I,N,0,I.length,0,x-y,H,H)}else M=b(T,I,N,x-y,A-x)}n.push(M),i.push(D)}function g(t,e,n,i,o,s,a,u){for(var h=[],l=[];t.length>i;)h.push(t.pop()),l.push(e.pop()+n-o);t.push(b(r.types[a],h,l,s-o,u-s)),e.push(o-n)}function b(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0;if(d){var s=[f.contextHash,d];o=o?[s].concat(o):[s]}if(i>25){var a=[f.lookAhead,i];o=o?[a].concat(o):[a]}return new m(t,e,n,r,o)}function w(t,e,n){var r=l.id,i=l.start,o=l.end,s=l.size;if(l.next(),s>=0&&r4)for(var u=l.pos-(s-4);l.pos>u;)n=w(t,e,n);e[--n]=a,e[--n]=o-t,e[--n]=i-t,e[--n]=r}else-3==s?d=r:-4==s&&(v=r);return n}for(var x=[],S=[];l.pos>0;)p(t.start||0,t.bufferStart||0,x,S,-1);var A=null!==(e=t.length)&&void 0!==e?e:x.length?S[0]+x[0].length:0;return new m(c[t.topID],x.reverse(),S.reverse(),A)}var T=new WeakMap;function D(t,e){if(!t.isAnonymous||e instanceof k||e.type!=t)return 1;var n=T.get(e);return null==n&&(n=e.children.reduce((function(e,n){return e+D(t,n)}),1),T.set(e,n)),n}function E(t,e,n,r,i,o,s,a,u){for(var h=0,l=r;l=c)break;p+=g}if(h==l+1){if(p>c){var m=n[l];e(m.children,m.positions,0,m.children.length,r[l]+a);continue}f.push(n[l])}else{var y=r[h-1]+n[h-1].length-v;f.push(E(t,n,r,l,h,v,y,null,u))}d.push(v+a-o)}}(e,n,r,i,0),(a||u)(f,d,s)}var R=function(){function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];h(this,t),this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(s?2:0)}return u(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=[new t(0,e.length,e,0,!1,o)],a=i(r);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}},{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;;a++){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,!!l)}if(f&&i.push(f),s.to>c)break;s=o-1&&(this.modules.splice(s,1),r--,s=-1),-1==s){if(this.modules.splice(r++,0,o),e)for(var a=0;a-1?r:null}};function p(e){for(var t=[],n=1;n3?0:(e-e%10!=10?1:0)*e%10]}},b=p({},v),g=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length0?"-":"+")+g(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+g(Math.floor(Math.abs(t)/60),2)+":"+g(Math.abs(t)%60,2)}},w=function(e){return+e-1},E=[null,s],D=[null,l],P=["isPm",l,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],S=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],C=(f("monthNamesShort"),f("monthNames"),{default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"}),T=function(e,t,n){if(void 0===t&&(t=C.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var r=[];t=(t=C[t]||t).replace(u,(function(e,t){return r.push(t),"@@@"}));var i=p(p({},b),n);return(t=t.replace(a,(function(t){return k[t](e,i)}))).replace(/@@@/g,(function(){return r.shift()}))};var A=n(14516);var M,_,x=function(){try{(new Date).toLocaleDateString("i")}catch(e){return"RangeError"===e.name}return!1}(),O=(function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}}(),function(){try{(new Date).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()),z=((0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric"})})),x?function(e,t){return H(t).format(e)}:function(e){return T(e,"MMMM D, YYYY")}),H=(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric"})}));(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"numeric",day:"numeric"})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short"})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric"})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{month:"long"})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric"})}));!function(e){e.language="language",e.system="system",e.comma_decimal="comma_decimal",e.decimal_comma="decimal_comma",e.space_comma="space_comma",e.none="none"}(M||(M={})),function(e){e.language="language",e.system="system",e.am_pm="12",e.twenty_four="24"}(_||(_={}));var j,Y,F,R,V,I=(0,A.Z)((function(e){if(e.time_format===_.language||e.time_format===_.system){var t=e.time_format===_.language?e.language:void 0,n=(new Date).toLocaleString(t);return n.includes("AM")||n.includes("PM")}return e.time_format===_.am_pm})),Z=O?function(e,t){return L(t).format(e)}:function(e,t){return T(e,(I(t)," A"))},L=(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit",hour12:I(e)})}));(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:I(e)})})),(0,A.Z)((function(e){return new Intl.DateTimeFormat(e.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",hour12:I(e)})})),n(12497),n(78358),n(14678),n(52039);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function U(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 $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G(e);if(t){var i=G(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?q(e):t}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function K(){K=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ee(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n',"\n ","\n "])),this.imageUrl?(0,r.dy)(Y||(Y=B([''])),this.imageUrl):this.iconPath?(0,r.dy)(F||(F=B(["'])),this.iconPath):"",this.label,this.version?(0,r.dy)(R||(R=B(['(',")"])),this.version):"")}},{kind:"get",static:!0,key:"styles",value:function(){return(0,r.iv)(V||(V=B(["\n :host {\n display: flex;\n align-items: center;\n }\n .label {\n margin-right: 4px;\n }\n .version {\n color: var(--secondary-text-color);\n }\n .icon {\n max-height: 22px;\n max-width: 22px;\n margin-right: 8px;\n }\n "])))}}]}}),r.oi);function Pe(e){return(Pe="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 Se(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){return(Te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ie(e);if(t){var i=Ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Me(this,n)}}function Me(e,t){return!t||"object"!==Pe(t)&&"function"!=typeof t?_e(e):t}function _e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xe(){xe=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!He(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.name?1:-1}))),this.addons=(this.backup?this.backup.addons:null===(t=this.supervisor)||void 0===t?void 0:t.supervisor.addons).map((function(e){return{slug:e.slug,name:e.name,version:e.version,checked:!1}})).sort((function(e,t){return e.name>t.name?1:-1})),this.backupType=(null===(r=this.backup)||void 0===r?void 0:r.type)||"full",this.backupName=(null===(i=this.backup)||void 0===i?void 0:i.name)||"",this.backupHasPassword=(null===(o=this.backup)||void 0===o?void 0:o.protected)||!1)}},{kind:"field",key:"_localize",value:function(){var e=this;return function(t){var n;return(null===(n=e.supervisor)||void 0===n?void 0:n.localize("backup.".concat(t)))||e.localize("ui.panel.page-onboarding.restore.".concat(t))}}},{kind:"method",key:"render",value:function(){var e=this;if(!this.onboarding&&!this.supervisor)return(0,r.dy)(oe||(oe=Se([""])));var t="partial"===this.backupType?this._getSection("folders"):void 0,n="partial"===this.backupType?this._getSection("addons"):void 0;return(0,r.dy)(ae||(ae=Se(["\n ","\n ","\n ","\n ","\n ","\n ","\n "])),this.backup?(0,r.dy)(se||(se=Se(['
    \n ',"\n (",")
    \n ","\n
    "])),"full"===this.backup.type?this._localize("full_backup"):this._localize("partial_backup"),Math.ceil(10*this.backup.size)/10+" MB",this.hass?Z(new Date(this.backup.date),this.hass.locale):this.backup.date):(0,r.dy)(ce||(ce=Se(['\n ','\n
    \n
    \n \n ',"\n ","\n ","\n
    "])),this.backup&&this.backup.homeassistant?(0,r.dy)(de||(de=Se(["\n \n \n \n \n "])),(0,r.dy)(fe||(fe=Se(['\n \n \n
    ',"
    \n "])),(0,r.dy)(he||(he=Se(["\n "])),this._localize("folders"),Ze),this._toggleSection,t.checked,t.indeterminate,"folders",t.templates):"",null!=n&&n.templates.length?(0,r.dy)(me||(me=Se(["\n \n ',"
    \n "])),(0,r.dy)(ye||(ye=Se(["\n "])),this._localize("addons"),Le),this._toggleSection,n.checked,n.indeterminate,"addons",n.templates):""):"","partial"!==this.backupType||this.backup&&!this.backupHasPassword?"":(0,r.dy)(ve||(ve=Se(["
    "]))),this.backup?"":(0,r.dy)(be||(be=Se(['this.i;)t.dom.removeChild(t.elements.pop().dom)}}]),t}(),D=function(){function t(e,n){var r=this;l(this,t),this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var i=function(t){r.dom.addEventListener(t,(function(r){var i=e.visualLineAtHeight(r.clientY,e.contentDOM.getBoundingClientRect().top);n.domEventHandlers[t](e,i,r)&&r.preventDefault()}))};for(var o in n.domEventHandlers)i(o);this.markers=M(n.markers(e)),n.initialSpacer&&(this.spacer=new E(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return c(t,[{key:"update",value:function(t){var e=this.markers;if(this.markers=M(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])}var r=t.view.viewport;return!i.Xs.eq(this.markers,e,r.from,r.to)}}]),t}(),E=function(){function t(e,n,r,i){l(this,t),this.height=-1,this.above=0,this.dom=document.createElement("div"),this.update(e,n,r,i)}return c(t,[{key:"update",value:function(t,e,n,r){if(this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),this.markers!=r){this.markers=r;for(var i;i=this.dom.lastChild;)i.remove();var o,a="cm-gutterElement",u=s(r);try{for(u.s();!(o=u.n()).done;){var l=o.value;l.toDOM&&this.dom.appendChild(l.toDOM(t));var h=l.elementClass;h&&(a+=" "+h)}}catch(c){u.e(c)}finally{u.f()}this.dom.className=a}}}]),t}();var P=o.r$.define(),R=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}})}}),L=function(t){f(n,t);var e=v(n);function n(t){var r;return l(this,n),(r=e.call(this)).number=t,r}return c(n,[{key:"eq",value:function(t){return this.number==t.number}},{key:"toDOM",value:function(t){return document.createTextNode(this.number)}}]),n}(m);function B(t,e){return t.state.facet(R).formatNumber(e,t.state)}var N=w({class:"cm-lineNumbers",markers:function(t){return t.state.facet(P)},lineMarker:function(t,e,n){return n.some((function(t){return t.toDOM}))?null:new L(B(t,t.state.doc.lineAt(e.from).number))},initialSpacer:function(t){return new L(B(t,j(t.state.doc.lines)))},updateSpacer:function(t,e){var n=B(e.view,j(e.view.state.doc.lines));return n==t.number?t:new L(n)}});function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[R.of(t),N]}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1?e:m.get(e.base||e,e.modified.concat(t).sort((function(t,e){return t.id-e.id})))}}}]),t}(),g=0,m=function(){function t(){c(this,t),this.instances=[],this.id=g++}return d(t,null,[{key:"get",value:function(e,n){if(!n.length)return e;var r=n[0].instances.find((function(t){return t.base==e&&(r=n,i=t.modified,r.length==i.length&&r.every((function(t,e){return t==i[e]})));var r,i}));if(r)return r;var i,o=[],a=new p(o,e,n),s=l(n);try{for(s.s();!(i=s.n()).done;){i.value.instances.push(a)}}catch(m){s.e(m)}finally{s.f()}var u,h=y(n),c=l(e.set);try{for(c.s();!(u=c.n()).done;){var f,d=u.value,v=l(h);try{for(v.s();!(f=v.n()).done;){var g=f.value;o.push(t.get(d,g))}}catch(m){v.e(m)}finally{v.f()}}}catch(m){c.e(m)}finally{c.f()}return a}}]),t}();function y(t){for(var e=[t],n=0;n0&&c+3==a.length){u=1;break}var f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(h);if(!f)throw new RangeError("Invalid path: "+a);if(s.push("*"==f[0]?null:'"'==f[0][0]?JSON.parse(f[0]):f[0]),(c+=f[0].length)==a.length)break;var d=a[c++];if(c==a.length&&"!"==d){u=0;break}if("/"!=d)throw new RangeError("Invalid path: "+a);h=a.slice(c)}var v=s.length-1,p=s[v];if(!p)throw new RangeError("Invalid path: "+a);var g=new C(r,u,v>0?s.slice(0,v):null);e[p]=g.sort(e[p])}}}catch(m){o.e(m)}finally{o.f()}}return b.add(e)}var b=new r.md,w=a.r$.define({combine:function(t){return t.length?M.combinedMatch(t):null}}),x=a.r$.define({combine:function(t){return t.length?t[0].match:null}});function S(){return null}function A(t){return t.facet(w)||t.facet(x)||S}var C=function(){function t(e,n,r,i){c(this,t),this.tags=e,this.mode=n,this.context=r,this.next=i}return d(t,[{key:"sort",value:function(t){return!t||t.depth=n||v<=e)){D[h]=f.name,f.isTop&&(c=f);for(var p=u,g=f.prop(b),m=!1;g;){if(!g.context||P(g.context,D,h)){var y,k=l(g.tags);try{for(k.s();!(y=k.n()).done;){var w=y.value,x=r(w,c);x&&(p&&(p+=" "),p+=x,1==g.mode?u+=(u?" ":"")+x:0==g.mode&&(m=!0))}}catch(C){k.e(C)}finally{k.f()}break}g=g.next}if(p!=a&&(d>o&&a&&i(o,s.from,a),o=d,a=p),!m&&s.firstChild()){do{var S=s.to;if(t(u,h+1,c),a!=p){var A=Math.min(n,S);A>o&&a&&i(o,A,a),o=A,a=p}}while(s.nextSibling());s.parent()}}}("",0,t.type)}function P(t,e,n){if(t.length>n-1)return!1;for(var r=n-1,i=t.length-1;i>=0;i--,r--){var o=t[i];if(o&&o!=e[r])return!1}return!0}var R=p.define,L=R(),B=R(),N=R(B),I=R(),j=R(I),V=R(I),_=R(),W=R(_),z=R(),H=R(),q=R(),F=R(q),$=R(),U={comment:L,lineComment:R(L),blockComment:R(L),docComment:R(L),name:B,variableName:R(B),typeName:N,tagName:R(N),propertyName:R(B),className:R(B),labelName:R(B),namespace:R(B),macroName:R(B),literal:I,string:j,docString:R(j),character:R(j),number:V,integer:R(V),float:R(V),bool:R(I),regexp:R(I),escape:R(I),color:R(I),url:R(I),keyword:z,self:R(z),null:R(z),atom:R(z),unit:R(z),modifier:R(z),operatorKeyword:R(z),controlKeyword:R(z),definitionKeyword:R(z),operator:H,derefOperator:R(H),arithmeticOperator:R(H),logicOperator:R(H),bitwiseOperator:R(H),compareOperator:R(H),updateOperator:R(H),definitionOperator:R(H),typeOperator:R(H),controlOperator:R(H),punctuation:q,separator:R(q),bracket:F,angleBracket:R(F),squareBracket:R(F),paren:R(F),brace:R(F),content:_,heading:W,heading1:R(W),heading2:R(W),heading3:R(W),heading4:R(W),heading5:R(W),heading6:R(W),contentSeparator:R(_),list:R(_),quote:R(_),emphasis:R(_),strong:R(_),link:R(_),monospace:R(_),inserted:R(),deleted:R(),changed:R(),invalid:R(),meta:$,documentMeta:R($),annotation:R($),processingInstruction:R($),definition:p.defineModifier(),constant:p.defineModifier(),function:p.defineModifier(),standard:p.defineModifier(),local:p.defineModifier(),special:p.defineModifier()};M.define([{tag:U.link,textDecoration:"underline"},{tag:U.heading,textDecoration:"underline",fontWeight:"bold"},{tag:U.emphasis,fontStyle:"italic"},{tag:U.strong,fontWeight:"bold"},{tag:U.keyword,color:"#708"},{tag:[U.atom,U.bool,U.url,U.contentSeparator,U.labelName],color:"#219"},{tag:[U.literal,U.inserted],color:"#164"},{tag:[U.string,U.deleted],color:"#a11"},{tag:[U.regexp,U.escape,U.special(U.string)],color:"#e40"},{tag:U.definition(U.variableName),color:"#00f"},{tag:U.local(U.variableName),color:"#30a"},{tag:[U.typeName,U.namespace],color:"#085"},{tag:U.className,color:"#167"},{tag:[U.special(U.variableName),U.macroName],color:"#256"},{tag:U.definition(U.propertyName),color:"#00c"},{tag:U.comment,color:"#940"},{tag:U.meta,color:"#7a757a"},{tag:U.invalid,color:"#f00"}]),M.define([{tag:U.link,class:"cmt-link"},{tag:U.heading,class:"cmt-heading"},{tag:U.emphasis,class:"cmt-emphasis"},{tag:U.strong,class:"cmt-strong"},{tag:U.keyword,class:"cmt-keyword"},{tag:U.atom,class:"cmt-atom"},{tag:U.bool,class:"cmt-bool"},{tag:U.url,class:"cmt-url"},{tag:U.labelName,class:"cmt-labelName"},{tag:U.inserted,class:"cmt-inserted"},{tag:U.deleted,class:"cmt-deleted"},{tag:U.literal,class:"cmt-literal"},{tag:U.string,class:"cmt-string"},{tag:U.number,class:"cmt-number"},{tag:[U.regexp,U.escape,U.special(U.string)],class:"cmt-string2"},{tag:U.variableName,class:"cmt-variableName"},{tag:U.local(U.variableName),class:"cmt-variableName cmt-local"},{tag:U.definition(U.variableName),class:"cmt-variableName cmt-definition"},{tag:U.special(U.variableName),class:"cmt-variableName2"},{tag:U.typeName,class:"cmt-typeName"},{tag:U.namespace,class:"cmt-namespace"},{tag:U.macroName,class:"cmt-macroName"},{tag:U.propertyName,class:"cmt-propertyName"},{tag:U.operator,class:"cmt-operator"},{tag:U.comment,class:"cmt-comment"},{tag:U.meta,class:"cmt-meta"},{tag:U.invalid,class:"cmt-invalid"},{tag:U.punctuation,class:"cmt-punctuation"}])},62118:function(t,e,n){"use strict";n.d(e,{m8:function(){return p},f$:function(){return P}});var r=n(77885),i=n(19753);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};return[v,d.of(t),i.tk.domEventHandlers({beforeinput:function(t,e){return"historyUndo"==t.inputType?m(e):"historyRedo"==t.inputType&&y(e)}})]}function g(t,e){return function(n){var r=n.state,i=n.dispatch,o=r.field(v,!1);if(!o)return!1;var a=o.pop(t,r,e);return!!a&&(i(a),!0)}}var m=g(0,!1),y=g(1,!1),k=g(0,!0),b=g(1,!0);function w(t){return function(e){var n=e.field(v,!1);if(!n)return 0;var r=0==t?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}w(0),w(1);var x=function(){function t(e,n,r,i,o){s(this,t),this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}return l(t,[{key:"setSelAfter",value:function(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}},{key:"toJSON",value:function(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((function(t){return t.toJSON()}))}}}],[{key:"fromJSON",value:function(e){return new t(e.changes&&r.as.fromJSON(e.changes),[],e.mapped&&r.n0.fromJSON(e.mapped),e.startSelection&&r.jT.fromJSON(e.startSelection),e.selectionsAfter.map(r.jT.fromJSON))}},{key:"fromTransaction",value:function(e){var n,r=C,i=o(e.startState.facet(f));try{for(i.s();!(n=i.n()).done;){var a=(0,n.value)(e);a.length&&(r=r.concat(a))}}catch(s){i.e(s)}finally{i.f()}return!r.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),r,void 0,e.startState.selection,C)}},{key:"selection",value:function(e){return new t(void 0,C,void 0,void 0,e)}}]),t}();function S(t,e,n,r){var i=e+1>n+20?e-n-1:0,o=t.slice(i,e);return o.push(r),o}function A(t,e){return t.length?e.length?t.concat(e):t:e}var C=[];function M(t,e){if(t.length){var n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),S(t,t.length-1,1e9,n.setSelAfter(r)))}return[x.selection([e])]}function O(t){var e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function T(t,e){if(!t.length)return t;for(var n=t.length,r=C;n;){var i=D(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){var o=t.slice(0,n);return o[n-1]=i,o}e=i.mapped,n--,r=i.selectionsAfter}return r.length?[x.selection(r)]:C}function D(t,e,n){var i=A(t.selectionsAfter.length?t.selectionsAfter.map((function(t){return t.map(e)})):C,n);if(!t.changes)return x.selection(i);var o=t.changes.map(e),a=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(a):a;return new x(o,r.Py.mapEffects(t.effects,e),s,t.startSelection.map(a),i)}var E=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;s(this,t),this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}return l(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(e,n,r,i,o){var a=this.done,s=a[a.length-1];return new t(a=s&&s.changes&&n-this.prevTime=s&&i<=u&&(r=!0)}})),r}(s.changes,e.changes)?S(a,a.length-1,o,new x(e.changes.compose(s.changes),A(e.effects,s.effects),s.mapped,s.startSelection,C)):S(a,a.length,o,e),C,n,r)}},{key:"addSelection",value:function(e,n,r,i){var o,a,s=this.done.length?this.done[this.done.length-1].selectionsAfter:C;return s.length>0&&n-this.prevTime=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:[];p(this,t),this.data=e,this.topNode=r,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get:function(){return x(this)}}),this.parser=n,this.extension=[E.of(this),o.yy.languageData.of((function(t,e){return t.facet(w(t,e))}))].concat(i)}return m(t,[{key:"isActiveAt",value:function(t,e){return w(t,e)==this.data}},{key:"findRegions",value:function(t){var e=this,n=t.facet(E);if((null==n?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];var r=[];return x(t).iterate({enter:function(t,n,i){if(t.isTop&&t.prop(y)==e.data)return r.push({from:n,to:i}),!1}}),r}},{key:"allowsNesting",get:function(){return!0}},{key:"parseString",value:function(t){for(var e,n=i.xv.of(t.split("\n")),a=this.parser.startParse(new S(n),0,new A(this.parser,o.yy.create({doc:n}),[],r.mp.empty,{from:0,to:t.length},[],null));!(e=a.advance()););return e}}]),t}();function w(t,e){var n=t.facet(E);if(!n)return null;if(!n.allowsNesting)return n.data;for(var r=x(t).resolve(e,-1);r;){var i=r.type.prop(y);if(i)return i;r=r.parent}return n.data}b.setState=o.Py.define();function x(t){var e=t.field(b.state,!1);return e?e.tree:r.mp.empty}var S=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;p(this,t),this.doc=e,this.length=n,this.cursorPos=0,this.string="",this.prevString="",this.cursor=e.iter()}return m(t,[{key:"syncTo",value:function(t){return t=this.length)return-1;var e=this.cursorPos-this.string.length;if(t=this.cursorPos){if(t=e-this.prevString.length)return this.prevString.charCodeAt(t-(e-this.prevString.length));e=this.syncTo(t)}return this.string.charCodeAt(t-e)}},{key:"lineAfter",value:function(t){if(t>=this.length||t<0)return"";var e=this.cursorPos-this.string.length;return(t=this.cursorPos)&&(e=this.syncTo(t)),this.cursor.lineBreak?"":this.string.slice(t-e,Math.min(this.length-e,this.string.length))}},{key:"read",value:function(t,e){var n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}},{key:"clip",value:function(e){return new t(this.doc,e)}}]),t}(),A=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0;p(this,t),this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}return m(t,[{key:"work",value:function(t,e){if(this.tree!=r.mp.empty&&(null==e?this.tree.length==this.state.doc.length:this.tree.length>=e))return this.takeTree(),!0;this.parse||(this.parse=this.parser.startParse(new S(this.state.doc),0,this));for(var n=Date.now()+t;;){var i=this.parse.advance();if(i)return this.fragments=this.withoutTempSkipped(r.i9.addTree(i)),this.parse=null,this.tree=i,!0;if(null!=e&&this.parse.pos>=e)return this.takeTree(),!0;if(Date.now()>n)return!1}}},{key:"takeTree",value:function(){this.parse&&this.parse.pos>this.tree.length&&(this.tree=this.parse.forceFinish(),this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,!0)))}},{key:"withoutTempSkipped",value:function(t){for(var e;e=this.tempSkipped.pop();)t=C(t,e.from,e.to);return t}},{key:"changes",value:function(e,n){var i=this.fragments,o=this.tree,a=this.viewport,s=this.skipped;if(this.takeTree(),!e.empty){var l=[];if(e.iterChangedRanges((function(t,e,n,r){return l.push({fromA:t,toA:e,fromB:n,toB:r})})),i=r.i9.applyChanges(i,l),o=r.mp.empty,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];var h,c=u(this.skipped);try{for(c.s();!(h=c.n()).done;){var f=h.value,d=e.mapPos(f.from,1),v=e.mapPos(f.to,-1);dt.from&&(this.fragments=C(this.fragments,i,o),this.skipped.splice(n--,1))}return this.skipped.length=t}}],[{key:"getSkippingParser",value:function(t){return{startParse:function(e,n,i){return{pos:n,advance:function(){var o=i;return o.tempSkipped.push({from:n,to:e.length}),t&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,t]):t),this.pos=e.length,new r.mp(r.Jq.none,[],[],e.length-n)},forceFinish:function(){return this.advance()}}}}}}]),t}();function C(t,e,n){return r.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}A.skippingParser=A.getSkippingParser();var M=function(){function t(e){p(this,t),this.context=e,this.tree=e.tree}return m(t,[{key:"apply",value:function(e){if(!e.docChanged)return this;var n=this.context.changes(e.changes,e.state),r=this.context.tree.length==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.tree.length),n.viewport.to);return n.work(25,r)||n.takeTree(),new t(n)}}],[{key:"init",value:function(e){var n=new A(e.facet(E).parser,e,[],r.mp.empty,{from:0,to:e.doc.length},[],null);return n.work(25)||n.takeTree(),new t(n)}}]),t}();b.state=o.QQ.define({create:M.init,update:function(t,e){var n,r=u(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is(b.setState))return i.value}}catch(o){r.e(o)}finally{r.f()}return e.startState.facet(E)!=e.state.facet(E)?M.init(e.state):t.apply(e)}});var O="undefined"!=typeof window&&window.requestIdleCallback||function(t,e){var n=e.timeout;return setTimeout(t,n)},T="undefined"!=typeof window&&window.cancelIdleCallback||clearTimeout,D=a.lg.fromClass(function(){function t(e){p(this,t),this.view=e,this.working=-1,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return m(t,[{key:"update",value:function(t){var e=this.view.state.field(b.state).context;t.viewportChanged&&(e.updateViewport(t.view.viewport)&&e.reset(),this.view.viewport.to>e.tree.length&&this.scheduleWork()),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!(this.working>-1)){var e=this.view.state,n=e.field(b.state);!t&&n.tree.length>=e.doc.length||(this.working=O(this.work,{timeout:500}))}}},{key:"work",value:function(t){this.working=-1;var e=Date.now();if(this.chunkEnd=i+1e6)){var a=Math.min(this.chunkBudget,t?Math.max(25,t.timeRemaining()):100),s=o.context.work(a,i+1e6);this.chunkBudget-=Date.now()-e,(s||this.chunkBudget<=0||o.context.movedPast(i))&&(o.context.takeTree(),this.view.dispatch({effects:b.setState.of(new M(o.context))})),!s&&this.chunkBudget>0&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}}}},{key:"checkAsyncSchedule",value:function(t){var e=this;t.scheduleOn&&(t.scheduleOn.then((function(){return e.scheduleWork(!0)})),t.scheduleOn=null)}},{key:"destroy",value:function(){this.working>=0&&T(this.working)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),E=o.r$.define({combine:function(t){return t.length?t[0]:null},enables:[b.state,D]}),P=o.r$.define(),R=o.r$.define({combine:function(t){if(!t.length)return" ";if(!/^(?: +|\t+)$/.test(t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return t[0]}});function L(t){var e=t.facet(R);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function B(t,e){var n="",r=t.tabSize;if(9==t.facet(R).charCodeAt(0))for(;e>=r;)n+="\t",e-=r;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};p(this,t),this.state=e,this.options=n,this.unit=L(e)}return m(t,[{key:"textAfterPos",value:function(t){var e,n,r=null===(e=this.options)||void 0===e?void 0:e.simulateBreak;return t==r&&(null===(n=this.options)||void 0===n?void 0:n.simulateDoubleBreak)?"":this.state.sliceDoc(t,Math.min(t+100,null!=r&&r>t?r:1e9,this.state.doc.lineAt(t).to))}},{key:"column",value:function(t){var e,n=this.state.doc.lineAt(t),r=n.text.slice(0,t-n.from),i=this.countColumn(r,t-n.from),o=(null===(e=this.options)||void 0===e?void 0:e.overrideIndentation)?this.options.overrideIndentation(n.from):-1;return o>-1&&(i+=o-this.countColumn(r,r.search(/\S/))),i}},{key:"countColumn",value:function(t,e){return(0,i.IS)(e<0?t:t.slice(0,e),0,this.state.tabSize)}},{key:"lineIndent",value:function(t){var e,n=null===(e=this.options)||void 0===e?void 0:e.overrideIndentation;if(n){var r=n(t.from);if(r>-1)return r}return this.countColumn(t.text,t.text.search(/\S/))}}]),t}(),j=new r.md;function V(t){var e=t.type.prop(j);if(e)return e;var n,i=t.firstChild;if(i&&(n=i.type.prop(r.md.closedBy))){var o=t.lastChild,a=o&&n.indexOf(o.name)>-1;return function(t){return q(t,!0,1,void 0,a&&!function(t){var e,n;return t.pos==(null===(e=t.options)||void 0===e?void 0:e.simulateBreak)&&(null===(n=t.options)||void 0===n?void 0:n.simulateDoubleBreak)}(t)?o.from:void 0)}}return null==t.parent?W:null}function _(t,e,n){for(;t;t=t.parent){var r=V(t);if(r)return r(new z(n,e,t))}return null}function W(){return 0}var z=function(t){h(n,t);var e=f(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t.state,t.options)).base=t,o.pos=r,o.node=i,o}return m(n,[{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){for(var t=this.state.doc.lineAt(this.node.from);;){for(var e=this.node.resolve(t.from);e.parent&&e.parent.from==e.from;)e=e.parent;if(H(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t)}},{key:"continue",value:function(){var t=this.node.parent;return t?_(t,this.pos,this.base):0}}]),n}(I);function H(t,e){for(var n=e;n;n=n.parent)if(t==n)return!0;return!1}function q(t,e,n,r,i){var o=t.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==t.pos+a,u=e?function(t){var e,n=t.node,r=n.childAfter(n.from),i=n.lastChild;if(!r)return null;for(var o=null===(e=t.options)||void 0===e?void 0:e.simulateBreak,a=t.state.doc.lineAt(r.from),s=null==o||o<=a.from?a.to:Math.min(a.to,o),u=r.to;;){var l=n.childAfter(u);if(!l||l==i)return null;if(!l.type.isSkipped)return l.from!?|~^]/,o=/^[:\[\(\{]/,a=["true","false"],s=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function u(t,e){var n=t.peek();if(e.incomment)return t.skipTo("#}")?(t.eatWhile(/\#|}/),e.incomment=!1):t.skipToEnd(),"comment";if(e.intag){if(e.operator){if(e.operator=!1,t.match(a))return"atom";if(t.match(s))return"number"}if(e.sign){if(e.sign=!1,t.match(a))return"atom";if(t.match(s))return"number"}if(e.instring)return n==e.instring&&(e.instring=!1),t.next(),"string";if("'"==n||'"'==n)return e.instring=n,t.next(),"string";if(t.match(e.intag+"}")||t.eat("-")&&t.match(e.intag+"}"))return e.intag=!1,"tag";if(t.match(i))return e.operator=!0,"operator";if(t.match(o))e.sign=!0;else if(t.eat(" ")||t.sol()){if(t.match(r))return"keyword";if(t.match(a))return"atom";if(t.match(s))return"number";t.sol()&&t.next()}else t.next();return"variable"}if(t.eat("{")){if(t.eat("#"))return e.incomment=!0,t.skipTo("#}")?(t.eatWhile(/\#|}/),e.incomment=!1):t.skipToEnd(),"comment";if(n=t.eat(/\{|%/))return e.intag=n,"{"==n&&(e.intag="}"),t.eat("-"),"tag"}t.next()}r=new RegExp("(("+r.join(")|(")+"))\\b"),a=new RegExp("(("+a.join(")|(")+"))\\b");var l={startState:function(){return{tokenize:u}},token:function(t,e){return e.tokenize(t,e)},languageData:{commentTokens:{block:{open:"{#",close:"#}"}}}}},8987:function(t,e,n){"use strict";n.d(e,{r:function(){return i}});var r=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i"),i={token:function(t,e){var n=t.peek(),i=e.escaped;if(e.escaped=!1,"#"==n&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(e.literal&&t.indentation()>e.keyCol)return t.skipToEnd(),"string";if(e.literal&&(e.literal=!1),t.sol()){if(e.keyCol=0,e.pair=!1,e.pairStart=!1,t.match("---"))return"def";if(t.match("..."))return"def";if(t.match(/^\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==n?e.inlinePairs++:"}"==n?e.inlinePairs--:"["==n?e.inlineList++:e.inlineList--,"meta";if(e.inlineList>0&&!i&&","==n)return t.next(),"meta";if(e.inlinePairs>0&&!i&&","==n)return e.keyCol=0,e.pair=!1,e.pairStart=!1,t.next(),"meta";if(e.pairStart){if(t.match(/^\s*(\||\>)\s*/))return e.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(0==e.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(e.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(r))return"keyword"}return!e.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(e.pair=!0,e.keyCol=t.indentation(),"atom"):e.pair&&t.match(/^:\s*/)?(e.pairStart=!0,"meta"):(e.pairStart=!1,e.escaped="\\"==n,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}}},13764:function(t,e,n){"use strict";n.d(e,{Xs:function(){return d},f_:function(){return p},uU:function(){return l}});var r=n(77885);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:t;return new h(t,e,this)}}]),t}();l.prototype.startSide=l.prototype.endSide=0,l.prototype.point=!1,l.prototype.mapMode=r.gc.TrackDel;var h=function t(e,n,r){a(this,t),this.from=e,this.to=n,this.value=r};function c(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}var f=function(){function t(e,n,r,i){a(this,t),this.from=e,this.to=n,this.value=r,this.maxPoint=i}return u(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n?this.to:this.from,o=r,a=i.length;;){if(o==a)return o;var s=o+a>>1,u=i[s]-t||(n?this.value[s].endSide:this.value[s].startSide)-e;if(s==o)return u>=0?o:a;u>=0?a=s:o=s+1}}},{key:"between",value:function(t,e,n,r){for(var i=this.findIndex(e,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i(d=n.mapPos(c,l.endSide))||f==d&&l.startSide>0&&l.endSide<=0)continue;(d-f||l.endSide-l.startSide)<0||(a<0&&(a=f),l.point&&(s=Math.max(s,d-f)),r.push(l),i.push(f-a),o.push(d-a))}return{mapped:r.length?new t(i,o,r,s):null,pos:a}}}]),t}(),d=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.empty,i=arguments.length>3?arguments[3]:void 0;a(this,t),this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}return u(t,[{key:"length",get:function(){var t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var t,e=this.nextLayer.size,n=i(this.chunk);try{for(n.s();!(t=n.n()).done;){e+=t.value.value.length}}catch(r){n.e(r)}finally{n.f()}return e}},{key:"chunkEnd",value:function(t){return this.chunkPos[t]+this.chunk[t].length}},{key:"update",value:function(e){var n=e.add,r=void 0===n?[]:n,i=e.sort,o=void 0!==i&&i,a=e.filterFrom,s=void 0===a?0:a,u=e.filterTo,l=void 0===u?this.length:u,f=e.filter;if(0==r.length&&!f)return this;if(o&&r.slice().sort(c),this.isEmpty)return r.length?t.of(r):this;for(var d=new m(this,null,-1).goto(0),v=0,g=[],y=new p;d.value||v=0){var k=r[v++];y.addInner(k.from,k.to,k.value)||g.push(k)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||ld.to||l=i&&t<=i+o.length&&!1===o.between(i,t-i,e-i,n))return}this.nextLayer.between(t,e,n)}}},{key:"iter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return y.from([this]).goto(t)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"iter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return y.from(t).goto(e)}},{key:"compare",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=t.filter((function(t){return t.maxPoint>=500||!t.isEmpty&&e.indexOf(t)<0&&t.maxPoint>=i})),a=e.filter((function(e){return e.maxPoint>=500||!e.isEmpty&&t.indexOf(e)<0&&e.maxPoint>=i})),s=g(o,a),u=new b(o,s,i),l=new b(a,s,i);n.iterGaps((function(t,e,n){return w(u,t,l,e,n,r)})),n.empty&&0==n.length&&w(u,0,l,0,0,r)}},{key:"eq",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=1e9);var i=t.filter((function(t){return!t.isEmpty&&e.indexOf(t)<0})),o=e.filter((function(e){return!e.isEmpty&&t.indexOf(e)<0}));if(i.length!=o.length)return!1;if(!i.length)return!0;for(var a=g(i,o),s=new b(i,a,0).goto(n),u=new b(o,a,0).goto(n);;){if(s.to!=u.to||!x(s.active,u.active)||s.point&&(!u.point||!s.point.eq(u.point)))return!1;if(s.to>=r)return!0;s.next(),u.next()}}},{key:"spans",value:function(t,e,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=new b(t,null,i).goto(e),a=e,s=o.openStart;;){var u=Math.min(o.to,n);if(o.point?(r.point(a,u,o.point,o.activeForPoint(o.to),s),s=o.openEnd(u)+(o.to>u?1:0)):u>a&&(r.span(a,u,o.active,s),s=o.openEnd(u)),o.to>n)break;a=o.to,o.next()}return s}},{key:"of",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new p,o=i(t instanceof h?[t]:n?v(t):t);try{for(o.s();!(e=o.n()).done;){var a=e.value;r.add(a.from,a.to,a.value)}}catch(s){o.e(s)}finally{o.f()}return r.finish()}}]),t}();function v(t){if(t.length>1)for(var e=t[0],n=1;n0)return t.slice().sort(c);e=r}return t}d.empty=new d([],[],null,-1),d.empty.nextLayer=d.empty;var p=function(){function t(){a(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return u(t,[{key:"finishChunk",value:function(t){this.chunks.push(new f(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new t)).add(e,n,r)}},{key:"addInner",value:function(t,e,n){var r=t-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(t-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}},{key:"addChunk",value:function(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);var n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}},{key:"finish",value:function(){return this.finishInner(d.empty)}},{key:"finishInner",value:function(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;var e=new d(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}]),t}();function g(t,e){var n,r=new Map,o=i(t);try{for(o.s();!(n=o.n()).done;)for(var a=n.value,s=0;s3&&void 0!==arguments[3]?arguments[3]:0;a(this,t),this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}return u(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}},{key:"gotoInner",value:function(t,e,n){for(;this.chunkIndex=this.minPoint)break}}},{key:"nextChunk",value:function(){this.chunkIndex++,this.rangeIndex=0,this.next()}},{key:"compare",value:function(t){return this.from-t.from||this.startSide-t.startSide||this.to-t.to||this.endSide-t.endSide}}]),t}(),y=function(){function t(e){a(this,t),this.heap=e}return u(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"goto",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9,r=i(this.heap);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.goto(t,n)}}catch(s){r.e(s)}finally{r.f()}for(var a=this.heap.length>>1;a>=0;a--)k(this.heap,a);return this.next(),this}},{key:"forward",value:function(t,e){var n,r=i(this.heap);try{for(r.s();!(n=r.n()).done;){n.value.forward(t,e)}}catch(a){r.e(a)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)k(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(),k(this.heap,0)}}}],[{key:"from",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],o=0;o=r&&i.push(new m(a,n,r,o));return 1==i.length?i[0]:new t(i)}}]),t}();function k(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 b=function(){function t(e,n,r){a(this,t),this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=y.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=C(this.active,this.activeTo)}},{key:"addActive",value:function(t){for(var e=0,n=this.cursor,r=n.value,i=n.to,o=n.rank;e-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&S(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.fromt&&this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}if(n){for(var a=0;a=0&&!(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>this.point.endSide)&&e.push(this.active[n]);return e.reverse()}},{key:"openEnd",value:function(t){for(var e=0,n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}]),t}();function w(t,e,n,r,i,o){t.goto(e),n.goto(r);for(var a=r+i,s=r,u=r-e;;){var l=t.to+u-n.to||t.endSide-n.endSide,h=l<0?t.to+u:n.to,c=Math.min(h,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))||o.comparePoint(s,c,t.point,n.point):c>s&&!x(t.active,n.active)&&o.compareRange(s,c,t.active,n.active),h>a)break;s=h,l<=0&&t.next(),l>=0&&n.next()}}function x(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 C(t,e){for(var n=-1,r=1e9,i=0;ia?-1:i==r.length?function(t,e){var n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):(0,o.IS)(r.text.slice(0,n-r.from),0,t.state.tabSize);return{line:r.number,col:s,off:i}}function u(t,e){var n=s(t,e),i=t.state.selection;return n?{update:function(t){if(t.docChanged){var e=t.changes.mapPos(t.startState.doc.line(n.line).from),r=t.state.doc.lineAt(e);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(t.changes)}},get:function(e,u,l){var h=s(t,e);if(!h)return i;var c=function(t,e,n){var i=Math.min(e.line,n.line),s=Math.max(e.line,n.line),u=[];if(e.off>a||n.off>a||e.col<0||n.col<0)for(var l=Math.min(e.off,n.off),h=Math.max(e.off,n.off),c=i;c<=s;c++){var f=t.doc.line(c);f.length<=h&&u.push(r.jT.range(f.from+l,f.to+h))}else for(var d=Math.min(e.col,n.col),v=Math.max(e.col,n.col),p=i;p<=s;p++){var g=t.doc.line(p),m=g.length>a?g.text.slice(0,2*v):g.text,y=(0,o.Gz)(m,0,d,t.tabSize),k=(0,o.Gz)(m,0,v,t.tabSize);y.leftOver||u.push(r.jT.range(g.from+y.offset,g.from+k.offset))}return u}(t.state,n,h);return c.length?l?r.jT.create(c.concat(i.ranges)):r.jT.create(c):i}}:null}function l(t){var e=(null==t?void 0:t.eventFilter)||function(t){return t.altKey&&0==t.button};return i.tk.mouseSelectionStyle.of((function(t,n){return e(n)?u(t,n):null}))}},72360:function(t,e,n){"use strict";n.d(e,{sW:function(){return K},Lp:function(){return wt}});var r=n(19753),i=n(77885);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1?n.panels[r]:null}var f=r.lg.fromClass(function(){function t(e){o(this,t),this.input=e.state.facet(g),this.specs=this.input.filter((function(t){return t})),this.panels=this.specs.map((function(t){return t(e)}));var n=e.state.facet(h);this.top=new d(e,!0,n.topContainer),this.bottom=new d(e,!1,n.bottomContainer),this.top.sync(this.panels.filter((function(t){return t.top}))),this.bottom.sync(this.panels.filter((function(t){return!t.top})));var r,i=u(this.panels);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.dom.classList.add("cm-panel"),a.class&&a.dom.classList.add(a.class),a.mount&&a.mount()}}catch(s){i.e(s)}finally{i.f()}}return s(t,[{key:"update",value:function(t){var e=t.state.facet(h);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new d(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new d(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var n=t.state.facet(g);if(n!=this.input){var r,i=n.filter((function(t){return t})),o=[],a=[],s=[],l=[],c=u(i);try{for(c.s();!(r=c.n()).done;){var f=r.value,v=this.specs.indexOf(f),p=void 0;v<0?(p=f(t.view),l.push(p)):(p=this.panels[v]).update&&p.update(t),o.push(p),(p.top?a:s).push(p)}}catch(S){c.e(S)}finally{c.f()}this.specs=i,this.panels=o,this.top.sync(a),this.bottom.sync(s);for(var m=0,y=l;m=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||E(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){if(t){if("string"==typeof t)return P(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)?P(t,e):void 0}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,o=arguments.length>4?arguments[4]:void 0;R(this,t),this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=o?function(t){return o(N(t))}:N,this.query=this.normalize(n)}return B(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,w.gm)(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var t=this.peek();if(t<0)return this.done=!0,this;var e=(0,w.bg)(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,w.nZ)(t);for(var r=this.normalize(e),i=0,o=n;;i++){var a=r.charCodeAt(i),s=this.match(a,o);if(s)return this.value=s,this;if(i==r.length-1)break;o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(R(this,t),this.to=o,this.curLine="",this.done=!1,this.value=j,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new H(e,n,r,i,o);this.re=new RegExp(n,V+((null==r?void 0:r.ignoreCase)?"i":"")),this.iter=e.iter();var a=e.lineAt(i);this.curLineStart=a.from,this.matchPos=i,this.getLine(this.curLineStart)}return B(t,[{key:"getLine",value:function(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var n=this.curLineStart+e.index,r=n+e[0].length;if(this.matchPos=r+(n==r?1:0),n==this.curLine.length&&this.nextLine(),nthis.value.to)return this.value={from:n,to:r,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=r||i.to<=n){var o=new t(n,e.sliceString(n,r));return W.set(e,o),o}if(i.from==n&&i.to==r)return i;var a=i.text,s=i.from;return s>n&&(a=e.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}},{key:"next",value:function(){for(;;){var t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e&&this.flat.tothis.flat.text.length-10&&(e=null),e){var n=this.flat.from+e.index,r=n+e[0].length;return this.value={from:n,to:r,match:e},this.matchPos=r+(n==r?1:0),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=z.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function q(t){var e=k("input",{class:"cm-textfield",name:"line"});function n(){var n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(n){var r=t.state,o=r.doc.lineAt(r.selection.main.head),a=D(n,5),s=a[1],u=a[2],l=a[3],h=a[4],c=l?+l.slice(1):0,f=u?+u:o.number;if(u&&h){var d=f/100;s&&(d=d*("-"==s?-1:1)+o.number/r.doc.lines),f=Math.round(r.doc.lines*d)}else u&&s&&(f=f*("-"==s?-1:1)+o.number);var v=r.doc.line(Math.max(1,Math.min(r.doc.lines,f)));t.dispatch({effects:F.of(!1),selection:i.jT.cursor(v.from+Math.max(0,Math.min(c,v.length))),scrollIntoView:!0}),t.focus()}}return{dom:k("form",{class:"cm-gotoLine",onkeydown:function(e){27==e.keyCode?(e.preventDefault(),t.dispatch({effects:F.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),n())},onsubmit:function(t){t.preventDefault(),n()}},k("label",t.state.phrase("Go to line"),": ",e)," ",k("button",{class:"cm-button",type:"submit"},t.state.phrase("go"))),pos:-10}}var F=i.Py.define(),$=i.QQ.define({create:function(){return!0},update:function(t,e){var n,r=T(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(F)&&(t=i.value)}}catch(o){r.e(o)}finally{r.f()}return t},provide:function(t){return g.from(t,(function(t){return t?q:null}))}}),U=r.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),G={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100},J=i.r$.define({combine:function(t){return(0,i.BO)(t,G,{highlightWordAroundCursor:function(t,e){return t||e},minSelectionLength:Math.min,maxMatches:Math.min})}});function K(t){var e=[Z,Q];return t&&e.push(J.of(t)),e}var Y=r.p.mark({class:"cm-selectionMatch"}),X=r.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"}),Q=r.lg.fromClass(function(){function t(e){R(this,t),this.decorations=this.getDeco(e)}return B(t,[{key:"update",value:function(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var e=t.state.facet(J),n=t.state,o=n.selection;if(o.ranges.length>1)return r.p.none;var a,s=o.main,u=null;if(s.empty){if(!e.highlightWordAroundCursor)return r.p.none;var l=n.wordAt(s.head);if(!l)return r.p.none;u=n.charCategorizer(s.head),a=n.sliceDoc(l.from,l.to)}else{var h=s.to-s.from;if(h200)return r.p.none;if(!(a=n.sliceDoc(s.from,s.to).trim()))return r.p.none}var c,f=[],d=T(t.visibleRanges);try{for(d.s();!(c=d.n()).done;)for(var v=c.value,p=new I(n.doc,a,v.from,v.to);!p.nextOverlapping().done;){var g=p.value,m=g.from,y=g.to;if((!u||(0==m||u(n.sliceDoc(m-1,m))!=i.D0.Word)&&(y==n.doc.length||u(n.sliceDoc(y,y+1))!=i.D0.Word))&&(u&&m<=s.from&&y>=s.to?f.push(X.range(m,y)):(m>=s.to||y<=s.from)&&f.push(Y.range(m,y)),f.length>e.maxMatches))return r.p.none}}catch(k){d.e(k)}finally{d.f()}return r.p.set(f)}}]),t}(),{decorations:function(t){return t.decorations}}),Z=r.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});var tt=i.r$.define({combine:function(t){return{top:t.some((function(t){return t.top}))}}});var et=function(){function t(e,n,r){R(this,t),this.search=e,this.replace=n,this.caseInsensitive=r}return B(t,[{key:"eq",value:function(t){return this.search==t.search&&this.replace==t.replace&&this.caseInsensitive==t.caseInsensitive&&this.constructor==t.constructor}}]),t}(),nt=function(t){S(n,t);var e=C(n);function n(t,r,i){var o;return R(this,n),(o=e.call(this,t,r,i)).unquoted=t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"})),o}return B(n,[{key:"cursor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;return new I(t,this.unquoted,e,n,this.caseInsensitive?function(t){return t.toLowerCase()}:void 0)}},{key:"nextMatch",value:function(t,e,n){var r=this.cursor(t,n).nextOverlapping();return r.done&&(r=this.cursor(t,0,e).nextOverlapping()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(t,e,n){for(var r=n;;){for(var i=Math.max(e,r-1e4-this.unquoted.length),o=this.cursor(t,i,r),a=null;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(i==e)return null;r-=1e4}}},{key:"prevMatch",value:function(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.length)}},{key:"getReplacement",value:function(t){return this.replace}},{key:"matchAll",value:function(t,e){for(var n=this.cursor(t),r=[];!n.next().done;){if(r.length>=e)return null;r.push(n.value)}return r}},{key:"highlight",value:function(t,e,n,r){for(var i=this.cursor(t,Math.max(0,e-this.unquoted.length),Math.min(n+this.unquoted.length,t.length));!i.next().done;)r(i.value.from,i.value.to)}},{key:"valid",get:function(){return!!this.search}}]),n}(et),rt=function(t){S(n,t);var e=C(n);function n(t,r,i){var o;return R(this,n),(o=e.call(this,t,r,i)).valid=!!t&&function(t){try{return new RegExp(t,V),!0}catch(e){return!1}}(t),o}return B(n,[{key:"cursor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;return new _(t,this.search,this.caseInsensitive?{ignoreCase:!0}:void 0,e,n)}},{key:"nextMatch",value:function(t,e,n){var r=this.cursor(t,n).next();return r.done&&(r=this.cursor(t,0,e).next()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(t,e,n){for(var r=1;;r++){for(var i=Math.max(e,n-1e4*r),o=this.cursor(t,i,n),a=null;!o.next().done;)a=o.value;if(a&&(i==e||a.from>i+10))return a;if(i==e)return null}}},{key:"prevMatch",value:function(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.length)}},{key:"getReplacement",value:function(t){return this.replace.replace(/\$([$&\d+])/g,(function(e,n){return"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;r.push(n.value)}return r}},{key:"highlight",value:function(t,e,n,r){for(var i=this.cursor(t,Math.max(0,e-250),Math.min(n+250,t.length));!i.next().done;)r(i.value.from,i.value.to)}}]),n}(et),it=i.Py.define(),ot=i.Py.define(),at=i.QQ.define({create:function(t){return new st(yt(t),mt)},update:function(t,e){var n,r=T(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(it)?t=new st(i.value,t.panel):i.is(ot)&&(t=new st(t.query,i.value?mt:null))}}catch(o){r.e(o)}finally{r.f()}return t},provide:function(t){return g.from(t,(function(t){return t.panel}))}}),st=function t(e,n){R(this,t),this.query=e,this.panel=n},ut=r.p.mark({class:"cm-searchMatch"}),lt=r.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),ht=r.lg.fromClass(function(){function t(e){R(this,t),this.view=e,this.decorations=this.highlight(e.state.field(at))}return B(t,[{key:"update",value:function(t){var e=t.state.field(at);(e!=t.startState.field(at)||t.docChanged||t.selectionSet)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(t){var e=t.query;if(!t.panel||!e.valid)return r.p.none;for(var n=this.view,i=new m.f_,o=0,a=n.visibleRanges,s=a.length;oa[o+1].from-500;)h=a[++o].to;e.highlight(n.state.doc,l,h,(function(t,e){var r=n.state.selection.ranges.some((function(n){return n.from==t&&n.to==e}));i.add(t,e,r?lt:ut)}))}return i.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function ct(t){return function(e){var n=e.state.field(at,!1);return n&&n.query.valid?t(e,n):kt(e)}}var ft=ct((function(t,e){var n=e.query,r=t.state.selection.main,i=r.from,o=r.to,a=n.nextMatch(t.state.doc,i,o);return!(!a||a.from==i&&a.to==o)&&(t.dispatch({selection:{anchor:a.from,head:a.to},scrollIntoView:!0,effects:At(t,a)}),!0)})),dt=ct((function(t,e){var n=e.query,r=t.state,i=r.selection.main,o=i.from,a=i.to,s=n.prevMatch(r.doc,o,a);return!!s&&(t.dispatch({selection:{anchor:s.from,head:s.to},scrollIntoView:!0,effects:At(t,s)}),!0)})),vt=ct((function(t,e){var n=e.query.matchAll(t.state.doc,1e3);return!(!n||!n.length)&&(t.dispatch({selection:i.jT.create(n.map((function(t){return i.jT.range(t.from,t.to)})))}),!0)})),pt=ct((function(t,e){var n=e.query,r=t.state,i=r.selection.main,o=i.from,a=i.to,s=n.nextMatch(r.doc,o,o);if(!s)return!1;var u,l,h=[];if(s.from==o&&s.to==a&&(l=r.toText(n.getReplacement(s)),h.push({from:s.from,to:s.to,insert:l}),s=n.nextMatch(r.doc,s.from,s.to)),s){var c=0==h.length||h[0].from>=s.to?0:s.to-s.from-l.length;u={anchor:s.from-c,head:s.to-c}}return t.dispatch({changes:h,selection:u,scrollIntoView:!!u,effects:s?At(t,s):void 0}),!0})),gt=ct((function(t,e){var n=e.query,r=n.matchAll(t.state.doc,1e9).map((function(t){return{from:t.from,to:t.to,insert:n.getReplacement(t)}}));return!!r.length&&(t.dispatch({changes:r}),!0)}));function mt(t){var e=t.state.field(at).query;return{dom:xt({view:t,query:e,updateQuery:function(n){e.eq(n)||(e=n,t.dispatch({effects:it.of(e)}))}}),mount:function(){this.dom.querySelector("[name=search]").select()},pos:80,top:t.state.facet(tt).top}}function yt(t,e){var n=t.selection.main,r=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);return e&&!r?e:new nt(r.replace(/\n/g,"\\n"),"",(null==e?void 0:e.caseInsensitive)||!1)}var kt=function(t){var e=t.state.field(at,!1);if(e&&e.panel){var n=c(t,mt);if(!n)return!1;n.dom.querySelector("[name=search]").focus()}else t.dispatch({effects:[ot.of(!0),e?it.of(yt(t.state,e.query)):i.Py.appendConfig.of(Mt)]});return!0},bt=function(t){var e=t.state.field(at,!1);if(!e||!e.panel)return!1;var n=c(t,mt);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:ot.of(!1)}),!0},wt=[{key:"Mod-f",run:kt,scope:"editor search-panel"},{key:"F3",run:ft,shift:dt,scope:"editor search-panel"},{key:"Mod-g",run:ft,shift:dt,scope:"editor search-panel"},{key:"Escape",run:bt,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var e=t.state,n=t.dispatch,r=e.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var o=r.main,a=o.from,s=o.to,u=[],l=0,h=new I(e.doc,e.sliceDoc(a,s));!h.next().done;){if(u.length>1e3)return!1;h.value.from==a&&(l=u.length),u.push(i.jT.range(h.value.from,h.value.to))}return n(e.update({selection:i.jT.create(u,l)})),!0}},{key:"Alt-g",run:function(t){var e=c(t,q);if(!e){var n=[F.of(!0)];null==t.state.field($,!1)&&n.push(i.Py.appendConfig.of([$,U])),t.dispatch({effects:n}),e=c(t,q)}return e&&e.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var e=t.state,n=t.dispatch,r=e.selection.ranges;if(r.some((function(t){return t.from===t.to})))return function(t){var e=t.state,n=t.dispatch,r=e.selection,o=i.jT.create(r.ranges.map((function(t){return e.wordAt(t.head)||i.jT.cursor(t.head)})),r.mainIndex);return!o.eq(r)&&(n(e.update({selection:o})),!0)}({state:e,dispatch:n});var o=e.sliceDoc(r[0].from,r[0].to);if(e.selection.ranges.some((function(t){return e.sliceDoc(t.from,t.to)!=o})))return!1;var a=function(t,e){var n=t.selection.ranges,r=new I(t.doc,e,n[n.length-1].to).next();if(!r.done)return r.value;for(var i=new I(t.doc,e,0,Math.max(0,n[n.length-1].from-1));!i.next().done;)if(!n.some((function(t){return t.from===i.value.from})))return i.value;return null}(e,o);return!!a&&(n(e.update({selection:e.selection.addRange(i.jT.range(a.from,a.to)),scrollIntoView:!0})),!0)}}];function xt(t){function e(e){return t.view.state.phrase(e)}var n=k("input",{value:t.query.search,placeholder:e("Find"),"aria-label":e("Find"),class:"cm-textfield",name:"search",onchange:s,onkeyup:s}),i=k("input",{value:t.query.replace,placeholder:e("Replace"),"aria-label":e("Replace"),class:"cm-textfield",name:"replace",onchange:s,onkeyup:s}),o=k("input",{type:"checkbox",name:"case",checked:!t.query.caseInsensitive,onchange:s}),a=k("input",{type:"checkbox",name:"re",checked:t.query instanceof rt,onchange:s});function s(){t.updateQuery(new(a.checked?rt:nt)(n.value,i.value,!o.checked))}function u(t,e,n){return k("button",{class:"cm-button",name:t,onclick:e},n)}return k("div",{onkeydown:function(e){(0,r.$1)(t.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==n?(e.preventDefault(),(e.shiftKey?dt:ft)(t.view)):13==e.keyCode&&e.target==i&&(e.preventDefault(),pt(t.view))},class:"cm-search"},[n,u("next",(function(){return ft(t.view)}),[e("next")]),u("prev",(function(){return dt(t.view)}),[e("previous")]),u("select",(function(){return vt(t.view)}),[e("all")]),k("label",null,[o,e("match case")]),k("label",null,[a,e("regexp")]),k("br"),i,u("replace",(function(){return pt(t.view)}),[e("replace")]),u("replaceAll",(function(){return gt(t.view)}),[e("replace all")]),k("button",{name:"close",onclick:function(){return bt(t.view)},"aria-label":e("close")},["×"])])}var St=/[\s\.,:;?!]/;function At(t,e){var n=e.from,i=e.to,o=t.state.doc.lineAt(n).from,a=t.state.doc.lineAt(i).to,s=Math.max(o,n-30),u=Math.min(a,i+30),l=t.state.sliceDoc(s,u);if(s!=o)for(var h=0;h<30;h++)if(!St.test(l[h+1])&&St.test(l[h])){l=l.slice(h);break}if(u!=a)for(var c=l.length-1;c>l.length-30;c--)if(!St.test(l[c-1])&&St.test(l[c])){l=l.slice(0,c);break}return r.tk.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(t.state.doc.lineAt(n).number))}var Ct=r.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Mt=[at,i.Wl.override(ht),Ct]},77885:function(t,e,n){"use strict";n.d(e,{q6:function(){return Q},n0:function(){return g},as:function(){return m},D0:function(){return ht},F6:function(){return z},jT:function(){return C},yy:function(){return dt},r$:function(){return D},gc:function(){return p},Wl:function(){return _},Py:function(){return et},QQ:function(){return B},YW:function(){return nt},BO:function(){return vt}});var r=n(23414);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]&&arguments[1];b(this,t,e)}},{key:"invertedDesc",get:function(){for(var e=[],n=0;n1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:w(this,t,e)}},{key:"mapPos",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Simple,r=0,i=0,o=0;ot)return i+(t-r);i+=a}else{if(n!=p.Simple&&u>=t&&(n==p.TrackDel&&rt||n==p.TrackBefore&&rt))return null;if(u>t||u==t&&e<0&&!a)return t==r||e<0?i:i+s;i+=s}r=u}if(t>r)throw new RangeError("Position ".concat(t," is out of range for changeset of length ").concat(r));return i}},{key:"touchesRange",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=0,r=0;n=0&&r<=e&&a>=t)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var t="",e=0;e=0?":"+r:"")}return t}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(e){if(!Array.isArray(e)||e.length%2||e.some((function(t){return"number"!=typeof t})))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}}]),t}(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t);var e=u(n);function n(t,r){var i;return c(this,n),(i=e.call(this,t)).inserted=r,i}return d(n,[{key:"apply",value:function(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return b(this,(function(e,n,r,i,o){return t=t.replace(r,r+(n-e),o)}),!1),t}},{key:"mapDesc",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return w(this,t,e,!0)}},{key:"invert",value:function(t){for(var e=this.sections.slice(),i=[],o=0,a=0;o=0){e[o]=u,e[o+1]=s;for(var l=o>>1;i.length1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:w(this,t,e,!0)}},{key:"iterChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(this,t,e)}},{key:"desc",get:function(){return new g(this.sections)}},{key:"filter",value:function(t){var e=[],r=[],i=[],o=new S(this);t:for(var a=0,s=0;;){for(var u=a==t.length?1e9:t[a++];s0&&k(r,e,o.text),o.forward(l),s+=l}for(var c=t[a++];s>1].toJSON()))}return t}}],[{key:"of",value:function(t,e,i){var a=[],s=[],u=0,l=null;function h(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t||a.length){um||p<0||m>e)throw new RangeError("Invalid change range ".concat(p," to ").concat(m," (in doc of length ").concat(e,")"));var w=b?"string"==typeof b?r.xv.of(b.split(i||v)):b:r.xv.empty,x=w.length;if(p==m&&0==x)return;pu&&y(a,p-u,-1),y(a,m-p,x),k(s,a,w),u=m}}(t),h(!l),l}},{key:"empty",value:function(t){return new n(t?[t,-1]:[],[])}},{key:"fromJSON",value:function(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");for(var e=[],i=[],o=0;o3&&void 0!==arguments[3]&&arguments[3];if(!(0==e&&n<=0)){var i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:0==e&&0==t[i]?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}}function k(t,e,n){if(0!=n.length){var i=e.length-2>>1;if(i>1])),!(n||s==t.sections.length||t.sections[s+1]<0);)u=t.sections[s++],l=t.sections[s++];e(o,h,a,c,f),o=h,a=c}}}function w(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=[],o=r?[]:null,a=new S(t),s=new S(e),u=0,l=0;;)if(-1==a.ins)u+=a.len,a.next();else if(-1==s.ins&&l=0&&(a.done||ll&&!a.done&&u+a.len=0)){if(a.done&&s.done)return o?new m(i,o):new g(i);throw new Error("Mismatched change set lengths")}for(var c=0,f=u+a.len;;)if(s.ins>=0&&l>u&&l+s.len2&&void 0!==arguments[2]&&arguments[2],r=[],i=n?[]:null,o=new S(t),a=new S(e),s=!1;;){if(o.done&&a.done)return i?new m(r,i):new g(r);if(0==o.ins)y(r,o.len,0,s),o.next();else if(0!=a.len||a.done){if(o.done||a.done)throw new Error("Mismatched change set lengths");var u=Math.min(o.len2,a.len),l=r.length;if(-1==o.ins){var h=-1==a.ins?-1:a.off?0:a.ins;y(r,u,h,s),i&&h&&k(i,r,a.text)}else-1==a.ins?(y(r,o.off?0:o.len,u,s),i&&k(i,r,o.textBit(u))):(y(r,o.off?0:o.len,a.off?0:a.ins,s),i&&!a.off&&k(i,r,a.text));s=(o.ins>u||a.ins>=0&&a.len>u)&&(s||r.length>l),o.forward2(u),a.forward(u)}else y(r,0,a.ins,s),i&&k(i,r,a.text),a.next()}}var S=function(){function t(e){c(this,t),this.set=e,this.i=0,this.next()}return d(t,[{key:"next",value:function(){var t=this.set.sections;this.i>1;return e>=t.length?r.xv.empty:t[e]}},{key:"textBit",value:function(t){var e=this.set.inserted,n=this.i-2>>1;return n>=e.length&&!t?r.xv.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}},{key:"forward",value:function(t){t==this.len?this.next():(this.len-=t,this.off+=t)}},{key:"forward2",value:function(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}]),t}(),A=function(){function t(e,n,r){c(this,t),this.from=e,this.to=n,this.flags=r}return d(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var t=3&this.flags;return 3==t?null:t}},{key:"goalColumn",get:function(){var t=this.flags>>5;return 33554431==t?void 0:t}},{key:"map",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=e.mapPos(this.from,n),i=e.mapPos(this.to,n);return r==this.from&&i==this.to?this:new t(r,i,this.flags)}},{key:"extend",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(t<=this.anchor&&e>=this.anchor)return C.range(t,e);var n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return C.range(this.anchor,n)}},{key:"eq",value:function(t){return this.anchor==t.anchor&&this.head==t.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return C.range(t.anchor,t.head)}}]),t}(),C=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,t),this.ranges=e,this.mainIndex=n}return d(t,[{key:"map",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.empty?this:t.create(this.ranges.map((function(t){return t.map(e,n)})),this.mainIndex)}},{key:"eq",value:function(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([e].concat(this.ranges),n?0:this.mainIndex+1)}},{key:"replaceRange",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,r=this.ranges.slice();return r[n]=e,t.create(r,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map((function(t){return t.toJSON()})),main:this.mainIndex}}}],[{key:"fromJSON",value:function(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map((function(t){return A.fromJSON(t)})),e.main)}},{key:"single",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new t([t.range(e,n)],0)}},{key:"create",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==e.length)throw new RangeError("A selection needs at least one range");for(var r=0,i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return new A(t,t,(0==e?0:e<0?4:8)|(null==n?3:Math.min(2,n))|(null!=r?r:33554431)<<5)}},{key:"range",value:function(t,e,n){var r=(null!=n?n:33554431)<<5;return e1&&void 0!==arguments[1]?arguments[1]:0,n=t[e];t.sort((function(t,e){return t.from-e.from})),e=t.indexOf(n);for(var r=1;ri.head?C.range(s,a):C.range(a,s))}}return new C(t,e)}function O(t,e){var n,r=o(t.ranges);try{for(r.s();!(n=r.n()).done;){if(n.value.to>e)throw new RangeError("Selection points outside of document")}}catch(i){r.e(i)}finally{r.f()}}var T=0,D=function(){function t(e,n,r,i,o){c(this,t),this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.extensions=o,this.id=T++,this.default=e([])}return d(t,[{key:"of",value:function(t){return new P([],this,0,t)}},{key:"compute",value:function(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new P(t,this,1,e)}},{key:"computeN",value:function(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new P(t,this,2,e)}},{key:"from",value:function(t,e){return e||(e=function(t){return t}),this.compute([t],(function(n){return e(n.field(t))}))}}],[{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(e.combine||function(t){return t},e.compareInput||function(t,e){return t===e},e.compare||(e.combine?function(t,e){return t===e}:E),!!e.static,e.enables)}}]),t}();function E(t,e){return t==e||t.length==e.length&&t.every((function(t,n){return t===e[n]}))}var P=function(){function t(e,n,r,i){c(this,t),this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=T++}return d(t,[{key:"dynamicSlot",value:function(t){var e,n,r=this.value,i=this.facet.compareInput,a=t[this.id]>>1,s=2==this.type,u=!1,l=!1,h=[],c=o(this.dependencies);try{for(c.s();!(n=c.n()).done;){var f=n.value;"doc"==f?u=!0:"selection"==f?l=!0:0==(1&(null!==(e=t[f.id])&&void 0!==e?e:1))&&h.push(t[f.id])}}catch(d){c.e(d)}finally{c.f()}return function(t,e){if(!e||e.reconfigured)return t.values[a]=r(t),1;if(!(u&&e.docChanged||l&&(e.docChanged||e.selection)||h.some((function(e){return(1&F(t,e))>0}))))return 0;var n=r(t),o=e.startState.values[a];return(s?function(t,e,n){if(t.length!=e.length)return!1;for(var r=0;r>1}var L=D.define({static:!0}),B=function(){function t(e,n,r,i,o){c(this,t),this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=o,this.provides=void 0}return d(t,[{key:"create",value:function(t){var e=this,n=t.facet(L).find((function(t){return t.field==e}));return((null==n?void 0:n.create)||this.createF)(t)}},{key:"slot",value:function(t){var e=this,n=t[this.id]>>1;return function(t,r){if(!r||r.reconfigured&&null==R(r.startState,e.id))return t.values[n]=e.create(t),1;var i,o=0;r.reconfigured?(i=r.startState.values[R(r.startState,e.id)],o=1):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,L.of({field:this,create:t})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(e){var n=new t(T++,e.create,e.update,e.compare||function(t,e){return t===e},e);return e.provide&&(n.provides=e.provide(n)),n}}]),t}(),N=2,I=1,j=0;function V(t){return function(e){return new W(e,t)}}var _={fallback:V(3),default:V(N),extend:V(I),override:V(j)},W=function t(e,n){c(this,t),this.inner=e,this.prec=n},z=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new H(this,t)}},{key:"reconfigure",value:function(e){return t.reconfigure.of({compartment:this,extension:e})}},{key:"get",value:function(t){return t.config.compartments.get(this)}}]),t}(),H=function t(e,n){c(this,t),this.compartment=e,this.inner=n},q=function(){function t(e,n,r,i,o){for(c(this,t),this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(e,n,r){var i,a=[],s=Object.create(null),u=new Map,l=o(function(t,e,n){var r=[[],[],[],[]],i=new Map;function a(t,s){var u=i.get(t);if(null!=u){if(u>=s)return;var l=r[u].indexOf(t);l>-1&&r[u].splice(l,1),t instanceof H&&n.delete(t.compartment)}if(i.set(t,s),Array.isArray(t)){var h,c=o(t);try{for(c.s();!(h=c.n()).done;){a(h.value,s)}}catch(v){c.e(v)}finally{c.f()}}else if(t instanceof H){if(n.has(t.compartment))throw new RangeError("Duplicate use of compartment in extensions");var f=e.get(t.compartment)||t.inner;n.set(t.compartment,f),a(f,s)}else if(t instanceof W)a(t.inner,t.prec);else if(t instanceof B)r[s].push(t),t.provides&&a(t.provides,s);else if(t instanceof P)r[s].push(t),t.facet.extensions&&a(t.facet.extensions,s);else{var d=t.extension;if(!d)throw new Error("Unrecognized extension value in extension set (".concat(t,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));a(d,s)}}return a(t,N),r.reduce((function(t,e){return t.concat(e)}))}(e,n,u));try{for(l.s();!(i=l.n()).done;){var h=i.value;h instanceof B?a.push(h):(s[h.facet.id]||(s[h.facet.id]=[])).push(h)}}catch(k){l.e(k)}finally{l.f()}for(var c=Object.create(null),f=[],d=[],v=function(){var t=g[p];c[t.id]=d.length<<1,d.push((function(e){return t.slot(e)}))},p=0,g=a;p>1;return function(t,n){var u,l=n?n.reconfigured?n.startState.config.address[e.id]:s<<1:null,h=null==l,c=o(a);try{for(c.s();!(u=c.n()).done;)1&F(t,u.value)&&(h=!0)}catch(k){c.e(k)}finally{c.f()}if(!h)return 0;for(var f=[],d=0;d>1,r=t.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;t.status[n]=4;var i=t.config.dynamicSlots[n](t,t.applying);return t.status[n]=2|i}function $(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}var U=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}),K=D.define(),Y=D.define(),X=D.define(),Q=function(){function t(e,n){c(this,t),this.type=e,this.value=n}return d(t,null,[{key:"define",value:function(){return new Z}}]),t}(),Z=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new Q(this,t)}}]),t}(),tt=function(){function t(e){c(this,t),this.map=e}return d(t,[{key:"of",value:function(t){return new et(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 tt(t.map||function(t){return t})}},{key:"mapEffects",value:function(t,e){if(!t.length)return t;var n,r=[],i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value.map(e);a&&r.push(a)}}catch(s){i.e(s)}finally{i.f()}return r}}]),t}();et.reconfigure=et.define(),et.appendConfig=et.define();var nt=function(){function t(e,n,r,i,o,a){c(this,t),this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&O(r,n.newLength),o.some((function(e){return e.type==t.time}))||(this.annotations=o.concat(t.time.of(Date.now())))}return d(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(t){var e,n=o(this.annotations);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.type==t)return r.value}}catch(i){n.e(i)}finally{n.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}}]),t}();function rt(t,e){for(var n=[],r=0,i=0;;){var o=void 0,a=void 0;if(r=t[r]))o=t[r++],a=t[r++];else{if(!(i=0;i--){var o=n[i](t);o&&Object.keys(o).length&&(r=it(t,ot(e,o,t.changes.newLength),!0))}return r==t?t:new nt(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(t){var e,n=t.startState,r=!0,i=o(n.facet(K));try{for(i.s();!(e=i.n()).done;){var a=(0,e.value)(t);if(!1===a){r=!1;break}Array.isArray(a)&&(r=!0===r?a:rt(r,a))}}catch(d){i.e(d)}finally{i.f()}if(!0!==r){var s,u;if(!1===r)u=t.changes.invertedDesc,s=m.empty(n.doc.length);else{var l=t.changes.filter(r);s=l.changes,u=l.filtered.invertedDesc}t=new nt(n,s,t.selection&&t.selection.map(u),et.mapEffects(t.effects,u),t.annotations,t.scrollIntoView)}for(var h=n.facet(Y),c=h.length-1;c>=0;c--){var f=h[c](t);t=f instanceof nt?f:Array.isArray(f)&&1==f.length&&f[0]instanceof nt?f[0]:at(n,ut(f),!1)}return t}(s):s)}nt.time=Q.define(),nt.userEvent=Q.define(),nt.addToHistory=Q.define(),nt.remote=Q.define();var st=[];function ut(t){return null==t?st:Array.isArray(t)?t:[t]}var lt,ht=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(ht||(ht={})),ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{lt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(pt){}function ft(t){return function(e){if(!/\S/.test(e))return ht.Space;if(function(t){if(lt)return lt.test(t);for(var e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||ct.test(n)))return!0}return!1}(e))return ht.Word;for(var n=0;n-1)return ht.Word;return ht.Other}}var dt=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(c(this,t),this.config=e,this.doc=n,this.selection=r,this.applying=null,this.status=e.statusTemplate.slice(),i&&i.startState.config==e)this.values=i.startState.values.slice();else if(this.values=e.dynamicSlots.map((function(t){return null})),i)for(var o in e.address){var a=e.address[o],s=i.startState.config.address[o];null!=s&&0==(1&a)&&(this.values[a>>1]=$(i.startState,s))}this.applying=i,i&&(i._state=this);for(var u=0;u1&&void 0!==arguments[1])||arguments[1],n=this.config.address[t.id];if(null!=n)return F(this,n),$(this,n);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return e instanceof m?e:m.of(e,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(e){return r.xv.of(e.split(this.facet(t.lineSeparator)||v))}},{key:"sliceDoc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(t,e,this.lineBreak)}},{key:"facet",value:function(t){var e=this.config.address[t.id];return null==e?t.default:(F(this,e),$(this,e))}},{key:"toJSON",value:function(t){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(var n in t){var r=t[n];r instanceof B&&(e[n]=r.spec.toJSON(this.field(t[n]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"phrase",value:function(e){var n,r=o(this.facet(t.phrases));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Object.prototype.hasOwnProperty.call(i,e))return i[e]}}catch(a){r.e(a)}finally{r.f()}return e}},{key:"languageDataAt",value:function(t,e){var n,r=[],i=o(this.facet(U));try{for(i.s();!(n=i.n()).done;){var a,s=o((0,n.value)(this,e));try{for(s.s();!(a=s.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,t)&&r.push(u[t])}}catch(l){s.e(l)}finally{s.f()}}}catch(l){i.e(l)}finally{i.f()}return r}},{key:"charCategorizer",value:function(t){return ft(this.languageDataAt("wordChars",t).join(""))}},{key:"wordAt",value:function(t){for(var e=this.doc.lineAt(t),n=e.text,i=e.from,o=e.length,a=this.charCategorizer(t),s=t-i,u=t-i;s>0;){var l=(0,r.cp)(n,s,!1);if(a(n.slice(l,s))!=ht.Word)break;s=l}for(;u1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");var i=[];if(r){var o=function(t){var n=r[t],o=e[t];i.push(n.init((function(t){return n.spec.fromJSON(o,t)})))};for(var a in r)o(a)}return t.create({doc:e.doc,selection:C.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=q.resolve(e.extensions||[],new Map),i=e.doc instanceof r.xv?e.doc:r.xv.of((e.doc||"").split(n.staticFacet(t.lineSeparator)||v)),o=e.selection?e.selection instanceof C?e.selection:C.single(e.selection.anchor,e.selection.head):C.single(0);return O(o,i.length),n.staticFacet(G)||(o=o.asSingle()),new t(n,i,o)}}]),t}();function vt(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={},a=o(t);try{for(a.s();!(n=a.n()).done;)for(var s=n.value,u=0,l=Object.keys(s);u=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function h(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length),(0,a.IS)(t.slice(r,e),i,n)}var x=function(){function t(e,n,r){y(this,t),this.string=e,this.tabSize=n,this.indentUnit=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}return b(t,[{key:"eol",value:function(){return this.pos>=this.string.length}},{key:"sol",value:function(){return 0==this.pos}},{key:"peek",value:function(){return this.string.charAt(this.pos)||void 0}},{key:"next",value:function(){if(this.pose}},{key:"eatSpace",value:function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}},{key:"skipToEnd",value:function(){this.pos=this.string.length}},{key:"skipTo",value:function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}},{key:"backUp",value:function(t){this.pos-=t}},{key:"column",value:function(){return this.lastColumnPos0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}},{key:"current",value:function(){return this.string.slice(this.start,this.pos)}}]),t}();function S(t){if("object"!=m(t))return t;var e={};for(var n in t){var r=t[n];e[n]=r instanceof Array?r.slice():r}return e}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(n,t);var e=d(n);function n(t){var i;y(this,n);var a,s=(0,o.kU)(t.languageData),u={token:(a=t).token,blankLine:a.blankLine||function(){},startState:a.startState||function(){return!0},copyState:a.copyState||S,indent:a.indent||function(){return null},languageData:a.languageData||{}};return(i=e.call(this,s,{startParse:function(t,e,n){return new O(p(i),t,e,n)}},function(t){var e=r.Jq.define({id:E.length,name:"Document",props:[o.mi.add((function(){return t}))]});return E.push(e),e}(s),[o.tK.of((function(t,e){return i.getIndent(t,e)}))])).streamParser=u,i.stateAfter=new WeakMap,i}return b(n,[{key:"getIndent",value:function(t,e){for(var n=(0,o.qz)(t.state),r=n.resolve(e);r&&r.type!=this.topNode;)r=r.parent;if(!r)return null;var i,a,s=C(this,n,0,r.from,e);if(s?(a=s.state,i=s.pos+1):(a=this.streamParser.startState(t.unit),i=0),e-i>1e4)return null;for(;i=i&&n+e.length<=o&&t.stateAfter.get(e);if(a)return{state:t.streamParser.copyState(a),pos:n+e.length};for(var s=e.children.length-1;s>=0;s--){var u=e.children[s],l=n+e.positions[s],h=u instanceof r.mp&&l=e.length)return e;o||e.type!=t.topNode||(o=!0);for(var a=e.children.length-1;a>=0;a--){var s=e.positions[a]+n,u=e.children[a],l=void 0;if(sn&&C(t,u.tree,0-u.offset,n,u.to),c=void 0;if(h&&(c=M(t,u.tree,n+u.offset,h.pos+u.offset,!1)))return{state:h.state,tree:c}}}catch(f){s.e(f)}finally{s.f()}return{state:t.streamParser.startState((0,o.y1)(i)),tree:r.mp.empty}}(e,a.fragments,i,a.state),u=s.state,h=s.tree;this.state=u,this.pos=this.chunkStart=i+h.length,h.length&&(this.chunks.push(h),this.chunkPos.push(0)),this.pose.start)return i}throw new Error("Stream parser failed to advance stream.")}var D=Object.create(null),E=[r.Jq.none],P=new r.Lj(E),R=[];function L(t){return t?D[t]||(D[t]=function(t){var e,n=null,o=l(t.split("."));try{for(o.s();!(e=o.n()).done;){var a=e.value,u=i.pJ[a];u?"function"==typeof u?n?n=u(n):_(a,"Modifier ".concat(a," used at start of tag")):n?_(a,"Tag ".concat(a," used as modifier")):n=u:_(a,"Unknown highlighting tag ".concat(a))}}catch(f){o.e(f)}finally{o.f()}if(!n)return 0;var h=t.replace(/ /g,"_"),c=r.Jq.define({id:E.length,name:h,props:[(0,i.Gv)(s({},h,n))]});return E.push(c),c.id}(t)):0}for(var B=0,N=[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","typeName"],["attribute","propertyName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]];B-1||(R.push(t),console.warn(e))}},23414:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt)return p[e-1]<=t;return!1}function y(t){return t>=127462&&t<=127487}function k(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(n?b:w)(t,e)}function b(t,e){if(e==t.length)return e;e&&x(t.charCodeAt(e))&&S(t.charCodeAt(e-1))&&e--;var n=A(t,e);for(e+=M(n);e=0&&y(A(t,o));)i++,o-=2;if(i%2==0)break;e+=2}}return e}function w(t,e){for(;e>0;){var n=b(t,e-2);if(n=56320&&t<57344}function S(t){return t>=55296&&t<56320}function A(t,e){var n=t.charCodeAt(e);if(!S(n)||e+1==t.length)return n;var r=t.charCodeAt(e+1);return x(r)?r-56320+(n-55296<<10)+65536:n}function C(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function M(t){return t<65536?1:2}function O(t,e,n){for(var r=0;r=n)return{offset:i,leftOver:0};e+=9==t.charCodeAt(i)?r-e%r:1,i=k(t,i)}return{offset:t.length,leftOver:n-e}}var D=function(){function t(){f(this,t)}return v(t,[{key:"lineAt",value:function(t){if(t<0||t>this.length)throw new RangeError("Invalid position ".concat(t," in document of length ").concat(this.length));return this.lineInner(t,!1,1,0)}},{key:"line",value:function(t){if(t<1||t>this.lines)throw new RangeError("Invalid line number ".concat(t," in ").concat(this.lines,"-line document"));return this.lineInner(t,!0,1,0)}},{key:"replace",value:function(t,e,n){var r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),P.from(r,this.length-(e-t)+n.length)}},{key:"append",value:function(t){return this.replace(this.length,this.length,t)}},{key:"slice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=[];return this.decompose(t,e,n,0),P.from(n,e-t)}},{key:"eq",value:function(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;for(var e=new N(this),n=new N(t);;){if(e.next(),n.next(),e.lineBreak!=n.lineBreak||e.done!=n.done||e.value!=n.value)return!1;if(e.done)return!0}}},{key:"iter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new N(this,t)}},{key:"iterRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new I(this,t,e)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var t=[];return this.flatten(t),t}}],[{key:"of",value:function(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new E(e):P.from(E.split(e,[])):t.empty}}]),t}();"undefined"!=typeof Symbol&&(D.prototype[Symbol.iterator]=function(){return this.iter()});var E=function(t){s(n,t);var e=l(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R(t);return f(this,n),(r=e.call(this)).text=t,r.length=i,r}return v(n,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.text[i],a=r+o.length;if((e?n:a)>=t)return new j(r,a,n,o);r=a+1,n++}}},{key:"decompose",value:function(t,e,r,i){var o=t<=0&&e>=this.length?this:new n(B(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&i){var a=r.pop(),s=L(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new n(s,a.length+o.length));else{var u=s.length>>1;r.push(new n(s.slice(0,u)),new n(s.slice(u)))}}else r.push(o)}},{key:"replace",value:function(t,e,r){if(!(r instanceof n))return a(c(n.prototype),"replace",this).call(this,t,e,r);var i=L(this.text,L(r.text,B(this.text,0,t)),e),o=this.length+r.length-(e-t);return i.length<=32?new n(i,o):P.from(n.split(i,[]),o)}},{key:"sliceString",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,o=0;i<=e&&ot&&o&&(r+=n),ti&&(r+=a.slice(Math.max(0,t-i),e-i)),i=s+1}return r}},{key:"flatten",value:function(t){var e,n=i(this.text);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r)}}catch(o){n.e(o)}finally{n.f()}}}],[{key:"split",value:function(t,e){var r,o=[],a=-1,s=i(t);try{for(s.s();!(r=s.n()).done;){var u=r.value;o.push(u),a+=u.length+1,32==o.length&&(e.push(new n(o,a)),o=[],a=-1)}}catch(l){s.e(l)}finally{s.f()}return a>-1&&e.push(new n(o,a)),e}}]),n}(D),P=function(t){s(n,t);var e=l(n);function n(t,r){var o;f(this,n),(o=e.call(this)).children=t,o.length=r,o.lines=0;var a,s=i(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;o.lines+=u.lines}}catch(l){s.e(l)}finally{s.f()}return o}return v(n,[{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.children[i],a=r+o.length,s=n+o.lines-1;if((e?s:a)>=t)return o.lineInner(t,e,n,r);r=a+1,n=s+1}}},{key:"decompose",value:function(t,e,n,r){for(var i=0,o=0;o<=e&&i=o){var u=r&((o<=t?1:0)|(s>=e?2:0));o>=t&&s<=e&&!u?n.push(a):a.decompose(t-o,e-o,n,u)}o=s+1}}},{key:"replace",value:function(t,e,r){if(r.lines=o&&e<=u){var l=s.replace(t-o,e-o,r),h=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>h>>6){var f=this.children.slice();return f[i]=l,new n(f,this.length-(e-t)+r.length)}return a(c(n.prototype),"replace",this).call(this,o,u,l)}o=u+1}return a(c(n.prototype),"replace",this).call(this,t,e,r)}},{key:"sliceString",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,o=0;it&&i&&(r+=n),to&&(r+=a.sliceString(t-o,e-o,n)),o=s+1}return r}},{key:"flatten",value:function(t){var e,n=i(this.children);try{for(n.s();!(e=n.n()).done;){e.value.flatten(t)}}catch(r){n.e(r)}finally{n.f()}}}],[{key:"from",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.reduce((function(t,e){return t+e.length+1}),-1),o=0,a=i(t);try{for(a.s();!(e=a.n()).done;){var s=e.value;o+=s.lines}}catch(A){a.e(A)}finally{a.f()}if(o<32){var u,l=[],h=i(t);try{for(h.s();!(u=h.n()).done;){var c=u.value;c.flatten(l)}}catch(A){h.e(A)}finally{h.f()}return new E(l,r)}var f=Math.max(32,o>>5),d=f<<1,v=f>>1,p=[],g=0,m=-1,y=[];function k(t){var e;if(t.lines>d&&t instanceof n){var r,o=i(t.children);try{for(o.s();!(r=o.n()).done;){k(r.value)}}catch(A){o.e(A)}finally{o.f()}}else t.lines>v&&(g>v||!g)?(b(),p.push(t)):t instanceof E&&g&&(e=y[y.length-1])instanceof E&&t.lines+e.lines<=32?(g+=t.lines,m+=t.length+1,y[y.length-1]=new E(e.text.concat(t.text),e.length+1+t.length)):(g+t.lines>f&&b(),g+=t.lines,m+=t.length+1,y.push(t))}function b(){0!=g&&(p.push(1==y.length?y[0]:n.from(y,m)),m=-1,g=y.length=0)}var w,x=i(t);try{for(x.s();!(w=x.n()).done;){var S=w.value;k(S)}}catch(A){x.e(A)}finally{x.f()}return b(),1==p.length?p[0]:new n(p,r)}}]),n}(D);function R(t){var e,n=-1,r=i(t);try{for(r.s();!(e=r.n()).done;){n+=e.value.length+1}}catch(o){r.e(o)}finally{r.f()}return n}function L(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,i=0,o=0,a=!0;o=n&&(u>r&&(s=s.slice(0,r-i)),i1&&void 0!==arguments[1]?arguments[1]:1;f(this,t),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?0:e instanceof E?e.text.length:e.children.length]}return v(t,[{key:"next",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;;){var e=this.nodes.length-1;if(e<0)return this.done=!0,this.value="",this.lineBreak=!1,this;var n=this.nodes[e],r=this.offsets[e],i=n instanceof E?n.text.length:n.children.length;if(r==(this.dir>0?i:0))this.nodes.pop(),this.offsets.pop();else if(this.lineBreak||r==(this.dir>0?0:i))if(n instanceof E){var o=n.text[r-(this.dir<0?1:0)];if(this.offsets[e]=r+=this.dir,this.lineBreak=!1,o.length>Math.max(0,t))return this.value=0==t?o:this.dir>0?o.slice(t):o.slice(0,o.length-t),this;t-=o.length}else{var a=n.children[this.dir>0?r:r-1];this.offsets[e]=r+this.dir,this.lineBreak=!1,t>a.length?t-=a.length:(this.nodes.push(a),this.offsets.push(this.dir>0?0:a instanceof E?a.text.length:a.children.length))}else{if(this.lineBreak=!0,0==t)return this.value="\n",this;t--}}}}]),t}(),I=function(){function t(e,n,r){f(this,t),this.value="",this.cursor=new N(e,n>r?-1:1),n>r?(this.skip=e.length-n,this.limit=n-r):(this.skip=n,this.limit=r-n)}return v(t,[{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.limit<=0)this.limit=-1;else{var e=this.cursor.next(this.skip+t),n=e.value,r=e.lineBreak,i=e.done;this.skip=0,this.value=n;var o=r?1:n.length;o>this.limit&&(this.value=this.cursor.dir>0?n.slice(0,this.limit):n.slice(o-this.limit)),i||0==this.value.length?this.limit=-1:this.limit-=this.value.length}return this}},{key:"lineBreak",get:function(){return this.cursor.lineBreak}},{key:"done",get:function(){return this.limit<0}}]),t}(),j=function(){function t(e,n,r,i){f(this,t),this.from=e,this.to=n,this.number=r,this.text=i}return v(t,[{key:"length",get:function(){return this.to-this.from}}]),t}()},19753:function(t,e,n){"use strict";n.d(e,{kH:function(){return Ot},p:function(){return Tt},Nm:function(){return ve},tk:function(){return Zn},BF:function(){return Kt},lg:function(){return Qt},Uw:function(){return br},ZO:function(){return Tr},$f:function(){return cr},$1:function(){return vr}});for(var r=n(77885),i=n(23414),o=n(62038),a=n(13764),s={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},u={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},l="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),h="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),c="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),f="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),d="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),v=l&&(f||+l[1]<57)||c&&f,p=0;p<10;p++)s[48+p]=s[96+p]=String(p);for(p=1;p<=24;p++)s[p+111]="F"+p;for(p=65;p<=90;p++)s[p]=String.fromCharCode(p+32),u[p]=String.fromCharCode(p);for(var g in s)u.hasOwnProperty(g)||(u[g]=s[g]);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=A(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=A(t);if(e){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function C(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function O(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:e,r=q||(q=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}var J=function(){function t(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];D(this,t),this.node=e,this.offset=n,this.precise=r}return P(t,null,[{key:"before",value:function(e,n){return new t(e.parentNode,j(e),n)}},{key:"after",value:function(e,n){return new t(e.parentNode,j(e)+1,n)}}]),t}(),K=[],Y=function(){function t(){D(this,t),this.parent=null,this.dom=null,this.dirty=2}return P(t,[{key:"editorView",get:function(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}},{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(t){var e,n=this.posAtStart,r=M(this.children);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i==t)return n;n+=i.length+i.breakAfter}}catch(o){r.e(o)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(t){return this.posBefore(t)+t.length}},{key:"coordsAt",value:function(t,e){return null}},{key:"sync",value:function(e){var n;if(2&this.dirty){var r,i=this.dom,o=null,a=M(this.children);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.dirty){var u=o?o.nextSibling:i.firstChild;s.dom||!u||(null===(n=t.get(u))||void 0===n?void 0:n.parent)||s.reuseDOM(u),s.sync(e),s.dirty=0}e&&e.node==i&&o!=s.dom&&(e.written=!0),Q(i,o,s.dom),o=s.dom}}catch(d){a.e(d)}finally{a.f()}var l=o?o.nextSibling:i.firstChild;for(l&&e&&e.node==i&&(e.written=!0);l;)l=X(l)}else if(1&this.dirty){var h,c=M(this.children);try{for(c.s();!(h=c.n()).done;){var f=h.value;f.dirty&&(f.sync(e),f.dirty=0)}}catch(d){c.e(d)}finally{c.f()}}}},{key:"reuseDOM",value:function(t){return!1}},{key:"localPosFromDOM",value:function(e,n){var r;if(e==this.dom)r=this.dom.childNodes[n];else{for(var i=0==_(e)?0:0==n?-1:1;;){var o=e.parentNode;if(o==this.dom)break;0==i&&o.firstChild!=o.lastChild&&(i=e==o.firstChild?-1:1),e=o}r=i<0?e:e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!t.get(r);)r=r.nextSibling;if(!r)return this.length;for(var a=0,s=0;;a++){var u=this.children[a];if(u.dom==r)return s;s+=u.length+u.breakAfter}}},{key:"domBoundsAround",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,o=-1,a=-1,s=0,u=n,l=n;se)return h.domBoundsAround(t,e,u);if(c>=t&&-1==r&&(r=s,i=u),u>e&&h.dom.parentNode==this.dom){o=s,a=l;break}l=c,u=c+h.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}},{key:"markDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];2&this.dirty||(this.dirty|=2,this.markParentsDirty(t))}},{key:"markParentsDirty",value:function(t){for(var e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,t=!1}}},{key:"setParent",value:function(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(t){this.dom=t,t.cmView=this}},{key:"rootView",get:function(){for(var t=this;;){var e=t.parent;if(!e)return t;t=e}}},{key:"replaceChildren",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K;this.markDirty();for(var i=t;i0&&void 0!==arguments[0]?arguments[0]:this.length;return new Z(this.children,t,this.children.length)}},{key:"childPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(t,e)}},{key:"toString",value:function(){var t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==t?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}}],[{key:"get",value:function(t){return t.cmView}}]),t}();function X(t){var e=t.nextSibling;return t.parentNode.removeChild(t),e}function Q(t,e,n){var r=e?e.nextSibling:t.firstChild;if(n.parentNode==t)for(;r!=n;)r=X(r);else t.insertBefore(n,r)}Y.prototype.breakAfter=0;var Z=function(){function t(e,n,r){D(this,t),this.children=e,this.pos=n,this.i=r,this.off=0}return P(t,[{key:"findPos",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(t>this.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;var n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}]),t}(),tt=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||O(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}("undefined"!=typeof navigator?[navigator,document]:[{userAgent:"",vendor:"",platform:""},{documentElement:{style:{}}}],2),et=tt[0],nt=tt[1],rt=/Edge\/(\d+)/.exec(et.userAgent),it=/MSIE \d/.test(et.userAgent),ot=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(et.userAgent),at=!!(it||ot||rt),st=!at&&/gecko\/(\d+)/i.test(et.userAgent),ut=!at&&/Chrome\/(\d+)/.exec(et.userAgent),lt="webkitFontSmoothing"in nt.documentElement.style,ht=!at&&/Apple Computer/.test(et.vendor),ct={mac:/Mac/.test(et.platform),ie:at,ie_version:it?nt.documentMode||6:ot?+ot[1]:rt?+rt[1]:0,gecko:st,gecko_version:st?+(/Firefox\/(\d+)/.exec(et.userAgent)||[0,0])[1]:0,chrome:!!ut,chrome_version:ut?+ut[1]:0,ios:ht&&(/Mobile\/\w+/.test(et.userAgent)||et.maxTouchPoints>2),android:/Android\b/.test(et.userAgent),webkit:lt,safari:ht,webkit_version:lt?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=nt.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},ft=[],dt=function(t){k(n,t);var e=w(n);function n(){return D(this,n),e.apply(this,arguments)}return P(n,[{key:"become",value:function(t){return!1}},{key:"getSide",value:function(){return 0}}]),n}(Y);dt.prototype.children=ft;var vt=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).text=t,r}return P(n,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(t){this.setDOM(t||document.createTextNode(this.text))}},{key:"sync",value:function(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(t){return 3==t.nodeType&&(this.createDOM(t),!0)}},{key:"merge",value:function(t,e,r){return(!r||r instanceof n&&!(this.length-(e-t)+r.length>256))&&(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(e),this.markDirty(),!0)}},{key:"slice",value:function(t){return new n(this.text.slice(t))}},{key:"localPosFromDOM",value:function(t,e){return t==this.dom?e:e?this.text.length:0}},{key:"domAtPos",value:function(t){return new J(this.dom,t)}},{key:"domBoundsAround",value:function(t,e,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(t,e){return gt(this.dom,t,e)}}]),n}(dt),pt=function(t){k(n,t);var e=w(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;D(this,n),(r=e.call(this)).mark=t,r.children=i,r.length=o;var a,s=M(i);try{for(s.s();!(a=s.n()).done;){var u=a.value;u.setParent(S(r))}}catch(l){s.e(l)}finally{s.f()}return r}return P(n,[{key:"createDOM",value:function(){var t=document.createElement(this.mark.tagName);if(this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(var e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);this.setDOM(t)}},{key:"sync",value:function(t){this.dom||this.createDOM(),y(A(n.prototype),"sync",this).call(this,t)}},{key:"merge",value:function(t,e,r,i,o){return(!r||!(!(r instanceof n&&r.mark.eq(this.mark))||t&&i<=0||ee&&r.push(ir&&(e=r);var i=e,o=e,a=0;0==e&&n<0||e==r&&n>=0?ct.chrome||ct.gecko||(e?(i--,a=1):(o++,a=-1)):n<0?i--:o++;var s=G(t,i,o).getClientRects();if(!s.length)return W;var u=s[(a?a<0:n>=0)?0:s.length-1];return ct.safari&&!a&&0==u.width&&(u=Array.prototype.find.call(s,(function(t){return t.width}))||u),a?z(u,a<0):u}var mt=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this)).widget=t,o.length=r,o.side=i,o}return P(n,[{key:"slice",value:function(t){return n.create(this.widget,this.length-t,this.side)}},{key:"sync",value:function(){this.dom&&this.widget.updateDOM(this.dom)||(this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(t,e,r,i,o){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||t>0&&i<=0||e0?n.length-1:0;r=n[i],!(t>0?0==i:i==n.length-1||r.top0?-1:1);return 0==t&&e>0||t==this.length&&e<=0?r:z(r,0==t)}}],[{key:"create",value:function(t,e,r){return new(t.customView||n)(t,e,r)}}]),n}(dt),yt=function(t){k(n,t);var e=w(n);function n(){return D(this,n),e.apply(this,arguments)}return P(n,[{key:"domAtPos",value:function(t){return new J(this.widget.text,t)}},{key:"sync",value:function(){this.dom||this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(t,e){return e?3==t.nodeType?Math.min(e,this.length):this.length:0}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(t,e){return gt(this.widget.text,t,e)}}]),n}(mt);function kt(t,e,n,r,i,o){var a,s=t.childCursor(),u=s.findPos(n,1),l=u.i,h=u.off,c=s.findPos(e,-1),f=c.i,d=c.off,v=e-n,p=M(r);try{for(p.s();!(a=p.n()).done;){v+=a.value.length}}catch(x){p.e(x)}finally{p.f()}t.length+=v;var g=t.children;if(f==l&&d){var m=g[f];if(1==r.length&&m.merge(d,h,r[0],i,o))return;if(0==r.length)return void m.merge(d,h,null,i,o);var y=m.slice(h);y.merge(0,0,r[r.length-1],0,o)?r[r.length-1]=y:r.push(y),l++,o=h=0}if(h){var k=g[l];r.length&&k.merge(0,h,r[r.length-1],0,o)?(r.pop(),o=r.length?0:i):k.merge(0,h,null,0,0)}else li&&n0;r--){var s=e[r-1].dom;if(s.parentNode==t)return J.after(s)}return new J(t,0)}function wt(t,e,n){var r,i=t.children;n>0&&e instanceof pt&&i.length&&(r=i[i.length-1])instanceof pt&&r.mark.eq(e.mark)?wt(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function xt(t,e,n){for(var r=0,i=0;i=e:a>e)return o.coordsAt(e-r,n);r=a}}var s=t.dom.lastChild;if(!s)return t.dom.getBoundingClientRect();var u=N(s);return u[u.length-1]}function St(t,e){for(var n in t)"class"==n&&e.class?e.class+=" "+t.class:"style"==n&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}function At(t,e){if(t==e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0,o=n;i-1}}],[{key:"mark",value:function(t){return new Dt(t)}},{key:"widget",value:function(t){var e=t.side||0;return t.block&&(e+=200000001*(e>0?1:-1)),new Pt(t,e,e,!!t.block,t.widget||null,!1)}},{key:"replace",value:function(t){var e=!!t.block,n=Rt(t),r=n.start,i=n.end;return new Pt(t,e?-2e8*(r?2:1):1e8*(r?-1:1),e?2e8*(i?2:1):1e8*(i?1:-1),e,t.widget||null,!0)}},{key:"line",value:function(t){return new Et(t)}},{key:"set",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.Xs.of(t,e)}}]),n}(a.uU);Tt.none=a.Xs.empty;var Dt=function(t){k(n,t);var e=w(n);function n(t){var r;D(this,n);var i=Rt(t),o=i.start,a=i.end;return(r=e.call(this,1e8*(o?-1:1),1e8*(a?1:-1),null,t)).tagName=t.tagName||"span",r.class=t.class||"",r.attrs=t.attributes||null,r}return P(n,[{key:"eq",value:function(t){return this==t||t instanceof n&&this.tagName==t.tagName&&this.class==t.class&&At(this.attrs,t.attrs)}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(t>=e)throw new RangeError("Mark decorations may not be empty");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Tt);Dt.prototype.point=!1;var Et=function(t){k(n,t);var e=w(n);function n(t){return D(this,n),e.call(this,-1e8,-1e8,null,t)}return P(n,[{key:"eq",value:function(t){return t instanceof n&&At(this.spec.attributes,t.spec.attributes)}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Tt);Et.prototype.mapMode=r.gc.TrackBefore,Et.prototype.point=!0;var Pt=function(t){k(n,t);var e=w(n);function n(t,i,o,a,s,u){var l;return D(this,n),(l=e.call(this,i,o,s,t)).block=a,l.isReplace=u,l.mapMode=a?i<0?r.gc.TrackBefore:r.gc.TrackAfter:r.gc.TrackDel,l}return P(n,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(t){return t instanceof n&&(e=this.widget,r=t.widget,e==r||!!(e&&r&&e.compare(r)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide;var e,r}},{key:"range",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return y(A(n.prototype),"range",this).call(this,t,e)}}]),n}(Tt);function Rt(t){var e=t.inclusiveStart,n=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==n&&(n=t.inclusive),{start:e||!1,end:n||!1}}function Lt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n.length-1;i>=0&&n[i]+r>t?n[i]=Math.max(n[i],e):n.push(t,e)}Pt.prototype.point=!0;var Bt=function(t){k(n,t);var e=w(n);function n(){var t;return D(this,n),(t=e.apply(this,arguments)).children=[],t.length=0,t.prevAttrs=void 0,t.attrs=null,t.breakAfter=0,t}return P(n,[{key:"merge",value:function(t,e,r,i,o,a){if(r){if(!(r instanceof n))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),kt(this,t,e,r?r.children:Nt,o,a),!0}},{key:"split",value:function(t){var e=new n;if(e.breakAfter=this.breakAfter,0==this.length)return e;var r=this.childPos(t),i=r.i,o=r.off;o&&(e.append(this.children[i].slice(o),0),this.children[i].merge(o,this.children[i].length,null,0,0),i++);for(var a=i;a0&&0==this.children[i-1].length;)this.children[i-1].parent=null,i--;return this.children.length=i,this.markDirty(),this.length=t,e}},{key:"transferDOM",value:function(t){this.dom&&(t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(t){At(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}},{key:"append",value:function(t,e){wt(this,t,e)}},{key:"addLineDeco",value:function(t){var e=t.spec.attributes;e&&(this.attrs=St(e,this.attrs||{}))}},{key:"domAtPos",value:function(t){return bt(this.dom,this.children,t)}},{key:"sync",value:function(t){this.dom||(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Ct(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),y(A(n.prototype),"sync",this).call(this,t);var e=this.dom.lastChild;if(!e||"BR"!=e.nodeName&&Y.get(e)instanceof mt){var r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var t,e=0,n=M(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!(r instanceof vt))return null;var i=N(r.dom);if(1!=i.length)return null;e+=i[0].width}}catch(o){n.e(o)}finally{n.f()}return{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}}},{key:"coordsAt",value:function(t,e){return xt(this,t,e)}},{key:"match",value:function(t){return!1}},{key:"type",get:function(){return Ot.Text}}],[{key:"find",value:function(t,e){for(var r=0,i=0;;r++){var o=t.children[r],a=i+o.length;if(a>=e){if(o instanceof n)return o;if(o.length)return null}i=a+o.breakAfter}}}]),n}(Y),Nt=[],It=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this)).widget=t,o.length=r,o.type=i,o.breakAfter=0,o}return P(n,[{key:"merge",value:function(t,e,r,i,o,a){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||t>0&&o<=0||e=0;n--)t=new pt(e[n],[t],t.length);return t}},{key:"buildText",value:function(t,e,n){for(;t>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),i=r.value,o=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.curLine=null,t--;continue}this.text=i,this.textOff=0}var s=Math.min(this.text.length-this.textOff,t,512);this.getLine().append(this.wrapMarks(new vt(this.text.slice(this.textOff,this.textOff+s)),e),n),this.textOff+=s,t-=s,n=0}}},{key:"span",value:function(t,e,n,r){this.buildText(e-t,n,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(t,e,n,r,i){var o=e-t;if(n instanceof Pt)if(n.block){var a=n.type;a!=Ot.WidgetAfter||this.posCovered()||this.getLine(),this.addWidget(new It(n.widget||new Vt("div"),o,a))}else{var s=this.wrapMarks(mt.create(n.widget||new Vt("span"),o,n.startSide),r);this.getLine().append(s,i)}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=i)}}],[{key:"build",value:function(e,n,r,i){var o=new t(e,n,r);return o.openEnd=a.Xs.spans(i,n,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(),o}}]),t}(),Vt=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).tag=t,r}return P(n,[{key:"eq",value:function(t){return t.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(t){return t.nodeName.toLowerCase()==this.tag}}]),n}(Mt),_t=[],Wt=r.r$.define(),zt=r.r$.define(),Ht=r.r$.define(),qt=r.r$.define(),Ft=r.r$.define(),$t=r.r$.define();function Ut(t,e,n){var r=t.facet(qt);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}var Gt=r.r$.define({combine:function(t){return!t.length||t[0]}}),Jt=function t(e,n){D(this,t),this.field=e,this.get=n},Kt=function(){function t(){D(this,t)}return P(t,[{key:"from",value:function(t){return new Jt(this,t)}}],[{key:"define",value:function(){return new t}}]),t}();Kt.decorations=Kt.define(),Kt.scrollMargins=Kt.define();var Yt=0,Xt=r.r$.define(),Qt=function(){function t(e,n,r){D(this,t),this.id=e,this.create=n,this.fields=r,this.extension=Xt.of(this)}return P(t,null,[{key:"define",value:function(e,n){var r=n||{},i=r.eventHandlers,o=r.provide,a=r.decorations,s=[];if(o){var u,l=M(Array.isArray(o)?o:[o]);try{for(l.s();!(u=l.n()).done;){var h=u.value;s.push(h)}}catch(c){l.e(c)}finally{l.f()}}return i&&s.push(Zt.from((function(t){return{plugin:t,handlers:i}}))),a&&s.push(Kt.decorations.from(a)),new t(Yt++,e,s)}},{key:"fromClass",value:function(e,n){return t.define((function(t){return new e(t)}),n)}}]),t}(),Zt=Kt.define(),te=function(){function t(e){D(this,t),this.spec=e,this.mustUpdate=null,this.value=null}return P(t,[{key:"takeField",value:function(t,e){var n,r=M(this.spec.fields);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.field,a=i.get;o==t&&e.push(a(this.value))}}catch(s){r.e(s)}finally{r.f()}}},{key:"update",value:function(e){if(this.value){if(this.mustUpdate){var n=this.mustUpdate;if(this.mustUpdate=null,!this.value.update)return this;try{this.value.update(n)}catch(r){if(Ut(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(i){}return t.dummy}}}else try{this.value=this.spec.create(e)}catch(r){return Ut(e.state,r,"CodeMirror plugin crashed"),t.dummy}return this}},{key:"destroy",value:function(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(n){Ut(t.state,n,"CodeMirror plugin crashed")}}}]),t}();te.dummy=new te(Qt.define((function(){return{}})));var ee=r.r$.define({combine:function(t){return t.reduce((function(t,e){return St(e,t)}),{})}}),ne=r.r$.define({combine:function(t){return t.reduce((function(t,e){return St(e,t)}),{})}}),re=r.r$.define(),ie=r.r$.define(),oe=function(){function t(e,n,r,i){D(this,t),this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}return P(t,[{key:"join",value:function(e){return new t(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}},{key:"addToSet",value:function(t){for(var e=t.length,n=this;e>0;e--){var r=t[e-1];if(!(r.fromA>n.toA)){if(r.toAh)break;o+=2}if(!u)return r;new t(u.fromA,u.toA,u.fromB,u.toB).addToSet(r),a=u.toA,s=u.toB}}}]),t}(),ae=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_t;D(this,t),this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=r.as.empty(this.startState.doc.length);var o,a=M(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.changes=this.changes.compose(s.changes)}}catch(h){a.e(h)}finally{a.f()}var u=[];this.changes.iterChangedRanges((function(t,e,n,r){return u.push(new oe(t,e,n,r))})),this.changedRanges=u;var l=e.hasFocus;l!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=l,this.flags|=1),this.docChanged&&(this.flags|=2)}return P(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(18&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return this.transactions.some((function(t){return t.docChanged}))}},{key:"selectionSet",get:function(){return this.transactions.some((function(t){return t.selection}))}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}]),t}(),se=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).view=t,r.compositionDeco=Tt.none,r.decorations=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.setDOM(t.contentDOM),r.children=[new Bt],r.children[0].setParent(S(r)),r.updateInner([new oe(0,0,0,t.state.doc.length)],r.updateDeco(),0),r}return P(n,[{key:"root",get:function(){return this.view.root}},{key:"editorView",get:function(){return this.view}},{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(t){var e=this,n=t.changedRanges;this.minWidth>0&&n.length&&(n.every((function(t){var n=t.fromA;return t.toAe.minWidthTo}))?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=0),this.view.inputState.composing<0?this.compositionDeco=Tt.none:t.transactions.length&&(this.compositionDeco=function(t,e){var n=t.observer.selectionRange,r=n.focusNode&&ce(n.focusNode,n.focusOffset,0);if(!r)return Tt.none;var i,o,a=t.docView.nearest(r),s=r;if(a instanceof dt){for(;a.parent instanceof dt;)a=a.parent;o=(i=a.posAtStart)+a.length,s=a.dom}else{if(!(a instanceof Bt))return Tt.none;for(;s.parentNode!=a.dom;)s=s.parentNode;for(var u=s.previousSibling;u&&!Y.get(u);)u=u.previousSibling;i=o=u?Y.get(u).posAtEnd:a.posAtStart}var l=e.mapPos(i,1),h=Math.max(l,e.mapPos(o,-1)),c=r.nodeValue,f=t.state;if(h-l=this.view.viewport.from&&t.state.selection.main.to<=this.view.viewport.to?(this.updateSelection(l,d),!1):(this.updateInner(n,c,t.startState.doc.length,l,d),!0)}},{key:"updateInner",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.updateChildren(t,e,n),this.view.observer.ignore((function(){r.dom.style.height=r.view.viewState.domHeight+"px",r.dom.style.minWidth=r.minWidth?r.minWidth+"px":"";var t=ct.chrome?{node:R(r.view.root).focusNode,written:!1}:void 0;r.sync(t),r.dirty=0,(null==t?void 0:t.written)&&(i=!0),r.updateSelection(i,o),r.dom.style.height=""}))}},{key:"updateChildren",value:function(t,e,n){for(var r=this.childCursor(n),i=t.length-1;;i--){var o=i>=0?t[i]:null;if(!o)break;var a=o.fromA,s=o.toA,u=o.fromB,l=o.toB,h=jt.build(this.view.state.doc,u,l,e),c=h.content,f=h.breakAtStart,d=h.openStart,v=h.openEnd,p=r.findPos(s,1),g=p.i,m=p.off,y=r.findPos(a,-1),k=y.i,b=y.off;this.replaceRange(k,b,g,m,c,f,d,v)}}},{key:"replaceRange",value:function(t,e,n,r,i,o,a,s){var u=this.children[t],l=i.length?i[i.length-1]:null,h=l?l.breakAfter:o;if(t!=n||o||h||!(i.length<2)||!u.merge(e,r,i.length?l:null,0==e,a,s)){var c=this.children[n];for(r0&&(!o&&i.length&&u.merge(e,u.length,i[0],!1,a,0)?u.breakAfter=i.shift().breakAfter:(e0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n||this.mayControlSelection()){var r=this.view.state.selection.main,i=this.domAtPos(r.anchor),o=r.empty?i:this.domAtPos(r.head);if(ct.gecko&&r.empty&&ue(i)){var a=document.createTextNode("");this.view.observer.ignore((function(){return i.node.insertBefore(a,i.node.childNodes[i.offset]||null)})),i=o=new J(a,0),e=!0}var s=this.view.observer.selectionRange;(e||!s.focusNode||ct.gecko&&r.empty&&fe(s.focusNode,s.focusOffset)||!I(i.node,i.offset,s.anchorNode,s.anchorOffset)||!I(o.node,o.offset,s.focusNode,s.focusOffset))&&(this.view.observer.ignore((function(){var e=R(t.root);if(r.empty){if(ct.gecko){var n=fe(i.node,i.offset);if(n&&3!=n){var a=ce(i.node,i.offset,1==n?1:-1);a&&(i=new J(a,1==n?0:a.nodeValue.length))}}e.collapse(i.node,i.offset),null!=r.bidiLevel&&null!=s.cursorBidiLevel&&(s.cursorBidiLevel=r.bidiLevel)}else if(e.extend)e.collapse(i.node,i.offset),e.extend(o.node,o.offset);else{var u=document.createRange();if(r.anchor>r.head){var l=[o,i];i=l[0],o=l[1]}u.setEnd(o.node,o.offset),u.setStart(i.node,i.offset),e.removeAllRanges(),e.addRange(u)}})),this.view.observer.setSelectionRange(i,o)),this.impreciseAnchor=i.precise?null:new J(s.anchorNode,s.anchorOffset),this.impreciseHead=o.precise?null:new J(s.focusNode,s.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){var t=this.view.state.selection.main,e=R(this.root);if(t.empty&&t.assoc&&e.modify){var n=Bt.find(this,t.head);if(n){var r=n.posAtStart;if(t.head!=r&&t.head!=r+n.length){var i=this.coordsAt(t.head,-1),o=this.coordsAt(t.head,1);if(i&&o&&!(i.bottom>o.top)){var a=this.domAtPos(t.head+t.assoc);e.collapse(a.node,a.offset),e.modify("move",t.assoc<0?"forward":"backward","lineboundary")}}}}}},{key:"mayControlSelection",value:function(){return this.view.state.facet(Gt)?this.root.activeElement==this.dom:B(this.dom,this.view.observer.selectionRange)}},{key:"nearest",value:function(t){for(var e=t;e;){var n=Y.get(e);if(n&&n.rootView==this)return n;e=e.parentNode}return null}},{key:"posFromDOM",value:function(t,e){var n=this.nearest(t);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(t,e)+n.posAtStart}},{key:"domAtPos",value:function(t){for(var e=this.childCursor().findPos(t,-1),n=e.i,r=e.off;no||t==o&&(i.type==Ot.Text||!r||this.children[r-1].breakAfter))return i.coordsAt(t-o,e);n=o}}},{key:"measureVisibleLineHeights",value:function(){for(var t=[],e=this.view.viewState.viewport,n=e.from,r=e.to,i=Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=0,a=0;ar)break;if(o>=n){t.push(s.dom.getBoundingClientRect().height);var l=s.dom.scrollWidth;l>i&&(this.minWidth=i=l,this.minWidthFrom=o,this.minWidthTo=u)}o=u+s.breakAfter}return t}},{key:"measureTextSize",value:function(){var t,e=this,n=M(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r instanceof Bt){var i=r.measureTextSize();if(i)return i}}}catch(u){n.e(u)}finally{n.f()}var o,a,s=document.createElement("div");return s.className="cm-line",s.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((function(){e.dom.appendChild(s);var t=N(s.firstChild)[0];o=s.getBoundingClientRect().height,a=t?t.width/27:7,s.remove()})),{lineHeight:o,charWidth:a}}},{key:"childCursor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,e=this.children.length;return e&&(t-=this.children[--e].length),new Z(this.children,t,e)}},{key:"computeBlockGapDeco",value:function(){for(var t=[],e=this.view.viewState,n=0,r=0;;r++){var i=r==e.viewports.length?null:e.viewports[r],o=i?i.from-1:this.length;if(o>n){var a=e.lineAt(o,0).bottom-e.lineAt(n,0).top;t.push(Tt.replace({widget:new le(a),block:!0,inclusive:!0}).range(n,o))}if(!i)break;n=i.to+1}return Tt.set(t)}},{key:"updateDeco",value:function(){return this.decorations=[this.computeBlockGapDeco(),this.view.viewState.lineGapDeco,this.compositionDeco].concat(C(this.view.state.facet(re)),C(this.view.pluginField(Kt.decorations)))}},{key:"scrollPosIntoView",value:function(t,e){var n=this.coordsAt(t,e);if(n){var r,i=0,o=0,a=0,s=0,u=M(this.view.pluginField(Kt.scrollMargins));try{for(u.s();!(r=u.n()).done;){var l=r.value;if(l){var h=l.left,c=l.right,f=l.top,d=l.bottom;null!=h&&(i=Math.max(i,h)),null!=c&&(o=Math.max(o,c)),null!=f&&(a=Math.max(a,f)),null!=d&&(s=Math.max(s,d))}}}catch(v){u.e(v)}finally{u.f()}!function(t,e){for(var n=t.ownerDocument.defaultView,r=t.parentNode;r;)if(1==r.nodeType){var i=void 0,o=r==document.body;if(o)i=H(n);else{if(r.scrollHeight<=r.clientHeight&&r.scrollWidth<=r.clientWidth){r=r.parentNode;continue}var a=r.getBoundingClientRect();i={left:a.left,right:a.left+r.clientWidth,top:a.top,bottom:a.top+r.clientHeight}}var s=0,u=0;if(e.topi.bottom&&(u=e.bottom-i.bottom+5),e.lefti.right&&(s=e.right-i.right+5),s||u)if(o)n.scrollBy(s,u);else{if(u){var l=r.scrollTop;r.scrollTop+=u,u=r.scrollTop-l}if(s){var h=r.scrollLeft;r.scrollLeft+=s,s=r.scrollLeft-h}e={left:e.left-s,top:e.top-u,right:e.right-s,bottom:e.bottom-u}}if(o)break;r=r.assignedSlot||r.parentNode}else{if(11!=r.nodeType)break;r=r.host}}(this.dom,{left:n.left-i,top:n.top-a,right:n.right+o,bottom:n.bottom+s})}}}]),n}(Y);function ue(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset0&&n<=0)e=_(t=t.childNodes[e-1]);else{if(!(1==t.nodeType&&e=0))return null;t=t.childNodes[e],e=0}}}function fe(t,e){return 1!=t.nodeType?0:(e&&"false"==t.childNodes[e-1].contentEditable?1:0)|(e=e){if(a.level==n)return o;(i<0||(0!=r?r<0?a.frome:t[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}]),t}(),Ee=[];function Pe(t,e){var n=t.length,r=e==pe?1:2,i=e==pe?2:1;if(!t||1==r&&!Te.test(t))return Re(n);for(var o=0,a=r,s=r;o=0;x-=3)if(we[x+1]==-m){var S=we[x+2],A=2&S?r:4&S?1&S?i:r:0;A&&(Ee[k]=Ee[we[x]]=A),b=x;break}}else{if(189==we.length)break;we[b++]=k,we[b++]=g,we[b++]=w}else if(2==(y=Ee[k])||1==y){var C=y==r;w=C?0:1;for(var M=b-3;M>=0;M-=3){var O=we[M+2];if(2&O)break;if(C)we[M+2]|=2;else{if(4&O)break;we[M+2]|=4}}}for(var T=0;TN;){for(var V=j,_=2!=Ee[--j];j>N&&_==(2!=Ee[j-1]);)j--;L.push(new De(j,V,_?2:1))}else L.push(new De(N,B,0))}else for(var W=0;Wt?e.left-t:Math.max(0,t-e.right)}function Ie(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function je(t,e){return t.tope.top+1}function Ve(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function We(t,e,n){for(var r,i,o,a,s,u,l,h,c=t.firstChild;c;c=c.nextSibling)for(var f=N(c),d=0;dg||a==g&&o>p)&&(r=c,i=v,o=p,a=g),0==p?n>v.bottom&&(!l||l.bottomv.top)&&(u=c,h=v):l&&je(l,v)?l=_e(l,v.bottom):h&&je(h,v)&&(h=Ve(h,v.top))}if(l&&l.bottom>=n?(r=s,i=l):h&&h.top<=n&&(r=u,i=h),!r)return{node:t,offset:0};var m=Math.max(i.left,Math.min(i.right,e));return 3==r.nodeType?ze(r,m,n):o||"true"!=r.contentEditable?{node:t,offset:Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0)}:We(r,m,n)}function ze(t,e,n){for(var r=t.nodeValue.length,i=-1,o=1e9,a=0,s=0;sn?h.top-n:n-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&c=(h.left+h.right)/2,d=f;if(ct.chrome||ct.gecko)G(t,s).getBoundingClientRect().left==h.right&&(d=!f);if(c<=0)return{node:t,offset:s+(d?1:0)};i=s+(d?1:0),o=c}}}return{node:t,offset:i>-1?i:a>0?t.nodeValue.length:0}}function He(t,e){for(var n,r=e.x,i=e.y,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,a=t.contentDOM.getBoundingClientRect(),s=t.defaultLineHeight/2,u=!1;;){if((n=t.blockAtHeight(i,a.top)).top>i||n.bottomi?-1:1,i=Math.min(n.bottom-s,Math.max(n.top+s,i)),u)return-1;u=!0}if(n.type==Ot.Text)break;i=o>0?n.bottom+s:n.top-s}var l=n.from;if(lt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:null;r=Math.max(a.left+1,Math.min(a.right-1,r));var h,c=t.root,f=c.elementFromPoint(r,i),d=-1;if(f&&t.contentDOM.contains(f)&&!(t.docView.nearest(f)instanceof mt))if(c.caretPositionFromPoint){var v=c.caretPositionFromPoint(r,i);v&&(h=v.offsetNode,d=v.offset)}else if(c.caretRangeFromPoint){var p=c.caretRangeFromPoint(r,i);p&&(h=p.startContainer,d=p.startOffset,ct.safari&&qe(h,d,r)&&(h=void 0))}if(!h||!t.docView.dom.contains(h)){var g=Bt.find(t.docView,l),m=We(g.dom,r,i);h=m.node,d=m.offset}return t.docView.posFromDOM(h,d)}function qe(t,e,n){var r;if(3!=t.nodeType||e!=(r=t.nodeValue.length))return!1;for(var i=t.nextSibling;i;i=t.nextSibling)if(1!=i.nodeType||"BR"!=i.nodeName)return!1;return G(t,r-1,r).getBoundingClientRect().left>n}function Fe(t,e,n,i){var o=t.state.doc.lineAt(e.head),a=i&&t.lineWrapping?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(a){var s=t.dom.getBoundingClientRect(),u=t.posAtCoords({x:n==(t.textDirection==ve.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(null!=u)return r.jT.cursor(u,n?-1:1)}var l=Bt.find(t.docView,e.head),h=l?n?l.posAtEnd:l.posAtStart:n?o.to:o.from;return r.jT.cursor(h,n?-1:1)}function $e(t,e,n,i){for(var o=t.state.doc.lineAt(e.head),a=t.bidiSpans(o),s=e,u=null;;){var l=Be(o,a,t.textDirection,s,n),h=Le;if(!l){if(o.number==(n?t.state.doc.lines:1))return s;h="\n",o=t.state.doc.line(o.number+(n?1:-1)),a=t.bidiSpans(o),l=r.jT.cursor(n?o.from:o.to)}if(u){if(!u(h))return s}else{if(!i)return l;u=i(h)}s=l}}var Ue=function(){function t(e){var n=this;D(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastIOSEnter=0,this.lastIOSBackspace=0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionEndedAt=0,this.mouseSelection=null;var r=function(t){var r=Ye[t];e.contentDOM.addEventListener(t,(function(i){"keydown"==t&&n.keydown(e,i)||Ke(e,i)&&!n.ignoreDuringComposition(i)&&(n.mustFlushObserver(i)&&e.observer.forceFlush(),n.runCustomHandlers(t,e,i)?i.preventDefault():r(e,i))})),n.registeredEvents.push(t)};for(var i in Ye)r(i);this.notifiedFocused=e.hasFocus,this.ensureHandlers(e)}return P(t,[{key:"setSelectionOrigin",value:function(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(t){var e,n=this,r=M(this.customHandlers=t.pluginField(Zt));try{for(r.s();!(e=r.n()).done;){var i=e.value,o=function(e){n.registeredEvents.indexOf(e)<0&&"scroll"!=e&&(n.registeredEvents.push(e),t.contentDOM.addEventListener(e,(function(r){Ke(t,r)&&n.runCustomHandlers(e,t,r)&&r.preventDefault()})))};for(var a in i.handlers)o(a)}}catch(s){r.e(s)}finally{r.f()}}},{key:"runCustomHandlers",value:function(t,e,n){var r,i=M(this.customHandlers);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.handlers[t],s=!1;if(a){try{s=a.call(o.plugin,n,e)}catch(u){Ut(e.state,u)}if(s||n.defaultPrevented)return ct.android&&"keydown"==t&&13==n.keyCode&&e.observer.flushSoon(),!0}}}catch(l){i.e(l)}finally{i.f()}return!1}},{key:"runScrollHandlers",value:function(t,e){var n,r=M(this.customHandlers);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.handlers.scroll;if(o)try{o.call(i.plugin,e,t)}catch(a){Ut(t.state,a)}}}catch(s){r.e(s)}finally{r.f()}}},{key:"keydown",value:function(t,e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!this.screenKeyEvent(t,e))return!(!ct.ios||13!=e.keyCode&&8!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey||e.synthetic)&&(this[13==e.keyCode?"lastIOSEnter":"lastIOSBackspace"]=Date.now(),!0)}},{key:"ignoreDuringComposition",value:function(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(ct.safari&&Date.now()-this.compositionEndedAt<500)&&(this.compositionEndedAt=0,!0))}},{key:"screenKeyEvent",value:function(t,e){var n=9==e.keyCode&&Date.now()=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}(n,i)&&null,!1===this.dragging&&(i.preventDefault(),this.select(i))}return P(t,[{key:"move",value:function(t){if(0==t.buttons)return this.destroy();!1===this.dragging&&this.select(t)}},{key:"up",value:function(t){null==this.dragging&&this.select(this.startEvent),this.dragging||t.preventDefault(),this.destroy()}},{key:"destroy",value:function(){var t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.inputState.mouseSelection=null}},{key:"select",value:function(t){var e=this.style.get(t,this.extend,this.multiple);e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,annotations:r.YW.userEvent.of("pointerselection"),scrollIntoView:!0})}},{key:"update",value:function(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)}}]),t}();function Ke(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(var n,r=e.target;r!=t.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=Y.get(r))&&n.ignoreEvent(e))return!1;return!0}var Ye=Object.create(null),Xe=ct.ie&&ct.ie_version<15||ct.ios&&ct.webkit_version<604;function Qe(t,e){var n,i=t.state,o=1,a=i.toText(e),s=a.lines==i.selection.ranges.length;if(hn&&i.selection.ranges.every((function(t){return t.empty}))&&hn==a.toString()){var u=-1;n=i.changeByRange((function(t){var n=i.doc.lineAt(t.from);if(n.from==u)return{range:t};u=n.from;var l=i.toText((s?a.line(o++).text:e)+i.lineBreak);return{changes:{from:n.from,insert:l},range:r.jT.cursor(t.from+l.length)}}))}else n=s?i.changeByRange((function(t){var e=a.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:r.jT.cursor(t.from+e.length)}})):i.replaceSelection(a);t.dispatch(n,{annotations:r.YW.userEvent.of("paste"),scrollIntoView:!0})}Ye.keydown=function(t,e){t.inputState.setSelectionOrigin("keyboardselection")};var Ze=0;function tn(t,e,n,o){if(1==o)return r.jT.cursor(e,n);if(2==o)return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t.charCategorizer(e),a=t.doc.lineAt(e),s=e-a.from;if(0==a.length)return r.jT.cursor(e);0==s?n=1:s==a.length&&(n=-1);var u=s,l=s;n<0?u=(0,i.cp)(a.text,s,!1):l=(0,i.cp)(a.text,s);for(var h=o(a.text.slice(u,l));u>0;){var c=(0,i.cp)(a.text,u,!1);if(o(a.text.slice(c,u))!=h)break;u=c}for(;lDate.now()-2e3)){var n,i=null,o=M(t.state.facet(Ht));try{for(o.s();!(n=o.n()).done;){if(i=(0,n.value)(t,e))break}}catch(a){o.e(a)}finally{o.f()}i||0!=e.button||(i=function(t,e){var n=on(t,e),i=function(t){if(!an)return t.detail;var e=sn,n=ln;return sn=t,ln=Date.now(),un=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(un+1)%3:1}(e),o=t.state.selection,a=n,s=e;return{update:function(t){t.changes&&(n&&(n.pos=t.changes.mapPos(n.pos)),o=o.map(t.changes))},get:function(e,u,l){var h;if(e.clientX==s.clientX&&e.clientY==s.clientY?h=a:(h=a=on(t,e),s=e),!h||!n)return o;var c=tn(t,h.pos,h.bias,i);if(n.pos!=h.pos&&!u){var f=tn(t,n.pos,n.bias,i),d=Math.min(f.from,c.from),v=Math.max(f.to,c.to);c=d=e.top&&t<=e.bottom},nn=function(t,e,n){return en(e,n)&&t>=n.left&&t<=n.right};function rn(t,e,n,r){var i=Bt.find(t.docView,e);if(!i)return 1;var o=e-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;var a=i.coordsAt(o,-1);if(a&&nn(n,r,a))return-1;var s=i.coordsAt(o,1);return s&&nn(n,r,s)?1:a&&en(r,a)?-1:1}function on(t,e){var n=t.posAtCoords({x:e.clientX,y:e.clientY});return null==n?null:{pos:n,bias:rn(t,n,e.clientX,e.clientY)}}var an=ct.ie&&ct.ie_version<=11,sn=null,un=0,ln=0;Ye.dragstart=function(t,e){var n=t.state.selection.main,r=t.inputState.mouseSelection;r&&(r.dragging=n),e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove")},Ye.drop=function(t,e){if(e.dataTransfer&&t.state.facet(Gt)){var n=t.posAtCoords({x:e.clientX,y:e.clientY}),i=e.dataTransfer.getData("Text");if(null!=n&&i){e.preventDefault();var o=t.inputState.mouseSelection,a=o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,s={from:n,insert:i},u=t.state.changes(a?[a,s]:s);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(n,-1),head:u.mapPos(n,1)},annotations:r.YW.userEvent.of("drop")})}}},Ye.paste=function(t,e){if(t.state.facet(Gt)){t.observer.flush();var n=Xe?null:e.clipboardData,r=n&&n.getData("text/plain");r?(Qe(t,r),e.preventDefault()):function(t){var e=t.dom.parentNode;if(e){var n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((function(){t.focus(),n.remove(),Qe(t,n.value)}),50)}}(t)}};var hn=null;function cn(t){t.docView.compositionDeco.size&&t.update([])}Ye.copy=Ye.cut=function(t,e){var n=function(t){var e,n=[],r=[],i=!1,o=M(t.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=e.value;a.empty||(n.push(t.sliceDoc(a.from,a.to)),r.push(a))}}catch(f){o.e(f)}finally{o.f()}if(!n.length){var s,u=-1,l=M(t.selection.ranges);try{for(l.s();!(s=l.n()).done;){var h=s.value.from,c=t.doc.lineAt(h);c.number>u&&(n.push(c.text),r.push({from:c.from,to:Math.min(t.doc.length,c.to+1)})),u=c.number}}catch(f){l.e(f)}finally{l.f()}i=!0}return{text:n.join(t.lineBreak),ranges:r,linewise:i}}(t.state),i=n.text,o=n.ranges,a=n.linewise;if(i){hn=a?i:null;var s=Xe?null:e.clipboardData;s?(e.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(t,e){var n=t.dom.parentNode;if(n){var r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout((function(){r.remove(),t.focus()}),50)}}(t,i),"cut"==e.type&&t.state.facet(Gt)&&t.dispatch({changes:o,scrollIntoView:!0,annotations:r.YW.userEvent.of("cut")})}},Ye.focus=Ye.blur=function(t){setTimeout((function(){t.hasFocus!=t.inputState.notifiedFocused&&t.update([])}),10)},Ye.beforeprint=function(t){t.viewState.printing=!0,t.requestMeasure(),setTimeout((function(){t.viewState.printing=!1,t.requestMeasure()}),2e3)},Ye.compositionstart=Ye.compositionupdate=function(t){t.inputState.composing<0&&(t.docView.compositionDeco.size&&(t.observer.flush(),cn(t)),t.inputState.composing=0)},Ye.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),setTimeout((function(){t.inputState.composing<0&&cn(t)}),50)},Ye.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()};var fn=["pre-wrap","normal","pre-line"],dn=function(){function t(){D(this,t),this.doc=i.xv.empty,this.lineWrapping=!1,this.direction=ve.LTR,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return P(t,[{key:"heightForGap",value:function(t,e){var n=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(n+=Math.ceil((e-t-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}},{key:"heightForLine",value:function(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(t){return this.doc=t,this}},{key:"mustRefresh",value:function(t,e,n){for(var r=!1,i=0;i-1!=this.lineWrapping||this.direction!=n}},{key:"refresh",value:function(t,e,n,r,i,o){var a=fn.indexOf(t)>-1,s=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a||this.direction!=e;if(this.lineWrapping=a,this.direction=e,this.lineHeight=n,this.charWidth=r,this.lineLength=i,s){this.heightSamples={};for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:2;D(this,t),this.length=e,this.height=n,this.flags=r}return P(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(t){this.flags=(t?2:0)|-3&this.flags}},{key:"setHeight",value:function(t,e){this.height!=e&&(Math.abs(this.height-e)>1e-4&&(t.heightChanged=!0),this.height=e)}},{key:"replace",value:function(e,n,r){return t.of(r)}},{key:"decomposeLeft",value:function(t,e){e.push(this)}},{key:"decomposeRight",value:function(t,e){e.push(this)}},{key:"applyChanges",value:function(t,e,n,r){for(var i=this,o=r.length-1;o>=0;o--){var a=r[o],s=a.fromA,u=a.toA,l=a.fromB,h=a.toB,c=i.lineAt(s,gn.ByPosNoHeight,e,0,0),f=c.to>=u?c:i.lineAt(u,gn.ByPosNoHeight,e,0,0);for(h+=f.to-u,u=f.to;o>0&&c.from<=r[o-1].toA;)s=r[o-1].fromA,l=r[o-1].fromB,o--,s2*o){var a=e[n-1];a.break?e.splice(--n,1,a.left,null,a.right):e.splice(--n,1,a.left,a.right),r+=1+a.break,i-=a.size}else{if(!(o>2*i))break;var s=e[r];s.break?e.splice(r,1,s.left,null,s.right):e.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else if(i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=e&&n.more&&this.setHeight(t,n.heights[n.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),n}(mn),kn=function(t){k(n,t);var e=w(n);function n(t,r){var i;return D(this,n),(i=e.call(this,t,r,Ot.Text)).collapsed=0,i.widgetHeight=0,i}return P(n,[{key:"replace",value:function(t,e,r){var i=r[0];return 1==r.length&&(i instanceof n||i instanceof bn&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof bn?i=new n(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):mn.of(r)}},{key:"updateHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=e&&r.more?this.setHeight(t,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),n}(yn),bn=function(t){k(n,t);var e=w(n);function n(t){return D(this,n),e.call(this,t,0)}return P(n,[{key:"lines",value:function(t,e){var n=t.lineAt(e).number,r=t.lineAt(e+this.length).number;return{firstLine:n,lastLine:r,lineHeight:this.height/(r-n+1)}}},{key:"blockAt",value:function(t,e,n,r){var i=this.lines(e,r),o=i.firstLine,a=i.lastLine,s=i.lineHeight,u=Math.max(0,Math.min(a-o,Math.floor((t-n)/s))),l=e.line(o+u),h=l.from,c=l.length;return new pn(h,c,n+s*u,s,Ot.Text)}},{key:"lineAt",value:function(t,e,n,r,i){if(e==gn.ByHeight)return this.blockAt(t,n,r,i);if(e==gn.ByPosNoHeight){var o=n.lineAt(t),a=o.from,s=o.to;return new pn(a,s-a,0,0,Ot.Text)}var u=this.lines(n,i),l=u.firstLine,h=u.lineHeight,c=n.lineAt(t),f=c.from,d=c.length,v=c.number;return new pn(f,d,r+h*(v-l),h,Ot.Text)}},{key:"forEachLine",value:function(t,e,n,r,i,o){for(var a=this.lines(n,i),s=a.firstLine,u=a.lineHeight,l=Math.max(t,i),h=Math.min(i+this.length,e);l<=h;){var c=n.lineAt(l);l==t&&(r+=u*(c.number-s)),o(new pn(c.from,c.length,r,u,Ot.Text)),r+=u,l=c.to+1}}},{key:"replace",value:function(t,e,r){var i=this.length-e;if(i>0){var o=r[r.length-1];o instanceof n?r[r.length-1]=new n(o.length+i):r.push(null,new n(i-1))}if(t>0){var a=r[0];a instanceof n?r[0]=new n(t+a.length):r.unshift(new n(t-1),null)}return mn.of(r)}},{key:"decomposeLeft",value:function(t,e){e.push(new n(t-1),null)}},{key:"decomposeRight",value:function(t,e){e.push(null,new n(this.length-t-1))}},{key:"updateHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,o=e+this.length;if(i&&i.from<=e+this.length&&i.more){var a=[],s=Math.max(e,i.from);for(i.from>e&&a.push(new n(i.from-e-1).updateHeight(t,e));s<=o&&i.more;){var u=t.doc.lineAt(s).length;a.length&&a.push(null);var l=new kn(u,i.heights[i.index++]);l.outdated=!1,a.push(l),s+=u+1}return s<=o&&a.push(null,new n(o-s).updateHeight(t,s)),t.heightChanged=!0,mn.of(a)}return(r||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),n}(mn),wn=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this,t.length+r+i.length,t.height+i.height,r|(t.outdated||i.outdated?2:0))).left=t,o.right=i,o.size=t.size+i.size,o}return P(n,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(t,e,n,r){var i=n+this.left.height;return ta))return u;var l=e==gn.ByPosNoHeight?gn.ByPosNoHeight:gn.ByPos;return s?u.join(this.right.lineAt(a,l,n,o,a)):this.left.lineAt(a,l,n,r,i).join(u)}},{key:"forEachLine",value:function(t,e,n,r,i,o){var a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)t=s&&this.right.forEachLine(t,e,n,a,s,o);else{var u=this.lineAt(s,gn.ByPos,n,r,i);t=t&&u.from<=e&&o(u),e>u.to&&this.right.forEachLine(u.to+1,e,n,a,s,o)}}},{key:"replace",value:function(t,e,n){var r=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-r,e-r,n));var i=[];t>0&&this.decomposeLeft(t,i);var o,a=i.length,s=M(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;i.push(u)}}catch(h){s.e(h)}finally{s.f()}if(t>0&&xn(i,a-1),e=++n&&e.push(null),t>n&&this.right.decomposeLeft(t-n,e)}},{key:"decomposeRight",value:function(t,e){var n=this.left.length,r=n+this.break;if(t>=r)return this.right.decomposeRight(t-r,e);t2*e.size||e.size>2*t.size?mn.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}},{key:"updateHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this.left,o=this.right,a=e+i.length+this.break,s=null;return r&&r.from<=e+i.length&&r.more?s=i=i.updateHeight(t,e,n,r):i.updateHeight(t,e,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(t,a,n,r):o.updateHeight(t,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),n}(mn);function xn(t,e){var n,r;null==t[e]&&(n=t[e-1])instanceof bn&&(r=t[e+1])instanceof bn&&t.splice(e-1,3,new bn(n.length+1+r.length))}var Sn=function(){function t(e,n){D(this,t),this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}return P(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(t,e){if(this.lineStart>-1){var n=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof kn?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new kn(n-this.pos,-1)),this.writtenTo=n,e>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(t,e,n){if(t=5)&&this.addLineDeco(r,i)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)){var t=this.oracle.doc.lineAt(this.pos),e=t.from,n=t.to;this.lineStart=e,this.lineEnd=n,this.writtenToe&&this.nodes.push(new kn(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(t,e){var n=new bn(e-t);return this.oracle.doc.lineAt(t).to==e&&(n.flags|=4),n}},{key:"ensureLine",value:function(){this.enterLine();var t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof kn)return t;var e=new kn(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(t){this.enterLine(),t.type!=Ot.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=Ot.WidgetBefore&&(this.covering=t)}},{key:"addLineDeco",value:function(t,e){var n=this.ensureLine();n.length+=e,n.collapsed+=e,n.widgetHeight=Math.max(n.widgetHeight,t),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(t){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof kn||this.isCovered?(this.writtenTo=e&&i<=n}))){var o=t.lineAt(i,0),a=o.from,s=o.to;e.push(new Dn(a,s))}},i=0;i<=1;i++)r(i);this.viewports=e.sort((function(t,e){return t.from-e.from})),this.scaler=this.heightMap.height<=7e6?Ln:new Bn(this.heightOracle.doc,this.heightMap,this.viewports)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state;this.state=t.state;var i=this.state.facet(re),o=t.changedRanges,a=oe.extendWithRanges(o,An(t.startState.facet(re),i,t?t.changes:r.as.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(i,n.doc,this.heightOracle.setDoc(this.state.doc),a),this.heightMap.height!=s&&(t.flags|=2);var u=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,e)),u.eq(this.viewport)||(this.viewport=u,t.flags|=4),this.updateForViewport(),(this.lineGaps.length||this.viewport.to-this.viewport.from>15e3)&&(t.flags|=this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes)))),this.computeVisibleRanges(),e&&(this.scrollTo=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(t,e){var n=t.dom,r="",i=ve.LTR;if(!e){var o=window.getComputedStyle(n);r=o.whiteSpace,i="rtl"==o.direction?ve.RTL:ve.LTR,this.paddingTop=parseInt(o.paddingTop)||0,this.paddingBottom=parseInt(o.paddingBottom)||0}var a=this.printing?{top:-1e8,bottom:1e8,left:-1e8,right:1e8}:function(t,e){for(var n=t.getBoundingClientRect(),r=Math.max(0,n.left),i=Math.min(innerWidth,n.right),o=Math.max(0,n.top),a=Math.min(innerHeight,n.bottom),s=t.parentNode;s;)if(1==s.nodeType){var u=window.getComputedStyle(s);if((s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth)&&"visible"!=u.overflow){var l=s.getBoundingClientRect();r=Math.max(r,l.left),i=Math.min(i,l.right),o=Math.max(o,l.top),a=Math.min(a,l.bottom)}s="absolute"==u.position||"fixed"==u.position?s.offsetParent:s.parentNode}else{if(11!=s.nodeType)break;s=s.host}return{left:r-n.left,right:i-n.left,top:o-(n.top+e),bottom:a-(n.top+e)}}(n,this.paddingTop),s=a.top-this.pixelViewport.top,u=a.bottom-this.pixelViewport.bottom;if(this.pixelViewport=a,this.inView=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left,!this.inView)return 0;var l=t.measureVisibleLineHeights(),h=!1,c=0,f=0,d=this.heightOracle;if(!e){var v=t.dom.clientWidth;if(d.mustRefresh(l,r,i)||d.lineWrapping&&Math.abs(v-this.contentWidth)>d.charWidth){var p=t.measureTextSize(),g=p.lineHeight,m=p.charWidth;(h=d.refresh(r,i,g,m,v/m,l))&&(t.minWidth=0,f|=16)}this.contentWidth!=v&&(this.contentWidth=v,f|=16),s>0&&u>0?c=Math.max(s,u):s<0&&u<0&&(c=Math.min(s,u))}if(d.heightChanged=!1,this.heightMap=this.heightMap.updateHeight(d,0,h,new vn(this.viewport.from,l)),d.heightChanged&&(f|=2),!this.viewportIsAppropriate(this.viewport,c)||this.scrollTo&&(this.scrollTo.headthis.viewport.to)){var y=this.getViewport(c,this.scrollTo);y.from==this.viewport.from&&y.to==this.viewport.to||(this.viewport=y,f|=4)}return this.updateForViewport(),(this.lineGaps.length||this.viewport.to-this.viewport.from>15e3)&&(f|=this.updateLineGaps(this.ensureLineGaps(h?[]:this.lineGaps))),this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.enforceCursorAssoc()),f}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top,0)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom,0)}},{key:"getViewport",value:function(t,e){var n=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),r=this.heightMap,i=this.state.doc,o=this.visibleTop,a=this.visibleBottom,s=new Dn(r.lineAt(o-1e3*n,gn.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),gn.ByHeight,i,0,0).to);if(e)if(e.heads.to){var l=r.lineAt(e.head,gn.ByPos,i,0,0).bottom;s=new Dn(r.lineAt(l-(a-o)-500,gn.ByHeight,i,0,0).from,r.lineAt(l+500,gn.ByHeight,i,0,0).to)}return s}},{key:"mapViewport",value:function(t,e){var n=e.mapPos(t.from,-1),r=e.mapPos(t.to,1);return new Dn(this.heightMap.lineAt(n,gn.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(r,gn.ByPos,this.state.doc,0,0).to)}},{key:"viewportIsAppropriate",value:function(t){var e=t.from,n=t.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.heightMap.lineAt(e,gn.ByPos,this.state.doc,0,0),o=i.top,a=this.heightMap.lineAt(n,gn.ByPos,this.state.doc,0,0),s=a.bottom,u=this.visibleTop,l=this.visibleBottom;return(0==e||o<=u-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||s>=l+Math.max(10,Math.min(r,250)))&&o>u-2e3&&si&&(r.push({from:i,to:t}),o+=t-i),i=e}},20),i=r.from&&(o=l.from),l.from<=r.to&&l.to>=s&&(s=l.to);var h=o-1e4,c=s+1e4;h>r.from+5e3&&n.push(Rn(t,(function(t){return t.from==r.from&&t.to>h-5e3&&t.toc-5e3&&t.from=1)return r[r.length-1].to;for(var i=Math.floor(n*e),o=0;;o++){var a=r[o],s=a.from,u=a.to-s;if(i<=u)return s+i;i-=u}}function Pn(t,e){var n,r=0,i=M(t.ranges);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.from,s=o.to;if(e<=s){r+=e-a;break}r+=s-a}}catch(u){i.e(u)}finally{i.f()}return r/t.total}function Rn(t,e){var n,r=M(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e(i))return i}}catch(o){r.e(o)}finally{r.f()}}var Ln={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},Bn=function(){function t(e,n,r){D(this,t);var i=0,o=0,a=0;this.viewports=r.map((function(t){var r=t.from,o=t.to,a=n.lineAt(r,gn.ByPos,e,0,0).top,s=n.lineAt(o,gn.ByPos,e,0,0).bottom;return i+=s-a,{from:r,to:o,top:a,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-i)/(n.height-i);var s,u=M(this.viewports);try{for(u.s();!(s=u.n()).done;){var l=s.value;l.domTop=a+(l.top-o)*this.scale,a=l.domBottom=l.domTop+(l.bottom-l.top),o=l.bottom}}catch(h){u.e(h)}finally{u.f()}}return P(t,[{key:"toDOM",value:function(t,e){t-=e;for(var n=0,r=0,i=0;;n++){var o=n-1}}),Vn=o.V.newName(),_n=o.V.newName(),Wn=o.V.newName(),zn={"&light":"."+_n,"&dark":"."+Wn};function Hn(t,e,n){return new o.V(e,{finish:function(e){return/&/.test(e)?e.replace(/&\w*/,(function(e){if("&"==e)return t;if(!n||!n[e])throw new RangeError("Unsupported selector: ".concat(e));return n[e]})):t+" "+e}})}var qn=Hn("."+Vn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none"},".cm-lineWrapping":{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},".cm-cursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none",display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-placeholder":{color:"#888",display:"inline-block"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"3px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},zn),Fn={childList:!0,characterData:!0,subtree:!0,characterDataOldValue:!0},$n=ct.ie&&ct.ie_version<=11,Un=function(){function t(e,n,r){var i=this;D(this,t),this.view=e,this.onChange=n,this.onScrollChanged=r,this.active=!1,this.ignoreSelection=new F,this.delayedFlush=-1,this.queue=[],this.lastFlush=0,this.scrollTargets=[],this.intersection=null,this.intersecting=!1,this._selectionRange=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((function(t){var n,r=M(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;i.queue.push(o)}}catch(a){r.e(a)}finally{r.f()}i._selectionRange=null,(ct.ie&&ct.ie_version<=11||ct.ios&&e.composing)&&t.some((function(t){return"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length}))?i.flushSoon():i.flush()})),$n&&(this.onCharData=function(t){i.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),i.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.start(),this.onScroll=this.onScroll.bind(this),window.addEventListener("scroll",this.onScroll),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((function(t){i.parentCheck<0&&(i.parentCheck=setTimeout(i.listenForScroll.bind(i),1e3)),t[t.length-1].intersectionRatio>0!=i.intersecting&&(i.intersecting=!i.intersecting,i.intersecting!=i.view.inView&&i.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom)),this.listenForScroll()}return P(t,[{key:"onScroll",value:function(t){this.intersecting&&this.flush(),this.onScrollChanged(t)}},{key:"onSelectionChange",value:function(t){this.lastFlush=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1,this.flush())}},{key:"flush",value:function(){var t=this;if(!(this.delayedFlush>=0)){this.lastFlush=Date.now();var e,n=this.queue,r=M(this.observer.takeRecords());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i)}}catch(p){r.e(p)}finally{r.f()}n.length&&(this.queue=[]);var o=this.selectionRange,a=!this.ignoreSelection.eq(o)&&B(this.dom,o);if(0!=n.length||a){var s,u=-1,l=-1,h=!1,c=M(n);try{for(c.s();!(s=c.n()).done;){var f=s.value,d=this.readMutation(f);d&&(d.typeOver&&(h=!0),-1==u?(u=d.from,l=d.to):(u=Math.min(d.from,u),l=Math.max(d.to,l)))}}catch(p){c.e(p)}finally{c.f()}var v=this.view.state;(u>-1||a)&&this.onChange(u,l,h),this.view.state==v&&(this.view.docView.dirty&&(this.ignore((function(){return t.view.docView.sync()})),this.view.docView.dirty=0),this.view.docView.updateSelection()),this.clearSelection()}}}},{key:"readMutation",value:function(t){var e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty(),"childList"==t.type){var n=Gn(e,t.previousSibling||t.target.previousSibling,-1),r=Gn(e,t.nextSibling||t.target.nextSibling,1);return{from:n?e.posAfter(n):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}}},{key:"destroy",value:function(){this.stop(),this.intersection&&this.intersection.disconnect();var t,e=M(this.scrollTargets);try{for(e.s();!(t=e.n()).done;){t.value.removeEventListener("scroll",this.onScroll)}}catch(n){e.e(n)}finally{e.f()}window.removeEventListener("scroll",this.onScroll),clearTimeout(this.parentCheck)}}]),t}();function Gn(t,e,n){for(;e;){var r=Y.get(e);if(r&&r.parent==t)return r;var i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function Jn(t,e,n,i){var o,a,s,u=t.state.selection.main;if(e>-1&&(s=t.docView.domBoundsAround(e,n,0))){var l=s,h=l.from,c=l.to,f=t.docView.impreciseHead||t.docView.impreciseAnchor?[]:function(t){var e=[];if(t.root.activeElement!=t.contentDOM)return e;var n=t.observer.selectionRange,r=n.anchorNode,i=n.anchorOffset,o=n.focusNode,a=n.focusOffset;r&&(e.push(new Xn(r,i)),o==r&&a==i||e.push(new Xn(o,a)));return e}(t),d=new Kn(f,t);d.readRange(s.startDOM,s.endDOM),a=function(t,e){if(0==t.length)return null;var n=t[0].pos,i=2==t.length?t[1].pos:n;return n>-1&&i>-1?r.jT.single(n+e,i+e):null}(f,h);var v=u.from,p=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||ct.android&&d.text.length0&&s>0&&t.charCodeAt(a-1)==e.charCodeAt(s-1);)a--,s--;if("end"==r){n-=a+Math.max(0,o-Math.min(a,s))-o}if(a=a?o-n:0)+(s-a),a=o}else if(s=s?o-n:0)+(a-s),s=o}return{from:o,toA:a,toB:s}}(t.state.sliceDoc(h,c),d.text,v-h,p);g&&(o={from:h+g.from,to:h+g.toA,insert:t.state.toText(d.text.slice(g.from,g.toB))})}else if(t.hasFocus||!t.state.facet(Gt)){var m=t.observer.selectionRange,y=t.docView,k=y.impreciseHead,b=y.impreciseAnchor,w=k&&k.node==m.focusNode&&k.offset==m.focusOffset||!L(t.contentDOM,m.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(m.focusNode,m.focusOffset),x=b&&b.node==m.anchorNode&&b.offset==m.anchorOffset||!L(t.contentDOM,m.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(m.anchorNode,m.anchorOffset);w==u.head&&x==u.anchor||(a=r.jT.single(x,w))}if(o||a)if(!o&&i&&!u.empty&&a&&a.main.empty?o={from:u.from,to:u.to,insert:t.state.doc.slice(u.from,u.to)}:o&&o.from>=u.from&&o.to<=u.to&&(o.from!=u.from||o.to!=u.to)&&u.to-u.from-(o.to-o.from)<=4&&(o={from:u.from,to:u.to,insert:t.state.doc.slice(u.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,u.to))}),o){var S=t.state;if(ct.android&&(o.from==u.from&&o.to==u.to&&1==o.insert.length&&2==o.insert.lines&&Qn(t,"Enter",13)||o.from==u.from-1&&o.to==u.to&&0==o.insert.length&&Qn(t,"Backspace",8)||o.from==u.from&&o.to==u.to+1&&0==o.insert.length&&Qn(t,"Delete",46))||ct.ios&&(t.inputState.lastIOSEnter>Date.now()-225&&o.insert.lines>1&&Qn(t,"Enter",13)||t.inputState.lastIOSBackspace>Date.now()-225&&!o.insert.length&&Qn(t,"Backspace",8)))return;var A,C=o.insert.toString();if(t.state.facet($t).some((function(e){return e(t,o.from,o.to,C)})))return;if(t.inputState.composing>=0&&t.inputState.composing++,o.from>=u.from&&o.to<=u.to&&o.to-o.from>=(u.to-u.from)/3&&(!a||a.main.empty&&a.main.from==o.from+o.insert.length)){var M=u.fromo.to?S.sliceDoc(o.to,u.to):"";A=S.replaceSelection(t.state.toText(M+o.insert.sliceString(0,void 0,t.state.lineBreak)+O))}else{var T=S.changes(o);A={changes:T,selection:a&&!S.selection.main.eq(a.main)&&a.main.to<=T.newLength?S.selection.replaceRange(a.main):void 0}}t.dispatch(A,{scrollIntoView:!0,annotations:r.YW.userEvent.of("input")})}else if(a&&!a.main.eq(u)){var D,E=!1;t.inputState.lastSelectionTime>Date.now()-50&&("keyboardselection"==t.inputState.lastSelectionOrigin?E=!0:D=r.YW.userEvent.of(t.inputState.lastSelectionOrigin)),t.dispatch({selection:a,scrollIntoView:E,annotations:D})}}var Kn=function(){function t(e,n){D(this,t),this.points=e,this.view=n,this.text="",this.lineBreak=n.state.lineBreak}return P(t,[{key:"readRange",value:function(t,e){if(t){for(var n=t.parentNode,r=t;;){this.findPointBefore(n,r),this.readNode(r);var i=r.nextSibling;if(i==e)break;var o=Y.get(r),a=Y.get(i);((o?o.breakAfter:Yn(r))||(a?a.breakAfter:Yn(i))&&("BR"!=r.nodeName||r.cmIgnore))&&(this.text+=this.lineBreak),r=i}this.findPointBefore(n,e)}}},{key:"readNode",value:function(t){if(!t.cmIgnore){var e,n=Y.get(t),r=n&&n.overrideDOMText;null!=r?e=r.sliceString(0,void 0,this.lineBreak):3==t.nodeType?e=t.nodeValue:"BR"==t.nodeName?e=t.nextSibling?this.lineBreak:"":1==t.nodeType&&this.readRange(t.firstChild,null),null!=e&&(this.findPointIn(t,e.length),this.text+=e,ct.chrome&&13==this.view.inputState.lastKeyCode&&!t.nextSibling&&/\n\n$/.test(this.text)&&(this.text=this.text.slice(0,-1)))}}},{key:"findPointBefore",value:function(t,e){var n,r=M(this.points);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}}catch(o){r.e(o)}finally{r.f()}}},{key:"findPointIn",value:function(t,e){var n,r=M(this.points);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e))}}catch(o){r.e(o)}finally{r.f()}}}]),t}();function Yn(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Xn=function t(e,n){D(this,t),this.node=e,this.offset=n,this.pos=-1};function Qn(t,e,n){var r={key:e,code:e,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,t.contentDOM.dispatchEvent(i);var o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.contentDOM.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}var Zn=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};D(this,t),this.plugins=[],this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=n.dispatch||function(t){return e.update([t])},this.dispatch=this.dispatch.bind(this),this.root=n.root||document,this.viewState=new Tn(n.state||r.yy.create()),this.plugins=this.state.facet(Xt).map((function(t){return new te(t).update(e)})),this.observer=new Un(this,(function(t,n,r){Jn(e,t,n,r)}),(function(t){e.inputState.runScrollHandlers(e,t),e.observer.intersecting&&e.measure()})),this.inputState=new Ue(this),this.docView=new se(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,rr(),this.requestMeasure(),n.parent&&n.parent.appendChild(this.dom)}return P(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"dispatch",value:function(){var t;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof r.YW?arguments.length<=0?void 0:arguments[0]:(t=this.state).update.apply(t,arguments))}},{key:"update",value:function(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var e,n,i=!1,o=this.state,a=M(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=s.state}}catch(c){a.e(c)}finally{a.f()}if(o.facet(r.yy.phrases)!=this.state.facet(r.yy.phrases))return this.setState(o);e=new ae(this,o,t);try{this.updateState=2;var u=t.some((function(t){return t.scrollIntoView}))?o.selection.main:null;this.viewState.update(e,u),this.bidiCache=ar.update(this.bidiCache,e.changes),e.empty||this.updatePlugins(e),i=this.docView.update(e),this.state.facet(ie)!=this.styleModules&&this.mountStyles(),this.updateAttrs(),this.showAnnouncements(t)}finally{this.updateState=0}if((i||scrollTo||this.viewState.mustEnforceCursorAssoc)&&this.requestMeasure(),!e.empty){var l,h=M(this.state.facet(Ft));try{for(h.s();!(l=h.n()).done;){(0,l.value)(e)}}catch(c){h.e(c)}finally{h.f()}}}},{key:"setState",value:function(t){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");this.updateState=2;try{var n,r=M(this.plugins);try{for(r.s();!(n=r.n()).done;){n.value.destroy(this)}}catch(i){r.e(i)}finally{r.f()}this.viewState=new Tn(t),this.plugins=t.facet(Xt).map((function(t){return new te(t).update(e)})),this.docView=new se(this),this.inputState.ensureHandlers(this),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}this.requestMeasure()}},{key:"updatePlugins",value:function(t){var e=t.startState.facet(Xt),n=t.state.facet(Xt);if(e!=n){var r,i=[],o=M(n);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=e.indexOf(a);if(s<0)i.push(new te(a));else{var u=this.plugins[s];u.mustUpdate=t,i.push(u)}}}catch(p){o.e(p)}finally{o.f()}var l,h=M(this.plugins);try{for(h.s();!(l=h.n()).done;){var c=l.value;c.mustUpdate!=t&&c.destroy(this)}}catch(p){h.e(p)}finally{h.f()}this.plugins=i,this.inputState.ensureHandlers(this)}else{var f,d=M(this.plugins);try{for(d.s();!(f=d.n()).done;){f.value.mustUpdate=t}}catch(p){d.e(p)}finally{d.f()}}for(var v=0;v-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=-1;var e=null;try{for(var n=0;;n++){this.updateState=1;var r=this.viewState.measure(this.docView,n>0),i=this.measureRequests;if(!r&&!i.length&&null==this.viewState.scrollTo)break;if(this.measureRequests=[],n>5){console.warn("Viewport failed to stabilize");break}var o=i.map((function(e){try{return e.read(t)}catch(n){return Ut(t.state,n),or}})),a=new ae(this,this.state);a.flags|=r,e?e.flags|=r:e=a,this.updateState=2,a.empty||this.updatePlugins(a),this.updateAttrs(),r&&this.docView.update(a);for(var s=0;s-1&&this.measure()}},{key:"requestMeasure",value:function(t){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame((function(){return e.measure()}))),t){if(null!=t.key)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return this.viewState.lineAt(t,e)}},{key:"contentHeight",get:function(){return this.viewState.contentHeight}},{key:"moveByChar",value:function(t,e,n){return $e(this,t,e,n)}},{key:"moveByGroup",value:function(t,e){var n=this;return $e(this,t,e,(function(e){return function(t,e,n){var i=t.state.charCategorizer(e),o=i(n);return function(t){var e=i(t);return o==r.D0.Space&&(o=e),o==e}}(n,t.head,e)}))}},{key:"moveToLineBoundary",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Fe(this,t,e,n)}},{key:"moveVertically",value:function(t,e,n){return function(t,e,n,o){var a,s=e.head,u=n?1:-1;if(s==(n?t.state.doc.length:0))return r.jT.cursor(s);var l=t.coordsAtPos(s);if(l)for(var h=t.dom.getBoundingClientRect(),c=null!==(a=e.goalColumn)&&void 0!==a?a:l.left-h.left,f=h.left+c,d=null!=o?o:t.defaultLineHeight>>1,v=u<0?l.top:l.bottom,p=0;p<50;p+=10){var g=He(t,{x:f,y:v+(d+p)*u},u);if(null==g)break;if(g!=s)return r.jT.cursor(g,void 0,void 0,c)}var m=t.state.doc,y=m.lineAt(s),k=t.state.tabSize,b=e.goalColumn,w=0;if(null==b){for(var x=m.iterRange(y.from,s);!x.next().done;)w=(0,i.IS)(x.value,w,k);b=w*t.defaultCharacterWidth}else w=Math.round(b/t.defaultCharacterWidth);if(u<0&&0==y.from)return r.jT.cursor(0);if(u>0&&y.to==m.length)return r.jT.cursor(y.to);for(var S=m.line(y.number+u),A=S.from,C=0,M=m.iterRange(S.from,S.to);C>=w&&!M.next().done;){var O=(0,i.Gz)(M.value,C,w,k),T=O.offset;C=w-O.leftOver,A+=T}return r.jT.cursor(A,void 0,void 0,b)}(this,t,e,n)}},{key:"scrollPosIntoView",value:function(t){this.viewState.scrollTo=r.jT.cursor(t),this.requestMeasure()}},{key:"domAtPos",value:function(t){return this.docView.domAtPos(t)}},{key:"posAtDOM",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(t,e)}},{key:"posAtCoords",value:function(t){return this.readMeasured(),He(this,t)}},{key:"coordsAtPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var n=this.docView.coordsAt(t,e);if(!n||n.left==n.right)return n;var r=this.state.doc.lineAt(t),i=this.bidiSpans(r),o=i[De.find(i,t-r.from,-1,e)];return z(n,o.dir==ve.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.heightOracle.direction}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(t){if(t.length>tr)return Re(t.length);var e,n=this.textDirection,r=M(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i.from==t.from&&i.dir==n)return i.order}}catch(a){r.e(a)}finally{r.f()}var o=Pe(t.text,this.textDirection);return this.bidiCache.push(new ar(t.from,t.to,n,o)),o}},{key:"hasFocus",get:function(){var t;return(document.hasFocus()||ct.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var t=this;this.observer.ignore((function(){U(t.contentDOM),t.docView.updateSelection()}))}},{key:"destroy",value:function(){var t,e=M(this.plugins);try{for(e.s();!(t=e.n()).done;){t.value.destroy(this)}}catch(n){e.e(n)}finally{e.f()}this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled)}}],[{key:"domEventHandlers",value:function(t){return Qt.define((function(){return{}}),{eventHandlers:t})}},{key:"theme",value:function(t,e){var n=o.V.newName(),r=[In.of(n),ie.of(Hn(".".concat(n),t))];return e&&e.dark&&r.push(jn.of(!0)),r}},{key:"baseTheme",value:function(t){return r.Wl.fallback(ie.of(Hn("."+Vn,t,zn)))}}]),t}();Zn.styleModule=ie,Zn.inputHandler=$t,Zn.exceptionSink=qt,Zn.updateListener=Ft,Zn.editable=Gt,Zn.mouseSelectionStyle=Ht,Zn.dragMovesSelection=zt,Zn.clickAddsSelectionRange=Wt,Zn.decorations=re,Zn.contentAttributes=ne,Zn.editorAttributes=ee,Zn.lineWrapping=Zn.contentAttributes.of({class:"cm-lineWrapping"}),Zn.announce=r.Py.define();var tr=4096;function er(t,e){return null==t?e.getBoundingClientRect().top:t}var nr=-1;function rr(){window.addEventListener("resize",(function(){-1==nr&&(nr=setTimeout(ir,50))}))}function ir(){nr=-1;for(var t=document.querySelectorAll(".cm-content"),e=0;e1&&void 0!==arguments[1]?arguments[1]:sr,r=Object.create(null),i=Object.create(null),o=function(t,e){var n=i[t];if(null==n)i[t]=e;else if(n!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},a=function(t,e,i,a){for(var s=r[t]||(r[t]=Object.create(null)),u=e.split(/ (?!$)/).map((function(t){return ur(t,n)})),l=function(e){var n=u.slice(0,e).join(" ");o(n,!0),s[n]||(s[n]={preventDefault:!0,commands:[function(e){var r=pr={view:e,prefix:n,scope:t};return setTimeout((function(){pr==r&&(pr=null)}),gr),!0}]})},h=1;h0&&void 0!==arguments[0]?arguments[0]:{};return[kr.of(t),xr,Ar]}var wr=function(){function t(e,n,r,i,o){D(this,t),this.left=e,this.top=n,this.width=r,this.height=i,this.className=o}return P(t,[{key:"draw",value:function(){var t=document.createElement("div");return t.className=this.className,this.adjust(t),t}},{key:"adjust",value:function(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width>=0&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}},{key:"eq",value:function(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}}]),t}(),xr=Qt.fromClass(function(){function t(e){D(this,t),this.view=e,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=e.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className="cm-selectionLayer",this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}return P(t,[{key:"setBlinkRate",value:function(){this.cursorLayer.style.animationDuration=this.view.state.facet(kr).cursorBlinkRate+"ms"}},{key:"update",value:function(t){var e=t.startState.facet(kr)!=t.state.facet(kr);(e||t.selectionSet||t.geometryChanged||t.viewportChanged)&&this.view.requestMeasure(this.measureReq),t.transactions.some((function(t){return t.scrollIntoView}))&&(this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),e&&this.setBlinkRate()}},{key:"readPos",value:function(){var t,e=this,n=this.view.state,r=n.facet(kr),i=n.selection.ranges.map((function(t){return t.empty?[]:function(t,e){if(e.to<=t.viewport.from||e.from>=t.viewport.to)return[];var n=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),i=t.textDirection==ve.LTR,o=t.contentDOM,a=o.getBoundingClientRect(),s=Cr(t),u=window.getComputedStyle(o.firstChild),l=a.left+parseInt(u.paddingLeft),h=a.right-parseInt(u.paddingRight),c=t.visualLineAt(n),f=t.visualLineAt(r);t.lineWrapping&&(c=Mr(t,n,c),f=Mr(t,r,f));if(c.from==f.from)return m(y(e.from,e.to,c));var d=y(e.from,null,c),v=y(null,e.to,f),p=[];return c.tof&&p.from=m)break;S>g&&u(Math.max(x,g),null==e&&x<=f,Math.min(S,m),null==n&&S>=d,w.dir)}}catch(A){b.e(A)}finally{b.f()}if((g=k.to+1)>=m)break}}}catch(A){v.e(A)}finally{v.f()}return 0==s.length&&u(f,null==e,d,null==n,t.textDirection),{top:o,bottom:a,horizontal:s}}}(e.view,t)})).reduce((function(t,e){return t.concat(e)})),o=[],a=M(n.selection.ranges);try{for(a.s();!(t=a.n()).done;){var s=t.value,u=s==n.selection.main;if(s.empty?!u||yr:r.drawRangeCursor){var l=Or(this.view,s,u);l&&o.push(l)}}}catch(h){a.e(h)}finally{a.f()}return{rangePieces:i,cursors:o}}},{key:"drawSel",value:function(t){var e=this,n=t.rangePieces,r=t.cursors;if(n.length!=this.rangePieces.length||n.some((function(t,n){return!t.eq(e.rangePieces[n])}))){this.selectionLayer.textContent="";var i,o=M(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.selectionLayer.appendChild(a.draw())}}catch(c){o.e(c)}finally{o.f()}this.rangePieces=n}if(r.length!=this.cursors.length||r.some((function(t,n){return!t.eq(e.cursors[n])}))){var s=this.cursorLayer.children;if(s.length!==r.length){this.cursorLayer.textContent="";var u,l=M(r);try{for(l.s();!(u=l.n()).done;){var h=u.value;this.cursorLayer.appendChild(h.draw())}}catch(c){l.e(c)}finally{l.f()}}else r.forEach((function(t,e){return t.adjust(s[e])}));this.cursors=r}}},{key:"destroy",value:function(){this.selectionLayer.remove(),this.cursorLayer.remove()}}]),t}()),Sr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};yr&&(Sr[".cm-line"].caretColor="transparent !important");var Ar=r.Wl.override(Zn.theme(Sr));function Cr(t){var e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==ve.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function Mr(t,e,n){var i=r.jT.cursor(e);return{from:Math.max(n.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,t.moveToLineBoundary(i,!0,!0).from)}}function Or(t,e,n){var r=t.coordsAtPos(e.head,e.assoc||1);if(!r)return null;var i=Cr(t);return new wr(r.left-i.left,r.top-i.top,-1,r.bottom-r.top,n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary")}function Tr(){return Er}var Dr=Tt.line({attributes:{class:"cm-activeLine"}}),Er=Qt.fromClass(function(){function t(e){D(this,t),this.decorations=this.getDeco(e)}return P(t,[{key:"update",value:function(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var e,n=-1,r=[],i=M(t.state.selection.ranges);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(!o.empty)return Tt.none;var a=t.visualLineAt(o.head);a.from>n&&(r.push(Dr.range(a.from)),n=a.from)}}catch(s){i.e(s)}finally{i.f()}return Tt.set(r)}}]),t}(),{decorations:function(t){return t.decorations}})},26856:function(t,e,n){"use strict";function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},n=e.deserialize;o(this,t),this.id=l++,this.deserialize=n||function(){throw new Error("This node type doesn't define a deserialize function")}}return s(t,[{key:"set",value:function(t,e){return t[this.id]=e,t}},{key:"add",value:function(t){var e=this;return"function"!=typeof t&&(t=d.match(t)),function(n){var r=t(n);return void 0===r?null:[e,r]}}}],[{key:"string",value:function(){return new t({deserialize:function(t){return t}})}},{key:"number",value:function(){return new t({deserialize:Number})}},{key:"flag",value:function(){return new t({deserialize:function(){return!0}})}}]),t}();c.closedBy=new c({deserialize:function(t){return t.split(" ")}}),c.openedBy=new c({deserialize:function(t){return t.split(" ")}}),c.group=new c({deserialize:function(t){return t.split(" ")}});var f=Object.create(null),d=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;o(this,t),this.name=e,this.props=n,this.id=r,this.flags=i}return s(t,[{key:"prop",value:function(t){return this.props[t.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(t){if("string"==typeof t){if(this.name==t)return!0;var e=this.prop(c.group);return!!e&&e.indexOf(t)>-1}return this.id==t}}],[{key:"define",value:function(e){var n=e.props&&e.props.length?Object.create(null):f,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),o=new t(e.name||"",n,e.id,i);if(e.props){var a,s=r(e.props);try{for(s.s();!(a=s.n()).done;){var u=a.value;Array.isArray(u)||(u=u(o)),u&&u[0].set(n,u[1])}}catch(l){s.e(l)}finally{s.f()}}return o}},{key:"match",value:function(t){var e=Object.create(null);for(var n in t){var i,o=r(n.split(" "));try{for(o.s();!(i=o.n()).done;){var a=i.value;e[a]=t[n]}}catch(s){o.e(s)}finally{o.f()}}return function(t){for(var n=t.prop(c.group),r=-1;r<(n?n.length:0);r++){var i=e[r<0?t.name:n[r]];if(i)return i}}}}]),t}();d.none=new d("",Object.create(null),0,8);var v=function(){function t(e){o(this,t),this.types=e;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=null!=t&&h.get(this)||this.topNode,r=new x(n);return null!=t&&(r.moveTo(t,e),h.set(this,r._tree)),r}},{key:"fullCursor",value:function(){return new x(this.topNode,!0)}},{key:"topNode",get:function(){return new y(this,0,0,null)}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.cursor(t,e).node}},{key:"iterate",value:function(t){for(var e=t.enter,n=t.leave,r=t.from,i=void 0===r?0:r,o=t.to,a=void 0===o?this.length:o,s=this.cursor();;){var u=!1;if(s.from<=a&&s.to>=i&&(s.type.isAnonymous||!1!==e(s.type,s.from,s.to))){if(s.firstChild())continue;s.type.isAnonymous||(u=!0)}for(;u&&n&&n(s.type,s.from,s.to),u=s.type.isAnonymous,!s.nextSibling();){if(!s.parent())return;u=!0}}}},{key:"balance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return this.children.length<=C?this:O(this.type,d.none,this.children,this.positions,0,this.children.length,0,t,this.length,0)}}],[{key:"build",value:function(t){return M(t)}}]),t}();function g(t,e){return e&&(t.contextHash=e),t}p.empty=new p(d.none,[],[],0);var m=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.none;o(this,t),this.buffer=e,this.length=n,this.set=r,this.type=i}return s(t,[{key:"toString",value:function(){for(var t=[],e=0;e0){if(u>r&&(o=a),u>r)break}else if(s=r)break}else if(o=a,n>0)break;return o}}]),t}(),y=function(){function t(e,n,r,i){o(this,t),this.node=e,this.from=n,this.index=r,this._parent=i}return s(t,[{key:"type",get:function(){return this.node.type}},{key:"name",get:function(){return this.node.type.name}},{key:"to",get:function(){return this.from+this.node.length}},{key:"nextChild",value:function(e,n,r){for(var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this;;){for(var a=o.node,s=a.children,u=a.positions,l=n>0?s.length:-1;e!=l;e+=n){var h=s[e],c=u[e]+o.from;if(-1e8==r||!(n<0?c>=r:c+h.length<=r))if(h instanceof m){var f=h.findChild(0,h.buffer.length,n,-1e8==r?-1e8:r-c);if(f>-1)return new w(new b(o,h,e,c),null,f)}else if(i||!h.type.isAnonymous||S(h)){var d=new t(h,c,e,o);return i||!d.type.isAnonymous?d:d.nextChild(n<0?h.children.length-1:0,n,r)}}if(i||!o.type.isAnonymous)return null;if(e=o.index+n,!(o=o._parent))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,-1e8)}},{key:"lastChild",get:function(){return this.nextChild(this.node.children.length-1,-1,-1e8)}},{key:"childAfter",value:function(t){return this.nextChild(0,1,t)}},{key:"childBefore",value:function(t){return this.nextChild(this.node.children.length-1,-1,t)}},{key:"nextSignificantParent",value:function(){for(var t=this;t.type.isAnonymous&&t._parent;)t=t._parent;return t}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent?this._parent.nextChild(this.index+1,1,-1):null}},{key:"prevSibling",get:function(){return this._parent?this._parent.nextChild(this.index-1,-1,-1):null}},{key:"cursor",get:function(){return new x(this)}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.cursor.moveTo(t,e).node}},{key:"getChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=k(this,t,e,n);return r.length?r[0]:null}},{key:"getChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return k(this,t,e,n)}},{key:"toString",value:function(){return this.node.toString()}}]),t}();function k(t,e,n,r){var i=t.cursor,o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}var b=function t(e,n,r,i){o(this,t),this.parent=e,this.buffer=n,this.index=r,this.start=i},w=function(){function t(e,n,r){o(this,t),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}return s(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(e,n){var r=this.context.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,-1e8==n?-1e8:n-this.context.start);return i<0?null:new t(this.context,this,i)}},{key:"firstChild",get:function(){return this.child(1,-1e8)}},{key:"lastChild",get:function(){return this.child(-1,-1e8)}},{key:"childAfter",value:function(t){return this.child(1,t)}},{key:"childBefore",value:function(t){return this.child(-1,t)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,-1)}},{key:"nextSibling",get:function(){var e=this.context.buffer,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,n):this.externalSibling(1)}},{key:"prevSibling",get:function(){var e=this.context.buffer,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(n,this.index,-1,-1e8))}},{key:"cursor",get:function(){return new x(this)}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.cursor.moveTo(t,e).node}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=k(this,t,e,n);return r.length?r[0]:null}},{key:"getChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return k(this,t,e,n)}}]),t}(),x=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o(this,t),this.full=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof y)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(var r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}return s(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}},{key:"yieldBuf",value:function(t,e){this.index=t;var n=this.buffer,r=n.start,i=n.buffer;return this.type=e||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}},{key:"yield",value:function(t){return!!t&&(t instanceof y?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enter",value:function(t,e){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree.node.children.length-1:0,t,e,this.full));var n=this.buffer.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],t,-1e8==e?-1e8:e-this.buffer.start);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}},{key:"firstChild",value:function(){return this.enter(1,-1e8)}},{key:"lastChild",value:function(){return this.enter(-1,-1e8)}},{key:"childAfter",value:function(t){return this.enter(1,t)}},{key:"childBefore",value:function(t){return this.enter(-1,t)}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.full?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var t=this.full?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}},{key:"sibling",value:function(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree._parent.nextChild(this._tree.index+t,t,-1e8,this.full));var e=this.buffer.buffer,n=this.stack.length-1;if(t<0){var r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,-1e8))}else{var i=e.buffer[this.index+3];if(i<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,-1e8,this.full))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(t){var e,n,r=this.buffer;if(r){if(t>0){if(this.index1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(var o=t;o;o=o._parent)if(o.index==r){if(r==this.index)return o;e=o,n=i+1;break t}r=this.stack[--i]}for(var a=n;al;)if(n.id!=e){var h=n.size,c=n.pos-h;if(h<0||c=f?4:0,p=n.start;for(n.next();n.pos>c;){if(n.size<0)break t;n.id>=f&&(d+=4),n.next()}i=p,r+=h,o+=d}else u.size=r,u.start=i,u.skip=o,o+=4,r+=4,n.next();(e<0||r==t)&&(u.size=r,u.start=i,u.skip=o);return u.size>4?u:void 0}(v.pos-e,o))){for(var T=new Uint16Array(A.size-A.skip),D=v.pos-A.size,E=T.length;v.pos>D;)E=w(A.start,T,E,o);S=new m(T,l-A.start,r,o<0?d.none:y[o]),x=A.start-t}else{var P=v.pos-c;v.next();for(var R=[],L=[],B=a>=f?a:-1;v.pos>P;)v.id==B?v.next():b(u,P,R,L,B);R.reverse(),L.reverse(),S=B>-1&&R.length>C?O(M,M,R,L,0,R.length,0,s,l-u,k):g(new p(M,R,L,l-u),k)}n.push(S),i.push(x)}function w(t,e,n,r){var i=v.id,o=v.start,a=v.end,s=v.size;if(v.next(),i==r)return n;var u=n;if(s>4)for(var l=v.pos-(s-4);v.pos>l;)n=w(t,e,n,r);return i0;)b(t.start||0,0,x,S,-1);var M=null!==(e=t.length)&&void 0!==e?e:x.length?S[0]+x[0].length:0;return new p(y[o],x.reverse(),S.reverse(),M)}function O(t,e,n,r,i,o,a,s,u,l){var h=[],c=[];if(u<=s)for(var f=i;fv)break}if(m==y+1){var b=n[y];if(b instanceof p&&b.type==e&&b.length>v<<1){for(var w=0;w0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"applyChanges",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!n.length)return e;for(var i=[],o=1,a=e.length?e[0]:null,s=0,u=0,l=0;;){var h=s=r)for(;a&&a.from=f.from||c<=f.to||l){var d=Math.max(f.from,u)-l,v=Math.min(f.to,c)-l;f=d>=v?null:new t(d,v,f.tree,f.offset+l,(s>0?1:0)|(h?2:0))}if(f&&i.push(f),a.to>c)break;a=o1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=[new t(0,e.length,e,0,o?2:0)],s=r(i);try{for(s.s();!(n=s.n()).done;){var u=n.value;u.to>e.length&&a.push(u)}}catch(l){s.e(l)}finally{s.f()}return a}}]),t}()},62038:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,o),e)for(var s=0;s=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n
    \n ',""])),this._error):"",this.supervisor.localize("addon.configuration.audio.input"),this._setInputDevice,this._selectedInput,this._inputDevices&&this._inputDevices.map((function(e){return(0,n.dy)(b||(b=x(["\n \n ","\n \n "])),e.device||"",e.name)})),this.supervisor.localize("addon.configuration.audio.output"),this._setOutputDevice,this._selectedOutput,this._outputDevices&&this._outputDevices.map((function(e){return(0,n.dy)(g||(g=x(["\n ","\n "])),e.device||"",e.name)})),this._saveSettings,this.supervisor.localize("common.save"))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(w||(w=x(["\n :host,\n ha-card,\n paper-dropdown-menu {\n display: block;\n }\n paper-item {\n width: 450px;\n }\n .card-actions {\n text-align: right;\n }\n "])))]}},{kind:"method",key:"update",value:function(e){$(N(a.prototype),"update",this).call(this,e),e.has("addon")&&this._addonChanged()}},{kind:"method",key:"_setInputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedInput=t}},{kind:"method",key:"_setOutputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedOutput=t}},{kind:"method",key:"_addonChanged",value:(o=P(regeneratorRuntime.mark((function e(){var t,r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selectedInput=null===this.addon.audio_input?"default":this.addon.audio_input,this._selectedOutput=null===this.addon.audio_output?"default":this.addon.audio_output,!this._outputDevices){e.next=4;break}return e.abrupt("return");case 4:return t={device:"default",name:this.supervisor.localize("addon.configuration.audio.default")},e.prev=5,e.next=8,(0,p.G)(this.hass);case 8:r=e.sent,n=r.audio,i=Object.keys(n.input).map((function(e){return{device:e,name:n.input[e]}})),o=Object.keys(n.output).map((function(e){return{device:e,name:n.output[e]}})),this._inputDevices=[t].concat(_(i)),this._outputDevices=[t].concat(_(o)),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(5),this._error="Failed to fetch audio hardware",this._inputDevices=[t],this._outputDevices=[t];case 21:case"end":return e.stop()}}),e,this,[[5,16]])}))),function(){return o.apply(this,arguments)})},{kind:"method",key:"_saveSettings",value:(r=P(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={audio_input:"default"===this._selectedInput?null:this._selectedInput,audio_output:"default"===this._selectedOutput?null:this._selectedOutput},e.prev=4,e.next=7,(0,l.d3)(this.hass,this.addon.slug,n);case 7:if("started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=10;break}return e.next=10,k(this,this.hass,this.supervisor,this.addon);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this._error="Failed to set addon audio device";case 15:r.progress=!1;case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return r.apply(this,arguments)})}]}}),n.oi),r(87724);var U=r(98595),q=(r(40191),r(19967));function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n \n "])),this.data,this._valueChanged,this.label)}},{kind:"method",key:"_valueChanged",value:function(e){(0,a.B)(this,"value-changed",{value:e.target.checked})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(re||(re=oe(["\n paper-checkbox {\n display: block;\n padding: 22px 0;\n }\n "])))}}]}}),n.oi);function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Le(e);if(t){var i=Le(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Oe(this,r)}}function Oe(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?Se(e):t}function Se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ae(){Ae=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Te(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',": ",""])),this.label,this.schema.value)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(ke||(ke=_e(["\n :host {\n display: block;\n }\n .label {\n font-weight: 500;\n }\n "])))}}]}}),n.oi),r(77956);function He(e){return(He="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 Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $e(e,t){return($e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ze(e);if(t){var i=Ze(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ue(this,r)}}function Ue(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?qe(e):t}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(){Ke=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!We(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',"\n \n "],t||(t=e.slice(0)),Be=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this._value,this.schema.required,this.schema.required,this._valueChanged,this.suffix);var e,t}},{kind:"get",key:"_value",value:function(){return this.data||0}},{kind:"method",key:"_valueChanged",value:function(e){var t=Number(e.target.value);this._value!==t&&(0,a.B)(this,"value-changed",{value:t})}}]}}),n.oi),r(1548);function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e,t){for(var r=0;r .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n }\n\n .pin > .slider-knob > .slider-knob-inner {\n font-size: var(--ha-slider-pin-font-size, 15px);\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(--disabled-text-color));\n border: 2px solid var(--paper-slider-disabled-knob-color, var(--disabled-text-color));\n }\n\n .pin > .slider-knob > .slider-knob-inner::before {\n top: unset;\n margin-left: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n width: 2.2em;\n height: 2.2em;\n\n -webkit-transform-origin: left bottom;\n transform-origin: left bottom;\n -webkit-transform: rotate(-45deg) scale(0) translate(0);\n transform: rotate(-45deg) scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::before {\n -webkit-transform: rotate(-45deg) scale(1) translate(7px, -7px);\n transform: rotate(-45deg) scale(1) translate(7px, -7px);\n }\n\n .pin > .slider-knob > .slider-knob-inner::after {\n top: unset;\n font-size: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n margin-left: -1.1em;\n width: 2.2em;\n height: 2.1em;\n\n -webkit-transform-origin: center bottom;\n transform-origin: center bottom;\n -webkit-transform: scale(0) translate(0);\n transform: scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -10px);\n transform: scale(1) translate(0, -10px);\n }\n\n .slider-input {\n width: 54px;\n }\n ')),lt}}],(r=[{key:"_setImmediateValue",value:function(e){it(ct(o.prototype),"_setImmediateValue",this).call(this,this.step>=1?Math.round(e):Math.round(100*e)/100)}},{key:"_calcStep",value:function(e){if(!this.step)return parseFloat(e);var t=Math.round((e-this.min)/this.step),r=this.step.toString(),n=r.indexOf(".");if(-1!==n){var i=Math.pow(10,r.length-n-1);return Math.round((t*this.step+this.min)*i)/i}return t*this.step+this.min}}])&&nt(t.prototype,r),n&&nt(t,n),o}(ht);function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){return(gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_t(e);if(t){var i=_t(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kt(this,r)}}function kt(e,t){return!t||"object"!==yt(t)&&"function"!=typeof t?Et(e):t}function Et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(){Ct=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(!Ot(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",'\n
    \n ',"\n \n
    \n
    \n "])),this.label,this.schema.optional&&void 0===this.schema.default?(0,n.dy)(ut||(ut=vt(["\n \n "])),this._handleCheckboxChange,void 0!==this.data):"",this._value,this.schema.valueMin,this.schema.valueMax,void 0===this.data&&this.schema.optional&&void 0===this.schema.default,this._valueChanged):(0,n.dy)(ft||(ft=vt(['\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n ',"\n \n "])),i,r.includes(i),e._optionLabel(t))})))}},{kind:"method",key:"firstUpdated",value:function(){var e=this;this.updateComplete.then((function(){var t,r,n,i=null===(t=e.shadowRoot)||void 0===t||null===(r=t.querySelector("paper-input"))||void 0===r||null===(n=r.inputElement)||void 0===n?void 0:n.inputElement;i&&(i.style.textOverflow="ellipsis")}))}},{kind:"method",key:"_optionValue",value:function(e){return Array.isArray(e)?e[0]:e}},{kind:"method",key:"_optionLabel",value:function(e){return Array.isArray(e)?e[1]||e[0]:e}},{kind:"method",key:"_onSelect",value:function(e){e.stopPropagation()}},{kind:"method",key:"_valueChanged",value:function(e){e.detail.value&&this._init?(0,a.B)(this,"value-changed",{value:e.detail.value.map((function(e){return e.itemValue}))},{bubbles:!1}):this._init=!0}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Rt||(Rt=Mt(["\n paper-menu-button {\n display: block;\n padding: 0;\n --paper-item-icon-width: 34px;\n }\n paper-ripple {\n top: 12px;\n left: 0px;\n bottom: 8px;\n right: 0px;\n }\n paper-input {\n text-overflow: ellipsis;\n }\n "])))}}]}}),n.oi);var Xt,Jt=r(50856);function Gt(e){return(Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tr(e,t){for(var r=0;r\n :host {\n display: block;\n @apply --paper-font-common-base;\n }\n\n paper-input {\n width: 30px;\n text-align: center;\n --paper-input-container-input: {\n /* Damn you firefox\n * Needed to hide spin num in firefox\n * http://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-box\n */\n -moz-appearance: textfield;\n @apply --paper-time-input-cotnainer;\n }\n --paper-input-container-input-webkit-spinner: {\n -webkit-appearance: none;\n margin: 0;\n display: none;\n }\n --paper-input-container-shared-input-style_-_-webkit-appearance: textfield;\n }\n\n paper-dropdown-menu {\n width: 55px;\n padding: 0;\n /* Force ripple to use the whole container */\n --paper-dropdown-menu-ripple: {\n color: var(\n --paper-time-input-dropdown-ripple-color,\n var(--primary-color)\n );\n }\n --paper-input-container-input: {\n @apply --paper-font-button;\n text-align: center;\n padding-left: 5px;\n @apply --paper-time-dropdown-input-cotnainer;\n }\n --paper-input-container-underline: {\n border-color: transparent;\n }\n --paper-input-container-underline-focus: {\n border-color: transparent;\n }\n }\n\n paper-item {\n cursor: pointer;\n text-align: center;\n font-size: 14px;\n }\n\n paper-listbox {\n padding: 0;\n }\n\n label {\n @apply --paper-font-caption;\n color: var(\n --paper-input-container-color,\n var(--secondary-text-color)\n );\n }\n\n .time-input-wrap {\n @apply --layout-horizontal;\n @apply --layout-no-wrap;\n justify-content: var(--paper-time-input-justify-content, normal);\n }\n\n [hidden] {\n display: none !important;\n }\n\n #millisec {\n width: 38px;\n }\n\n .no-suffix {\n margin-left: -2px;\n }\n \n\n \n
    \n \x3c!-- Hour Input --\x3e\n \n :\n \n\n \x3c!-- Min Input --\x3e\n \n :\n \n\n \x3c!-- Sec Input --\x3e\n \n :\n \n\n \x3c!-- Millisec Input --\x3e\n \n \n\n \x3c!-- Dropdown Menu --\x3e\n \n \n AM\n PM\n \n \n
    \n '],t||(t=e.slice(0)),Xt=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))));var e,t}},{key:"properties",get:function(){return{label:{type:String,value:"Time"},autoValidate:{type:Boolean,value:!0},hideLabel:{type:Boolean,value:!1},floatInputLabels:{type:Boolean,value:!1},alwaysFloatInputLabels:{type:Boolean,value:!1},format:{type:Number,value:12},disabled:{type:Boolean,value:!1},hour:{type:String,notify:!0},min:{type:String,notify:!0},sec:{type:String,notify:!0},millisec:{type:String,notify:!0},hourLabel:{type:String,value:""},minLabel:{type:String,value:""},secLabel:{type:String,value:""},millisecLabel:{type:String,value:""},enableSecond:{type:Boolean,value:!1},enableMillisecond:{type:Boolean,value:!1},noHoursLimit:{type:Boolean,value:!1},amPm:{type:String,notify:!0,value:"AM"},value:{type:String,notify:!0,readOnly:!0,computed:"_computeTime(min, hour, sec, millisec, amPm)"}}}}],(r=[{key:"validate",value:function(){var e=!0;return this.$.hour.validate()&&this.$.min.validate()||(e=!1),this.enableSecond&&!this.$.sec.validate()&&(e=!1),this.enableMillisecond&&!this.$.millisec.validate()&&(e=!1),12!==this.format||this.$.dropdown.validate()||(e=!1),e}},{key:"_computeTime",value:function(e,t,r,n,i){var o;return(t||e||r&&this.enableSecond||n&&this.enableMillisecond)&&(r=r||"00",n=n||"000",o=(t=t||"00")+":"+(e=e||"00"),this.enableSecond&&r&&(o=o+":"+r),this.enableMillisecond&&n&&(o=o+":"+n),12===this.format&&(o=o+" "+i)),o}},{key:"_onFocus",value:function(e){e.target.inputElement.inputElement.select()}},{key:"_formatMillisec",value:function(){1===this.millisec.toString().length&&(this.millisec=this.millisec.toString().padStart(3,"0"))}},{key:"_formatSec",value:function(){1===this.sec.toString().length&&(this.sec=this.sec.toString().padStart(2,"0"))}},{key:"_formatMin",value:function(){1===this.min.toString().length&&(this.min=this.min.toString().padStart(2,"0"))}},{key:"_shouldFormatHour",value:function(){24===this.format&&1===this.hour.toString().length&&(this.hour=this.hour.toString().padStart(2,"0"))}},{key:"_computeHourMax",value:function(e){return this.noHoursLimit?null:12===e?e:23}},{key:"_equal",value:function(e,t){return e===t}},{key:"_computeClassNames",value:function(e){return e?" ":"no-suffix"}}])&&tr(t.prototype,r),n&&tr(t,n),o}(r(28426).H3);function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){return(ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=mr(e);if(t){var i=mr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return pr(this,r)}}function pr(e,t){return!t||"object"!==cr(t)&&"function"!=typeof t?hr(e):t}function hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mr(e){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yr(){yr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!gr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n '],t||(t=e.slice(0)),ar=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.required,this.required,this.enableMillisecond,this._parseDuration(this._hours),this._parseDuration(this._minutes),this._parseDuration(this._seconds),this._parseDurationMillisec(this._milliseconds),this._hourChanged,this._minChanged,this._secChanged,this._millisecChanged);var e,t}},{kind:"get",key:"_hours",value:function(){return this.data&&this.data.hours?Number(this.data.hours):0}},{kind:"get",key:"_minutes",value:function(){return this.data&&this.data.minutes?Number(this.data.minutes):0}},{kind:"get",key:"_seconds",value:function(){return this.data&&this.data.seconds?Number(this.data.seconds):0}},{kind:"get",key:"_milliseconds",value:function(){return this.data&&this.data.milliseconds?Number(this.data.milliseconds):0}},{kind:"method",key:"_parseDuration",value:function(e){return e.toString().padStart(2,"0")}},{kind:"method",key:"_parseDurationMillisec",value:function(e){return e.toString().padStart(3,"0")}},{kind:"method",key:"_hourChanged",value:function(e){this._durationChanged(e,"hours")}},{kind:"method",key:"_minChanged",value:function(e){this._durationChanged(e,"minutes")}},{kind:"method",key:"_secChanged",value:function(e){this._durationChanged(e,"seconds")}},{kind:"method",key:"_millisecChanged",value:function(e){this._durationChanged(e,"milliseconds")}},{kind:"method",key:"_durationChanged",value:function(e,t){var r=Number(e.detail.value);if(r!==this["_".concat(t)]){var n=this._hours,i=this._minutes;"seconds"===t&&r>59&&(i+=Math.floor(r/60),r%=60),"minutes"===t&&r>59&&(n+=Math.floor(r/60),r%=60),(0,a.B)(this,"value-changed",{value:Object.assign({hours:n,minutes:i,seconds:this._seconds,milliseconds:this._milliseconds},lr({},t,r))})}}}]}}),n.oi);function Pr(e){return(Pr="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 xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Or(e,t){return(Or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jr(e);if(t){var i=jr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ar(this,r)}}function Ar(e,t){return!t||"object"!==Pr(t)&&"function"!=typeof t?Dr(e):t}function Dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(e){return(jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tr(){Tr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Fr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "],t||(t=e.slice(0)),Cr=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.schema.required,this.data);var e,t}}]}}),n.oi),r(58856),r(52039);function Ur(e){return(Ur="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 qr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kr(e,t){return(Kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Xr(e);if(t){var i=Xr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Yr(this,r)}}function Yr(e,t){return!t||"object"!==Ur(t)&&"function"!=typeof t?Wr(e):t}function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xr(e){return(Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jr(){Jr=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(!tn(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n \n "])),this._computeError(this.error.base,this.schema)):"",this.schema.map((function(t){return(0,n.dy)(Sn||(Sn=zn(["\n \n "])),e._getValue(e.data,t),t,e._getValue(e.error,t),e._valueChanged,e.computeError,e.computeLabel,e.computeSuffix)}))):(0,n.dy)(An||(An=zn(["\n ","\n ","\n "])),this.error?(0,n.dy)(Dn||(Dn=zn(['\n
    \n ',"\n
    \n "])),this._computeError(this.error,this.schema)):"",ne("ha-form-".concat(this.schema.type),{schema:this.schema,data:this.data,label:this._computeLabel(this.schema),suffix:this._computeSuffix(this.schema),id:"child-form"}))}},{kind:"method",key:"_computeLabel",value:function(e){return this.computeLabel?this.computeLabel(e):e?e.name:""}},{kind:"method",key:"_computeSuffix",value:function(e){return this.computeSuffix?this.computeSuffix(e):e&&e.description?e.description.suffix:""}},{kind:"method",key:"_computeError",value:function(e,t){return this.computeError?this.computeError(e,t):e}},{kind:"method",key:"_getValue",value:function(e,t){return e?e[t.name]:null}},{kind:"method",key:"_valueChanged",value:function(e){e.stopPropagation();var t,r,n,i=e.target.schema,o=this.data;(0,a.B)(this,"value-changed",{value:Object.assign({},o,(t={},r=i.name,n=e.detail.value,r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t))})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(jn||(jn=zn(["\n .error {\n color: var(--error-color);\n }\n "])))}}]}}),n.oi),r(78358),r(7315);function Yn(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 Wn,Xn=function(){var e,t=(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Qn||(Qn=Promise.all([r.e(102),r.e(914)]).then(r.bind(r,92914))),e.abrupt("return",Qn);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Yn(o,n,i,a,s,"next",e)}function s(e){Yn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function Jn(e){return(Jn="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 Gn(e){return function(e){if(Array.isArray(e))return hi(e)}(e)||mi(e)||pi(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 ei(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 ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ri(e,t){return(ri=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=vi(e);if(t){var i=vi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ii(this,r)}}function ii(e,t){return!t||"object"!==Jn(t)&&"function"!=typeof t?oi(e):t}function oi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(){ai=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(!li(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r",'\n \n
    \n

    \n ','\n

    \n
    \n \n \n \n \n ','\n \n \n
    \n
    \n\n
    \n ',"\n ","\n ","\n
    \n ",'\n
    \n ',""])),this._error):"",!this._yamlMode||this._canShowSchema&&this.addon.schema||this._valid?"":(0,n.dy)($i||($i=Qi(['\n \n ',"\n \n "])),this.supervisor.localize("addon.configuration.options.invalid_yaml")),t?(0,n.dy)(Ni||(Ni=Qi(['=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
    \n ","\n \n ","\n ","
    \n
    \n
    \n ',""])),this._error):"",this.supervisor.localize("addon.configuration.network.container"),this.supervisor.localize("addon.configuration.network.host"),this.supervisor.localize("common.description"),this._config.map((function(t){return(0,n.dy)(ho||(ho=ko(["\n \n ","\n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])));var e=this.addon.options&&Object.keys(this.addon.options).length||this.addon.schema&&Object.keys(this.addon.schema).length;return(0,n.dy)(Lo||(Lo=Zo(['\n
    \n ',"\n
    \n "])),e||this.addon.network||this.addon.audio?(0,n.dy)(Bo||(Bo=Zo(["\n ","\n ","\n ","\n "])),e?(0,n.dy)(Ho||(Ho=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.network?(0,n.dy)(Vo||(Vo=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.audio?(0,n.dy)($o||($o=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):""):this.supervisor.localize("addon.configuration.no_configuration"))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(No||(No=Zo(["\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 "])))]}}]}}),n.oi),r(93546);function pa(e){return(pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ha(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ma(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function ya(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ma(o,n,i,a,s,"next",e)}function s(e){ma(o,n,i,a,s,"throw",e)}a(void 0)}))}}function va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ba(e,t){return(ba=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ga(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ja(e);if(t){var i=ja(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return wa(this,r)}}function wa(e,t){return!t||"object"!==pa(t)&&"function"!=typeof t?ka(e):t}function ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(){Ea=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(!Pa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ','\n
    \n ',"\n
    \n
    \n
    \n "])),this._error?(0,n.dy)(la||(la=ha(['',""])),this._error):"",this._content?(0,n.dy)(da||(da=ha([""])),this._content):(0,n.dy)(ua||(ua=ha([""])))):(0,n.dy)(sa||(sa=ha([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(fa||(fa=ha(["\n ha-card {\n display: block;\n }\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n ha-markdown {\n padding: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(r=ya(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,l.ii)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.documentation.get_logs","error",(0,d.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi);var Ta,za,Ra=r(76666),Fa=r(63864);function Ma(e){return(Ma="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 Ia(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 La(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ba(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ua(e);if(t){var i=Ua(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return $a(this,r)}}function $a(e,t){return!t||"object"!==Ma(t)&&"function"!=typeof t?Na(e):t}function Na(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e){return(Ua=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qa(){qa=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(!Qa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "])),this.progress,this._buttonTapped,this.disabled)}},{kind:"method",key:"_buttonTapped",value:(r=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.progress=!0,t={method:this.method,path:this.path,data:this.data},e.prev=2,e.next=5,this.hass.callApi(this.method,this.path,this.data);case 5:r=e.sent,this.progress=!1,this._progressButton.actionSuccess(),t.success=!0,t.response=r,e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.progress=!1,this._progressButton.actionError(),t.success=!1,t.response=e.t0;case 18:(0,a.B)(this,"hass-api-called",t);case 19:case"end":return e.stop()}}),e,this,[[2,12]])})),o=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Ia(o,n,i,a,s,"next",e)}function s(e){Ia(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return o.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(za||(za=La(["\n :host([disabled]) {\n pointer-events: none;\n }\n "])))}}]}}),n.oi);function as(e){return(as="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 ss(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ls(e,t){return(ls=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ds(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Es(e);if(t){var i=Es(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return us(this,r)}}function us(e,t){return!t||"object"!==as(t)&&"function"!=typeof t?fs(e):t}function fs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ps(){ps=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(!ys(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
    \n \n \n ',"\n ","\n \n
    \n ","\n \n ","\n \n "])),(0,Ra.$)({value:!0,big:Boolean(this.value&&this.value.length>4)}),!this.icon||this.value||this.image?"":(0,n.dy)(es||(es=ss([""])),this.icon),this.value&&!this.image?(0,n.dy)(ts||(ts=ss(["",""])),this.value):"",this.label?(0,n.dy)(rs||(rs=ss(['\n \n ',"\n \n "])),(0,Ra.$)({label:!0,big:this.label.length>5}),this.label):"",this.description?(0,n.dy)(ns||(ns=ss(['
    ',"
    "])),this.description):"")}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,n.iv)(is||(is=ss(["\n .badge-container {\n display: inline-block;\n text-align: center;\n vertical-align: top;\n padding: var(--ha-label-badge-padding, 0 0 0 0);\n }\n .label-badge {\n position: relative;\n display: block;\n margin: 0 auto;\n width: var(--ha-label-badge-size, 2.5em);\n text-align: center;\n height: var(--ha-label-badge-size, 2.5em);\n line-height: var(--ha-label-badge-size, 2.5em);\n font-size: var(--ha-label-badge-font-size, 1.5em);\n border-radius: 50%;\n border: 0.1em solid var(--ha-label-badge-color, var(--primary-color));\n color: var(--label-badge-text-color, rgb(76, 76, 76));\n\n white-space: nowrap;\n background-color: var(--label-badge-background-color, white);\n background-size: cover;\n transition: border 0.3s ease-in-out;\n }\n .label-badge .value {\n font-size: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .label-badge .value.big {\n font-size: 70%;\n }\n .label-badge .label {\n position: absolute;\n bottom: -1em;\n /* Make the label as wide as container+border. (parent_borderwidth / font-size) */\n left: -0.2em;\n right: -0.2em;\n line-height: 1em;\n font-size: 0.5em;\n }\n .label-badge .label span {\n box-sizing: border-box;\n max-width: 100%;\n display: inline-block;\n background-color: var(--ha-label-badge-color, var(--primary-color));\n color: var(--ha-label-badge-label-color, white);\n border-radius: 1em;\n padding: 9% 16% 8% 16%; /* mostly apitalized text, not much descenders => bit more top margin */\n font-weight: 500;\n overflow: hidden;\n text-transform: uppercase;\n text-overflow: ellipsis;\n transition: background-color 0.3s ease-in-out;\n text-transform: var(--ha-label-badge-label-text-transform, uppercase);\n }\n .label-badge .label.big span {\n font-size: 90%;\n padding: 10% 12% 7% 12%; /* push smaller text a bit down to center vertically */\n }\n .badge-container .title {\n margin-top: 1em;\n font-size: var(--ha-label-badge-title-font-size, 0.9em);\n width: var(--ha-label-badge-title-width, 5em);\n font-weight: var(--ha-label-badge-title-font-weight, 400);\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: normal;\n }\n "])))]}},{kind:"method",key:"updated",value:function(e){ks(Es(r.prototype),"updated",this).call(this,e),e.has("image")&&(this.shadowRoot.getElementById("badge").style.backgroundImage=this.image?"url(".concat(this.image,")"):"")}}]}}),n.oi);customElements.define("ha-label-badge",_s);r(14089);var Cs,Ps,xs,Os,Ss,As,Ds,js,Ts,zs,Rs,Fs,Ms,Is,Ls,Bs,Hs,Vs,$s,Ns,Us,qs,Zs,Ks,Qs,Ys,Ws,Xs,Js,Gs,ec,tc,rc,nc,ic,oc,ac,sc,cc,lc,dc,uc,fc,pc,hc=r(70203),mc=(r(23295),r(21050),function(e,t){(0,a.B)(e,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return r.e(884).then(r.bind(r,56884))},dialogParams:t})}),yc=r(7628),vc=(0,o.Z)((function(e,t){return t.some((function(t){return e.includes(t)}))}));function bc(e){return(bc="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 gc(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 wc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){gc(o,n,i,a,s,"next",e)}function s(e){gc(o,n,i,a,s,"throw",e)}a(void 0)}))}}function kc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _c(e,t){return(_c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mc(e);if(t){var i=Mc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Pc(this,r)}}function Pc(e,t){return!t||"object"!==bc(t)&&"function"!=typeof t?xc(e):t}function xc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oc(){Oc=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 d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
    \n
    \n ','\n
    \n ','\n
    \n
    \n
    \n ','\n
    \n\n
    \n ',".
    \n ",'\n
    \n
    \n
    \n ','\n
    \n ',"\n\n \n ',"\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n
    \n\n ","\n
    \n
    \n ","\n
    \n
    \n ","\n ",'\n
    \n
    \n
    \n ',"\n
    \n
    \n ","\n
    \n
    \n
    \n\n ","\n "])),this.addon.update_available?(0,n.dy)(Ps||(Ps=kc(['\n \n
    \n \n ','\n
    \n
    \n ',"\n \n ","\n \n
    \n
    \n "])),this.supervisor.localize("common.update_available","count",1),this.hass,this.supervisor.localize("addon.dashboard.new_update_available","name",this.addon.name,"version",this.addon.version_latest),this.supervisor.localize("common.running_version","version",this.addon.version),"M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",!this.addon.available&&a?vc(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(Os||(Os=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(xs||(xs=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")):"",this.addon.changelog?(0,n.dy)(Ss||(Ss=kc(["\n \n ","\n \n "])),this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(As||(As=kc([""]))),this._updateClicked,this.supervisor.localize("common.update")):"",this.addon.protected?"":(0,n.dy)(Ds||(Ds=kc(['\n \n

    ','\n

    \n
    \n ','\n
    \n
    \n \n (',")\n
    \n "])),this.addon.version,this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(Ms||(Ms=kc(['',""])),this.addon.url,this.addon.name)),this.addon.logo?(0,n.dy)(Ls||(Ls=kc(['\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.watchdog.title"),this.supervisor.localize("addon.dashboard.option.watchdog.description"),this._watchdogToggled,this.addon.watchdog):"",this.addon.auto_update||null!==(o=this.hass.userData)&&void 0!==o&&o.showAdvanced?(0,n.dy)(Xs||(Xs=kc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.auto_update.title"),this.supervisor.localize("addon.dashboard.option.auto_update.description"),this._autoUpdateToggled,this.addon.auto_update):"",!this._computeCannotIngressSidebar&&this.addon.ingress?(0,n.dy)(Js||(Js=kc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.ingress_panel.title"),this.supervisor.localize("addon.dashboard.option.ingress_panel.description"),this._panelToggled,this.addon.ingress_panel):"",this._computeUsesProtectedOptions?(0,n.dy)(Gs||(Gs=kc(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.protected.title"),this.supervisor.localize("addon.dashboard.option.protected.description"),this._protectionToggled,this.addon.protected):""):"","started"===this.addon.state?(0,n.dy)(ec||(ec=kc(["\n ','\n \n '," \n \n ",""])),this.narrow,this.supervisor.localize("addon.dashboard.hostname"),this.addon.hostname,s.map((function(e){var t;return(0,n.dy)(tc||(tc=kc(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)}))):"",this._error?(0,n.dy)(rc||(rc=kc(['',""])),this._error):"",this.addon.version||!a||this.addon.available?"":vc(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(ic||(ic=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_version","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(nc||(nc=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")),this.addon.version?this._computeIsRunning?(0,n.dy)(oc||(oc=kc(['\n \n \n \n ',"\n \n
    \n "])),this._pathWebui,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._computeShowIngressUI?(0,n.dy)(dc||(dc=kc(["\n \n ","\n \n "])),this._openIngress,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._uninstallClicked,this.supervisor.localize("addon.dashboard.uninstall"),this.addon.build?(0,n.dy)(uc||(uc=kc(['\n \n ',"\n \n "])),this.hass,this.addon.slug,this.supervisor.localize("addon.dashboard.rebuild")):""):"",this.addon.long_description?(0,n.dy)(fc||(fc=kc(['\n \n
    \n '),"icon_experimental",''),"icon_deprecated",'')):this.supervisor.localize("addon.dashboard.capability.".concat(t,".description"))})}},{kind:"get",key:"_computeIsRunning",value:function(){var e;return"started"===(null===(e=this.addon)||void 0===e?void 0:e.state)}},{kind:"get",key:"_pathWebui",value:function(){return this.addon.webui&&this.addon.webui.replace("[HOST]",document.location.hostname)}},{kind:"get",key:"_computeShowWebUI",value:function(){return!this.addon.ingress&&this.addon.webui&&this._computeIsRunning}},{kind:"method",key:"_openIngress",value:function(){(0,s.c)("/hassio/ingress/".concat(this.addon.slug))}},{kind:"get",key:"_computeShowIngressUI",value:function(){return this.addon.ingress&&this._computeIsRunning}},{kind:"get",key:"_computeCannotIngressSidebar",value:function(){return!this.addon.ingress||!(0,Fa.I)(this.hass.config.version,0,92)}},{kind:"get",key:"_computeUsesProtectedOptions",value:function(){return this.addon.docker_api||this.addon.full_access||this.addon.host_pid}},{kind:"method",key:"_startOnBootToggled",value:(C=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={boot:"auto"===this.addon.boot?"manual":"auto"},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return C.apply(this,arguments)})},{kind:"method",key:"_watchdogToggled",value:(_=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={watchdog:!this.addon.watchdog},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return _.apply(this,arguments)})},{kind:"method",key:"_autoUpdateToggled",value:(E=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={auto_update:!this.addon.auto_update},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_protectionToggled",value:(k=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={protected:!this.addon.protected},e.prev=2,e.next=5,(0,l.NI)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"security"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_panelToggled",value:(w=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={ingress_panel:!this.addon.ingress_panel},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_openChangelog",value:(g=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,l.CH)(this.hass,this.addon.slug);case 3:(t=e.sent).includes("# ".concat(this.addon.version))&&t.includes("# ".concat(this.addon.version_latest))&&(r=t.split("# ".concat(this.addon.version))[0]).includes("# ".concat(this.addon.version_latest))&&(t=r),mc(this,{title:this.supervisor.localize("addon.dashboard.changelog"),content:t}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.get_changelog"),text:(0,d.js)(e.t0)});case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_installClicked",value:(b=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.fU)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"install"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.install"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return b.apply(this,arguments)})},{kind:"method",key:"_stopClicked",value:(v=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.ow)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.stop"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return v.apply(this,arguments)})},{kind:"method",key:"_restartClicked",value:(y=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.P$)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.restart"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return y.apply(this,arguments)})},{kind:"method",key:"_updateClicked",value:(m=wc(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,yc.z)(this,{supervisor:this.supervisor,name:this.addon.name,version:this.addon.version_latest,backupParams:{name:"addon_".concat(this.addon.slug,"_").concat(this.addon.version),addons:[this.addon.slug],homeassistant:!1},updateHandler:function(){var e=wc(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t._updateAddon());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_updateAddon",value:(p=wc(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.V_)(this.hass,this.addon.slug);case 2:(0,a.B)(this,"supervisor-collection-refresh",{collection:"addon"}),t={success:!0,response:void 0,path:"update"},(0,a.B)(this,"hass-api-called",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{kind:"method",key:"_startClicked",value:(c=wc(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.su)(this.hass,this.addon.slug);case 5:if((n=e.sent).valid){e.next=11;break}return e.next=9,(0,h.g7)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start_invalid_config"),text:n.message.split(" Got ")[0],confirm:function(){return o._openConfiguration()},confirmText:this.supervisor.localize("addon.dashboard.action_error.go_to_config"),dismissText:this.supervisor.localize("common.cancel")});case 9:return r.progress=!1,e.abrupt("return");case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(2),(0,h.Ys)(this,{title:"Failed to validate addon configuration",text:(0,d.js)(e.t0)}),r.progress=!1,e.abrupt("return");case 18:return e.prev=18,e.next=21,(0,l.kP)(this.hass,this.addon.slug);case 21:return e.next=23,(0,l.AD)(this.hass,this.addon.slug);case 23:this.addon=e.sent,i={success:!0,response:void 0,path:"start"},(0,a.B)(this,"hass-api-called",i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(18),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start"),text:(0,d.js)(e.t1)});case 31:r.progress=!1;case 32:case"end":return e.stop()}}),e,this,[[2,13],[18,28]])}))),function(e){return c.apply(this,arguments)})},{kind:"method",key:"_openConfiguration",value:function(){(0,s.c)("/hassio/addon/".concat(this.addon.slug,"/config"))}},{kind:"method",key:"_uninstallClicked",value:(r=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.next=4,(0,h.g7)(this,{title:this.addon.name,text:"Are you sure you want to uninstall this add-on?",confirmText:"uninstall add-on",dismissText:"no"});case 4:if(e.sent){e.next=8;break}return r.progress=!1,e.abrupt("return");case 8:return this._error=void 0,e.prev=9,e.next=12,(0,l.Yn)(this.hass,this.addon.slug);case 12:n={success:!0,response:void 0,path:"uninstall"},(0,a.B)(this,"hass-api-called",n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.uninstall"),text:(0,d.js)(e.t0)});case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(pc||(pc=kc(['\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-width: 100%;\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(--success-color);\n }\n ha-svg-icon.stopped {\n color: var(--error-color);\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 '])))]}}]}}),n.oi);function Nc(e){return(Nc="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 Uc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function qc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zc(e,t){return(Zc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Wc(e);if(t){var i=Wc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Qc(this,r)}}function Qc(e,t){return!t||"object"!==Nc(t)&&"function"!=typeof t?Yc(e):t}function Yc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wc(e){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xc(){Xc=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(!el(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r","\n \n ",'\n
    \n ','\n
    \n
    \n ',""])),this._error):"",this._content?(0,n.dy)(sl||(sl=dl([""])),this._content):"",this._refresh,this.supervisor.localize("common.refresh"))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(cl||(cl=dl(["\n :host,\n ha-card {\n display: block;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(o=fl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,l.kr)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.logs.get_logs","error",(0,d.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return o.apply(this,arguments)})},{kind:"method",key:"_refresh",value:(r=fl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]}}),n.oi);function jl(e){return(jl="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 Tl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(e,t){return(Rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ll(e);if(t){var i=Ll(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ml(this,r)}}function Ml(e,t){return!t||"object"!==jl(t)&&"function"!=typeof t?Il(e):t}function Il(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ll(e){return(Ll=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bl(){Bl=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(!$l(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this._error);if(!this.addon)return(0,n.dy)(ld||(ld=md([""])));var e=[{translationKey:"addon.panel.info",path:"/hassio/addon/".concat(this.addon.slug,"/info"),iconPath:"M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"}];this.addon.documentation&&e.push({translationKey:"addon.panel.documentation",path:"/hassio/addon/".concat(this.addon.slug,"/documentation"),iconPath:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}),this.addon.version&&e.push({translationKey:"addon.panel.configuration",path:"/hassio/addon/".concat(this.addon.slug,"/config"),iconPath:"M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z"},{translationKey:"addon.panel.log",path:"/hassio/addon/".concat(this.addon.slug,"/logs"),iconPath:"M18 7C16.9 7 16 7.9 16 9V15C16 16.1 16.9 17 18 17H20C21.1 17 22 16.1 22 15V11H20V15H18V9H22V7H18M2 7V17H8V15H4V7H2M11 7C9.9 7 9 7.9 9 9V15C9 16.1 9.9 17 11 17H13C14.1 17 15 16.1 15 15V9C15 7.9 14.1 7 13 7H11M11 9H13V15H11V9Z"});var t=this._computeTail(this.route);return(0,n.dy)(dd||(dd=md(["\n ',"\n \n \n "])),this.hass,this.supervisor.localize,this.narrow,this.addon.version?"/hassio/dashboard":"/hassio/store",t,e,this.addon.name,t,this.narrow,this.hass,this.supervisor,this.addon)}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(ud||(ud=md(["\n :host {\n color: var(--primary-text-color);\n }\n .content {\n padding: 24px 0 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n width: 600px;\n }\n hassio-addon-logs {\n max-width: calc(100% - 8px);\n min-width: 600px;\n }\n @media only screen and (max-width: 600px) {\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config,\n hassio-addon-logs {\n max-width: 100%;\n min-width: 100%;\n }\n }\n "])))]}},{kind:"method",key:"firstUpdated",value:(h=hd(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=8;break}if(!(t=(0,c.io)("addon"))){e.next=8;break}return e.next=5,(0,l.yt)(this.hass);case 5:e.sent.addons.some((function(e){return e.slug===t}))?(0,s.c)("/hassio/addon/".concat(t),{replace:!0}):this._error=this.supervisor.localize("my.error_addon_not_found");case 8:this.addEventListener("hass-api-called",(function(e){return r._apiCalled(e)}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{kind:"method",key:"_apiCalled",value:(p=hd(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.detail.success){e.next=2;break}return e.abrupt("return");case 2:if((n=null===(r=t.detail.path)||void 0===r?void 0:r.split("/"))&&0!==n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=n[n.length-1],["uninstall","install","update","start","stop"].includes(i)&&(0,a.B)(this,"supervisor-collection-refresh",{collection:"supervisor"}),"uninstall"!==i){e.next=11;break}window.history.back(),e.next=13;break;case 11:return e.next=13,this._routeDataChanged();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){e.has("route")&&!this.addon&&this._routeDataChanged()}},{kind:"method",key:"_routeDataChanged",value:(r=hd(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.route.path.split("/")[1]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,l.AD)(this.hass,t);case 6:r=e.sent,this.addon=r,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),this._error="Error fetching addon info: ".concat((0,d.js)(e.t0)),this.addon=void 0;case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi)},93546:function(e,t,r){"use strict";var n,i=r(50424),o=r(55358),a=r(47181),s=r(91107);function c(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 l=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,s.Ud)(new Worker(new URL(r.p+r.u(971),r.b)))),e.abrupt("return",n.renderMarkdown(t,i,o));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function d(e){return(d="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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var i=x(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){v=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var 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 d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this.content,this.allowSvg,this.breaks):(0,i.dy)(O||(O=j([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(A||(A=j(["\n :host {\n display: block;\n }\n ha-markdown-element {\n -ms-user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n }\n ha-markdown-element > *:first-child {\n margin-top: 0;\n }\n ha-markdown-element > *:last-child {\n margin-bottom: 0;\n }\n ha-markdown-element a {\n color: var(--primary-color);\n }\n ha-markdown-element img {\n max-width: 100%;\n }\n ha-markdown-element code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n ha-markdown-element svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n ha-markdown-element code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n ha-markdown-element pre code {\n padding: 0;\n }\n ha-markdown-element pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n ha-markdown-element h2 {\n font-size: 1.5em;\n font-weight: bold;\n }\n "])))}}]}}),i.oi)}}]); -//# sourceMappingURL=db5c9d84.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/db5c9d84.js.gz b/supervisor/api/panel/frontend_es5/db5c9d84.js.gz deleted file mode 100644 index b41079e76..000000000 Binary files a/supervisor/api/panel/frontend_es5/db5c9d84.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/db5c9d84.js.map b/supervisor/api/panel/frontend_es5/db5c9d84.js.map deleted file mode 100644 index 2c84584f7..000000000 --- a/supervisor/api/panel/frontend_es5/db5c9d84.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"db5c9d84.js","sources":["webpack://home-assistant-frontend/db5c9d84.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/e1f7ebc5.js.gz b/supervisor/api/panel/frontend_es5/e1f7ebc5.js.gz deleted file mode 100644 index b2392a456..000000000 Binary files a/supervisor/api/panel/frontend_es5/e1f7ebc5.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/e1f7ebc5.js.map b/supervisor/api/panel/frontend_es5/e1f7ebc5.js.map deleted file mode 100644 index 8e2cf594b..000000000 --- a/supervisor/api/panel/frontend_es5/e1f7ebc5.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"e1f7ebc5.js","sources":["webpack://home-assistant-frontend/e1f7ebc5.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/e612d98f.js b/supervisor/api/panel/frontend_es5/e612d98f.js deleted file mode 100644 index 9daf93c21..000000000 --- a/supervisor/api/panel/frontend_es5/e612d98f.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[354],{91107:function(t,n,e){"use strict";function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,a=[],i=!0,u=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==e.return||e.return()}finally{if(u)throw o}}return a}(t,n)||f(t,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 o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(t,n,e){return(a=i()?Reflect.construct:function(t,n,e){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return e&&u(o,e.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function u(t,n){return(u=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(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 f(t,n){if(t){if("string"==typeof t)return l(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(t,n):void 0}}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e1&&void 0!==arguments[1]?arguments[1]:self;n.addEventListener("message",(function e(i){if(i&&i.data){var u,f=Object.assign({path:[]},i.data),l=f.id,s=f.type,p=f.path,y=(i.data.argumentList||[]).map(_);try{var b=p.slice(0,-1).reduce((function(t,n){return t[n]}),t),m=p.reduce((function(t,n){return t[n]}),t);switch(s){case"GET":u=m;break;case"SET":b[p.slice(-1)[0]]=_(i.data.value),u=!0;break;case"APPLY":u=m.apply(b,y);break;case"CONSTRUCT":var h;u=P(a(m,c(y)));break;case"ENDPOINT":var w=new MessageChannel,S=w.port1,E=w.port2;d(t,E),u=j(S,[S]);break;case"RELEASE":u=void 0;break;default:return}}catch(h){u=o({value:h},v,0)}Promise.resolve(u).catch((function(t){return o({value:t},v,0)})).then((function(t){var o=r(A(t),2),a=o[0],i=o[1];n.postMessage(Object.assign(Object.assign({},a),{id:l}),i),"RELEASE"===s&&(n.removeEventListener("message",e),g(n))}))}})),n.start&&n.start()}function g(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function w(t){if(t)throw new Error("Proxy has been released and is not useable")}function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,a=new Proxy(e,{get:function(e,r){if(w(o),r===b)return function(){return k(t,{type:"RELEASE",path:n.map((function(t){return t.toString()}))}).then((function(){g(t),o=!0}))};if("then"===r){if(0===n.length)return{then:function(){return a}};var i=k(t,{type:"GET",path:n.map((function(t){return t.toString()}))}).then(_);return i.then.bind(i)}return S(t,[].concat(c(n),[r]))},set:function(e,a,i){w(o);var u=r(A(i),2),f=u[0],l=u[1];return k(t,{type:"SET",path:[].concat(c(n),[a]).map((function(t){return t.toString()})),value:f},l).then(_)},apply:function(e,a,i){w(o);var u=n[n.length-1];if(u===y)return k(t,{type:"ENDPOINT"}).then(_);if("bind"===u)return S(t,n.slice(0,-1));var c=r(E(i),2),f=c[0],l=c[1];return k(t,{type:"APPLY",path:n.map((function(t){return t.toString()})),argumentList:f},l).then(_)},construct:function(e,a){w(o);var i=r(E(a),2),u=i[0],c=i[1];return k(t,{type:"CONSTRUCT",path:n.map((function(t){return t.toString()})),argumentList:u},c).then(_)}});return a}function E(t){var n,e=t.map(A);return[e.map((function(t){return t[0]})),(n=e.map((function(t){return t[1]})),Array.prototype.concat.apply([],n))]}var O=new WeakMap;function j(t,n){return O.set(t,n),t}function P(t){return Object.assign(t,o({},p,!0))}function A(t){var n,e=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=f(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}(h);try{for(e.s();!(n=e.n()).done;){var o=r(n.value,2),a=o[0],i=o[1];if(i.canHandle(t)){var u=r(i.serialize(t),2);return[{type:"HANDLER",name:a,value:u[0]},u[1]]}}}catch(c){e.e(c)}finally{e.f()}return[{type:"RAW",value:t},O.get(t)||[]]}function _(t){switch(t.type){case"HANDLER":return h.get(t.name).deserialize(t.value);case"RAW":return t.value}}function k(t,n,e){return new Promise((function(r){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");t.addEventListener("message",(function n(e){e.data&&e.data.id&&e.data.id===o&&(t.removeEventListener("message",n),r(e.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),e)}))}},58556:function(t,n,e){"use strict";var r;(r="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?global:self).Proxy||(r.Proxy=e(87082)(),r.Proxy.revocable=r.Proxy.revocable)},87082:function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){var t,e=null;function r(t){return!!t&&("object"===n(t)||"function"==typeof t)}return(t=function(t,n){if(!r(t)||!r(n))throw new TypeError("Cannot create proxy with a non-object as target or handler");var o=function(){};e=function(){t=null,o=function(t){throw new TypeError("Cannot perform '".concat(t,"' on a proxy that has been revoked"))}},setTimeout((function(){e=null}),0);var a=n;for(var i in n={get:null,set:null,apply:null,construct:null},a){if(!(i in n))throw new TypeError("Proxy polyfill does not support trap '".concat(i,"'"));n[i]=a[i]}"function"==typeof a&&(n.apply=a.apply.bind(a));var u=this,c=!1,f=!1;"function"==typeof t?(u=function(){var e=this&&this.constructor===u,r=Array.prototype.slice.call(arguments);if(o(e?"construct":"apply"),e&&n.construct)return n.construct.call(this,t,r);if(!e&&n.apply)return n.apply(t,this,r);if(e){r.unshift(t);var a=t.bind.apply(t,r);return new a}return t.apply(this,r)},c=!0):t instanceof Array&&(u=[],f=!0);var l=n.get?function(t){return o("get"),n.get(this,t,u)}:function(t){return o("get"),this[t]},s=n.set?function(t,e){o("set");n.set(this,t,e,u)}:function(t,n){o("set"),this[t]=n},p=Object.getOwnPropertyNames(t),y={};p.forEach((function(n){if(!c&&!f||!(n in u)){var e={enumerable:!!Object.getOwnPropertyDescriptor(t,n).enumerable,get:l.bind(t,n),set:s.bind(t,n)};Object.defineProperty(u,n,e),y[n]=!0}}));var b=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(u,Object.getPrototypeOf(t)):u.__proto__?u.__proto__=t.__proto__:b=!1,n.get||!b)for(var v in t)y[v]||Object.defineProperty(u,v,{get:l.bind(t,v)});return Object.seal(t),Object.seal(u),u}).revocable=function(n,r){return{proxy:new t(n,r),revoke:e}},t}}}]); -//# sourceMappingURL=e612d98f.js.map \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/e612d98f.js.gz b/supervisor/api/panel/frontend_es5/e612d98f.js.gz deleted file mode 100644 index 0545c2266..000000000 Binary files a/supervisor/api/panel/frontend_es5/e612d98f.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/e612d98f.js.map b/supervisor/api/panel/frontend_es5/e612d98f.js.map deleted file mode 100644 index f71599654..000000000 --- a/supervisor/api/panel/frontend_es5/e612d98f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"e612d98f.js","sources":["webpack://home-assistant-frontend/e612d98f.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/entrypoint.1796fc9b.js b/supervisor/api/panel/frontend_es5/entrypoint.1796fc9b.js new file mode 100644 index 000000000..d2ed17c21 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/entrypoint.1796fc9b.js @@ -0,0 +1,3 @@ +/*! For license information please see entrypoint.1796fc9b.js.LICENSE.txt */ +!function(){var e,t,n,r,i={77728:function(e){"use strict";e.exports="/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-top-app-bar{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);color:white;display:flex;position:fixed;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;z-index:4}.mdc-top-app-bar .mdc-top-app-bar__action-item,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon{color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-top-app-bar .mdc-top-app-bar__action-item::before,.mdc-top-app-bar .mdc-top-app-bar__action-item::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon::after{background-color:#fff;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-primary, #fff))}.mdc-top-app-bar .mdc-top-app-bar__action-item:hover::before,.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-surface--hover::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:hover::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-surface--hover::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded--background-focused::before,.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):focus::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded--background-focused::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded)::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):active::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-top-app-bar__row{display:flex;position:relative;box-sizing:border-box;width:100%;height:64px}.mdc-top-app-bar__section{display:inline-flex;flex:1 1 auto;align-items:center;min-width:0;padding:8px 12px;z-index:1}.mdc-top-app-bar__section--align-start{justify-content:flex-start;order:-1}.mdc-top-app-bar__section--align-end{justify-content:flex-end;order:1}.mdc-top-app-bar__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit);padding-left:20px;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:1}[dir=rtl] .mdc-top-app-bar__title,.mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--short-collapsed{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:24px;border-bottom-left-radius:0}[dir=rtl] .mdc-top-app-bar--short-collapsed,.mdc-top-app-bar--short-collapsed[dir=rtl]{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:24px}.mdc-top-app-bar--short{top:0;right:auto;left:0;width:100%;transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-top-app-bar--short,.mdc-top-app-bar--short[dir=rtl]{right:0;left:auto}.mdc-top-app-bar--short .mdc-top-app-bar__row{height:56px}.mdc-top-app-bar--short .mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short .mdc-top-app-bar__title{transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.mdc-top-app-bar--short-collapsed{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12);width:56px;transition:width 300ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__title{display:none}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__action-item{transition:padding 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item{width:112px}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--dense .mdc-top-app-bar__row{height:48px}.mdc-top-app-bar--dense .mdc-top-app-bar__section{padding:0 4px}.mdc-top-app-bar--dense .mdc-top-app-bar__title{padding-left:12px;padding-right:0}[dir=rtl] .mdc-top-app-bar--dense .mdc-top-app-bar__title,.mdc-top-app-bar--dense .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:12px}.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:128px}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{align-self:flex-end;padding-bottom:2px}.mdc-top-app-bar--prominent .mdc-top-app-bar__action-item,.mdc-top-app-bar--prominent .mdc-top-app-bar__navigation-icon{align-self:flex-start}.mdc-top-app-bar--fixed{transition:box-shadow 200ms linear}.mdc-top-app-bar--fixed-scrolled{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12);transition:box-shadow 200ms linear}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:96px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__section{padding:0 12px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-left:20px;padding-right:0;padding-bottom:9px}[dir=rtl] .mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title,.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--fixed-adjust{padding-top:64px}.mdc-top-app-bar--dense-fixed-adjust{padding-top:48px}.mdc-top-app-bar--short-fixed-adjust{padding-top:56px}.mdc-top-app-bar--prominent-fixed-adjust{padding-top:128px}.mdc-top-app-bar--dense-prominent-fixed-adjust{padding-top:96px}@media(max-width: 599px){.mdc-top-app-bar__row{height:56px}.mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short{transition:width 200ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed{transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-bottom:6px}.mdc-top-app-bar--fixed-adjust{padding-top:56px}}\n\n/*# sourceMappingURL=mdc.top-app-bar.min.css.map*/"},44669:function(e,t,n){"use strict";var r,i,o=n(50424),a=n(55358);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(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=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(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!b(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n
    ','
    \n
    \n ',"\n ","\n ","\n
    \n
    \n "])),this.showTopbar?(0,r.dy)(x||(x=P(['
    '])),this.topbarClass):"",this.iconImage?(0,r.dy)(E||(E=P(['\n
    \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n \n \n \n \n \n '])),e)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(i||(i=u(["\n rect {\n height: 100%;\n }\n rect:first-child {\n width: 100%;\n fill: var(--ha-bar-background-color, var(--secondary-background-color));\n }\n rect:last-child {\n fill: var(--ha-bar-primary-color, var(--primary-color));\n rx: var(--ha-bar-border-radius, 4px);\n }\n svg {\n border-radius: var(--ha-bar-border-radius, 4px);\n height: 12px;\n width: 100%;\n }\n "])))}}]}}),o.oi),n(14089);function O(e){return(O="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(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?L(e):t}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(){D=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!N(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ',' \n
    \n ',' % \n div[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n display: flex;\n justify-content: space-between;\n }\n ha-bar {\n --ha-bar-primary-color: var(\n --hassio-bar-ok-color,\n var(--success-color)\n );\n }\n .target-warning {\n --ha-bar-primary-color: var(\n --hassio-bar-warning-color,\n var(--warning-color)\n );\n }\n .target-critical {\n --ha-bar-primary-color: var(\n --hassio-bar-critical-color,\n var(--error-color)\n );\n }\n .value {\n width: 48px;\n padding-right: 4px;\n flex-shrink: 0;\n }\n '])))}}]}}),o.oi)},35200:function(e,t,n){"use strict";n.r(t),n.d(t,{DialogHassioBackupUpload:function(){return ge}});var r,i,o,a,s,c,l=n(50424),u=n(55358),d=n(47181),f=(n(90806),n(11654)),p=(n(58856),n(98121),n(34552),n(36280),n(76666));n(52039);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function y(e,t){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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var i=T(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){w=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!E(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n']))):(0,l.dy)(o||(o=m(['\n
    \n '])),this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleTransitionEnd)}},{key:"createAdapter",value:function(){var e=this;return Object.assign(Object.assign({},(0,a.q)(this.mdcRoot)),{eventTargetMatchesSelector:function(e,t){return(0,fe.wB)(e,t)},addScrollAreaClass:function(t){return e.scrollAreaElement.classList.add(t)},setScrollAreaStyleProperty:function(t,n){return e.scrollAreaElement.style.setProperty(t,n)},setScrollContentStyleProperty:function(t,n){return e.scrollContentElement.style.setProperty(t,n)},getScrollContentStyleValue:function(t){return window.getComputedStyle(e.scrollContentElement).getPropertyValue(t)},setScrollAreaScrollLeft:function(t){return e.scrollAreaElement.scrollLeft=t},getScrollAreaScrollLeft:function(){return e.scrollAreaElement.scrollLeft},getScrollContentOffsetWidth:function(){return e.scrollContentElement.offsetWidth},getScrollAreaOffsetWidth:function(){return e.scrollAreaElement.offsetWidth},computeScrollAreaClientRect:function(){return e.scrollAreaElement.getBoundingClientRect()},computeScrollContentClientRect:function(){return e.scrollContentElement.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return-1===e._scrollbarHeight&&(e.scrollAreaElement.style.overflowX="scroll",e._scrollbarHeight=e.scrollAreaElement.offsetHeight-e.scrollAreaElement.clientHeight,e.scrollAreaElement.style.overflowX=""),e._scrollbarHeight}})}},{key:"getScrollPosition",value:function(){return this.mdcFoundation.getScrollPosition()}},{key:"getScrollContentWidth",value:function(){return this.scrollContentElement.offsetWidth}},{key:"incrementScrollPosition",value:function(e){this.mdcFoundation.incrementScroll(e)}},{key:"scrollToPosition",value:function(e){this.mdcFoundation.scrollTo(e)}}])&&ke(t.prototype,n),r&&ke(t,r),s}(a.H);(0,i.__decorate)([(0,o.IO)(".mdc-tab-scroller")],Ce.prototype,"mdcRoot",void 0),(0,i.__decorate)([(0,o.IO)(".mdc-tab-scroller__scroll-area")],Ce.prototype,"scrollAreaElement",void 0),(0,i.__decorate)([(0,o.IO)(".mdc-tab-scroller__scroll-content")],Ce.prototype,"scrollContentElement",void 0),(0,i.__decorate)([(0,o.hO)({passive:!0})],Ce.prototype,"_handleInteraction",null);var Pe=(0,o.iv)(Oe||(Oe=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}:host{display:flex}.mdc-tab-scroller{flex:1}"])));function Te(e){return(Te="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 Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){return(Ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=De(e);if(t){var i=De(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return je(this,n)}}function je(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ie(e,t)}(n,e);var t=Le(n);function n(){return Re(this,n),t.apply(this,arguments)}return n}(Ce);ze.styles=[Pe],ze=(0,i.__decorate)([(0,o.Mo)("mwc-tab-scroller")],ze);var Me={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},Ne={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},Fe=new Set;Fe.add(Me.ARROW_LEFT_KEY),Fe.add(Me.ARROW_RIGHT_KEY),Fe.add(Me.END_KEY),Fe.add(Me.HOME_KEY),Fe.add(Me.ENTER_KEY),Fe.add(Me.SPACE_KEY);var Be=new Map;Be.set(Ne.ARROW_LEFT_KEYCODE,Me.ARROW_LEFT_KEY),Be.set(Ne.ARROW_RIGHT_KEYCODE,Me.ARROW_RIGHT_KEY),Be.set(Ne.END_KEYCODE,Me.END_KEY),Be.set(Ne.HOME_KEYCODE,Me.HOME_KEY),Be.set(Ne.ENTER_KEYCODE,Me.ENTER_KEY),Be.set(Ne.SPACE_KEYCODE,Me.SPACE_KEY);var Ze,Ue=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.useAutomaticActivation=!1,r}return(0,i.__extends)(t,e),Object.defineProperty(t,"strings",{get:function(){return Me},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return Ne},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),t.prototype.setUseAutomaticActivation=function(e){this.useAutomaticActivation=e},t.prototype.activateTab=function(e){var t,n=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(e)&&e!==n&&(-1!==n&&(this.adapter.deactivateTabAtIndex(n),t=this.adapter.getTabIndicatorClientRectAtIndex(n)),this.adapter.activateTabAtIndex(e,t),this.scrollIntoView(e),this.adapter.notifyTabActivated(e))},t.prototype.handleKeyDown=function(e){var t=this.getKeyFromEvent(e);if(void 0!==t)if(this.isActivationKey(t)||e.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(t))return;var n=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),t);this.adapter.setActiveTab(n),this.scrollIntoView(n)}else{var r=this.adapter.getFocusedTabIndex();if(this.isActivationKey(t))this.adapter.setActiveTab(r);else{n=this.determineTargetFromKey(r,t);this.adapter.focusTabAtIndex(n),this.scrollIntoView(n)}}},t.prototype.handleTabInteraction=function(e){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(e.detail.tabId))},t.prototype.scrollIntoView=function(e){this.indexIsInRange(e)&&(0!==e?e!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(e):this.scrollIntoViewImpl(e):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},t.prototype.determineTargetFromKey=function(e,t){var n=this.isRTL(),r=this.adapter.getTabListLength()-1,i=e;return t===Me.END_KEY?i=r:t===Me.ARROW_LEFT_KEY&&!n||t===Me.ARROW_RIGHT_KEY&&n?i-=1:t===Me.ARROW_RIGHT_KEY&&!n||t===Me.ARROW_LEFT_KEY&&n?i+=1:i=0,i<0?i=r:i>r&&(i=0),i},t.prototype.calculateScrollIncrement=function(e,t,n,r){var i=this.adapter.getTabDimensionsAtIndex(t),o=i.contentLeft-n-r,a=i.contentRight-n-Ne.EXTRA_SCROLL_AMOUNT,s=o+Ne.EXTRA_SCROLL_AMOUNT;return te?Math.max(s,0):Math.min(c,0)},t.prototype.findAdjacentTabIndexClosestToEdge=function(e,t,n,r){var i=t.rootLeft-n,o=t.rootRight-n-r,a=i+o;return i<0||a<0?e-1:o>0||a>0?e+1:-1},t.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(e,t,n,r,i){var o=i-t.rootLeft-r-n,a=i-t.rootRight-n,s=o+a;return o>0||s>0?e+1:a<0||s<0?e-1:-1},t.prototype.getKeyFromEvent=function(e){return Fe.has(e.key)?e.key:Be.get(e.keyCode)},t.prototype.isActivationKey=function(e){return e===Me.SPACE_KEY||e===Me.ENTER_KEY},t.prototype.indexIsInRange=function(e){return e>=0&&e\n \n
    \n '])),this._handleTabInteraction,this._handleKeydown)}},{key:"_getTabs",value:function(){return this.tabsSlot.assignedNodes({flatten:!0}).filter((function(e){return e instanceof ue}))}},{key:"_getTab",value:function(e){return this._getTabs()[e]}},{key:"createAdapter",value:function(){var e=this;return{scrollTo:function(t){return e.scrollerElement.scrollToPosition(t)},incrementScroll:function(t){return e.scrollerElement.incrementScrollPosition(t)},getScrollPosition:function(){return e.scrollerElement.getScrollPosition()},getScrollContentWidth:function(){return e.scrollerElement.getScrollContentWidth()},getOffsetWidth:function(){return e.mdcRoot.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(e.mdcRoot).getPropertyValue("direction")},setActiveTab:function(t){return e.mdcFoundation.activateTab(t)},activateTabAtIndex:function(t,n){var r=e._getTab(t);void 0!==r&&r.activate(n),e._previousActiveIndex=t},deactivateTabAtIndex:function(t){var n=e._getTab(t);void 0!==n&&n.deactivate()},focusTabAtIndex:function(t){var n=e._getTab(t);void 0!==n&&n.focus()},getTabIndicatorClientRectAtIndex:function(t){var n=e._getTab(t);return void 0!==n?n.computeIndicatorClientRect():new DOMRect},getTabDimensionsAtIndex:function(t){var n=e._getTab(t);return void 0!==n?n.computeDimensions():{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return e._previousActiveIndex},getFocusedTabIndex:function(){var t=e._getTabs(),n=e.getRootNode().activeElement;return t.indexOf(n)},getIndexOfTabById:function(t){for(var n=e._getTabs(),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ",":\n \n \n ",":\n ","\n \n "])),e.hass.localize("ui.components.related-items.integration"),"/config/integrations#config_entry=".concat(t),e._navigateAwayClose,e.hass.localize("component.".concat(n.domain,".title")),n.title):""})):"",this._related.device&&this._devices?this._related.device.map((function(t){var n=e._devices.find((function(e){return e.id===t}));return n?(0,lt.dy)(Qt||(Qt=yn(["\n

    \n ",':\n

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

    ",":

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

    ",":

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

    \n ",":\n

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

    \n ",":\n

    \n
      \n ","\n
    \n "])),this.hass.localize("ui.components.related-items.script"),this._related.script.map((function(t){var n=e.hass.states[t];return n?(0,lt.dy)(dn||(dn=yn(['\n
  • \n \n ',"\n \n
  • \n "])),e._openMoreInfo,t,n.attributes.friendly_name||n.entity_id):""}))):""):(0,lt.dy)(qt||(qt=yn([""])))}},{kind:"method",key:"_navigateAwayClose",value:(r=mn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,0)}));case 2:(0,xt.B)(this,"close-dialog");case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{kind:"method",key:"_findRelated",value:(n=mn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t=this.hass,n=this.itemType,r=this.itemId,t.callWS({type:"search/related",item_type:n,item_id:r});case 2:return this._related=e.sent,e.next=5,this.updateComplete;case 5:(0,xt.B)(this,"iron-resize");case 6:case"end":return e.stop()}var t,n,r}),e,this)}))),function(){return n.apply(this,arguments)})},{kind:"method",key:"_openMoreInfo",value:function(e){var t=e.target.entityId;(0,xt.B)(this,"hass-more-info",{entityId:t})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,lt.iv)(fn||(fn=yn(["\n a {\n color: var(--primary-color);\n }\n button.link {\n color: var(--primary-color);\n text-align: left;\n cursor: pointer;\n background: none;\n border-width: initial;\n border-style: none;\n border-color: initial;\n border-image: initial;\n padding: 0px;\n font: inherit;\n text-decoration: underline;\n }\n h3 {\n font-family: var(--paper-font-title_-_font-family);\n -webkit-font-smoothing: var(\n --paper-font-title_-_-webkit-font-smoothing\n );\n font-size: var(--paper-font-title_-_font-size);\n font-weight: var(--paper-font-headline-_font-weight);\n letter-spacing: var(--paper-font-title_-_letter-spacing);\n line-height: var(--paper-font-title_-_line-height);\n opacity: var(--dark-primary-opacity);\n }\n "])))}}]}}),Nt(null,(function(e,t){var n=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jt(e,t)}(r,t);var n=Dt(r);function r(){var t;Lt(this,r);for(var i=arguments.length,o=new Array(i),a=0;a=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.primary?-1:1})),this._interface=Object.assign({},this._interfaces[this._curTabIndex]),e.next=8,this.updateComplete;case 8:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:function(){this._params=void 0,this._processing=!1,(0,xt.B)(this,"dialog-closed",{dialog:this.localName})}},{kind:"method",key:"render",value:function(){return this._params&&this._interface?(0,lt.dy)(Ln||(Ln=er(["\n \n \n \n ','\n \n \n \n ',"\n ","\n ",'\n
    \n
    \n \n ','\n \n ']))):this.supervisor.localize("dialog.network.scan_ap"),this._accessPoints&&this._accessPoints.accesspoints&&0!==this._accessPoints.accesspoints.length?(0,lt.dy)(Bn||(Bn=er(["\n \n ","\n \n "])),this._accessPoints.accesspoints.filter((function(e){return e.ssid})).map((function(e){var t;return(0,lt.dy)(Zn||(Zn=er(["\n \n ",'\n \n '," - Strength: ","\n \n \n "])),o._selectAP,e.ssid===(null===(t=o._wifiConfiguration)||void 0===t?void 0:t.ssid),e,e.ssid,e.mac,e.signal)}))):"",this._wifiConfiguration?(0,lt.dy)(Un||(Un=er(['\n
    \n \n ',"\n "])),this.supervisor.localize("dialog.network.warning")):"",this.supervisor.localize("common.cancel"),this.closeDialog,this._updateNetwork,!this._dirty,this._processing?(0,lt.dy)(Vn||(Vn=er(['\n ']))):this.supervisor.localize("common.save"))}},{kind:"method",key:"_selectAP",value:function(e){this._wifiConfiguration=e.currentTarget.ap,this._dirty=!0}},{kind:"method",key:"_scanForAP",value:(i=nr(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._interface){e.next=2;break}return e.abrupt("return");case 2:return this._scanning=!0,e.prev=3,e.next=6,(0,Yn.Ne)(this.hass,this._interface.interface);case 6:this._accessPoints=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),(0,Xn.Ys)(this,{title:"Failed to scan for accesspoints",text:(0,qn.js)(e.t0)});case 12:return e.prev=12,this._scanning=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[3,9,12,15]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_renderIPConfiguration",value:function(e){var t,n,r;return(0,lt.dy)($n||($n=er(["\n \n \n \n \n \n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ',"\n
    \n \n "])),this._opened,this.closeDialog,(0,o.i)(this.hass,this._addingRegistry?this.supervisor.localize("dialog.registries.title_add"):this.supervisor.localize("dialog.registries.title_manage")),this._addingRegistry?(0,r.dy)(d||(d=E(["\n \n\n \n ','\n ',":\n ","\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ",'\n
    \n ','\n
    \n \n
    \n
    \n ',""])),this._error):"",l.length?l.map((function(e){return(0,u.dy)(a||(a=_(['\n \n \n
    ',"
    \n
    ","
    \n
    ","
    \n
    \n \n \n \n
    \n "])),e.name,e.maintainer,e.url,e.slug,n._dialogParams.supervisor.localize("dialog.repositories.remove"),n._removeRepository,"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z")})):(0,u.dy)(s||(s=_([" No repositories "]))),this._dialogParams.url||"",this._dialogParams.supervisor.localize("dialog.repositories.add"),this._handleKeyAdd,this._addRepository,this._processing?(0,u.dy)(c||(c=_(['']))):this._dialogParams.supervisor.localize("dialog.repositories.add"),this.closeDialog,null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor.localize("common.close"))}},{kind:"get",static:!0,key:"styles",value:function(){return[b.Qx,b.yu,(0,u.iv)(l||(l=_(["\n ha-dialog.button-left {\n --justify-action-buttons: flex-start;\n }\n paper-icon-item {\n cursor: pointer;\n }\n .form {\n color: var(--primary-text-color);\n }\n .option {\n border: 1px solid var(--divider-color);\n border-radius: 4px;\n margin-top: 4px;\n }\n mwc-button {\n margin-left: 8px;\n }\n ha-circular-progress {\n display: block;\n margin: 32px;\n text-align: center;\n }\n "])))]}},{kind:"method",key:"focus",value:function(){var e=this;this.updateComplete.then((function(){var t,n;return null===(t=e.shadowRoot)||void 0===t||null===(n=t.querySelector("[dialogInitialFocus]"))||void 0===n?void 0:n.focus()}))}},{kind:"method",key:"_handleKeyAdd",value:function(e){e.stopPropagation(),13===e.keyCode&&this._addRepository()}},{kind:"method",key:"_loadData",value:(w=k(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,m.yt)(this.hass);case 3:t=e.sent,this._repositories=t.repositories,(0,p.B)(this,"supervisor-collection-refresh",{collection:"addon"}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this._error=(0,y.js)(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_addRepository",value:(g=k(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this._optionInput)&&t.value){e.next=3;break}return e.abrupt("return");case 3:return this._processing=!0,n=this._filteredRepositories(this._repositories),(r=n.map((function(e){return e.source}))).push(t.value),e.prev=7,e.next=10,(0,v.jP)(this.hass,{addons_repositories:r});case 10:return e.next=12,this._loadData();case 12:t.value="",e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),this._error=(0,y.js)(e.t0);case 18:this._processing=!1;case 19:case"end":return e.stop()}}),e,this,[[7,15]])}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_removeRepository",value:(n=k(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget.slug,r=this._filteredRepositories(this._repositories),i=r.find((function(e){return e.slug===n}))){e.next=5;break}return e.abrupt("return");case 5:return o=r.map((function(e){return e.source})).filter((function(e){return e!==i.source})),e.prev=6,e.next=9,(0,v.jP)(this.hass,{addons_repositories:o});case 9:return e.next=11,this._loadData();case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),this._error=(0,y.js)(e.t0);case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return n.apply(this,arguments)})}]}}),u.oi)},7628:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(47181),i=function(e,t){(0,r.B)(e,"show-dialog",{dialogTag:"dialog-supervisor-update",dialogImport:function(){return n.e(511).then(n.bind(n,46511))},dialogParams:t})}},64643:function(e,t,n){"use strict";var r;n(97514),n(73635),n(17789),n(82866),n(19571),n(26411),n(74330),n(80679),n(78689),n(93926),n(14872),n(62785),n(15394),n(21724),n(71254),n(99298),n(26268),n(68350),n(20635),n(42498),n(60306),n(9670),n(65750),n(30812),n(4304),n(25146),n(36147),n(10304),n(40233),n(34364),n(43541),n(69911),n(28787),n(50472),n(41031),n(45519),n(18843),n(64487),n(95452),n(50462),n(54070),n(71025),n(80166),n(29993),n(82519),n(45958),n(50266),n(72471),n(68678),n(55187),n(71468),n(91852),n(68118),n(74818),n(77026),n(38607),n(20836),n(75150),n(23080),n(45192),n(77441),n(68428),n(83438),n(36087),n(8974),n(84997),n(6423),n(33319),n(61134),n(47381),n(67316),n(68536),n(3563),n(5373),n(64039),n(72778),n(29309),n(63104),n(56379),n(59604),n(73387),n(25120),n(10084),n(3278),n(31917),n(10026),n(83069),n(96816),n(57022),n(89421),n(45725),n(26629),n(40694),n(89994),n(66805),n(19425),n(81591),n(66925),n(27559),n(64832),n(92354),n(89064),n(75759),n(42612),n(20631),n(79556),n(87081),n(74419),n(74692),n(33149),n(32755),n(6775),n(97757),n(56495),n(92825),n(67783),n(61345),n(72451),n(38465),n(29080),n(47265),n(96742),n(4769),n(48561),n(38130),n(59099),n(93693),n(90836),n(78621),n(8460),n(36334),n(3698),n(10613),n(1128),n(77880),n(94772),n(3260),n(50712),n(54829),n(18314),n(76849),n(94257),n(48775),n(69990),n(46037),n(96604),n(5364),n(77650),n(48839),n(84028),n(41261),n(38310),n(56307),n(90971),n(73291),n(6860),n(67599),n(87138),n(40079),n(38494),n(15461),n(63256),n(60836),n(6782),n(82224),n(81505),n(77234),n(94628),n(17214),n(90846),n(84240),n(54617),n(31410),n(41392),n(47388),n(87693),n(48632),n(37309),n(54805),n(34862),n(52439),n(37280),n(9747),n(6830),n(17607),n(81829),n(36014),n(57200),n(74225),n(73863),n(24062),n(82980),n(76991),n(87629),n(31708),n(27529),n(16444),n(46562),n(26897),n(73196),n(9491),n(33811),n(61274),n(31010),n(15167),n(19313),n(485),n(58491),n(24230),n(52826),n(80070),n(12376),n(11095),n(43888),n(58509),n(97448),n(38742),n(43554),n(38434),n(29882),n(6900),n(22850),n(37241),n(13230),n(11248),n(22471),n(89018),n(86541),n(62398),n(94890),n(420),n(4631),n(65302),n(2460),n(27917),n(82512),n(97121),n(81478),n(74108),n(29295),n(12546),n(91325),n(97211),n(69722),n(95447),n(43265),n(11308),n(31879),n(88082),n(84578),n(67143),n(78593),n(76317),n(58537),n(71403),n(25470),n(61959),n(95443),n(523),n(686),n(8538),n(80159),n(5013),n(84607),n(68176),n(58458),n(99411),n(84391),n(34679),n(95388),n(18636),n(58101),n(56349),n(22809),n(48754),n(97783),n(85767),n(78912),n(22423),n(37197),n(50640),n(39791),n(11022),n(85362),n(66928),n(97841),n(69351),n(8751),n(899),n(18489),n(63354),n(54689),n(46681),n(72260),n(37145),n(52751),n(56279),n(95104),n(43703),n(44849),n(62053),n(92865),n(84904),n(31598),n(21608),n(50042),n(35075),n(25660),n(24086),n(13302),n(29273),n(65266),n(42241),n(10280),n(22463),n(35955),n(23062),n(49833),n(66380),n(28809),n(36310),n(96949),n(54705),n(94495),n(56002),n(32870),n(7457),n(32656),n(69112),n(65075),n(87305),n(58431),n(74840),n(25354),n(86265),n(4837),n(18169),n(6243),n(51879),n(4703),n(17685),n(53558),n(53113),n(32827),n(46189),n(92303),n(88),n(93218),n(72775),n(35484),n(58882),n(91819),n(53013),n(35448),n(3962),n(68835),n(81605),n(53928),n(42113),n(11425),n(62793),n(52894),n(36760);r=function(){var e;e=function(){var e,t,n;e=function(){var e,t,n="__scoped";null!==(e=(t=globalThis).reactiveElementPlatformSupport)&&void 0!==e||(t.reactiveElementPlatformSupport=function(e){var t=e.ReactiveElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var r=t.prototype;window.ShadyDOM&&window.ShadyDOM.inUse&&!0===window.ShadyDOM.noPatch&&window.ShadyDOM.patchElementProto(r);var i=r.createRenderRoot;r.createRenderRoot=function(){var e,t,r,o=this.localName;if(window.ShadyCSS.nativeShadow)return i.call(this);if(!this.constructor.hasOwnProperty(n)){this.constructor[n]=!0;var a=this.constructor.elementStyles.map((function(e){return e instanceof CSSStyleSheet?Array.from(e.cssRules).reduce((function(e,t){return e+t.cssText}),""):e.cssText}));null===(t=null===(e=window.ShadyCSS)||void 0===e?void 0:e.ScopingShim)||void 0===t||t.prepareAdoptedCssText(a,o),void 0===this.constructor._$AJ&&window.ShadyCSS.prepareTemplateStyles(document.createElement("template"),o)}return null!==(r=this.shadowRoot)&&void 0!==r?r:this.attachShadow(this.constructor.shadowRootOptions)};var o=r.connectedCallback;r.connectedCallback=function(){o.call(this),this.hasUpdated&&window.ShadyCSS.styleElement(this)};var a=r._$AE;r._$AE=function(e){this.hasUpdated||window.ShadyCSS.styleElement(this),a.call(this,e)}}})},"function"==typeof define&&define.amd?define(e):e(),function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){var e,t,n=new Set,r=new Map;null!==(e=(t=globalThis).litHtmlPlatformSupport)&&void 0!==e||(t.litHtmlPlatformSupport=function(e,t){if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var i=function(e){return void 0!==e&&!n.has(e)},o=function(e){var t=r.get(e);return void 0===t&&r.set(e,t=[]),t},a=new Map,s=e.createElement;e.createElement=function(t,n){var r=s.call(e,t,n),a=null==n?void 0:n.scope;if(void 0!==a&&(window.ShadyCSS.nativeShadow||window.ShadyCSS.prepareTemplateDom(r,a),i(a))){var c=o(a),l=r.content.querySelectorAll("style");c.push.apply(c,Array.from(l).map((function(e){var t;return null===(t=e.parentNode)||void 0===t||t.removeChild(e),e.textContent})))}return r};var c=document.createDocumentFragment(),l=document.createComment(""),u=t.prototype,d=u._$AI;u._$AI=function(e,t){var a,s,u;void 0===t&&(t=this);var f=this._$AA.parentNode,p=null===(a=this.options)||void 0===a?void 0:a.scope;if(f instanceof ShadowRoot&&i(p)){var h=this._$AA,m=this._$AB;c.appendChild(l),this._$AA=l,this._$AB=null,d.call(this,e,t);var y=(null===(s=e)||void 0===s?void 0:s._$litType$)?this._$AH._$AD.el:document.createElement("template");if(function(e,t){var i,a=o(e),s=0!==a.length;s&&((i=document.createElement("style")).textContent=a.join("\n"),t.content.appendChild(i)),n.add(e),r.delete(e),window.ShadyCSS.prepareTemplateStyles(t,e),s&&window.ShadyCSS.nativeShadow&&null!==(i=t.content.querySelector("style"))&&t.content.appendChild(i)}(p,y),c.removeChild(l),null===(u=window.ShadyCSS)||void 0===u?void 0:u.nativeShadow){var v=y.content.querySelector("style");null!==v&&c.appendChild(v.cloneNode(!0))}f.insertBefore(c,m),this._$AA=h,this._$AB=m}else d.call(this,e,t)},u._$AC=function(t){var n,r=null===(n=this.options)||void 0===n?void 0:n.scope,i=a.get(r);void 0===i&&a.set(r,i=new Map);var o=i.get(t.strings);return void 0===o&&i.set(t.strings,o=new e(t,this.options)),o}}})})),null!==(t=(n=globalThis).litElementPlatformSupport)&&void 0!==t||(n.litElementPlatformSupport=function(e){var t=e.LitElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){t._$AJ=!0;var n=t.prototype,r=n.createRenderRoot;n.createRenderRoot=function(){return this.renderOptions.scope=this.localName,r.call(this)}}})},"function"==typeof define&&define.amd?define(e):e()},"function"==typeof define&&define.amd?define(r):r();n(7151),n(58556);self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},c=function e(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:e,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?"".concat(s[t],",").concat(n):n})),n(c())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(l,t.headers[l]);i.send(t.body||null)}))}),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){Object.prototype.hasOwnProperty.call(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){for(var e=document.createDocumentFragment(),t=arguments.length,n=new Array(t),r=0;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n.008856452?Math.pow(e,1/3):e/g+b},k=function(e){return 255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055)},x=function(e){return e>.206896552?e*e*e:g*(e-b)},E=function(e){var t=function(e){var t=d(e,3),n=t[0],r=t[1],i=t[2];return n=_(n),r=_(r),i=_(i),[w((.4124564*n+.3575761*r+.1804375*i)/y),w((.2126729*n+.7151522*r+.072175*i)/1),w((.0193339*n+.119192*r+.9503041*i)/v)]}(e),n=d(t,3),r=n[0],i=n[1],o=116*i-16;return[o<0?0:o,500*(r-i),200*(i-n[2])]},S=function(e){var t=d(e,3),n=t[0],r=t[1],i=t[2],o=(n+16)/116,a=isNaN(r)?o:o+r/500,s=isNaN(i)?o:o-i/200;return o=1*x(o),a=y*x(a),s=v*x(s),[k(3.2404542*a-1.5371385*o-.4985314*s),k(-.969266*a+1.8760108*o+.041556*s),k(.0556434*a-.2040259*o+1.0572252*s)]},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return[e[0]-18*t,e[1],e[2]]},O=function(e){for(var t=[0,0,0],n=0;nr?(n+.05)/(r+.05):(r+.05)/(n+.05)},P=["modes"];function T(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var R={},I=function(e,t,n,r){var i,o,a,c,l=n,d={};if(r&&(r.dark&&(l="".concat(l,"__dark"),d=Object.assign({},s._l)),"default"===n)){var f,p=r.primaryColor,y=r.accentColor;if(r.dark&&p&&(d["app-header-background-color"]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,r="";e=u(e),t=u(t);for(var i=0;i<=5;i+=2){for(var o=parseInt(e.substr(i,2),16),a=parseInt(t.substr(i,2),16),s=Math.floor(a+n/100*(o-a)).toString(16);s.length<2;)s="0"+s;r+=s}return"#".concat(r)}(p,"#121212",8)),p){l="".concat(l,"__primary_").concat(p);var v=h(p),b=E(v);d["primary-color"]=p;var g=S(function(e){return A(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}(b));d["light-primary-color"]=m(g),d["dark-primary-color"]=(a=A(b),c=S(a),m(c)),d["text-primary-color"]=C(v,[33,33,33])<6?"#fff":"#212121",d["text-light-primary-color"]=C(g,[33,33,33])<6?"#fff":"#212121",d["state-icon-color"]=d["dark-primary-color"]}if(y){l="".concat(l,"__accent_").concat(y),d["accent-color"]=y;var _=h(y);d["text-accent-color"]=C(_,[33,33,33])<6?"#fff":"#212121"}if((null===(f=e._themes)||void 0===f?void 0:f.cacheKey)===l)return}if(n&&"default"!==n&&t.themes[n]){var w=t.themes[n],k=w.modes,x=T(w,P);d=Object.assign({},d,x),k&&(d=null!=r&&r.dark?Object.assign({},d,k.dark):Object.assign({},d,k.light))}if(null!==(i=e._themes)&&void 0!==i&&i.keys||Object.keys(d).length){var O=d&&l?R[l]||L(l,d):void 0,I=Object.assign({},null===(o=e._themes)||void 0===o?void 0:o.keys,null==O?void 0:O.styles);e._themes={cacheKey:l,keys:null==O?void 0:O.keys},e.updateStyles?e.updateStyles(I):window.ShadyCSS&&window.ShadyCSS.styleSubtree(e,I)}},L=function(e,t){if(t&&Object.keys(t).length){for(var n=Object.assign({},s.q0,t),r={},i={},o=0,a=Object.keys(n);o5&&void 0!==u[5])||u[5],r in F){e.next=6;break}if(o){e.next=5;break}return e.abrupt("return");case 5:F[r]=o().then((function(){var e=document.createElement(r);return t.provideHass(e),e}));case 6:if(a){D.E.history.replaceState({dialog:r,open:!1,oldState:null!==(s=D.E.history.state)&&void 0!==s&&s.open&&(null===(c=D.E.history.state)||void 0===c?void 0:c.dialog)!==r?D.E.history.state:null},"");try{D.E.history.pushState({dialog:r,dialogParams:i,open:!0},"")}catch(d){D.E.history.pushState({dialog:r,dialogParams:null,open:!0},"")}}return e.next=9,F[r];case 9:l=e.sent,n.appendChild(l),l.showDialog(i);case 12:case"end":return e.stop()}}),e)})));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),Z=function(){var e=N(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t in F){e.next=2;break}return e.abrupt("return",!0);case 2:return e.next=4,F[t];case 4:if(!(n=e.sent).closeDialog){e.next=7;break}return e.abrupt("return",!1!==n.closeDialog());case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=(n(21625),n(18199));n(65660),n(54242),n(70019),n(5618);function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n .scrollable {\n -webkit-overflow-scrolling: auto !important;\n }\n\n paper-dialog-scrollable.can-scroll > .scrollable {\n -webkit-overflow-scrolling: touch !important;\n }\n\n /* for paper-dialog */\n iron-overlay-backdrop {\n backdrop-filter: var(--dialog-backdrop-filter, none);\n }\n \n"),document.head.appendChild(V.content);var $=n(97690);function K(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function W(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){K(o,r,i,a,s,"next",e)}function s(e){K(o,r,i,a,s,"throw",e)}a(void 0)}))}}var q={type:"supervisor/api",method:"GET"},Y={host:"/host/info",supervisor:"/supervisor/info",info:"/info",core:"/core/info",network:"/network/info",resolution:"/resolution/info",os:"/os/info",addon:"/addons",store:"/store"},X=function(e,t){return e.sendMessagePromise(Object.assign({},q,t))};function J(){return(J=W(regeneratorRuntime.mark((function e(t,n,r,i){var o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("supervisor-update"===r.event&&r.update_key===i){e.next=2;break}return e.abrupt("return");case 2:if(0!==Object.keys(r.data).length){e.next=8;break}return e.next=5,X(t,{endpoint:Y[i]});case 5:return o=e.sent,n.setState(o),e.abrupt("return");case 8:if(void 0!==(a=n.state)){e.next=11;break}return e.abrupt("return");case 11:n.setState(Object.assign({},a,r.data));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Q=function(e,t,n){return e.subscribeMessage((function(r){return function(e,t,n,r){return J.apply(this,arguments)}(e,t,r,n)}),{type:"supervisor/subscribe"})},ee=function(e,t,n){return(0,$._)(e,"_supervisor".concat(t,"Event"),(function(){return X(e,{endpoint:n})}),(function(e,n){return Q(e,n,t)}))},te=(n(58856),n(87724),n(14516)),ne=(n(7164),n(15493)),re=(n(40191),n(52039),n(34154)),ie=(n(50054),n(1822),n(92109),[{translationKey:"panel.dashboard",path:"/hassio/dashboard",iconPath:"M13,3V9H21V3M13,21H21V11H13M3,21H11V15H3M3,13H11V3H3V13Z"},{translationKey:"panel.store",path:"/hassio/store",iconPath:"M12,18H6V14H12M21,14V12L20,7H4L3,12V14H4V20H14V14H18V20H20V14M20,4H4V6H20V4Z"},{translationKey:"panel.backups",path:"/hassio/backups",iconPath:"M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z"},{translationKey:"panel.system",path:"/hassio/system",iconPath:"M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z"}]);n(22098),n(23295);function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=ue(e);if(t){var i=ue(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return le(this,n)}}function le(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function de(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(e,t)}(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 fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:3,t=new Map;return{get:function(n){var r=n.match(Ce).length;if(t.has(r))return t.get(r);var i=parseFloat((1/Math.sqrt(r)).toFixed(e));return t.set(r,i),i},clear:function(){t.clear()}}}var Te=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,r=void 0===n?Oe.getFn:n;pe(this,e),this.norm=Pe(3),this.getFn=r,this.isCreated=!1,this.setRecords()}return me(e,[{key:"setCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=e}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,be(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();be(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?Oe.getFn:r,o=new Te({getFn:i});return o.setKeys(e),o.setCollection(t),o.create(),o}function Ie(e,t){var n=e.matches;t.matches=[],_e(n)&&n.forEach((function(e){if(_e(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function Le(e,t){t.score=e.score}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,a=t.expectedLocation,s=void 0===a?0:a,c=t.distance,l=void 0===c?Oe.distance:c,u=r/e.length,d=Math.abs(s-o);return l?u+d/l:d?1:u}function De(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe.minMatchCharLength,n=[],r=-1,i=-1,o=0,a=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var ze=32;function Me(e){for(var t={},n=e.length,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=n.location,i=void 0===r?Oe.location:r,o=n.threshold,a=void 0===o?Oe.threshold:o,s=n.distance,c=void 0===s?Oe.distance:s,l=n.includeMatches,u=void 0===l?Oe.includeMatches:l,d=n.findAllMatches,f=void 0===d?Oe.findAllMatches:d,p=n.minMatchCharLength,h=void 0===p?Oe.minMatchCharLength:p,m=n.isCaseSensitive,y=void 0===m?Oe.isCaseSensitive:m;pe(this,e),this.options={location:i,threshold:a,distance:c,includeMatches:u,findAllMatches:f,minMatchCharLength:h,isCaseSensitive:y},this.pattern=y?t:t.toLowerCase(),this.chunks=[];for(var v=0;v3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?Oe.location:i,a=r.distance,s=void 0===a?Oe.distance:a,c=r.threshold,l=void 0===c?Oe.threshold:c,u=r.findAllMatches,d=void 0===u?Oe.findAllMatches:u,f=r.minMatchCharLength,p=void 0===f?Oe.minMatchCharLength:f,h=r.includeMatches,m=void 0===h?Oe.includeMatches:h;if(t.length>ze)throw new Error(xe(ze));var y,v=t.length,b=e.length,g=Math.max(0,Math.min(o,b)),_=l,w=g,k=[];if(m)for(var x=0;x-1;){var E=je(t,{currentLocation:y,expectedLocation:g,distance:s});if(_=Math.min(E,_),w=y+v,m)for(var S=0;S=L;z-=1){var M=z-1,N=n[e.charAt(M)];if(N&&m&&(k[M]=1),D[z]=(D[z+1]<<1|1)&N,0!==T&&(D[z]|=(A[z+1]|A[z])<<1|1|A[z+1]),D[z]&P&&(O=je(t,{errors:T,currentLocation:M,expectedLocation:g,distance:s}))<=_){if(_=O,(w=M)<=g)break;L=Math.max(1,2*g-w)}}if(je(t,{errors:T+1,currentLocation:g,expectedLocation:g,distance:s})>_)break;A=D}var F={isMatch:w>=0,score:Math.max(.001,O)};return m&&(F.indices=De(k,p)),F}(e,i,o,{location:a+ze*n,distance:s,threshold:c,findAllMatches:l,minMatchCharLength:u,includeMatches:r}),m=h.isMatch,y=h.score,v=h.indices;m&&(p=!0),f+=y,m&&v&&(d=[].concat(de(d),de(v)))}));var h={isMatch:p,score:p?f/this.chunks.length:1};return p&&r&&(h.indices=d),h}}]),e}(),Fe=function(){function e(t){pe(this,e),this.pattern=t}return me(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return Be(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return Be(e,this.singleRegex)}}]),e}();function Be(e,t){var n=e.match(t);return n?n[1]:null}var Ze=function(e){ae(n,e);var t=ce(n);function n(e){return pe(this,n),t.call(this,e)}return me(n,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?1:0,indices:r}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(Fe),Ue=function(e){ae(n,e);var t=ce(n);function n(e){return pe(this,n),t.call(this,e)}return me(n,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),n}(Fe),He=function(e){ae(n,e);var t=ce(n);function n(e){return pe(this,n),t.call(this,e)}return me(n,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),n}(Fe),Ge=function(e){ae(n,e);var t=ce(n);function n(e){return pe(this,n),t.call(this,e)}return me(n,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),n}(Fe),Ve=function(e){ae(n,e);var t=ce(n);function n(e){return pe(this,n),t.call(this,e)}return me(n,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),n}(Fe),$e=function(e){ae(n,e);var t=ce(n);function n(e){return pe(this,n),t.call(this,e)}return me(n,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),n}(Fe),Ke=function(e){ae(n,e);var t=ce(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,a=void 0===o?Oe.location:o,s=i.threshold,c=void 0===s?Oe.threshold:s,l=i.distance,u=void 0===l?Oe.distance:l,d=i.includeMatches,f=void 0===d?Oe.includeMatches:d,p=i.findAllMatches,h=void 0===p?Oe.findAllMatches:p,m=i.minMatchCharLength,y=void 0===m?Oe.minMatchCharLength:m,v=i.isCaseSensitive,b=void 0===v?Oe.isCaseSensitive:v;return pe(this,n),(r=t.call(this,e))._bitapSearch=new Ne(e,{location:a,threshold:c,distance:u,includeMatches:f,findAllMatches:h,minMatchCharLength:y,isCaseSensitive:b}),r}return me(n,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(Fe),We=[Ze,He,Ge,$e,Ve,Ue,Ke],qe=We.length,Ye=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Ye).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i1&&void 0!==arguments[1]?arguments[1]:{},r=n.isCaseSensitive,i=void 0===r?Oe.isCaseSensitive:r,o=n.includeMatches,a=void 0===o?Oe.includeMatches:o,s=n.minMatchCharLength,c=void 0===s?Oe.minMatchCharLength:s,l=n.findAllMatches,u=void 0===l?Oe.findAllMatches:l,d=n.location,f=void 0===d?Oe.location:d,p=n.threshold,h=void 0===p?Oe.threshold:p,m=n.distance,y=void 0===m?Oe.distance:m;pe(this,e),this.query=null,this.options={isCaseSensitive:i,includeMatches:a,minMatchCharLength:c,findAllMatches:u,location:f,threshold:h,distance:y},this.pattern=i?t:t.toLowerCase(),this.query=Xe(this.pattern,this.options)}return me(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var i=0,o=[],a=0,s=0,c=t.length;s2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,i=void 0===r||r,o=function e(n){var r=Object.keys(n);if(r.length>1&&!it(n))return e(at(n));var o=r[0];if(ot(n)){var a=n[o];if(!be(a))throw new Error(ke(o));var s={key:o,pattern:a};return i&&(s.searcher=tt(a,t)),s}var c={children:[],operator:o};return r.forEach((function(t){var r=n[t];ve(r)&&r.forEach((function(t){c.children.push(e(t))}))})),c};return it(e)||(e=at(e)),o(e)}var ct=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;pe(this,e),this.options=Object.assign({},Oe,n),this.options.useExtendedSearch,this._keyStore=new Se(this.options.keys),this.setCollection(t,r)}return me(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof Te))throw new Error("Incorrect 'index' type");this._myIndex=t||Re(this._keyStore.keys(),this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){_e(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,a=i.includeScore,s=i.shouldSort,c=i.sortFn,l=be(e)?be(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return lt(l,this._keyStore),s&&l.sort(c),ge(r)&&r>-1&&(l=l.slice(0,r)),ut(l,this._docs,{includeMatches:o,includeScore:a})}},{key:"_searchStringList",value:function(e){var t=tt(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(_e(n)){var a=t.searchIn(n),s=a.isMatch,c=a.score,l=a.indices;s&&r.push({item:n,idx:i,matches:[{score:c,value:n,norm:o,indices:l}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=st(e,this.options),r=this._myIndex,i=r.keys,o=r.records,a={},s=[],c=function e(n,r,o){if(!n.children){var c=n.key,l=n.searcher,u=r[i.indexOf(c)];return t._findMatches({key:c,value:u,searcher:l})}for(var d=n.operator,f=[],p=0;p2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?Oe.includeMatches:r,o=n.includeScore,a=void 0===o?Oe.includeScore:o,s=[];return i&&s.push(Ie),a&&s.push(Le),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return s.length&&s.forEach((function(t){t(e,r)})),r}))}ct.version="6.0.0",ct.createIndex=Re,ct.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?Oe.getFn:n,i=e.keys,o=e.records,a=new Te({getFn:r});return a.setKeys(i),a.setRecords(o),a},ct.config=Oe,ct.parseQuery=st,function(){et.push.apply(et,arguments)}(Qe);var dt=ct;var ft,pt,ht,mt,yt=n(55677);function vt(e){return(vt="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 bt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=Et(e);if(t){var i=Et(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kt(this,n)}}function kt(e,t){return!t||"object"!==vt(t)&&"function"!=typeof t?xt(e):t}function xt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function St(){St=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ct(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n

    \n ',"\n

    \n
    \n "])),this.supervisor.localize("store.no_results_found","repository",n.name)):(0,i.dy)(pt||(pt=bt(['\n
    \n

    ','

    \n
    \n ',"\n
    \n
    \n "])),n.name,o.map((function(e){return(0,i.dy)(ht||(ht=bt(["\n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n ',' \n \n \n \n \n \n ',"\n \n \n "])),this.supervisor.localize("store.missing_addons")))}},{kind:"method",key:"firstUpdated",value:function(e){var t=this;an(sn(d.prototype),"firstUpdated",this).call(this,e);var n=(0,ne.io)("repository_url");(0,z.c)("/hassio/store",{replace:!0}),n&&this._manageRepositories(n),this.addEventListener("hass-api-called",(function(e){return t.apiCalled(e)})),this._loadData()}},{kind:"field",key:"addonRepositories",value:function(){var e=this;return(0,te.Z)((function(t,n,r){return t.sort(cn).map((function(t){var o=n.filter((function(e){return e.repository===t.slug}));return 0!==o.length?(0,i.dy)(Nt||(Nt=Ht(["\n \n "])),e.hass,t,o,r,e.supervisor):(0,i.dy)(Ft||(Ft=Ht([""])))}))}))}},{kind:"method",key:"_handleAction",value:function(e){switch(e.detail.index){case 0:this._manageRepositoriesClicked();break;case 1:this.refreshData();break;case 2:this._manageRegistries()}}},{kind:"method",key:"apiCalled",value:function(e){e.detail.success&&this._loadData()}},{kind:"method",key:"_manageRepositoriesClicked",value:function(){this._manageRepositories()}},{kind:"method",key:"_manageRepositories",value:(l=Vt(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this,i={supervisor:this.supervisor,url:t},(0,j.B)(r,"show-dialog",{dialogTag:"dialog-hassio-repositories",dialogImport:function(){return Promise.resolve().then(n.bind(n,92109))},dialogParams:i});case 1:case"end":return e.stop()}var r,i}),e,this)}))),function(e){return l.apply(this,arguments)})},{kind:"method",key:"_manageRegistries",value:(c=Vt(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this,r={supervisor:this.supervisor},(0,j.B)(t,"show-dialog",{dialogTag:"dialog-hassio-registries",dialogImport:function(){return Promise.resolve().then(n.bind(n,1822))},dialogParams:r});case 1:case"end":return e.stop()}var t,r}),e,this)}))),function(){return c.apply(this,arguments)})},{kind:"method",key:"_loadData",value:(s=Vt(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,j.B)(this,"supervisor-collection-refresh",{collection:"addon"}),(0,j.B)(this,"supervisor-collection-refresh",{collection:"supervisor"});case 2:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{kind:"method",key:"_filterChanged",value:(r=Vt(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._filter=t.detail.value;case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(Bt||(Bt=Ht(["\n hassio-addon-repository {\n margin-top: 24px;\n }\n .search {\n padding: 0 16px;\n background: var(--sidebar-background-color);\n border-bottom: 1px solid var(--divider-color);\n }\n .search search-input {\n position: relative;\n top: 2px;\n }\n .advanced {\n padding: 12px;\n display: flex;\n flex-wrap: wrap;\n color: var(--primary-text-color);\n }\n .advanced a {\n margin-left: 0.5em;\n color: var(--primary-color);\n }\n "])))}}]}}),i.oi);customElements.define("hassio-addon-store",ln);var un,dn,fn,pn,hn=n(85415);function mn(e){return(mn="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 yn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bn(e,t){return(bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=kn(e);if(t){var i=kn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _n(this,n)}}function _n(e,t){return!t||"object"!==mn(t)&&"function"!=typeof t?wn(e):t}function wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kn(e){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xn(){xn=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!An(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n

    ','

    \n
    \n ',"\n
    \n \n "])),this.supervisor.localize("dashboard.addons"),null!==(e=this.supervisor.supervisor.addons)&&void 0!==e&&e.length?this.supervisor.supervisor.addons.sort((function(e,t){return(0,hn.$)(e.name,t.name)})).map((function(e){return(0,i.dy)(fn||(fn=yn(["\n \n \n
    \n
    \n "])),this.supervisor.localize("common.update_available","count",e),this._renderUpdateCard("Home Assistant Core","core",this.supervisor.core,"hassio/homeassistant/update","https://".concat(this.supervisor.core.version_latest.includes("b")?"rc":"www",".home-assistant.io/latest-release-notes/")),this._renderUpdateCard("Supervisor","supervisor",this.supervisor.supervisor,"hassio/supervisor/update","https://github.com//home-assistant/hassio/releases/tag/".concat(this.supervisor.supervisor.version_latest)),this.supervisor.host.features.includes("haos")?this._renderUpdateCard("Operating System","os",this.supervisor.os,"hassio/os/update","https://github.com//home-assistant/hassos/releases/tag/".concat(this.supervisor.os.version_latest)):""):(0,i.dy)(Dn||(Dn=Kn([""])))}},{kind:"method",key:"_renderUpdateCard",value:function(e,t,n,r,o){return n.update_available?(0,i.dy)(Nn||(Nn=Kn(['\n \n
    \n
    \n \n
    \n
    ','
    \n \n \n ','\n \n \n ','\n \n \n\n \n \n ','\n \n \n ','\n \n \n
    \n
    \n \n \n ',"\n \n \n \n ","\n \n
    \n
    \n "])),"M21.8,13H20V21H13V17.67L15.79,14.88L16.5,15C17.66,15 18.6,14.06 18.6,12.9C18.6,11.74 17.66,10.8 16.5,10.8A2.1,2.1 0 0,0 14.4,12.9L14.5,13.61L13,15.13V9.65C13.66,9.29 14.1,8.6 14.1,7.8A2.1,2.1 0 0,0 12,5.7A2.1,2.1 0 0,0 9.9,7.8C9.9,8.6 10.34,9.29 11,9.65V15.13L9.5,13.61L9.6,12.9A2.1,2.1 0 0,0 7.5,10.8A2.1,2.1 0 0,0 5.4,12.9A2.1,2.1 0 0,0 7.5,15L8.21,14.88L11,17.67V21H4V13H2.25C1.83,13 1.42,13 1.42,12.79C1.43,12.57 1.85,12.15 2.28,11.72L11,3C11.33,2.67 11.67,2.33 12,2.33C12.33,2.33 12.67,2.67 13,3L17,7V6H19V9L21.78,11.78C22.18,12.18 22.59,12.59 22.6,12.8C22.6,13 22.2,13 21.8,13M7.5,12A0.9,0.9 0 0,1 8.4,12.9A0.9,0.9 0 0,1 7.5,13.8A0.9,0.9 0 0,1 6.6,12.9A0.9,0.9 0 0,1 7.5,12M16.5,12C17,12 17.4,12.4 17.4,12.9C17.4,13.4 17,13.8 16.5,13.8A0.9,0.9 0 0,1 15.6,12.9A0.9,0.9 0 0,1 16.5,12M12,6.9C12.5,6.9 12.9,7.3 12.9,7.8C12.9,8.3 12.5,8.7 12,8.7C11.5,8.7 11.1,8.3 11.1,7.8C11.1,7.3 11.5,6.9 12,6.9Z",e,this.supervisor.localize("common.version"),ur(t,n.version),this.supervisor.localize("common.newest_version"),ur(t,n.version_latest),o,this.supervisor.localize("common.release_notes"),r,e,t,n.version_latest,this._confirmUpdate,this.supervisor.localize("common.update")):(0,i.dy)(Mn||(Mn=Kn([""])))}},{kind:"method",key:"_confirmUpdate",value:(r=$n(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("core"!==(n=t.currentTarget).key){e.next=4;break}return(0,Hn.z)(this,{supervisor:this.supervisor,name:"Home Assistant Core",version:this.supervisor.core.version_latest,backupParams:{name:"core_".concat(this.supervisor.core.version),folders:["homeassistant"],homeassistant:!0},updateHandler:function(){var e=$n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r._updateCore());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.abrupt("return");case 4:return n.progress=!0,e.next=7,(0,Un.g7)(this,{title:this.supervisor.localize("confirm.update.title","name",n.name),text:this.supervisor.localize("confirm.update.text","name",n.name,"version",ur(n.key,n.version)),confirmText:this.supervisor.localize("common.update"),dismissText:this.supervisor.localize("common.cancel")});case 7:if(e.sent){e.next=11;break}return n.progress=!1,e.abrupt("return");case 11:if(e.prev=11,!(0,a.I)(this.hass.config.version,2021,2,4)){e.next=17;break}return e.next=15,X(this.hass.connection,{method:"post",endpoint:n.apiPath.replace("hassio",""),timeout:null});case 15:e.next=19;break;case 17:return e.next=19,this.hass.callApi("POST",n.apiPath);case 19:(0,j.B)(this,"supervisor-collection-refresh",{collection:n.key}),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(11),this.hass.connection.connected&&!(0,Rn.yz)(e.t0)&&(0,Un.Ys)(this,{title:this.supervisor.localize("common.error.update_failed"),text:(0,Rn.js)(e.t0)});case 25:n.progress=!1;case 26:case"end":return e.stop()}}),e,this,[[11,22]])}))),function(e){return r.apply(this,arguments)})},{kind:"method",key:"_updateCore",value:(n=$n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zn(this.hass);case 2:(0,j.B)(this,"supervisor-collection-refresh",{collection:"core"});case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[s.Qx,yt.l,(0,i.iv)(Fn||(Fn=Kn(["\n .icon {\n --mdc-icon-size: 48px;\n float: right;\n margin: 0 0 2px 10px;\n color: var(--primary-text-color);\n }\n .update-heading {\n font-size: var(--paper-font-subhead_-_font-size);\n font-weight: 500;\n margin-bottom: 0.5em;\n color: var(--primary-text-color);\n }\n .card-content {\n height: calc(100% - 47px);\n box-sizing: border-box;\n }\n .card-actions {\n text-align: right;\n }\n a {\n text-decoration: none;\n }\n ha-settings-row {\n padding: 0;\n --paper-item-body-two-line-min-height: 32px;\n }\n "])))]}}]}}),i.oi);function dr(e){return(dr="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 fr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(e,t){return(hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=br(e);if(t){var i=br(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return yr(this,n)}}function yr(e,t){return!t||"object"!==dr(t)&&"function"!=typeof t?vr(e):t}function vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gr(){gr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!kr(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ','\n \n
    \n \x3c!--\n --\x3e',"\x3c!--\n --\x3e\x3c!--\n --\x3e","\x3c!--\n --\x3e","\x3c!--\n --\x3e"])),(0,Br.$)(t),this.disabled,n,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleFocus,this.handleRippleBlur,this.handleRippleActivate,this.handleRippleStartPress,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderBeforeRipple(),this.renderRipple(),this.showIconAtEnd?this.renderLabel():"",this.icon,this.showIconAtEnd?"":this.renderLabel(),this.renderTouchTarget())}},{key:"renderIcon",value:function(){return(0,Nr.dy)(Cr||(Cr=Ur([""])))}},{key:"renderTouchTarget",value:function(){var e=this.mini&&!this.reducedTouchTarget;return(0,Nr.dy)(Pr||(Pr=Ur(["",""])),e?(0,Nr.dy)(Tr||(Tr=Ur(['
    ']))):"")}},{key:"renderLabel",value:function(){var e=""!==this.label&&this.extended;return(0,Nr.dy)(Rr||(Rr=Ur(["",""])),e?(0,Nr.dy)(Ir||(Ir=Ur(['',""])),this.label):"")}},{key:"renderBeforeRipple",value:function(){return(0,Nr.dy)(Lr||(Lr=Ur([""])))}},{key:"renderRipple",value:function(){return this.shouldRenderRipple?(0,Nr.dy)(jr||(jr=Ur([''])),this.useStateLayerCustomProperties):""}},{key:"handleRippleActivate",value:function(e){var t=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),t.handleRippleDeactivate()})),this.handleRippleStartPress(e)}},{key:"handleRippleStartPress",value:function(e){this.rippleHandlers.startPress(e)}},{key:"handleRippleDeactivate",value:function(){this.rippleHandlers.endPress()}},{key:"handleRippleMouseEnter",value:function(){this.rippleHandlers.startHover()}},{key:"handleRippleMouseLeave",value:function(){this.rippleHandlers.endHover()}},{key:"handleRippleFocus",value:function(){this.rippleHandlers.startFocus()}},{key:"handleRippleBlur",value:function(){this.rippleHandlers.endFocus()}}])&&Gr(t.prototype,n),r&&Gr(t,r),o}(Nr.oi);Yr.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,Mr.__decorate)([(0,Nr.GC)("mwc-ripple")],Yr.prototype,"ripple",void 0),(0,Mr.__decorate)([(0,Nr.Cb)({type:Boolean})],Yr.prototype,"mini",void 0),(0,Mr.__decorate)([(0,Nr.Cb)({type:Boolean})],Yr.prototype,"exited",void 0),(0,Mr.__decorate)([(0,Nr.Cb)({type:Boolean})],Yr.prototype,"disabled",void 0),(0,Mr.__decorate)([(0,Nr.Cb)({type:Boolean})],Yr.prototype,"extended",void 0),(0,Mr.__decorate)([(0,Nr.Cb)({type:Boolean})],Yr.prototype,"showIconAtEnd",void 0),(0,Mr.__decorate)([(0,Nr.Cb)({type:Boolean})],Yr.prototype,"reducedTouchTarget",void 0),(0,Mr.__decorate)([(0,Nr.Cb)()],Yr.prototype,"icon",void 0),(0,Mr.__decorate)([(0,Nr.Cb)()],Yr.prototype,"label",void 0),(0,Mr.__decorate)([(0,Nr.SB)()],Yr.prototype,"shouldRenderRipple",void 0),(0,Mr.__decorate)([(0,Nr.SB)()],Yr.prototype,"useStateLayerCustomProperties",void 0),(0,Mr.__decorate)([(0,Nr.hO)({passive:!0})],Yr.prototype,"handleRippleStartPress",null);var Xr,Jr,Qr=(0,Nr.iv)(qr||(Xr=[':host .mdc-fab .material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{outline:none;--mdc-ripple-color: currentcolor;user-select:none;-webkit-tap-highlight-color:transparent;display:inline-flex;-webkit-tap-highlight-color:transparent;display:inline-flex;outline:none;user-select:none}:host .mdc-touch-target-wrapper{display:inline}:host .mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}:host .mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}:host .mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}:host .mdc-fab::-moz-focus-inner{padding:0;border:0}:host .mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}:host .mdc-fab.mdc-ripple-upgraded--background-focused,:host .mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}:host .mdc-fab:active,:host .mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2),0px 12px 17px 2px rgba(0, 0, 0, 0.14),0px 5px 22px 4px rgba(0,0,0,.12)}:host .mdc-fab:active,:host .mdc-fab:focus{outline:none}:host .mdc-fab:hover{cursor:pointer}:host .mdc-fab>svg{width:100%}:host .mdc-fab--mini{width:40px;height:40px}:host .mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}:host .mdc-fab--extended .mdc-fab__ripple{border-radius:24px}:host .mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] :host .mdc-fab--extended .mdc-fab__icon,:host .mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}:host .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] :host .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,:host .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}:host .mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}:host .mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}:host .mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}:host .mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}:host .mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}:host .mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}:host .mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}:host .mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}:host .mdc-fab{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px 0px rgba(0, 0, 0, 0.14),0px 1px 18px 0px rgba(0,0,0,.12)}:host .mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}:host .mdc-fab,:host .mdc-fab:not(:disabled) .mdc-fab__icon,:host .mdc-fab:not(:disabled) .mdc-fab__label,:host .mdc-fab:disabled .mdc-fab__icon,:host .mdc-fab:disabled .mdc-fab__label{color:#fff;color:var(--mdc-theme-on-secondary, #fff)}:host .mdc-fab:not(.mdc-fab--extended){border-radius:50%}:host .mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}:host .mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}:host .mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}:host .mdc-fab::-moz-focus-inner{padding:0;border:0}:host .mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}:host .mdc-fab.mdc-ripple-upgraded--background-focused,:host .mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}:host .mdc-fab:active,:host .mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2),0px 12px 17px 2px rgba(0, 0, 0, 0.14),0px 5px 22px 4px rgba(0,0,0,.12)}:host .mdc-fab:active,:host .mdc-fab:focus{outline:none}:host .mdc-fab:hover{cursor:pointer}:host .mdc-fab>svg{width:100%}:host .mdc-fab--mini{width:40px;height:40px}:host .mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}:host .mdc-fab--extended .mdc-fab__ripple{border-radius:24px}:host .mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] :host .mdc-fab--extended .mdc-fab__icon,:host .mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}:host .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] :host .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,:host .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}:host .mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}:host .mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}:host .mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}:host .mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}:host .mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}:host .mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}:host .mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}:host .mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}:host .mdc-fab .ripple{overflow:hidden}:host .mdc-fab:not(.mdc-fab--extended) .ripple{border-radius:50%}:host .mdc-fab .mdc-fab__label{z-index:0}:host .mdc-fab:not(.mdc-fab--extended) .ripple{border-radius:50%}:host .mdc-fab .mdc-fab__icon ::slotted(*){width:inherit;height:inherit;font-size:inherit}:host .mdc-fab--extended.mdc-fab--exited .mdc-fab__icon ::slotted(*){transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}:host .mdc-fab{padding-top:0px;padding-top:max(0px, var(--mdc-fab-focus-outline-width, 0px));padding-right:0px;padding-right:max(0px, var(--mdc-fab-focus-outline-width, 0px));padding-bottom:0px;padding-bottom:max(0px, var(--mdc-fab-focus-outline-width, 0px));padding-left:0px;padding-left:max(0px, var(--mdc-fab-focus-outline-width, 0px));box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-fab-box-shadow, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12))}:host .mdc-fab:not(:disabled).mdc-ripple-upgraded--background-focused,:host .mdc-fab:not(:disabled):not(.mdc-ripple-upgraded):focus{border-color:initial;border-color:var(--mdc-fab-focus-outline-color, initial)}:host .mdc-fab:not(:disabled).mdc-ripple-upgraded--background-focused,:host .mdc-fab:not(:disabled):not(.mdc-ripple-upgraded):focus{border-style:solid;border-width:var(--mdc-fab-focus-outline-width, 0px);padding-top:0px;padding-top:max(calc(0px - var(--mdc-fab-focus-outline-width, 0px)), calc(calc(0px - var(--mdc-fab-focus-outline-width, 0px)) * -1));padding-right:0px;padding-right:max(calc(0px - var(--mdc-fab-focus-outline-width, 0px)), calc(calc(0px - var(--mdc-fab-focus-outline-width, 0px)) * -1));padding-bottom:0px;padding-bottom:max(calc(0px - var(--mdc-fab-focus-outline-width, 0px)), calc(calc(0px - var(--mdc-fab-focus-outline-width, 0px)) * -1));padding-left:0px;padding-left:max(calc(0px - var(--mdc-fab-focus-outline-width, 0px)), calc(calc(0px - var(--mdc-fab-focus-outline-width, 0px)) * -1))}:host .mdc-fab:hover,:host .mdc-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-fab-box-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}:host .mdc-fab:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-fab-box-shadow, 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12))}:host .mdc-fab .ripple{overflow:hidden}:host .mdc-fab .mdc-fab__label{z-index:0}:host .mdc-fab:not(.mdc-fab--extended) .ripple{border-radius:50%}:host .mdc-fab.mdc-fab--extended .ripple{border-radius:24px}:host .mdc-fab .mdc-fab__icon{width:24px;width:var(--mdc-icon-size, 24px);height:24px;height:var(--mdc-icon-size, 24px);font-size:24px;font-size:var(--mdc-icon-size, 24px);transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform;display:inline-flex;align-items:center;justify-content:center}:host .mdc-fab.mdc-fab--extended{padding-top:0px;padding-top:max(0px, var(--mdc-fab-focus-outline-width, 0px));padding-right:20px;padding-right:max(var(--mdc-fab-extended-label-padding, 20px), var(--mdc-fab-focus-outline-width, 0px));padding-bottom:0px;padding-bottom:max(0px, var(--mdc-fab-focus-outline-width, 0px));padding-left:20px;padding-left:max(var(--mdc-fab-extended-label-padding, 20px), var(--mdc-fab-focus-outline-width, 0px))}:host .mdc-fab.mdc-fab--extended:not(:disabled).mdc-ripple-upgraded--background-focused,:host .mdc-fab.mdc-fab--extended:not(:disabled):not(.mdc-ripple-upgraded):focus{border-style:solid;border-width:var(--mdc-fab-focus-outline-width, 0px);padding-top:0px;padding-top:max(calc(0px - var(--mdc-fab-focus-outline-width, 0px)), calc(calc(0px - var(--mdc-fab-focus-outline-width, 0px)) * -1));padding-right:20px;padding-right:max(calc(var(--mdc-fab-extended-label-padding, 20px) - var(--mdc-fab-focus-outline-width, 0px)), calc(calc(var(--mdc-fab-extended-label-padding, 20px) - var(--mdc-fab-focus-outline-width, 0px)) * -1));padding-bottom:0px;padding-bottom:max(calc(0px - var(--mdc-fab-focus-outline-width, 0px)), calc(calc(0px - var(--mdc-fab-focus-outline-width, 0px)) * -1));padding-left:20px;padding-left:max(calc(var(--mdc-fab-extended-label-padding, 20px) - var(--mdc-fab-focus-outline-width, 0px)), calc(calc(var(--mdc-fab-extended-label-padding, 20px) - var(--mdc-fab-focus-outline-width, 0px)) * -1))}:host .mdc-fab.mdc-fab--extended.icon-end .mdc-fab__icon{margin-left:12px;margin-left:var(--mdc-fab-extended-icon-padding, 12px);margin-right:calc(12px - 20px);margin-right:calc(var(--mdc-fab-extended-icon-padding, 12px) - var(--mdc-fab-extended-label-padding, 20px))}[dir=rtl] :host .mdc-fab.mdc-fab--extended.icon-end .mdc-fab__icon,:host .mdc-fab.mdc-fab--extended.icon-end .mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-left:calc(var(--mdc-fab-extended-icon-padding, 12px) - var(--mdc-fab-extended-label-padding, 20px));margin-right:12px;margin-right:var(--mdc-fab-extended-icon-padding, 12px)}'],Jr||(Jr=Xr.slice(0)),qr=Object.freeze(Object.defineProperties(Xr,{raw:{value:Object.freeze(Jr)}}))));function ei(e){return(ei="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 ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ni(e,t){return(ni=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=oi(e);if(t){var i=oi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ii(this,n)}}function ii(e,t){return!t||"object"!==ei(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oi(e){return(oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ai=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ni(e,t)}(n,e);var t=ri(n);function n(){return ti(this,n),t.apply(this,arguments)}return n}(Yr);function si(e){return(si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function li(e,t){return(li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ui(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=ki(e);if(t){var i=ki(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return di(this,n)}}function di(e,t){return!t||"object"!==si(t)&&"function"!=typeof t?fi(e):t}function fi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pi(){pi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!yi(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n :host {\n display: block;\n position: absolute;\n outline: none;\n z-index: 1002;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: default;\n }\n\n #tooltip {\n display: block;\n outline: none;\n @apply --paper-font-common-base;\n font-size: 10px;\n line-height: 1;\n background-color: var(--paper-tooltip-background, #616161);\n color: var(--paper-tooltip-text-color, white);\n padding: 8px;\n border-radius: 2px;\n @apply --paper-tooltip;\n }\n\n @keyframes keyFrameScaleUp {\n 0% {\n transform: scale(0.0);\n }\n 100% {\n transform: scale(1.0);\n }\n }\n\n @keyframes keyFrameScaleDown {\n 0% {\n transform: scale(1.0);\n }\n 100% {\n transform: scale(0.0);\n }\n }\n\n @keyframes keyFrameFadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: var(--paper-tooltip-opacity, 0.9);\n }\n }\n\n @keyframes keyFrameFadeOutOpacity {\n 0% {\n opacity: var(--paper-tooltip-opacity, 0.9);\n }\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes keyFrameSlideDownIn {\n 0% {\n transform: translateY(-2000px);\n opacity: 0;\n }\n 10% {\n opacity: 0.2;\n }\n 100% {\n transform: translateY(0);\n opacity: var(--paper-tooltip-opacity, 0.9);\n }\n }\n\n @keyframes keyFrameSlideDownOut {\n 0% {\n transform: translateY(0);\n opacity: var(--paper-tooltip-opacity, 0.9);\n }\n 10% {\n opacity: 0.2;\n }\n 100% {\n transform: translateY(-2000px);\n opacity: 0;\n }\n }\n\n .fade-in-animation {\n opacity: 0;\n animation-delay: var(--paper-tooltip-delay-in, 500ms);\n animation-name: keyFrameFadeInOpacity;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n animation-duration: var(--paper-tooltip-duration-in, 500ms);\n animation-fill-mode: forwards;\n @apply --paper-tooltip-animation;\n }\n\n .fade-out-animation {\n opacity: var(--paper-tooltip-opacity, 0.9);\n animation-delay: var(--paper-tooltip-delay-out, 0ms);\n animation-name: keyFrameFadeOutOpacity;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n animation-duration: var(--paper-tooltip-duration-out, 500ms);\n animation-fill-mode: forwards;\n @apply --paper-tooltip-animation;\n }\n\n .scale-up-animation {\n transform: scale(0);\n opacity: var(--paper-tooltip-opacity, 0.9);\n animation-delay: var(--paper-tooltip-delay-in, 500ms);\n animation-name: keyFrameScaleUp;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n animation-duration: var(--paper-tooltip-duration-in, 500ms);\n animation-fill-mode: forwards;\n @apply --paper-tooltip-animation;\n }\n\n .scale-down-animation {\n transform: scale(1);\n opacity: var(--paper-tooltip-opacity, 0.9);\n animation-delay: var(--paper-tooltip-delay-out, 500ms);\n animation-name: keyFrameScaleDown;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n animation-duration: var(--paper-tooltip-duration-out, 500ms);\n animation-fill-mode: forwards;\n @apply --paper-tooltip-animation;\n }\n\n .slide-down-animation {\n transform: translateY(-2000px);\n opacity: 0;\n animation-delay: var(--paper-tooltip-delay-out, 500ms);\n animation-name: keyFrameSlideDownIn;\n animation-iteration-count: 1;\n animation-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1);\n animation-duration: var(--paper-tooltip-duration-out, 500ms);\n animation-fill-mode: forwards;\n @apply --paper-tooltip-animation;\n }\n\n .slide-down-animation-out {\n transform: translateY(0);\n opacity: var(--paper-tooltip-opacity, 0.9);\n animation-delay: var(--paper-tooltip-delay-out, 500ms);\n animation-name: keyFrameSlideDownOut;\n animation-iteration-count: 1;\n animation-timing-function: cubic-bezier(0.4, 0.0, 1, 1);\n animation-duration: var(--paper-tooltip-duration-out, 500ms);\n animation-fill-mode: forwards;\n @apply --paper-tooltip-animation;\n }\n\n .cancel-animation {\n animation-delay: -30s !important;\n }\n\n /* Thanks IE 10. */\n\n .hidden {\n display: none !important;\n }\n \n\n \n']))),is:"paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var e=(0,Ai.vz)(this).parentNode,t=(0,Ai.vz)(this).getOwnerRoot();return this.for?(0,Ai.vz)(t).querySelector("#"+this.for):e.nodeType==Node.DOCUMENT_FRAGMENT_NODE?t.host:e},attached:function(){this._findTarget()},detached:function(){this.manualMode||this._removeListeners()},playAnimation:function(e){"entry"===e?this.show():"exit"===e&&this.hide()},cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},show:function(){if(!this._showing){if(""===(0,Ai.vz)(this).textContent.trim()){for(var e=!0,t=(0,Ai.vz)(this).getEffectiveChildNodes(),n=0;nwindow.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,t)+"px",this.style.right="auto"),r.top+n+o.height>window.innerHeight?(this.style.bottom=r.height-l+e+"px",this.style.top="auto"):(this.style.top=Math.max(-r.top,n)+"px",this.style.bottom="auto")):(this.style.left=t+"px",this.style.top=n+"px")}},_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide")),this.listen(this.$.tooltip,"animationend","_onAnimationEnd"),this.listen(this,"mouseenter","hide")},_findTarget:function(){this.manualMode||this._removeListeners(),this._target=this.target,this.manualMode||this._addListeners()},_delayChange:function(e){500!==e&&this.updateStyles({"--paper-tooltip-delay-in":e+"ms"})},_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add("hidden")},_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},_onAnimationEnd:function(){this._animationPlaying=!1,this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},_getAnimationType:function(e){if("entry"===e&&""!==this.animationEntry)return this.animationEntry;if("exit"===e&&""!==this.animationExit)return this.animationExit;if(this.animationConfig[e]&&"string"==typeof this.animationConfig[e][0].name){if(this.animationConfig[e][0].timing&&this.animationConfig[e][0].timing.delay&&0!==this.animationConfig[e][0].timing.delay){var t=this.animationConfig[e][0].timing.delay;"entry"===e?this.updateStyles({"--paper-tooltip-delay-in":t+"ms"}):"exit"===e&&this.updateStyles({"--paper-tooltip-delay-out":t+"ms"})}return this.animationConfig[e][0].name}},_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide")),this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd"),this.unlisten(this,"mouseenter","hide")}});var Ci=n(87744),Pi=n(19967),Ti=n(57724),Ri=n(55122);function Ii(e){return(Ii="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 Li(e){return function(e){if(Array.isArray(e))return Ui(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zi(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 ji(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Di(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(o);try{for(s.s();!(a=s.n()).done;){var c=a.value;null===(i=(r=c)._$AO)||void 0===i||i.call(r,n,!1),e(c,n)}}catch(l){s.e(l)}finally{s.f()}return!0},Gi=function(e){var t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===(null==n?void 0:n.size))},Vi=function(e){for(var t;t=e._$AM;e=t){var n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Wi(t)}};function $i(e){void 0!==this._$AN?(Gi(this),this._$AM=e,Vi(this)):this._$AM=e}function Ki(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(r))for(var o=n;o1&&void 0!==arguments[1])||arguments[1];e!==this.isConnected&&(this.isConnected=e,e?null===(t=this.reconnected)||void 0===t||t.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),r&&(Hi(this,e),Gi(this))}},{key:"setValue",value:function(e){if((0,Ti.OR)(this._$Ct))this._$Ct._$AI(e,this);else{var t=Li(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}])&&Di(t.prototype,n),r&&Di(t,r),o}(Ri.Xe),Yi=n(99602);function Xi(e){return(Xi="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 Ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Qi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qi(e,t){if(e){if("string"==typeof e)return eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(c.s();!(i=c.n()).done;){var l=i.value;o[s]=r?r(l,s):s,a[s]=n(l,s),s++}}catch(u){c.e(u)}finally{c.f()}return{values:a,keys:o}}},{key:"render",value:function(e,t,n){return this.ht(e,t,n).values}},{key:"update",value:function(e,t){var n,r=Ji(t,3),i=r[0],o=r[1],a=r[2],s=(0,Ti.i9)(e),c=this.ht(i,o,a),l=c.values,u=c.keys;if(!s)return this.dt=u,l;for(var d,f,p=null!==(n=this.dt)&&void 0!==n?n:this.dt=[],h=[],m=0,y=s.length-1,v=0,b=l.length-1;m<=y&&v<=b;)if(null===s[m])m++;else if(null===s[y])y--;else if(p[m]===u[v])h[v]=(0,Ti.fk)(s[m],l[v]),m++,v++;else if(p[y]===u[b])h[b]=(0,Ti.fk)(s[y],l[b]),y--,b--;else if(p[m]===u[b])h[b]=(0,Ti.fk)(s[m],l[b]),(0,Ti._Y)(e,h[b+1],s[m]),m++,b--;else if(p[y]===u[v])h[v]=(0,Ti.fk)(s[y],l[v]),(0,Ti._Y)(e,s[m],s[y]),y--,v++;else if(void 0===d&&(d=co(u,v,b),f=co(p,m,y)),d.has(p[m]))if(d.has(p[y])){var g=f.get(u[v]),_=void 0!==g?s[g]:null;if(null===_){var w=(0,Ti._Y)(e,s[m]);(0,Ti.fk)(w,l[v]),h[v]=w}else h[v]=(0,Ti.fk)(_,l[v]),(0,Ti._Y)(e,s[m],_),s[g]=null;v++}else(0,Ti.ws)(s[y]),y--;else(0,Ti.ws)(s[m]),m++;for(;v<=b;){var k=(0,Ti._Y)(e,h[b+1]);(0,Ti.fk)(k,l[v]),h[v++]=k}for(;m<=y;){var x=s[m++];null!==x&&(0,Ti.ws)(x)}return this.dt=u,(0,Ti.hl)(e,h),Yi.Jb}}])&&to(t.prototype,n),r&&to(t,r),o}(Ri.Xe));function uo(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function fo(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){uo(o,r,i,a,s,"next",e)}function s(e){uo(o,r,i,a,s,"throw",e)}a(void 0)}))}}function po(){return ho.apply(this,arguments)}function ho(){return(ho=fo(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",so||mo());case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mo(){return yo.apply(this,arguments)}function yo(){return(yo=fo(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ao){e.next=6;break}return e.next=3,ao;case 3:return e.abrupt("return",e.sent.default);case 6:ao=window.ResizeObserver,e.prev=7,new ao((function(){})),e.next=17;break;case 11:return e.prev=11,e.t0=e.catch(7),ao=n.e(811).then(n.bind(n,17811)),e.next=16,ao;case 16:ao=e.sent.default;case 17:return e.abrupt("return",so=ao);case 18:case"end":return e.stop()}}),e,null,[[7,11]])})))).apply(this,arguments)}function vo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e._benchmarkStart&&n.startTimee.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&this.last>=this.first)for(var n=this.first;nthis._scrollSize-this._viewDim1?this._totalItems-1:Math.max(0,Math.min(this._totalItems-1,Math.floor((e+t)/2/this._delta)))}},{key:"_getAnchor",value:function(e,t){if(0===this._physicalItems.size)return this._calculateAnchor(e,t);if(this._first<0)return console.error("_getAnchor: negative _first"),this._calculateAnchor(e,t);if(this._last<0)return console.error("_getAnchor: negative _last"),this._calculateAnchor(e,t);var n=this._getPhysicalItem(this._first),r=this._getPhysicalItem(this._last),i=n.pos,o=i+n.size,a=r.pos,s=a+r.size;if(st)return this._calculateAnchor(e,t);if(i>=e||o>=e)return this._first;if(s<=t||a<=t)return this._last;for(var c=this._last,l=this._first;;){var u=Math.round((c+l)/2),d=this._physicalItems.get(u),f=d.pos,p=f+d.size;if(f>=e&&f<=t||p>=e&&p<=t)return u;pt&&(c=u-1)}}},{key:"_getActiveItems",value:function(){0===this._viewDim1||0===this._totalItems?this._clearItems():this._getItems()}},{key:"_clearItems",value:function(){this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;var e=this._newPhysicalItems;this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=e,this._stable=!0}},{key:"_getItems",value:function(){var e,t,n=this._newPhysicalItems;this._scrollToIndex>=0?(this._anchorIdx=this._scrollToIndex,this._anchorPos=this._getPosition(this._anchorIdx),this._scrollIfNeeded(),e=Math.max(0,this._scrollPosition-this._overhang),t=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang)):(t=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang),e=Math.max(0,t-this._viewDim1-2*this._overhang),null!==this._anchorIdx&&null!==this._anchorPos||(this._anchorIdx=this._getAnchor(e,t),this._anchorPos=this._getPosition(this._anchorIdx)));var r=this._getSize(this._anchorIdx);void 0===r&&(r=this._itemDim1);var i=0;for(this._anchorPos+r+this._spacingt&&(i=t-this._anchorPos),i&&(this._scrollPosition-=i,e-=i,t-=i,this._scrollError+=i),n.set(this._anchorIdx,{pos:this._anchorPos,size:r}),this._first=this._last=this._anchorIdx,this._physicalMin=this._physicalMax=this._anchorPos,this._stable=!0;this._physicalMin>e&&this._first>0;){var o=this._getSize(--this._first);void 0===o&&(this._stable=!1,o=this._itemDim1);var a=this._physicalMin-=o+this._spacing;if(n.set(this._first,{pos:a,size:o}),!1===this._stable&&!1===this._estimate)break}for(;this._physicalMax=this._scrollSize?this._physicalMax-this._scrollSize+(this._totalItems-1-this._last)*this._delta:0}},{key:"_updateScrollSize",value:function(){ea(ia(o.prototype),"_updateScrollSize",this).call(this),this._scrollSize=Math.max(this._physicalMax,this._scrollSize)}},{key:"_reflow",value:function(){var e=this._first,t=this._last,n=this._scrollSize;this._updateScrollSize(),this._getActiveItems(),this._scrollSize!==n&&this._emitScrollSize(),this._updateVisibleIndices(),this._emitRange(),-1===this._first&&-1===this._last?this._resetReflowState():this._first!==e||this._last!==t||this._needsRemeasure?(this._emitChildPositions(),this._emitScrollError()):(this._emitChildPositions(),this._emitScrollError(),this._resetReflowState())}},{key:"_resetReflowState",value:function(){this._anchorIdx=null,this._anchorPos=null,this._stable=!0}},{key:"_getItemPosition",value:function(e){var t;return Xo(t={},this._positionDim,this._getPosition(e)),Xo(t,this._secondaryPositionDim,0),t}},{key:"_getItemSize",value:function(e){var t;return Xo(t={},this._sizeDim,this._getSize(e)||this._itemDim1),Xo(t,this._secondarySizeDim,this._itemDim2),t}},{key:"_viewDim2Changed",value:function(){this._needsRemeasure=!0,this._scheduleReflow()}},{key:"_emitRange",value:function(){var e=this._needsRemeasure,t=this._stable;this._needsRemeasure=!1,ea(ia(o.prototype),"_emitRange",this).call(this,{remeasure:e,stable:t})}}])&&Qo(t.prototype,n),r&&Qo(t,r),o}(function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._latestCoords={left:0,top:0},this._direction="vertical",this._viewportSize={width:0,height:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._scrollToIndex=-1,this._scrollToAnchor=0,this._firstVisible=0,this._lastVisible=0,this._eventTargetPromise=function(){return Ho.apply(this,arguments)}().then((function(e){n._eventTarget=new e})),this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._itemSize={width:100,height:100},this._spacing=0,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._totalItems=0,this._scrollSize=1,this._overhang=1e3,this._eventTarget=null,this._spacingChanged=!1,this._defaultConfig={direction:"vertical"},this.config=t||this._defaultConfig}var t,n,r,i,o,a;return t=e,(n=[{key:"config",get:function(){return{direction:this.direction}},set:function(e){Object.assign(this,Object.assign({},this._defaultConfig,e))}},{key:"totalItems",get:function(){return this._totalItems},set:function(e){var t=Number(e);t!==this._totalItems&&(this._totalItems=t,this._scheduleReflow())}},{key:"direction",get:function(){return this._direction},set:function(e){(e="horizontal"===e?e:"vertical")!==this._direction&&(this._direction=e,this._sizeDim="horizontal"===e?"width":"height",this._secondarySizeDim="horizontal"===e?"height":"width",this._positionDim="horizontal"===e?"left":"top",this._secondaryPositionDim="horizontal"===e?"top":"left",this._scheduleLayoutUpdate())}},{key:"itemSize",get:function(){return this._itemSize},set:function(e){var t=this._itemDim1,n=this._itemDim2;Object.assign(this._itemSize,e),t===this._itemDim1&&n===this._itemDim2||(n!==this._itemDim2?this._itemDim2Changed():this._scheduleLayoutUpdate())}},{key:"spacing",get:function(){return this._spacing},set:function(e){var t=Number(e);t!==this._spacing&&(this._spacing=t,this._scheduleLayoutUpdate())}},{key:"viewportSize",get:function(){return this._viewportSize},set:function(e){var t=this._viewDim1,n=this._viewDim2;Object.assign(this._viewportSize,e),n!==this._viewDim2?this._viewDim2Changed():t!==this._viewDim1&&this._checkThresholds()}},{key:"viewportScroll",get:function(){return this._latestCoords},set:function(e){Object.assign(this._latestCoords,e);var t=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim],t!==this._scrollPosition&&(this._scrollPositionChanged(t,this._scrollPosition),this._updateVisibleIndices({emit:!0})),this._checkThresholds()}},{key:"reflowIfNeeded",value:function(e){(e||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}},{key:"scrollToIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";if(Number.isFinite(e)){switch(e=Math.min(this.totalItems,Math.max(0,e)),this._scrollToIndex=e,"nearest"===t&&(t=e>this._first+this._num/2?"end":"start"),t){case"start":this._scrollToAnchor=0;break;case"center":this._scrollToAnchor=.5;break;case"end":this._scrollToAnchor=1;break;default:throw new TypeError("position must be one of: start, center, end, nearest")}this._scheduleReflow()}}},{key:"dispatchEvent",value:(a=Wo(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._eventTargetPromise;case 2:this._eventTarget.dispatchEvent(t);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"addEventListener",value:(o=Wo(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._eventTargetPromise;case 2:this._eventTarget.addEventListener(t,n,r);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"removeEventListener",value:(i=Wo(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._eventTargetPromise;case 2:this._eventTarget.removeEventListener(t,n,r);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"_itemDim2Changed",value:function(){}},{key:"_viewDim2Changed",value:function(){}},{key:"_updateLayout",value:function(){}},{key:"_getItemSize",value:function(e){var t;return $o(t={},this._sizeDim,this._itemDim1),$o(t,this._secondarySizeDim,this._itemDim2),t}},{key:"_delta",get:function(){return this._itemDim1+this._spacing}},{key:"_itemDim1",get:function(){return this._itemSize[this._sizeDim]}},{key:"_itemDim2",get:function(){return this._itemSize[this._secondarySizeDim]}},{key:"_viewDim1",get:function(){return this._viewportSize[this._sizeDim]}},{key:"_viewDim2",get:function(){return this._viewportSize[this._secondarySizeDim]}},{key:"_scheduleReflow",value:function(){this._pendingReflow=!0}},{key:"_scheduleLayoutUpdate",value:function(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}},{key:"_reflow",value:function(){var e=this._first,t=this._last,n=this._scrollSize;this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._getActiveItems(),this._scrollIfNeeded(),this._updateVisibleIndices(),this._scrollSize!==n&&this._emitScrollSize(),-1===this._first&&-1===this._last?this._emitRange():(this._first!==e||this._last!==t||this._spacingChanged)&&(this._emitRange(),this._emitChildPositions()),this._emitScrollError()}},{key:"_updateScrollSize",value:function(){this._scrollSize=Math.max(1,this._totalItems*this._delta)}},{key:"_scrollIfNeeded",value:function(){if(-1!==this._scrollToIndex){var e=this._scrollToIndex,t=this._scrollToAnchor,n=this._getItemPosition(e)[this._positionDim],r=this._getItemSize(e)[this._sizeDim],i=this._scrollPosition+this._viewDim1*t,o=n+r*t,a=Math.floor(Math.min(this._scrollSize-this._viewDim1,Math.max(0,this._scrollPosition-i+o)));this._scrollError+=this._scrollPosition-a,this._scrollPosition=a}}},{key:"_emitRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=Object.assign({first:this._first,last:this._last,num:this._num,stable:!0,firstVisible:this._firstVisible,lastVisible:this._lastVisible},e);this.dispatchEvent(new CustomEvent("rangechange",{detail:t}))}},{key:"_emitScrollSize",value:function(){var e=$o({},this._sizeDim,this._scrollSize);this.dispatchEvent(new CustomEvent("scrollsizechange",{detail:e}))}},{key:"_emitScrollError",value:function(){if(this._scrollError){var e,t=($o(e={},this._positionDim,this._scrollError),$o(e,this._secondaryPositionDim,0),e);this.dispatchEvent(new CustomEvent("scrollerrorchange",{detail:t})),this._scrollError=0}}},{key:"_emitChildPositions",value:function(){for(var e={},t=this._first;t<=this._last;t++)e[t]=this._getItemPosition(t);this.dispatchEvent(new CustomEvent("itempositionchange",{detail:e}))}},{key:"_num",get:function(){return-1===this._first||-1===this._last?0:this._last-this._first+1}},{key:"_checkThresholds",value:function(){if(0===this._viewDim1&&this._num>0)this._scheduleReflow();else{var e=Math.max(0,this._scrollPosition-this._overhang),t=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);(this._physicalMin>e||this._physicalMax=Math.round(this._scrollPosition+this._viewDim1);)n--;t===this._firstVisible&&n===this._lastVisible||(this._firstVisible=t,this._lastVisible=n,e&&e.emit&&this._emitRange())}}},{key:"_scrollPositionChanged",value:function(e,t){var n=this._scrollSize-this._viewDim1;(e=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ga=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fa(e,t)}(c,e);var t,n,r,o,a,s=pa(c);function c(){var e;return ua(this,c),(e=s.apply(this,arguments)).items=[],e.scrollTarget=ma(e),e.keyFunction=void 0,e._layout=null,e._scrollToIndex=null,e}return t=c,(n=[{key:"createRenderRoot",value:function(){return this}},{key:"layout",get:function(){return this[Eo].layout},set:function(e){this._layout=e,this.requestUpdate()}},{key:"scrollToIndex",value:(o=regeneratorRuntime.mark((function e(t){var n,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:"start",this._scrollToIndex={index:t,position:n},this.requestUpdate(),e.next=5,this.updateComplete;case 5:this._scrollToIndex=null;case 6:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){la(i,n,r,a,s,"next",e)}function s(e){la(i,n,r,a,s,"throw",e)}a(void 0)}))},function(e){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this.items,t=this.renderItem,n=this.keyFunction,r=this.scrollTarget,o=this._layout;return(0,i.dy)(oa||(oa=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n ","\n "])),Bo({items:e,renderItem:t,layout:o,keyFunction:n,scrollTarget:r,scrollToIndex:this._scrollToIndex}))}}])&&da(t.prototype,n),r&&da(t,r),c}(i.oi);function _a(e){return(_a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wa(e){if(!e||"object"!=_a(e))return e;if("[object Date]"==Object.prototype.toString.call(e))return new Date(e.getTime());if(Array.isArray(e))return e.map(wa);var t={};return Object.keys(e).forEach((function(n){t[n]=wa(e[n])})),t}ba([(0,ca.C)()],ga.prototype,"renderItem",void 0),ba([(0,ca.C)({attribute:!1})],ga.prototype,"items",void 0),ba([(0,ca.C)({attribute:!1})],ga.prototype,"scrollTarget",void 0),ba([(0,ca.C)()],ga.prototype,"keyFunction",void 0),ba([(0,ca.C)({attribute:!1})],ga.prototype,"layout",null),ga=ba([(0,sa.M)("lit-virtualizer")],ga);var ka,xa=n(82816),Ea=n(79865),Sa=n(25516),Aa=n(38346),Oa=n(96151),Ca=(n(12497),n(6144),n(91107));function Pa(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ta(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Pa(o,r,i,a,s,"next",e)}function s(e){Pa(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Ra,Ia,La,ja,Da,za,Ma,Na,Fa,Ba,Za,Ua,Ha,Ga,Va=function(){var e=Ta(regeneratorRuntime.mark((function e(t,r,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ka||(ka=(0,Ca.Ud)(new Worker(new URL(n.p+n.u(477),n.b)))),e.abrupt("return",ka.filterData(t,r,i));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),$a=function(){var e=Ta(regeneratorRuntime.mark((function e(t,r,i,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ka||(ka=(0,Ca.Ud)(new Worker(new URL(n.p+n.u(425),n.b)))),e.abrupt("return",ka.sortData(t,r,i,o));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}();function Ka(e){return(Ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wa(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function qa(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Wa(o,r,i,a,s,"next",e)}function s(e){Wa(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ya(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xa(e,t){return ys(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||ps(e,t)||fs()}function Ja(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Qa(e){return function(e){if(Array.isArray(e))return hs(e)}(e)||ms(e)||ps(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 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 ns(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=bs(e);if(t){var i=bs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rs(this,n)}}function rs(e,t){return!t||"object"!==Ka(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(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!cs(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n \n \n
    \n ',"\n ","\n
    \n ","\n
    \n \n "])),this._calcTableHeight,this._filterable?(0,i.dy)(Ia||(Ia=Ja(['\n
    \n \n ',"
    \n "])),t.content):t.empty?(0,i.dy)(Ba||(Ba=Ja(['
    ']))):(0,i.dy)(Za||(Za=Ja(["\n \n \n
    \n
    \n ',"\n
    \n
    \n \n "])),this.noDataText||"No data"))}},{kind:"method",key:"_sortFilterData",value:(r=qa(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(new Date).getTime(),this.curRequest++,n=this.curRequest,r=this.data,!this._filter){e.next=8;break}return e.next=7,this._memFilterData(this.data,this._sortColumns,this._filter);case 7:r=e.sent;case 8:return i=this._sortColumn?$a(r,this._sortColumns[this._sortColumn],this._sortDirection,this._sortColumn):r,e.next=11,Promise.all([i,Oa.y]);case 11:if(o=e.sent,a=Xa(o,1),s=a[0],c=(new Date).getTime(),!((l=c-t)<100)){e.next=19;break}return e.next=19,new Promise((function(e){return setTimeout(e,100-l)}));case 19:if(this.curRequest===n){e.next=21;break}return e.abrupt("return");case 21:this.appendRow||this.hasFab?(u=Qa(s),this.appendRow&&u.push({append:!0,content:this.appendRow}),this.hasFab&&u.push({empty:!0}),this._items=u):this._items=s,this._filteredData=s;case 23:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{kind:"field",key:"_memFilterData",value:function(){return(0,te.Z)(function(){var e=qa(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Va(t,n,r));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}())}},{kind:"method",key:"_handleHeaderClick",value:function(e){var t=e.currentTarget.columnId;this.columns[t].sortable&&(this._sortDirection&&this._sortColumn===t?"asc"===this._sortDirection?this._sortDirection="desc":this._sortDirection=null:this._sortDirection="asc",this._sortColumn=null===this._sortDirection?void 0:t,(0,j.B)(this,"sorting-changed",{column:t,direction:this._sortDirection}))}},{kind:"method",key:"_handleHeaderRowCheckboxClick",value:function(e){var t=this;e.target.checked?(this._checkedRows=this._filteredData.filter((function(e){return!1!==e.selectable})).map((function(e){return e[t.id]})),this._checkedRowsChanged()):(this._checkedRows=[],this._checkedRowsChanged())}},{kind:"method",key:"_handleRowCheckboxClick",value:function(e){var t=e.currentTarget,n=t.rowId;if(t.checked){if(this._checkedRows.includes(n))return;this._checkedRows=[].concat(Qa(this._checkedRows),[n])}else this._checkedRows=this._checkedRows.filter((function(e){return e!==n}));this._checkedRowsChanged()}},{kind:"method",key:"_handleRowClick",value:function(e){if("HA-CHECKBOX"!==e.target.tagName){var t=e.currentTarget.rowId;(0,j.B)(this,"row-click",{id:t},{bubbles:!1})}}},{kind:"method",key:"_checkedRowsChanged",value:function(){this._items.length&&(this._items=Qa(this._items)),(0,j.B)(this,"selection-changed",{value:this._checkedRows})}},{kind:"method",key:"_handleSearchChange",value:function(e){this._debounceSearch(e.detail.value)}},{kind:"method",key:"_calcTableHeight",value:(n=qa(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.autoHeight){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.updateComplete;case 4:this._headerHeight=this._header.clientHeight;case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{kind:"method",decorators:[(0,o.hO)({passive:!0})],key:"_saveScrollPos",value:function(e){this._savedScrollPos=e.target.scrollTop}},{kind:"get",static:!0,key:"styles",value:function(){return[s.$c,(0,i.iv)(Ga||(Ga=Ja(['\n /* default mdc styles, colors changed, without checkbox styles */\n :host {\n height: 100%;\n }\n .mdc-data-table__content {\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 400;\n letter-spacing: 0.0178571429em;\n text-decoration: inherit;\n text-transform: inherit;\n }\n\n .mdc-data-table {\n background-color: var(--data-table-background-color);\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--divider-color);\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .mdc-data-table__row--selected {\n background-color: rgba(var(--rgb-primary-color), 0.04);\n }\n\n .mdc-data-table__row {\n display: flex;\n width: 100%;\n height: 52px;\n }\n\n .mdc-data-table__row ~ .mdc-data-table__row {\n border-top: 1px solid var(--divider-color);\n }\n\n .mdc-data-table__row:not(.mdc-data-table__row--selected):hover {\n background-color: rgba(var(--rgb-primary-text-color), 0.04);\n }\n\n .mdc-data-table__header-cell {\n color: var(--primary-text-color);\n }\n\n .mdc-data-table__cell {\n color: var(--primary-text-color);\n }\n\n .mdc-data-table__header-row {\n height: 56px;\n display: flex;\n width: 100%;\n border-bottom: 1px solid var(--divider-color);\n overflow-x: auto;\n }\n\n .mdc-data-table__header-row::-webkit-scrollbar {\n display: none;\n }\n\n .mdc-data-table__cell,\n .mdc-data-table__header-cell {\n padding-right: 16px;\n padding-left: 16px;\n align-self: center;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 0;\n box-sizing: border-box;\n }\n\n .mdc-data-table__cell.mdc-data-table__cell--icon {\n overflow: initial;\n }\n\n .mdc-data-table__header-cell--checkbox,\n .mdc-data-table__cell--checkbox {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 0;\n width: 56px;\n }\n :host([dir="rtl"]) .mdc-data-table__header-cell--checkbox,\n :host([dir="rtl"]) .mdc-data-table__cell--checkbox {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 16px;\n }\n\n .mdc-data-table__table {\n height: 100%;\n width: 100%;\n border: 0;\n white-space: nowrap;\n }\n\n .mdc-data-table__cell {\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 400;\n letter-spacing: 0.0178571429em;\n text-decoration: inherit;\n text-transform: inherit;\n }\n\n .mdc-data-table__cell a {\n color: inherit;\n text-decoration: none;\n }\n\n .mdc-data-table__cell--numeric {\n text-align: right;\n }\n :host([dir="rtl"]) .mdc-data-table__cell--numeric {\n /* @noflip */\n text-align: left;\n }\n\n .mdc-data-table__cell--icon {\n color: var(--secondary-text-color);\n text-align: center;\n }\n\n .mdc-data-table__header-cell--icon,\n .mdc-data-table__cell--icon {\n width: 54px;\n }\n\n .mdc-data-table__header-cell.mdc-data-table__header-cell--icon {\n text-align: center;\n }\n\n .mdc-data-table__header-cell.sortable.mdc-data-table__header-cell--icon:hover,\n .mdc-data-table__header-cell.sortable.mdc-data-table__header-cell--icon:not(.not-sorted) {\n text-align: left;\n }\n :host([dir="rtl"])\n .mdc-data-table__header-cell.sortable.mdc-data-table__header-cell--icon:hover,\n :host([dir="rtl"])\n .mdc-data-table__header-cell.sortable.mdc-data-table__header-cell--icon:not(.not-sorted) {\n text-align: right;\n }\n\n .mdc-data-table__cell--icon:first-child ha-icon {\n margin-left: 8px;\n }\n :host([dir="rtl"]) .mdc-data-table__cell--icon:first-child ha-icon {\n margin-left: auto;\n margin-right: 8px;\n }\n\n .mdc-data-table__cell--icon:first-child state-badge {\n margin-right: -8px;\n }\n :host([dir="rtl"]) .mdc-data-table__cell--icon:first-child state-badge {\n margin-right: auto;\n margin-left: -8px;\n }\n\n .mdc-data-table__header-cell--icon-button,\n .mdc-data-table__cell--icon-button {\n width: 56px;\n padding: 8px;\n }\n\n .mdc-data-table__cell--icon-button {\n color: var(--secondary-text-color);\n text-overflow: clip;\n }\n\n .mdc-data-table__header-cell--icon-button:first-child,\n .mdc-data-table__cell--icon-button:first-child {\n width: 64px;\n padding-left: 16px;\n }\n :host([dir="rtl"])\n .mdc-data-table__header-cell--icon-button:first-child,\n :host([dir="rtl"]) .mdc-data-table__cell--icon-button:first-child {\n padding-left: auto;\n padding-right: 16px;\n }\n\n .mdc-data-table__header-cell--icon-button:last-child,\n .mdc-data-table__cell--icon-button:last-child {\n width: 64px;\n padding-right: 16px;\n }\n :host([dir="rtl"]) .mdc-data-table__header-cell--icon-button:last-child,\n :host([dir="rtl"]) .mdc-data-table__cell--icon-button:last-child {\n padding-right: auto;\n padding-left: 16px;\n }\n\n .mdc-data-table__cell--icon-button a {\n color: var(--secondary-text-color);\n }\n\n .mdc-data-table__header-cell {\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-size: 0.875rem;\n line-height: 1.375rem;\n font-weight: 500;\n letter-spacing: 0.0071428571em;\n text-decoration: inherit;\n text-transform: inherit;\n text-align: left;\n }\n :host([dir="rtl"]) .mdc-data-table__header-cell {\n /* @noflip */\n text-align: right;\n }\n\n .mdc-data-table__header-cell--numeric {\n text-align: right;\n }\n .mdc-data-table__header-cell--numeric.sortable:hover,\n .mdc-data-table__header-cell--numeric.sortable:not(.not-sorted) {\n text-align: left;\n }\n :host([dir="rtl"]) .mdc-data-table__header-cell--numeric {\n /* @noflip */\n text-align: left;\n }\n :host([dir="rtl"]) .mdc-data-table__header-cell--numeric.sortable:hover,\n :host([dir="rtl"])\n .mdc-data-table__header-cell--numeric.sortable:not(.not-sorted) {\n text-align: right;\n }\n\n /* custom from here */\n\n :host {\n display: block;\n }\n\n .mdc-data-table {\n display: block;\n border-width: var(--data-table-border-width, 1px);\n height: 100%;\n }\n .mdc-data-table__header-cell {\n overflow: hidden;\n position: relative;\n }\n .mdc-data-table__header-cell span {\n position: relative;\n left: 0px;\n }\n :host([dir="rtl"]) .mdc-data-table__header-cell span {\n left: auto;\n right: 0px;\n }\n\n .mdc-data-table__header-cell.sortable {\n cursor: pointer;\n }\n .mdc-data-table__header-cell > * {\n transition: left 0.2s ease;\n }\n :host([dir="rtl"]) .mdc-data-table__header-cell > * {\n transition: right 0.2s ease;\n }\n .mdc-data-table__header-cell ha-icon {\n top: -3px;\n position: absolute;\n }\n .mdc-data-table__header-cell.not-sorted ha-icon {\n left: -20px;\n }\n :host([dir="rtl"]) .mdc-data-table__header-cell.not-sorted ha-icon {\n right: -20px;\n }\n .mdc-data-table__header-cell.sortable:not(.not-sorted) span,\n .mdc-data-table__header-cell.sortable.not-sorted:hover span {\n left: 24px;\n }\n :host([dir="rtl"])\n .mdc-data-table__header-cell.sortable:not(.not-sorted)\n span,\n :host([dir="rtl"])\n .mdc-data-table__header-cell.sortable.not-sorted:hover\n span {\n left: auto;\n right: 24px;\n }\n .mdc-data-table__header-cell.sortable:not(.not-sorted) ha-icon,\n .mdc-data-table__header-cell.sortable:hover.not-sorted ha-icon {\n left: 12px;\n }\n :host([dir="rtl"])\n .mdc-data-table__header-cell.sortable:not(.not-sorted)\n ha-icon,\n :host([dir="rtl"])\n .mdc-data-table__header-cell.sortable:hover.not-sorted\n ha-icon {\n left: auto;\n right: 12px;\n }\n .table-header {\n border-bottom: 1px solid var(--divider-color);\n padding: 0 16px;\n }\n search-input {\n position: relative;\n top: 2px;\n }\n slot[name="header"] {\n display: block;\n }\n .center {\n text-align: center;\n }\n .secondary {\n color: var(--secondary-text-color);\n }\n .scroller {\n height: calc(100% - 57px);\n }\n\n .mdc-data-table__table.auto-height .scroller {\n overflow-y: hidden !important;\n }\n .grows {\n flex-grow: 1;\n flex-shrink: 1;\n }\n .forceLTR {\n direction: ltr;\n }\n .clickable {\n cursor: pointer;\n }\n '])))]}}]}}),i.oi);function Cs(e){return(Cs="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 Ps(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ts(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rs(e,t){return(Rs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Is(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=Ds(e);if(t){var i=Ds(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ls(this,n)}}function Ls(e,t){return!t||"object"!==Cs(t)&&"function"!=typeof t?js(e):t}function js(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ds(e){return(Ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zs(){zs=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Fs(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n
    ",''])),this.filter,this._handleSearchChange,this.searchLabel||this.hass.localize("ui.components.data-table.search"),t?(0,i.dy)(ws||(ws=Ps(['
    \n ',"\n \n ","\n \n
    "])),this.narrow?(0,i.dy)(ks||(ks=Ps(['
    \n \n \n ',"\n \n
    "])),"M6,13H18V11H6M3,6V8H21V6M10,18H14V16H10V18Z",t):t,this._clearFilter,this.hass.localize("ui.components.data-table.clear")):"");return(0,i.dy)(xs||(xs=Ps(["\n \n ',"\n \n ",'\n \n
    \n \n '])),this.hass,this.localizeFunc,this.narrow,this.isWide,this.backPath,this.backCallback,this.route,this.tabs,this.mainPage,this.supervisor,this.narrow?(0,i.dy)(Es||(Es=Ps(['\n
    \n \n
    ',"
    \n
    \n
    \n "])),n):"",this.columns,this.data,this.filter,this.selectable,this.hasFab,this.id,this.noDataText,(0,Ci.Zu)(this.hass),this.clickable,this.appendRow,this.narrow?(0,i.dy)(As||(As=Ps(['
    ']))):(0,i.dy)(Ss||(Ss=Ps(['\n
    \n \n
    ',"
    \n
    \n
    \n "])),n))}},{kind:"method",key:"_handleSearchChange",value:function(e){this.filter=e.detail.value,(0,j.B)(this,"search-changed",{value:this.filter})}},{kind:"method",key:"_clearFilter",value:function(){(0,j.B)(this,"clear-filter")}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(Os||(Os=Ps(['\n ha-data-table {\n width: 100%;\n height: 100%;\n --data-table-border-width: 0;\n }\n :host(:not([narrow])) ha-data-table {\n height: calc(100vh - 1px - var(--header-height));\n display: block;\n }\n .table-header {\n border-bottom: 1px solid rgba(var(--rgb-primary-text-color), 0.12);\n padding: 0 16px;\n display: flex;\n align-items: center;\n }\n .search-toolbar {\n display: flex;\n align-items: center;\n color: var(--secondary-text-color);\n }\n search-input {\n position: relative;\n top: 2px;\n flex-grow: 1;\n }\n search-input.header {\n left: -8px;\n }\n .active-filters {\n color: var(--primary-text-color);\n position: relative;\n display: flex;\n align-items: center;\n padding: 2px 2px 2px 8px;\n margin-left: 4px;\n font-size: 14px;\n }\n .active-filters ha-icon {\n color: var(--primary-color);\n }\n .active-filters mwc-button {\n margin-left: 8px;\n }\n .active-filters::before {\n background-color: var(--primary-color);\n opacity: 0.12;\n border-radius: 4px;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n content: "";\n }\n '])))}}]}}),i.oi);var Gs,Vs,$s,Ks,Ws,qs,Ys,Xs,Js=function(e,t){(0,j.B)(e,"show-dialog",{dialogTag:"dialog-hassio-backup",dialogImport:function(){return Promise.all([n.e(665),n.e(99)]).then(n.bind(n,34099))},dialogParams:t})};n(35200);function Qs(e){return(Qs="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 ec(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function tc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yc(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function nc(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function rc(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){nc(o,r,i,a,s,"next",e)}function s(e){nc(o,r,i,a,s,"throw",e)}a(void 0)}))}}function ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oc(e,t){return(oc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ac(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=gc(e);if(t){var i=gc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sc(this,n)}}function sc(e,t){return!t||"object"!==Qs(t)&&"function"!=typeof t?cc(e):t}function cc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lc(){lc=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!fc(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n',""])),e||t.slug,t.secondary)}},date:{title:(null===(r=e.supervisor)||void 0===r?void 0:r.localize("backup.created"))||"",width:"15%",direction:"desc",hidden:t,filterable:!0,sortable:!0,template:function(t){return(0,zr.Z)(new Date(t),e.hass.localize)}},secondary:{title:"",hidden:!0,filterable:!0}}}))}},{kind:"field",key:"_backupData",value:function(){var e=this;return(0,te.Z)((function(t){return t.map((function(t){return Object.assign({},t,{secondary:e._computeBackupContent(t)})}))}))}},{kind:"method",key:"render",value:function(){var e,t;return this.supervisor?(0,i.dy)($s||($s=ec(["\n \n \n \n \n \n

    \n ','\n

    \n
    \n ',"\n
    \n "])),(0,Dr.$)({"header-toolbar":this.narrow,"table-header":!this.narrow}),this.supervisor.localize("backup.selected",{number:this._selectedBackups.length}),this.narrow?(0,i.dy)(Ys||(Ys=ec(['\n
    \n
    \n \n ',"\n \n "])),this._deleteSelected,"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",this.supervisor.localize("backup.delete_selected")):(0,i.dy)(qs||(qs=ec(["\n \n ',"\n \n "])),this._deleteSelected,this.supervisor.localize("backup.delete_selected"))):"",this._createBackup,this.supervisor.localize("backup.create_backup"),"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"):(0,i.dy)(Vs||(Vs=ec([""])))}},{kind:"method",key:"_handleAction",value:function(e){switch(e.detail.index){case 0:this.refreshData();break;case 1:this._showUploadBackupDialog()}}},{kind:"method",key:"_handleSelectionChanged",value:function(e){this._selectedBackups=e.detail.value}},{kind:"method",key:"_showUploadBackupDialog",value:function(){var e,t,r=this;e=this,t={showBackup:function(e){return Js(r,{slug:e,supervisor:r.supervisor,onDelete:function(){return r.fetchBackups()}})},reloadBackup:function(){return r.refreshData()}},(0,j.B)(e,"show-dialog",{dialogTag:"dialog-hassio-backup-upload",dialogImport:function(){return Promise.resolve().then(n.bind(n,35200))},dialogParams:t})}},{kind:"method",key:"fetchBackups",value:(c=rc(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ei.Fk)(this.hass);case 2:return e.next=4,(0,Ei.jc)(this.hass);case 4:this._backups=e.sent;case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{kind:"method",key:"_deleteSelected",value:(r=rc(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,Un.g7)(this,{title:this.supervisor.localize("backup.delete_backup_title"),text:this.supervisor.localize("backup.delete_backup_text",{number:this._selectedBackups.length}),confirmText:this.supervisor.localize("backup.delete_backup_confirm")});case 2:if(e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.prev=5,e.next=8,Promise.all(this._selectedBackups.map((function(e){return(0,Ei.FZ)(t.hass,e)})));case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(5),(0,Un.Ys)(this,{title:this.supervisor.localize("backup.failed_to_delete"),text:(0,Rn.js)(e.t0)}),e.abrupt("return");case 14:return e.next=16,(0,Ei.Fk)(this.hass);case 16:return e.next=18,(0,Ei.jc)(this.hass);case 18:this._backups=e.sent,this._dataTable.clearSelection();case 20:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(){return r.apply(this,arguments)})},{kind:"method",key:"_handleRowClicked",value:function(e){var t=this,n=e.detail.id;Js(this,{slug:n,supervisor:this.supervisor,onDelete:function(){return t.fetchBackups()}})}},{kind:"method",key:"_createBackup",value:function(){var e,t,r=this;"running"===this.supervisor.info.state?(e=this,t={supervisor:this.supervisor,onCreate:function(){return r.fetchBackups()}},(0,j.B)(e,"show-dialog",{dialogTag:"dialog-hassio-create-backup",dialogImport:function(){return Promise.all([n.e(665),n.e(510)]).then(n.bind(n,35510))},dialogParams:t})):(0,Un.Ys)(this,{title:this.supervisor.localize("backup.could_not_create"),text:this.supervisor.localize("backup.create_blocked_not_running","state",this.supervisor.info.state)})}},{kind:"get",static:!0,key:"styles",value:function(){return[s.Qx,yt.l,(0,i.iv)(Xs||(Xs=ec(["\n .table-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 58px;\n border-bottom: 1px solid rgba(var(--rgb-primary-text-color), 0.12);\n }\n .header-toolbar {\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: var(--secondary-text-color);\n position: relative;\n top: -4px;\n }\n .selected-txt {\n font-weight: bold;\n padding-left: 16px;\n color: var(--primary-text-color);\n }\n .table-header .selected-txt {\n margin-top: 20px;\n }\n .header-toolbar .selected-txt {\n font-size: 16px;\n }\n .header-toolbar .header-btns {\n margin-right: -12px;\n }\n .header-btns > mwc-button,\n .header-btns > mwc-icon-button {\n margin: 8px;\n }\n "])))]}}]}}),i.oi);var _c,wc,kc,xc,Ec=n(70203);n(21050);function Sc(e){return(Sc="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 Ac(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function Oc(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ac(o,r,i,a,s,"next",e)}function s(e){Ac(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Cc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Pc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tc(e,t){return(Tc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=jc(e);if(t){var i=jc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ic(this,n)}}function Ic(e,t){return!t||"object"!==Sc(t)&&"function"!=typeof t?Lc(e):t}function Lc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jc(e){return(jc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dc(){Dc=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Nc(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n
    \n
    \n \n \n ','\n \n \n core-','\n \n \n \n \n ','\n \n \n core-',"\n \n ","\n \n
    \n
    \n ",'\n
    \n
    \n
    \n span[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n\n .warning {\n --mdc-theme-primary: var(--error-color);\n }\n\n ha-button-menu {\n color: var(--secondary-text-color);\n --mdc-menu-min-width: 200px;\n }\n @media (min-width: 563px) {\n paper-listbox {\n max-height: 150px;\n overflow: auto;\n }\n }\n paper-item {\n cursor: pointer;\n min-height: 35px;\n }\n mwc-list-item ha-svg-icon {\n color: var(--secondary-text-color);\n }\n '])))]}}]}}),i.oi);var Hc=n(20258);function Gc(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function Vc(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Gc(o,r,i,a,s,"next",e)}function s(e){Gc(o,r,i,a,s,"throw",e)}a(void 0)}))}}var $c,Kc,Wc,qc,Yc,Xc,Jc,Qc,el,tl,nl,rl,il=function(){var e=Vc(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.I)(t.config.version,2021,2,4)){e.next=2;break}return e.abrupt("return",t.callWS({type:"supervisor/api",endpoint:"/host/info",method:"get"}));case 2:return e.next=4,t.callApi("GET","hassio/host/info");case 4:return n=e.sent,e.abrupt("return",(0,Rn.rY)(n));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ol=function(){var e=Vc(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.I)(t.config.version,2021,2,4)){e.next=2;break}return e.abrupt("return",t.callWS({type:"supervisor/api",endpoint:"/os/info",method:"get"}));case 2:return e.t0=Rn.rY,e.next=5,t.callApi("GET","hassio/os/info");case 5:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),al=function(){var e=Vc(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.I)(t.config.version,2021,2,4)){e.next=2;break}return e.abrupt("return",t.callWS({type:"supervisor/api",endpoint:"/host/reboot",method:"post",timeout:null}));case 2:return e.abrupt("return",t.callApi("POST","hassio/host/reboot"));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),sl=function(){var e=Vc(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.I)(t.config.version,2021,2,4)){e.next=2;break}return e.abrupt("return",t.callWS({type:"supervisor/api",endpoint:"/host/shutdown",method:"post",timeout:null}));case 2:return e.abrupt("return",t.callApi("POST","hassio/host/shutdown"));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),cl=function(){var e=Vc(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.I)(t.config.version,2021,2,4)){e.next=2;break}return e.abrupt("return",t.callWS({type:"supervisor/api",endpoint:"/os/update",method:"post",timeout:null}));case 2:return e.abrupt("return",t.callApi("POST","hassio/os/update"));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ll=function(){var e=Vc(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.I)(t.config.version,2021,2,4)){e.next=2;break}return e.abrupt("return",t.callWS({type:"supervisor/api",endpoint:"/os/config/sync",method:"post",timeout:null}));case 2:return e.abrupt("return",t.callApi("POST","hassio/os/config/sync"));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ul=function(){var e=Vc(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.I)(t.config.version,2021,2,4)){e.next=2;break}return e.abrupt("return",t.callWS({type:"supervisor/api",endpoint:"/host/options",method:"post",data:n}));case 2:return e.abrupt("return",t.callApi("POST","hassio/host/options",n));case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),dl=n(75388),fl=n(88027);n(84225);function pl(e){return(pl="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 hl(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function ml(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){hl(o,r,i,a,s,"next",e)}function s(e){hl(o,r,i,a,s,"throw",e)}a(void 0)}))}}function yl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function vl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bl(e,t){return(bl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=kl(e);if(t){var i=kl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _l(this,n)}}function _l(e,t){return!t||"object"!==pl(t)&&"function"!=typeof t?wl(e):t}function wl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kl(e){return(kl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xl(){xl=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Al(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n
    \n
    \n ',"\n ",'\n\n \n \n ','\n \n \n ',"\n \n ","\n \n ","\n ","\n
    \n
    \n ","\n ",'\n
    \n
    \n
    \n ',"\n ",'\n\n \n \n \n \n ','\n \n \n ',"\n \n \n \n "])),this.supervisor.localize("system.host.hostname"),this.supervisor.host.hostname,this.supervisor.localize("system.host.change"),this._changeHostnameClicked):"",this.supervisor.host.features.includes("network")?(0,i.dy)(Wc||(Wc=yl([' \n \n ','\n \n '," \n \n \n "])),this.supervisor.localize("system.host.ip_address"),e,this.supervisor.localize("system.host.change"),this._changeNetworkClicked):"",this.supervisor.localize("system.host.operating_system"),this.supervisor.host.operating_system,this.supervisor.os.update_available?(0,i.dy)(qc||(qc=yl(["\n \n ","\n \n "])),this._osUpdate,this.supervisor.localize("commmon.update")):"",this.supervisor.host.features.includes("haos")?"":(0,i.dy)(Yc||(Yc=yl(['\n \n ','\n \n \n ',"\n \n "])),this.supervisor.localize("system.host.docker_version"),this.supervisor.info.docker),this.supervisor.host.deployment?(0,i.dy)(Xc||(Xc=yl(['\n \n ','\n \n \n ',"\n \n "])),this.supervisor.localize("system.host.deployment"),this.supervisor.host.deployment):"",""!==this.supervisor.host.disk_life_time&&this.supervisor.host.disk_life_time>=10?(0,i.dy)(Jc||(Jc=yl([' \n \n ','\n \n \n '," % -\n "," %\n \n "])),this.supervisor.localize("system.host.emmc_lifetime_used"),this.supervisor.host.disk_life_time-10,this.supervisor.host.disk_life_time):"",t.map((function(e){var t;return(0,i.dy)(Qc||(Qc=yl(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)})),this.supervisor.host.features.includes("reboot")?(0,i.dy)(el||(el=yl(['\n span[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n\n .warning {\n --mdc-theme-primary: var(--error-color);\n }\n\n ha-button-menu {\n color: var(--secondary-text-color);\n --mdc-menu-min-width: 200px;\n }\n @media (min-width: 563px) {\n paper-listbox {\n max-height: 150px;\n overflow: auto;\n }\n }\n paper-item {\n cursor: pointer;\n min-height: 35px;\n }\n mwc-list-item ha-svg-icon {\n color: var(--secondary-text-color);\n }\n '])))]}}]}}),i.oi),n(9381),n(7315);var Rl,Il,Ll,jl,Dl,zl,Ml,Nl,Fl,Bl,Zl,Ul,Hl,Gl,Vl,$l,Kl,Wl=n(69810),ql=function(e,t){return"https://".concat(e.config.version.includes("b")?"rc":e.config.version.includes("dev")?"next":"www",".home-assistant.io").concat(t)};function Yl(e){return(Yl="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 Xl(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function Jl(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Xl(o,r,i,a,s,"next",e)}function s(e){Xl(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ql(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function eu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tu(e,t){return(tu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=ou(e);if(t){var i=ou(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ru(this,n)}}function ru(e,t){return!t||"object"!==Yl(t)&&"function"!=typeof t?iu(e):t}function iu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ou(e){return(ou=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function au(){au=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!lu(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n
    \n
    \n \n \n ','\n \n \n supervisor-','\n \n \n \n \n ','\n \n \n supervisor-',"\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 "])),ql(t.hass,wu[e]),t.supervisor.localize("system.supervisor.unsupported_reason.".concat(e))||e):e)})))});case 2:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{kind:"method",key:"_unhealthyDialog",value:(r=Jl(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,Un.Ys)(this,{title:this.supervisor.localize("system.supervisor.unhealthy_title"),text:(0,i.dy)(Gl||(Gl=Ql(["","

    \n
      \n ","\n
    "])),this.supervisor.localize("system.supervisor.unhealthy_description"),this.supervisor.resolution.unhealthy.map((function(e){return(0,i.dy)(Vl||(Vl=Ql(["\n
  • \n ","\n
  • \n "])),ku[e]?(0,i.dy)($l||($l=Ql(['\n ',"\n "])),ql(t.hass,ku[e]),t.supervisor.localize("system.supervisor.unhealthy_reason.".concat(e))||e):e)})))});case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{kind:"method",key:"_toggleDiagnostics",value:(n=Jl(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={diagnostics:!(null!==(t=this.supervisor.supervisor)&&void 0!==t&&t.diagnostics)},e.next=4,(0,Wl.jP)(this.hass,n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),(0,Un.Ys)(this,{title:this.supervisor.localize("system.supervisor.failed_to_set_option"),text:(0,Rn.js)(e.t0)});case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return n.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[s.Qx,yt.l,(0,i.iv)(Kl||(Kl=Ql(['\n ha-card {\n height: 100%;\n justify-content: space-between;\n flex-direction: column;\n display: flex;\n }\n .card-actions {\n height: 48px;\n border-top: none;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n .card-content {\n display: flex;\n flex-direction: column;\n height: calc(100% - 124px);\n justify-content: space-between;\n }\n .metrics-block {\n margin-top: 16px;\n }\n button.link {\n color: var(--primary-color);\n }\n ha-settings-row {\n padding: 0;\n height: 54px;\n width: 100%;\n }\n ha-settings-row[three-line] {\n height: 74px;\n }\n ha-settings-row > div[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n '])))]}}]}}),i.oi),n(34178),n(53973),n(11488),n(44669);function xu(e){return(xu="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 Eu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Su(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function Au(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Su(o,r,i,a,s,"next",e)}function s(e){Su(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ou(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cu(e,t){return(Cu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=Zu(e);if(t){var i=Zu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Tu(this,n)}}function Tu(e,t){return!t||"object"!==xu(t)&&"function"!=typeof t?Ru(e):t}function Ru(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iu(){Iu=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Du(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ","\n ",'\n\n
    \n ','\n
    \n
    \n ',""])),this._error):"",null!==(e=this.hass.userData)&&void 0!==e&&e.showAdvanced?(0,i.dy)(yu||(yu=Eu(["\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n ',' \n
    \n
    \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n"]))):(0,i.dy)(Ed||(Ed=Od(["\n \n "])),this.hass,this.supervisor,this.route,this.narrow):(0,i.dy)(kd||(kd=Od([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(Sd||(Sd=Od(["\n :host {\n --app-header-background-color: var(--sidebar-background-color);\n --app-header-text-color: var(--sidebar-text-color);\n --app-header-border-bottom: 1px solid var(--divider-color);\n }\n "])))}}]}}),i.oi);function Ud(e){return(Ud="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 Hd(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function Gd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vd(e,t){return(Vd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Hi){return!1}}();return function(){var n,r=qd(e);if(t){var i=qd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Kd(this,n)}}function Kd(e,t){return!t||"object"!==Ud(t)&&"function"!=typeof t?Wd(e):t}function Wd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qd(e){return(qd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yd(){Yd=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Qd(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Of,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Cf.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Sf.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Sf,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=(0,Mr.__assign)((0,Mr.__assign)({},t),Pf(i.options[0])))}else if(Af.test(i.stem))t=(0,Mr.__assign)((0,Mr.__assign)({},t),Pf(i.stem));else{var o=Tf(i.stem);o&&(t=(0,Mr.__assign)((0,Mr.__assign)({},t),o));var a=Rf(i.stem);a&&(t=(0,Mr.__assign)((0,Mr.__assign)({},t),a))}}return t}var jf=new RegExp("^"+_f.source+"*"),Df=new RegExp(_f.source+"*$");function zf(e,t){return{start:e,end:t}}var Mf=!!String.prototype.startsWith,Nf=!!String.fromCodePoint,Ff=!!Object.fromEntries,Bf=!!String.prototype.codePointAt,Zf=!!String.prototype.trimStart,Uf=!!String.prototype.trimEnd,Hf=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Gf=!0;try{Gf="a"===(null===(Ef=Jf("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ef?void 0:Ef[0])}catch(nm){Gf=!1}var Vf,$f=Mf?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Kf=Nf?String.fromCodePoint:function(){for(var e=[],t=0;to;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Wf=Ff?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Yf=Zf?function(e){return e.trimStart()}:function(e){return e.replace(jf,"")},Xf=Uf?function(e){return e.trimEnd()}:function(e){return e.replace(Df,"")};function Jf(e,t){return new RegExp(e,t)}if(Gf){var Qf=Jf("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Vf=function(e,t){var n;return Qf.lastIndex=t,null!==(n=Qf.exec(e)[1])&&void 0!==n?n:""}}else Vf=function(e,t){for(var n=[];;){var r=qf(e,t);if(void 0===r||rp(r)||ip(r))break;n.push(r),t+=r>=65536?2:1}return Kf.apply(void 0,n)};var ep=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(of.UNMATCHED_CLOSING_TAG,zf(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&tp(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:af.pound,location:zf(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:af.literal,value:"<"+r+"/>",location:zf(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:af.tag,value:r,children:o,location:zf(n,this.clonePosition())},err:null}:this.error(of.INVALID_TAG,zf(a,this.clonePosition())))}return this.error(of.UNCLOSED_TAG,zf(n,this.clonePosition()))}return this.error(of.INVALID_TAG,zf(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&np(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=zf(n,this.clonePosition());return{val:{type:af.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tp(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Kf.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Kf(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(of.EXPECT_ARGUMENT_CLOSING_BRACE,zf(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(of.EMPTY_ARGUMENT,zf(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(of.MALFORMED_ARGUMENT,zf(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(of.EXPECT_ARGUMENT_CLOSING_BRACE,zf(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:af.argument,value:r,location:zf(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(of.EXPECT_ARGUMENT_CLOSING_BRACE,zf(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(of.MALFORMED_ARGUMENT,zf(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Vf(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:zf(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(of.EXPECT_ARGUMENT_TYPE,zf(o,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(f=Xf(y.val)).length)return this.error(of.EXPECT_ARGUMENT_STYLE,zf(this.clonePosition(),this.clonePosition()));c={style:f,styleLocation:zf(l,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var u=zf(r,this.clonePosition());if(c&&$f(null==c?void 0:c.style,"::",0)){var d=Yf(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(d,c.styleLocation)).err?y:{val:{type:af.number,value:n,location:u,style:y.val},err:null};if(0===d.length)return this.error(of.EXPECT_DATE_TIME_SKELETON,u);var f={type:sf.dateTime,pattern:d,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?kf(d):{}};return{val:{type:"date"===a?af.date:af.time,value:n,location:u,style:f},err:null}}return{val:{type:"number"===a?af.number:"date"===a?af.date:af.time,value:n,location:u,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(of.EXPECT_SELECT_ARGUMENT_OPTIONS,zf(p,(0,Mr.__assign)({},p)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(of.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,zf(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(of.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,of.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),h=this.parseIdentifierIfPossible(),m=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,h);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var g=zf(r,this.clonePosition());return"select"===a?{val:{type:af.select,value:n,options:Wf(b.val),location:g},err:null}:{val:{type:af.plural,value:n,options:Wf(b.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:g},err:null};default:return this.error(of.INVALID_ARGUMENT_TYPE,zf(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(of.EXPECT_ARGUMENT_CLOSING_BRACE,zf(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(of.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,zf(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(xf).filter((function(e){return e.length>0}));n=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=zf(r,this.clonePosition());return i?Hf(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=qf(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if($f(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&rp(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function tp(e){return e>=97&&e<=122||e>=65&&e<=90}function np(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function rp(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ip(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function op(e){e.forEach((function(e){if(delete e.location,hf(e)||mf(e))for(var t in e.options)delete e.options[t].location,op(e.options[t].value);else df(e)&&bf(e.style)||(ff(e)||pf(e))&&gf(e.style)?delete e.style.location:vf(e)&&op(e.children)}))}function ap(e,t){void 0===t&&(t={}),t=(0,Mr.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ep(e,t).parse();if(n.err){var r=SyntaxError(of[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||op(n.val),n.val}function sp(e,t){var n=t&&t.cache?t.cache:mp,r=t&&t.serializer?t.serializer:fp;return(t&&t.strategy?t.strategy:dp)(e,{cache:n,serializer:r})}function cp(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function lp(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function up(e,t,n,r,i){return n.bind(t,e,r,i)}function dp(e,t){return up(e,this,1===e.length?cp:lp,t.cache.create(),t.serializer)}var fp=function(){return JSON.stringify(arguments)};function pp(){this.cache=Object.create(null)}pp.prototype.get=function(e){return this.cache[e]},pp.prototype.set=function(e,t){this.cache[e]=t};var hp,mp={create:function(){return new pp}},yp={variadic:function(e,t){return up(e,this,lp,t.cache.create(),t.serializer)},monadic:function(e,t){return up(e,this,cp,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(hp||(hp={}));var vp,bp=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return(0,Mr.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),gp=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',hp.INVALID_VALUE,i)||this}return(0,Mr.__extends)(t,e),t}(bp),_p=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,hp.INVALID_VALUE,r)||this}return(0,Mr.__extends)(t,e),t}(bp),wp=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',hp.MISSING_VALUE,n)||this}return(0,Mr.__extends)(t,e),t}(bp);function kp(e){return"function"==typeof e}function xp(e,t,n,r,i,o,a){if(1===e.length&&lf(e[0]))return[{type:vp.literal,value:e[0].value}];for(var s=[],c=0,l=e;c1?l-1:0),d=1;d=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n "])),this.hass,this.supervisor,this.route,this.panel,this.narrow)}},{kind:"method",key:"_applyTheme",value:function(){var e,t,n,r;(0,a.I)(this.hass.config.version,0,114)?(e=(null===(n=this.hass.selectedTheme)||void 0===n?void 0:n.theme)||(this.hass.themes.darkMode&&this.hass.themes.default_dark_theme?this.hass.themes.default_dark_theme:this.hass.themes.default_theme),void 0===(null===(r=t=this.hass.selectedTheme)||void 0===r?void 0:r.dark)&&(t=Object.assign({},this.hass.selectedTheme,{dark:this.hass.themes.darkMode}))):e=this.hass.selectedTheme||this.hass.themes.default_theme;I(this.parentElement,this.hass.themes,e,t)}}]}}),Nh);var tm=document.createElement("style");tm.innerHTML="\nbody {\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-weight: 400;\n margin: 0;\n padding: 0;\n height: 100vh;\n}\n@media (prefers-color-scheme: dark) {\n body {\n background-color: #111111;\n color: #e1e1e1;\n }\n}\n",document.head.appendChild(tm)},55677:function(e,t,n){"use strict";var r;n.d(t,{l:function(){return a}});var i,o,a=(0,n(50424).iv)(r||(i=["\n .content {\n margin: 8px;\n }\n h1,\n .description,\n .card-content {\n color: var(--primary-text-color);\n }\n h1 {\n font-size: 2em;\n margin-bottom: 8px;\n font-family: var(--paper-font-headline_-_font-family);\n -webkit-font-smoothing: var(--paper-font-headline_-_-webkit-font-smoothing);\n font-size: var(--paper-font-headline_-_font-size);\n font-weight: var(--paper-font-headline_-_font-weight);\n letter-spacing: var(--paper-font-headline_-_letter-spacing);\n line-height: var(--paper-font-headline_-_line-height);\n padding-left: 8px;\n }\n .description {\n margin-top: 4px;\n padding-left: 8px;\n }\n .card-group {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n grid-gap: 8px;\n }\n @media screen and (min-width: 640px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.5fr));\n }\n }\n @media screen and (min-width: 1020px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.333fr));\n }\n }\n @media screen and (min-width: 1300px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.25fr));\n }\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n .error {\n color: var(--error-color);\n margin-top: 16px;\n }\n"],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))))},39460:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUnicodeLanguageSubtag=t.isUnicodeScriptSubtag=t.isUnicodeRegionSubtag=t.isStructurallyValidLanguageTag=t.parseUnicodeLanguageId=t.parseUnicodeLocaleId=t.getCanonicalLocales=void 0;var r=n(87480),i=n(36838),o=n(55946),a=n(73887);t.getCanonicalLocales=function(e){return function(e){if(void 0===e)return[];var t=[];"string"==typeof e&&(e=[e]);for(var n=0,r=e;nt[0]?1:0}function u(e,t){return e.typet.type?1:0}function d(e,t){for(var n=r.__spreadArray([],e),i=0,o=t;i-1&&(v=_)}}v&&(t.region=v),t.region=t.region.toUpperCase()}if(t.script&&(t.script=t.script[0].toUpperCase()+t.script.slice(1).toLowerCase(),i.scriptAlias[t.script]&&(t.script=i.scriptAlias[t.script])),t.variants.length){for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,r.eZ)({descriptor:function(r){return{get:function(){var r,i,a="slot"+(e?"[name=".concat(e,"]"):":not([name])"),s=null===(i=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(a))||void 0===i?void 0:i.assignedNodes({flatten:t});return s&&n&&(s=s.filter((function(e){return e.nodeType===Node.ELEMENT_NODE&&(e.matches?e.matches(n):o.call(e,n))}))),s},enumerable:!0,configurable:!0}}})}},56596:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(94081);function i(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function o(e){return(0,r.eZ)({descriptor:function(t){return{get:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.updateComplete;case 2:return t.abrupt("return",null===(r=n.renderRoot)||void 0===r?void 0:r.querySelector(e));case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))})()},enumerable:!0,configurable:!0}}})}},96022:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(94081);function i(e){return(i="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(e,t){return(0,r.eZ)({descriptor:function(n){var r={get:function(){var t;return null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)},enumerable:!0,configurable:!0};if(t){var o="symbol"==i(n)?Symbol():"__"+n;r.get=function(){var t;return void 0===this[o]&&(this[o]=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)),this[o]}}return r}})}},20238:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(12445);function i(e){return(0,r.C)(Object.assign({},e,{state:!0}))}},25945:function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function g(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(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 _(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0,1)}},{key:"_$Ep",value:function(){var e=this;this.constructor.elementProperties.forEach((function(t,n){e.hasOwnProperty(n)&&(e._$Et.set(n,e[n]),delete e[n])}))}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return y(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Em)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$Em)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$Eg",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L,o=this.constructor._$Eh(e,i);if(void 0!==o&&!0===i.reflect){var a=(null!==(r=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:R.toAttribute)(t,i.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}},{key:"_$AK",value:function(e,t){var n,r,i,o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){var s=o.getPropertyOptions(a),c=s.converter,l=null!==(i=null!==(r=null===(n=c)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof c?c:null)&&void 0!==i?i:R.fromAttribute;this._$Ei=a,this[a]=l(t,s.type),this._$Ei=null}}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||I)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$ES&&(this._$ES=new Map),this._$ES.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ev=this._$EC())}},{key:"_$EC",value:(a=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$Ev;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.performUpdate(),e.t1=null!=t,!e.t1){e.next=14;break}return e.next=14,t;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}}),e,this,[[1,6]])})),s=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=a.apply(e,t);function o(e){x(i,n,r,o,s,"next",e)}function s(e){x(i,n,r,o,s,"throw",e)}o(void 0)}))},function(){return s.apply(this,arguments)})},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach((function(e,n){return t[n]=e})),this._$Et=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$Em)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$E_()}catch(e){throw n=!1,this._$E_(),e}n&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$Em)||void 0===t||t.forEach((function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$E_",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$Ev}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._$ES&&(this._$ES.forEach((function(e,n){return t._$Eg(n,t[n],e)})),this._$ES=void 0),this._$E_()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],o=[{key:"addInitializer",value:function(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach((function(n,r){var i=e._$Eh(r,n);void 0!==i&&(e._$Eu.set(i,r),t.push(i))})),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==k(e)?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}},{key:"getPropertyDescriptor",value:function(e,t,n){return{get:function(){return this[t]},set:function(r){var i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||L}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=b([].concat(g(Object.getOwnPropertyNames(n)),g(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}catch(o){r.e(o)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,r=b(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.unshift(v(i))}}catch(o){r.e(o)}finally{r.f()}}else void 0!==e&&t.push(v(e));return t}},{key:"_$Eh",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}],i&&E(r.prototype,i),o&&E(r,o),l}(A(HTMLElement));j.finalized=!0,j.elementProperties=new Map,j.elementStyles=[],j.shadowRootOptions={mode:"open"},null===(s=(a=globalThis).reactiveElementPlatformSupport)||void 0===s||s.call(a,{ReactiveElement:j}),(null!==(c=(l=globalThis).reactiveElementVersions)&&void 0!==c?c:l.reactiveElementVersions=[]).push("1.0.0-rc.3")},72774:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});var r=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},58014:function(e,t,n){"use strict";function r(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(i(n,t))return n;n=n.parentElement}return null}function i(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}n.d(t,{oq:function(){return r},wB:function(){return i}})},74015:function(e,t,n){"use strict";var r,i;n.d(t,{j2:function(){return s},UX:function(){return o},KT:function(){return c}});var o={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},a=((r={})[""+o.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",r[""+o.LIST_ITEM_CLASS]="mdc-list-item",r[""+o.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",r[""+o.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",r[""+o.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",r[""+o.ROOT]="mdc-list",(i={})[""+o.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",i[""+o.LIST_ITEM_CLASS]="mdc-deprecated-list-item",i[""+o.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",i[""+o.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",i[""+o.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",i[""+o.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",i[""+o.ROOT]="mdc-deprecated-list",i),s={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+o.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+o.LIST_ITEM_CLASS+" a,\n ."+a[o.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[o.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+o.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+o.LIST_ITEM_CLASS+" a,\n ."+o.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+o.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+a[o.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[o.LIST_ITEM_CLASS]+" a,\n ."+a[o.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+a[o.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},c={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300}},38103:function(e,t,n){"use strict";function r(e,t,n){if(void 0!==t)return function(e,t,n){var r=e.constructor;if(!n){var i="__".concat(t);if(!(n=r.getPropertyDescriptor(t,i)))throw new Error("@ariaProperty must be used after a @property decorator")}var o=n,a="";if(!o.set)throw new Error("@ariaProperty requires a setter for ".concat(t));var s={configurable:!0,enumerable:!0,set:function(e){if(""===a){var n=r.getPropertyOptions(t);a=n.attribute}this.hasAttribute(a)&&this.removeAttribute(a),o.set.call(this,e)}};return o.get&&(s.get=function(){return o.get.call(this)}),s}(e,t,n);throw new Error("@ariaProperty only supports TypeScript Decorators")}n.d(t,{L:function(){return r}})},78220:function(e,t,n){"use strict";n.d(t,{q:function(){return i.qN},H:function(){return p}});var r=n(55704),i=n(82612);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:window.document,t=e.activeElement,n=[];if(!t)return n;for(;t&&(n.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return n},c=function(e){var t=s();if(!t.length)return!1;var n=t[t.length-1],r=new Event("check-if-focused",{bubbles:!0,composed:!0}),i=[],o=function(e){i=e.composedPath()};return document.body.addEventListener("check-if-focused",o),n.dispatchEvent(r),document.body.removeEventListener("check-if-focused",o),-1!==i.indexOf(e)}},89579:function(e,t,n){"use strict";var r,i=n(87480),o=n(55704);var a,s,c,l=(0,o.iv)(r||(a=[':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"}'],s||(s=a.slice(0)),r=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(s)}}))));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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n"])))}}])&&f(t.prototype,n),r&&f(t,r),a}(o.oi);v.styles=[l],v=(0,i.__decorate)([(0,o.Mo)("mwc-icon")],v);n(91156);var b,g,_,w,k=n(98734),x=n(81471);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n'])),!e,this.disabled):""}},{key:"focus",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}},{key:"blur",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}},{key:"getRenderClasses",value:function(){return(0,x.$)({"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense})}},{key:"render",value:function(){return(0,o.dy)(_||(_=S(['\n \n ',"\n ",'\n \n \n ','\n \n \n ','\n \n \n \n \n \n ',"\n \n \n "])),this.getRenderClasses(),this.disabled,this.label||this.icon,this.handleRippleFocus,this.handleRippleBlur,this.handleRippleActivate,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleActivate,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderOverlay(),this.renderRipple(),this.icon&&!this.trailingIcon?this.renderIcon():"",this.label,(0,x.$)({flex:this.expandContent}),this.icon&&this.trailingIcon?this.renderIcon():"")}},{key:"renderIcon",value:function(){return(0,o.dy)(w||(w=S(['\n \n ',"\n "])),this.icon)}},{key:"handleRippleActivate",value:function(e){var t=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),t.handleRippleDeactivate()})),this.rippleHandlers.startPress(e)}},{key:"handleRippleDeactivate",value:function(){this.rippleHandlers.endPress()}},{key:"handleRippleMouseEnter",value:function(){this.rippleHandlers.startHover()}},{key:"handleRippleMouseLeave",value:function(){this.rippleHandlers.endHover()}},{key:"handleRippleFocus",value:function(){this.rippleHandlers.startFocus()}},{key:"handleRippleBlur",value:function(){this.rippleHandlers.endFocus()}}])&&O(t.prototype,n),r&&O(t,r),a}(o.oi);L.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],L.prototype,"raised",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],L.prototype,"unelevated",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],L.prototype,"outlined",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean})],L.prototype,"dense",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],L.prototype,"disabled",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,attribute:"trailingicon"})],L.prototype,"trailingIcon",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],L.prototype,"fullwidth",void 0),(0,i.__decorate)([(0,o.Cb)({type:String})],L.prototype,"icon",void 0),(0,i.__decorate)([(0,o.Cb)({type:String})],L.prototype,"label",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean})],L.prototype,"expandContent",void 0),(0,i.__decorate)([(0,o.IO)("#button")],L.prototype,"buttonElement",void 0),(0,i.__decorate)([(0,o.GC)("mwc-ripple")],L.prototype,"ripple",void 0),(0,i.__decorate)([(0,o.SB)()],L.prototype,"shouldRenderRipple",void 0),(0,i.__decorate)([(0,o.hO)({passive:!0})],L.prototype,"handleRippleActivate",null);var j=(0,o.iv)(I||(I=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase);position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:transparent}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;font-size:1.125rem;height:1.125rem;vertical-align:top;width:1.125rem}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon,.mdc-button--outlined .mdc-button__icon{margin-left:-4px;margin-right:8px}[dir=rtl] .mdc-button--raised .mdc-button__icon,[dir=rtl] .mdc-button--unelevated .mdc-button__icon,[dir=rtl] .mdc-button--outlined .mdc-button__icon,.mdc-button--raised .mdc-button__icon[dir=rtl],.mdc-button--unelevated .mdc-button__icon[dir=rtl],.mdc-button--outlined .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mdc-button--raised .mdc-button__label+.mdc-button__icon,.mdc-button--unelevated .mdc-button__label+.mdc-button__icon,.mdc-button--outlined .mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mdc-button--raised .mdc-button__label+.mdc-button__icon,[dir=rtl] .mdc-button--unelevated .mdc-button__label+.mdc-button__icon,[dir=rtl] .mdc-button--outlined .mdc-button__label+.mdc-button__icon,.mdc-button--raised .mdc-button__label+.mdc-button__icon[dir=rtl],.mdc-button--unelevated .mdc-button__label+.mdc-button__icon[dir=rtl],.mdc-button--outlined .mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12)}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0,0,0,.12)}.mdc-button--outlined{border-style:solid}.mdc-button{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 8px 0 8px}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised,.mdc-button--unelevated{padding:0 16px 0 16px;height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0, 0, 0, 0.12)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--raised .mdc-button__ripple,.mdc-button--unelevated .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 15px 0 15px;border-width:1px}.mdc-button--outlined:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button--outlined:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--outlined .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined:disabled{border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined.mdc-button--icon-trailing{padding:0 11px 0 15px}.mdc-button--outlined.mdc-button--icon-leading{padding:0 15px 0 11px}.mdc-button--outlined .mdc-button__ripple{top:-1px;left:-1px;border:1px solid transparent}.mdc-button--outlined .mdc-button__touch{left:-1px;width:calc(100% + 2 * 1px)}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent;vertical-align:top}:host([fullwidth]){width:100%}:host([raised]),:host([unelevated]){--mdc-ripple-color:#fff;--mdc-ripple-focus-opacity:0.24;--mdc-ripple-hover-opacity:0.08;--mdc-ripple-press-opacity:0.24}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon,.leading-icon ::slotted(*),.leading-icon .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;font-size:1.125rem;height:1.125rem;vertical-align:top;width:1.125rem}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,[dir=rtl] .leading-icon ::slotted(*),[dir=rtl] .leading-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl],.leading-icon ::slotted(*[dir=rtl]),.leading-icon .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.slot-container{display:inline-flex;align-items:center;justify-content:center}.slot-container.flex{flex:auto}.mdc-button{flex:auto;overflow:hidden;padding-left:8px;padding-left:var(--mdc-button-horizontal-padding, 8px);padding-right:8px;padding-right:var(--mdc-button-horizontal-padding, 8px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-focus, var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)))}.mdc-button--raised:hover{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-active, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-disabled, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised,.mdc-button--unelevated{padding-left:16px;padding-left:var(--mdc-button-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mdc-button-horizontal-padding, 16px)}.mdc-button--outlined{border-width:1px;border-width:var(--mdc-button-outline-width, 1px);padding-left:calc(16px - 1px);padding-left:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px));padding-right:calc(16px - 1px);padding-right:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px))}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-outline-color, rgba(0, 0, 0, 0.12))}.mdc-button--outlined .ripple{top:calc(-1 * 1px);top:calc(-1 * var(--mdc-button-outline-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mdc-button-outline-width, 1px));right:initial;right:initial;border-width:1px;border-width:var(--mdc-button-outline-width, 1px);border-style:solid;border-color:transparent}[dir=rtl] .mdc-button--outlined .ripple,.mdc-button--outlined .ripple[dir=rtl]{left:initial;left:initial;right:calc(-1 * 1px);right:calc(-1 * var(--mdc-button-outline-width, 1px))}.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button--dense .mdc-button__touch{display:none}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-button{color:rgba(0, 0, 0, 0.38);color:var(--mdc-button-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-button--raised,:host([disabled]) .mdc-button--unelevated{background-color:rgba(0, 0, 0, 0.12);background-color:var(--mdc-button-disabled-fill-color, rgba(0, 0, 0, 0.12))}:host([disabled]) .mdc-button--outlined{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}"])));function D(e){return(D="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 z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var i=B(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(n,e);var t=N(n);function n(){return z(this,n),t.apply(this,arguments)}return n}(L);Z.styles=[j],Z=(0,i.__decorate)([(0,o.Mo)("mwc-button")],Z)},58856:function(e,t,n){"use strict";var r,i,o=n(87480),a=n(55704),s=(n(91156),n(38103)),c=n(98734);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){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n\n '])),this.disabled):""}},{key:"focus",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}},{key:"blur",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}},{key:"render",value:function(){return(0,a.dy)(i||(i=u(['','\n ',"\n \n "])),this.ariaLabel||this.icon,this.disabled,this.handleRippleFocus,this.handleRippleBlur,this.handleRippleMouseDown,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleTouchStart,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderRipple(),this.icon)}},{key:"handleRippleMouseDown",value:function(e){var t=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),t.handleRippleDeactivate()})),this.rippleHandlers.startPress(e)}},{key:"handleRippleTouchStart",value:function(e){this.rippleHandlers.startPress(e)}},{key:"handleRippleDeactivate",value:function(){this.rippleHandlers.endPress()}},{key:"handleRippleMouseEnter",value:function(){this.rippleHandlers.startHover()}},{key:"handleRippleMouseLeave",value:function(){this.rippleHandlers.endHover()}},{key:"handleRippleFocus",value:function(){this.rippleHandlers.startFocus()}},{key:"handleRippleBlur",value:function(){this.rippleHandlers.endFocus()}}])&&f(t.prototype,n),o&&f(t,o),l}(a.oi);(0,o.__decorate)([(0,a.Cb)({type:Boolean,reflect:!0})],b.prototype,"disabled",void 0),(0,o.__decorate)([(0,a.Cb)({type:String})],b.prototype,"icon",void 0),(0,o.__decorate)([s.L,(0,a.Cb)({type:String,attribute:"aria-label"})],b.prototype,"ariaLabel",void 0),(0,o.__decorate)([(0,a.IO)("button")],b.prototype,"buttonElement",void 0),(0,o.__decorate)([(0,a.GC)("mwc-ripple")],b.prototype,"ripple",void 0),(0,o.__decorate)([(0,a.SB)()],b.prototype,"shouldRenderRipple",void 0),(0,o.__decorate)([(0,a.hO)({passive:!0})],b.prototype,"handleRippleMouseDown",null),(0,o.__decorate)([(0,a.hO)({passive:!0})],b.prototype,"handleRippleTouchStart",null);var g,_,w=(0,a.iv)(v||(g=['.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;font-size:24px;text-decoration:none;cursor:pointer;user-select:none;width:48px;height:48px;padding:12px}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button--touch{margin-top:0px;margin-bottom:0px}:host{display:inline-block;outline:none;--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host([disabled]){pointer-events:none}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button>i{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)}'],_||(_=g.slice(0)),v=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(_)}}))));function k(e){return(k="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 x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function 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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(n,e);var t=S(n);function n(){return x(this,n),t.apply(this,arguments)}return n}(b);C.styles=[w],C=(0,o.__decorate)([(0,a.Mo)("mwc-icon-button")],C)},87724:function(e,t,n){"use strict";var r,i,o,a,s,c,l,u,d,f,p=n(87480),h=n(55704),m=(n(91156),n(14114)),y=n(98734),v=n(81471);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n "])),this.activated):this.activated?(0,h.dy)(s||(s=w(['
    ']))):""}},{key:"renderGraphic",value:function(){var e={multi:this.multipleGraphics};return(0,h.dy)(c||(c=w(['\n \n \n '])),(0,v.$)(e))}},{key:"renderMeta",value:function(){return(0,h.dy)(l||(l=w(['\n \n \n '])))}},{key:"renderText",value:function(){var e=this.twoline?this.renderTwoline():this.renderSingleLine();return(0,h.dy)(u||(u=w(['\n \n ',"\n "])),e)}},{key:"renderSingleLine",value:function(){return(0,h.dy)(d||(d=w([""])))}},{key:"renderTwoline",value:function(){return(0,h.dy)(f||(f=w(['\n \n \n \n \n \n \n '])))}},{key:"onClick",value:function(){this.fireRequestSelected(!this.selected,"interaction")}},{key:"onDown",value:function(e,t){var n=this;window.addEventListener(e,(function t(){window.removeEventListener(e,t),n.rippleHandlers.endPress()})),this.rippleHandlers.startPress(t)}},{key:"fireRequestSelected",value:function(e,t){if(!this.noninteractive){var n=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:t,selected:e}});this.dispatchEvent(n)}}},{key:"connectedCallback",value:function(){E(P(b.prototype),"connectedCallback",this).call(this),this.noninteractive||this.setAttribute("mwc-list-item","");var e,t=g(this.listeners);try{for(t.s();!(e=t.n()).done;){var n,r=e.value,i=g(r.eventNames);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.target.addEventListener(o,r.cb,{passive:!0})}}catch(a){i.e(a)}finally{i.f()}}}catch(a){t.e(a)}finally{t.f()}}},{key:"disconnectedCallback",value:function(){E(P(b.prototype),"disconnectedCallback",this).call(this);var e,t=g(this.listeners);try{for(t.s();!(e=t.n()).done;){var n,r=e.value,i=g(r.eventNames);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.target.removeEventListener(o,r.cb)}}catch(a){i.e(a)}finally{i.f()}}}catch(a){t.e(a)}finally{t.f()}this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}},{key:"firstUpdated",value:function(){var e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}])&&x(t.prototype,n),p&&x(t,p),b}(h.oi);(0,p.__decorate)([(0,h.IO)("slot")],R.prototype,"slotElement",void 0),(0,p.__decorate)([(0,h.GC)("mwc-ripple")],R.prototype,"ripple",void 0),(0,p.__decorate)([(0,h.Cb)({type:String})],R.prototype,"value",void 0),(0,p.__decorate)([(0,h.Cb)({type:String,reflect:!0})],R.prototype,"group",void 0),(0,p.__decorate)([(0,h.Cb)({type:Number,reflect:!0})],R.prototype,"tabindex",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0}),(0,m.P)((function(e){e?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],R.prototype,"disabled",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0})],R.prototype,"twoline",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0})],R.prototype,"activated",void 0),(0,p.__decorate)([(0,h.Cb)({type:String,reflect:!0})],R.prototype,"graphic",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean})],R.prototype,"multipleGraphics",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean})],R.prototype,"hasMeta",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0}),(0,m.P)((function(e){e?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],R.prototype,"noninteractive",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0}),(0,m.P)((function(e){var t=this.getAttribute("role"),n="gridcell"===t||"option"===t||"row"===t||"tab"===t;n&&e?this.setAttribute("aria-selected","true"):n&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(e,"property")}))],R.prototype,"selected",void 0),(0,p.__decorate)([(0,h.SB)()],R.prototype,"shouldRenderRipple",void 0),(0,p.__decorate)([(0,h.SB)()],R.prototype,"_managingList",void 0);var I,L,j=(0,h.iv)(T||(I=[':host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}'],L||(L=I.slice(0)),T=Object.freeze(Object.defineProperties(I,{raw:{value:Object.freeze(L)}}))));function D(e){return(D="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 z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var i=B(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(n,e);var t=N(n);function n(){return z(this,n),t.apply(this,arguments)}return n}(R);Z.styles=[j],Z=(0,p.__decorate)([(0,h.Mo)("mwc-list-item")],Z)},62613:function(e,t,n){"use strict";var r=n(87480),i=n(55704),o=(n(87724),n(78220)),a=n(14114),s=n(82612),c=n(49629),l=n(72774),u="Unknown",d="Backspace",f="Enter",p="Spacebar",h="PageUp",m="PageDown",y="End",v="Home",b="ArrowLeft",g="ArrowUp",_="ArrowRight",w="ArrowDown",k="Delete",x="Escape",E="Tab",S=new Set;S.add(d),S.add(f),S.add(p),S.add(h),S.add(m),S.add(y),S.add(v),S.add(b),S.add(g),S.add(_),S.add(w),S.add(k),S.add(x),S.add(E);var A=8,O=13,C=32,P=33,T=34,R=35,I=36,L=37,j=38,D=39,z=40,M=46,N=27,F=9,B=new Map;B.set(A,d),B.set(O,f),B.set(C,p),B.set(P,h),B.set(T,m),B.set(R,y),B.set(I,v),B.set(L,b),B.set(j,g),B.set(D,_),B.set(z,w),B.set(M,k),B.set(N,x),B.set(F,E);var Z=new Set;function U(e){var t=e.key;if(S.has(t))return t;var n=B.get(e.keyCode);return n||u}Z.add(h),Z.add(m),Z.add(y),Z.add(v),Z.add(b),Z.add(g),Z.add(_),Z.add(w);var H=n(74015);function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||K(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 $(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=K(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function K(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&this.adapter.setTabIndexForElementIndex(t,0)}},{key:"handleFocusOut",value:function(e,t){var n=this;t>=0&&this.adapter.setTabIndexForElementIndex(t,-1),setTimeout((function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedItem_()}),0)}},{key:"handleKeydown",value:function(e,t,n){var r="ArrowLeft"===U(e),i="ArrowUp"===U(e),o="ArrowRight"===U(e),a="ArrowDown"===U(e),s="Home"===U(e),c="End"===U(e),l="Enter"===U(e),u="Spacebar"===U(e);if(this.adapter.isRootFocused())i||c?(e.preventDefault(),this.focusLastElement()):(a||s)&&(e.preventDefault(),this.focusFirstElement());else{var d=this.adapter.getFocusedElementIndex();if(!(-1===d&&(d=n)<0)){var f;if(this.isVertical_&&a||!this.isVertical_&&o)this.preventDefaultEvent(e),f=this.focusNextElement(d);else if(this.isVertical_&&i||!this.isVertical_&&r)this.preventDefaultEvent(e),f=this.focusPrevElement(d);else if(s)this.preventDefaultEvent(e),f=this.focusFirstElement();else if(c)this.preventDefaultEvent(e),f=this.focusLastElement();else if((l||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&l)return;this.preventDefaultEvent(e),this.setSelectedIndexOnAction_(d,!0)}this.focusedItemIndex_=d,void 0!==f&&(this.setTabindexAtIndex_(f),this.focusedItemIndex_=f)}}}},{key:"handleSingleSelection",value:function(e,t,n){e!==H.KT.UNSET_INDEX&&(this.setSelectedIndexOnAction_(e,t,n),this.setTabindexAtIndex_(e),this.focusedItemIndex_=e)}},{key:"focusNextElement",value:function(e){var t=e+1;if(t>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return e;t=0}return this.adapter.focusItemAtIndex(t),t}},{key:"focusPrevElement",value:function(e){var t=e-1;if(t<0){if(!this.wrapFocus_)return e;t=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(t),t}},{key:"focusFirstElement",value:function(){return this.adapter.focusItemAtIndex(0),0}},{key:"focusLastElement",value:function(){var e=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(e),e}},{key:"setEnabled",value:function(e,t){this.isIndexValid_(e)&&this.adapter.setDisabledStateForElementIndex(e,!t)}},{key:"preventDefaultEvent",value:function(e){var t=e.target,n="".concat(t.tagName).toLowerCase();-1===ne.indexOf(n)&&e.preventDefault()}},{key:"setSingleSelectionAtIndex_",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.selectedIndex_!==e&&(this.selectedIndex_!==H.KT.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),t&&this.adapter.setSelectedStateForElementIndex(e,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!0),this.setAriaForSingleSelectionAtIndex_(e),this.selectedIndex_=e,this.adapter.notifySelected(e))}},{key:"setMultiSelectionAtIndex_",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=ae(this.selectedIndex_),r=te(n,e);if(r.removed.length||r.added.length){var i,o=$(r.removed);try{for(o.s();!(i=o.n()).done;){var a=i.value;t&&this.adapter.setSelectedStateForElementIndex(a,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(a,!1)}}catch(u){o.e(u)}finally{o.f()}var s,c=$(r.added);try{for(c.s();!(s=c.n()).done;){var l=s.value;t&&this.adapter.setSelectedStateForElementIndex(l,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(l,!0)}}catch(u){c.e(u)}finally{c.f()}this.selectedIndex_=e,this.adapter.notifySelected(e,r)}}},{key:"setAriaForSingleSelectionAtIndex_",value:function(e){this.selectedIndex_===H.KT.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,H.j2.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,n=t?H.j2.ARIA_CURRENT:H.j2.ARIA_SELECTED;this.selectedIndex_!==H.KT.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false");var r=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,n,r)}},{key:"setTabindexAtIndex_",value:function(e){this.focusedItemIndex_===H.KT.UNSET_INDEX&&0!==e?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==e&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(e,0)}},{key:"setTabindexToFirstSelectedItem_",value:function(){var e=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==H.KT.UNSET_INDEX?e=this.selectedIndex_:re(this.selectedIndex_)&&this.selectedIndex_.size>0&&(e=Math.min.apply(Math,V(this.selectedIndex_))),this.setTabindexAtIndex_(e)}},{key:"isIndexValid_",value:function(e){if(e instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===e.size)return!0;var t,n=!1,r=$(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(n=this.isIndexInRange_(i))break}}catch(o){r.e(o)}finally{r.f()}return n}if("number"==typeof e){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return e===H.KT.UNSET_INDEX||this.isIndexInRange_(e)}return!1}},{key:"isIndexInRange_",value:function(e){var t=this.adapter.getListItemCount();return e>=0&&e2&&void 0!==arguments[2])||arguments[2],r=!1;r=void 0===t?!this.adapter.getSelectedStateForElementIndex(e):t;var i=ae(this.selectedIndex_);r?i.add(e):i.delete(e),this.setMultiSelectionAtIndex_(i,n)}}])&&q(t.prototype,n),r&&q(t,r),o}(l.K);function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ue(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:50;return function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];clearTimeout(t),t=setTimeout((function(){e(r)}),n)}}(e.layout.bind(be(e)));return e.debouncedLayout=function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];we.call(be(e)),t(n)},e}return t=u,(n=[{key:"getUpdateComplete",value:(o=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,he(ge(u.prototype),"getUpdateComplete",this).call(this);case 2:return t=e.sent,e.next=5,this.itemsReady;case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){fe(i,n,r,a,s,"next",e)}function s(e){fe(i,n,r,a,s,"throw",e)}a(void 0)}))},function(){return a.apply(this,arguments)})},{key:"items",get:function(){return this.items_}},{key:"updateItems",value:function(){var e,t,n=this,r=[],i=ue(null!==(e=this.assignedElements)&&void 0!==e?e:[]);try{for(i.s();!(t=i.n()).done;){var o=t.value;_e(o)&&(r.push(o),o._managingList=this),o.hasAttribute("divider")&&!o.hasAttribute("role")&&o.setAttribute("role","separator")}}catch(l){i.e(l)}finally{i.f()}this.items_=r;var a=new Set;if(this.items_.forEach((function(e,t){n.itemRoles?e.setAttribute("role",n.itemRoles):e.removeAttribute("role"),e.selected&&a.add(t)})),this.multi)this.select(a);else{var s=a.size?a.entries().next().value[1]:-1;this.select(s)}var c=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(c)}},{key:"selected",get:function(){var e=this.index;if(!re(e))return-1===e?null:this.items[e];var t,n=[],r=ue(e);try{for(r.s();!(t=r.n()).done;){var i=t.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}},{key:"render",value:function(){var e=null===this.innerRole?void 0:this.innerRole,t=null===this.innerAriaLabel?void 0:this.innerAriaLabel,n=this.rootTabbable?"0":"-1";return(0,i.dy)(ie||(ie=le(["\n \x3c!-- @ts-ignore --\x3e\n 0&&h.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(h.push(e.target),this.registerDeactivationHandlers(e)),n.wasElementMadeActive=this.checkElementMadeActive(e),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){h=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive(e),n.wasElementMadeActive&&t.animateActivation()),n.wasElementMadeActive||(t.activationState=t.defaultActivationState())})))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,n=t.strings,r=n.VAR_FG_TRANSLATE_START,i=n.VAR_FG_TRANSLATE_END,o=t.cssClasses,a=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",u="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,p=d.endPoint;l=f.x+"px, "+f.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(){e.activationTimerCallback()}),c)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var r,i,o=t.x,a=t.y,s=o+n.left,c=a+n.top;if("touchstart"===e.type){var l=e;r=l.changedTouches[0].pageX-s,i=l.changedTouches[0].pageY-c}else{var u=e;r=u.pageX-s,i=u.pageY-c}return{x:r,y:i}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,n=t.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(){e.adapter.removeClass(n)}),u.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var n=(0,r.__assign)({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(n)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState()})))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=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(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var r=Math.floor(n*t.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()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,n=e.VAR_FG_SIZE,r=e.VAR_LEFT,i=e.VAR_TOP,o=e.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"))},t}(s.K),y=n(81471),v=n(79865);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n
    '])),(0,y.$)(n),(0,v.V)({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos}))}}])&&_(t.prototype,n),r&&_(t,r),s}(a.H);(0,r.__decorate)([(0,i.IO)(".mdc-ripple-surface")],O.prototype,"mdcRoot",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],O.prototype,"primary",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],O.prototype,"accent",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],O.prototype,"unbounded",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],O.prototype,"disabled",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],O.prototype,"activated",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],O.prototype,"selected",void 0),(0,r.__decorate)([(0,i.Cb)({type:Boolean})],O.prototype,"internalUseStateLayerCustomProperties",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"hovering",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"bgFocused",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"fgActivation",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"fgDeactivation",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"fgScale",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"fgSize",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"translateStart",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"translateEnd",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"leftPos",void 0),(0,r.__decorate)([(0,i.SB)()],O.prototype,"topPos",void 0);var C=(0,i.iv)(A||(A=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@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{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}'])));function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(n,e);var t=I(n);function n(){return T(this,n),t.apply(this,arguments)}return n}(O);D.styles=[C],D=(0,r.__decorate)([(0,i.Mo)("mwc-ripple")],D)},98734:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startPress=function(e){t().then((function(t){t&&t.startPress(e)}))},this.endPress=function(){t().then((function(e){e&&e.endPress()}))},this.startFocus=function(){t().then((function(e){e&&e.startFocus()}))},this.endFocus=function(){t().then((function(e){e&&e.endFocus()}))},this.startHover=function(){t().then((function(e){e&&e.startHover()}))},this.endHover=function(){t().then((function(e){e&&e.endHover()}))}}},8621:function(e,t,n){"use strict";n.d(t,{G:function(){return m}});n(67034);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 d(e,t){var n="";if(e){var r=e.toLowerCase();" "===r||l.test(r)?n="space":u.test(r)?n="esc":1==r.length?t&&!a.test(r)||(n=r):n=c.test(r)?r.replace("arrow",""):"multiply"==r?"*":r}return n}function f(e,t){return e.key?d(e.key,t):e.detail&&e.detail.key?d(e.detail.key,t):(n=e.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(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):i[e]),t}(e.keyCode)||"");var n,o}function p(e,t){return f(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function h(e){return e.trim().split(" ").map((function(e){return function(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n[1];return r in o?(e[o[r]]=!0,e.hasModifiers=!0):(e.key=r,e.event=i||"keydown"),e}),{combo:e.split(":").shift()})}(e)}))}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(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var n=h(t),r=0;r\n \n\n\n \n'],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content);var s=document.createElement("style");s.textContent="[hidden] { display: none !important; }",document.head.appendChild(s)},21006:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});n(67034);var r={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},detached:function(){}}},63207:function(e,t,n){"use strict";n(65660),n(15112);var r,i,o,a=n(67139),s=n(18149),c=n(50856),l=n(67034);(0,a.k)({_template:(0,c.d)(r||(i=["\n \n"],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:l.XY.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(e){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&(0,s.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,s.vz)(this.root).appendChild(this._img))}})},36280:function(e,t,n){"use strict";n(67034);var r,i=n(67139),o=n(50856);var a,s,c=(0,i.k)({_template:(0,o.d)(r||(a=['\n \n
    [[_text]]
    \n'],s||(s=a.slice(0)),r=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(s)}})))),is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text:{type:String,value:""}},created:function(){c.instance||(c.instance=this),document.body.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(e){this._text="",this.async((function(){this._text=e}),100)},_onIronAnnounce:function(e){e.detail&&e.detail.text&&this.announce(e.detail.text)}});c.instance=null,c.requestAvailability=function(){c.instance||(c.instance=document.createElement("iron-a11y-announcer")),document.body.appendChild(c.instance)};var l,u=n(98235),d=n(18149);(0,i.k)({_template:(0,o.d)(l||(l=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n \n']))),is:"iron-input",behaviors:[u.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(){c.requestAvailability(),this._previousValidInput="",this._patternAlreadyChecked=!1},attached:function(){this._observer=(0,d.vz)(this).observeNodes(function(e){this._initSlottedInput()}.bind(this))},detached:function(){this._observer&&((0,d.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 e;if(this.allowedPattern)e=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case"number":e=/[0-9.,e-]/}return e},_bindValueChanged:function(e,t){t&&(void 0===e?t.value=null:e!==t.value&&(this.inputElement.value=e),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:e}))},_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(e){var t=8==e.keyCode||9==e.keyCode||13==e.keyCode||27==e.keyCode,n=19==e.keyCode||20==e.keyCode||45==e.keyCode||46==e.keyCode||144==e.keyCode||145==e.keyCode||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!(t||0==e.charCode&&n)},_onKeypress:function(e){if(this.allowedPattern||"number"===this.inputElement.type){var t=this._patternRegExp;if(t&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlreadyChecked=!0;var n=String.fromCharCode(e.charCode);this._isPrintable(e)&&!t.test(n)&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+n+" not entered."))}}},_checkPatternValidity:function(){var e=this._patternRegExp;if(!e)return!0;for(var t=0;t\n\n \n \x3c!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via --\x3e\n \n \n \n'],b||(b=v.slice(0)),c=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(b)}})))),is:"paper-dropdown-menu",behaviors:[l.P,u.a,d.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},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(e){var t=(0,y.r)(this);return t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),g.prototype._attachDom.call(this,e)},focus:function(){this.$.input._focusableElement.focus()},attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},get contentElement(){for(var e=(0,o.vz)(this.$.content).getDistributedNodes(),t=0,n=e.length;t\n \n\n'])));u.setAttribute("style","display: none;"),document.head.appendChild(u.content),(0,o.k)({_template:(0,c.d)(i||(i=l(['\n \n\n \n\n
    \n \n\n
    \n \n \n
    \n\n \n
    \n\n
    \n
    \n
    \n
    \n\n
    \n \n
    \n']))),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,s.z)(this.attrForValue)},get _inputElement(){return(0,a.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(e){this._addons||(this._addons=[]);var t=e.target;-1===this._addons.indexOf(t)&&(this._addons.push(t),this.isAttached&&this._handleValue(this._inputElement))},_onFocus:function(){this._setFocused(!0)},_onBlur:function(){this._setFocused(!1),this._handleValueAndAutoValidate(this._inputElement)},_onInput:function(e){this._handleValueAndAutoValidate(e.target)},_onValueChanged:function(e){var t=e.target;this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,void 0===t.value||""===t.value)||this._handleValueAndAutoValidate(e.target)},_handleValue:function(e){var t=this._inputElementValue;t||0===t||"number"===e.type&&!e.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1,this.updateAddons({inputElement:e,value:t,invalid:this.invalid})},_handleValueAndAutoValidate:function(e){var t;this.autoValidate&&e&&(t=e.validate?e.validate(this._inputElementValue):e.checkValidity(),this.invalid=!t);this._handleValue(e)},_onIronInputValidate:function(e){this.invalid=this._inputElement.invalid},_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},updateAddons:function(e){for(var t,n=0;t=this._addons[n];n++)t.update(e)},_computeInputContentClass:function(e,t,n,r,i){var o="input-content";if(e)i&&(o+=" label-is-hidden"),r&&(o+=" is-invalid");else{var a=this.querySelector("label");t||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(e,t){var n="underline";return t?n+=" is-invalid":e&&(n+=" is-highlighted"),n},_computeAddOnContentClass:function(e,t){var n="add-on-content";return t?n+=" is-invalid":e&&(n+=" is-highlighted"),n}})},77956:function(e,t,n){"use strict";n(67034),n(36280),n(70019);var r,i,o,a=n(67139),s=n(50856),c={attached:function(){this.fire("addon-attached")},update:function(e){}};(0,a.k)({_template:(0,s.d)(r||(i=["\n \n\n [[_charCounterStr]]\n"],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-input-char-counter",behaviors:[c],properties:{_charCounterStr:{type:String,value:"0"}},update:function(e){if(e.inputElement){e.value=e.value||"";var t=e.value.toString().length.toString();e.inputElement.hasAttribute("maxlength")&&(t+="/"+e.inputElement.getAttribute("maxlength")),this._charCounterStr=t}}});var l;n(98121);(0,a.k)({_template:(0,s.d)(l||(l=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\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']))),is:"paper-input-error",behaviors:[c],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._setInvalid(e.invalid)}});var u,d=n(21006),f=(n(21384),n(8621)),p=n(26110),h=n(18149),m=n(28426),y={NextLabelID:1,NextAddonID:1,NextInputID:1},v={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(),!m.H3&&this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.inputElement.type)&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(e,t){return e=e?e+" "+t:t},_onAddonAttached:function(e){var t=(0,h.vz)(e).rootTarget;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var n="paper-input-add-on-"+y.NextAddonID++;t.id=n,this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,n)}},validate:function(){return this.inputElement.validate()},_focusBlurHandler:function(e){p.a._focusBlurHandler.call(this,e),this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},_onShiftTabDown:function(e){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribute("tabindex","-1"),this.async((function(){this.setAttribute("tabindex",t),this._shiftTabPressed=!1}),1)},_handleAutoValidate:function(){this.autoValidate&&this.validate()},updateValueAndPreserveCaret:function(e){try{var t=this.inputElement.selectionStart;this.value=e,this.inputElement.selectionStart=t,this.inputElement.selectionEnd=t}catch(n){this.value=e}},_computeAlwaysFloatLabel:function(e,t){return t||e},_updateAriaLabelledBy:function(){var e,t=(0,h.vz)(this.root).querySelector("label");t?(t.id?e=t.id:(e="paper-input-label-"+y.NextLabelID++,t.id=e),this._ariaLabelledBy=e):this._ariaLabelledBy=""},_generateInputId:function(){this._inputId&&""!==this._inputId||(this._inputId="input-"+y.NextInputID++)},_onChange:function(e){this.shadowRoot&&this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})},_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&e!==document.documentElement||this._focusableElement.focus()}}},b=[p.a,f.G,v];(0,a.k)({is:"paper-input",_template:(0,s.d)(u||(u=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\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 ']))),behaviors:[b,d.V],properties:{value:{type:String},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},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(e,t,n){"use strict";n.d(t,{U:function(){return o}});n(67034);var r=n(51644),i=n(26110),o=[r.P,i.a,{hostAttributes:{role:"option",tabindex:"0"}}]},89194:function(e,t,n){"use strict";n(67034),n(65660),n(70019);var r,i,o,a=n(67139),s=n(50856);(0,a.k)({_template:(0,s.d)(r||(i=["\n \n\n \n"],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-item-body"})},97968:function(e,t,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(e,t,n){"use strict";n(67034),n(65660),n(97968);var r,i,o,a=n(67139),s=n(50856),c=n(33760);(0,a.k)({_template:(0,s.d)(r||(i=['\n \n \n'],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-item",behaviors:[c.U]})},11488:function(e,t,n){"use strict";n(67034);var r=n(8621),i=n(18149),o=n(67130);function a(e,t){for(var n=0;n=0}},{key:"setItemSelected",value:function(e,t){if(null!=e&&t!==this.isSelected(e)){if(t)this.selection.push(e);else{var n=this.selection.indexOf(e);n>=0&&this.selection.splice(n,1)}this.selectCallback&&this.selectCallback(e,t)}}},{key:"select",value:function(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSelected(this.get(),!1),this.setItemSelected(e,!0))}},{key:"toggle",value:function(e){this.setItemSelected(e,!this.isSelected(e))}}])&&a(t.prototype,n),r&&a(t,r),e}(),d={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 u(this._applySelection.bind(this))},attached:function(){this._observer=this._observeItems(this),this._addListener(this.activateEvent)},detached:function(){this._observer&&(0,i.vz)(this).unobserveNodes(this._observer),this._removeListener(this.activateEvent)},indexOf:function(e){return this.items?this.items.indexOf(e):-1},select:function(e){this.selected=e},selectPrevious:function(){var e=this.items.length,t=e-1;void 0!==this.selected&&(t=(Number(this._valueToIndex(this.selected))-1+e)%e),this.selected=this._indexToValue(t)},selectNext:function(){var e=0;void 0!==this.selected&&(e=(Number(this._valueToIndex(this.selected))+1)%this.items.length),this.selected=this._indexToValue(e)},selectIndex:function(e){this.select(this._indexToValue(e))},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(e){this.listen(this,e,"_activateHandler")},_removeListener:function(e){this.unlisten(this,e,"_activateHandler")},_activateEventChanged:function(e,t){this._removeListener(t),this._addListener(e)},_updateItems:function(){var e=(0,i.vz)(this).queryDistributedElements(this.selectable||"*");e=Array.prototype.filter.call(e,this._bindFilterItem),this._setItems(e)},_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},_updateSelected:function(){this._selectSelected(this.selected)},_selectSelected:function(e){if(this.items){var t=this._valueToItem(this.selected);t?this._selection.select(t):this._selection.clear(),this.fallbackSelection&&this.items.length&&void 0===this._selection.get()&&(this.selected=this.fallbackSelection)}},_filterItem:function(e){return!this._excludedLocalNames[e.localName]},_valueToItem:function(e){return null==e?null:this.items[this._valueToIndex(e)]},_valueToIndex:function(e){if(!this.attrForSelected)return Number(e);for(var t,n=0;t=this.items[n];n++)if(this._valueForItem(t)==e)return n},_indexToValue:function(e){if(!this.attrForSelected)return e;var t=this.items[e];return t?this._valueForItem(t):void 0},_valueForItem:function(e){if(!e)return null;if(!this.attrForSelected){var t=this.indexOf(e);return-1===t?null:t}var n=e[(0,o.z)(this.attrForSelected)];return null!=n?n:e.getAttribute(this.attrForSelected)},_applySelection:function(e,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,e),this.selectedAttribute&&this.toggleAttribute(this.selectedAttribute,t,e),this._selectionChange(),this.fire("iron-"+(t?"select":"deselect"),{item:e})},_selectionChange:function(){this._setSelectedItem(this._selection.get())},_observeItems:function(e){return(0,i.vz)(e).observeNodes((function(e){this._updateItems(),this._updateSelected(),this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})}))},_activateHandler:function(e){for(var t=e.target,n=this.items;t&&t!=this;){var r=n.indexOf(t);if(r>=0){var i=this._indexToValue(r);return void this._itemActivate(i,t)}t=t.parentNode}},_itemActivate:function(e,t){this.fire("iron-activate",{selected:e,item:t},{cancelable:!0}).defaultPrevented||this.select(e)}},f={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},observers:["_updateSelected(selectedValues.splices)"],select:function(e){this.multi?this._toggleSelected(e):this.selected=e},multiChanged:function(e){this._selection.multi=e,this._updateSelected()},get _shouldUpdateSelection(){return null!=this.selected||null!=this.selectedValues&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map((function(e){return this._indexToValue(this.indexOf(e))}),this).filter((function(e){return null!=e}),this)):d._updateAttrForSelected.apply(this)},_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},_selectMulti:function(e){e=e||[];var t=(this._valuesToItems(e)||[]).filter((function(e){return null!=e}));this._selection.clear(t);for(var n=0;n\n :host {\n display: block;\n padding: 8px 0;\n\n background: var(--paper-listbox-background-color, var(--primary-background-color));\n color: var(--paper-listbox-color, var(--primary-text-color));\n\n @apply --paper-listbox;\n }\n \n\n \n"],l||(l=c.slice(0)),s=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(l)}})))),is:"paper-listbox",behaviors:[h],hostAttributes:{role:"listbox"}})},55489:function(e,t,n){"use strict";n(67034);var r=n(8621),i=n(26110),o=n(18149),a=void 0,s={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},expandSizingTargetForScrollbars:{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 e=(0,o.vz)(this).parentNode;return e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e=e.host),e},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},get _isRTL(){return void 0===this._memoizedIsRTL&&(this._memoizedIsRTL="rtl"==window.getComputedStyle(this).direction),this._memoizedIsRTL},attached:function(){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 e=window.getComputedStyle(this),t=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"!==e.top?"top":"auto"!==e.bottom?"bottom":null,horizontally:"auto"!==e.left?"left":"auto"!==e.right?"right":null},sizedBy:{height:"none"!==t.maxHeight,width:"none"!==t.maxWidth,minWidth:parseInt(t.minWidth,10)||0,minHeight:parseInt(t.minHeight,10)||0},margin:{top:parseInt(e.marginTop,10)||0,right:parseInt(e.marginRight,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0}}}},resetFit:function(){var e=this._fitInfo||{};for(var t in e.sizerInlineStyle)this.sizingTarget.style[t]=e.sizerInlineStyle[t];for(var t in e.inlineStyle)this.style[t]=e.inlineStyle[t];this._fitInfo=null},refit:function(){var e=this.sizingTarget.scrollLeft,t=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),this.sizingTarget.scrollLeft=e,this.sizingTarget.scrollTop=t},position:function(){if(this.__shouldPosition){this._discoverInfo(),window.ShadyDOM&&window.ShadyDOM.flush(),this.style.position="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0px",this.style.top="0px";var e,t,n,r,i=this.getBoundingClientRect(),o=this.__getNormalizedRect(this.positionTarget),s=this.__getNormalizedRect(this.fitInto);this.expandSizingTargetForScrollbars&&(e=this.sizingTarget.offsetWidth,t=this.sizingTarget.offsetHeight,n=this.sizingTarget.clientWidth,r=this.sizingTarget.clientHeight);var c=this._fitInfo.margin,l={width:i.width+c.left+c.right,height:i.height+c.top+c.bottom},u=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,l,i,o,s),d=u.left+c.left,f=u.top+c.top,p=Math.min(s.right-c.right,d+i.width),h=Math.min(s.bottom-c.bottom,f+i.height);d=Math.max(s.left+c.left,Math.min(d,p-this._fitInfo.sizedBy.minWidth)),f=Math.max(s.top+c.top,Math.min(f,h-this._fitInfo.sizedBy.minHeight));var m=Math.max(p-d,this._fitInfo.sizedBy.minWidth),y=Math.max(h-f,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=m+"px",this.sizingTarget.style.maxHeight=y+"px";var v=d-i.left,b=f-i.top;if(this.style.left="".concat(v,"px"),this.style.top="".concat(b,"px"),this.expandSizingTargetForScrollbars){var g=this.sizingTarget.offsetHeight,_=g-this.sizingTarget.clientHeight-(t-r);if(_>0){var w=s.height-c.top-c.bottom,k=Math.min(w,y+_);this.sizingTarget.style.maxHeight="".concat(k,"px");var x,E=this.sizingTarget.offsetHeight,S=E-g;"top"===u.verticalAlign?x=b:"middle"===u.verticalAlign?x=b-S/2:"bottom"===u.verticalAlign&&(x=b-S),x=Math.max(s.top+c.top,Math.min(x,s.bottom-c.bottom-E)),this.style.top="".concat(x,"px")}var A=this.sizingTarget.offsetWidth,O=A-this.sizingTarget.clientWidth-(e-n);if(O>0){var C=function(){if(void 0!==a)return a;var e=document.createElement("div");Object.assign(e.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"});var t=document.createElement("div");return t.style.width="200px",t.style.height="200px",e.appendChild(t),document.body.appendChild(e),a=Math.abs(e.offsetWidth-100)>1?e.offsetWidth-e.clientWidth:0,document.body.removeChild(e),a}(),P=s.width-c.left-c.right,T=Math.min(P,m+O-C);this.sizingTarget.style.maxWidth="".concat(T,"px");var R,I=this.sizingTarget.offsetWidth+C,L=I-A;"left"===u.horizontalAlign?R=v:"center"===u.horizontalAlign?R=v-L/2:"right"===u.horizontalAlign&&(R=v-L),R=Math.max(s.left+c.left,Math.min(R,s.right-c.right-I)),this.style.left="".concat(R,"px")}}}},constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var e=this._fitInfo;e.positionedBy.vertically||(this.style.position="fixed",this.style.top="0px"),e.positionedBy.horizontally||(this.style.position="fixed",this.style.left="0px"),this.sizingTarget.style.boxSizing="border-box";var t=this.getBoundingClientRect();e.sizedBy.height||this.__sizeDimension(t,e.positionedBy.vertically,"top","bottom","Height"),e.sizedBy.width||this.__sizeDimension(t,e.positionedBy.horizontally,"left","right","Width")}},_sizeDimension:function(e,t,n,r,i){this.__sizeDimension(e,t,n,r,i)},__sizeDimension:function(e,t,n,r,i){var o=this._fitInfo,a=this.__getNormalizedRect(this.fitInto),s="Width"===i?a.width:a.height,c=t===r,l=c?s-e[r]:e[n],u=o.margin[c?n:r],d="offset"+i,f=this[d]-this.sizingTarget[d];this.sizingTarget.style["max"+i]=s-u-l-f+"px"},center:function(){if(!this.__shouldPosition){this._discoverInfo();var e=this._fitInfo.positionedBy;if(!e.vertically||!e.horizontally){this.style.position="fixed",e.vertically||(this.style.top="0px"),e.horizontally||(this.style.left="0px");var t=this.getBoundingClientRect(),n=this.__getNormalizedRect(this.fitInto);if(!e.vertically){var r=n.top-t.top+(n.height-t.height)/2;this.style.top=r+"px"}if(!e.horizontally){var i=n.left-t.left+(n.width-t.width)/2;this.style.left=i+"px"}}}},__getNormalizedRect:function(e){return e===document.documentElement||e===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect()},__getOffscreenArea:function(e,t,n){var r=Math.min(0,e.top)+Math.min(0,n.bottom-(e.top+t.height)),i=Math.min(0,e.left)+Math.min(0,n.right-(e.left+t.width));return Math.abs(r)*t.width+Math.abs(i)*t.height},__getPosition:function(e,t,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(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():c.my||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=(0,o.vz)(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function t(){document.removeEventListener("readystatechange",t),e()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(e){e!==this&&e._findParent()}),this):(l.forEach((function(e){e!==this&&e._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?l.delete(this):l.add(this)}};function d(e,t){for(var n=0;n0;i>=0&&t.push(n),r="content"===n.localName||"slot"===n.localName?(0,o.vz)(n).getDistributedNodes():(0,o.vz)(n.root||n).children;for(var s=0;s0&&t.length>0;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}},{key:"_hasLowerTabOrder",value:function(e,t){var n=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return 0===n||0===r?r>n:n>r}}])&&d(t.prototype,n),r&&d(t,r),e}()),b=n(67139),g=n(50856);(0,b.k)({_template:(0,g.d)(f||(p=["\n \n\n \n"],h||(h=p.slice(0)),f=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}})))),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(e){e&&e.target===this&&this.complete()},_openedChanged:function(e){if(e)this.prepare();else{var t=window.getComputedStyle(this);"0s"!==t.transitionDuration&&0!=t.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 _=n(81668);function w(e,t){for(var n=0;n=n)){var i=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._getZ(t)<=i&&this._applyOverlayZ(t,i);e=0)return this._bringOverlayAtIndexToFront(t),void this.trackBackdrop();var n=this._overlays.length,r=this._overlays[n-1],i=Math.max(this._getZ(r),this._minimumZ),o=this._getZ(e);if(r&&this._shouldBeBehindOverlay(e,r)){this._applyOverlayZ(r,i),n--;var a=this._overlays[n-1];i=Math.max(this._getZ(a),this._minimumZ)}o<=i&&this._applyOverlayZ(e,i),this._overlays.splice(n,0,e),this.trackBackdrop()}},{key:"removeOverlay",value:function(e){var t=this._overlays.indexOf(e);-1!==t&&(this._overlays.splice(t,1),this.trackBackdrop())}},{key:"currentOverlay",value:function(){var e=this._overlays.length-1;return this._overlays[e]}},{key:"currentOverlayZ",value:function(){return this._getZ(this.currentOverlay())}},{key:"ensureMinimumZ",value:function(e){this._minimumZ=Math.max(this._minimumZ,e)}},{key:"focusOverlay",value:function(){var e=this.currentOverlay();e&&e._applyFocus()}},{key:"trackBackdrop",value:function(){var e=this._overlayWithBackdrop();(e||this._backdropElement)&&(this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e,this.backdropElement.prepare())}},{key:"getBackdrops",value:function(){for(var e=[],t=0;t=0;e--)if(this._overlays[e].withBackdrop)return this._overlays[e]}},{key:"_getZ",value:function(e){var t=this._minimumZ;if(e){var n=Number(e.style.zIndex||window.getComputedStyle(e).zIndex);n==n&&(t=n)}return t}},{key:"_setZ",value:function(e,t){e.style.zIndex=t}},{key:"_applyOverlayZ",value:function(e,t){this._setZ(e,t+2)}},{key:"_overlayInPath",value:function(e){e=e||[];for(var t=0;t=0||(0===R.length&&function(){k=k||I.bind(void 0);for(var e=0,t=C.length;e=Math.abs(t),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(e)}},__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)}},D=function(e,t){for(var n=t;n;n=(r=n).assignedSlot||r.parentNode||r.host)if(n===e)return!0;var r;return!1},z=[s,u,j],M=[{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(e,t){for(var n in t)e[n]=t[n]},_cloneConfig:function(e){var t={isClone:!0};return this._copyProperties(t,e),t},_getAnimationConfigRecursive:function(e,t,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=e?this.animationConfig[e]: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||e,t,n);else if(i.id){var a=t[i.id];a?(a.isClone||(t[i.id]=this._cloneConfig(a),a=t[i.id]),this._copyProperties(a,i)):t[i.id]=i}else n.push(i)},getAnimationConfig:function(e){var t={},n=[];for(var r in this._getAnimationConfigRecursive(e,t,n),t)n.push(t[r]);return n}},{_configureAnimations:function(e){var t=[],n=[];if(e.length>0)for(var r,i=0;r=e[i];i++){var o=document.createElement(r.name);if(o.isNeonAnimation){var a;o.configure||(o.configure=function(e){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']))),is:"iron-dropdown",behaviors:[i.a,r.G,z,M],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 e=(0,o.vz)(this.$.content).getDistributedNodes(),t=0,n=e.length;t\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']))),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:B.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:B.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:B.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},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var e=(0,o.vz)(this.$.content).getDistributedNodes(),t=0,n=e.length;t-1&&e.preventDefault()}});Object.keys(B).forEach((function(e){Z[e]=B[e]}))},60748:function(e,t,n){"use strict";n(67034);var r,i=n(8621),o=n(67139),a=n(18149),s=n(50856);var c,l,u={distance:function(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function d(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function f(e){this.element=e,this.color=window.getComputedStyle(e).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,a.vz)(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}d.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var n=u.distance(e,t,0,0),r=u.distance(e,t,this.width,0),i=u.distance(e,t,0,this.height),o=u.distance(e,t,this.width,this.height);return Math.max(n,r,i,o)}},f.MAX_RADIUS=300,f.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=u.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?u.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 e=this.containerMetrics.width*this.containerMetrics.width,t=this.containerMetrics.height*this.containerMetrics.height,n=1.1*Math.min(Math.sqrt(e+t),f.MAX_RADIUS)+5,r=1.1-n/f.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 e=.3*this.mouseUpElapsedSeconds,t=this.opacity;return Math.max(0,Math.min(e,t))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,f.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,f.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 d(this.element)},draw:function(){var e,t,n;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,n=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+n+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+n+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var t=this.containerMetrics.width/2,n=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=u.now(),this.center?(this.xStart=t,this.yStart=n,this.slideDistance=u.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=t,this.yEnd=n,this.slideDistance=u.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(e){this.isMouseDown&&(this.mouseUpStart=u.now())},remove:function(){(0,a.vz)((0,a.vz)(this.waveContainer).parentNode).removeChild(this.waveContainer)}},(0,o.k)({_template:(0,s.d)(r||(c=['\n \n\n
    \n
    \n'],l||(l=c.slice(0)),r=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(l)}})))),is:"paper-ripple",behaviors:[i.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==(0,a.vz)(this).parentNode.nodeType?this.keyEventTarget=(0,a.vz)(this).getOwnerRoot().host:this.keyEventTarget=(0,a.vz)(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var e=0;e0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach((function(t){t.upAction(e)})),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor="",this.fire("transitionend")},addRipple:function(){var e=new f(this);return(0,a.vz)(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var t=this.ripples.indexOf(e);t<0||(this.ripples.splice(t,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var e,t;for(e=0;e\n \n'],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content)},70019:function(e,t,n){"use strict";var r;n(67034);var i,o,a=(0,n(50856).d)(r||(i=["\n \n"],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content)},5618:function(e,t,n){"use strict";var r=n(34816),i=n(10868),o=n(26539),a=new r.ZP;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(e,t,n){},prepareTemplateDom:function(e,t){},prepareTemplateStyles:function(e,t,n){},styleSubtree:function(e,t){a.processStyles(),(0,i.wW)(e,t)},styleElement:function(e){a.processStyles()},styleDocument:function(e){a.processStyles(),(0,i.wW)(document.body,e)},getComputedStyleValue:function(e,t){return(0,i.B7)(e,t)},flushCustomStyles:function(){},nativeCss:o.rd,nativeShadow:o.WA,cssBuild:o.Cp,disableRuntime:o.jF}),window.ShadyCSS.CustomStyleInterface=a;var s=n(15392);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 l(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",r="";if(e.cssText||e.rules){var i=e.rules;if(i&&!c(i))for(var o,a=0,u=i.length;a1&&void 0!==arguments[1]?arguments[1]:"",n=k(e);return this.transformRules(n,t),e.textContent=w(n),n}},{key:"transformCustomStyle",value:function(e){var t=this,n=k(e);return x(n,(function(e){":root"===e.selector&&(e.selector="html"),t.transformRule(e)})),e.textContent=w(n),n}},{key:"transformRules",value:function(e,t){var n=this;this._currentElement=t,x(e,(function(e){n.transformRule(e)})),this._currentElement=null}},{key:"transformRule",value:function(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}},{key:"transformCssText",value:function(e,t){var n=this;return e=e.replace(v.CN,(function(e,r,i,o){return n._produceCssProperties(e,r,i,o,t)})),this._consumeCssProperties(e,t)}},{key:"_getInitialValueForProperty",value:function(e){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(e)}},{key:"_fallbacksFromPreviousRules",value:function(e){for(var t=this,n=e;n.parent;)n=n.parent;var r={},i=!1;return x(n,(function(n){(i=i||n===e)||n.selector===e.selector&&Object.assign(r,t._cssTextToMap(n.parsedCssText))})),r}},{key:"_consumeCssProperties",value:function(e,t){for(var n=null;n=v.$T.exec(e);){var r=n[0],i=n[1],o=n.index,a=o+r.indexOf("@apply"),s=o+r.length,c=e.slice(0,a),l=e.slice(s),u=t?this._fallbacksFromPreviousRules(t):{};Object.assign(u,this._cssTextToMap(c));var d=this._atApplyToCssProperties(i,u);e="".concat(c).concat(d).concat(l),v.$T.lastIndex=o+d.length}return e}},{key:"_atApplyToCssProperties",value:function(e,t){e=e.replace(L,"");var n=[],r=this._map.get(e);if(r||(this._map.set(e,{}),r=this._map.get(e)),r){var i,o,a;this._currentElement&&(r.dependants[this._currentElement]=!0);var s=r.properties;for(i in s)a=t&&t[i],o=[i,": var(",e,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(e,t){var n=j.exec(t);return n&&(t=n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}},{key:"_cssTextToMap",value:function(e){for(var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.split(";"),s={},c=0;c1&&(t=i[0].trim(),n=i.slice(1).join(":"),o&&(n=this._replaceInitialOrInherit(t,n)),s[t]=n);return s}},{key:"_invalidateMixinEntry",value:function(e){if(N)for(var t in e.dependants)t!==this._currentElement&&N(t)}},{key:"_produceCssProperties",value:function(e,t,n,r,i){var o=this;if(n&&S(n,(function(e,t){t&&o._map.get(t)&&(r="@apply ".concat(t,";"))})),!r)return e;var a=this._consumeCssProperties(""+r,i),s=e.slice(0,e.indexOf("--")),c=this._cssTextToMap(a,!0),l=c,u=this._map.get(t),d=u&&u.properties;d?l=Object.assign(Object.create(d),c):this._map.set(t,l);var f,p,h=[],m=!1;for(f in l)void 0===(p=c[f])&&(p="initial"),d&&!(f in d)&&(m=!0),h.push("".concat(t).concat(z).concat(f,": ").concat(p));return m&&this._invalidateMixinEntry(u),u&&(u.properties=l),n&&(s="".concat(e,";").concat(s)),"".concat(s).concat(h.join("; "),";")}}]),e}();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(e){N=e}});var B=F,Z={},U="_applyShimCurrentVersion",H="_applyShimNextVersion",G="_applyShimValidatingVersion",V=Promise.resolve();function $(e){var t=Z[e];t&&function(e){e[U]=e[U]||0,e[G]=e[G]||0,e[H]=(e[H]||0)+1}(t)}function K(e){return e[U]===e[H]}function W(e){return!K(e)&&e[G]===e[H]}function q(e){e[G]=e[H],e._validating||(e._validating=!0,V.then((function(){e[U]=e[H],e._validating=!1})))}n(34816);function Y(e,t){for(var n=0;n-1?n=t:(r=t,n=e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}(e).is,n=Z[t];if((!n||!C(n))&&n&&!K(n)){W(n)||(this.prepareTemplate(n,t),q(n));var r=e.shadowRoot;if(r){var i=r.querySelector("style");i&&(i.__cssRules=n._styleAst,i.textContent=w(n._styleAst))}}}},{key:"styleDocument",value:function(e){this.ensure(),this.styleSubtree(document.body,e)}}])&&Y(t.prototype,n),r&&Y(t,r),e}();if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Q=new J,ee=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,t,n){Q.flushCustomStyles(),Q.prepareTemplate(e,t)},prepareTemplateStyles:function(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){},styleSubtree:function(e,t){Q.flushCustomStyles(),Q.styleSubtree(e,t)},styleElement:function(e){Q.flushCustomStyles(),Q.styleElement(e)},styleDocument:function(e){Q.flushCustomStyles(),Q.styleDocument(e)},getComputedStyleValue:function(e,t){return(0,P.B7)(e,t)},flushCustomStyles:function(){Q.flushCustomStyles()},nativeCss:r.rd,nativeShadow:r.WA,cssBuild:r.Cp,disableRuntime:r.jF},ee&&(window.ShadyCSS.CustomStyleInterface=ee)}window.ShadyCSS.ApplyShim=X;var te=n(36608),ne=n(60995),re=n(63933),ie=n(76389);function oe(e){return(oe="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 ae(e,t){for(var n=0;n-1&&ye.splice(e,1)}}}])&&ae(n.prototype,r),i&&ae(n,i),a}(t);return n.__activateDir=!1,n}));n(87529);function xe(){document.body.removeAttribute("unresolved")}"interactive"===document.readyState||"complete"===document.readyState?xe():window.addEventListener("DOMContentLoaded",xe);var Ee=n(18149),Se=n(81668),Ae=n(78956),Oe=n(21683),Ce=n(4059),Pe=n(62276),Te=(n(56646),window.ShadyDOM),Re=window.ShadyCSS;function Ie(e,t){return(0,Pe.r)(e).getRootNode()===t}function Le(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Te||!Re)return null;if(!Te.handlesDynamicScoping)return null;var n=Re.ScopingShim;if(!n)return null;var r=n.scopeForNode(e),i=(0,Pe.r)(e).getRootNode(),o=function(e){if(Ie(e,i)){var t=Array.from(Te.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(var o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return Le(e,t)}},{key:"getComputedStyleValue",value:function(e){return tt.getComputedStyleValue(this,e)}},{key:"debounce",value:function(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=Ae.dx.debounce(this._debouncers[e],n>0?Oe.Wc.after(n):Oe.YA,t.bind(this))}},{key:"isDebouncerActive",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];return!(!t||!t.isActive())}},{key:"flushDebouncer",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];t&&t.flush()}},{key:"cancelDebouncer",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];t&&t.cancel()}},{key:"async",value:function(e,t){return t>0?Oe.Wc.run(e.bind(this),t):~Oe.YA.run(e.bind(this))}},{key:"cancelAsync",value:function(e){e<0?Oe.YA.cancel(~e):Oe.Wc.cancel(e)}},{key:"create",value:function(e,t){var n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(var r in t)n[r]=t[r];return n}},{key:"elementMatches",value:function(e,t){return(0,Ee.Ku)(t||this,e)}},{key:"toggleAttribute",value:function(e,t){var n=this;return 3===arguments.length&&(n=arguments[2]),1==arguments.length&&(t=!n.hasAttribute(e)),t?((0,Pe.r)(n).setAttribute(e,""),!0):((0,Pe.r)(n).removeAttribute(e),!1)}},{key:"toggleClass",value:function(e,t,n){n=n||this,1==arguments.length&&(t=!n.classList.contains(e)),t?n.classList.add(e):n.classList.remove(e)}},{key:"transform",value:function(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}},{key:"translate3d",value:function(e,t,n,r){r=r||this,this.transform("translate3d("+e+","+t+","+n+")",r)}},{key:"arrayDelete",value:function(e,t){var n;if(Array.isArray(e)){if((n=e.indexOf(t))>=0)return e.splice(n,1)}else if((n=(0,Ce.U2)(this,e).indexOf(t))>=0)return this.splice(e,n,1);return null}},{key:"_logger",value:function(e,t){var n;switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":(n=console)[e].apply(n,$e(t))}}},{key:"_log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r=0;r--){var i=e[r];i?Array.isArray(i)?v(i,t):t.indexOf(i)<0&&(!n||n.indexOf(i)<0)&&t.unshift(i):console.warn("behavior is null, check for missing or 404 import")}return t}function b(e,t){for(var n in t){var r=e[n],i=t[n];e[n]=!("value"in i)&&r&&"value"in r?Object.assign({value:r.value},i):i}}var g=(0,r.x)(HTMLElement);function _(e,t,n){var r,o={},d=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(y,n);var d,p,h,m=u(y);function y(){return a(this,y),m.apply(this,arguments)}return d=y,h=[{key:"_finalizeClass",value:function(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(r)for(var n,i=0;i=0;t--){var n=e[t];for(var r in n)this._ensureAttribute(r,n[r])}c(f(y.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){c(f(y.prototype),"ready",this).call(this);var e=o.ready;if(e)for(var t=0;t>1,s=n.get(t[a].methodInfo)-n.get(e.methodInfo);if(s<0)r=a+1;else{if(!(s>0)){o=a;break}i=a-1}}o<0&&(o=i+1),t.splice(o,0,e)},q=function(e,t,n,r,i){var a=t[i?(0,o.Jz)(e):e];if(a)for(var s=0;su.source.length&&"property"==l.kind&&!l.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[l.target]){var d=n[t];t=(0,o.Iu)(u.source,l.target,t),c._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(c)}else{var f=i.evaluator._evaluateBinding(e,u,t,n,r,a);f!==j&&function(e,t,n,r,i){i=function(e,t,n,r){if(n.isCompound){var i=e.__dataCompoundStorage[n.target];i[r.compoundIndex]=t,t=i.join("")}"attribute"!==n.kind&&("textContent"!==n.target&&("value"!==n.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t));return t}(t,i,n,r),S.v1&&(i=(0,S.v1)(i,n.target,n.kind,t));if("attribute"==n.kind)e._valueToNodeAttribute(t,i,n.target);else{var o=n.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?t[D.READ_ONLY]&&t[D.READ_ONLY][o]||t._setPendingProperty(o,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,i)}}(e,c,l,u,f)}}function ee(e,t){if(t.isCompound){for(var n=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length),a=0;a="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=(0,o.Jz)(t),n.structured=(0,o.AZ)(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function le(e,t,n){var r=(0,o.U2)(e,n);return void 0===r&&(r=t[n]),r}function ue(e,t,n,r){var i={indexSplices:r};S.HY&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),S.HY&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function de(e,t,n,r,i,o){ue(e,t,n,[{index:r,addedCount:i,removed:o,object:t,type:"splice"}])}var fe=(0,i.o)((function(e){var t=E((0,s.Q)(e));return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(l,e);var n,i,s,c=P(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=c.call(this)).__isPropertyEffectsClient=!0,e.__dataClientsReady,e.__dataPendingClients,e.__dataToNotify,e.__dataLinkedPaths,e.__dataHasPaths,e.__dataCompoundStorage,e.__dataHost,e.__dataTemp,e.__dataClientsInitialized,e.__data,e.__dataPending,e.__dataOld,e.__computeEffects,e.__computeInfo,e.__reflectEffects,e.__notifyEffects,e.__propagateEffects,e.__observeEffects,e.__readOnly,e.__templateInfo,e._overrideLegacyUndefined,e}return n=l,s=[{key:"addPropertyEffect",value:function(e,t,n){this.prototype._addPropertyEffect(e,t,n)}},{key:"createPropertyObserver",value:function(e,t,n){this.prototype._createPropertyObserver(e,t,n)}},{key:"createMethodObserver",value:function(e,t){this.prototype._createMethodObserver(e,t)}},{key:"createNotifyingProperty",value:function(e){this.prototype._createNotifyingProperty(e)}},{key:"createReadOnlyProperty",value:function(e,t){this.prototype._createReadOnlyProperty(e,t)}},{key:"createReflectedProperty",value:function(e){this.prototype._createReflectedProperty(e)}},{key:"createComputedProperty",value:function(e,t,n){this.prototype._createComputedProperty(e,t,n)}},{key:"bindTemplate",value:function(e){return this.prototype._bindTemplate(e)}},{key:"_addTemplatePropertyEffect",value:function(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;var r=e.propertyEffects=e.propertyEffects||{};(r[t]=r[t]||[]).push(n)}},{key:"_parseTemplateNode",value:function(e,n,r){var i=t._parseTemplateNode.call(this,e,n,r);if(e.nodeType===Node.TEXT_NODE){var o=this._parseBindings(e.textContent,n);o&&(e.textContent=ae(o)||" ",X(this,n,r,"text","textContent",o),i=!0)}return i}},{key:"_parseTemplateNodeAttribute",value:function(e,n,r,i,o){var s=this._parseBindings(o,n);if(s){var c=i,l="property";M.test(i)?l="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),l="attribute");var u=ae(s);return u&&"attribute"==l&&("class"==i&&e.hasAttribute("class")&&(u+=" "+e.getAttribute(i)),e.setAttribute(i,u)),"attribute"==l&&"disable-upgrade$"==c&&e.setAttribute(i,""),"input"===e.localName&&"value"===c&&e.setAttribute(c,""),e.removeAttribute(c),"property"===l&&(i=(0,a.z)(i)),X(this,n,r,l,i,s,u),!0}return t._parseTemplateNodeAttribute.call(this,e,n,r,i,o)}},{key:"_parseTemplateNestedTemplate",value:function(e,n,r){var i=t._parseTemplateNestedTemplate.call(this,e,n,r),o=e.parentNode,a=r.templateInfo,s="dom-if"===o.localName,c="dom-repeat"===o.localName;S.gx&&(s||c)&&(o.removeChild(e),(r=r.parentInfo).templateInfo=a,r.noted=!0,i=!1);var l=a.hostProps;if(S.ew&&s)l&&(n.hostProps=Object.assign(n.hostProps||{},l),S.gx||(r.parentInfo.noted=!0));else for(var u in l)X(this,n,r,"property","_host_"+u,[{mode:"{",source:u,dependencies:[u],hostProp:!0}]);return i}},{key:"_parseBindings",value:function(e,t){for(var n,r=[],i=0;null!==(n=oe.exec(e));){n.index>i&&r.push({literal:e.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 d=se(s),f=[];if(d){for(var p=d.args,h=d.methodName,m=0;m=0&&r.splice(i,1)}},{key:"_hasPropertyEffect",value:function(e,t){var n=this[t];return Boolean(n&&n[e])}},{key:"_hasReadOnlyEffect",value:function(e){return this._hasPropertyEffect(e,D.READ_ONLY)}},{key:"_hasNotifyEffect",value:function(e){return this._hasPropertyEffect(e,D.NOTIFY)}},{key:"_hasReflectEffect",value:function(e){return this._hasPropertyEffect(e,D.REFLECT)}},{key:"_hasComputedEffect",value:function(e){return this._hasPropertyEffect(e,D.COMPUTE)}},{key:"_setPendingPropertyOrPath",value:function(e,t,n,r){if(r||(0,o.Jz)(Array.isArray(e)?e[0]:e)!==e){if(!r){var i=(0,o.U2)(this,e);if(!(e=(0,o.t8)(this,e,t))||!O(R(l.prototype),"_shouldPropertyChange",this).call(this,e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n))return function(e,t,n){var r,i=e.__dataLinkedPaths;if(i)for(var a in i){var s=i[a];(0,o.SG)(a,t)?(r=(0,o.Iu)(a,s,t),e._setPendingPropertyOrPath(r,n,!0,!0)):(0,o.SG)(s,t)&&(r=(0,o.Iu)(s,a,t),e._setPendingPropertyOrPath(r,n,!0,!0))}}(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}},{key:"_setUnmanagedPropertyToNode",value:function(e,t,n){n===e[t]&&"object"!=I(n)||("className"===t&&(e=(0,r.r)(e)),e[t]=n)}},{key:"_setPendingProperty",value:function(e,t,n){var r=this.__dataHasPaths&&(0,o.AZ)(e),i=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[D.NOTIFY]&&this[D.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!0)}},{key:"_setProperty",value:function(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}},{key:"_invalidateProperties",value:function(){this.__dataReady&&this._flushProperties()}},{key:"_enqueueClient",value:function(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}},{key:"_flushClients",value:function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}},{key:"__enableOrFlushClients",value:function(){var e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(var t=0;t1?i-1:0),s=1;s3?r-3:0),a=3;a1?r-1:0),a=1;a1)return j;i[a]=f}return i}},{key:"_bindTemplate",value:function(e,t){var n=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==n;if(!r)for(var i in n.propertyEffects)this._createPropertyAccessor(i);if(t)if((n=Object.create(n)).wasPreBound=r,this.__templateInfo){var o=e._parentTemplateInfo||this.__templateInfo,a=o.lastChild;n.parent=o,o.lastChild=n,n.previousSibling=a,a?a.nextSibling=n:o.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}},{key:"_stampTemplate",value:function(e,t){t=t||this._bindTemplate(e,!0),pe.push(this);var n=O(R(l.prototype),"_stampTemplate",this).call(this,e,t);if(pe.pop(),t.nodeList=n.nodeList,!t.wasPreBound)for(var r=t.childNodes=[],i=n.firstChild;i;i=i.nextSibling)r.push(i);return n.templateInfo=t,function(e,t){var n=t.nodeList,r=t.nodeInfoList;if(r.length)for(var i=0;i0||n>0;)if(0!=t)if(0!=n){var o=e[t-1][n-1],a=e[t-1][n],s=e[t][n-1],c=void 0;(c=a=0){if(!o[t])throw new Error("invalid async handle: "+e);o[t]=null}}}},56646:function(){"use strict";window.JSCompiler_renameProperty=function(e,t){return e}},67130:function(e,t,n){"use strict";n.d(t,{z:function(){return a},n:function(){return s}});n(56646);var r={},i=/-[a-z]/g,o=/([A-Z])/g;function a(e){return r[e]||(r[e]=e.indexOf("-")<0?e:e.replace(i,(function(e){return e[1].toUpperCase()})))}function s(e){return r[e]||(r[e]=e.replace(o,"-$1").toLowerCase())}},78956:function(e,t,n){"use strict";n.d(t,{dx:function(){return i},Ex:function(){return a},Jk:function(){return s}});n(56646),n(76389),n(21683);function r(e,t){for(var n=0;n-1}var m=!1;function y(e){if(!h(e)&&"touchend"!==e)return s&&m&&o.f6?{passive:!0}:void 0}!function(){try{var e=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}}();var v=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),b=[],g={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},_={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function w(e){var t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];var n=e.getRootNode();if(e.id)for(var r=n.querySelectorAll("label[for = ".concat(e.id,"]")),i=0;i-1;if(i[o]===S.mouse.target)return}if(r)return;e.preventDefault(),e.stopPropagation()}};function x(e){for(var t,n=v?["click"]:d,r=0;r0?t[0]:e.target}function I(e){var t,n=e.type,r=e.currentTarget[c];if(r){var i=r[n];if(i){if(!e[l]&&(e[l]={},"touch"===n.slice(0,5))){var o=(e=e).changedTouches[0];if("touchstart"===n&&1===e.touches.length&&(S.touch.id=o.identifier),S.touch.id!==o.identifier)return;s||"touchstart"!==n&&"touchmove"!==n||function(e){var t=e.changedTouches[0],n=e.type;if("touchstart"===n)S.touch.x=t.clientX,S.touch.y=t.clientY,S.touch.scrollDecided=!1;else if("touchmove"===n){if(S.touch.scrollDecided)return;S.touch.scrollDecided=!0;var r=function(e){for(var t,n="auto",r=C(e),i=0;io:"pan-y"===r&&(i=o>a)),i?e.preventDefault():N("track")}}(e)}if(!(t=e[l]).skip){for(var a,d=0;d-1&&a.reset&&a.reset();for(var f,p=0;p=5||i>=5}function Z(e,t,n){if(t){var r,i=e.moves[e.moves.length-2],o=e.moves[e.moves.length-1],a=o.x-e.x,s=o.y-e.y,c=0;i&&(r=o.x-i.x,c=o.y-i.y),M(t,"track",{state:e.state,x:n.clientX,y:n.clientY,dx:a,dy:s,ddx:r,ddy:c,sourceEvent:n,hover:function(){return function(e,t){for(var n=document.elementFromPoint(e,t),r=n;r&&r.shadowRoot&&!window.ShadyDOM&&r!==(r=r.shadowRoot.elementFromPoint(e,t));)r&&(n=r);return n}(n.clientX,n.clientY)}})}}function U(e,t,n){var r=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),o=R(n||t);!o||_[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=25&&i<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;var t=R(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;var n=t.getBoundingClientRect(),r=e.pageX,i=e.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}return!1}(t))&&(e.prevent||M(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n}))}D({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){O(this.info)},mousedown:function(e){if(E(e)){var t=R(e),n=this;A(this.info,(function(e){E(e)||(F("up",t,e),O(n.info))}),(function(e){E(e)&&F("up",t,e),O(n.info)})),F("down",t,e)}},touchstart:function(e){F("down",R(e),e.changedTouches[0],e)},touchend:function(e){F("up",R(e),e.changedTouches[0],e)}}),D({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(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},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,O(this.info)},mousedown:function(e){if(E(e)){var t=R(e),n=this,r=function(e){var r=e.clientX,i=e.clientY;B(n.info,r,i)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&N("tap"),n.info.addMove({x:r,y:i}),E(e)||(n.info.state="end",O(n.info)),t&&Z(n.info,t,e),n.info.started=!0)};A(this.info,r,(function(e){n.info.started&&r(e),O(n.info)})),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){var t=R(e),n=e.changedTouches[0],r=n.clientX,i=n.clientY;B(this.info,r,i)&&("start"===this.info.state&&N("tap"),this.info.addMove({x:r,y:i}),Z(this.info,t,n),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=R(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),Z(this.info,t,n))}}),D({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(e){E(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){E(e)&&U(this.info,e)},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend:function(e){U(this.info,e.changedTouches[0],e)}});var H=R},50856:function(e,t,n){"use strict";n.d(t,{d:function(){return s}});n(56646);function r(e,t){for(var n=0;n1?n-1:0),i=1;i=0}function i(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function o(e,t){return 0===e.indexOf(t+".")}function a(e,t){return 0===t.indexOf(e+".")}function s(e,t,n){return t+n.slice(e.length)}function c(e,t){return e===t||o(e,t)||a(e,t)}function l(e){if(Array.isArray(e)){for(var t=[],n=0;n1){for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n can only be templatized once");e.__templatizeOwner=t;var r=(t?t.constructor:D)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=N(e,r,n),r.templatizeInstanceClass=i);var o=M(e);F(e,r,n,o);var a=function(e){x(n,e);var t=S(n);function n(){return P(this,n),t.apply(this,arguments)}return n}(i);return a.prototype._methodHost=o,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=r.hostProps,a=a}function H(e,t){for(var n;t;)if(n=t.__dataHost?t:t.__templatizeInstance){if(n.__dataHost==e)return n;t=n.__dataHost}else t=(0,g.r)(t).parentNode;return null}var G=n(60995),V=!1;function $(){if(b.nL&&!b.my){if(!V){V=!0;var e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}function K(e){return(K="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 W(e,t){for(var n=0;n child");n.disconnect(),t.render()}));return void n.observe(this,{childList:!0})}this.root=this._stampTemplate(e),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}))}}])&&W(t.prototype,n),r&&W(t,r),o}((0,G._)(v((0,i.q)(HTMLElement))));customElements.define("dom-bind",Q);var ee=n(28426),te=n(78956),ne=n(93252),re=n(4059),ie=n(21683);function oe(e){return(oe="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 ae(e,t){for(var n=0;n child");n.disconnect(),e.__render()}));return n.observe(this,{childList:!0}),!1}var r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=U(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(e,t){for(var n,r=this.__instances,i=0;i1&&void 0!==arguments[1]?arguments[1]:0;this.__renderDebouncer=te.dx.debounce(this.__renderDebouncer,t>0?ie.Wc.after(t):ie.YA,e.bind(this)),(0,ne.E)(this.__renderDebouncer)}},{key:"render",value:function(){this.__debounceRender(this.__render),(0,ne.y)()}},{key:"__render",value:function(){var e=this;if(this.__ensureTemplatized()){var t=this.items||[],n=this.__sortAndFilterItems(t),r=this.__calculateLimit(n.length);this.__updateInstances(t,r,n),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((function(){return e.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),b.dJ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}},{key:"__sortAndFilterItems",value:function(e){for(var t=this,n=new Array(e.length),r=0;r=r;c--)this.__detachAndRemoveInstance(c)}},{key:"__detachInstance",value:function(e){for(var t=this.__instances[e],n=(0,g.r)(t.root),r=0;r child");r.disconnect(),e.__render()}));return r.observe(this,{childList:!0}),!1}this.__template=n}return!0}},{key:"__ensureInstance",value:function(){var e=(0,g.r)(this).parentNode;if(this.__hasInstance()){var t=this.__getInstanceNodes();if(t&&t.length)if((0,g.r)(this).previousSibling!==t[t.length-1])for(var n,r=0;r=i.index+i.removed.length?n.set(t,e+i.addedCount-i.removed.length):n.set(t,-1))}));for(var o=0;o=0&&e.linkPaths("".concat(JSCompiler_renameProperty("items",e),".").concat(n),"".concat(JSCompiler_renameProperty("selected",e),".").concat(t++))}))}else this.__selectedMap.forEach((function(t){e.linkPaths(JSCompiler_renameProperty("selected",e),"".concat(JSCompiler_renameProperty("items",e),".").concat(t)),e.linkPaths(JSCompiler_renameProperty("selectedItem",e),"".concat(JSCompiler_renameProperty("items",e),".").concat(t))}))}},{key:"clearSelection",value:function(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}},{key:"isSelected",value:function(e){return this.__selectedMap.has(e)}},{key:"isIndexSelected",value:function(e){return this.isSelected(this.items[e])}},{key:"__deselectChangedIdx",value:function(e){var t=this,n=this.__selectedIndexForItemIndex(e);if(n>=0){var r=0;this.__selectedMap.forEach((function(e,i){n==r++&&t.deselect(i)}))}}},{key:"__selectedIndexForItemIndex",value:function(e){var t=this.__dataLinkedPaths["".concat(JSCompiler_renameProperty("items",this),".").concat(e)];if(t)return parseInt(t.slice("".concat(JSCompiler_renameProperty("selected",this),".").length),10)}},{key:"deselect",value:function(e){var t,n=this.__selectedMap.get(e);n>=0&&(this.__selectedMap.delete(e),this.multi&&(t=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),t,1):this.selected=this.selectedItem=null)}},{key:"deselectIndex",value:function(e){this.deselect(this.items[e])}},{key:"select",value:function(e){this.selectIndex(this.items.indexOf(e))}},{key:"selectIndex",value:function(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}],[{key:"properties",get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},{key:"observers",get:function(){return["__updateSelection(multi, items.*)"]}}]),n}((0,Ce.SH)(e))}))(ee.H3));customElements.define(Ne.is,Ne);n(5618);y._mutablePropertyChange;Boolean;var Fe=n(50856),Be=(0,r.x)(HTMLElement).prototype},60309:function(e,t,n){"use strict";n.d(t,{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(e,t,n){"use strict";n.d(t,{wW:function(){return i},B7:function(){return o},OH:function(){return a}});var r=n(60309);function i(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function o(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return n?n.trim():""}function a(e){var t=r.$T.test(e)||r.CN.test(e);return r.$T.lastIndex=0,r.CN.lastIndex=0,t}},34816:function(e,t,n){"use strict";n.d(t,{ZP:function(){return f}});var r,i=null,o=window.HTMLImports&&window.HTMLImports.whenReady||null;function a(e){requestAnimationFrame((function(){o?o(e):(i||(i=new Promise((function(e){r=e})),"complete"===document.readyState?r():document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&r()}))),i.then((function(){e&&e()})))}))}function s(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[i++]}},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=r.call(e)},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}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&a>0&&n[o]===r[a];)o--,a--;n[o]!==r[a]&&this[f](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,t)}},{key:f,value:function(e,t){var n=e[l];this[v](e)&&!e.inert&&(e.inert=!0,n.add(e)),n.has(t)&&(t.inert=!1,n.delete(t)),t[u]=e[u],t[l]=n,e[u]=void 0,e[l]=void 0}},{key:h,value:function(t){var n,r=e(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i[u].disconnect(),i[u]=void 0;var o,a=e(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(t,n,r){var i,o=e(t);try{for(o.s();!(i=o.n()).done;){for(var a=i.value,s=a.parentNode,c=s.children,d=new Set,f=0;fe.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(a){if(a&&a.data){var s,l=Object.assign({path:[]},a.data),u=l.id,d=l.type,f=l.path,p=(a.data.argumentList||[]).map(C);try{var h=f.slice(0,-1).reduce((function(e,t){return e[t]}),e),y=f.reduce((function(e,t){return e[t]}),e);switch(d){case"GET":s=y;break;case"SET":h[f.slice(-1)[0]]=C(a.data.value),s=!0;break;case"APPLY":s=y.apply(h,p);break;case"CONSTRUCT":var v;s=A(o(y,c(p)));break;case"ENDPOINT":var _=new MessageChannel,w=_.port1,k=_.port2;b(e,k),s=S(w,[w]);break;case"RELEASE":s=void 0;break;default:return}}catch(v){s=i({value:v},m,0)}Promise.resolve(s).catch((function(e){return i({value:e},m,0)})).then((function(e){var i=r(O(e),2),o=i[0],a=i[1];t.postMessage(Object.assign(Object.assign({},o),{id:u}),a),"RELEASE"===d&&(t.removeEventListener("message",n),g(t))}))}})),t.start&&t.start()}function g(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function _(e,t){return k(e,[],t)}function w(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(){},i=!1,o=new Proxy(n,{get:function(n,r){if(w(i),r===h)return function(){return P(e,{type:"RELEASE",path:t.map((function(e){return e.toString()}))}).then((function(){g(e),i=!0}))};if("then"===r){if(0===t.length)return{then:function(){return o}};var a=P(e,{type:"GET",path:t.map((function(e){return e.toString()}))}).then(C);return a.then.bind(a)}return k(e,[].concat(c(t),[r]))},set:function(n,o,a){w(i);var s=r(O(a),2),l=s[0],u=s[1];return P(e,{type:"SET",path:[].concat(c(t),[o]).map((function(e){return e.toString()})),value:l},u).then(C)},apply:function(n,o,a){w(i);var s=t[t.length-1];if(s===p)return P(e,{type:"ENDPOINT"}).then(C);if("bind"===s)return k(e,t.slice(0,-1));var c=r(x(a),2),l=c[0],u=c[1];return P(e,{type:"APPLY",path:t.map((function(e){return e.toString()})),argumentList:l},u).then(C)},construct:function(n,o){w(i);var a=r(x(o),2),s=a[0],c=a[1];return P(e,{type:"CONSTRUCT",path:t.map((function(e){return e.toString()})),argumentList:s},c).then(C)}});return o}function x(e){var t,n=e.map(O);return[n.map((function(e){return e[0]})),(t=n.map((function(e){return e[1]})),Array.prototype.concat.apply([],t))]}var E=new WeakMap;function S(e,t){return E.set(e,t),e}function A(e){return Object.assign(e,i({},f,!0))}function O(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(v);try{for(n.s();!(t=n.n()).done;){var i=r(t.value,2),o=i[0],a=i[1];if(a.canHandle(e)){var s=r(a.serialize(e),2);return[{type:"HANDLER",name:o,value:s[0]},s[1]]}}}catch(c){n.e(c)}finally{n.f()}return[{type:"RAW",value:e},E.get(e)||[]]}function C(e){switch(e.type){case"HANDLER":return v.get(e.name).deserialize(e.value);case"RAW":return e.value}}function P(e,t,n){return new Promise((function(r){var i=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===i&&(e.removeEventListener("message",t),r(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:i},t),n)}))}},80118:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},42193:function(e,t,n){var r=n(42521);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},29690:function(e,t,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)}),e.exports=function(e){s[a][e]=!0}},67675:function(e,t,n){"use strict";var r=n(73832).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},30680:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},86956:function(e,t,n){var r=n(42521);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},90251:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},44162:function(e,t,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),d=n(62327),f=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,_=g&&g.prototype,w=v&&p(v),k=b&&p(b),x=Object.prototype,E=x.isPrototypeOf,S=m("toStringTag"),A=y("TYPED_ARRAY_TAG"),O=i&&!!h&&"Opera"!==l(a.opera),C=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T={BigInt64Array:8,BigUint64Array:8},R=function(e){if(!s(e))return!1;var t=l(e);return c(P,t)||c(T,t)};for(r in P)a[r]||(O=!1);if((!O||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},O))for(r in P)a[r]&&h(a[r],w);if((!O||!k||k===x)&&(k=w.prototype,O))for(r in P)a[r]&&h(a[r].prototype,k);if(O&&p(_)!==k&&h(_,k),o&&!c(k,S))for(r in C=!0,f(k,S,{get:function(){return s(this)?this[A]:void 0}}),P)a[r]&&u(a[r],A,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:C&&A,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(E.call(w,e))return e}else for(var t in P)if(c(P,r)){var n=a[t];if(n&&(e===n||E.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(o){if(n)for(var r in P){var i=a[r];if(i&&c(i.prototype,e))try{delete i.prototype[e]}catch(s){}}k[e]&&!n||d(k,e,n?t:O&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(o){if(h){if(n)for(r in P)if((i=a[r])&&c(i,e))try{delete i[e]}catch(s){}if(w[e]&&!n)return;try{return d(w,e,n?t:O&&w[e]||t)}catch(s){}}for(r in P)!(i=a[r])||i[e]&&!n||d(i,e,t)}},isView:function(e){if(!s(e))return!1;var t=l(e);return"DataView"===t||c(P,t)||c(T,t)},isTypedArray:R,TypedArray:w,TypedArrayPrototype:k}},75117:function(e,t,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),d=n(48331),f=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),_=n(2995),w=_.get,k=_.set,x="ArrayBuffer",E="DataView",S="Wrong index",A=r.ArrayBuffer,O=A,C=r.DataView,P=C&&C.prototype,T=Object.prototype,R=r.RangeError,I=p.pack,L=p.unpack,j=function(e){return[255&e]},D=function(e){return[255&e,e>>8&255]},z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},M=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},N=function(e){return I(e,23,4)},F=function(e){return I(e,52,8)},B=function(e,t){v(e.prototype,t,{get:function(){return w(this)[t]}})},Z=function(e,t,n,r){var i=f(n),o=w(e);if(i+t>o.byteLength)throw R(S);var a=w(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},U=function(e,t,n,r,i,o){var a=f(n),s=w(e);if(a+t>s.byteLength)throw R(S);for(var c=w(s.buffer).bytes,l=a+s.byteOffset,u=r(+i),d=0;d$;)(H=V[$++])in O||a(O,H,A[H]);G.constructor=O}m&&h(P)!==T&&m(P,T);var K=new C(new O(2)),W=P.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||s(P,{setInt8:function(e,t){W.call(this,e,t<<24>>24)},setUint8:function(e,t){W.call(this,e,t<<24>>24)}},{unsafe:!0})}else O=function(e){l(this,O,x);var t=f(e);k(this,{bytes:b.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},C=function(e,t,n){l(this,C,E),l(e,O,E);var r=w(e).byteLength,o=u(t);if(o<0||o>r)throw R("Wrong offset");if(o+(n=void 0===n?r-o:d(n))>r)throw R("Wrong length");k(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},i&&(B(O,"byteLength"),B(C,"buffer"),B(C,"byteLength"),B(C,"byteOffset")),s(C.prototype,{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return M(Z(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return M(Z(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return L(Z(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return L(Z(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){U(this,1,e,j,t)},setUint8:function(e,t){U(this,1,e,j,t)},setInt16:function(e,t){U(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){U(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){U(this,4,e,z,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){U(this,4,e,z,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){U(this,4,e,N,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){U(this,8,e,F,t,arguments.length>2?arguments[2]:void 0)}});g(O,x),g(C,E),e.exports={ArrayBuffer:O,DataView:C}},24579:function(e,t,n){"use strict";var r=n(84766),i=n(11588),o=n(48331),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),c=i(e,s),l=i(t,s),u=arguments.length>2?arguments[2]:void 0,d=a((void 0===u?s:i(u,s))-l,s-c),f=1;for(l0;)l in n?n[c]=n[l]:delete n[c],c+=f,l+=f;return n}},6922:function(e,t,n){"use strict";var r=n(84766),i=n(11588),o=n(48331);e.exports=function(e){for(var t=r(this),n=o(t.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;)t[s++]=e;return t}},20702:function(e,t,n){"use strict";var r=n(25097).forEach,i=n(49719)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},54513:function(e,t,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);e.exports=function(e){var t,n,u,d,f,p,h=i(e),m="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,b=void 0!==v,g=l(h),_=0;if(b&&(v=r(v,y>2?arguments[2]:void 0,2)),null==g||m==Array&&a(g))for(n=new m(t=s(h.length));t>_;_++)p=b?v(h[_],_):h[_],c(n,_,p);else for(f=(d=g.call(h)).next,n=new m;!(u=f.call(d)).done;_++)p=b?o(d,v,[u.value,_],!0):u.value,c(n,_,p);return n.length=_,n}},59729:function(e,t,n){var r=n(19969),i=n(48331),o=n(11588),a=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},51486:function(e,t,n){var r=n(43322),i=n(23169),o=n(84766),a=n(48331),s=function(e){var t=6==e;return function(n,s,c){for(var l,u=o(n),d=i(u),f=r(s,c,3),p=a(d.length);p-- >0;)if(f(l=d[p],p,u))switch(e){case 5:return l;case 6:return p}return t?-1:void 0}};e.exports={findLast:s(5),findLastIndex:s(6)}},25097:function(e,t,n){var r=n(43322),i=n(23169),o=n(84766),a=n(48331),s=n(48347),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,f=7==e,p=5==e||d;return function(h,m,y,v){for(var b,g,_=o(h),w=i(_),k=r(m,y,3),x=a(w.length),E=0,S=v||s,A=t?S(h,x):n||f?S(h,0):void 0;x>E;E++)if((p||E in w)&&(g=k(b=w[E],E,_),e))if(t)A[E]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return E;case 2:c.call(A,b)}else switch(e){case 4:return!1;case 7:c.call(A,b)}return d?-1:l||u?u:A}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)}},8139:function(e,t,n){"use strict";var r=n(19969),i=n(25623),o=n(48331),a=n(49719),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),d=l||!u;e.exports=d?function(e){if(l)return c.apply(this,arguments)||0;var t=r(this),n=o(t.length),a=n-1;for(arguments.length>1&&(a=s(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},1566:function(e,t,n){var r=n(72763),i=n(1386),o=n(56962),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},49719:function(e,t,n){"use strict";var r=n(72763);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},59856:function(e,t,n){var r=n(80118),i=n(84766),o=n(23169),a=n(48331),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=o(l),d=a(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}},33407:function(e){var t=Math.floor,n=function(e,o){var a=e.length,s=t(a/2);return a<8?r(e,o):i(n(e.slice(0,s),o),n(e.slice(s),o),o)},r=function(e,t){for(var n,r,i=e.length,o=1;o0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},i=function(e,t,n){for(var r=e.length,i=t.length,o=0,a=0,s=[];o1?arguments[1]:void 0;return r(this),(t=void 0!==l)&&r(l),null==e?new this:(n=[],t?(a=0,s=i(l,c>2?arguments[2]:void 0,2),o(e,(function(e){n.push(s(e,a++))}))):o(e,n.push,{that:n}),new this(n))}},11171:function(e){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},95365:function(e,t,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),d=n(37703),f=n(9154).fastKey,p=n(2995),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){s(e,u,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&c(r,e[l],{that:e,AS_ENTRIES:n})})),p=m(t),y=function(e,t,n){var r,i,o=p(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=p(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=v(t,e);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),d?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);l(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},59285:function(e,t,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),d=n(2995),f=d.set,p=d.getterFor,h=l.find,m=l.findIndex,y=0,v=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},g=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,r){s(e,d,t),f(e,{type:t,id:y++,frozen:void 0}),null!=r&&c(r,e[l],{that:e,AS_ENTRIES:n})})),h=p(t),m=function(e,t,n){var r=h(e),a=i(o(t),!0);return!0===a?v(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{delete:function(e){var t=h(this);if(!a(e))return!1;var n=i(e);return!0===n?v(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=i(e);return!0===n?v(t).has(e):n&&u(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=i(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),d}}},35246:function(e,t,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),d=n(72763),f=n(4684),p=n(54849),h=n(31985);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),v=m?"set":"add",b=i[e],g=b&&b.prototype,_=b,w={},k=function(e){var t=g[e];a(g,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof b||!(y||g.forEach&&!d((function(){(new b).entries().next()})))))_=n.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(o(e,!0)){var x=new _,E=x[v](y?{}:-0,1)!=x,S=d((function(){x.has(1)})),A=f((function(e){new b(e)})),O=!y&&d((function(){for(var e=new b,t=5;t--;)e[v](t,t);return!e.has(-0)}));A||((_=t((function(t,n){l(t,_,e);var r=h(new b,t,_);return null!=n&&c(n,r[v],{that:r,AS_ENTRIES:m}),r}))).prototype=g,g.constructor=_),(S||O)&&(k("delete"),k("has"),m&&k("get")),(O||E)&&k(v),y&&g.clear&&delete g.clear}return w[e]=_,r({global:!0,forced:_!=b},w),p(_,e),y||n.setStrong(_,e,m),_}},49098:function(e,t,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(e,t){return this[e]||(this[e]=t())},s.prototype.next=function(e,t,n){var o=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new i):this.primitives||(this.primitives=new r),a=o.get(t);return a||o.set(t,a=new s),a};var c=new s;e.exports=function(){var e,t,n=c,r=arguments.length;for(e=0;e"+a+""}},34427:function(e,t,n){"use strict";var r=n(94109).IteratorPrototype,i=n(63571),o=n(5938),a=n(54849),s=n(23403),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,l,!1,!0),s[l]=c,e}},91471:function(e,t,n){var r=n(37703),i=n(67455),o=n(5938);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},5938:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},32385:function(e,t,n){"use strict";var r=n(40687),i=n(67455),o=n(5938);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},59671:function(e,t,n){"use strict";var r=n(72763),i=n(25427).start,o=Math.abs,a=Date.prototype,s=a.getTime,c=a.toISOString;e.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 e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+i(o(t),r?6:4,0)+"-"+i(e.getUTCMonth()+1,2,0)+"-"+i(e.getUTCDate(),2,0)+"T"+i(e.getUTCHours(),2,0)+":"+i(e.getUTCMinutes(),2,0)+":"+i(e.getUTCSeconds(),2,0)+"."+i(n,3,0)+"Z"}:c},83976:function(e,t,n){"use strict";var r=n(86956),i=n(40687);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!==e)}},94247:function(e,t,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),d=n(8451),f=n(23403),p=n(94109),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=u("iterator"),v="keys",b="values",g="entries",_=function(){return this};e.exports=function(e,t,n,u,p,w,k){i(n,t,u);var x,E,S,A=function(e){if(e===p&&R)return R;if(!m&&e in P)return P[e];switch(e){case v:case b:case g:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",C=!1,P=e.prototype,T=P[y]||P["@@iterator"]||p&&P[p],R=!m&&T||A(p),I="Array"==t&&P.entries||T;if(I&&(x=o(I.call(new e)),h!==Object.prototype&&x.next&&(d||o(x)===h||(a?a(x,h):"function"!=typeof x[y]&&c(x,y,_)),s(x,O,!0,!0),d&&(f[O]=_))),p==b&&T&&T.name!==b&&(C=!0,R=function(){return T.call(this)}),d&&!k||P[y]===R||c(P,y,R),f[t]=R,p)if(E={values:A(b),keys:w?R:A(v),entries:A(g)},k)for(S in E)(m||C||!(S in P))&&l(P,S,E[S]);else r({target:t,proto:!0,forced:m||C},E);return E}},56316:function(e,t,n){var r=n(1035),i=n(52766),o=n(89103),a=n(67455).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},37703:function(e,t,n){var r=n(72763);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6004:function(e,t,n){var r=n(76121),i=n(42521),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},83729:function(e){e.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}},45249:function(e,t,n){var r=n(58635).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},67729:function(e){e.exports="object"==typeof window},32049:function(e,t,n){var r=n(58635);e.exports=/MSIE|Trident/.test(r)},60987:function(e,t,n){var r=n(58635);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},1441:function(e,t,n){var r=n(42849),i=n(76121);e.exports="process"==r(i.process)},53538:function(e,t,n){var r=n(58635);e.exports=/web0s(?!.*chrome)/i.test(r)},58635:function(e,t,n){var r=n(77642);e.exports=r("navigator","userAgent")||""},56962:function(e,t,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]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},58998:function(e,t,n){var r=n(58635).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},64731:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7309:function(e,t,n){var r=n(76121),i=n(38769).f,o=n(91471),a=n(62327),s=n(6565),c=n(94488),l=n(20676);e.exports=function(e,t){var n,u,d,f,p,h=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(p=i(n,u))&&p.value:n[u],!l(m?u:h+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},72763:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},1325:function(e,t,n){"use strict";n(48775);var r=n(62327),i=n(73546),o=n(72763),a=n(1386),s=n(91471),c=a("species"),l=RegExp.prototype;e.exports=function(e,t,n,u){var d=a(e),f=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=f&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!f||!p||n){var h=/./[d],m=t(d,""[e],(function(e,t,n,r,o){var a=t.exec;return a===i||a===l.exec?f&&!o?{done:!0,value:h.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,m[0]),r(l,d,m[1])}u&&s(l[d],"sham",!0)}},25538:function(e,t,n){"use strict";var r=n(43964),i=n(48331),o=n(43322),a=function(e,t,n,s,c,l,u,d){for(var f,p=c,h=0,m=!!u&&o(u,d,3);h0&&r(f))p=a(e,t,f,i(f.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=f}p++}h++}return p};e.exports=a},91104:function(e,t,n){var r=n(72763);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},43322:function(e,t,n){var r=n(80118);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},48659:function(e,t,n){"use strict";var r=n(80118),i=n(42521),o=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,c,l,u){var d=n+e.length,f=c.length,p=s;return void 0!==l&&(l=r(l),p=a),o.call(u,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=l[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var u=i(s/10);return 0===u?r:u<=f?void 0===c[u-1]?o.charAt(1):c[u-1]+o.charAt(1):r}a=c[s-1]}return void 0===a?"":a}))}},76121:function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},52766:function(e,t,n){var r=n(84766),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},32048:function(e){e.exports={}},94113:function(e,t,n){var r=n(76121);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},24174:function(e,t,n){var r=n(77642);e.exports=r("document","documentElement")},27226:function(e,t,n){var r=n(37703),i=n(72763),o=n(6004);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},6601:function(e){var t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,o=Math.LN2;e.exports={pack:function(e,a,s){var c,l,u,d=new Array(s),f=8*s-a-1,p=(1<>1,m=23===a?n(2,-24)-n(2,-77):0,y=e<0||0===e&&1/e<0?1:0,v=0;for((e=t(e))!=e||e===1/0?(l=e!=e?1:0,c=p):(c=r(i(e)/o),e*(u=n(2,-c))<1&&(c--,u*=2),(e+=c+h>=1?m/u:m*n(2,1-h))*u>=2&&(c++,u/=2),c+h>=p?(l=0,c=p):c+h>=1?(l=(e*u-1)*n(2,a),c+=h):(l=e*n(2,h-1)*n(2,a),c=0));a>=8;d[v++]=255&l,l/=256,a-=8);for(c=c<0;d[v++]=255&c,c/=256,f-=8);return d[--v]|=128*y,d},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,a=(1<>1,c=o-7,l=i-1,u=e[l--],d=127&u;for(u>>=7;c>0;d=256*d+e[l],l--,c-=8);for(r=d&(1<<-c)-1,d>>=-c,c+=t;c>0;r=256*r+e[l],l--,c-=8);if(0===d)d=1-s;else{if(d===a)return r?NaN:u?-1/0:1/0;r+=n(2,t),d-=s}return(u?-1:1)*r*n(2,d-t)}}},23169:function(e,t,n){var r=n(72763),i=n(42849),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},31985:function(e,t,n){var r=n(42521),i=n(86594);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},99835:function(e,t,n){var r=n(4682),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},9154:function(e,t,n){var r=n(32048),i=n(42521),o=n(52766),a=n(67455).f,s=n(51735),c=n(91104),l=s("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,l,{value:{objectID:"O"+u++,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,l)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[l].objectID},getWeakData:function(e,t){if(!o(e,l)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[l].weakData},onFreeze:function(e){return c&&p.REQUIRED&&d(e)&&!o(e,l)&&f(e),e}};r[l]=!0},2995:function(e,t,n){var r,i,o,a=n(45546),s=n(76121),c=n(42521),l=n(91471),u=n(52766),d=n(4682),f=n(52562),p=n(32048),h="Object already initialized",m=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new m),v=y.get,b=y.has,g=y.set;r=function(e,t){if(b.call(y,e))throw new TypeError(h);return t.facade=e,g.call(y,e,t),t},i=function(e){return v.call(y,e)||{}},o=function(e){return b.call(y,e)}}else{var _=f("state");p[_]=!0,r=function(e,t){if(u(e,_))throw new TypeError(h);return t.facade=e,l(e,_,t),t},i=function(e){return u(e,_)?e[_]:{}},o=function(e){return u(e,_)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},19439:function(e,t,n){var r=n(1386),i=n(23403),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},43964:function(e,t,n){var r=n(42849);e.exports=Array.isArray||function(e){return"Array"==r(e)}},20676:function(e,t,n){var r=n(72763),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},56038:function(e,t,n){var r=n(42521),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},42521:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8451:function(e){e.exports=!1},16272:function(e,t,n){var r=n(42521),i=n(42849),o=n(1386)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},64572:function(e,t,n){var r=n(86956),i=n(19439),o=n(48331),a=n(43322),s=n(85111),c=n(94556),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,f,p,h,m,y,v=n&&n.that,b=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),w=a(t,v,1+b+_),k=function(e){return u&&c(u),new l(!0,e)},x=function(e){return b?(r(e),_?w(e[0],e[1],k):w(e[0],e[1])):_?w(e,k):w(e)};if(g)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(f=0,p=o(e.length);p>f;f++)if((h=x(e[f]))&&h instanceof l)return h;return new l(!1)}u=d.call(e)}for(m=u.next;!(y=m.call(u)).done;){try{h=x(y.value)}catch(E){throw c(u),E}if("object"==typeof h&&h&&h instanceof l)return h}return new l(!1)}},94556:function(e,t,n){var r=n(86956);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},36020:function(e,t,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),d=u.set,f=u.get,p=l("toStringTag"),h=function(e){var t=f(this).iterator,n=t.return;return void 0===n?{done:!0,value:e}:o(n.call(t,e))},m=function(e){var t=f(this).iterator,n=t.throw;if(void 0===n)throw e;return n.call(t,e)};e.exports=function(e,t){var n=function(e){e.next=i(e.iterator.next),e.done=!1,d(this,e)};return n.prototype=c(a(r.Iterator.prototype),{next:function(){var t=f(this),n=t.done?void 0:e.apply(t,arguments);return{done:t.done,value:n}},return:h,throw:m}),t||s(n.prototype,p,"Generator"),n}},94109:function(e,t,n){"use strict";var r,i,o,a=n(72763),s=n(99366),c=n(91471),l=n(52766),u=n(1386),d=n(8451),f=u("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):p=!0);var h=null==r||a((function(){var e={};return r[f].call(e)!==e}));h&&(r={}),d&&!h||l(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},23403:function(e){e.exports={}},16756:function(e,t,n){"use strict";var r=n(86956);e.exports=function(e,t){var n=r(this),i=n.has(e)&&"update"in t?t.update(n.get(e),e,n):t.insert(e,n);return n.set(e,i),i}},7230:function(e,t,n){"use strict";var r=n(86956);e.exports=function(e,t){var n,i=r(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t&&"function"!=typeof o)throw TypeError("At least one callback required");return i.has(e)?(n=i.get(e),"function"==typeof t&&(n=t(n),i.set(e,n))):"function"==typeof o&&(n=o(),i.set(e,n)),n}},89188:function(e){var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:t},63094:function(e,t,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);e.exports=Math.fround||function(e){var t,n,o=i(e),u=r(e);return oc||n!=n?u*(1/0):u*n}},39370:function(e){var t=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},50969:function(e){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},4380:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},26745:function(e,t,n){var r,i,o,a,s,c,l,u,d=n(76121),f=n(38769).f,p=n(94825).set,h=n(60987),m=n(53538),y=n(1441),v=d.MutationObserver||d.WebKitMutationObserver,b=d.document,g=d.process,_=d.Promise,w=f(d,"queueMicrotask"),k=w&&w.value;k||(r=function(){var e,t;for(y&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(n){throw i?a():o=void 0,n}}o=void 0,e&&e.enter()},h||y||m||!v||!b?_&&_.resolve?((l=_.resolve(void 0)).constructor=_,u=l.then,a=function(){u.call(l,r)}):a=y?function(){g.nextTick(r)}:function(){p.call(d,r)}:(s=!0,c=b.createTextNode(""),new v(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=k||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},34860:function(e,t,n){var r=n(76121);e.exports=r.Promise},54020:function(e,t,n){var r=n(56962),i=n(72763);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},50307:function(e,t,n){var r=n(72763),i=n(1386),o=n(8451),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[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(e,t,n){var r=n(76121),i=n(99835),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},40500:function(e,t,n){"use strict";var r=n(80118),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},11330:function(e,t,n){var r=n(16272);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},30097:function(e,t,n){var r=n(76121).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},30706:function(e,t,n){var r=n(76121),i=n(36842).trim,o=n(82350),a=r.parseFloat,s=1/a(o+"-0")!=-1/0;e.exports=s?function(e){var t=i(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},92437:function(e,t,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");e.exports=c?function(e,t){var n=i(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},4138:function(e,t,n){"use strict";var r=n(2995),i=n(34427),o=n(42521),a=n(37532),s=n(37703),c="Incorrect Number.range arguments",l="NumericRangeIterator",u=r.set,d=r.getterFor(l),f=i((function(e,t,n,r,i,a){if(typeof e!=r||t!==1/0&&t!==-1/0&&typeof t!=r)throw new TypeError(c);if(e===1/0||e===-1/0)throw new RangeError(c);var d,f=t>e,p=!1;if(void 0===n)d=void 0;else if(o(n))d=n.step,p=!!n.inclusive;else{if(typeof n!=r)throw new TypeError(c);d=n}if(null==d&&(d=f?a:-a),typeof d!=r)throw new TypeError(c);if(d===1/0||d===-1/0||d===i&&e!==t)throw new RangeError(c);u(this,{type:l,start:e,end:t,step:d,inclusiveEnd:p,hitsEnd:e!=e||t!=t||d!=d||t>e!=d>i,currentCount:i,zero:i}),s||(this.start=e,this.end=t,this.step=d,this.inclusive=p)}),l,(function(){var e=d(this);if(e.hitsEnd)return{value:void 0,done:!0};var t=e.start,n=e.end,r=t+e.step*e.currentCount++;r===n&&(e.hitsEnd=!0);var i=e.inclusiveEnd;return(n>t?i?r>n:r>=n:i?n>r:n>=r)?{value:void 0,done:e.hitsEnd=!0}:{value:r,done:!1}})),p=function(e){return{get:e,set:function(){},configurable:!0,enumerable:!1}};s&&a(f.prototype,{start:p((function(){return d(this).start})),end:p((function(){return d(this).end})),inclusive:p((function(){return d(this).inclusiveEnd})),step:p((function(){return d(this).step}))}),e.exports=f},81179:function(e,t,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,d=Object.defineProperty;e.exports=!u||i((function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=i}))?function(e,t){for(var n=c(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var p,h=l(arguments[u++]),m=d?o(h).concat(d(h)):o(h),y=m.length,v=0;y>v;)p=m[v++],r&&!f.call(h,p)||(n[p]=h[p]);return n}:u},63571:function(e,t,n){var r,i=n(86956),o=n(37532),a=n(64731),s=n(32048),c=n(24174),l=n(6004),u=n(52562),d=u("IE_PROTO"),f=function(){},p=function(e){return"