2 lines
117 KiB
JavaScript
2 lines
117 KiB
JavaScript
System.register([],(function(e){"use strict";return{execute:function(){function _typeof(e){return(_typeof="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 asyncGeneratorStep(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,o,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,o,_next,_throw,"throw",e)}_next(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits(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&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){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}}function _construct(e,t,r){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_setPrototypeOf(o,r.prototype),o}).apply(null,arguments)}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(e){if(null===e||!function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,Wrapper)}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,e)})(e)}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _createSuper(e){var t=_isNativeReflectConstruct();return function _createSuperInternal(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _get(e,t,r){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,r){var n=_superPropBase(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function set$2(e,t,r,n){return(set$2="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function set(e,t,r,n){var o,i=_superPropBase(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(n,r),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(n,t)){if(!o.writable)return!1;o.value=r,Object.defineProperty(n,t,o)}else _defineProperty(n,t,r);return!0})(e,t,r,n)}function _set(e,t,r,n,o){if(!set$2(e,t,r,n||e)&&o)throw new Error("failed to set property");return r}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||_unsupportedIterableToArray(e,t)||function _nonIterableRest(){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 _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||_unsupportedIterableToArray(e)||function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e){var t={exports:{}};return e(t,t.exports),t.exports}var check=function(e){return e&&e.Math==Math&&e},r=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof t&&t)||function(){return this}()||Function("return this")(),fails=function(e){try{return!!e()}catch(e){return!0}},n=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a={f:i&&!o.call({1:2},1)?function propertyIsEnumerable(e){var t=i(this,e);return!!t&&t.enumerable}:o},createPropertyDescriptor=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},s={}.toString,classofRaw=function(e){return s.call(e).slice(8,-1)},c="".split,u=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==classofRaw(e)?c.call(e,""):Object(e)}:Object,requireObjectCoercible=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},toIndexedObject=function(e){return u(requireObjectCoercible(e))},isObject=function(e){return"object"==typeof e?null!==e:"function"==typeof e},toPrimitive=function(e,t){if(!isObject(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!isObject(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!isObject(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!isObject(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},l={}.hasOwnProperty,has$1=function(e,t){return l.call(e,t)},f=r.document,p=isObject(f)&&isObject(f.createElement),documentCreateElement=function(e){return p?f.createElement(e):{}},h=!n&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),d=Object.getOwnPropertyDescriptor,y={f:n?d:function getOwnPropertyDescriptor(e,t){if(e=toIndexedObject(e),t=toPrimitive(t,!0),h)try{return d(e,t)}catch(e){}if(has$1(e,t))return createPropertyDescriptor(!a.f.call(e,t),e[t])}},anObject=function(e){if(!isObject(e))throw TypeError(String(e)+" is not an object");return e},g=Object.defineProperty,v={f:n?g:function defineProperty(e,t,r){if(anObject(e),t=toPrimitive(t,!0),anObject(r),h)try{return g(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},m=n?function(e,t,r){return v.f(e,t,createPropertyDescriptor(1,r))}:function(e,t,r){return e[t]=r,e},setGlobal=function(e,t){try{m(r,e,t)}catch(n){r[e]=t}return t},b="__core-js_shared__",_=r[b]||setGlobal(b,{}),w=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(e){return w.call(e)});var S,O,x,k=_.inspectSource,P=r.WeakMap,E="function"==typeof P&&/native code/.test(k(P)),C=createCommonjsModule((function(e){(e.exports=function(e,t){return _[e]||(_[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),R=0,T=Math.random(),uid=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++R+T).toString(36)},A=C("keys"),sharedKey=function(e){return A[e]||(A[e]=uid(e))},I={},j=r.WeakMap;if(E){var L=_.state||(_.state=new j),M=L.get,D=L.has,N=L.set;S=function(e,t){return t.facade=e,N.call(L,e,t),t},O=function(e){return M.call(L,e)||{}},x=function(e){return D.call(L,e)}}else{var U=sharedKey("state");I[U]=!0,S=function(e,t){return t.facade=e,m(e,U,t),t},O=function(e){return has$1(e,U)?e[U]:{}},x=function(e){return has$1(e,U)}}var B,G,$={set:S,get:O,has:x,enforce:function(e){return x(e)?O(e):S(e,{})},getterFor:function(e){return function(t){var r;if(!isObject(t)||(r=O(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},z=createCommonjsModule((function(e){var t=$.get,n=$.enforce,o=String(String).split("String");(e.exports=function(e,t,i,a){var s,c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||has$1(i,"name")||m(i,"name",t),(s=n(i)).source||(s.source=o.join("string"==typeof t?t:""))),e!==r?(c?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=i:m(e,t,i)):u?e[t]=i:setGlobal(t,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&t(this).source||k(this)}))})),q=r,aFunction$1=function(e){return"function"==typeof e?e:void 0},getBuiltIn=function(e,t){return arguments.length<2?aFunction$1(q[e])||aFunction$1(r[e]):q[e]&&q[e][t]||r[e]&&r[e][t]},V=Math.ceil,K=Math.floor,toInteger=function(e){return isNaN(e=+e)?0:(e>0?K:V)(e)},W=Math.min,toLength=function(e){return e>0?W(toInteger(e),9007199254740991):0},H=Math.max,Z=Math.min,toAbsoluteIndex=function(e,t){var r=toInteger(e);return r<0?H(r+t,0):Z(r,t)},createMethod$4=function(e){return function(t,r,n){var o,i=toIndexedObject(t),a=toLength(i.length),s=toAbsoluteIndex(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},Y={includes:createMethod$4(!0),indexOf:createMethod$4(!1)},J=Y.indexOf,objectKeysInternal=function(e,t){var r,n=toIndexedObject(e),o=0,i=[];for(r in n)!has$1(I,r)&&has$1(n,r)&&i.push(r);for(;t.length>o;)has$1(n,r=t[o++])&&(~J(i,r)||i.push(r));return i},X=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Q=X.concat("length","prototype"),ee={f:Object.getOwnPropertyNames||function getOwnPropertyNames(e){return objectKeysInternal(e,Q)}},te={f:Object.getOwnPropertySymbols},re=getBuiltIn("Reflect","ownKeys")||function ownKeys(e){var t=ee.f(anObject(e)),r=te.f;return r?t.concat(r(e)):t},copyConstructorProperties=function(e,t){for(var r=re(t),n=v.f,o=y.f,i=0;i<r.length;i++){var a=r[i];has$1(e,a)||n(e,a,o(t,a))}},ne=/#|\.prototype\./,isForced=function(e,t){var r=ie[oe(e)];return r==se||r!=ae&&("function"==typeof t?fails(t):!!t)},oe=isForced.normalize=function(e){return String(e).replace(ne,".").toLowerCase()},ie=isForced.data={},ae=isForced.NATIVE="N",se=isForced.POLYFILL="P",ce=isForced,ue=y.f,_export=function(e,t){var n,o,i,a,s,c=e.target,u=e.global,l=e.stat;if(n=u?r:l?r[c]||setGlobal(c,{}):(r[c]||{}).prototype)for(o in t){if(a=t[o],i=e.noTargetGet?(s=ue(n,o))&&s.value:n[o],!ce(u?o:c+(l?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;copyConstructorProperties(a,i)}(e.sham||i&&i.sham)&&m(a,"sham",!0),z(n,o,a,e)}},le="process"==classofRaw(r.process),fe=getBuiltIn("navigator","userAgent")||"",pe=r.process,he=pe&&pe.versions,de=he&&he.v8;de?G=(B=de.split("."))[0]+B[1]:fe&&(!(B=fe.match(/Edge\/(\d+)/))||B[1]>=74)&&(B=fe.match(/Chrome\/(\d+)/))&&(G=B[1]);var ye,ge=G&&+G,ve=!!Object.getOwnPropertySymbols&&!fails((function(){return!Symbol.sham&&(le?38===ge:ge>37&&ge<41)})),me=ve&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=C("wks"),_e=r.Symbol,we=me?_e:_e&&_e.withoutSetter||uid,wellKnownSymbol=function(e){return has$1(be,e)&&(ve||"string"==typeof be[e])||(ve&&has$1(_e,e)?be[e]=_e[e]:be[e]=we("Symbol."+e)),be[e]},Se=Object.keys||function keys(e){return objectKeysInternal(e,X)},Oe=n?Object.defineProperties:function defineProperties(e,t){anObject(e);for(var r,n=Se(t),o=n.length,i=0;o>i;)v.f(e,r=n[i++],t[r]);return e},xe=getBuiltIn("document","documentElement"),ke=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<script>"+e+"</"+"script>"},NullProtoObject=function(){try{ye=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;NullProtoObject=ye?function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t}(ye):((t=documentCreateElement("iframe")).style.display="none",xe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F);for(var r=X.length;r--;)delete NullProtoObject.prototype[X[r]];return NullProtoObject()};I[ke]=!0;var Pe=Object.create||function create(e,t){var r;return null!==e?(EmptyConstructor.prototype=anObject(e),r=new EmptyConstructor,EmptyConstructor.prototype=null,r[ke]=e):r=NullProtoObject(),void 0===t?r:Oe(r,t)},Ee=wellKnownSymbol("unscopables"),Ce=Array.prototype;null==Ce[Ee]&&v.f(Ce,Ee,{configurable:!0,value:Pe(null)});var addToUnscopables=function(e){Ce[Ee][e]=!0},Re=Y.includes;_export({target:"Array",proto:!0},{includes:function includes(e){return Re(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var Te=wellKnownSymbol("match"),notARegexp=function(e){if(function(e){var t;return isObject(e)&&(void 0!==(t=e[Te])?!!t:"RegExp"==classofRaw(e))}(e))throw TypeError("The method doesn't accept regular expressions");return e},Ae=wellKnownSymbol("match");_export({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Ae]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function includes(e){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(e),arguments.length>1?arguments[1]:void 0)}});var regexpFlags=function(){var e=anObject(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function RE(e,t){return RegExp(e,t)}var Ie,je,Le={UNSUPPORTED_Y:fails((function(){var e=RE("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:fails((function(){var e=RE("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Me=RegExp.prototype.exec,Fe=String.prototype.replace,De=Me,Ne=(Ie=/a/,je=/b*/g,Me.call(Ie,"a"),Me.call(je,"a"),0!==Ie.lastIndex||0!==je.lastIndex),Ue=Le.UNSUPPORTED_Y||Le.BROKEN_CARET,Be=void 0!==/()??/.exec("")[1];(Ne||Be||Ue)&&(De=function exec(e){var t,r,n,o,i=this,a=Ue&&i.sticky,s=regexpFlags.call(i),c=i.source,u=0,l=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,u++),r=new RegExp("^(?:"+c+")",s)),Be&&(r=new RegExp("^"+c+"$(?!\\s)",s)),Ne&&(t=i.lastIndex),n=Me.call(a?r:i,l),a?n?(n.input=n.input.slice(u),n[0]=n[0].slice(u),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Ne&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),Be&&n&&n.length>1&&Fe.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var Ge=De;_export({target:"RegExp",proto:!0,forced:/./.exec!==Ge},{exec:Ge});var $e=wellKnownSymbol("species"),ze=!fails((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),qe="$0"==="a".replace(/./,"$0"),Ve=wellKnownSymbol("replace"),Ke=!!/./[Ve]&&""===/./[Ve]("a","$0"),We=!fails((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),fixRegexpWellKnownSymbolLogic=function(e,t,r,n){var o=wellKnownSymbol(e),i=!fails((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!fails((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[$e]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||"replace"===e&&(!ze||!qe||Ke)||"split"===e&&!We){var s=/./[o],c=r(o,""[e],(function(e,t,r,n,o){return t.exec===Ge?i&&!o?{done:!0,value:s.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:qe,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ke}),u=c[0],l=c[1];z(String.prototype,e,u),z(RegExp.prototype,o,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)})}n&&m(RegExp.prototype[o],"sham",!0)},createMethod$3=function(e){return function(t,r){var n,o,i=String(requireObjectCoercible(t)),a=toInteger(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):n:e?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},He={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)},Ze=He.charAt,advanceStringIndex=function(e,t,r){return t+(r?Ze(e,t).length:1)},toObject=function(e){return Object(requireObjectCoercible(e))},Ye=Math.floor,Je="".replace,Xe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Qe=/\$([$&'`]|\d{1,2})/g,getSubstitution=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=Qe;return void 0!==o&&(o=toObject(o),c=Xe),Je.call(i,c,(function(i,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(a);case"<":u=o[c.slice(1,-1)];break;default:var l=+c;if(0===l)return i;if(l>s){var f=Ye(l/10);return 0===f?i:f<=s?void 0===n[f-1]?c.charAt(1):n[f-1]+c.charAt(1):i}u=n[l-1]}return void 0===u?"":u}))},regexpExecAbstract=function(e,t){var r=e.exec;if("function"==typeof r){var n=r.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==classofRaw(e))throw TypeError("RegExp#exec called on incompatible receiver");return Ge.call(e,t)},et=Math.max,tt=Math.min;fixRegexpWellKnownSymbolLogic("replace",2,(function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function replace(r,n){var o=requireObjectCoercible(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,o,n):t.call(String(o),r,n)},function(e,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(a)){var s=r(t,e,this,n);if(s.done)return s.value}var c=anObject(e),u=String(this),l="function"==typeof n;l||(n=String(n));var f=c.global;if(f){var p=c.unicode;c.lastIndex=0}for(var h=[];;){var d=regexpExecAbstract(c,u);if(null===d)break;if(h.push(d),!f)break;""===String(d[0])&&(c.lastIndex=advanceStringIndex(u,toLength(c.lastIndex),p))}for(var y,g="",v=0,m=0;m<h.length;m++){d=h[m];for(var b=String(d[0]),_=et(tt(toInteger(d.index),u.length),0),w=[],S=1;S<d.length;S++)w.push(void 0===(y=d[S])?y:String(y));var O=d.groups;if(l){var x=[b].concat(w,_,u);void 0!==O&&x.push(O);var k=String(n.apply(void 0,x))}else k=getSubstitution(b,u,_,w,O,n);_>=v&&(g+=u.slice(v,_)+k,v=_+b.length)}return g+u.slice(v)}]}));var rt,nt,ot,it=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),at=sharedKey("IE_PROTO"),st=Object.prototype,ct=it?Object.getPrototypeOf:function(e){return e=toObject(e),has$1(e,at)?e[at]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?st:null},ut=wellKnownSymbol("iterator"),lt=!1;[].keys&&("next"in(ot=[].keys())?(nt=ct(ct(ot)))!==Object.prototype&&(rt=nt):lt=!0),(null==rt||fails((function(){var e={};return rt[ut].call(e)!==e})))&&(rt={}),has$1(rt,ut)||m(rt,ut,(function(){return this}));var ft={IteratorPrototype:rt,BUGGY_SAFARI_ITERATORS:lt},pt=v.f,ht=wellKnownSymbol("toStringTag"),setToStringTag=function(e,t,r){e&&!has$1(e=r?e:e.prototype,ht)&&pt(e,ht,{configurable:!0,value:t})},dt={},yt=ft.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(e,t,r){var n=t+" Iterator";return e.prototype=Pe(yt,{next:createPropertyDescriptor(1,r)}),setToStringTag(e,n,!1),dt[n]=returnThis$1,e},gt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function setPrototypeOf(r,n){return anObject(r),function(e){if(!isObject(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(n),t?e.call(r,n):r.__proto__=n,r}}():void 0),vt=ft.IteratorPrototype,mt=ft.BUGGY_SAFARI_ITERATORS,bt=wellKnownSymbol("iterator"),_t="keys",wt="values",St="entries",returnThis=function(){return this},defineIterator=function(e,t,r,n,o,i,a){createIteratorConstructor(r,t,n);var s,c,u,getIterationMethod=function(e){if(e===o&&d)return d;if(!mt&&e in p)return p[e];switch(e){case _t:return function keys(){return new r(this,e)};case wt:return function values(){return new r(this,e)};case St:return function entries(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[bt]||p["@@iterator"]||o&&p[o],d=!mt&&h||getIterationMethod(o),y="Array"==t&&p.entries||h;if(y&&(s=ct(y.call(new e)),vt!==Object.prototype&&s.next&&(ct(s)!==vt&&(gt?gt(s,vt):"function"!=typeof s[bt]&&m(s,bt,returnThis)),setToStringTag(s,l,!0))),o==wt&&h&&h.name!==wt&&(f=!0,d=function values(){return h.call(this)}),p[bt]!==d&&m(p,bt,d),dt[t]=d,o)if(c={values:getIterationMethod(wt),keys:i?d:getIterationMethod(_t),entries:getIterationMethod(St)},a)for(u in c)(mt||f||!(u in p))&&z(p,u,c[u]);else _export({target:t,proto:!0,forced:mt||f},c);return c},Ot=He.charAt,xt="String Iterator",kt=$.set,Pt=$.getterFor(xt);defineIterator(String,"String",(function(e){kt(this,{type:xt,string:String(e),index:0})}),(function next(){var e,t=Pt(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Ot(r,n),t.index+=e.length,{value:e,done:!1})}));var Et=wellKnownSymbol("iterator"),Ct=!fails((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Et]||"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"!==r||"x"!==new URL("http://x",void 0).host})),anInstance=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},Rt=Object.assign,Tt=Object.defineProperty,At=!Rt||fails((function(){if(n&&1!==Rt({b:1},Rt(Tt({},"a",{enumerable:!0,get:function(){Tt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=Rt({},e)[r]||Se(Rt({},t)).join("")!=o}))?function assign(e,t){for(var r=toObject(e),o=arguments.length,i=1,s=te.f,c=a.f;o>i;)for(var l,f=u(arguments[i++]),p=s?Se(f).concat(s(f)):Se(f),h=p.length,d=0;h>d;)l=p[d++],n&&!c.call(f,l)||(r[l]=f[l]);return r}:Rt,aFunction=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},functionBindContext=function(e,t,r){if(aFunction(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},iteratorClose=function(e){var t=e.return;if(void 0!==t)return anObject(t.call(e)).value},callWithSafeIterationClosing=function(e,t,r,n){try{return n?t(anObject(r)[0],r[1]):t(r)}catch(t){throw iteratorClose(e),t}},It=wellKnownSymbol("iterator"),jt=Array.prototype,isArrayIteratorMethod=function(e){return void 0!==e&&(dt.Array===e||jt[It]===e)},createProperty=function(e,t,r){var n=toPrimitive(t);n in e?v.f(e,n,createPropertyDescriptor(0,r)):e[n]=r},Lt={};Lt[wellKnownSymbol("toStringTag")]="z";var Mt="[object z]"===String(Lt),Ft=wellKnownSymbol("toStringTag"),Dt="Arguments"==classofRaw(function(){return arguments}()),Nt=Mt?classofRaw:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Ft))?r:Dt?classofRaw(t):"Object"==(n=classofRaw(t))&&"function"==typeof t.callee?"Arguments":n},Ut=wellKnownSymbol("iterator"),getIteratorMethod=function(e){if(null!=e)return e[Ut]||e["@@iterator"]||dt[Nt(e)]},Bt=function from(e){var t,r,n,o,i,a,s=toObject(e),c="function"==typeof this?this:Array,u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,p=getIteratorMethod(s),h=0;if(f&&(l=functionBindContext(l,u>2?arguments[2]:void 0,2)),null==p||c==Array&&isArrayIteratorMethod(p))for(r=new c(t=toLength(s.length));t>h;h++)a=f?l(s[h],h):s[h],createProperty(r,h,a);else for(i=(o=p.call(s)).next,r=new c;!(n=i.call(o)).done;h++)a=f?callWithSafeIterationClosing(o,l,[n.value,h],!0):n.value,createProperty(r,h,a);return r.length=h,r},Gt=2147483647,$t=/[^\0-\u007E]/,zt=/[.\u3002\uFF0E\uFF61]/g,qt="Overflow: input needs wider integers to process",Vt=Math.floor,Kt=String.fromCharCode,digitToBasic=function(e){return e+22+75*(e<26)},adapt=function(e,t,r){var n=0;for(e=r?Vt(e/700):e>>1,e+=Vt(e/t);e>455;n+=36)e=Vt(e/35);return Vt(n+36*e/(e+38))},encode=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),r--)}else t.push(o)}return t}(e)).length,i=128,a=0,s=72;for(t=0;t<e.length;t++)(r=e[t])<128&&n.push(Kt(r));var c=n.length,u=c;for(c&&n.push("-");u<o;){var l=Gt;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<l&&(l=r);var f=u+1;if(l-i>Vt((Gt-a)/f))throw RangeError(qt);for(a+=(l-i)*f,i=l,t=0;t<e.length;t++){if((r=e[t])<i&&++a>Gt)throw RangeError(qt);if(r==i){for(var p=a,h=36;;h+=36){var d=h<=s?1:h>=s+26?26:h-s;if(p<d)break;var y=p-d,g=36-d;n.push(Kt(digitToBasic(d+y%g))),p=Vt(y/g)}n.push(Kt(digitToBasic(p))),s=adapt(a,f,u==c),a=0,++u}}++a,++i}return n.join("")},Wt="Array Iterator",Ht=$.set,Zt=$.getterFor(Wt),Yt=defineIterator(Array,"Array",(function(e,t){Ht(this,{type:Wt,target:toIndexedObject(e),index:0,kind:t})}),(function(){var e=Zt(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");dt.Arguments=dt.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var redefineAll=function(e,t,r){for(var n in t)z(e,n,t[n],r);return e},getIterator=function(e){var t=getIteratorMethod(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return anObject(t.call(e))},Jt=getBuiltIn("fetch"),Xt=getBuiltIn("Headers"),Qt=wellKnownSymbol("iterator"),er="URLSearchParams",tr="URLSearchParamsIterator",rr=$.set,nr=$.getterFor(er),or=$.getterFor(tr),ir=/\+/g,ar=Array(4),percentSequence=function(e){return ar[e-1]||(ar[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent(e)}catch(t){return e}},deserialize=function(e){var t=e.replace(ir," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(percentSequence(r--),percentDecode);return t}},sr=/[!'()~]|%20/g,cr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return cr[e]},serialize=function(e){return encodeURIComponent(e).replace(sr,replacer)},parseSearchParams=function(e,t){if(t)for(var r,n,o=t.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),e.push({key:deserialize(n.shift()),value:deserialize(n.join("="))}))},updateSearchParams=function(e){this.entries.length=0,parseSearchParams(this.entries,e)},validateArgumentsLength=function(e,t){if(e<t)throw TypeError("Not enough arguments")},ur=createIteratorConstructor((function Iterator(e,t){rr(this,{type:tr,iterator:getIterator(nr(e).entries),kind:t})}),"Iterator",(function next(){var e=or(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r})),lr=function URLSearchParams(){anInstance(this,lr,er);var e,t,r,n,o,i,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,f=[];if(rr(l,{type:er,entries:f,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==u)if(isObject(u))if("function"==typeof(e=getIteratorMethod(u)))for(r=(t=e.call(u)).next;!(n=r.call(t)).done;){if((a=(i=(o=getIterator(anObject(n.value))).next).call(o)).done||(s=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}else for(c in u)has$1(u,c)&&f.push({key:c,value:u[c]+""});else parseSearchParams(f,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},fr=lr.prototype;redefineAll(fr,{append:function append(e,t){validateArgumentsLength(arguments.length,2);var r=nr(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){validateArgumentsLength(arguments.length,1);for(var t=nr(this),r=t.entries,n=e+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;t.updateURL()},get:function get(e){validateArgumentsLength(arguments.length,1);for(var t=nr(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function getAll(e){validateArgumentsLength(arguments.length,1);for(var t=nr(this).entries,r=e+"",n=[],o=0;o<t.length;o++)t[o].key===r&&n.push(t[o].value);return n},has:function has(e){validateArgumentsLength(arguments.length,1);for(var t=nr(this).entries,r=e+"",n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function set(e,t){validateArgumentsLength(arguments.length,1);for(var r,n=nr(this),o=n.entries,i=!1,a=e+"",s=t+"",c=0;c<o.length;c++)(r=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,r.value=s));i||o.push({key:a,value:s}),n.updateURL()},sort:function sort(){var e,t,r,n=nr(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(e=i[r],t=0;t<r;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===r&&o.push(e)}n.updateURL()},forEach:function forEach(e){for(var t,r=nr(this).entries,n=functionBindContext(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function keys(){return new ur(this,"keys")},values:function values(){return new ur(this,"values")},entries:function entries(){return new ur(this,"entries")}},{enumerable:!0}),z(fr,Qt,fr.entries),z(fr,"toString",(function toString(){for(var e,t=nr(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(serialize(e.key)+"="+serialize(e.value));return r.join("&")}),{enumerable:!0}),setToStringTag(lr,er),_export({global:!0,forced:!Ct},{URLSearchParams:lr}),Ct||"function"!=typeof Jt||"function"!=typeof Xt||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(e){var t,r,n,o=[e];return arguments.length>1&&(isObject(t=arguments[1])&&(r=t.body,Nt(r)===er&&((n=t.headers?new Xt(t.headers):new Xt).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=Pe(t,{body:createPropertyDescriptor(0,String(r)),headers:createPropertyDescriptor(0,n)}))),o.push(t)),Jt.apply(this,o)}});var pr,hr={URLSearchParams:lr,getState:nr},dr=He.codeAt,yr=r.URL,gr=hr.URLSearchParams,vr=hr.getState,mr=$.set,br=$.getterFor("URL"),_r=Math.floor,wr=Math.pow,Sr="Invalid scheme",Or="Invalid host",xr="Invalid port",kr=/[A-Za-z]/,Pr=/[\d+-.A-Za-z]/,Er=/\d/,Cr=/^(0x|0X)/,Rr=/^[0-7]+$/,Tr=/^\d+$/,Ar=/^[\dA-Fa-f]+$/,Ir=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,jr=/[\u0000\t\u000A\u000D #/:?@[\\]]/,Lr=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Mr=/[\t\u000A\u000D]/g,parseHost=function(e,t){var r,n,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return Or;if(!(r=parseIPv6(t.slice(1,-1))))return Or;e.host=r}else if(isSpecial(e)){if(t=function(e){var t,r,n=[],o=e.toLowerCase().replace(zt,".").split(".");for(t=0;t<o.length;t++)r=o[t],n.push($t.test(r)?"xn--"+encode(r):r);return n.join(".")}(t),Ir.test(t))return Or;if(null===(r=parseIPv4(t)))return Or;e.host=r}else{if(jr.test(t))return Or;for(r="",n=Bt(t),o=0;o<n.length;o++)r+=percentEncode(n[o],Fr);e.host=r}},parseIPv4=function(e){var t,r,n,o,i,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=Cr.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?Tr:8==i?Rr:Ar).test(o))return e;a=parseInt(o,i)}r.push(a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=wr(256,5-t))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*wr(256,3-n);return s},parseIPv6=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,char=function(){return e.charAt(f)};if(":"==char()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;char();){if(8==u)return;if(":"!=char()){for(t=r=0;r<4&&Ar.test(char());)t=16*t+parseInt(char(),16),f++,r++;if("."==char()){if(0==r)return;if(f-=r,u>6)return;for(n=0;char();){if(o=null,n>0){if(!("."==char()&&n<4))return;f++}if(!Er.test(char()))return;for(;Er.test(char());){if(i=parseInt(char(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==char()){if(f++,!char())return}else if(char())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},serializeHost=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=_r(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},Fr={},Dr=At({},Fr,{" ":1,'"':1,"<":1,">":1,"`":1}),Nr=At({},Dr,{"#":1,"?":1,"{":1,"}":1}),Ur=At({},Nr,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(e,t){var r=dr(e,0);return r>32&&r<127&&!has$1(t,e)?e:encodeURIComponent(e)},Br={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(e){return has$1(Br,e.scheme)},includesCredentials=function(e){return""!=e.username||""!=e.password},cannotHaveUsernamePasswordPort=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},isWindowsDriveLetter=function(e,t){var r;return 2==e.length&&kr.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},startsWithWindowsDriveLetter=function(e){var t;return e.length>1&&isWindowsDriveLetter(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},shortenURLsPath=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&isWindowsDriveLetter(t[0],!0)||t.pop()},isSingleDot=function(e){return"."===e||"%2e"===e.toLowerCase()},Gr={},$r={},zr={},qr={},Vr={},Kr={},Wr={},Hr={},Zr={},Yr={},Jr={},Xr={},Qr={},en={},tn={},rn={},nn={},on={},an={},sn={},cn={},parseURL=function(e,t,r,n){var o,i,a,s,c,u=r||Gr,l=0,f="",p=!1,h=!1,d=!1;for(r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(Lr,"")),t=t.replace(Mr,""),o=Bt(t);l<=o.length;){switch(i=o[l],u){case Gr:if(!i||!kr.test(i)){if(r)return Sr;u=zr;continue}f+=i.toLowerCase(),u=$r;break;case $r:if(i&&(Pr.test(i)||"+"==i||"-"==i||"."==i))f+=i.toLowerCase();else{if(":"!=i){if(r)return Sr;f="",u=zr,l=0;continue}if(r&&(isSpecial(e)!=has$1(Br,f)||"file"==f&&(includesCredentials(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,r)return void(isSpecial(e)&&Br[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=en:isSpecial(e)&&n&&n.scheme==e.scheme?u=qr:isSpecial(e)?u=Hr:"/"==o[l+1]?(u=Vr,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=an)}break;case zr:if(!n||n.cannotBeABaseURL&&"#"!=i)return Sr;if(n.cannotBeABaseURL&&"#"==i){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,u=cn;break}u="file"==n.scheme?en:Kr;continue;case qr:if("/"!=i||"/"!=o[l+1]){u=Kr;continue}u=Zr,l++;break;case Vr:if("/"==i){u=Yr;break}u=on;continue;case Kr:if(e.scheme=n.scheme,i==pr)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==i||"\\"==i&&isSpecial(e))u=Wr;else if("?"==i)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",u=sn;else{if("#"!=i){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),u=on;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",u=cn}break;case Wr:if(!isSpecial(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,u=on;continue}u=Yr}else u=Zr;break;case Hr:if(u=Zr,"/"!=i||"/"!=f.charAt(l+1))continue;l++;break;case Zr:if("/"!=i&&"\\"!=i){u=Yr;continue}break;case Yr:if("@"==i){p&&(f="%40"+f),p=!0,a=Bt(f);for(var y=0;y<a.length;y++){var g=a[y];if(":"!=g||d){var v=percentEncode(g,Ur);d?e.password+=v:e.username+=v}else d=!0}f=""}else if(i==pr||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)){if(p&&""==f)return"Invalid authority";l-=Bt(f).length+1,f="",u=Jr}else f+=i;break;case Jr:case Xr:if(r&&"file"==e.scheme){u=rn;continue}if(":"!=i||h){if(i==pr||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)){if(isSpecial(e)&&""==f)return Or;if(r&&""==f&&(includesCredentials(e)||null!==e.port))return;if(s=parseHost(e,f))return s;if(f="",u=nn,r)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return Or;if(s=parseHost(e,f))return s;if(f="",u=Qr,r==Xr)return}break;case Qr:if(!Er.test(i)){if(i==pr||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)||r){if(""!=f){var m=parseInt(f,10);if(m>65535)return xr;e.port=isSpecial(e)&&m===Br[e.scheme]?null:m,f=""}if(r)return;u=nn;continue}return xr}f+=i;break;case en:if(e.scheme="file","/"==i||"\\"==i)u=tn;else{if(!n||"file"!=n.scheme){u=on;continue}if(i==pr)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==i)e.host=n.host,e.path=n.path.slice(),e.query="",u=sn;else{if("#"!=i){startsWithWindowsDriveLetter(o.slice(l).join(""))||(e.host=n.host,e.path=n.path.slice(),shortenURLsPath(e)),u=on;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",u=cn}}break;case tn:if("/"==i||"\\"==i){u=rn;break}n&&"file"==n.scheme&&!startsWithWindowsDriveLetter(o.slice(l).join(""))&&(isWindowsDriveLetter(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),u=on;continue;case rn:if(i==pr||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&isWindowsDriveLetter(f))u=on;else if(""==f){if(e.host="",r)return;u=nn}else{if(s=parseHost(e,f))return s;if("localhost"==e.host&&(e.host=""),r)return;f="",u=nn}continue}f+=i;break;case nn:if(isSpecial(e)){if(u=on,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=pr&&(u=on,"/"!=i))continue}else e.fragment="",u=cn;else e.query="",u=sn;break;case on:if(i==pr||"/"==i||"\\"==i&&isSpecial(e)||!r&&("?"==i||"#"==i)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(shortenURLsPath(e),"/"==i||"\\"==i&&isSpecial(e)||e.path.push("")):isSingleDot(f)?"/"==i||"\\"==i&&isSpecial(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&isWindowsDriveLetter(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(i==pr||"?"==i||"#"==i))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==i?(e.query="",u=sn):"#"==i&&(e.fragment="",u=cn)}else f+=percentEncode(i,Nr);break;case an:"?"==i?(e.query="",u=sn):"#"==i?(e.fragment="",u=cn):i!=pr&&(e.path[0]+=percentEncode(i,Fr));break;case sn:r||"#"!=i?i!=pr&&("'"==i&&isSpecial(e)?e.query+="%27":e.query+="#"==i?"%23":percentEncode(i,Fr)):(e.fragment="",u=cn);break;case cn:i!=pr&&(e.fragment+=percentEncode(i,Dr))}l++}},un=function URL(e){var t,r,o=anInstance(this,un,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=mr(o,{type:"URL"});if(void 0!==i)if(i instanceof un)t=br(i);else if(r=parseURL(t={},String(i)))throw TypeError(r);if(r=parseURL(s,a,null,t))throw TypeError(r);var c=s.searchParams=new gr,u=vr(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},n||(o.href=serializeURL.call(o),o.origin=getOrigin.call(o),o.protocol=getProtocol.call(o),o.username=getUsername.call(o),o.password=getPassword.call(o),o.host=getHost.call(o),o.hostname=getHostname.call(o),o.port=getPort.call(o),o.pathname=getPathname.call(o),o.search=getSearch.call(o),o.searchParams=getSearchParams.call(o),o.hash=getHash.call(o))},ln=un.prototype,serializeURL=function(){var e=br(this),t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",includesCredentials(e)&&(u+=r+(n?":"+n:"")+"@"),u+=serializeHost(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},getOrigin=function(){var e=br(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&isSpecial(e)?t+"://"+serializeHost(e.host)+(null!==r?":"+r:""):"null"},getProtocol=function(){return br(this).scheme+":"},getUsername=function(){return br(this).username},getPassword=function(){return br(this).password},getHost=function(){var e=br(this),t=e.host,r=e.port;return null===t?"":null===r?serializeHost(t):serializeHost(t)+":"+r},getHostname=function(){var e=br(this).host;return null===e?"":serializeHost(e)},getPort=function(){var e=br(this).port;return null===e?"":String(e)},getPathname=function(){var e=br(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},getSearch=function(){var e=br(this).query;return e?"?"+e:""},getSearchParams=function(){return br(this).searchParams},getHash=function(){var e=br(this).fragment;return e?"#"+e:""},accessorDescriptor=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(n&&Oe(ln,{href:accessorDescriptor(serializeURL,(function(e){var t=br(this),r=String(e),n=parseURL(t,r);if(n)throw TypeError(n);vr(t.searchParams).updateSearchParams(t.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(e){var t=br(this);parseURL(t,String(e)+":",Gr)})),username:accessorDescriptor(getUsername,(function(e){var t=br(this),r=Bt(String(e));if(!cannotHaveUsernamePasswordPort(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=percentEncode(r[n],Ur)}})),password:accessorDescriptor(getPassword,(function(e){var t=br(this),r=Bt(String(e));if(!cannotHaveUsernamePasswordPort(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=percentEncode(r[n],Ur)}})),host:accessorDescriptor(getHost,(function(e){var t=br(this);t.cannotBeABaseURL||parseURL(t,String(e),Jr)})),hostname:accessorDescriptor(getHostname,(function(e){var t=br(this);t.cannotBeABaseURL||parseURL(t,String(e),Xr)})),port:accessorDescriptor(getPort,(function(e){var t=br(this);cannotHaveUsernamePasswordPort(t)||(""==(e=String(e))?t.port=null:parseURL(t,e,Qr))})),pathname:accessorDescriptor(getPathname,(function(e){var t=br(this);t.cannotBeABaseURL||(t.path=[],parseURL(t,e+"",nn))})),search:accessorDescriptor(getSearch,(function(e){var t=br(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",parseURL(t,e,sn)),vr(t.searchParams).updateSearchParams(t.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(e){var t=br(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",parseURL(t,e,cn)):t.fragment=null}))}),z(ln,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),z(ln,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),yr){var fn=yr.createObjectURL,pn=yr.revokeObjectURL;fn&&z(un,"createObjectURL",(function createObjectURL(e){return fn.apply(yr,arguments)})),pn&&z(un,"revokeObjectURL",(function revokeObjectURL(e){return pn.apply(yr,arguments)}))}setToStringTag(un,"URL"),_export({global:!0,forced:!Ct,sham:!n},{URL:un});var hn=Mt?{}.toString:function toString(){return"[object "+Nt(this)+"]"};Mt||z(Object.prototype,"toString",hn,{unsafe:!0});var dn={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},yn=wellKnownSymbol("iterator"),gn=wellKnownSymbol("toStringTag"),vn=Yt.values;for(var mn in dn){var bn=r[mn],_n=bn&&bn.prototype;if(_n){if(_n[yn]!==vn)try{m(_n,yn,vn)}catch(e){_n[yn]=vn}if(_n[gn]||m(_n,gn,mn),dn[mn])for(var wn in Yt)if(_n[wn]!==Yt[wn])try{m(_n,wn,Yt[wn])}catch(e){_n[wn]=Yt[wn]}}}var Sn=Array.isArray||function isArray(e){return"Array"==classofRaw(e)},On=wellKnownSymbol("species"),arraySpeciesCreate=function(e,t){var r;return Sn(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!Sn(r.prototype)?isObject(r)&&null===(r=r[On])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)},xn=[].push,createMethod$2=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,f,p){for(var h,d,y=toObject(c),g=u(y),v=functionBindContext(l,f,3),m=toLength(g.length),b=0,_=p||arraySpeciesCreate,w=t?_(c,m):r||a?_(c,0):void 0;m>b;b++)if((s||b in g)&&(d=v(h=g[b],b,y),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:xn.call(w,h)}else switch(e){case 4:return!1;case 7:xn.call(w,h)}return i?-1:n||o?o:w}},kn={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterOut:createMethod$2(7)},arrayMethodIsStrict=function(e,t){var r=[][e];return!!r&&fails((function(){r.call(null,t||function(){throw 1},1)}))},Pn=kn.forEach,En=arrayMethodIsStrict("forEach")?[].forEach:function forEach(e){return Pn(this,e,arguments.length>1?arguments[1]:void 0)};for(var Cn in _export({target:"Array",proto:!0,forced:[].forEach!=En},{forEach:En}),dn){var Rn=r[Cn],Tn=Rn&&Rn.prototype;if(Tn&&Tn.forEach!==En)try{m(Tn,"forEach",En)}catch(e){Tn.forEach=En}}var An=fails((function(){Se(1)}));_export({target:"Object",stat:!0,forced:An},{keys:function keys(e){return Se(toObject(e))}});var In=a.f,createMethod$1=function(e){return function(t){for(var r,o=toIndexedObject(t),i=Se(o),a=i.length,s=0,c=[];a>s;)r=i[s++],n&&!In.call(o,r)||c.push(e?[r,o[r]]:o[r]);return c}},jn={entries:createMethod$1(!0),values:createMethod$1(!1)}.entries;_export({target:"Object",stat:!0},{entries:function entries(e){return jn(e)}}),_export({target:"Object",stat:!0,forced:Object.assign!==At},{assign:At});var Ln=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(e){return ge>=51||!fails((function(){var t=[];return(t.constructor={})[Ln]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Mn=wellKnownSymbol("isConcatSpreadable"),Fn=9007199254740991,Dn="Maximum allowed index exceeded",Nn=ge>=51||!fails((function(){var e=[];return e[Mn]=!1,e.concat()[0]!==e})),Un=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(e){if(!isObject(e))return!1;var t=e[Mn];return void 0!==t?!!t:Sn(e)};_export({target:"Array",proto:!0,forced:!Nn||!Un},{concat:function concat(e){var t,r,n,o,i,a=toObject(this),s=arraySpeciesCreate(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(i=-1===t?a:arguments[t])){if(c+(o=toLength(i.length))>Fn)throw TypeError(Dn);for(r=0;r<o;r++,c++)r in i&&createProperty(s,c,i[r])}else{if(c>=Fn)throw TypeError(Dn);createProperty(s,c++,i)}return s.length=c,s}}),_export({target:"String",stat:!0},{raw:function raw(e){for(var t=toIndexedObject(e.raw),r=toLength(t.length),n=arguments.length,o=[],i=0;r>i;)o.push(String(t[i++])),i<n&&o.push(String(arguments[i]));return o.join("")}});var Bn=function html(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Gn.html.apply(Gn,[e].concat(r)).content},Gn={html:function html(e){for(var t=document.createElement("template"),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.innerHTML=String.raw.apply(String,[e].concat(n)),t}},$n=ee.f,zn={}.toString,qn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vn={f:function getOwnPropertyNames(e){return qn&&"[object Window]"==zn.call(e)?function(e){try{return $n(e)}catch(e){return qn.slice()}}(e):$n(toIndexedObject(e))}},Kn={f:wellKnownSymbol},Wn=v.f,defineWellKnownSymbol=function(e){var t=q.Symbol||(q.Symbol={});has$1(t,e)||Wn(t,e,{value:Kn.f(e)})},Hn=kn.forEach,Zn=sharedKey("hidden"),Yn="Symbol",Jn=wellKnownSymbol("toPrimitive"),Xn=$.set,Qn=$.getterFor(Yn),eo=Object.prototype,to=r.Symbol,ro=getBuiltIn("JSON","stringify"),no=y.f,oo=v.f,io=Vn.f,ao=a.f,so=C("symbols"),co=C("op-symbols"),uo=C("string-to-symbol-registry"),lo=C("symbol-to-string-registry"),fo=C("wks"),po=r.QObject,ho=!po||!po.prototype||!po.prototype.findChild,yo=n&&fails((function(){return 7!=Pe(oo({},"a",{get:function(){return oo(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=no(eo,t);n&&delete eo[t],oo(e,t,r),n&&e!==eo&&oo(eo,t,n)}:oo,wrap$1=function(e,t){var r=so[e]=Pe(to.prototype);return Xn(r,{type:Yn,tag:e,description:t}),n||(r.description=t),r},go=me?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof to},vo=function defineProperty(e,t,r){e===eo&&vo(co,t,r),anObject(e);var n=toPrimitive(t,!0);return anObject(r),has$1(so,n)?(r.enumerable?(has$1(e,Zn)&&e[Zn][n]&&(e[Zn][n]=!1),r=Pe(r,{enumerable:createPropertyDescriptor(0,!1)})):(has$1(e,Zn)||oo(e,Zn,createPropertyDescriptor(1,{})),e[Zn][n]=!0),yo(e,n,r)):oo(e,n,r)},mo=function defineProperties(e,t){anObject(e);var r=toIndexedObject(t),o=Se(r).concat(So(r));return Hn(o,(function(t){n&&!bo.call(r,t)||vo(e,t,r[t])})),e},bo=function propertyIsEnumerable(e){var t=toPrimitive(e,!0),r=ao.call(this,t);return!(this===eo&&has$1(so,t)&&!has$1(co,t))&&(!(r||!has$1(this,t)||!has$1(so,t)||has$1(this,Zn)&&this[Zn][t])||r)},_o=function getOwnPropertyDescriptor(e,t){var r=toIndexedObject(e),n=toPrimitive(t,!0);if(r!==eo||!has$1(so,n)||has$1(co,n)){var o=no(r,n);return!o||!has$1(so,n)||has$1(r,Zn)&&r[Zn][n]||(o.enumerable=!0),o}},wo=function getOwnPropertyNames(e){var t=io(toIndexedObject(e)),r=[];return Hn(t,(function(e){has$1(so,e)||has$1(I,e)||r.push(e)})),r},So=function getOwnPropertySymbols(e){var t=e===eo,r=io(t?co:toIndexedObject(e)),n=[];return Hn(r,(function(e){!has$1(so,e)||t&&!has$1(eo,e)||n.push(so[e])})),n};if(ve||(z((to=function Symbol(){if(this instanceof to)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=uid(e),setter=function(e){this===eo&&setter.call(co,e),has$1(this,Zn)&&has$1(this[Zn],t)&&(this[Zn][t]=!1),yo(this,t,createPropertyDescriptor(1,e))};return n&&ho&&yo(eo,t,{configurable:!0,set:setter}),wrap$1(t,e)}).prototype,"toString",(function toString(){return Qn(this).tag})),z(to,"withoutSetter",(function(e){return wrap$1(uid(e),e)})),a.f=bo,v.f=vo,y.f=_o,ee.f=Vn.f=wo,te.f=So,Kn.f=function(e){return wrap$1(wellKnownSymbol(e),e)},n&&(oo(to.prototype,"description",{configurable:!0,get:function description(){return Qn(this).description}}),z(eo,"propertyIsEnumerable",bo,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!ve,sham:!ve},{Symbol:to}),Hn(Se(fo),(function(e){defineWellKnownSymbol(e)})),_export({target:Yn,stat:!0,forced:!ve},{for:function(e){var t=String(e);if(has$1(uo,t))return uo[t];var r=to(t);return uo[t]=r,lo[r]=t,r},keyFor:function keyFor(e){if(!go(e))throw TypeError(e+" is not a symbol");if(has$1(lo,e))return lo[e]},useSetter:function(){ho=!0},useSimple:function(){ho=!1}}),_export({target:"Object",stat:!0,forced:!ve,sham:!n},{create:function create(e,t){return void 0===t?Pe(e):mo(Pe(e),t)},defineProperty:vo,defineProperties:mo,getOwnPropertyDescriptor:_o}),_export({target:"Object",stat:!0,forced:!ve},{getOwnPropertyNames:wo,getOwnPropertySymbols:So}),_export({target:"Object",stat:!0,forced:fails((function(){te.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(e){return te.f(toObject(e))}}),ro){var Oo=!ve||fails((function(){var e=to();return"[null]"!=ro([e])||"{}"!=ro({a:e})||"{}"!=ro(Object(e))}));_export({target:"JSON",stat:!0,forced:Oo},{stringify:function stringify(e,t,r){for(var n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=t,(isObject(t)||void 0!==e)&&!go(e))return Sn(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!go(t))return t}),o[1]=t,ro.apply(null,o)}})}to.prototype[Jn]||m(to.prototype,Jn,to.prototype.valueOf),setToStringTag(to,Yn),I[Zn]=!0;var xo=v.f,ko=r.Symbol;if(n&&"function"==typeof ko&&(!("description"in ko.prototype)||void 0!==ko().description)){var Po={},Eo=function Symbol(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Eo?new ko(e):void 0===e?ko():ko(e);return""===e&&(Po[t]=!0),t};copyConstructorProperties(Eo,ko);var Co=Eo.prototype=ko.prototype;Co.constructor=Eo;var Ro=Co.toString,To="Symbol(test)"==String(ko("test")),Ao=/^Symbol\((.*)\)[^)]+$/;xo(Co,"description",{configurable:!0,get:function description(){var e=isObject(this)?this.valueOf():this,t=Ro.call(e);if(has$1(Po,e))return"";var r=To?t.slice(7,-1):t.replace(Ao,"$1");return""===r?void 0:r}}),_export({global:!0,forced:!0},{Symbol:Eo})}var Io=fails((function(){ct(1)}));_export({target:"Object",stat:!0,forced:Io,sham:!it},{getPrototypeOf:function getPrototypeOf(e){return ct(toObject(e))}});var jo=Vn.f,Lo=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Lo},{getOwnPropertyNames:jo});var Mo=kn.filter,Fo=arrayMethodHasSpeciesSupport("filter");_export({target:"Array",proto:!0,forced:!Fo},{filter:function filter(e){return Mo(this,e,arguments.length>1?arguments[1]:void 0)}});var Do=y.f,No=fails((function(){Do(1)}));_export({target:"Object",stat:!0,forced:!n||No,sham:!n},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){return Do(toIndexedObject(e),t)}});var Uo=kn.map,Bo=arrayMethodHasSpeciesSupport("map");_export({target:"Array",proto:!0,forced:!Bo},{map:function map(e){return Uo(this,e,arguments.length>1?arguments[1]:void 0)}});var Go=Y.indexOf,$o=[].indexOf,zo=!!$o&&1/[1].indexOf(1,-0)<0,qo=arrayMethodIsStrict("indexOf");_export({target:"Array",proto:!0,forced:zo||!qo},{indexOf:function indexOf(e){return zo?$o.apply(this,arguments)||0:Go(this,e,arguments.length>1?arguments[1]:void 0)}});var Vo=Symbol("defaultState"),Ko=Symbol("delegatesFocus"),Wo=Symbol("firstRender"),Ho=Symbol("focusTarget"),Zo=Symbol("hasDynamicTemplate"),Yo=Symbol("ids"),Jo=Symbol("nativeInternals"),Xo=Symbol("raiseChangeEvents"),Qo=Symbol("render"),ei=Symbol("renderChanges"),ti=Symbol("rendered"),ri=Symbol("rendering"),ni=Symbol("setState"),oi=Symbol("shadowRoot"),ii=Symbol("shadowRootMode"),ai=Symbol("state"),si=Symbol("stateEffects"),ci=Symbol("template"),ui={tabindex:"tabIndex"},li={tabIndex:"tabindex"};function booleanAttributeValue(e,t){return"boolean"==typeof t?t:"string"==typeof t&&(""===t||e.toLowerCase()===t.toLowerCase())}var fi={checked:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,multiple:!0,noresize:!0,readonly:!0,selected:!0};defineWellKnownSymbol("iterator"),defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(Math,"Math",!0),setToStringTag(r.JSON,"JSON",!0);var pi=v.f,hi=Function.prototype,di=hi.toString,yi=/^\s*function ([^ (]*)/,gi="name";n&&!(gi in hi)&&pi(hi,gi,{configurable:!0,get:function(){try{return di.call(this).match(yi)[1]}catch(e){return""}}}),_export({target:"Object",stat:!0},{setPrototypeOf:gt});var vi=r.Promise,mi=wellKnownSymbol("species"),setSpecies=function(e){var t=getBuiltIn(e),r=v.f;n&&t&&!t[mi]&&r(t,mi,{configurable:!0,get:function(){return this}})},Result=function(e,t){this.stopped=e,this.result=t},iterate=function(e,t,r){var n,o,i,a,s,c,u,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),d=functionBindContext(t,l,1+f+h),stop=function(e){return n&&iteratorClose(n),new Result(!0,e)},callFn=function(e){return f?(anObject(e),h?d(e[0],e[1],stop):d(e[0],e[1])):h?d(e,stop):d(e)};if(p)n=e;else{if("function"!=typeof(o=getIteratorMethod(e)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(o)){for(i=0,a=toLength(e.length);a>i;i++)if((s=callFn(e[i]))&&s instanceof Result)return s;return new Result(!1)}n=o.call(e)}for(c=n.next;!(u=c.call(n)).done;){try{s=callFn(u.value)}catch(e){throw iteratorClose(n),e}if("object"==typeof s&&s&&s instanceof Result)return s}return new Result(!1)},bi=wellKnownSymbol("iterator"),_i=!1;try{var wi=0,Si={next:function(){return{done:!!wi++}},return:function(){_i=!0}};Si[bi]=function(){return this},Array.from(Si,(function(){throw 2}))}catch(e){}var Oi,xi,ki,checkCorrectnessOfIteration=function(e,t){if(!t&&!_i)return!1;var r=!1;try{var n={};n[bi]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Pi=wellKnownSymbol("species"),Ei=/(iphone|ipod|ipad).*applewebkit/i.test(fe),Ci=r.location,Ri=r.setImmediate,Ti=r.clearImmediate,Ai=r.process,Ii=r.MessageChannel,ji=r.Dispatch,Li=0,Mi={},Fi="onreadystatechange",run=function(e){if(Mi.hasOwnProperty(e)){var t=Mi[e];delete Mi[e],t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){r.postMessage(e+"",Ci.protocol+"//"+Ci.host)};Ri&&Ti||(Ri=function setImmediate(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return Mi[++Li]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Oi(Li),Li},Ti=function clearImmediate(e){delete Mi[e]},le?Oi=function(e){Ai.nextTick(runner(e))}:ji&&ji.now?Oi=function(e){ji.now(runner(e))}:Ii&&!Ei?(ki=(xi=new Ii).port2,xi.port1.onmessage=listener,Oi=functionBindContext(ki.postMessage,ki,1)):r.addEventListener&&"function"==typeof postMessage&&!r.importScripts&&Ci&&"file:"!==Ci.protocol&&!fails(post)?(Oi=post,r.addEventListener("message",listener,!1)):Oi=Fi in documentCreateElement("script")?function(e){xe.appendChild(documentCreateElement("script")).onreadystatechange=function(){xe.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var Di,Ni,Ui,Bi,Gi,$i,zi,qi,Vi={set:Ri,clear:Ti},Ki=/web0s(?!.*chrome)/i.test(fe),Wi=y.f,Hi=Vi.set,Zi=r.MutationObserver||r.WebKitMutationObserver,Yi=r.document,Ji=r.process,Xi=r.Promise,Qi=Wi(r,"queueMicrotask"),ea=Qi&&Qi.value;ea||(Di=function(){var e,t;for(le&&(e=Ji.domain)&&e.exit();Ni;){t=Ni.fn,Ni=Ni.next;try{t()}catch(e){throw Ni?Bi():Ui=void 0,e}}Ui=void 0,e&&e.enter()},Ei||le||Ki||!Zi||!Yi?Xi&&Xi.resolve?(zi=Xi.resolve(void 0),qi=zi.then,Bi=function(){qi.call(zi,Di)}):Bi=le?function(){Ji.nextTick(Di)}:function(){Hi.call(r,Di)}:(Gi=!0,$i=Yi.createTextNode(""),new Zi(Di).observe($i,{characterData:!0}),Bi=function(){$i.data=Gi=!Gi}));var ta,ra,na,oa,ia=ea||function(e){var t={fn:e,next:void 0};Ui&&(Ui.next=t),Ni||(Ni=t,Bi()),Ui=t},PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=aFunction(t),this.reject=aFunction(r)},aa={f:function(e){return new PromiseCapability(e)}},promiseResolve=function(e,t){if(anObject(e),isObject(t)&&t.constructor===e)return t;var r=aa.f(e);return(0,r.resolve)(t),r.promise},perform=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},sa=Vi.set,ca=wellKnownSymbol("species"),ua="Promise",la=$.get,fa=$.set,pa=$.getterFor(ua),ha=vi,da=r.TypeError,ya=r.document,ga=r.process,va=getBuiltIn("fetch"),ma=aa.f,ba=ma,_a=!!(ya&&ya.createEvent&&r.dispatchEvent),wa="function"==typeof PromiseRejectionEvent,Sa="unhandledrejection",Oa=ce(ua,(function(){if(!(k(ha)!==String(ha))){if(66===ge)return!0;if(!le&&!wa)return!0}if(ge>=51&&/native code/.test(ha))return!1;var e=ha.resolve(1),FakePromise=function(e){e((function(){}),(function(){}))};return(e.constructor={})[ca]=FakePromise,!(e.then((function(){}))instanceof FakePromise)})),xa=Oa||!checkCorrectnessOfIteration((function(e){ha.all(e).catch((function(){}))})),isThenable=function(e){var t;return!(!isObject(e)||"function"!=typeof(t=e.then))&&t},notify=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;ia((function(){for(var n=e.value,o=1==e.state,i=0;r.length>i;){var a,s,c,u=r[i++],l=o?u.ok:u.fail,f=u.resolve,p=u.reject,h=u.domain;try{l?(o||(2===e.rejection&&onHandleUnhandled(e),e.rejection=1),!0===l?a=n:(h&&h.enter(),a=l(n),h&&(h.exit(),c=!0)),a===u.promise?p(da("Promise-chain cycle")):(s=isThenable(a))?s.call(a,f,p):f(a)):p(n)}catch(e){h&&!c&&h.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&onUnhandled(e)}))}},dispatchEvent=function(e,t,n){var o,i;_a?((o=ya.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),r.dispatchEvent(o)):o={promise:t,reason:n},!wa&&(i=r["on"+e])?i(o):e===Sa&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},onUnhandled=function(e){sa.call(r,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform((function(){le?ga.emit("unhandledRejection",n,r):dispatchEvent(Sa,r,n)})),e.rejection=le||isUnhandled(e)?2:1,t.error))throw t.value}))},isUnhandled=function(e){return 1!==e.rejection&&!e.parent},onHandleUnhandled=function(e){sa.call(r,(function(){var t=e.facade;le?ga.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,e.value)}))},bind=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,notify(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw da("Promise can't be resolved itself");var n=isThenable(t);n?ia((function(){var r={done:!1};try{n.call(t,bind(internalResolve,r,e),bind(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=1,notify(e,!1))}catch(t){internalReject({done:!1},t,e)}}};Oa&&(ha=function Promise(e){anInstance(this,ha,ua),aFunction(e),ta.call(this);var t=la(this);try{e(bind(internalResolve,t),bind(internalReject,t))}catch(e){internalReject(t,e)}},(ta=function Promise(e){fa(this,{type:ua,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(ha.prototype,{then:function then(e,t){var r,n,o,i=pa(this),a=ma((r=ha,void 0===(o=anObject(this).constructor)||null==(n=anObject(o)[Pi])?r:aFunction(n)));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=le?ga.domain:void 0,i.parent=!0,i.reactions.push(a),0!=i.state&¬ify(i,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),ra=function(){var e=new ta,t=la(e);this.promise=e,this.resolve=bind(internalResolve,t),this.reject=bind(internalReject,t)},aa.f=ma=function(e){return e===ha||e===na?new ra(e):ba(e)},"function"==typeof vi&&(oa=vi.prototype.then,z(vi.prototype,"then",(function then(e,t){var r=this;return new ha((function(e,t){oa.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof va&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(e){return promiseResolve(ha,va.apply(r,arguments))}}))),_export({global:!0,wrap:!0,forced:Oa},{Promise:ha}),setToStringTag(ha,ua,!1),setSpecies(ua),na=getBuiltIn(ua),_export({target:ua,stat:!0,forced:Oa},{reject:function reject(e){var t=ma(this);return t.reject.call(void 0,e),t.promise}}),_export({target:ua,stat:!0,forced:Oa},{resolve:function resolve(e){return promiseResolve(this,e)}}),_export({target:ua,stat:!0,forced:xa},{all:function all(e){var t=this,r=ma(t),n=r.resolve,o=r.reject,i=perform((function(){var r=aFunction(t.resolve),i=[],a=0,s=1;iterate(e,(function(e){var c=a++,u=!1;i.push(void 0),s++,r.call(t,e).then((function(e){u||(u=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise},race:function race(e){var t=this,r=ma(t),n=r.reject,o=perform((function(){var o=aFunction(t.resolve);iterate(e,(function(e){o.call(t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var ka="toString",Pa=RegExp.prototype,Ea=Pa.toString,Ca=fails((function(){return"/a/b"!=Ea.call({source:"a",flags:"b"})})),Ra=Ea.name!=ka;(Ca||Ra)&&z(RegExp.prototype,ka,(function toString(){var e=anObject(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in Pa)?regexpFlags.call(e):r)}),{unsafe:!0});var Ta=[].reverse,Aa=[1,2];_export({target:"Array",proto:!0,forced:String(Aa)===String(Aa.reverse())},{reverse:function reverse(){return Sn(this)&&(this.length=this.length),Ta.call(this)}});var Ia=arrayMethodHasSpeciesSupport("slice"),ja=wellKnownSymbol("species"),La=[].slice,Ma=Math.max;_export({target:"Array",proto:!0,forced:!Ia},{slice:function slice(e,t){var r,n,o,i=toIndexedObject(this),a=toLength(i.length),s=toAbsoluteIndex(e,a),c=toAbsoluteIndex(void 0===t?a:t,a);if(Sn(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!Sn(r.prototype)?isObject(r)&&null===(r=r[ja])&&(r=void 0):r=void 0,r===Array||void 0===r))return La.call(i,s,c);for(n=new(void 0===r?Array:r)(Ma(c-s,0)),o=0;s<c;s++,o++)s in i&&createProperty(n,o,i[s]);return n.length=o,n}}),createCommonjsModule((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function define(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function define(e,t,r){return e[t]=r}}function wrap(e,t,r,n){var o=t&&t.prototype instanceof Generator?t:Generator,i=Object.create(o.prototype),a=new Context(n||[]);return i._invoke=function makeInvokeMethod(e,t,r){var n=c;return function invoke(o,i){if(n===l)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw i;return doneResult()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=maybeInvokeDelegate(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var h=tryCatch(e,t,r);if("normal"===h.type){if(n=r.done?f:u,h.arg===p)continue;return{value:h.arg,done:r.done}}"throw"===h.type&&(n=f,r.method="throw",r.arg=h.arg)}}}(e,r,a),i}function tryCatch(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var c="suspendedStart",u="suspendedYield",l="executing",f="completed",p={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var h={};h[i]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(values([])));y&&y!==r&&n.call(y,i)&&(h=y);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(h);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){var r;this._invoke=function enqueue(o,i){function callInvokeWithMethodAndArg(){return new t((function(r,a){!function invoke(r,o,i,a){var s=tryCatch(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===_typeof(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,i,a)}),(function(e){invoke("throw",e,i,a)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return invoke("throw",e,i,a)}))}a(s.arg)}(o,i,r,a)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=tryCatch(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return a.next=a}}return{next:doneResult}}function doneResult(){return{value:t,done:!0}}return GeneratorFunction.prototype=g.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===GeneratorFunction||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[a]=function(){return this},e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},defineIteratorMethods(g),define(g,s,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function next(){for(;t.length;){var r=t.pop();if(r in e)return next.value=r,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function complete(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function finish(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),p}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}));var Fa=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),Da=createCommonjsModule((function(e){var t=v.f,r=uid("meta"),n=0,o=Object.isExtensible||function(){return!0},setMetadata=function(e){t(e,r,{value:{objectID:"O"+ ++n,weakData:{}}})},i=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!isObject(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!has$1(e,r)){if(!o(e))return"F";if(!t)return"E";setMetadata(e)}return e[r].objectID},getWeakData:function(e,t){if(!has$1(e,r)){if(!o(e))return!0;if(!t)return!1;setMetadata(e)}return e[r].weakData},onFreeze:function(e){return Fa&&i.REQUIRED&&o(e)&&!has$1(e,r)&&setMetadata(e),e}};I[r]=!0})),Na=Da.onFreeze,Ua=Object.freeze,Ba=fails((function(){Ua(1)}));_export({target:"Object",stat:!0,forced:Ba,sham:!Fa},{freeze:function freeze(e){return Ua&&isObject(e)?Ua(Na(e)):e}});var Ga=Object.is||function is(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};fixRegexpWellKnownSymbolLogic("search",1,(function(e,t,r){return[function search(t){var r=requireObjectCoercible(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var o=anObject(e),i=String(this),a=o.lastIndex;Ga(a,0)||(o.lastIndex=0);var s=regexpExecAbstract(o,i);return Ga(o.lastIndex,a)||(o.lastIndex=a),null===s?-1:s.index}]}));var $a=Symbol("state"),za=Symbol("raiseChangeEventsInNextRender"),qa=Symbol("changedSinceLastRender");function copyStateWithChanges(e,t){for(var r=Object.assign({},e[$a]),n={},o=t;;){var i=fieldsChanged(r,o);if(0===Object.keys(i).length)break;Object.assign(r,o),Object.assign(n,i),o=e[si](r,i)}return{state:r,changed:n}}function fieldsChanged(e,t){var r,n,o={};for(var i in t)r=t[i],n=e[i],(r instanceof Date&&n instanceof Date?r.getTime()===n.getTime():r===n)||(o[i]=!0);return o}var inheritIfRequired=function(e,t,r){var n,o;return gt&&"function"==typeof(n=t.constructor)&&n!==r&&isObject(o=n.prototype)&&o!==r.prototype&>(e,o),e},Va=v.f,Ka=Da.fastKey,Wa=$.set,Ha=$.getterFor;!function(e,t,n){var o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=r[e],c=s&&s.prototype,u=s,l={},fixMethod=function(e){var t=c[e];z(c,e,"add"==e?function add(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!isObject(e))&&t.call(this,0===e?0:e)}:"get"==e?function get(e){return i&&!isObject(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function has(e){return!(i&&!isObject(e))&&t.call(this,0===e?0:e)}:function set(e,r){return t.call(this,0===e?0:e,r),this})};if(ce(e,"function"!=typeof s||!(i||c.forEach&&!fails((function(){(new s).entries().next()})))))u=n.getConstructor(t,e,o,a),Da.REQUIRED=!0;else if(ce(e,!0)){var f=new u,p=f[a](i?{}:-0,1)!=f,h=fails((function(){f.has(1)})),d=checkCorrectnessOfIteration((function(e){new s(e)})),y=!i&&fails((function(){for(var e=new s,t=5;t--;)e[a](t,t);return!e.has(-0)}));d||((u=t((function(t,r){anInstance(t,u,e);var n=inheritIfRequired(new s,t,u);return null!=r&&iterate(r,n[a],{that:n,AS_ENTRIES:o}),n}))).prototype=c,c.constructor=u),(h||y)&&(fixMethod("delete"),fixMethod("has"),o&&fixMethod("get")),(y||p)&&fixMethod(a),i&&c.clear&&delete c.clear}l[e]=u,_export({global:!0,forced:u!=s},l),setToStringTag(u,e),i||n.setStrong(u,e,o)}("Map",(function(e){return function Map(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,r,o){var i=e((function(e,a){anInstance(e,i,t),Wa(e,{type:t,index:Pe(null),first:void 0,last:void 0,size:0}),n||(e.size=0),null!=a&&iterate(a,e[o],{that:e,AS_ENTRIES:r})})),a=Ha(t),define=function(e,t,r){var o,i,s=a(e),c=getEntry(e,t);return c?c.value=r:(s.last=c={index:i=Ka(t,!0),key:t,value:r,previous:o=s.last,next:void 0,removed:!1},s.first||(s.first=c),o&&(o.next=c),n?s.size++:e.size++,"F"!==i&&(s.index[i]=c)),e},getEntry=function(e,t){var r,n=a(e),o=Ka(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return redefineAll(i.prototype,{clear:function clear(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,n?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),o=getEntry(t,e);if(o){var i=o.next,s=o.previous;delete r.index[o.index],o.removed=!0,s&&(s.next=i),i&&(i.previous=s),r.first==o&&(r.first=i),r.last==o&&(r.last=s),n?r.size--:t.size--}return!!o},forEach:function forEach(e){for(var t,r=a(this),n=functionBindContext(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function has(e){return!!getEntry(this,e)}}),redefineAll(i.prototype,r?{get:function get(e){var t=getEntry(this,e);return t&&t.value},set:function set(e,t){return define(this,0===e?0:e,t)}}:{add:function add(e){return define(this,e=0===e?0:e,e)}}),n&&Va(i.prototype,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",o=Ha(t),i=Ha(n);defineIterator(e,t,(function(e,t){Wa(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),setSpecies(t)}});var Za=new Map,Ya=Symbol("shadowIdProxy"),Ja=Symbol("proxyElement"),Xa={get:function get(e,t){var r=e[Ja][oi];return r&&"string"==typeof t?r.getElementById(t):null}};var Qa=function AttributeMarshallingMixin(e){return function(e){_inherits(AttributeMarshalling,e);var t=_createSuper(AttributeMarshalling);function AttributeMarshalling(){return _classCallCheck(this,AttributeMarshalling),t.apply(this,arguments)}return _createClass(AttributeMarshalling,[{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,r){if(_get(_getPrototypeOf(AttributeMarshalling.prototype),"attributeChangedCallback",this)&&_get(_getPrototypeOf(AttributeMarshalling.prototype),"attributeChangedCallback",this).call(this,e,t,r),r!==t&&!this[ri]){var n=function attributeToPropertyName(e){var t=ui[e];if(!t){var r=/-([a-z])/g;t=e.replace(r,(function(e){return e[1].toUpperCase()})),ui[e]=t}return t}(e);if(n in this){var o=fi[e]?booleanAttributeValue(e,r):r;this[n]=o}}}}],[{key:"observedAttributes",get:function get(){return function attributesForClass(e){if(e===HTMLElement)return[];var t=Object.getPrototypeOf(e.prototype).constructor,r=t.observedAttributes;r||(r=attributesForClass(t));var n=Object.getOwnPropertyNames(e.prototype).filter((function(t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);return r&&"function"==typeof r.set})).map((function(e){return function propertyNameToAttribute(e){var t=li[e];if(!t){var r=/([A-Z])/g;t=e.replace(r,"-$1").toLowerCase(),li[e]=t}return t}(e)})).filter((function(e){return r.indexOf(e)<0}));return r.concat(n)}(this)}}]),AttributeMarshalling}(e)}(function ReactiveMixin(e){var t=function(e){_inherits(Reactive,e);var t,r=_createSuper(Reactive);function Reactive(){var e;return _classCallCheck(this,Reactive),(e=r.call(this))[Wo]=void 0,e[Xo]=!1,e[qa]=null,e[ni](e[Vo]),e}return _createClass(Reactive,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(Reactive.prototype),"connectedCallback",this)&&_get(_getPrototypeOf(Reactive.prototype),"connectedCallback",this).call(this),this[ei]()}},{key:Vo,get:function get(){return _get(_getPrototypeOf(Reactive.prototype),Vo,this)||{}}},{key:Qo,value:function value(e){_get(_getPrototypeOf(Reactive.prototype),Qo,this)&&_get(_getPrototypeOf(Reactive.prototype),Qo,this).call(this,e)}},{key:ei,value:function value(){void 0===this[Wo]&&(this[Wo]=!0);var e=this[qa];if(this[Wo]||e){var t=this[Xo];this[Xo]=this[za],this[za]=!1,this[ri]=!0,this[Qo](e),this[ri]=!1,this[qa]=null,this[ti](e),this[Wo]=!1,this[Xo]=t}}},{key:ti,value:function value(e){_get(_getPrototypeOf(Reactive.prototype),ti,this)&&_get(_getPrototypeOf(Reactive.prototype),ti,this).call(this,e)}},{key:ni,value:(t=_asyncToGenerator(regeneratorRuntime.mark((function _callee(e){var t,r,n,o;return regeneratorRuntime.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(this[ri]&&console.warn("".concat(this.constructor.name," called [setState] during rendering, which you should avoid.\nSee https://elix.org/documentation/ReactiveMixin.")),t=copyStateWithChanges(this,e),r=t.state,n=t.changed,!this[$a]||0!==Object.keys(n).length){i.next=4;break}return i.abrupt("return");case 4:if(Object.freeze(r),this[$a]=r,this[Xo]&&(this[za]=!0),o=void 0===this[Wo]||null!==this[qa],this[qa]=Object.assign(this[qa]||{},n),!this.isConnected||o){i.next=14;break}return i.next=13,Promise.resolve();case 13:this[ei]();case 14:case"end":return i.stop()}}),_callee,this)}))),function value(e){return t.apply(this,arguments)})},{key:ai,get:function get(){return this[$a]}},{key:si,value:function value(e,t){return _get(_getPrototypeOf(Reactive.prototype),si,this)?_get(_getPrototypeOf(Reactive.prototype),si,this).call(this,e,t):{}}}]),Reactive}(e);return"true"===new URLSearchParams(location.search).get("elixdebug")&&Object.defineProperty(t.prototype,"state",{get:function get(){return this[ai]}}),t}(function ShadowTemplateMixin(e){return function(e){_inherits(ShadowTemplate,e);var t=_createSuper(ShadowTemplate);function ShadowTemplate(){return _classCallCheck(this,ShadowTemplate),t.apply(this,arguments)}return _createClass(ShadowTemplate,[{key:Yo,get:function get(){if(!this[Ya]){var e=_defineProperty({},Ja,this);this[Ya]=new Proxy(e,Xa)}return this[Ya]}},{key:Qo,value:function value(e){if(_get(_getPrototypeOf(ShadowTemplate.prototype),Qo,this)&&_get(_getPrototypeOf(ShadowTemplate.prototype),Qo,this).call(this,e),!this[oi]){var t=function getTemplate(e){var t=e[Zo]?void 0:Za.get(e.constructor);if(void 0===t){if((t=e[ci])&&!(t instanceof HTMLTemplateElement))throw"Warning: the [template] property for ".concat(e.constructor.name," must return an HTMLTemplateElement.");e[Zo]||Za.set(e.constructor,t||null)}return t}(this);if(t){var r=this.attachShadow({delegatesFocus:this[Ko],mode:this[ii]}),n=document.importNode(t.content,!0);r.append(n),this[oi]=r}else this[oi]=null}}},{key:ii,get:function get(){return"open"}}]),ShadowTemplate}(e)}(HTMLElement))),es=Symbol("checkSize"),ts=Symbol("closestAvailableItemIndex"),rs=Symbol("contentSlot"),ns=Vo,os=Symbol("defaultTabIndex"),as=Ko,ss=Symbol("effectEndTarget"),cs=Wo,us=Ho,ls=Symbol("getItemText"),fs=Symbol("goDown"),ps=Symbol("goEnd"),hs=Symbol("goFirst"),ds=Symbol("goLast"),ys=Symbol("goLeft"),gs=Symbol("goNext"),vs=Symbol("goPrevious"),ms=Symbol("goRight"),bs=Symbol("goStart"),_s=Symbol("goToItemWithPrefix"),ws=Symbol("goUp"),Ss=Zo,Os=Yo,xs=Symbol("inputDelegate"),ks=Symbol("itemsDelegate"),Ps=Symbol("keydown"),Es=Symbol("mouseenter"),Cs=Symbol("mouseleave"),Rs=Jo,Ts=Xo,As=Qo,Is=ei,js=Symbol("renderDataToElement"),Ls=ti,Ms=ri,Fs=Symbol("scrollTarget"),Ds=ni,Ns=oi,Us=ii,Bs=Symbol("startEffect"),Gs=ai,$s=si,zs=Symbol("swipeDown"),qs=Symbol("swipeDownComplete"),Vs=Symbol("swipeLeft"),Ks=Symbol("swipeLeftTransitionEnd"),Ws=Symbol("swipeRight"),Hs=Symbol("swipeRightTransitionEnd"),Zs=Symbol("swipeUp"),Ys=Symbol("swipeUpComplete"),Js=Symbol("swipeStart"),Xs=Symbol("swipeTarget"),Qs=Symbol("tap"),ec=ci,tc=Symbol("toggleSelectedFlag");"true"===new URLSearchParams(location.search).get("elixdebug")&&(window.elix={internal:{checkSize:es,closestAvailableItemIndex:ts,contentSlot:rs,defaultState:ns,defaultTabIndex:os,delegatesFocus:as,effectEndTarget:ss,firstRender:cs,focusTarget:us,getItemText:ls,goDown:fs,goEnd:ps,goFirst:hs,goLast:ds,goLeft:ys,goNext:gs,goPrevious:vs,goRight:ms,goStart:bs,goToItemWithPrefix:_s,goUp:ws,hasDynamicTemplate:Ss,ids:Os,inputDelegate:xs,itemsDelegate:ks,keydown:Ps,mouseenter:Es,mouseleave:Cs,nativeInternals:Rs,event:event,raiseChangeEvents:Ts,render:As,renderChanges:Is,renderDataToElement:js,rendered:Ls,rendering:Ms,scrollTarget:Fs,setState:Ds,shadowRoot:Ns,shadowRootMode:Us,startEffect:Bs,state:Gs,stateEffects:$s,swipeDown:zs,swipeDownComplete:qs,swipeLeft:Vs,swipeLeftTransitionEnd:Ks,swipeRight:Ws,swipeRightTransitionEnd:Hs,swipeUp:Zs,swipeUpComplete:Ys,swipeStart:Js,swipeTarget:Xs,tap:Qs,template:ec,toggleSelectedFlag:tc}});var rc=Symbol("previousBodyStyleOverflow"),nc=Symbol("previousDocumentMarginRight");var oc=kn.findIndex,ic="findIndex",ac=!0;ic in[]&&Array(1).findIndex((function(){ac=!1})),_export({target:"Array",proto:!0,forced:ac},{findIndex:function findIndex(e){return oc(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables(ic);var sc,cc=regeneratorRuntime.mark(walkComposedTree);function deepContains(e,t){for(var r=t;r;){var n=r.assignedSlot||r.parentNode||r.host;if(n===e)return!0;r=n}return!1}function firstFocusableElement(e){var t=walkComposedTree(e,(function(e){return e instanceof HTMLElement&&e.matches('a[href],area[href],button:not([disabled]),details,iframe,input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[contentEditable="true"],[tabindex]')&&e.tabIndex>=0})).next().value;return t instanceof HTMLElement?t:null}function setInternalState(e,t,r){if(e.toggleAttribute(t,r),e[Jo]&&e[Jo].states){var n=e[Jo].states,o="--".concat(t);r?n.add(o):n.delete(o)}}function walkComposedTree(e,t){var r,n,o;return regeneratorRuntime.wrap((function walkComposedTree$(i){for(;;)switch(i.prev=i.next){case 0:if(!t(e)){i.next=3;break}return i.next=3,e;case 3:if(e instanceof HTMLElement&&e.shadowRoot?r=e.shadowRoot.children:(n=e instanceof HTMLSlotElement?e.assignedNodes({flatten:!0}):[],r=n.length>0?n:e.childNodes),!r){i.next=11;break}o=0;case 6:if(!(o<r.length)){i.next=11;break}return i.delegateYield(walkComposedTree(r[o],t),"t0",8);case 8:o++,i.next=6;break;case 11:case"end":return i.stop()}}),cc)}var uc=Symbol("wrap"),lc=Symbol("wrappingFocus");function FocusCaptureMixin(e){return function(e){_inherits(FocusCapture,e);var t=_createSuper(FocusCapture);function FocusCapture(){return _classCallCheck(this,FocusCapture),t.apply(this,arguments)}return _createClass(FocusCapture,[{key:Ps,value:function value(e){var t=firstFocusableElement(this[Ns]);if(t){var r=document.activeElement&&(document.activeElement===t||document.activeElement.contains(t)),n=this[Ns].activeElement,o=n&&(n===t||deepContains(n,t));(r||o)&&"Tab"===e.key&&e.shiftKey&&(this[lc]=!0,this[Os].focusCatcher.focus(),this[lc]=!1)}return _get(_getPrototypeOf(FocusCapture.prototype),Ps,this)&&_get(_getPrototypeOf(FocusCapture.prototype),Ps,this).call(this,e)||!1}},{key:As,value:function value(e){var t=this;_get(_getPrototypeOf(FocusCapture.prototype),As,this)&&_get(_getPrototypeOf(FocusCapture.prototype),As,this).call(this,e),this[cs]&&this[Os].focusCatcher.addEventListener("focus",(function(){if(!t[lc]){var e=firstFocusableElement(t[Ns]);e&&e.focus()}}))}},{key:uc,value:function value(e){var t=Bn(sc||(sc=_taggedTemplateLiteral(['\n <style>\n #focusCapture {\n display: flex;\n height: 100%;\n overflow: hidden;\n width: 100%;\n }\n\n #focusCaptureContainer {\n align-items: center;\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n position: relative;\n }\n </style>\n <div id="focusCapture">\n <div id="focusCaptureContainer"></div>\n <div id="focusCatcher" tabindex="0"></div>\n </div>\n ']))),r=t.getElementById("focusCaptureContainer");r&&(e.replaceWith(t),r.append(e))}}]),FocusCapture}(e)}FocusCaptureMixin.wrap=uc;var fc,pc="\t\n\v\f\r \u2028\u2029\ufeff",hc="["+pc+"]",dc=RegExp("^"+hc+hc+"*"),yc=RegExp(hc+hc+"*$"),createMethod=function(e){return function(t){var r=String(requireObjectCoercible(t));return 1&e&&(r=r.replace(dc,"")),2&e&&(r=r.replace(yc,"")),r}},gc={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},vc=ee.f,mc=y.f,bc=v.f,_c=gc.trim,wc="Number",Sc=r.Number,Oc=Sc.prototype,xc=classofRaw(Pe(Oc))==wc,toNumber=function(e){var t,r,n,o,i,a,s,c,u=toPrimitive(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=_c(u)).charCodeAt(0))||45===t){if(88===(r=u.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=u.slice(2)).length,s=0;s<a;s++)if((c=i.charCodeAt(s))<48||c>o)return NaN;return parseInt(i,n)}return+u};if(ce(wc,!Sc(" 0o1")||!Sc("0b1")||Sc("+0x1"))){for(var kc,Pc=function Number(e){var t=arguments.length<1?0:e,r=this;return r instanceof Pc&&(xc?fails((function(){Oc.valueOf.call(r)})):classofRaw(r)!=wc)?inheritIfRequired(new Sc(toNumber(t)),r,Pc):toNumber(t)},Ec=n?vc(Sc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Cc=0;Ec.length>Cc;Cc++)has$1(Sc,kc=Ec[Cc])&&!has$1(Pc,kc)&&bc(Pc,kc,mc(Sc,kc));Pc.prototype=Oc,Oc.constructor=Pc,z(r,wc,Pc)}var Rc=function(e){_inherits(Backdrop,e);var t=_createSuper(Backdrop);function Backdrop(){return _classCallCheck(this,Backdrop),t.apply(this,arguments)}return _createClass(Backdrop,[{key:ns,get:function get(){return Object.assign(_get(_getPrototypeOf(Backdrop.prototype),ns,this),{role:"none"})}},{key:ec,get:function get(){return Gn.html(fc||(fc=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-block;\n height: 100%;\n left: 0;\n position: fixed;\n top: 0;\n touch-action: manipulation;\n width: 100%;\n }\n </style>\n <slot></slot>\n "])))}}]),Backdrop}(function AriaRoleMixin(e){return function(e){_inherits(AriaRole,e);var t=_createSuper(AriaRole);function AriaRole(){return _classCallCheck(this,AriaRole),t.apply(this,arguments)}return _createClass(AriaRole,[{key:ns,get:function get(){return Object.assign(_get(_getPrototypeOf(AriaRole.prototype),ns,this)||{},{role:null})}},{key:As,value:function value(e){if(_get(_getPrototypeOf(AriaRole.prototype),As,this)&&_get(_getPrototypeOf(AriaRole.prototype),As,this).call(this,e),e.role){var t=this[Gs].role;t?this.setAttribute("role",t):this.removeAttribute("role")}}},{key:"role",get:function get(){return _get(_getPrototypeOf(AriaRole.prototype),"role",this)}},{key:"role",set:function set(e){var t=String(e);_set(_getPrototypeOf(AriaRole.prototype),"role",t,this,!0),this[Ms]||this[Ds]({s:t})}}]),AriaRole}(e)}(Qa)),Tc=function(e){_inherits(ModalBackdrop,e);var t=_createSuper(ModalBackdrop);function ModalBackdrop(){var e;return _classCallCheck(this,ModalBackdrop),e=t.call(this),"PointerEvent"in window||e.addEventListener("touchmove",(function(e){1===e.touches.length&&e.preventDefault()})),e}return ModalBackdrop}(Rc);fixRegexpWellKnownSymbolLogic("match",1,(function(e,t,r){return[function match(t){var r=requireObjectCoercible(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var o=anObject(e),i=String(this);if(!o.global)return regexpExecAbstract(o,i);var a=o.unicode;o.lastIndex=0;for(var s,c=[],u=0;null!==(s=regexpExecAbstract(o,i));){var l=String(s[0]);c[u]=l,""===l&&(o.lastIndex=advanceStringIndex(i,toLength(o.lastIndex),a)),u++}return 0===u?null:c}]}));var Ac=new Map;function createElement(e){if("function"==typeof e){var t;try{t=new e}catch(r){if("TypeError"!==r.name)throw r;!function registerCustomElement(e){var t,r=/^[A-Za-z][A-Za-z0-9_$]*$/,n=e.name&&e.name.match(r);if(n){var o=/([A-Z])/g;t=n[0].replace(o,(function(e,t,r){return r>0?"-".concat(t):t})).toLowerCase()}else t="custom-element";for(var i,a=Ac.get(t)||0;i="".concat(t,"-").concat(a),customElements.get(i);a++);customElements.define(i,e),Ac.set(t,a+1)}(e),t=new e}return t}return document.createElement(e)}function transmute(e,t){if("function"==typeof t&&e.constructor===t||"string"==typeof t&&e instanceof Element&&e.localName===t)return e;var r=createElement(t);return function replace(e,t){var r=e.parentNode;if(!r)throw"An element must have a parent before it can be substituted.";return(e instanceof HTMLElement||e instanceof SVGElement)&&(t instanceof HTMLElement||t instanceof SVGElement)&&(Array.prototype.forEach.call(e.attributes,(function(e){t.getAttribute(e.name)||"class"===e.name||"style"===e.name||t.setAttribute(e.name,e.value)})),Array.prototype.forEach.call(e.classList,(function(e){t.classList.add(e)})),Array.prototype.forEach.call(e.style,(function(r){t.style[r]||(t.style[r]=e.style[r])}))),t.append.apply(t,_toConsumableArray(e.childNodes)),r.replaceChild(t,e),t}(e,r),r}var Ic,jc=Symbol("closePromise"),Lc=Symbol("closeResolve");var Mc=function(e){_inherits(OverlayFrame,e);var t=_createSuper(OverlayFrame);function OverlayFrame(){return _classCallCheck(this,OverlayFrame),t.apply(this,arguments)}return _createClass(OverlayFrame,[{key:ec,get:function get(){return Gn.html(Ic||(Ic=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-block;\n position: relative;\n }\n </style>\n <slot></slot>\n "])))}}]),OverlayFrame}(Qa),Fc=gc.trim,Dc=r.parseInt,Nc=/^[+-]?0[Xx]/,Uc=8!==Dc(pc+"08")||22!==Dc(pc+"0x16")?function parseInt(e,t){var r=Fc(String(e));return Dc(r,t>>>0||(Nc.test(r)?16:10))}:Dc;_export({global:!0,forced:parseInt!=Uc},{parseInt:Uc});var Bc,Gc,$c=!checkCorrectnessOfIteration((function(e){Array.from(e)}));_export({target:"Array",stat:!0,forced:$c},{from:Bt});var zc,qc,Vc=Symbol("appendedToDocument"),Kc=Symbol("assignedZIndex"),Wc=Symbol("restoreFocusToElement");function bringToFront(e){var t=function maxZIndexInUse(){var e=document.body.querySelectorAll("*"),t=Array.from(e,(function(e){var t=getComputedStyle(e),r=0;if("static"!==t.position&&"auto"!==t.zIndex){var n=t.zIndex?parseInt(t.zIndex):0;r=isNaN(n)?0:n}return r}));return Math.max.apply(Math,_toConsumableArray(t))}()+1;e[Kc]=t,e.style.zIndex=t.toString()}function hasZIndex(e){var t=getComputedStyle(e).zIndex,r=e.style.zIndex,n=!isNaN(parseInt(r));if("auto"===t)return n;if("0"===t&&!n){var o=e.assignedSlot||(e instanceof ShadowRoot?e.host:e.parentNode);if(!(o instanceof HTMLElement))return!0;if(!hasZIndex(o))return!1}return!0}function renderParts(e,t,r){if(!r||r.backdropPartType){var n=t.backdropPartType,o=e.getElementById("backdrop");o&&transmute(o,n)}if(!r||r.framePartType){var i=t.framePartType,a=e.getElementById("frame");a&&transmute(a,i)}}var Hc,Zc,Yc=function(e){_inherits(Dialog,e);var t=_createSuper(Dialog);function Dialog(){return _classCallCheck(this,Dialog),t.apply(this,arguments)}return _createClass(Dialog,[{key:ns,get:function get(){return Object.assign(_get(_getPrototypeOf(Dialog.prototype),ns,this),{backdropPartType:Tc,tabIndex:-1})}},{key:ec,get:function get(){var e=_get(_getPrototypeOf(Dialog.prototype),ec,this),t=e.content.querySelector("#frame");return this[FocusCaptureMixin.wrap](t),e.content.append(Bn(qc||(qc=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-flex;\n flex-direction: column;\n height: 100%;\n left: 0;\n pointer-events: initial;\n top: 0;\n width: 100%;\n }\n </style>\n "])))),e}}]),Dialog}(function DialogModalityMixin(e){return function(e){_inherits(DialogModality,e);var t=_createSuper(DialogModality);function DialogModality(){return _classCallCheck(this,DialogModality),t.apply(this,arguments)}return _createClass(DialogModality,[{key:ns,get:function get(){return Object.assign(_get(_getPrototypeOf(DialogModality.prototype),ns,this)||{},{role:"dialog"})}},{key:Ps,value:function value(e){var t=!1;switch(e.key){case"Escape":this.close({canceled:"Escape"}),t=!0}return t||_get(_getPrototypeOf(DialogModality.prototype),Ps,this)&&_get(_getPrototypeOf(DialogModality.prototype),Ps,this).call(this,e)||!1}},{key:As,value:function value(e){if(_get(_getPrototypeOf(DialogModality.prototype),As,this)&&_get(_getPrototypeOf(DialogModality.prototype),As,this).call(this,e),e.opened)if(this[Gs].opened&&document.documentElement){var t=document.documentElement.clientWidth,r=window.innerWidth-t;this[rc]=document.body.style.overflow,this[nc]=r>0?document.documentElement.style.marginRight:null,document.body.style.overflow="hidden",r>0&&(document.documentElement.style.marginRight="".concat(r,"px"))}else null!=this[rc]&&(document.body.style.overflow=this[rc],this[rc]=null),null!=this[nc]&&(document.documentElement.style.marginRight=this[nc],this[nc]=null);if(e.role){var n=this[Gs].role;this.setAttribute("role",n)}}},{key:"role",get:function get(){return _get(_getPrototypeOf(DialogModality.prototype),"role",this)}},{key:"role",set:function set(e){_set(_getPrototypeOf(DialogModality.prototype),"role",e,this,!0),this[Ms]||this[Ds]({role:e})}}]),DialogModality}(e)}(FocusCaptureMixin(function KeyboardMixin(e){return function(e){_inherits(Keyboard,e);var t=_createSuper(Keyboard);function Keyboard(){var e;return _classCallCheck(this,Keyboard),(e=t.call(this)).addEventListener("keydown",function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function _callee(t){return regeneratorRuntime.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return e[Ts]=!0,e[Gs].focusVisible||e[Ds]({focusVisible:!0}),e[Ps](t)&&(t.preventDefault(),t.stopImmediatePropagation()),r.next=6,Promise.resolve();case 6:e[Ts]=!1;case 7:case"end":return r.stop()}}),_callee)})));return function(e){return t.apply(this,arguments)}}()),e}return _createClass(Keyboard,[{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,r){var n;"tabindex"===e?(null===r?n=-1:(n=Number(r),isNaN(n)&&(n=this[os]?this[os]:0)),this.tabIndex=n):_get(_getPrototypeOf(Keyboard.prototype),"attributeChangedCallback",this).call(this,e,t,r)}},{key:ns,get:function get(){var e=this[as]?-1:0;return Object.assign(_get(_getPrototypeOf(Keyboard.prototype),ns,this)||{},{tabIndex:e})}},{key:Ps,value:function value(e){return!!_get(_getPrototypeOf(Keyboard.prototype),Ps,this)&&_get(_getPrototypeOf(Keyboard.prototype),Ps,this).call(this,e)}},{key:As,value:function value(e){_get(_getPrototypeOf(Keyboard.prototype),As,this)&&_get(_getPrototypeOf(Keyboard.prototype),As,this).call(this,e),e.tabIndex&&(this.tabIndex=this[Gs].tabIndex)}},{key:"tabIndex",get:function get(){return _get(_getPrototypeOf(Keyboard.prototype),"tabIndex",this)}},{key:"tabIndex",set:function set(e){_get(_getPrototypeOf(Keyboard.prototype),"tabIndex",this)!==e&&_set(_getPrototypeOf(Keyboard.prototype),"tabIndex",e,this,!0),this[Ms]||this[Ds]({tabIndex:e})}}]),Keyboard}(e)}(function(e){_inherits(Overlay,e);var t=_createSuper(Overlay);function Overlay(){return _classCallCheck(this,Overlay),t.apply(this,arguments)}return _createClass(Overlay,[{key:"backdrop",get:function get(){return this[Os]&&this[Os].backdrop}},{key:"backdropPartType",get:function get(){return this[Gs].backdropPartType},set:function set(e){this[Ds]({backdropPartType:e})}},{key:ns,get:function get(){return Object.assign(_get(_getPrototypeOf(Overlay.prototype),ns,this),{backdropPartType:Rc,framePartType:Mc})}},{key:"frame",get:function get(){return this[Os].frame}},{key:"framePartType",get:function get(){return this[Gs].framePartType}},{key:"framePartType",set:function set(e){this[Ds]({framePartType:e})}},{key:As,value:function value(e){_get(_getPrototypeOf(Overlay.prototype),As,this).call(this,e),renderParts(this[Ns],this[Gs],e)}},{key:Ls,value:function value(e){_get(_getPrototypeOf(Overlay.prototype),Ls,this).call(this,e),e.opened&&this[Gs].content&&this[Gs].content.forEach((function(e){e[es]&&e[es]()}))}},{key:ec,get:function get(){var e=_get(_getPrototypeOf(Overlay.prototype),ec,this);return e.content.append(Bn(zc||(zc=_taggedTemplateLiteral(['\n <style>\n :host {\n max-height: 100vh;\n max-width: 100vw;\n outline: none;\n position: fixed;\n -webkit-tap-highlight-color: transparent;\n }\n\n [part~="frame"] {\n box-sizing: border-box;\n display: grid;\n overflow: hidden;\n overscroll-behavior: contain;\n pointer-events: initial;\n position: relative;\n }\n </style>\n <div id="backdrop" part="backdrop" tabindex="-1"></div>\n <div id="frame" part="frame" role="none">\n <slot></slot>\n </div>\n '])))),renderParts(e.content,this[Gs]),e}}]),Overlay}(function OpenCloseMixin(e){return function(e){_inherits(OpenClose,e);var t,r,n,o=_createSuper(OpenClose);function OpenClose(){return _classCallCheck(this,OpenClose),o.apply(this,arguments)}return _createClass(OpenClose,[{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,r){if("opened"===e){var n=booleanAttributeValue(e,r);this.opened!==n&&(this.opened=n)}else _get(_getPrototypeOf(OpenClose.prototype),"attributeChangedCallback",this).call(this,e,t,r)}},{key:"close",value:(n=_asyncToGenerator(regeneratorRuntime.mark((function _callee(e){return regeneratorRuntime.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:if(!_get(_getPrototypeOf(OpenClose.prototype),"close",this)){t.next=3;break}return t.next=3,_get(_getPrototypeOf(OpenClose.prototype),"close",this).call(this);case 3:return this[Ds]({closeResult:e}),t.next=6,this.toggle(!1);case 6:case"end":return t.stop()}}),_callee,this)}))),function close(e){return n.apply(this,arguments)})},{key:"closed",get:function get(){return this[Gs]&&!this[Gs].opened}},{key:"closeFinished",get:function get(){return this[Gs].closeFinished}},{key:"closeResult",get:function get(){return this[Gs].closeResult}},{key:ns,get:function get(){var e={closeResult:null,opened:!1};return this[Bs]&&Object.assign(e,{closeFinished:!0,effect:"close",effectPhase:"after",openCloseEffects:!0}),Object.assign(_get(_getPrototypeOf(OpenClose.prototype),ns,this)||{},e)}},{key:"open",value:(r=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){return regeneratorRuntime.wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:if(!_get(_getPrototypeOf(OpenClose.prototype),"open",this)){e.next=3;break}return e.next=3,_get(_getPrototypeOf(OpenClose.prototype),"open",this).call(this);case 3:return this[Ds]({closeResult:void 0}),e.next=6,this.toggle(!0);case 6:case"end":return e.stop()}}),_callee2,this)}))),function open(){return r.apply(this,arguments)})},{key:"opened",get:function get(){return this[Gs]&&this[Gs].opened}},{key:"opened",set:function set(e){this[Ds]({closeResult:void 0}),this.toggle(e)}},{key:As,value:function value(e){(_get(_getPrototypeOf(OpenClose.prototype),As,this).call(this,e),e.opened)&&setInternalState(this,"opened",this[Gs].opened);e.closeFinished&&setInternalState(this,"closed",this[Gs].closeFinished)}},{key:Ls,value:function value(e){if(_get(_getPrototypeOf(OpenClose.prototype),Ls,this)&&_get(_getPrototypeOf(OpenClose.prototype),Ls,this).call(this,e),e.opened&&this[Ts]){var t=new CustomEvent("openedchange",{bubbles:!0,detail:{closeResult:this[Gs].closeResult,opened:this[Gs].opened}});if(this.dispatchEvent(t),this[Gs].opened){var r=new CustomEvent("opened",{bubbles:!0});this.dispatchEvent(r);var n=new CustomEvent("open",{bubbles:!0});this.dispatchEvent(n)}else{var o=new CustomEvent("closed",{bubbles:!0,detail:{closeResult:this[Gs].closeResult}});this.dispatchEvent(o);var i=new CustomEvent("close",{bubbles:!0,detail:{closeResult:this[Gs].closeResult}});this.dispatchEvent(i)}}var a=this[Lc];this.closeFinished&&a&&(this[Lc]=null,this[jc]=null,a(this[Gs].closeResult))}},{key:$s,value:function value(e,t){var r=_get(_getPrototypeOf(OpenClose.prototype),$s,this)?_get(_getPrototypeOf(OpenClose.prototype),$s,this).call(this,e,t):{};if(t.openCloseEffects||t.effect||t.effectPhase||t.opened){var n=e.effect,o=e.effectPhase,i=e.openCloseEffects,a=e.opened,s=i?"close"===n&&"after"===o:!a;Object.assign(r,{closeFinished:s})}return r}},{key:"toggle",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var e,t,r=arguments;return regeneratorRuntime.wrap((function _callee3$(n){for(;;)switch(n.prev=n.next){case 0:if(e=r.length>0&&void 0!==r[0]?r[0]:!this.opened,!_get(_getPrototypeOf(OpenClose.prototype),"toggle",this)){n.next=4;break}return n.next=4,_get(_getPrototypeOf(OpenClose.prototype),"toggle",this).call(this,e);case 4:if(e===this[Gs].opened){n.next=10;break}return t={opened:e},this[Gs].openCloseEffects&&(t.effect=e?"open":"close","after"===this[Gs].effectPhase&&(t.effectPhase="before")),n.next=10,this[Ds](t);case 10:case"end":return n.stop()}}),_callee3,this)}))),function toggle(){return t.apply(this,arguments)})},{key:"whenClosed",value:function whenClosed(){var e=this;return this[jc]||(this[jc]=new Promise((function(t){e[Lc]=t}))),this[jc]}}]),OpenClose}(e)}(function OverlayMixin(e){return function(e){_inherits(Overlay,e);var t,r=_createSuper(Overlay);function Overlay(){return _classCallCheck(this,Overlay),r.apply(this,arguments)}return _createClass(Overlay,[{key:"autoFocus",get:function get(){return this[Gs].autoFocus},set:function set(e){this[Ds]({autoFocus:e})}},{key:ns,get:function get(){return Object.assign(_get(_getPrototypeOf(Overlay.prototype),ns,this)||{},{autoFocus:!0,persistent:!1})}},{key:"open",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:if(this[Gs].persistent||this.isConnected||(this[Vc]=!0,document.body.append(this)),!_get(_getPrototypeOf(Overlay.prototype),"open",this)){e.next=4;break}return e.next=4,_get(_getPrototypeOf(Overlay.prototype),"open",this).call(this);case 4:case"end":return e.stop()}}),_callee,this)}))),function open(){return t.apply(this,arguments)})},{key:As,value:function value(e){var t=this;(_get(_getPrototypeOf(Overlay.prototype),As,this)&&_get(_getPrototypeOf(Overlay.prototype),As,this).call(this,e),this[cs]&&this.addEventListener("blur",(function(e){var r=e.relatedTarget||document.activeElement;r instanceof HTMLElement&&(deepContains(t,r)||(t.opened?t[Wc]=r:(r.focus(),t[Wc]=null)))})),e.effectPhase||e.opened||e.persistent)&&(this[Gs].persistent||((void 0===this.closeFinished?this.closed:this.closeFinished)?this[Kc]&&(this.style.zIndex="",this[Kc]=null):this[Kc]?this.style.zIndex=this[Kc]:hasZIndex(this)||bringToFront(this)))}},{key:Ls,value:function value(e){if(_get(_getPrototypeOf(Overlay.prototype),Ls,this)&&_get(_getPrototypeOf(Overlay.prototype),Ls,this).call(this,e),this[cs]&&this[Gs].persistent&&!hasZIndex(this)&&bringToFront(this),e.opened&&this[Gs].autoFocus)if(this[Gs].opened){this[Wc]||document.activeElement===document.body||(this[Wc]=document.activeElement);var t=firstFocusableElement(this);t&&t.focus()}else this[Wc]&&(this[Wc].focus(),this[Wc]=null);!this[cs]&&!this[Gs].persistent&&this.closeFinished&&this[Vc]&&(this[Vc]=!1,this.parentNode&&this.parentNode.removeChild(this))}},{key:ec,get:function get(){var e=_get(_getPrototypeOf(Overlay.prototype),ec,this)||Gn.html(Bc||(Bc=_taggedTemplateLiteral([""])));return e.content.append(Bn(Gc||(Gc=_taggedTemplateLiteral(["\n <style>\n :host([closed]) {\n display: none;\n }\n </style>\n "])))),e}}]),Overlay}(e)}(function SlotContentMixin(e){return function(e){_inherits(SlotContent,e);var t=_createSuper(SlotContent);function SlotContent(){return _classCallCheck(this,SlotContent),t.apply(this,arguments)}return _createClass(SlotContent,[{key:rs,get:function get(){var e=this[Ns]&&this[Ns].querySelector("slot:not([name])");return this[Ns]&&e||console.warn("SlotContentMixin expects ".concat(this.constructor.name," to define a shadow tree that includes a default (unnamed) slot.\nSee https://elix.org/documentation/SlotContentMixin.")),e}},{key:ns,get:function get(){return Object.assign(_get(_getPrototypeOf(SlotContent.prototype),ns,this)||{},{content:null})}},{key:Ls,value:function value(e){var t=this;if(_get(_getPrototypeOf(SlotContent.prototype),Ls,this)&&_get(_getPrototypeOf(SlotContent.prototype),Ls,this).call(this,e),this[cs]){var r=this[rs];r&&r.addEventListener("slotchange",_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var e;return regeneratorRuntime.wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return t[Ts]=!0,e=r.assignedNodes({flatten:!0}),Object.freeze(e),t[Ds]({content:e}),n.next=6,Promise.resolve();case 6:t[Ts]=!1;case 7:case"end":return n.stop()}}),_callee)}))))}}}]),SlotContent}(e)}(Qa)))))))),Jc=function(e){_inherits(PlainModalBackdrop,e);var t=_createSuper(PlainModalBackdrop);function PlainModalBackdrop(){return _classCallCheck(this,PlainModalBackdrop),t.apply(this,arguments)}return _createClass(PlainModalBackdrop,[{key:ec,get:function get(){var e=_get(_getPrototypeOf(PlainModalBackdrop.prototype),ec,this);return e.content.append(Bn(Hc||(Hc=_taggedTemplateLiteral(["\n <style>\n :host {\n background: rgba(0, 0, 0, 0.2);\n }\n </style>\n "])))),e}}]),PlainModalBackdrop}(Tc),Xc=function(e){_inherits(PlainOverlayFrame,e);var t=_createSuper(PlainOverlayFrame);function PlainOverlayFrame(){return _classCallCheck(this,PlainOverlayFrame),t.apply(this,arguments)}return _createClass(PlainOverlayFrame,[{key:ec,get:function get(){var e=_get(_getPrototypeOf(PlainOverlayFrame.prototype),ec,this);return e.content.append(Bn(Zc||(Zc=_taggedTemplateLiteral(["\n <style>\n :host {\n background: white;\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);\n box-sizing: border-box;\n }\n </style>\n "])))),e}}]),PlainOverlayFrame}(Mc);var Qc=function(e){_inherits(ElixDialog,e);var t=_createSuper(ElixDialog);function ElixDialog(){return _classCallCheck(this,ElixDialog),t.apply(this,arguments)}return ElixDialog}(function(e){_inherits(PlainDialog,e);var t=_createSuper(PlainDialog);function PlainDialog(){return _classCallCheck(this,PlainDialog),t.apply(this,arguments)}return PlainDialog}(function PlainModalOverlayMixin(e){return function(e){_inherits(PlainModalOverlay,e);var t=_createSuper(PlainModalOverlay);function PlainModalOverlay(){return _classCallCheck(this,PlainModalOverlay),t.apply(this,arguments)}return _createClass(PlainModalOverlay,[{key:ns,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainModalOverlay.prototype),ns,this)||{},{backdropPartType:Jc,framePartType:Xc})}}]),PlainModalOverlay}(e)}(Yc)));customElements.define("elix-dialog",Qc);var eu=document.createElement("template");eu.innerHTML='\n <style>\n \n #dialog_content {\n margin: 10px 10px 5px 10px;\n background: #DDD;\n overflow: auto;\n text-align: left;\n border: 1px solid #B0B0B0;\n }\n\n #dialog_content p, #dialog_content select, #dialog_content label {\n margin: 10px;\n line-height: 1.3em;\n }\n \n #dialog_container {\n font-family: Verdana;\n text-align: center;\n left: 50%;\n top: 50%;\n max-width: 400px;\n z-index: 50001;\n background: #CCC;\n border: 1px outset #777;\n font-family:Verdana,Helvetica,sans-serif;\n font-size:0.8em;\n }\n \n #dialog_container, #dialog_content {\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n \n #dialog_buttons input[type=text] {\n width: 90%;\n display: block;\n margin: 0 0 5px 11px;\n }\n \n #dialog_buttons input[type=button] {\n margin: 0 1em;\n }\n </style>\n <elix-dialog id="dialog_box" aria-label="SVG-Edit storage preferences" closed>\n <div class="overlay"></div>\n <div id="dialog_container">\n <div id="dialog_content">\n <p> \n By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.\n </p>\n <select id="se-storage-pref">\n <option value="prefsAndContent">Store preferences and SVG content locally</option>\n <option value="prefsOnly">Only store preferences locally</option>\n <option value="noPrefsOrContent">Do not store my preferences or SVG content locally</option>\n </select> \n <label title="If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again.">\n Remember this choice?<input type="checkbox" id="se-remember" value="" checked>\n </label> \n </div>\n <div id="dialog_buttons">\n <button id="storage_ok">\n <img class="svg_icon" src="./images/ok.svg" alt="icon" width="16" height="16" />\n Ok\n </button>\n <button id="storage_cancel">\n <img class="svg_icon" src="./images/cancel.svg" alt="icon" width="16" height="16" />\n Cancel\n </button>\n </div>\n </div>\n </elix-dialog>\n';var tu=function(e){_inherits(SeStorageDialog,e);var t=_createSuper(SeStorageDialog);function SeStorageDialog(){var e;return _classCallCheck(this,SeStorageDialog),(e=t.call(this))._shadowRoot=e.attachShadow({mode:"open"}),e._shadowRoot.append(eu.content.cloneNode(!0)),e.$dialog=e._shadowRoot.querySelector("#dialog_box"),e.$storage=e._shadowRoot.querySelector("#js-storage"),e.$okBtn=e._shadowRoot.querySelector("#storage_ok"),e.$cancelBtn=e._shadowRoot.querySelector("#storage_cancel"),e.$storageInput=e._shadowRoot.querySelector("#se-storage-pref"),e.$rememberInput=e._shadowRoot.querySelector("#se-remember"),e}return _createClass(SeStorageDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,r){switch(e){case"dialog":"open"===r?this.$dialog.open():this.$dialog.close();break;case"storage":this.$storageInput.options[0].disabled="true"!==r}}},{key:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(e){this.setAttribute("dialog",e)}},{key:"connectedCallback",value:function connectedCallback(){var e=this,t=function onSubmitHandler(t,r){var n=new CustomEvent("change",{detail:{trigger:r,select:e.$storageInput.value,checkbox:e.$rememberInput.checked}});e.dispatchEvent(n)};this.$okBtn.addEventListener("click",(function(e){return t(0,"ok")})),this.$cancelBtn.addEventListener("click",(function(e){return t(0,"cancel")}))}},{key:"setSVGContentStorage",value:function setSVGContentStorage(e){if(this.storage){var t="svgedit-"+this.configObj.curConfig.canvasName;e?this.storage.setItem(t,e):this.storage.removeItem(t)}}}],[{key:"observedAttributes",get:function get(){return["dialog","storage"]}}]),SeStorageDialog}(_wrapNativeSuper(HTMLElement));customElements.define("se-storage-dialog",tu);var ru=function removeStoragePrefCookie(){nu("svgeditstore")},nu=function expireCookie(e){document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"},ou=function replaceStoragePrompt(e){e=e?"storagePrompt="+e:"";var t=top.location;t.href.includes("storagePrompt=")?t.href=t.href.replace(/([&?])storagePrompt=[^&]*(&?)/,(function(t,r,n){return(e?r:"")+e+(!e&&n?r:n||"")})):t.href+=(t.href.includes("?")?"&":"?")+e};e("default",{name:"storage",init:function init(e){var t=this;e.$;var r=this,n=r.svgCanvas,o=r.configObj.curConfig,i=o.noStorageOnLoad,a=o.forceStorage,s=r.storage,c=document.createElement("se-storage-dialog");function setupBeforeUnloadListener(){window.addEventListener("beforeunload",(function(e){if(/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/.test(document.cookie)){/(?:^|;\s*)svgeditstore=prefsAndContent/.test(document.cookie)&&function setSVGContentStorage(e){if(s){var t="svgedit-"+r.configObj.curConfig.canvasName;e?s.setItem(t,e):s.removeItem(t)}}(n.getSvgString()),r.setConfig({no_save_warning:!0});var t=r.configObj.curPrefs;Object.entries(t).forEach((function(e){var t=_slicedToArray(e,2),r=t[0],n=t[1];r="svg-edit-"+r,void 0!==n&&(s?s.setItem(r,n):window.widget?window.widget.setPreferenceForKey(n,r):(n=encodeURIComponent(n),document.cookie=encodeURIComponent(r)+"="+n+"; expires=Fri, 31 Dec 9999 23:59:59 GMT"))}))}}))}c.setAttribute("id","se-storage-dialog"),document.body.append(c),c.addEventListener("change",(function(e){var n,o,i;if(c.setAttribute("dialog","close"),"ok"===(null==e||null===(n=e.detail)||void 0===n?void 0:n.trigger))if("noPrefsOrContent"!==(null==e||null===(i=e.detail)||void 0===i?void 0:i.select)){var a,s=new URL(top.location).searchParams.get("storagePrompt");if(document.cookie="svgeditstore="+encodeURIComponent(e.detail.select)+"; expires=Fri, 31 Dec 9999 23:59:59 GMT","true"===s&&null!=e&&null!==(a=e.detail)&&void 0!==a&&a.checkbox)return void ou()}else{var u,l,f;if(ru(),r.configObj.curConfig.emptyStorageOnDecline&&null!=e&&null!==(u=e.detail)&&void 0!==u&&u.checkbox&&(t.setSVGContentStorage(""),Object.keys(r.curPrefs).forEach((function(e){e="svg-edit-"+e,r.storage&&r.storage.removeItem(e),nu(e)}))),null!=e&&null!==(l=e.detail)&&void 0!==l&&l.select&&null!=e&&null!==(f=e.detail)&&void 0!==f&&f.checkbox)return void ou("false")}else"cancel"===(null==e||null===(o=e.detail)||void 0===o?void 0:o.trigger)&&ru();setupBeforeUnloadListener(),r.storagePromptState="closed",r.updateCanvas(!0)}));var u=!1;return{name:"storage",langReady:function langReady(e){e.lang;var t=new URL(top.location).searchParams.get("storagePrompt");if(!u)if(u=!0,a||"true"!==t&&("false"===t||/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/.test(document.cookie)))i&&!a||setupBeforeUnloadListener();else{var n=Boolean(s);r.storagePromptState="waiting";var o=document.getElementById("se-storage-dialog");o.setAttribute("dialog","open"),o.setAttribute("storage",n)}}}}})}}}));
|