* #issue-fix The new menu will ask if you want to erase the current content but it will ignore the answer * #issue-fix dialog needs to be closer than the original * #issue-fix main menu alignment changes * #issue_fix double click and opensvg issue fixed * #issue-fix process_cancel change to seConfirm * #issue-fix review how the top toolbar display when many buttons are displayed * #issue-fix unwanted css reoved * #issue-fix BOTTOM TOOLS Make sure all features of the bottom toolbar are working * #issue-fix IMPORT IMAGE menu open issue fixed * #issue-fix alert dialog overwrite style * #issue-fix lint issue fixed * npm update + associated fixes * #36 look of opacity button should like the zoom button (without the dropdown button) * #37 Clicking anywhere on the bottom bar (for example below the opacity button is displaying the “color popup”.) * #38 The opacity button does not update with the current element * #42 When you import an image, it works well but the dialog should disappear automatically * Fixes #53: 4th option for the background display fixed * Fixes #53: 4th option for the background fixed * #49 the x button does not work * Fixes #41: Alignment fixes in bottom bar * fix test scenario * #39 opacity button/stroke size/radius button don’t allow the 0 value * #41 The look and alignment of stroke size and stroke style should be consistent with the rest of the bottom bar. * #44 Text font dropdown is broken * #52 Fix the export * Fixes #44: Text font dropdown fixed * Fixes #44: Text font dropdown fixed * Fixes #44: Text font dropdown fixed * Fixes #44: Text font dropdown fixed * Update index.html * update husky * fixes * moves from index.html to js * fix #66 * fix #48 first set of new icons * Reorganize tools in left panel to be more intuitive * Update button styles to adapt to new icons * Fix #48 new set of icons for alignments * Variabilisation of icon bkgd colors Update of color choice to fit new icons design * Update canvas and rulers colors * Improve layer handle design * Modernize SVG Logo but keeping original spirit * Fix #48 continue improve icons * Continue to reorganise left panel * Update right panel handle for layers * Fix #48 new set of icons for main menu * Improve main menu design * Rework menu organisation * Rework menu organisation * Update input element design * New icons * Improve Zoom Module * Improve Color Picker Module * New icons * New icons * #65 restore the feature of start/end marker lines partially did * #64 The export dialog needs to include the quality options (except for PDF) * #39 opacity button/stroke size/radius button don’t allow the 0 value * #39 eslint changes * #69 menu button style overwrite * #65 restore the feature of start/end marker lines * #43 With a small window, the look of the top toolbar is broken * #43 tool top alignment revert * #46 Move this jQuery component to a web component for graduate and picker components * #46 Move this jQuery component to a web component * remove some non standard lint rules * #46 picker convert as pure javascript changes * #46 jquery plugin convert to pure javascript * #46 jquery plugin change to pure javascript * #46 jquery remove and convert to pure javascript * #46 slider issue fixed * #46 ColorValuePicker and js convertion * #46 globals $ remov from slider class * #46 jquery convert pure javascript changes * #46 jquery to js convertion changes * #46 paintbox and current element color set issue fixed * #46 unwanted files removed * #46 $.extend modify changes * #46 extend modifiey changes * #46 $.extend change to pure javascript * #46 extend and data changes * #46 jquery removed * #45 These buttons don't work and dropdown is broken * #45 These buttons don't work and dropdown is broken * #45 These buttons don't work and dropdown is broken commit reverted * #43 With a small window, the look of the top toolbar is broken * Update jQuery.jPicker.js * #76 draggable modification changes * #76 jquery-ui-1.8.17.custom.min.js removed from editor * #76 jquery ui file removed * npm update * #77 console issue fixed * #77 <SVG> button issue fixed * #77 shortkey issue fixed * #77 jquery hotkeys plugin changes * #77 hotkey plugin related changes * #78 hotkey related code comment. * #78 js-hotkeys/jquery.hotkeys.min.js file removed from svgedit.js * #51 Rewrite the color palette without elix * #81 unwanted files removed * #81 folder name renamed * #81 folder rename changes * #81 jquery-ui folder renamed * #81 jquery modify changes * #81 globals $ removed Co-authored-by: Agriya Dev5 <agriya.dev5@agriya.in> Co-authored-by: mathieucura <mathieu@optimistik.fr>
3 lines
119 KiB
JavaScript
3 lines
119 KiB
JavaScript
var e="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},t=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof e&&e)||function(){return this}()||Function("return this")(),fails=function(e){try{return!!e()}catch(e){return!0}},r=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i={f:o&&!n.call({1:2},1)?function propertyIsEnumerable(e){var t=o(this,e);return!!t&&t.enumerable}:n},createPropertyDescriptor=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},a={}.toString,classofRaw=function(e){return a.call(e).slice(8,-1)},s="".split,c=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==classofRaw(e)?s.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 c(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")},u={}.hasOwnProperty,has=function(e,t){return u.call(e,t)},l=t.document,f=isObject(l)&&isObject(l.createElement),documentCreateElement=function(e){return f?l.createElement(e):{}},p=!r&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),h=Object.getOwnPropertyDescriptor,d={f:r?h:function getOwnPropertyDescriptor(e,t){if(e=toIndexedObject(e),t=toPrimitive(t,!0),p)try{return h(e,t)}catch(e){}if(has(e,t))return createPropertyDescriptor(!i.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,y={f:r?g:function defineProperty(e,t,r){if(anObject(e),t=toPrimitive(t,!0),anObject(r),p)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}},v=r?function(e,t,r){return y.f(e,t,createPropertyDescriptor(1,r))}:function(e,t,r){return e[t]=r,e},setGlobal=function(e,r){try{v(t,e,r)}catch(n){t[e]=r}return r},m=t["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),b=Function.toString;"function"!=typeof m.inspectSource&&(m.inspectSource=function(e){return b.call(e)});var _,S,w,O=m.inspectSource,x=t.WeakMap,k="function"==typeof x&&/native code/.test(O(x)),P=createCommonjsModule((function(e){(e.exports=function(e,t){return m[e]||(m[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),E=0,C=Math.random(),uid=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++E+C).toString(36)},R=P("keys"),sharedKey=function(e){return R[e]||(R[e]=uid(e))},I={},j=t.WeakMap;if(k){var A=m.state||(m.state=new j),T=A.get,L=A.has,M=A.set;_=function(e,t){return t.facade=e,M.call(A,e,t),t},S=function(e){return T.call(A,e)||{}},w=function(e){return L.call(A,e)}}else{var D=sharedKey("state");I[D]=!0,_=function(e,t){return t.facade=e,v(e,D,t),t},S=function(e){return has(e,D)?e[D]:{}},w=function(e){return has(e,D)}}var N={set:_,get:S,has:w,enforce:function(e){return w(e)?S(e):_(e,{})},getterFor:function(e){return function(t){var r;if(!isObject(t)||(r=S(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},U=createCommonjsModule((function(e){var r=N.get,n=N.enforce,o=String(String).split("String");(e.exports=function(e,r,i,a){var s,c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof r||has(i,"name")||v(i,"name",r),(s=n(i)).source||(s.source=o.join("string"==typeof r?r:""))),e!==t?(c?!l&&e[r]&&(u=!0):delete e[r],u?e[r]=i:v(e,r,i)):u?e[r]=i:setGlobal(r,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&r(this).source||O(this)}))})),$=t,aFunction=function(e){return"function"==typeof e?e:void 0},getBuiltIn=function(e,r){return arguments.length<2?aFunction($[e])||aFunction(t[e]):$[e]&&$[e][r]||t[e]&&t[e][r]},B=Math.ceil,G=Math.floor,toInteger=function(e){return isNaN(e=+e)?0:(e>0?G:B)(e)},z=Math.min,toLength=function(e){return e>0?z(toInteger(e),9007199254740991):0},q=Math.max,V=Math.min,toAbsoluteIndex=function(e,t){var r=toInteger(e);return r<0?q(r+t,0):V(r,t)},createMethod=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}},K={includes:createMethod(!0),indexOf:createMethod(!1)},W=K.indexOf,objectKeysInternal=function(e,t){var r,n=toIndexedObject(e),o=0,i=[];for(r in n)!has(I,r)&&has(n,r)&&i.push(r);for(;t.length>o;)has(n,r=t[o++])&&(~W(i,r)||i.push(r));return i},H=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Z=H.concat("length","prototype"),Y={f:Object.getOwnPropertyNames||function getOwnPropertyNames(e){return objectKeysInternal(e,Z)}},J={f:Object.getOwnPropertySymbols},X=getBuiltIn("Reflect","ownKeys")||function ownKeys(e){var t=Y.f(anObject(e)),r=J.f;return r?t.concat(r(e)):t},copyConstructorProperties=function(e,t){for(var r=X(t),n=y.f,o=d.f,i=0;i<r.length;i++){var a=r[i];has(e,a)||n(e,a,o(t,a))}},Q=/#|\.prototype\./,isForced=function(e,t){var r=te[ee(e)];return r==ne||r!=re&&("function"==typeof t?fails(t):!!t)},ee=isForced.normalize=function(e){return String(e).replace(Q,".").toLowerCase()},te=isForced.data={},re=isForced.NATIVE="N",ne=isForced.POLYFILL="P",oe=isForced,ie=d.f,_export=function(e,r){var n,o,i,a,s,c=e.target,u=e.global,l=e.stat;if(n=u?t:l?t[c]||setGlobal(c,{}):(t[c]||{}).prototype)for(o in r){if(a=r[o],i=e.noTargetGet?(s=ie(n,o))&&s.value:n[o],!oe(u?o:c+(l?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;copyConstructorProperties(a,i)}(e.sham||i&&i.sham)&&v(a,"sham",!0),U(n,o,a,e)}},aFunction$1=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},functionBindContext=function(e,t,r){if(aFunction$1(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)}},toObject=function(e){return Object(requireObjectCoercible(e))},ae=Array.isArray||function isArray(e){return"Array"==classofRaw(e)},se=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),ce=se&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=P("wks"),le=t.Symbol,fe=ce?le:le&&le.withoutSetter||uid,wellKnownSymbol=function(e){return has(ue,e)||(se&&has(le,e)?ue[e]=le[e]:ue[e]=fe("Symbol."+e)),ue[e]},pe=wellKnownSymbol("species"),arraySpeciesCreate=function(e,t){var r;return ae(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!ae(r.prototype)?isObject(r)&&null===(r=r[pe])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)},he=[].push,createMethod$1=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(u,l,f,p){for(var h,d,g=toObject(u),y=c(g),v=functionBindContext(l,f,3),m=toLength(y.length),b=0,_=p||arraySpeciesCreate,S=t?_(u,m):r||a?_(u,0):void 0;m>b;b++)if((s||b in y)&&(d=v(h=y[b],b,g),e))if(t)S[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:he.call(S,h)}else switch(e){case 4:return!1;case 7:he.call(S,h)}return i?-1:n||o?o:S}},de={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6),filterOut:createMethod$1(7)},arrayMethodIsStrict=function(e,t){var r=[][e];return!!r&&fails((function(){r.call(null,t||function(){throw 1},1)}))},ge=Object.defineProperty,ye={},thrower=function(e){throw e},arrayMethodUsesToLength=function(e,t){if(has(ye,e))return ye[e];t||(t={});var n=[][e],o=!!has(t,"ACCESSORS")&&t.ACCESSORS,i=has(t,0)?t[0]:thrower,a=has(t,1)?t[1]:void 0;return ye[e]=!!n&&!fails((function(){if(o&&!r)return!0;var e={length:-1};o?ge(e,1,{enumerable:!0,get:thrower}):e[1]=1,n.call(e,i,a)}))},ve=de.forEach,me=arrayMethodIsStrict("forEach"),be=arrayMethodUsesToLength("forEach"),_e=me&&be?[].forEach:function forEach(e){return ve(this,e,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=_e},{forEach:_e});var Se,we=Object.keys||function keys(e){return objectKeysInternal(e,H)},Oe=r?Object.defineProperties:function defineProperties(e,t){anObject(e);for(var r,n=we(t),o=n.length,i=0;o>i;)y.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{Se=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;NullProtoObject=Se?function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Se):((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=H.length;r--;)delete NullProtoObject.prototype[H[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]&&y.f(Ce,Ee,{configurable:!0,value:Pe(null)});var addToUnscopables=function(e){Ce[Ee][e]=!0},Re=K.includes,Ie=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Ie},{includes:function includes(e){return Re(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var je,Ae,Te,Le={},Me=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Fe=sharedKey("IE_PROTO"),De=Object.prototype,Ne=Me?Object.getPrototypeOf:function(e){return e=toObject(e),has(e,Fe)?e[Fe]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?De:null},Ue=wellKnownSymbol("iterator"),$e=!1;[].keys&&("next"in(Te=[].keys())?(Ae=Ne(Ne(Te)))!==Object.prototype&&(je=Ae):$e=!0),(null==je||fails((function(){var e={};return je[Ue].call(e)!==e})))&&(je={}),has(je,Ue)||v(je,Ue,(function(){return this}));var Be={IteratorPrototype:je,BUGGY_SAFARI_ITERATORS:$e},Ge=y.f,ze=wellKnownSymbol("toStringTag"),setToStringTag=function(e,t,r){e&&!has(e=r?e:e.prototype,ze)&&Ge(e,ze,{configurable:!0,value:t})},qe=Be.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(e,t,r){var n=t+" Iterator";return e.prototype=Pe(qe,{next:createPropertyDescriptor(1,r)}),setToStringTag(e,n,!1),Le[n]=returnThis$1,e},Ve=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),Ke=Be.IteratorPrototype,We=Be.BUGGY_SAFARI_ITERATORS,He=wellKnownSymbol("iterator"),returnThis$2=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(!We&&e in p)return p[e];switch(e){case"keys":return function keys(){return new r(this,e)};case"values":return function values(){return new r(this,e)};case"entries":return function entries(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[He]||p["@@iterator"]||o&&p[o],d=!We&&h||getIterationMethod(o),g="Array"==t&&p.entries||h;if(g&&(s=Ne(g.call(new e)),Ke!==Object.prototype&&s.next&&(Ne(s)!==Ke&&(Ve?Ve(s,Ke):"function"!=typeof s[He]&&v(s,He,returnThis$2)),setToStringTag(s,l,!0))),"values"==o&&h&&"values"!==h.name&&(f=!0,d=function values(){return h.call(this)}),p[He]!==d&&v(p,He,d),Le[t]=d,o)if(c={values:getIterationMethod("values"),keys:i?d:getIterationMethod("keys"),entries:getIterationMethod("entries")},a)for(u in c)(We||f||!(u in p))&&U(p,u,c[u]);else _export({target:t,proto:!0,forced:We||f},c);return c},Ze=N.set,Ye=N.getterFor("Array Iterator"),Je=defineIterator(Array,"Array",(function(e,t){Ze(this,{type:"Array Iterator",target:toIndexedObject(e),index:0,kind:t})}),(function(){var e=Ye(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");Le.Arguments=Le.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var Xe=i.f,createMethod$2=function(e){return function(t){for(var n,o=toIndexedObject(t),i=we(o),a=i.length,s=0,c=[];a>s;)n=i[s++],r&&!Xe.call(o,n)||c.push(e?[n,o[n]]:o[n]);return c}},Qe={entries:createMethod$2(!0),values:createMethod$2(!1)}.entries;_export({target:"Object",stat:!0},{entries:function entries(e){return Qe(e)}});var et=fails((function(){we(1)}));_export({target:"Object",stat:!0,forced:et},{keys:function keys(e){return we(toObject(e))}});var tt={};tt[wellKnownSymbol("toStringTag")]="z";var rt="[object z]"===String(tt),nt=wellKnownSymbol("toStringTag"),ot="Arguments"==classofRaw(function(){return arguments}()),it=rt?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),nt))?r:ot?classofRaw(t):"Object"==(n=classofRaw(t))&&"function"==typeof t.callee?"Arguments":n},at=rt?{}.toString:function toString(){return"[object "+it(this)+"]"};rt||U(Object.prototype,"toString",at,{unsafe:!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 st,ct,ut={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")}))},lt=RegExp.prototype.exec,ft=String.prototype.replace,pt=lt,ht=(st=/a/,ct=/b*/g,lt.call(st,"a"),lt.call(ct,"a"),0!==st.lastIndex||0!==ct.lastIndex),dt=ut.UNSUPPORTED_Y||ut.BROKEN_CARET,gt=void 0!==/()??/.exec("")[1];(ht||gt||dt)&&(pt=function exec(e){var t,r,n,o,i=this,a=dt&&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)),gt&&(r=new RegExp("^"+c+"$(?!\\s)",s)),ht&&(t=i.lastIndex),n=lt.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:ht&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),gt&&n&&n.length>1&&ft.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var yt=pt;_export({target:"RegExp",proto:!0,forced:/./.exec!==yt},{exec:yt});var vt=wellKnownSymbol("match"),notARegexp=function(e){if(function(e){var t;return isObject(e)&&(void 0!==(t=e[vt])?!!t:"RegExp"==classofRaw(e))}(e))throw TypeError("The method doesn't accept regular expressions");return e},mt=wellKnownSymbol("match");_export({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[mt]=!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 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}},bt={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)},_t=bt.charAt,St=N.set,wt=N.getterFor("String Iterator");defineIterator(String,"String",(function(e){St(this,{type:"String Iterator",string:String(e),index:0})}),(function next(){var e,t=wt(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=_t(r,n),t.index+=e.length,{value:e,done:!1})}));var Ot=wellKnownSymbol("species"),xt=!fails((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),kt="$0"==="a".replace(/./,"$0"),Pt=wellKnownSymbol("replace"),Et=!!/./[Pt]&&""===/./[Pt]("a","$0"),Ct=!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[Ot]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||"replace"===e&&(!xt||!kt||Et)||"split"===e&&!Ct){var s=/./[o],c=r(o,""[e],(function(e,t,r,n,o){return t.exec===yt?i&&!o?{done:!0,value:s.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:kt,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Et}),u=c[0],l=c[1];U(String.prototype,e,u),U(RegExp.prototype,o,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)})}n&&v(RegExp.prototype[o],"sham",!0)},Rt=bt.charAt,advanceStringIndex=function(e,t,r){return t+(r?Rt(e,t).length:1)},It=Math.floor,jt="".replace,At=/\$([$&'`]|\d\d?|<[^>]*>)/g,Tt=/\$([$&'`]|\d\d?)/g,getSubstitution=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=Tt;return void 0!==o&&(o=toObject(o),c=At),jt.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=It(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 yt.call(e,t)},Lt=Math.max,Mt=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 g,y="",v=0,m=0;m<h.length;m++){d=h[m];for(var b=String(d[0]),_=Lt(Mt(toInteger(d.index),u.length),0),S=[],w=1;w<d.length;w++)S.push(void 0===(g=d[w])?g:String(g));var O=d.groups;if(l){var x=[b].concat(S,_,u);void 0!==O&&x.push(O);var k=String(n.apply(void 0,x))}else k=getSubstitution(b,u,_,S,O,n);_>=v&&(y+=u.slice(v,_)+k,v=_+b.length)}return y+u.slice(v)}]}));var Ft={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};for(var Dt in Ft){var Nt=t[Dt],Ut=Nt&&Nt.prototype;if(Ut&&Ut.forEach!==_e)try{v(Ut,"forEach",_e)}catch(e){Ut.forEach=_e}}var $t=wellKnownSymbol("iterator"),Bt=wellKnownSymbol("toStringTag"),Gt=Je.values;for(var zt in Ft){var qt=t[zt],Vt=qt&&qt.prototype;if(Vt){if(Vt[$t]!==Gt)try{v(Vt,$t,Gt)}catch(e){Vt[$t]=Gt}if(Vt[Bt]||v(Vt,Bt,zt),Ft[zt])for(var Kt in Je)if(Vt[Kt]!==Je[Kt])try{v(Vt,Kt,Je[Kt])}catch(e){Vt[Kt]=Je[Kt]}}}var Wt=wellKnownSymbol("iterator"),Ht=!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[Wt]||"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},Zt=Object.assign,Yt=Object.defineProperty,Jt=!Zt||fails((function(){if(r&&1!==Zt({b:1},Zt(Yt({},"a",{enumerable:!0,get:function(){Yt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=Zt({},e)[n]||we(Zt({},t)).join("")!=o}))?function assign(e,t){for(var n=toObject(e),o=arguments.length,a=1,s=J.f,u=i.f;o>a;)for(var l,f=c(arguments[a++]),p=s?we(f).concat(s(f)):we(f),h=p.length,d=0;h>d;)l=p[d++],r&&!u.call(f,l)||(n[l]=f[l]);return n}:Zt,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}},Xt=wellKnownSymbol("iterator"),Qt=Array.prototype,isArrayIteratorMethod=function(e){return void 0!==e&&(Le.Array===e||Qt[Xt]===e)},createProperty=function(e,t,r){var n=toPrimitive(t);n in e?y.f(e,n,createPropertyDescriptor(0,r)):e[n]=r},er=wellKnownSymbol("iterator"),getIteratorMethod=function(e){if(null!=e)return e[er]||e["@@iterator"]||Le[it(e)]},tr=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},rr=/[^\0-\u007E]/,nr=/[.\u3002\uFF0E\uFF61]/g,or="Overflow: input needs wider integers to process",ir=Math.floor,ar=String.fromCharCode,digitToBasic=function(e){return e+22+75*(e<26)},adapt=function(e,t,r){var n=0;for(e=r?ir(e/700):e>>1,e+=ir(e/t);e>455;n+=36)e=ir(e/35);return ir(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(ar(r));var c=n.length,u=c;for(c&&n.push("-");u<o;){var l=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<l&&(l=r);var f=u+1;if(l-i>ir((2147483647-a)/f))throw RangeError(or);for(a+=(l-i)*f,i=l,t=0;t<e.length;t++){if((r=e[t])<i&&++a>2147483647)throw RangeError(or);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 g=p-d,y=36-d;n.push(ar(digitToBasic(d+g%y))),p=ir(g/y)}n.push(ar(digitToBasic(p))),s=adapt(a,f,u==c),a=0,++u}}++a,++i}return n.join("")},redefineAll=function(e,t,r){for(var n in t)U(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))},sr=getBuiltIn("fetch"),cr=getBuiltIn("Headers"),ur=wellKnownSymbol("iterator"),lr=N.set,fr=N.getterFor("URLSearchParams"),pr=N.getterFor("URLSearchParamsIterator"),hr=/\+/g,dr=Array(4),percentSequence=function(e){return dr[e-1]||(dr[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(hr," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(percentSequence(r--),percentDecode);return t}},gr=/[!'()~]|%20/g,yr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return yr[e]},serialize=function(e){return encodeURIComponent(e).replace(gr,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")},vr=createIteratorConstructor((function Iterator(e,t){lr(this,{type:"URLSearchParamsIterator",iterator:getIterator(fr(e).entries),kind:t})}),"Iterator",(function next(){var e=pr(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})),mr=function URLSearchParams(){anInstance(this,mr,"URLSearchParams");var e,t,r,n,o,i,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,f=[];if(lr(l,{type:"URLSearchParams",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(u,c)&&f.push({key:c,value:u[c]+""});else parseSearchParams(f,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},br=mr.prototype;redefineAll(br,{append:function append(e,t){validateArgumentsLength(arguments.length,2);var r=fr(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){validateArgumentsLength(arguments.length,1);for(var t=fr(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=fr(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=fr(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=fr(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=fr(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=fr(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=fr(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 vr(this,"keys")},values:function values(){return new vr(this,"values")},entries:function entries(){return new vr(this,"entries")}},{enumerable:!0}),U(br,ur,br.entries),U(br,"toString",(function toString(){for(var e,t=fr(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(mr,"URLSearchParams"),_export({global:!0,forced:!Ht},{URLSearchParams:mr}),Ht||"function"!=typeof sr||"function"!=typeof cr||_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,"URLSearchParams"===it(r)&&((n=t.headers?new cr(t.headers):new cr).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)),sr.apply(this,o)}});var _r,Sr={URLSearchParams:mr,getState:fr},wr=bt.codeAt,Or=t.URL,xr=Sr.URLSearchParams,kr=Sr.getState,Pr=N.set,Er=N.getterFor("URL"),Cr=Math.floor,Rr=Math.pow,Ir=/[A-Za-z]/,jr=/[\d+-.A-Za-z]/,Ar=/\d/,Tr=/^(0x|0X)/,Lr=/^[0-7]+$/,Mr=/^\d+$/,Fr=/^[\dA-Fa-f]+$/,Dr=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Nr=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Ur=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,$r=/[\u0009\u000A\u000D]/g,parseHost=function(e,t){var r,n,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(r=parseIPv6(t.slice(1,-1))))return"Invalid host";e.host=r}else if(isSpecial(e)){if(t=function(e){var t,r,n=[],o=e.toLowerCase().replace(nr,".").split(".");for(t=0;t<o.length;t++)r=o[t],n.push(rr.test(r)?"xn--"+encode(r):r);return n.join(".")}(t),Dr.test(t))return"Invalid host";if(null===(r=parseIPv4(t)))return"Invalid host";e.host=r}else{if(Nr.test(t))return"Invalid host";for(r="",n=tr(t),o=0;o<n.length;o++)r+=percentEncode(n[o],Br);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=Tr.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?Mr:8==i?Lr:Fr).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>=Rr(256,5-t))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*Rr(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&&Fr.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(!Ar.test(char()))return;for(;Ar.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=Cr(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},Br={},Gr=Jt({},Br,{" ":1,'"':1,"<":1,">":1,"`":1}),zr=Jt({},Gr,{"#":1,"?":1,"{":1,"}":1}),qr=Jt({},zr,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(e,t){var r=wr(e,0);return r>32&&r<127&&!has(t,e)?e:encodeURIComponent(e)},Vr={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(e){return has(Vr,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&&Ir.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()},Kr={},Wr={},Hr={},Zr={},Yr={},Jr={},Xr={},Qr={},en={},tn={},rn={},nn={},on={},an={},sn={},cn={},un={},ln={},fn={},pn={},hn={},parseURL=function(e,t,r,n){var o,i,a,s,c,u=r||Kr,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(Ur,"")),t=t.replace($r,""),o=tr(t);l<=o.length;){switch(i=o[l],u){case Kr:if(!i||!Ir.test(i)){if(r)return"Invalid scheme";u=Hr;continue}f+=i.toLowerCase(),u=Wr;break;case Wr:if(i&&(jr.test(i)||"+"==i||"-"==i||"."==i))f+=i.toLowerCase();else{if(":"!=i){if(r)return"Invalid scheme";f="",u=Hr,l=0;continue}if(r&&(isSpecial(e)!=has(Vr,f)||"file"==f&&(includesCredentials(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,r)return void(isSpecial(e)&&Vr[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=an:isSpecial(e)&&n&&n.scheme==e.scheme?u=Zr:isSpecial(e)?u=Qr:"/"==o[l+1]?(u=Yr,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=fn)}break;case Hr:if(!n||n.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==i){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,u=hn;break}u="file"==n.scheme?an:Jr;continue;case Zr:if("/"!=i||"/"!=o[l+1]){u=Jr;continue}u=en,l++;break;case Yr:if("/"==i){u=tn;break}u=ln;continue;case Jr:if(e.scheme=n.scheme,i==_r)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=Xr;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=pn;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=ln;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=hn}break;case Xr:if(!isSpecial(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,u=ln;continue}u=tn}else u=en;break;case Qr:if(u=en,"/"!=i||"/"!=f.charAt(l+1))continue;l++;break;case en:if("/"!=i&&"\\"!=i){u=tn;continue}break;case tn:if("@"==i){p&&(f="%40"+f),p=!0,a=tr(f);for(var g=0;g<a.length;g++){var y=a[g];if(":"!=y||d){var v=percentEncode(y,qr);d?e.password+=v:e.username+=v}else d=!0}f=""}else if(i==_r||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)){if(p&&""==f)return"Invalid authority";l-=tr(f).length+1,f="",u=rn}else f+=i;break;case rn:case nn:if(r&&"file"==e.scheme){u=cn;continue}if(":"!=i||h){if(i==_r||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)){if(isSpecial(e)&&""==f)return"Invalid host";if(r&&""==f&&(includesCredentials(e)||null!==e.port))return;if(s=parseHost(e,f))return s;if(f="",u=un,r)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return"Invalid host";if(s=parseHost(e,f))return s;if(f="",u=on,r==nn)return}break;case on:if(!Ar.test(i)){if(i==_r||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)||r){if(""!=f){var m=parseInt(f,10);if(m>65535)return"Invalid port";e.port=isSpecial(e)&&m===Vr[e.scheme]?null:m,f=""}if(r)return;u=un;continue}return"Invalid port"}f+=i;break;case an:if(e.scheme="file","/"==i||"\\"==i)u=sn;else{if(!n||"file"!=n.scheme){u=ln;continue}if(i==_r)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=pn;else{if("#"!=i){startsWithWindowsDriveLetter(o.slice(l).join(""))||(e.host=n.host,e.path=n.path.slice(),shortenURLsPath(e)),u=ln;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",u=hn}}break;case sn:if("/"==i||"\\"==i){u=cn;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=ln;continue;case cn:if(i==_r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&isWindowsDriveLetter(f))u=ln;else if(""==f){if(e.host="",r)return;u=un}else{if(s=parseHost(e,f))return s;if("localhost"==e.host&&(e.host=""),r)return;f="",u=un}continue}f+=i;break;case un:if(isSpecial(e)){if(u=ln,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=_r&&(u=ln,"/"!=i))continue}else e.fragment="",u=hn;else e.query="",u=pn;break;case ln:if(i==_r||"/"==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==_r||"?"==i||"#"==i))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==i?(e.query="",u=pn):"#"==i&&(e.fragment="",u=hn)}else f+=percentEncode(i,zr);break;case fn:"?"==i?(e.query="",u=pn):"#"==i?(e.fragment="",u=hn):i!=_r&&(e.path[0]+=percentEncode(i,Br));break;case pn:r||"#"!=i?i!=_r&&("'"==i&&isSpecial(e)?e.query+="%27":e.query+="#"==i?"%23":percentEncode(i,Br)):(e.fragment="",u=hn);break;case hn:i!=_r&&(e.fragment+=percentEncode(i,Gr))}l++}},dn=function URL(e){var t,n,o=anInstance(this,dn,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=Pr(o,{type:"URL"});if(void 0!==i)if(i instanceof dn)t=Er(i);else if(n=parseURL(t={},String(i)))throw TypeError(n);if(n=parseURL(s,a,null,t))throw TypeError(n);var c=s.searchParams=new xr,u=kr(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},r||(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))},gn=dn.prototype,serializeURL=function(){var e=Er(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=Er(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 Er(this).scheme+":"},getUsername=function(){return Er(this).username},getPassword=function(){return Er(this).password},getHost=function(){var e=Er(this),t=e.host,r=e.port;return null===t?"":null===r?serializeHost(t):serializeHost(t)+":"+r},getHostname=function(){var e=Er(this).host;return null===e?"":serializeHost(e)},getPort=function(){var e=Er(this).port;return null===e?"":String(e)},getPathname=function(){var e=Er(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},getSearch=function(){var e=Er(this).query;return e?"?"+e:""},getSearchParams=function(){return Er(this).searchParams},getHash=function(){var e=Er(this).fragment;return e?"#"+e:""},accessorDescriptor=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(r&&Oe(gn,{href:accessorDescriptor(serializeURL,(function(e){var t=Er(this),r=String(e),n=parseURL(t,r);if(n)throw TypeError(n);kr(t.searchParams).updateSearchParams(t.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(e){var t=Er(this);parseURL(t,String(e)+":",Kr)})),username:accessorDescriptor(getUsername,(function(e){var t=Er(this),r=tr(String(e));if(!cannotHaveUsernamePasswordPort(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=percentEncode(r[n],qr)}})),password:accessorDescriptor(getPassword,(function(e){var t=Er(this),r=tr(String(e));if(!cannotHaveUsernamePasswordPort(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=percentEncode(r[n],qr)}})),host:accessorDescriptor(getHost,(function(e){var t=Er(this);t.cannotBeABaseURL||parseURL(t,String(e),rn)})),hostname:accessorDescriptor(getHostname,(function(e){var t=Er(this);t.cannotBeABaseURL||parseURL(t,String(e),nn)})),port:accessorDescriptor(getPort,(function(e){var t=Er(this);cannotHaveUsernamePasswordPort(t)||(""==(e=String(e))?t.port=null:parseURL(t,e,on))})),pathname:accessorDescriptor(getPathname,(function(e){var t=Er(this);t.cannotBeABaseURL||(t.path=[],parseURL(t,e+"",un))})),search:accessorDescriptor(getSearch,(function(e){var t=Er(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",parseURL(t,e,pn)),kr(t.searchParams).updateSearchParams(t.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(e){var t=Er(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",parseURL(t,e,hn)):t.fragment=null}))}),U(gn,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),U(gn,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),Or){var yn=Or.createObjectURL,vn=Or.revokeObjectURL;yn&&U(dn,"createObjectURL",(function createObjectURL(e){return yn.apply(Or,arguments)})),vn&&U(dn,"revokeObjectURL",(function revokeObjectURL(e){return vn.apply(Or,arguments)}))}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 Date.prototype.toString.call(Reflect.construct(Date,[],(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$1(e,t,r,n){return(set$1="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$1(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}setToStringTag(dn,"URL"),_export({global:!0,forced:!Ht,sham:!r},{URL:dn}),_export({target:"Object",stat:!0,forced:Object.assign!==Jt},{assign:Jt});var mn,bn,_n=getBuiltIn("navigator","userAgent")||"",Sn=t.process,wn=Sn&&Sn.versions,On=wn&&wn.v8;On?bn=(mn=On.split("."))[0]+mn[1]:_n&&(!(mn=_n.match(/Edge\/(\d+)/))||mn[1]>=74)&&(mn=_n.match(/Chrome\/(\d+)/))&&(bn=mn[1]);var xn=bn&&+bn,kn=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(e){return xn>=51||!fails((function(){var t=[];return(t.constructor={})[kn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pn=wellKnownSymbol("isConcatSpreadable"),En=xn>=51||!fails((function(){var e=[];return e[Pn]=!1,e.concat()[0]!==e})),Cn=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(e){if(!isObject(e))return!1;var t=e[Pn];return void 0!==t?!!t:ae(e)};_export({target:"Array",proto:!0,forced:!En||!Cn},{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))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,c++)r in i&&createProperty(s,c,i[r])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");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 Rn=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 In.html.apply(In,[e].concat(r)).content},In={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}},jn=Y.f,An={}.toString,Tn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ln={f:function getOwnPropertyNames(e){return Tn&&"[object Window]"==An.call(e)?function(e){try{return jn(e)}catch(e){return Tn.slice()}}(e):jn(toIndexedObject(e))}},Mn={f:wellKnownSymbol},Fn=y.f,defineWellKnownSymbol=function(e){var t=$.Symbol||($.Symbol={});has(t,e)||Fn(t,e,{value:Mn.f(e)})},Dn=de.forEach,Nn=sharedKey("hidden"),Un=wellKnownSymbol("toPrimitive"),$n=N.set,Bn=N.getterFor("Symbol"),Gn=Object.prototype,zn=t.Symbol,qn=getBuiltIn("JSON","stringify"),Vn=d.f,Kn=y.f,Wn=Ln.f,Hn=i.f,Zn=P("symbols"),Yn=P("op-symbols"),Jn=P("string-to-symbol-registry"),Xn=P("symbol-to-string-registry"),Qn=P("wks"),eo=t.QObject,to=!eo||!eo.prototype||!eo.prototype.findChild,ro=r&&fails((function(){return 7!=Pe(Kn({},"a",{get:function(){return Kn(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Vn(Gn,t);n&&delete Gn[t],Kn(e,t,r),n&&e!==Gn&&Kn(Gn,t,n)}:Kn,wrap=function(e,t){var n=Zn[e]=Pe(zn.prototype);return $n(n,{type:"Symbol",tag:e,description:t}),r||(n.description=t),n},no=ce?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof zn},oo=function defineProperty(e,t,r){e===Gn&&oo(Yn,t,r),anObject(e);var n=toPrimitive(t,!0);return anObject(r),has(Zn,n)?(r.enumerable?(has(e,Nn)&&e[Nn][n]&&(e[Nn][n]=!1),r=Pe(r,{enumerable:createPropertyDescriptor(0,!1)})):(has(e,Nn)||Kn(e,Nn,createPropertyDescriptor(1,{})),e[Nn][n]=!0),ro(e,n,r)):Kn(e,n,r)},io=function defineProperties(e,t){anObject(e);var n=toIndexedObject(t),o=we(n).concat(uo(n));return Dn(o,(function(t){r&&!ao.call(n,t)||oo(e,t,n[t])})),e},ao=function propertyIsEnumerable(e){var t=toPrimitive(e,!0),r=Hn.call(this,t);return!(this===Gn&&has(Zn,t)&&!has(Yn,t))&&(!(r||!has(this,t)||!has(Zn,t)||has(this,Nn)&&this[Nn][t])||r)},so=function getOwnPropertyDescriptor(e,t){var r=toIndexedObject(e),n=toPrimitive(t,!0);if(r!==Gn||!has(Zn,n)||has(Yn,n)){var o=Vn(r,n);return!o||!has(Zn,n)||has(r,Nn)&&r[Nn][n]||(o.enumerable=!0),o}},co=function getOwnPropertyNames(e){var t=Wn(toIndexedObject(e)),r=[];return Dn(t,(function(e){has(Zn,e)||has(I,e)||r.push(e)})),r},uo=function getOwnPropertySymbols(e){var t=e===Gn,r=Wn(t?Yn:toIndexedObject(e)),n=[];return Dn(r,(function(e){!has(Zn,e)||t&&!has(Gn,e)||n.push(Zn[e])})),n};if(se||(U((zn=function Symbol(){if(this instanceof zn)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===Gn&&setter.call(Yn,e),has(this,Nn)&&has(this[Nn],t)&&(this[Nn][t]=!1),ro(this,t,createPropertyDescriptor(1,e))};return r&&to&&ro(Gn,t,{configurable:!0,set:setter}),wrap(t,e)}).prototype,"toString",(function toString(){return Bn(this).tag})),U(zn,"withoutSetter",(function(e){return wrap(uid(e),e)})),i.f=ao,y.f=oo,d.f=so,Y.f=Ln.f=co,J.f=uo,Mn.f=function(e){return wrap(wellKnownSymbol(e),e)},r&&(Kn(zn.prototype,"description",{configurable:!0,get:function description(){return Bn(this).description}}),U(Gn,"propertyIsEnumerable",ao,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!se,sham:!se},{Symbol:zn}),Dn(we(Qn),(function(e){defineWellKnownSymbol(e)})),_export({target:"Symbol",stat:!0,forced:!se},{for:function(e){var t=String(e);if(has(Jn,t))return Jn[t];var r=zn(t);return Jn[t]=r,Xn[r]=t,r},keyFor:function keyFor(e){if(!no(e))throw TypeError(e+" is not a symbol");if(has(Xn,e))return Xn[e]},useSetter:function(){to=!0},useSimple:function(){to=!1}}),_export({target:"Object",stat:!0,forced:!se,sham:!r},{create:function create(e,t){return void 0===t?Pe(e):io(Pe(e),t)},defineProperty:oo,defineProperties:io,getOwnPropertyDescriptor:so}),_export({target:"Object",stat:!0,forced:!se},{getOwnPropertyNames:co,getOwnPropertySymbols:uo}),_export({target:"Object",stat:!0,forced:fails((function(){J.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(e){return J.f(toObject(e))}}),qn){var lo=!se||fails((function(){var e=zn();return"[null]"!=qn([e])||"{}"!=qn({a:e})||"{}"!=qn(Object(e))}));_export({target:"JSON",stat:!0,forced:lo},{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)&&!no(e))return ae(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!no(t))return t}),o[1]=t,qn.apply(null,o)}})}zn.prototype[Un]||v(zn.prototype,Un,zn.prototype.valueOf),setToStringTag(zn,"Symbol"),I[Nn]=!0;var fo=y.f,po=t.Symbol;if(r&&"function"==typeof po&&(!("description"in po.prototype)||void 0!==po().description)){var ho={},go=function Symbol(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof go?new po(e):void 0===e?po():po(e);return""===e&&(ho[t]=!0),t};copyConstructorProperties(go,po);var yo=go.prototype=po.prototype;yo.constructor=go;var vo=yo.toString,mo="Symbol(test)"==String(po("test")),bo=/^Symbol\((.*)\)[^)]+$/;fo(yo,"description",{configurable:!0,get:function description(){var e=isObject(this)?this.valueOf():this,t=vo.call(e);if(has(ho,e))return"";var r=mo?t.slice(7,-1):t.replace(bo,"$1");return""===r?void 0:r}}),_export({global:!0,forced:!0},{Symbol:go})}var _o=de.filter,So=arrayMethodHasSpeciesSupport("filter"),wo=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!So||!wo},{filter:function filter(e){return _o(this,e,arguments.length>1?arguments[1]:void 0)}});var Oo=K.indexOf,xo=[].indexOf,ko=!!xo&&1/[1].indexOf(1,-0)<0,Po=arrayMethodIsStrict("indexOf"),Eo=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:ko||!Po||!Eo},{indexOf:function indexOf(e){return ko?xo.apply(this,arguments)||0:Oo(this,e,arguments.length>1?arguments[1]:void 0)}});var Co=de.map,Ro=arrayMethodHasSpeciesSupport("map"),Io=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Ro||!Io},{map:function map(e){return Co(this,e,arguments.length>1?arguments[1]:void 0)}});var jo=d.f,Ao=fails((function(){jo(1)}));_export({target:"Object",stat:!0,forced:!r||Ao,sham:!r},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){return jo(toIndexedObject(e),t)}});var To=Ln.f,Lo=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Lo},{getOwnPropertyNames:To});var Mo=fails((function(){Ne(1)}));_export({target:"Object",stat:!0,forced:Mo,sham:!Me},{getPrototypeOf:function getPrototypeOf(e){return Ne(toObject(e))}});var Fo=de.findIndex,Do=!0,No=arrayMethodUsesToLength("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){Do=!1})),_export({target:"Array",proto:!0,forced:Do||!No},{findIndex:function findIndex(e){return Fo(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("findIndex"),defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var Uo=[].reverse,$o=[1,2];_export({target:"Array",proto:!0,forced:String($o)===String($o.reverse())},{reverse:function reverse(){return ae(this)&&(this.length=this.length),Uo.call(this)}});var Bo=arrayMethodHasSpeciesSupport("slice"),Go=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),zo=wellKnownSymbol("species"),qo=[].slice,Vo=Math.max;_export({target:"Array",proto:!0,forced:!Bo||!Go},{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(ae(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!ae(r.prototype)?isObject(r)&&null===(r=r[zo])&&(r=void 0):r=void 0,r===Array||void 0===r))return qo.call(i,s,c);for(n=new(void 0===r?Array:r)(Vo(c-s,0)),o=0;s<c;s++,o++)s in i&&createProperty(n,o,i[s]);return n.length=o,n}});var Ko=y.f,Wo=Function.prototype,Ho=Wo.toString,Zo=/^\s*function ([^ (]*)/;r&&!("name"in Wo)&&Ko(Wo,"name",{configurable:!0,get:function(){try{return Ho.call(this).match(Zo)[1]}catch(e){return""}}}),setToStringTag(t.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0},{setPrototypeOf:Ve});var Yo=t.Promise,Jo=wellKnownSymbol("species"),setSpecies=function(e){var t=getBuiltIn(e),n=y.f;r&&t&&!t[Jo]&&n(t,Jo,{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)},Xo=wellKnownSymbol("iterator"),Qo=!1;try{var ei=0,ti={next:function(){return{done:!!ei++}},return:function(){Qo=!0}};ti[Xo]=function(){return this},Array.from(ti,(function(){throw 2}))}catch(e){}var ri,ni,oi,checkCorrectnessOfIteration=function(e,t){if(!t&&!Qo)return!1;var r=!1;try{var n={};n[Xo]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},ii=wellKnownSymbol("species"),ai=/(iphone|ipod|ipad).*applewebkit/i.test(_n),si="process"==classofRaw(t.process),ci=t.location,ui=t.setImmediate,li=t.clearImmediate,fi=t.process,pi=t.MessageChannel,hi=t.Dispatch,di=0,gi={},run=function(e){if(gi.hasOwnProperty(e)){var t=gi[e];delete gi[e],t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){t.postMessage(e+"",ci.protocol+"//"+ci.host)};ui&&li||(ui=function setImmediate(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return gi[++di]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},ri(di),di},li=function clearImmediate(e){delete gi[e]},si?ri=function(e){fi.nextTick(runner(e))}:hi&&hi.now?ri=function(e){hi.now(runner(e))}:pi&&!ai?(oi=(ni=new pi).port2,ni.port1.onmessage=listener,ri=functionBindContext(oi.postMessage,oi,1)):t.addEventListener&&"function"==typeof postMessage&&!t.importScripts&&ci&&"file:"!==ci.protocol&&!fails(post)?(ri=post,t.addEventListener("message",listener,!1)):ri="onreadystatechange"in documentCreateElement("script")?function(e){xe.appendChild(documentCreateElement("script")).onreadystatechange=function(){xe.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var yi,vi,mi,bi,_i,Si,wi,Oi,xi={set:ui,clear:li},ki=/web0s(?!.*chrome)/i.test(_n),Pi=d.f,Ei=xi.set,Ci=t.MutationObserver||t.WebKitMutationObserver,Ri=t.document,Ii=t.process,ji=t.Promise,Ai=Pi(t,"queueMicrotask"),Ti=Ai&&Ai.value;Ti||(yi=function(){var e,t;for(si&&(e=Ii.domain)&&e.exit();vi;){t=vi.fn,vi=vi.next;try{t()}catch(e){throw vi?bi():mi=void 0,e}}mi=void 0,e&&e.enter()},ai||si||ki||!Ci||!Ri?ji&&ji.resolve?(wi=ji.resolve(void 0),Oi=wi.then,bi=function(){Oi.call(wi,yi)}):bi=si?function(){Ii.nextTick(yi)}:function(){Ei.call(t,yi)}:(_i=!0,Si=Ri.createTextNode(""),new Ci(yi).observe(Si,{characterData:!0}),bi=function(){Si.data=_i=!_i}));var Li,Mi,Fi,Di,Ni=Ti||function(e){var t={fn:e,next:void 0};mi&&(mi.next=t),vi||(vi=t,bi()),mi=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$1(t),this.reject=aFunction$1(r)},Ui={f:function(e){return new PromiseCapability(e)}},promiseResolve=function(e,t){if(anObject(e),isObject(t)&&t.constructor===e)return t;var r=Ui.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}}},$i=xi.set,Bi=wellKnownSymbol("species"),Gi="Promise",zi=N.get,qi=N.set,Vi=N.getterFor(Gi),Ki=Yo,Wi=t.TypeError,Hi=t.document,Zi=t.process,Yi=getBuiltIn("fetch"),Ji=Ui.f,Xi=Ji,Qi=!!(Hi&&Hi.createEvent&&t.dispatchEvent),ea="function"==typeof PromiseRejectionEvent,ta=oe(Gi,(function(){if(!(O(Ki)!==String(Ki))){if(66===xn)return!0;if(!si&&!ea)return!0}if(xn>=51&&/native code/.test(Ki))return!1;var e=Ki.resolve(1),FakePromise=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Bi]=FakePromise,!(e.then((function(){}))instanceof FakePromise)})),ra=ta||!checkCorrectnessOfIteration((function(e){Ki.all(e).catch((function(){}))})),isThenable=function(e){var t;return!(!isObject(e)||"function"!=typeof(t=e.then))&&t},notify$1=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;Ni((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(Wi("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,r,n){var o,i;Qi?((o=Hi.createEvent("Event")).promise=r,o.reason=n,o.initEvent(e,!1,!0),t.dispatchEvent(o)):o={promise:r,reason:n},!ea&&(i=t["on"+e])?i(o):"unhandledrejection"===e&&function(e,r){var n=t.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,r))}("Unhandled promise rejection",n)},onUnhandled=function(e){$i.call(t,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform((function(){si?Zi.emit("unhandledRejection",n,r):dispatchEvent("unhandledrejection",r,n)})),e.rejection=si||isUnhandled(e)?2:1,t.error))throw t.value}))},isUnhandled=function(e){return 1!==e.rejection&&!e.parent},onHandleUnhandled=function(e){$i.call(t,(function(){var t=e.facade;si?Zi.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$1(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Wi("Promise can't be resolved itself");var n=isThenable(t);n?Ni((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$1(e,!1))}catch(t){internalReject({done:!1},t,e)}}};ta&&(Ki=function Promise(e){anInstance(this,Ki,Gi),aFunction$1(e),Li.call(this);var t=zi(this);try{e(bind(internalResolve,t),bind(internalReject,t))}catch(e){internalReject(t,e)}},(Li=function Promise(e){qi(this,{type:Gi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Ki.prototype,{then:function then(e,t){var r,n,o,i=Vi(this),a=Ji((r=Ki,void 0===(o=anObject(this).constructor)||null==(n=anObject(o)[ii])?r:aFunction$1(n)));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=si?Zi.domain:void 0,i.parent=!0,i.reactions.push(a),0!=i.state&¬ify$1(i,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),Mi=function(){var e=new Li,t=zi(e);this.promise=e,this.resolve=bind(internalResolve,t),this.reject=bind(internalReject,t)},Ui.f=Ji=function(e){return e===Ki||e===Fi?new Mi(e):Xi(e)},"function"==typeof Yo&&(Di=Yo.prototype.then,U(Yo.prototype,"then",(function then(e,t){var r=this;return new Ki((function(e,t){Di.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Yi&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(e){return promiseResolve(Ki,Yi.apply(t,arguments))}}))),_export({global:!0,wrap:!0,forced:ta},{Promise:Ki}),setToStringTag(Ki,Gi,!1),setSpecies(Gi),Fi=getBuiltIn(Gi),_export({target:Gi,stat:!0,forced:ta},{reject:function reject(e){var t=Ji(this);return t.reject.call(void 0,e),t.promise}}),_export({target:Gi,stat:!0,forced:ta},{resolve:function resolve(e){return promiseResolve(this,e)}}),_export({target:Gi,stat:!0,forced:ra},{all:function all(e){var t=this,r=Ji(t),n=r.resolve,o=r.reject,i=perform((function(){var r=aFunction$1(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=Ji(t),n=r.reject,o=perform((function(){var o=aFunction$1(t.resolve);iterate(e,(function(e){o.call(t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var na=RegExp.prototype,oa=na.toString,ia=fails((function(){return"/a/b"!=oa.call({source:"a",flags:"b"})})),aa="toString"!=oa.name;(ia||aa)&&U(RegExp.prototype,"toString",(function toString(){var e=anObject(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in na)?regexpFlags.call(e):r)}),{unsafe:!0}),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,g=d&&d(d(values([])));g&&g!==r&&n.call(g,i)&&(h=g);var y=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=y.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(y),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(y),define(y,s,"Generator"),y[i]=function(){return this},y.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 sa=Symbol("defaultState"),ca=Symbol("delegatesFocus"),ua=Symbol("firstRender"),la=Symbol("focusTarget"),fa=Symbol("hasDynamicTemplate"),pa=Symbol("ids"),ha=Symbol("nativeInternals"),da=Symbol("raiseChangeEvents"),ga=Symbol("render"),ya=Symbol("renderChanges"),va=Symbol("rendered"),ma=Symbol("rendering"),ba=Symbol("setState"),_a=Symbol("shadowRoot"),Sa=Symbol("shadowRootMode"),wa=Symbol("state"),Oa=Symbol("stateEffects"),xa=Symbol("template"),ka=regeneratorRuntime.mark(walkComposedTree);function booleanAttributeValue(e,t){return"boolean"==typeof t?t:"string"==typeof t&&(""===t||e.toLowerCase()===t.toLowerCase())}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$6(e,t,r){e.toggleAttribute(t,r),e[ha]&&e[ha].states&&e[ha].states.toggle(t,r)}var Pa={checked:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,multiple:!0,noresize:!0,readonly:!0,selected:!0};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()}}),ka)}var Ea={tabindex:"tabIndex"},Ca={tabIndex:"tabindex"};var Ra=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ia=createCommonjsModule((function(e){var t=y.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(e,r)){if(!o(e))return"F";if(!t)return"E";setMetadata(e)}return e[r].objectID},getWeakData:function(e,t){if(!has(e,r)){if(!o(e))return!0;if(!t)return!1;setMetadata(e)}return e[r].weakData},onFreeze:function(e){return Ra&&i.REQUIRED&&o(e)&&!has(e,r)&&setMetadata(e),e}};I[r]=!0})),ja=Ia.onFreeze,Aa=Object.freeze,Ta=fails((function(){Aa(1)}));_export({target:"Object",stat:!0,forced:Ta,sham:!Ra},{freeze:function freeze(e){return Aa&&isObject(e)?Aa(ja(e)):e}});var La=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;La(a,0)||(o.lastIndex=0);var s=regexpExecAbstract(o,i);return La(o.lastIndex,a)||(o.lastIndex=a),null===s?-1:s.index}]}));var Ma=Symbol("state"),Fa=Symbol("raiseChangeEventsInNextRender"),Da=Symbol("changedSinceLastRender");function copyStateWithChanges(e,t){for(var r=Object.assign({},e[Ma]),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[Oa](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 Ve&&"function"==typeof(n=t.constructor)&&n!==r&&isObject(o=n.prototype)&&o!==r.prototype&&Ve(e,o),e},Na=y.f,Ua=Ia.fastKey,$a=N.set,Ba=N.getterFor;!function(e,r,n){var o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=t[e],c=s&&s.prototype,u=s,l={},fixMethod=function(e){var t=c[e];U(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(oe(e,"function"!=typeof s||!(i||c.forEach&&!fails((function(){(new s).entries().next()})))))u=n.getConstructor(r,e,o,a),Ia.REQUIRED=!0;else if(oe(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)})),g=!i&&fails((function(){for(var e=new s,t=5;t--;)e[a](t,t);return!e.has(-0)}));d||((u=r((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||g)&&(fixMethod("delete"),fixMethod("has"),o&&fixMethod("get")),(g||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,n,o){var i=e((function(e,a){anInstance(e,i,t),$a(e,{type:t,index:Pe(null),first:void 0,last:void 0,size:0}),r||(e.size=0),null!=a&&iterate(a,e[o],{that:e,AS_ENTRIES:n})})),a=Ba(t),define=function(e,t,n){var o,i,s=a(e),c=getEntry(e,t);return c?c.value=n:(s.last=c={index:i=Ua(t,!0),key:t,value:n,previous:o=s.last,next:void 0,removed:!1},s.first||(s.first=c),o&&(o.next=c),r?s.size++:e.size++,"F"!==i&&(s.index[i]=c)),e},getEntry=function(e,t){var r,n=a(e),o=Ua(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,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,r?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),o=getEntry(t,e);if(o){var i=o.next,s=o.previous;delete n.index[o.index],o.removed=!0,s&&(s.next=i),i&&(i.previous=s),n.first==o&&(n.first=i),n.last==o&&(n.last=s),r?n.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,n?{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)}}),r&&Na(i.prototype,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",o=Ba(t),i=Ba(n);defineIterator(e,t,(function(e,t){$a(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 Ga=new Map,za=Symbol("shadowIdProxy"),qa=Symbol("proxyElement"),Va={get:function get(e,t){var r=e[qa][_a];return r&&"string"==typeof t?r.getElementById(t):null}};var Ka=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[ma]){var n=function attributeToPropertyName(e){var t=Ea[e];if(!t){var r=/-([a-z])/g;t=e.replace(r,(function(e){return e[1].toUpperCase()})),Ea[e]=t}return t}(e);if(n in this){var o=Pa[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=Ca[e];if(!t){var r=/([A-Z])/g;t=e.replace(r,"-$1").toLowerCase(),Ca[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))[ua]=void 0,e[da]=!1,e[Da]=null,e[ba](e[sa]),e}return _createClass(Reactive,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(Reactive.prototype),"connectedCallback",this)&&_get(_getPrototypeOf(Reactive.prototype),"connectedCallback",this).call(this),this[ya]()}},{key:ga,value:function value(e){_get(_getPrototypeOf(Reactive.prototype),ga,this)&&_get(_getPrototypeOf(Reactive.prototype),ga,this).call(this,e)}},{key:ya,value:function value(){void 0===this[ua]&&(this[ua]=!0);var e=this[Da];if(this[ua]||e){var t=this[da];this[da]=this[Fa],this[ma]=!0,this[ga](e),this[ma]=!1,this[Da]=null,this[va](e),this[ua]=!1,this[da]=t,this[Fa]=t}}},{key:va,value:function value(e){_get(_getPrototypeOf(Reactive.prototype),va,this)&&_get(_getPrototypeOf(Reactive.prototype),va,this).call(this,e)}},{key:ba,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[ma]&&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[Ma]||0!==Object.keys(n).length){i.next=4;break}return i.abrupt("return");case 4:if(Object.freeze(r),this[Ma]=r,this[da]&&(this[Fa]=!0),o=void 0===this[ua]||null!==this[Da],this[Da]=Object.assign(this[Da]||{},n),!this.isConnected||o){i.next=14;break}return i.next=13,Promise.resolve();case 13:this[ya]();case 14:case"end":return i.stop()}}),_callee,this)}))),function value(e){return t.apply(this,arguments)})},{key:Oa,value:function value(e,t){return _get(_getPrototypeOf(Reactive.prototype),Oa,this)?_get(_getPrototypeOf(Reactive.prototype),Oa,this).call(this,e,t):{}}},{key:sa,get:function get(){return _get(_getPrototypeOf(Reactive.prototype),sa,this)||{}}},{key:wa,get:function get(){return this[Ma]}}]),Reactive}(e);return"true"===new URLSearchParams(location.search).get("elixdebug")&&Object.defineProperty(t.prototype,"state",{get:function get(){return this[wa]}}),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:ga,value:function value(e){if(_get(_getPrototypeOf(ShadowTemplate.prototype),ga,this)&&_get(_getPrototypeOf(ShadowTemplate.prototype),ga,this).call(this,e),!this[_a]){var t=function getTemplate(e){var t=e[fa]?void 0:Ga.get(e.constructor);if(void 0===t){if((t=e[xa])&&!(t instanceof HTMLTemplateElement))throw"Warning: the [template] property for ".concat(e.constructor.name," must return an HTMLTemplateElement.");e[fa]||Ga.set(e.constructor,t||null)}return t}(this);if(t){var r=this.attachShadow({delegatesFocus:this[ca],mode:this[Sa]}),n=document.importNode(t.content,!0);r.append(n),this[_a]=r}else this[_a]=null}}},{key:pa,get:function get(){if(!this[za]){var e=_defineProperty({},qa,this);this[za]=new Proxy(e,Va)}return this[za]}},{key:Sa,get:function get(){return"open"}}]),ShadowTemplate}(e)}(HTMLElement))),Wa=Symbol("checkSize"),Ha=Symbol("closestAvailableItemIndex"),Za=Symbol("contentSlot"),Ya=sa,Ja=Symbol("defaultTabIndex"),Xa=ca,Qa=Symbol("effectEndTarget"),es=ua,ts=la,rs=Symbol("getItemText"),ns=Symbol("goDown"),os=Symbol("goEnd"),as=Symbol("goFirst"),ss=Symbol("goLast"),cs=Symbol("goLeft"),us=Symbol("goNext"),ls=Symbol("goPrevious"),fs=Symbol("goRight"),ps=Symbol("goStart"),hs=Symbol("goToItemWithPrefix"),ds=Symbol("goUp"),gs=fa,ys=pa,vs=Symbol("inputDelegate"),ms=Symbol("itemsDelegate"),bs=Symbol("keydown"),_s=Symbol("mouseenter"),Ss=Symbol("mouseleave"),ws=ha,Os=da,xs=ga,ks=ya,Ps=Symbol("renderDataToElement"),Es=va,Cs=ma,Rs=Symbol("scrollTarget"),Is=ba,js=_a,As=Sa,Ts=Symbol("startEffect"),Ls=wa,Ms=Oa,Fs=Symbol("swipeDown"),Ds=Symbol("swipeDownComplete"),Ns=Symbol("swipeLeft"),Us=Symbol("swipeLeftTransitionEnd"),$s=Symbol("swipeRight"),Bs=Symbol("swipeRightTransitionEnd"),Gs=Symbol("swipeUp"),zs=Symbol("swipeUpComplete"),qs=Symbol("swipeStart"),Vs=Symbol("swipeTarget"),Ks=Symbol("tap"),Ws=xa,Hs=Symbol("toggleSelectedFlag");"true"===new URLSearchParams(location.search).get("elixdebug")&&(window.elix={internal:{checkSize:Wa,closestAvailableItemIndex:Ha,contentSlot:Za,defaultState:Ya,defaultTabIndex:Ja,delegatesFocus:Xa,effectEndTarget:Qa,firstRender:es,focusTarget:ts,getItemText:rs,goDown:ns,goEnd:os,goFirst:as,goLast:ss,goLeft:cs,goNext:us,goPrevious:ls,goRight:fs,goStart:ps,goToItemWithPrefix:hs,goUp:ds,hasDynamicTemplate:gs,ids:ys,inputDelegate:vs,itemsDelegate:ms,keydown:bs,mouseenter:_s,mouseleave:Ss,nativeInternals:ws,event:event,raiseChangeEvents:Os,render:xs,renderChanges:ks,renderDataToElement:Ps,rendered:Es,rendering:Cs,scrollTarget:Rs,setState:Is,shadowRoot:js,shadowRootMode:As,startEffect:Ts,state:Ls,stateEffects:Ms,swipeDown:Fs,swipeDownComplete:Ds,swipeLeft:Ns,swipeLeftTransitionEnd:Us,swipeRight:$s,swipeRightTransitionEnd:Bs,swipeUp:Gs,swipeUpComplete:zs,swipeStart:qs,swipeTarget:Vs,tap:Ks,template:Ws,toggleSelectedFlag:Hs}});var Zs=Symbol("previousBodyStyleOverflow"),Ys=Symbol("previousDocumentMarginRight");function _templateObject(){var e=_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 ']);return _templateObject=function _templateObject(){return e},e}var Js=Symbol("wrap"),Xs=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:bs,value:function value(e){var t=firstFocusableElement(this[js]);if(t){var r=document.activeElement&&(document.activeElement===t||document.activeElement.contains(t)),n=this[js].activeElement,o=n&&(n===t||deepContains(n,t));(r||o)&&"Tab"===e.key&&e.shiftKey&&(this[Xs]=!0,this[ys].focusCatcher.focus(),this[Xs]=!1)}return _get(_getPrototypeOf(FocusCapture.prototype),bs,this)&&_get(_getPrototypeOf(FocusCapture.prototype),bs,this).call(this,e)||!1}},{key:xs,value:function value(e){var t=this;_get(_getPrototypeOf(FocusCapture.prototype),xs,this)&&_get(_getPrototypeOf(FocusCapture.prototype),xs,this).call(this,e),this[es]&&this[ys].focusCatcher.addEventListener("focus",(function(){if(!t[Xs]){var e=firstFocusableElement(t[js]);e&&e.focus()}}))}},{key:Js,value:function value(e){var t=Rn(_templateObject()),r=t.getElementById("focusCaptureContainer");r&&(e.replaceWith(t),r.append(e))}}]),FocusCapture}(e)}FocusCaptureMixin.wrap=Js;var Qs="\t\n\v\f\r \u2028\u2029\ufeff",ec="["+Qs+"]",tc=RegExp("^"+ec+ec+"*"),rc=RegExp(ec+ec+"*$"),createMethod$4=function(e){return function(t){var r=String(requireObjectCoercible(t));return 1&e&&(r=r.replace(tc,"")),2&e&&(r=r.replace(rc,"")),r}},nc={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},oc=Y.f,ic=d.f,ac=y.f,sc=nc.trim,cc=t.Number,uc=cc.prototype,lc="Number"==classofRaw(Pe(uc)),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=sc(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(oe("Number",!cc(" 0o1")||!cc("0b1")||cc("+0x1"))){for(var fc,pc=function Number(e){var t=arguments.length<1?0:e,r=this;return r instanceof pc&&(lc?fails((function(){uc.valueOf.call(r)})):"Number"!=classofRaw(r))?inheritIfRequired(new cc(toNumber(t)),r,pc):toNumber(t)},hc=r?oc(cc):"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(","),dc=0;hc.length>dc;dc++)has(cc,fc=hc[dc])&&!has(pc,fc)&&ac(pc,fc,ic(cc,fc));pc.prototype=uc,uc.constructor=pc,U(t,"Number",pc)}function _templateObject$1(){var e=_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 "]);return _templateObject$1=function _templateObject(){return e},e}var gc=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:xs,value:function value(e){if(_get(_getPrototypeOf(AriaRole.prototype),xs,this)&&_get(_getPrototypeOf(AriaRole.prototype),xs,this).call(this,e),e.role){var t=this[Ls].role;t?this.setAttribute("role",t):this.removeAttribute("role")}}},{key:Ya,get:function get(){return Object.assign(_get(_getPrototypeOf(AriaRole.prototype),Ya,this)||{},{role:null})}},{key:"role",get:function get(){return _get(_getPrototypeOf(AriaRole.prototype),"role",this)},set:function set(e){var t=String(e);_set(_getPrototypeOf(AriaRole.prototype),"role",t,this,!0),this[Cs]||this[Is]({s:t})}}]),AriaRole}(e)}(Ka),yc=function(e){_inherits(Backdrop,gc);var t=_createSuper(Backdrop);function Backdrop(){return _classCallCheck(this,Backdrop),t.apply(this,arguments)}return _createClass(Backdrop,[{key:Ya,get:function get(){return Object.assign(_get(_getPrototypeOf(Backdrop.prototype),Ya,this),{role:"none"})}},{key:Ws,get:function get(){return In.html(_templateObject$1())}}]),Backdrop}(),vc=function(e){_inherits(ModalBackdrop,yc);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}();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 mc=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=mc.get(t)||0;i="".concat(t,"-").concat(a),customElements.get(i);a++);customElements.define(i,e),mc.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$2(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 bc=Symbol("closePromise"),_c=Symbol("closeResolve");function _templateObject$2(){var e=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-block;\n position: relative;\n }\n </style>\n <slot></slot>\n "]);return _templateObject$2=function _templateObject(){return e},e}var Sc=function(e){_inherits(OverlayFrame,Ka);var t=_createSuper(OverlayFrame);function OverlayFrame(){return _classCallCheck(this,OverlayFrame),t.apply(this,arguments)}return _createClass(OverlayFrame,[{key:Ws,get:function get(){return In.html(_templateObject$2())}}]),OverlayFrame}(),wc=!checkCorrectnessOfIteration((function(e){Array.from(e)}));_export({target:"Array",stat:!0,forced:wc},{from:tr});var Oc=nc.trim,xc=t.parseInt,kc=/^[+-]?0[Xx]/,Pc=8!==xc(Qs+"08")||22!==xc(Qs+"0x16")?function parseInt(e,t){var r=Oc(String(e));return xc(r,t>>>0||(kc.test(r)?16:10))}:xc;function _templateObject2(){var e=_taggedTemplateLiteral(["\n <style>\n :host([closed]) {\n display: none;\n }\n </style>\n "]);return _templateObject2=function _templateObject2(){return e},e}function _templateObject$3(){var e=_taggedTemplateLiteral([""]);return _templateObject$3=function _templateObject(){return e},e}_export({global:!0,forced:parseInt!=Pc},{parseInt:Pc});var Ec=Symbol("appendedToDocument"),Cc=Symbol("assignedZIndex"),Rc=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[Cc]=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 _templateObject$4(){var e=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-grid;\n /* Constrain content if overlay\'s height is constrained. */\n grid-template: minmax(0, 1fr) / minmax(0, 1fr);\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 overscroll-behavior: contain;\n pointer-events: initial;\n position: relative;\n }\n\n #frameContent {\n display: grid;\n grid-template: minmax(0, 1fr) / minmax(0, 1fr);\n overflow: hidden;\n }\n </style>\n <div id="backdrop" part="backdrop" tabindex="-1"></div>\n <div id="frame" part="frame" role="none">\n <div id="frameContent">\n <slot></slot>\n </div>\n </div>\n ']);return _templateObject$4=function _templateObject(){return e},e}var Ic=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[Is]({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:"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[Is]({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:xs,value:function value(e){(_get(_getPrototypeOf(OpenClose.prototype),xs,this).call(this,e),e.opened)&&setInternalState$6(this,"opened",this[Ls].opened);e.closeFinished&&setInternalState$6(this,"closed",this[Ls].closeFinished)}},{key:Es,value:function value(e){if(_get(_getPrototypeOf(OpenClose.prototype),Es,this)&&_get(_getPrototypeOf(OpenClose.prototype),Es,this).call(this,e),e.opened&&this[Os]){var t=new CustomEvent("opened-changed",{bubbles:!0,detail:{closeResult:this[Ls].closeResult,opened:this[Ls].opened}});this.dispatchEvent(t);var r=new CustomEvent("openedchange",{bubbles:!0,detail:{closeResult:this[Ls].closeResult,opened:this[Ls].opened}});if(this.dispatchEvent(r),this[Ls].opened){var n=new CustomEvent("opened",{bubbles:!0});this.dispatchEvent(n);var o=new CustomEvent("open",{bubbles:!0});this.dispatchEvent(o)}else{var i=new CustomEvent("closed",{bubbles:!0,detail:{closeResult:this[Ls].closeResult}});this.dispatchEvent(i);var a=new CustomEvent("close",{bubbles:!0,detail:{closeResult:this[Ls].closeResult}});this.dispatchEvent(a)}}var s=this[_c];this.closeFinished&&s&&(this[_c]=null,this[bc]=null,s(this[Ls].closeResult))}},{key:Ms,value:function value(e,t){var r=_get(_getPrototypeOf(OpenClose.prototype),Ms,this)?_get(_getPrototypeOf(OpenClose.prototype),Ms,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[Ls].opened){n.next=10;break}return t={opened:e},this[Ls].openCloseEffects&&(t.effect=e?"open":"close","after"===this[Ls].effectPhase&&(t.effectPhase="before")),n.next=10,this[Is](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[bc]||(this[bc]=new Promise((function(t){e[_c]=t}))),this[bc]}},{key:"closed",get:function get(){return this[Ls]&&!this[Ls].opened}},{key:"closeFinished",get:function get(){return this[Ls].closeFinished}},{key:"closeResult",get:function get(){return this[Ls].closeResult}},{key:Ya,get:function get(){var e={closeResult:null,opened:!1};return this[Ts]&&Object.assign(e,{closeFinished:!0,effect:"close",effectPhase:"after",openCloseEffects:!0}),Object.assign(_get(_getPrototypeOf(OpenClose.prototype),Ya,this)||{},e)}},{key:"opened",get:function get(){return this[Ls]&&this[Ls].opened},set:function set(e){this[Is]({closeResult:void 0}),this.toggle(e)}}]),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:"open",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:if(this[Ls].persistent||this.isConnected||(this[Ec]=!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:xs,value:function value(e){var t=this;(_get(_getPrototypeOf(Overlay.prototype),xs,this)&&_get(_getPrototypeOf(Overlay.prototype),xs,this).call(this,e),this[es]&&this.addEventListener("blur",(function(e){var r=e.relatedTarget||document.activeElement;r instanceof HTMLElement&&(deepContains(t,r)||(t.opened?t[Rc]=r:(r.focus(),t[Rc]=null)))})),e.effectPhase||e.opened||e.persistent)&&(this[Ls].persistent||((void 0===this.closeFinished?this.closed:this.closeFinished)?this[Cc]&&(this.style.zIndex="",this[Cc]=null):this[Cc]?this.style.zIndex=this[Cc]:hasZIndex(this)||bringToFront(this)))}},{key:Es,value:function value(e){if(_get(_getPrototypeOf(Overlay.prototype),Es,this)&&_get(_getPrototypeOf(Overlay.prototype),Es,this).call(this,e),this[es]&&this[Ls].persistent&&!hasZIndex(this)&&bringToFront(this),e.opened&&this[Ls].autoFocus)if(this[Ls].opened){this[Rc]||document.activeElement===document.body||(this[Rc]=document.activeElement);var t=firstFocusableElement(this);t&&t.focus()}else this[Rc]&&(this[Rc].focus(),this[Rc]=null);!this[es]&&!this[Ls].persistent&&this.closeFinished&&this[Ec]&&(this[Ec]=!1,this.parentNode&&this.parentNode.removeChild(this))}},{key:"autoFocus",get:function get(){return this[Ls].autoFocus},set:function set(e){this[Is]({autoFocus:e})}},{key:Ya,get:function get(){return Object.assign(_get(_getPrototypeOf(Overlay.prototype),Ya,this)||{},{autoFocus:!0,persistent:!1})}},{key:Ws,get:function get(){var e=_get(_getPrototypeOf(Overlay.prototype),Ws,this)||In.html(_templateObject$3());return e.content.append(Rn(_templateObject2())),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:Es,value:function value(e){var t=this;if(_get(_getPrototypeOf(SlotContent.prototype),Es,this)&&_get(_getPrototypeOf(SlotContent.prototype),Es,this).call(this,e),this[es]){var r=this[Za];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[Os]=!0,e=r.assignedNodes({flatten:!0}),Object.freeze(e),t[Is]({content:e}),n.next=6,Promise.resolve();case 6:t[Os]=!1;case 7:case"end":return n.stop()}}),_callee)}))))}}},{key:Za,get:function get(){var e=this[js]&&this[js].querySelector("slot:not([name])");return this[js]&&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:Ya,get:function get(){return Object.assign(_get(_getPrototypeOf(SlotContent.prototype),Ya,this)||{},{content:null})}}]),SlotContent}(e)}(Ka)));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)}}function _templateObject$5(){var e=_taggedTemplateLiteral(["\n <style>\n :host {\n height: 100%;\n left: 0;\n pointer-events: initial;\n top: 0;\n width: 100%;\n }\n </style>\n "]);return _templateObject$5=function _templateObject(){return e},e}var jc=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:bs,value:function value(e){var t=!1;switch(e.key){case"Escape":this.close({canceled:"Escape"}),t=!0}return t||_get(_getPrototypeOf(DialogModality.prototype),bs,this)&&_get(_getPrototypeOf(DialogModality.prototype),bs,this).call(this,e)||!1}},{key:xs,value:function value(e){if(_get(_getPrototypeOf(DialogModality.prototype),xs,this)&&_get(_getPrototypeOf(DialogModality.prototype),xs,this).call(this,e),e.opened)if(this[Ls].opened&&document.documentElement){var t=document.documentElement.clientWidth,r=window.innerWidth-t;this[Zs]=document.body.style.overflow,this[Ys]=r>0?document.documentElement.style.marginRight:null,document.body.style.overflow="hidden",r>0&&(document.documentElement.style.marginRight="".concat(r,"px"))}else null!=this[Zs]&&(document.body.style.overflow=this[Zs],this[Zs]=null),null!=this[Ys]&&(document.documentElement.style.marginRight=this[Ys],this[Ys]=null);if(e.role){var n=this[Ls].role;this.setAttribute("role",n)}}},{key:Ya,get:function get(){return Object.assign(_get(_getPrototypeOf(DialogModality.prototype),Ya,this)||{},{role:"dialog"})}},{key:"role",get:function get(){return _get(_getPrototypeOf(DialogModality.prototype),"role",this)},set:function set(e){_set(_getPrototypeOf(DialogModality.prototype),"role",e,this,!0),this[Cs]||this[Is]({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[Os]=!0,e[Ls].focusVisible||e[Is]({focusVisible:!0}),e[bs](t)&&(t.preventDefault(),t.stopImmediatePropagation()),r.next=6,Promise.resolve();case 6:e[Os]=!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[Ja]?this[Ja]:0)),this.tabIndex=n):_get(_getPrototypeOf(Keyboard.prototype),"attributeChangedCallback",this).call(this,e,t,r)}},{key:bs,value:function value(e){return!!_get(_getPrototypeOf(Keyboard.prototype),bs,this)&&_get(_getPrototypeOf(Keyboard.prototype),bs,this).call(this,e)}},{key:xs,value:function value(e){_get(_getPrototypeOf(Keyboard.prototype),xs,this)&&_get(_getPrototypeOf(Keyboard.prototype),xs,this).call(this,e),e.tabIndex&&(this.tabIndex=this[Ls].tabIndex)}},{key:Ya,get:function get(){var e=this[Xa]?-1:0;return Object.assign(_get(_getPrototypeOf(Keyboard.prototype),Ya,this)||{},{tabIndex:e})}},{key:"tabIndex",get:function get(){return _get(_getPrototypeOf(Keyboard.prototype),"tabIndex",this)},set:function set(e){_get(_getPrototypeOf(Keyboard.prototype),"tabIndex",this)!==e&&_set(_getPrototypeOf(Keyboard.prototype),"tabIndex",e,this,!0),this[Cs]||this[Is]({tabIndex:e})}}]),Keyboard}(e)}(function(e){_inherits(Overlay,Ic);var t=_createSuper(Overlay);function Overlay(){return _classCallCheck(this,Overlay),t.apply(this,arguments)}return _createClass(Overlay,[{key:xs,value:function value(e){_get(_getPrototypeOf(Overlay.prototype),xs,this).call(this,e),renderParts(this[js],this[Ls],e)}},{key:Es,value:function value(e){_get(_getPrototypeOf(Overlay.prototype),Es,this).call(this,e),e.opened&&this[Ls].content&&this[Ls].content.forEach((function(e){e[Wa]&&e[Wa]()}))}},{key:"backdrop",get:function get(){return this[ys]&&this[ys].backdrop}},{key:"backdropPartType",get:function get(){return this[Ls].backdropPartType},set:function set(e){this[Is]({backdropPartType:e})}},{key:Ya,get:function get(){return Object.assign(_get(_getPrototypeOf(Overlay.prototype),Ya,this),{backdropPartType:yc,framePartType:Sc})}},{key:"frame",get:function get(){return this[ys].frame}},{key:"framePartType",get:function get(){return this[Ls].framePartType},set:function set(e){this[Is]({framePartType:e})}},{key:Ws,get:function get(){var e=_get(_getPrototypeOf(Overlay.prototype),Ws,this);return e.content.append(Rn(_templateObject$4())),renderParts(e.content,this[Ls]),e}}]),Overlay}()))),Ac=function(e){_inherits(Dialog,jc);var t=_createSuper(Dialog);function Dialog(){return _classCallCheck(this,Dialog),t.apply(this,arguments)}return _createClass(Dialog,[{key:Ya,get:function get(){return Object.assign(_get(_getPrototypeOf(Dialog.prototype),Ya,this),{backdropPartType:vc,tabIndex:-1})}},{key:Ws,get:function get(){var e=_get(_getPrototypeOf(Dialog.prototype),Ws,this),t=e.content.querySelector("#frame");return this[FocusCaptureMixin.wrap](t),e.content.append(Rn(_templateObject$5())),e}}]),Dialog}();function _templateObject$6(){var e=_taggedTemplateLiteral(["\n <style>\n :host {\n background: rgba(0, 0, 0, 0.2);\n }\n </style>\n "]);return _templateObject$6=function _templateObject(){return e},e}var Tc=function(e){_inherits(PlainModalBackdrop,vc);var t=_createSuper(PlainModalBackdrop);function PlainModalBackdrop(){return _classCallCheck(this,PlainModalBackdrop),t.apply(this,arguments)}return _createClass(PlainModalBackdrop,[{key:Ws,get:function get(){var e=_get(_getPrototypeOf(PlainModalBackdrop.prototype),Ws,this);return e.content.append(Rn(_templateObject$6())),e}}]),PlainModalBackdrop}();function _templateObject$7(){var e=_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 "]);return _templateObject$7=function _templateObject(){return e},e}var Lc=function(e){_inherits(PlainOverlayFrame,Sc);var t=_createSuper(PlainOverlayFrame);function PlainOverlayFrame(){return _classCallCheck(this,PlainOverlayFrame),t.apply(this,arguments)}return _createClass(PlainOverlayFrame,[{key:Ws,get:function get(){var e=_get(_getPrototypeOf(PlainOverlayFrame.prototype),Ws,this);return e.content.append(Rn(_templateObject$7())),e}}]),PlainOverlayFrame}();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:Ya,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainModalOverlay.prototype),Ya,this)||{},{backdropPartType:Tc,framePartType:Lc})}}]),PlainModalOverlay}(e)}var Mc=function(e){_inherits(PlainDialog,PlainModalOverlayMixin(Ac));var t=_createSuper(PlainDialog);function PlainDialog(){return _classCallCheck(this,PlainDialog),t.apply(this,arguments)}return PlainDialog}(),Fc=function(e){_inherits(ElixDialog,Mc);var t=_createSuper(ElixDialog);function ElixDialog(){return _classCallCheck(this,ElixDialog),t.apply(this,arguments)}return ElixDialog}();customElements.define("elix-dialog",Fc);var Dc=document.createElement("template");Dc.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 Nc=function(e){_inherits(SeStorageDialog,_wrapNativeSuper(HTMLElement));var t=_createSuper(SeStorageDialog);function SeStorageDialog(){var e;return _classCallCheck(this,SeStorageDialog),(e=t.call(this))._shadowRoot=e.attachShadow({mode:"open"}),e._shadowRoot.append(Dc.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:"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:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(e){this.setAttribute("dialog",e)}}],[{key:"observedAttributes",get:function get(){return["dialog","storage"]}}]),SeStorageDialog}();customElements.define("se-storage-dialog",Nc);var Uc=function removeStoragePrefCookie(){$c("svgeditstore")},$c=function expireCookie(e){document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"},Bc=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},Gc={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 Bc()}else{var u,l,f;if(Uc(),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),$c(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 Bc("false")}else"cancel"===(null==e||null===(o=e.detail)||void 0===o?void 0:o.trigger)&&Uc();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)}}}}};export default Gc;
|
||
//# sourceMappingURL=ext-storage.js.map
|