From 201640545e209153fea27884aede1e76a7bf7d9d Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Mon, 11 Jul 2016 17:04:46 -0700 Subject: [PATCH] Fixed Fullscreen tooltip in Editor displaying off screen (when in fullscreen mode) (fixes #677) --- CHANGELOG.md | 1 + themes/grav/app/forms/fields/editor/buttons.js | 10 ++++++++-- themes/grav/css/hint.base.min.css | 2 +- themes/grav/js/admin.min.js | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 792b7e94..a30fac7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ 1. [](#bugfix) * Fixed an issue that prevented removing more than one page, in the pages listng [#672](https://github.com/getgrav/grav-plugin-admin/issues/672) * Fixed toggleables in lists that were always loading as checked even when not stored [#688](https://github.com/getgrav/grav-plugin-admin/issues/688) + * Fixed Fullscreen tooltip in Editor displaying off screen (when in fullscreen mode) [#677](https://github.com/getgrav/grav-plugin-admin/issues/677) # v1.1.0-rc.4 ## 06/21/2016 diff --git a/themes/grav/app/forms/fields/editor/buttons.js b/themes/grav/app/forms/fields/editor/buttons.js index 1abf9a26..a2850e7b 100644 --- a/themes/grav/app/forms/fields/editor/buttons.js +++ b/themes/grav/app/forms/fields/editor/buttons.js @@ -378,7 +378,10 @@ export default { let hints = container.find('.grav-editor-toolbar .hint--top'); - if (hints) { hints.removeClass('hint--top').addClass('hint--bottom'); } + if (hints) { + hints.removeClass('hint--top').addClass('hint--bottom'); + $(hints[hints.length - 1]).addClass('hint--bottom-left'); + } if (contentWrapper) { contentWrapper.css('overflow', 'visible'); } } else { global.document.documentElement.style.overflow = ''; @@ -390,7 +393,10 @@ export default { let hints = container.find('.grav-editor-toolbar .hint--bottom'); - if (hints) { hints.removeClass('hint--bottom').addClass('hint--top'); } + if (hints) { + hints.removeClass('hint--bottom').addClass('hint--top'); + $(hints[hints.length - 1]).removeClass('hint--bottom-left'); + } if (contentWrapper) { contentWrapper.css('overflow', 'auto'); } } diff --git a/themes/grav/css/hint.base.min.css b/themes/grav/css/hint.base.min.css index 51d84a73..c39c097a 100644 --- a/themes/grav/css/hint.base.min.css +++ b/themes/grav/css/hint.base.min.css @@ -2,4 +2,4 @@ * http://kushagragour.in/lab/hint/ * Copyright (c) 2015 Kushagra Gour; Licensed MIT */ -.hint--bottom:after,.hint--top:after{margin-left:-18px}.hint,[data-hint]{position:relative;display:inline-block}.hint:after,.hint:before,[data-hint]:after,[data-hint]:before{position:absolute;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);transform:translate3d(0,0,0);visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;-webkit-transition:.3s ease;-moz-transition:.3s ease;transition:.3s ease;-webkit-transition-delay:0ms;-moz-transition-delay:0ms;transition-delay:0ms}.hint--always:after,.hint--always:before,.hint:focus:after,.hint:focus:before,.hint:hover:after,.hint:hover:before,[data-hint]:focus:after,[data-hint]:focus:before,[data-hint]:hover:after,[data-hint]:hover:before{opacity:1;visibility:visible}.hint:hover:after,.hint:hover:before,[data-hint]:hover:after,[data-hint]:hover:before{-webkit-transition-delay:100ms;-moz-transition-delay:100ms;transition-delay:100ms}.hint:before,[data-hint]:before{content:'';position:absolute;background:0 0;border:6px solid transparent;z-index:1000001}.hint:after,[data-hint]:after{content:attr(data-hint);background:#383838;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap}.hint--top:before{border-top-color:#383838;margin-bottom:-12px}.hint--bottom:before{border-bottom-color:#383838;margin-top:-12px}.hint--top:after,.hint--top:before{bottom:100%;left:50%}.hint--top:focus:after,.hint--top:focus:before,.hint--top:hover:after,.hint--top:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--bottom:after,.hint--bottom:before{top:100%;left:50%}.hint--bottom:focus:after,.hint--bottom:focus:before,.hint--bottom:hover:after,.hint--bottom:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--right:before{border-right-color:#383838;margin-left:-12px;margin-bottom:-6px}.hint--right:after{margin-bottom:-14px}.hint--right:after,.hint--right:before{left:100%;bottom:50%}.hint--right:focus:after,.hint--right:focus:before,.hint--right:hover:after,.hint--right:hover:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--left:before{border-left-color:#383838;margin-right:-12px;margin-bottom:-6px}.hint--left:after{margin-bottom:-14px}.hint--left:after,.hint--left:before{right:100%;bottom:50%}.hint--left:focus:after,.hint--left:focus:before,.hint--left:hover:after,.hint--left:hover:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--always.hint--top:after,.hint--always.hint--top:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--bottom:after,.hint--always.hint--bottom:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--left:after,.hint--always.hint--left:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--always.hint--right:after,.hint--always.hint--right:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)} \ No newline at end of file +.hint--bottom:after,.hint--top:after{margin-left:-18px}.hint,[data-hint]{position:relative;display:inline-block}.hint:after,.hint:before,[data-hint]:after,[data-hint]:before{position:absolute;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);transform:translate3d(0,0,0);visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;-webkit-transition:.3s ease;-moz-transition:.3s ease;transition:.3s ease;-webkit-transition-delay:0ms;-moz-transition-delay:0ms;transition-delay:0ms}.hint--always:after,.hint--always:before,.hint:focus:after,.hint:focus:before,.hint:hover:after,.hint:hover:before,[data-hint]:focus:after,[data-hint]:focus:before,[data-hint]:hover:after,[data-hint]:hover:before{opacity:1;visibility:visible}.hint:hover:after,.hint:hover:before,[data-hint]:hover:after,[data-hint]:hover:before{-webkit-transition-delay:100ms;-moz-transition-delay:100ms;transition-delay:100ms}.hint:before,[data-hint]:before{content:'';position:absolute;background:0 0;border:6px solid transparent;z-index:1000001}.hint:after,[data-hint]:after{content:attr(data-hint);background:#383838;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap}.hint--top:before{border-top-color:#383838;margin-bottom:-12px}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#383838;margin-top:-12px}.hint--top:after,.hint--top:before{bottom:100%;left:50%}.hint--top:focus:after,.hint--top:focus:before,.hint--top:hover:after,.hint--top:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--bottom:after,.hint--bottom:before{top:100%;left:50%}.hint--bottom:focus:after,.hint--bottom:focus:before,.hint--bottom:hover:after,.hint--bottom:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--right:before{border-right-color:#383838;margin-left:-12px;margin-bottom:-6px}.hint--right:after{margin-bottom:-14px}.hint--right:after,.hint--right:before{left:100%;bottom:50%}.hint--right:focus:after,.hint--right:focus:before,.hint--right:hover:after,.hint--right:hover:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--left:before{border-left-color:#383838;margin-right:-12px;margin-bottom:-6px}.hint--left:after{margin-bottom:-14px}.hint--left:after,.hint--left:before{right:100%;bottom:50%}.hint--left:focus:after,.hint--left:focus:before,.hint--left:hover:after,.hint--left:hover:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--bottom-left:after,.hint--bottom-left:before{top:100%;left:50%}.hint--bottom-left:before{margin-top:-11px;left:calc(50% - 6px)}.hint--bottom-left:after{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%);margin-left:12px}.hint--bottom-left:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--bottom-left:hover:after{-webkit-transform:translateX(-100%) translateY(8px);-moz-transform:translateX(-100%) translateY(8px);transform:translateX(-100%) translateY(8px)}.hint--bottom-right:after,.hint--bottom-right:before{top:100%;left:50%}.hint--bottom-right:before{margin-top:-11px;left:calc(50% - 6px)}.hint--bottom-right:after{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0);margin-left:-12px}.hint--bottom-right:hover:after,.hint--bottom-right:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--top:after,.hint--always.hint--top:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--bottom:after,.hint--always.hint--bottom:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--left:after,.hint--always.hint--left:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--always.hint--right:after,.hint--always.hint--right:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)} diff --git a/themes/grav/js/admin.min.js b/themes/grav/js/admin.min.js index 4675b209..7b185a8e 100644 --- a/themes/grav/js/admin.min.js +++ b/themes/grav/js/admin.min.js @@ -2,7 +2,7 @@ var Grav=webpackJsonpGrav([0],[function(t,e,n){(function(t){"use strict";functio r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(11);r(r.S,"Number",{isInteger:n(100)})},function(t,e,n){var r=n(16),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){var r=n(11);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(11),i=n(100),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(11);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(11);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(11),i=n(89);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(11),i=n(85);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(11),i=n(108),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:Math.log(1+t)}},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?0>t?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(11),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(11),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(11),i=n(112);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},function(t,e,n){var r=n(11);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(11),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(11),i=n(116);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(11),i=n(112),o=Math.pow,a=o(2,-52),s=o(2,-23),u=o(2,127)*(2-s),c=o(2,-126),l=function(t){return t+1/a-1/a};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),o=i(t);return c>r?o*l(r/c/s)*c*s:(e=(1+s/a)*r,n=e-(e-r),n>u||n!=n?o*(1/0):o*n)}})},function(t,e,n){var r=n(11),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,u=0;s>a;)n=i(arguments[a++]),n>u?(r=u/n,o=o*r*r+1,u=n):n>0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(11),i=Math.imul;r(r.S+r.F*n(10)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(11);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(11);r(r.S,"Math",{log1p:n(108)})},function(t,e,n){var r=n(11);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(11);r(r.S,"Math",{sign:n(112)})},function(t,e,n){var r=n(11),i=n(116),o=Math.exp;r(r.S+r.F*n(10)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(11),i=n(116),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(11);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(11),i=n(42),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(65536>e?o(e):o(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(11),i=n(35),o=n(40);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),r>s&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,n){"use strict";n(86)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(131)(!0);n(132)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(41),i=n(38);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return 0>u||u>=c?t?"":void 0:(o=s.charCodeAt(u),55296>o||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var r=n(31),i=n(11),o=n(21),a=n(13),s=n(8),u=n(133),c=n(134),l=n(27),f=n(62),d=n(28)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",m="keys",v="values",g=function(){return this};t.exports=function(t,e,n,y,_,b,x){c(n,e,y);var k,w,S,E=function(t){if(!h&&t in O)return O[t];switch(t){case m:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},A=e+" Iterator",I=_==v,M=!1,O=t.prototype,C=O[d]||O[p]||_&&O[_],P=C||E(_),T=_?I?E("entries"):P:void 0,j="Array"==e?O.entries||C:C;if(j&&(S=f(j.call(new t)),S!==Object.prototype&&(l(S,A,!0),r||s(S,d)||a(S,d,g))),I&&C&&C.name!==v&&(M=!0,P=function(){return C.call(this)}),r&&!x||!h&&!M&&O[d]||a(O,d,P),u[e]=P,u[A]=g,_)if(k={values:I?P:E(v),keys:b?P:E(m),entries:T},x)for(w in k)w in O||o(O,w,k[w]);else i(i.P+i.F*(h||M),e,k);return k}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(49),i=n(20),o=n(27),a={};n(13)(a,n(28)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(11),i=n(131)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(11),i=n(40),o=n(137),a="endsWith",s=""[a];r(r.P+r.F*n(139)(a),"String",{endsWith:function(t){var e=o(this,t,a),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),u=void 0===n?r:Math.min(i(n),r),c=String(t);return s?s.call(e,c,u):e.slice(u-c.length,u)===c}})},function(t,e,n){var r=n(138),i=n(38);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(16),i=n(37),o=n(28)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(28)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},function(t,e,n){"use strict";var r=n(11),i=n(137),o="includes";r(r.P+r.F*n(139)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(11);r(r.P,"String",{repeat:n(95)})},function(t,e,n){"use strict";var r=n(11),i=n(40),o=n(137),a="startsWith",s=""[a];r(r.P+r.F*n(139)(a),"String",{startsWith:function(t){var e=o(this,t,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(144)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){var r=n(11),i=n(10),o=n(38),a=/"/g,s=function(t,e,n,r){var i=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";n(144)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(144)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(144)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(144)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(144)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(144)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(144)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(144)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(144)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(144)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(144)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(144)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(11);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(11),i=n(61),o=n(19);r(r.P+r.F*n(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){"use strict";var r=n(11),i=n(10),o=Date.prototype.getTime,a=function(t){return t>9?t:"0"+t};r(r.P+r.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=0>e?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}})},function(t,e,n){var r=Date.prototype,i="Invalid Date",o="toString",a=r[o],s=r.getTime;new Date(NaN)+""!=i&&n(21)(r,o,function(){var t=s.call(this);return t===t?a.call(this):i})},function(t,e,n){var r=n(28)("toPrimitive"),i=Date.prototype;r in i||n(13)(i,r,n(162))},function(t,e,n){"use strict";var r=n(15),i=n(19),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),t!=o)}},function(t,e,n){var r=n(11);r(r.S,"Array",{isArray:n(48)})},function(t,e,n){"use strict";var r=n(23),i=n(11),o=n(61),a=n(165),s=n(166),u=n(40),c=n(167),l=n(168);i(i.S+i.F*!n(169)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,d=o(t),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=l(d);if(v&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(e=u(d.length),n=new h(e);e>g;g++)c(n,g,v?m(d[g],g):d[g]);else for(f=y.call(d),n=new h;!(i=f.next()).done;g++)c(n,g,v?a(f,m,[i.value,g],!0):i.value);return n.length=g,n}})},function(t,e,n){var r=n(15);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var a=t["return"];throw void 0!==a&&r(a.call(t)),o}}},function(t,e,n){var r=n(133),i=n(28)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(14),i=n(20);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(78),i=n(28)("iterator"),o=n(133);t.exports=n(12).getIteratorMethod=function(t){return void 0!=t?t[i]||t["@@iterator"]||o[r(t)]:void 0}},function(t,e,n){var r=n(28)("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(s){}return n}},function(t,e,n){"use strict";var r=n(11),i=n(167);r(r.S+r.F*n(10)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(11),i=n(35),o=[].join;r(r.P+r.F*(n(36)!=Object||!n(172)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){var r=n(10);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";var r=n(11),i=n(51),o=n(37),a=n(42),s=n(40),u=[].slice;r(r.P+r.F*n(10)(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=s(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=a(t,n),c=a(e,n),l=s(c-i),f=Array(l),d=0;l>d;d++)f[d]="String"==r?this.charAt(i+d):this[i+d];return f}})},function(t,e,n){"use strict";var r=n(11),i=n(24),o=n(61),a=n(10),s=[].sort,u=[1,2,3];r(r.P+r.F*(a(function(){u.sort(void 0)})||!a(function(){u.sort(null)})||!n(172)(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),i(t))}})},function(t,e,n){"use strict";var r=n(11),i=n(176)(0),o=n(172)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,n){var r=n(23),i=n(36),o=n(61),a=n(40),s=n(177);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,d=5==t||f,h=e||s;return function(e,s,p){for(var m,v,g=o(e),y=i(g),_=r(s,p,3),b=a(y.length),x=0,k=n?h(e,b):u?h(e,0):void 0;b>x;x++)if((d||x in y)&&(m=y[x],v=_(m,x,g),t))if(n)k[x]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:k.push(m)}else if(l)return!1;return f?-1:c||l?l:k}}},function(t,e,n){var r=n(178);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(16),i=n(48),o=n(28)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(11),i=n(176)(1);r(r.P+r.F*!n(172)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(11),i=n(176)(2);r(r.P+r.F*!n(172)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(11),i=n(176)(3);r(r.P+r.F*!n(172)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(11),i=n(176)(4);r(r.P+r.F*!n(172)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(11),i=n(184);r(r.P+r.F*!n(172)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){var r=n(24),i=n(61),o=n(36),a=n(40);t.exports=function(t,e,n,s,u){r(e);var c=i(t),l=o(c),f=a(c.length),d=u?f-1:0,h=u?-1:1;if(2>n)for(;;){if(d in l){s=l[d],d+=h;break}if(d+=h,u?0>d:d>=f)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:f>d;d+=h)d in l&&(s=e(s,l[d],d,c));return s}},function(t,e,n){"use strict";var r=n(11),i=n(184);r(r.P+r.F*!n(172)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(11),i=n(39)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(172)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(11),i=n(35),o=n(41),a=n(40),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(172)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=i(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),0>r&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(11);r(r.P,"Array",{copyWithin:n(189)}),n(190)("copyWithin")},function(t,e,n){"use strict";var r=n(61),i=n(42),o=n(40);t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n.length),s=i(t,a),u=i(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:i(c,a))-u,a-s),f=1;for(s>u&&u+l>s&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e,n){var r=n(28)("unscopables"),i=Array.prototype;void 0==i[r]&&n(13)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(11);r(r.P,"Array",{fill:n(192)}),n(190)("fill")},function(t,e,n){"use strict";var r=n(61),i=n(42),o=n(40);t.exports=function(t){for(var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(11),i=n(176)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(190)(o)},function(t,e,n){"use strict";var r=n(11),i=n(176)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(190)(o)},function(t,e,n){n(196)("Array")},function(t,e,n){"use strict";var r=n(7),i=n(14),o=n(9),a=n(28)("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(190),i=n(198),o=n(133),a=n(35);t.exports=n(132)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(7),i=n(91),o=n(14).f,a=n(53).f,s=n(138),u=n(200),c=r.RegExp,l=c,f=c.prototype,d=/a/g,h=/a/g,p=new c(d)!==d;if(n(9)&&(!p||n(10)(function(){return h[n(28)("match")]=!1,c(d)!=d||c(h)==h||"/a/i"!=c(d,"i")}))){c=function(t,e){var n=this instanceof c,r=s(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(p?new l(r&&!o?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&o?u.call(t):e),n?this:f,c)};for(var m=(function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}),v=a(l),g=0;v.length>g;)m(v[g++]);f.constructor=c,c.prototype=f,n(21)(r,"RegExp",c)}n(196)("RegExp")},function(t,e,n){"use strict";var r=n(15);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";n(202);var r=n(15),i=n(200),o=n(9),a="toString",s=/./[a],u=function(t){n(21)(RegExp.prototype,a,t,!0)};n(10)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):s.name!=a&&u(function(){return s.call(this)})},function(t,e,n){n(9)&&"g"!=/./g.flags&&n(14).f(RegExp.prototype,"flags",{configurable:!0,get:n(200)})},function(t,e,n){n(204)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){"use strict";var r=n(13),i=n(21),o=n(10),a=n(38),s=n(28);t.exports=function(t,e,n){var u=s(t),c=n(a,u,""[t]),l=c[0],f=c[1];o(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,l),r(RegExp.prototype,u,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}))}},function(t,e,n){n(204)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(204)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(204)("split",2,function(t,e,r){"use strict";var i=n(138),o=r,a=[].push,s="split",u="length",c="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[u]||2!="ab"[s](/(?:ab)*/)[u]||4!="."[s](/(.?)(.?)/)[u]||"."[s](/()()/)[u]>1||""[s](/.?/)[u]){var l=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,s,f,d,h,p=[],m=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,g=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,m+"g");for(l||(r=new RegExp("^"+y.source+"$(?!\\s)",m));(s=y.exec(n))&&(f=s.index+s[0][u],!(f>v&&(p.push(n.slice(v,s.index)),!l&&s[u]>1&&s[0].replace(r,function(){for(h=1;h1&&s.index=g)));)y[c]===s.index&&y[c]++;return v===n[u]?!d&&y.test("")||p.push(""):p.push(n.slice(v)),p[u]>g?p.slice(0,g):p}}else"0"[s](void 0,0)[u]&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){"use strict";var r,i,o,a=n(31),s=n(7),u=n(23),c=n(78),l=n(11),f=n(16),d=(n(15),n(24)),h=n(93),p=n(209),m=(n(76).set,n(210)),v=n(211).set,g=n(212)(),y="Promise",_=s.TypeError,b=s.process,x=s[y],b=s.process,k="process"==c(b),w=function(){},S=!!function(){try{var t=x.resolve(1),e=(t.constructor={})[n(28)("species")]=function(t){t(w,w)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(w)instanceof e}catch(r){}}(),E=function(t,e){return t===e||t===x&&e===o},A=function(t){var e;return f(t)&&"function"==typeof(e=t.then)?e:!1},I=function(t){return E(x,t)?new M(t):new i(t)},M=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw _("Bad Promise constructor");e=t,n=r}),this.resolve=d(e),this.reject=d(n)},O=function(t){try{t()}catch(e){return{error:e}}},C=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a=i?e.ok:e.fail,s=e.resolve,u=e.reject,c=e.domain;try{a?(i||(2==t._h&&j(t),t._h=1),a===!0?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?u(_("Promise-chain cycle")):(o=A(n))?o.call(n,s,u):s(n)):u(r)}catch(l){u(l)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)})}},P=function(t){v.call(s,function(){var e,n,r,i=t._v;if(T(t)&&(e=O(function(){k?b.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=k||T(t)?2:1),t._a=void 0,e)throw e.error})},T=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!T(e.promise))return!1;return!0},j=function(t){v.call(s,function(){var e;k?b.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},z=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),C(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=A(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,u(D,r,1),u(z,r,1))}catch(i){z.call(r,i)}}):(n._v=t,n._s=1,C(n,!1))}catch(r){z.call({_w:n,_d:!1},r)}}};S||(x=function(t){h(this,x,y,"_h"),d(t),r.call(this);try{t(u(D,this,1),u(z,this,1))}catch(e){z.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(213)(x.prototype,{then:function(t,e){var n=I(m(this,x));return n.ok="function"==typeof t?t:!0,n.fail="function"==typeof e&&e,n.domain=k?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},"catch":function(t){return this.then(void 0,t)}}),M=function(){var t=new r;this.promise=t,this.resolve=u(D,t,1),this.reject=u(z,t,1)}),l(l.G+l.W+l.F*!S,{Promise:x}),n(27)(x,y),n(196)(y),o=n(12)[y],l(l.S+l.F*!S,y,{reject:function(t){var e=I(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(a||!S),y,{resolve:function(t){if(t instanceof x&&E(t.constructor,this))return t;var e=I(this),n=e.resolve;return n(t),e.promise}}),l(l.S+l.F*!(S&&n(169)(function(t){x.all(t)["catch"](w)})),y,{all:function(t){var e=this,n=I(e),r=n.resolve,i=n.reject,o=O(function(){var n=[],o=0,a=1;p(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=I(e),r=n.reject,i=O(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){var r=n(23),i=n(165),o=n(166),a=n(15),s=n(40),u=n(168),c={},l={},e=t.exports=function(t,e,n,f,d){var h,p,m,v,g=d?function(){return t}:u(t),y=r(n,f,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(h=s(t.length);h>_;_++)if(v=e?y(a(p=t[_])[0],p[1]):y(t[_]),v===c||v===l)return v}else for(m=g.call(t);!(p=m.next()).done;)if(v=i(m,y,p.value,e),v===c||v===l)return v};e.BREAK=c,e.RETURN=l},function(t,e,n){var r=n(15),i=n(24),o=n(28)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r,i,o,a=n(23),s=n(81),u=n(51),c=n(18),l=n(7),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,m=0,v={},g="onreadystatechange",y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},h=function(t){delete v[t]},"process"==n(37)(f)?r=function(t){f.nextTick(a(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=_,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):r=g in c("script")?function(t){u.appendChild(c("script"))[g]=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:h}},function(t,e,n){var r=n(7),i=n(211).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(37)(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(o){var l=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(s&&s.resolve){var d=s.resolve();n=function(){d.then(c)}}else n=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(21);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(215);t.exports=n(216)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(14).f,i=n(49),o=(n(13),n(213)),a=n(23),s=n(93),u=n(38),c=n(209),l=n(132),f=n(198),d=n(196),h=n(9),p=n(25).fastKey,m=h?"_s":"size",v=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var f=t(function(t,r){s(t,f,e,"_i"),t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=r&&c(r,n,t[l],t)});return o(f.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[m]=0},"delete":function(t){var e=this,n=v(e,t);if(n){var r=n.n,i=n.p;delete e._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),e._f==n&&(e._f=r),e._l==n&&(e._l=i),e[m]--}return!!n},forEach:function(t){s(this,f,"forEach");for(var e,n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!v(this,t)}}),h&&r(f.prototype,"size",{get:function(){return u(this[m])}}),f},def:function(t,e,n){var r,i,o=v(t,e);return o?o.v=n:(t._l=o={i:i=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:v,setStrong:function(t,e,n){l(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?f(0,n.k):"values"==e?f(0,n.v):f(0,[n.k,n.v]):(t._t=void 0,f(1))},n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(7),i=n(11),o=n(21),a=n(213),s=n(25),u=n(209),c=n(93),l=n(16),f=n(10),d=n(169),h=n(27),p=n(91);t.exports=function(t,e,n,m,v,g){var y=r[t],_=y,b=v?"set":"add",x=_&&_.prototype,k={},w=function(t){var e=x[t];o(x,t,"delete"==t?function(t){return g&&!l(t)?!1:e.call(this,0===t?0:t)}:"has"==t?function(t){return g&&!l(t)?!1:e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(g||x.forEach&&!f(function(){(new _).entries().next()}))){var S=new _,E=S[b](g?{}:-0,1)!=S,A=f(function(){S.has(1)}),I=d(function(t){new _(t)}),M=!g&&f(function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)});I||(_=e(function(e,n){c(e,_,t);var r=p(new y,e,_);return void 0!=n&&u(n,v,r[b],r),r}),_.prototype=x,x.constructor=_),(A||M)&&(w("delete"),w("has"),v&&w("get")),(M||E)&&w(b),g&&x.clear&&delete x.clear}else _=m.getConstructor(e,t,v,b),a(_.prototype,n),s.NEED=!0;return h(_,t),k[t]=_,i(i.G+i.W+i.F*(_!=y),k),g||m.setStrong(_,t,v),_}},function(t,e,n){"use strict";var r=n(215);t.exports=n(216)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(176)(0),o=n(21),a=n(25),s=n(72),u=n(219),c=n(16),l=(n(8),a.getWeak),f=Object.isExtensible,d=u.ufstore,h={},p=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(c(t)){var e=l(t);return e===!0?d(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(this,t,e)}},v=t.exports=n(216)("WeakMap",p,m,u,!0,!0);7!=(new v).set((Object.freeze||Object)(h),7).get(h)&&(r=u.getConstructor(p),s(r.prototype,m),a.NEED=!0,i(["delete","has","get","set"],function(t){var e=v.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!f(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(213),i=n(25).getWeak,o=n(15),a=n(16),s=n(93),u=n(209),c=n(176),l=n(8),f=c(5),d=c(6),h=0,p=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,function(t){return t[0]===e})};m.prototype={get:function(t){var e=v(this,t);return e?e[1]:void 0},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},"delete":function(t){var e=d(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t(function(t,r){s(t,c,e,"_i"),t._i=h++,t._l=void 0,void 0!=r&&u(r,n,t[o],t)});return r(c.prototype,{"delete":function(t){if(!a(t))return!1;var e=i(t);return e===!0?p(this)["delete"](t):e&&l(e,this._i)&&delete e[this._i]},has:function(t){if(!a(t))return!1;var e=i(t);return e===!0?p(this).has(t):e&&l(e,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return r===!0?p(t).set(e,n):r[t._i]=n,t},ufstore:p}},function(t,e,n){"use strict";var r=n(219);n(216)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(11),i=n(222),o=n(223),a=n(15),s=n(42),u=n(40),c=n(16),l=(n(28)("typed_array"),n(7).ArrayBuffer),f=n(210),d=o.ArrayBuffer,h=o.DataView,p=i.ABV&&l.isView,m=d.prototype.slice,v=i.VIEW,g="ArrayBuffer";r(r.G+r.W+r.F*(l!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,g,{isView:function(t){return p&&p(t)||c(t)&&v in t}}),r(r.P+r.U+r.F*n(10)(function(){return!new d(2).slice(1,void 0).byteLength; }),g,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),o=new(f(this,d))(u(i-r)),c=new h(this),l=new h(o),p=0;i>r;)l.setUint8(p++,c.getUint8(r++));return o}}),n(196)(g)},function(t,e,n){for(var r,i=n(7),o=n(13),a=n(22),s=a("typed_array"),u=a("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,f=0,d=9,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d>f;)(r=i[h[f++]])?(o(r.prototype,s,!0),o(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(t,e,n){"use strict";var r=n(7),i=n(9),o=n(31),a=n(222),s=n(13),u=n(213),c=n(10),l=n(93),f=n(41),d=n(40),h=n(53).f,p=n(14).f,m=n(192),v=n(27),g="ArrayBuffer",y="DataView",_="prototype",b="Wrong length!",x="Wrong index!",k=r[g],w=r[y],S=r.Math,E=(r.parseInt,r.RangeError),A=r.Infinity,I=k,M=S.abs,O=S.pow,C=(S.min,S.floor),P=S.log,T=S.LN2,j="buffer",z="byteLength",D="byteOffset",L=i?"_b":j,N=i?"_l":z,q=i?"_o":D,F=function(t,e,n){var r,i,o,a=Array(n),s=8*n-e-1,u=(1<>1,l=23===e?O(2,-24)-O(2,-77):0,f=0,d=0>t||0===t&&0>1/t?1:0;for(t=M(t),t!=t||t===A?(i=t!=t?1:0,r=u):(r=C(P(t)/T),t*(o=O(2,-r))<1&&(r--,o*=2),t+=r+c>=1?l/o:l*O(2,1-c),t*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(t*o-1)*O(2,e),r+=c):(i=t*O(2,c-1)*O(2,e),r=0));e>=8;a[f++]=255&i,i/=256,e-=8);for(r=r<0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a},U=function(t,e,n){var r,i=8*n-e-1,o=(1<>1,s=i-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-A:A;r+=O(2,e),l-=a}return(c?-1:1)*r*O(2,l-e)},R=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},B=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},H=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return F(t,52,8)},K=function(t){return F(t,23,4)},W=function(t,e,n){p(t[_],e,{get:function(){return this[n]}})},$=function(t,e,n,r){var i=+n,o=f(i);if(i!=o||0>o||o+e>t[N])throw E(x);var a=t[L]._b,s=o+t[q],u=a.slice(s,s+e);return r?u:u.reverse()},J=function(t,e,n,r,i,o){var a=+n,s=f(a);if(a!=s||0>s||s+e>t[N])throw E(x);for(var u=t[L]._b,c=s+t[q],l=r(+i),d=0;e>d;d++)u[c+d]=l[o?d:e-d-1]},Y=function(t,e){l(t,k,g);var n=+e,r=d(n);if(n!=r)throw E(b);return r};if(a.ABV){if(!c(function(){new k})||!c(function(){new k(.5)})){k=function(t){return new I(Y(this,t))};for(var X,Q=k[_]=I[_],Z=h(I),tt=0;Z.length>tt;)(X=Z[tt++])in k||s(k,X,I[X]);o||(Q.constructor=k)}var et=new w(new k(2)),nt=w[_].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||u(w[_],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else k=function(t){var e=Y(this,t);this._b=m.call(Array(e),0),this[N]=e},w=function(t,e,n){l(this,w,y),l(t,k,y);var r=t[N],i=f(e);if(0>i||i>r)throw E("Wrong offset!");if(n=void 0===n?r-i:d(n),i+n>r)throw E(b);this[L]=t,this[q]=i,this[N]=n},i&&(W(k,z,"_l"),W(w,j,"_b"),W(w,z,"_l"),W(w,D,"_o")),u(w[_],{getInt8:function(t){return $(this,1,t)[0]<<24>>24},getUint8:function(t){return $(this,1,t)[0]},getInt16:function(t){var e=$(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=$(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return R($(this,4,t,arguments[1]))},getUint32:function(t){return R($(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return U($(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return U($(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){J(this,1,t,B,e)},setUint8:function(t,e){J(this,1,t,B,e)},setInt16:function(t,e){J(this,2,t,V,e,arguments[2])},setUint16:function(t,e){J(this,2,t,V,e,arguments[2])},setInt32:function(t,e){J(this,4,t,H,e,arguments[2])},setUint32:function(t,e){J(this,4,t,H,e,arguments[2])},setFloat32:function(t,e){J(this,4,t,K,e,arguments[2])},setFloat64:function(t,e){J(this,8,t,G,e,arguments[2])}});v(k,g),v(w,y),s(w[_],a.VIEW,!0),e[g]=k,e[y]=w},function(t,e,n){var r=n(11);r(r.G+r.W+r.F*!n(222).ABV,{DataView:n(223).DataView})},function(t,e,n){n(226)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";if(n(9)){var r=n(31),i=n(7),o=n(10),a=n(11),s=n(222),u=n(223),c=n(23),l=n(93),f=n(20),d=n(13),h=n(213),p=(n(100),n(41)),m=n(40),v=n(42),g=n(19),y=n(8),_=n(74),b=n(78),x=n(16),k=n(61),w=n(166),S=n(49),E=n(62),A=n(53).f,I=(n(227),n(168)),M=n(22),O=n(28),C=n(176),P=n(39),T=n(210),j=n(197),z=n(133),D=n(169),L=n(196),N=n(192),q=n(189),F=n(14),U=n(54),R=F.f,B=U.f,V=i.RangeError,H=i.TypeError,G=i.Uint8Array,K="ArrayBuffer",W="Shared"+K,$="BYTES_PER_ELEMENT",J="prototype",Y=Array[J],X=u.ArrayBuffer,Q=u.DataView,Z=C(0),tt=C(2),et=C(3),nt=C(4),rt=C(5),it=C(6),ot=P(!0),at=P(!1),st=j.values,ut=j.keys,ct=j.entries,lt=Y.lastIndexOf,ft=Y.reduce,dt=Y.reduceRight,ht=Y.join,pt=Y.sort,mt=Y.slice,vt=Y.toString,gt=Y.toLocaleString,yt=O("iterator"),_t=O("toStringTag"),bt=M("typed_constructor"),xt=M("def_constructor"),kt=s.CONSTR,wt=s.TYPED,St=s.VIEW,Et="Wrong length!",At=C(1,function(t,e){return Tt(T(t,t[xt]),e)}),It=o(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Mt=!!G&&!!G[J].set&&o(function(){new G(1).set({})}),Ot=function(t,e){if(void 0===t)throw H(Et);var n=+t,r=m(t);if(e&&!_(n,r))throw V(Et);return r},Ct=function(t,e){var n=p(t);if(0>n||n%e)throw V("Wrong offset!");return n},Pt=function(t){if(x(t)&&wt in t)return t;throw H(t+" is not a typed array!")},Tt=function(t,e){if(!(x(t)&&bt in t))throw H("It is not a typed array constructor!");return new t(e)},jt=function(t,e){return zt(T(t,t[xt]),e)},zt=function(t,e){for(var n=0,r=e.length,i=Tt(t,r);r>n;)i[n]=e[n++];return i},Dt=function(t,e,n){R(t,e,{get:function(){return this._d[n]}})},Lt=function(t){var e,n,r,i,o,a,s=k(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=I(s);if(void 0!=d&&!w(d)){for(a=d.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=m(s.length),i=Tt(this,n);n>e;e++)i[e]=f?l(s[e],e):s[e];return i},Nt=function(){for(var t=0,e=arguments.length,n=Tt(this,e);e>t;)n[t]=arguments[t++];return n},qt=!!G&&o(function(){gt.call(new G(1))}),Ft=function(){return gt.apply(qt?mt.call(Pt(this)):Pt(this),arguments)},Ut={copyWithin:function(t,e){return q.call(Pt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Pt(this),arguments)},filter:function(t){return jt(this,tt(Pt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Pt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Pt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(Pt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Pt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(Pt(this),arguments)},lastIndexOf:function(t){return lt.apply(Pt(this),arguments)},map:function(t){return At(Pt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ft.apply(Pt(this),arguments)},reduceRight:function(t){return dt.apply(Pt(this),arguments)},reverse:function(){for(var t,e=this,n=Pt(e).length,r=Math.floor(n/2),i=0;r>i;)t=e[i],e[i++]=e[--n],e[n]=t;return e},some:function(t){return et(Pt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Pt(this),t)},subarray:function(t,e){var n=Pt(this),r=n.length,i=v(t,r);return new(T(n,n[xt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===e?r:v(e,r))-i))}},Rt=function(t,e){return jt(this,mt.call(Pt(this),t,e))},Bt=function(t){Pt(this);var e=Ct(arguments[1],1),n=this.length,r=k(t),i=m(r.length),o=0;if(i+e>n)throw V(Et);for(;i>o;)this[e+o]=r[o++]},Vt={entries:function(){return ct.call(Pt(this))},keys:function(){return ut.call(Pt(this))},values:function(){return st.call(Pt(this))}},Ht=function(t,e){return x(t)&&t[wt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Gt=function(t,e){return Ht(t,e=g(e,!0))?f(2,t[e]):B(t,e)},Kt=function(t,e,n){return!(Ht(t,e=g(e,!0))&&x(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?R(t,e,n):(t[e]=n.value,t)};kt||(U.f=Gt,F.f=Kt),a(a.S+a.F*!kt,"Object",{getOwnPropertyDescriptor:Gt,defineProperty:Kt}),o(function(){vt.call({})})&&(vt=gt=function(){return ht.call(this)});var Wt=h({},Ut);h(Wt,Vt),d(Wt,yt,Vt.values),h(Wt,{slice:Rt,set:Bt,constructor:function(){},toString:vt,toLocaleString:Ft}),Dt(Wt,"buffer","b"),Dt(Wt,"byteOffset","o"),Dt(Wt,"byteLength","l"),Dt(Wt,"length","e"),R(Wt,_t,{get:function(){return this[wt]}}),t.exports=function(t,e,n,u){u=!!u;var c=t+(u?"Clamped":"")+"Array",f="Uint8Array"!=c,h="get"+t,p="set"+t,v=i[c],g=v||{},y=v&&E(v),_=!v||!s.ABV,k={},w=v&&v[J],I=function(t,n){var r=t._d;return r.v[h](n*e+r.o,It)},M=function(t,n,r){var i=t._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[p](n*e+i.o,r,It)},O=function(t,e){R(t,e,{get:function(){return I(this,e)},set:function(t){return M(this,e,t)},enumerable:!0})};_?(v=n(function(t,n,r,i){l(t,v,c,"_d");var o,a,s,u,f=0,h=0;if(x(n)){if(!(n instanceof X||(u=b(n))==K||u==W))return wt in n?zt(v,n):Lt.call(v,n);o=n,h=Ct(r,e);var p=n.byteLength;if(void 0===i){if(p%e)throw V(Et);if(a=p-h,0>a)throw V(Et)}else if(a=m(i)*e,a+h>p)throw V(Et);s=a/e}else s=Ot(n,!0),a=s*e,o=new X(a);for(d(t,"_d",{b:o,o:h,l:a,e:s,v:new Q(o)});s>f;)O(t,f++)}),w=v[J]=S(Wt),d(w,"constructor",v)):D(function(t){new v(null),new v(t)},!0)||(v=n(function(t,n,r,i){l(t,v,c);var o;return x(n)?n instanceof X||(o=b(n))==K||o==W?void 0!==i?new g(n,Ct(r,e),i):void 0!==r?new g(n,Ct(r,e)):new g(n):wt in n?zt(v,n):Lt.call(v,n):new g(Ot(n,f))}),Z(y!==Function.prototype?A(g).concat(A(y)):A(g),function(t){t in v||d(v,t,g[t])}),v[J]=w,r||(w.constructor=v));var C=w[yt],P=!!C&&("values"==C.name||void 0==C.name),T=Vt.values;d(v,bt,!0),d(w,wt,c),d(w,St,!0),d(w,xt,v),(u?new v(1)[_t]==c:_t in w)||R(w,_t,{get:function(){return c}}),k[c]=v,a(a.G+a.W+a.F*(v!=g),k),a(a.S,c,{BYTES_PER_ELEMENT:e,from:Lt,of:Nt}),$ in w||d(w,$,e),a(a.P,c,Ut),L(c),a(a.P+a.F*Mt,c,{set:Bt}),a(a.P+a.F*!P,c,Vt),a(a.P+a.F*(w.toString!=vt),c,{toString:vt}),a(a.P+a.F*o(function(){new v(1).slice()}),c,{slice:Rt}),a(a.P+a.F*(o(function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()})||!o(function(){w.toLocaleString.call([1,2])})),c,{toLocaleString:Ft}),z[c]=P?C:T,r||P||d(w,yt,T)}}else t.exports=function(){}},function(t,e,n){var r=n(78),i=n(28)("iterator"),o=n(133);t.exports=n(12).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},function(t,e,n){n(226)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(226)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(226)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(226)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(226)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(226)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(226)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(226)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(11),i=n(24),o=n(15),a=Function.apply;r(r.S,"Reflect",{apply:function(t,e,n){return a.call(i(t),e,o(n))}})},function(t,e,n){var r=n(11),i=n(49),o=n(24),a=n(15),s=n(16),u=n(80);r(r.S+r.F*n(10)(function(){function t(){}return!(Reflect.construct(function(){},[],t)instanceof t)}),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(u.apply(t,r))}var c=n.prototype,l=i(s(c)?c:Object.prototype),f=Function.apply.call(t,l,e);return s(f)?f:l}})},function(t,e,n){var r=n(14),i=n(11),o=n(15),a=n(19);i(i.S+i.F*n(10)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=a(e,!0),o(n);try{return r.f(t,e,n),!0}catch(i){return!1}}})},function(t,e,n){var r=n(11),i=n(54).f,o=n(15);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return n&&!n.configurable?!1:delete t[e]}})},function(t,e,n){"use strict";var r=n(11),i=n(15),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(134)(o,"Object",function(){var t,e=this,n=e._k;do if(e._i>=n.length)return{value:void 0,done:!0};while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){function r(t,e){var n,s,l=arguments.length<3?t:arguments[2];return c(t)===l?t[e]:(n=i.f(t,e))?a(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:u(s=o(t))?r(s,e,l):void 0}var i=n(54),o=n(62),a=n(8),s=n(11),u=n(16),c=n(15);s(s.S,"Reflect",{get:r})},function(t,e,n){var r=n(54),i=n(11),o=n(15);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(11),i=n(62),o=n(15);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(11);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(11),i=n(15),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),o?o(t):!0}})},function(t,e,n){var r=n(11);r(r.S,"Reflect",{ownKeys:n(247)})},function(t,e,n){var r=n(53),i=n(46),o=n(15),a=n(7).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(11),i=n(15),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(e){return!1}}})},function(t,e,n){function r(t,e,n){var u,d,h=arguments.length<4?t:arguments[3],p=o.f(l(t),e);if(!p){if(f(d=a(t)))return r(d,e,n,h);p=c(0)}return s(p,"value")?p.writable!==!1&&f(h)?(u=o.f(h,e)||c(0),u.value=n,i.f(h,e,u),!0):!1:void 0===p.set?!1:(p.set.call(h,n),!0)}var i=n(14),o=n(54),a=n(62),s=n(8),u=n(11),c=n(20),l=n(15),f=n(16);u(u.S,"Reflect",{set:r})},function(t,e,n){var r=n(11),i=n(76);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(n){return!1}}})},function(t,e,n){"use strict";var r=n(11),i=n(39)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(190)("includes")},function(t,e,n){"use strict";var r=n(11),i=n(131)(!0);r(r.P,"String",{at:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(11),i=n(254);r(r.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){var r=n(40),i=n(95),o=n(38);t.exports=function(t,e,n,a){var s=String(o(t)),u=s.length,c=void 0===n?" ":String(n),l=r(e);if(u>=l||""==c)return s;var f=l-u,d=i.call(c,Math.ceil(f/c.length));return d.length>f&&(d=d.slice(0,f)),a?d+s:s+d}},function(t,e,n){"use strict";var r=n(11),i=n(254);r(r.P,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";n(86)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(86)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){"use strict";var r=n(11),i=n(38),o=n(40),a=n(138),s=n(200),u=RegExp.prototype,c=function(t,e){this._r=t,this._s=e};n(134)(c,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){if(i(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in u?String(t.flags):s.call(t),r=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(t.lastIndex),new c(r,e)}})},function(t,e,n){n(30)("asyncIterator")},function(t,e,n){n(30)("observable")},function(t,e,n){var r=n(11),i=n(247),o=n(35),a=n(54),s=n(167);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n=o(t),r=a.f,u=i(n),c={},l=0;u.length>l;)s(c,e=u[l++],r(n,e));return c}})},function(t,e,n){var r=n(11),i=n(263)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){var r=n(33),i=n(35),o=n(47).f;t.exports=function(t){return function(e){for(var n,a=i(e),s=r(a),u=s.length,c=0,l=[];u>c;)o.call(a,n=s[c++])&&l.push(t?[n,a[n]]:a[n]);return l}}},function(t,e,n){var r=n(11),i=n(263)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(11),i=n(61),o=n(24),a=n(14);n(9)&&r(r.P+n(266),"Object",{__defineGetter__:function(t,e){a.f(i(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){t.exports=n(31)||!n(10)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(7)[t]})},function(t,e,n){"use strict";var r=n(11),i=n(61),o=n(24),a=n(14);n(9)&&r(r.P+n(266),"Object",{__defineSetter__:function(t,e){a.f(i(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(11),i=n(61),o=n(19),a=n(62),s=n(54).f;n(9)&&r(r.P+n(266),"Object",{__lookupGetter__:function(t){var e,n=i(this),r=o(t,!0);do if(e=s(n,r))return e.get;while(n=a(n))}})},function(t,e,n){"use strict";var r=n(11),i=n(61),o=n(19),a=n(62),s=n(54).f;n(9)&&r(r.P+n(266),"Object",{__lookupSetter__:function(t){var e,n=i(this),r=o(t,!0);do if(e=s(n,r))return e.set;while(n=a(n))}})},function(t,e,n){var r=n(11);r(r.P+r.R,"Map",{toJSON:n(271)("Map")})},function(t,e,n){var r=n(78),i=n(272);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){var r=n(209);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(11);r(r.P+r.R,"Set",{toJSON:n(271)("Set")})},function(t,e,n){var r=n(11);r(r.S,"System",{global:n(7)})},function(t,e,n){var r=n(11),i=n(37);r(r.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,e,n){var r=n(11);r(r.S,"Math",{iaddh:function(t,e,n,r){var i=t>>>0,o=e>>>0,a=n>>>0;return o+(r>>>0)+((i&a|(i|a)&~(i+a>>>0))>>>31)|0}})},function(t,e,n){var r=n(11);r(r.S,"Math",{isubh:function(t,e,n,r){var i=t>>>0,o=e>>>0,a=n>>>0;return o-(r>>>0)-((~i&a|~(i^a)&i-a>>>0)>>>31)|0}})},function(t,e,n){var r=n(11);r(r.S,"Math",{imulh:function(t,e){var n=65535,r=+t,i=+e,o=r&n,a=i&n,s=r>>16,u=i>>16,c=(s*a>>>0)+(o*a>>>16);return s*u+(c>>16)+((o*u>>>0)+(c&n)>>16)}})},function(t,e,n){var r=n(11);r(r.S,"Math",{umulh:function(t,e){var n=65535,r=+t,i=+e,o=r&n,a=i&n,s=r>>>16,u=i>>>16,c=(s*a>>>0)+(o*a>>>16);return s*u+(c>>>16)+((o*u>>>0)+(c&n)>>>16)}})},function(t,e,n){var r=n(281),i=n(15),o=r.key,a=r.set;r.exp({defineMetadata:function(t,e,n,r){a(t,e,i(n),o(r))}})},function(t,e,n){var r=n(214),i=n(11),o=n(26)("metadata"),a=o.store||(o.store=new(n(218))),s=function(t,e,n){var i=a.get(t);if(!i){if(!n)return;a.set(t,i=new r)}var o=i.get(e);if(!o){if(!n)return;i.set(e,o=new r)}return o},u=function(t,e,n){var r=s(e,n,!1);return void 0===r?!1:r.has(t)},c=function(t,e,n){var r=s(e,n,!1);return void 0===r?void 0:r.get(t)},l=function(t,e,n,r){s(n,r,!0).set(t,e)},f=function(t,e){var n=s(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},d=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},h=function(t){i(i.S,"Reflect",t)};t.exports={store:a,map:s,has:u,get:c,set:l,keys:f,key:d,exp:h}},function(t,e,n){var r=n(281),i=n(15),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(e),n,!1);if(void 0===r||!r["delete"](t))return!1;if(r.size)return!0;var u=s.get(e);return u["delete"](n),!!u.size||s["delete"](e)}})},function(t,e,n){var r=n(281),i=n(15),o=n(62),a=r.has,s=r.get,u=r.key,c=function(t,e,n){var r=a(t,e,n);if(r)return s(t,e,n);var i=o(e);return null!==i?c(t,i,n):void 0};r.exp({getMetadata:function(t,e){return c(t,i(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(217),i=n(272),o=n(281),a=n(15),s=n(62),u=o.keys,c=o.key,l=function(t,e){var n=u(t,e),o=s(t);if(null===o)return n;var a=l(o,e);return a.length?n.length?i(new r(n.concat(a))):a:n};o.exp({getMetadataKeys:function(t){return l(a(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,n){var r=n(281),i=n(15),o=r.get,a=r.key;r.exp({getOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(281),i=n(15),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,n){var r=n(281),i=n(15),o=n(62),a=r.has,s=r.key,u=function(t,e,n){var r=a(t,e,n);if(r)return!0;var i=o(e);return null!==i?u(t,i,n):!1};r.exp({hasMetadata:function(t,e){return u(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(281),i=n(15),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(281),i=n(15),o=n(24),a=r.key,s=r.set;r.exp({metadata:function(t,e){return function(n,r){s(t,e,(void 0!==r?i:o)(n),a(r))}}})},function(t,e,n){var r=n(11),i=n(212)(),o=n(7).process,a="process"==n(37)(o);r(r.G,{asap:function(t){var e=a&&o.domain;i(e?e.bind(t):t)}})},function(t,e,n){"use strict";var r=n(11),i=n(7),o=n(12),a=n(212)(),s=n(28)("observable"),u=n(24),c=n(15),l=n(93),f=n(213),d=n(13),h=n(209),p=h.RETURN,m=function(t){return null==t?void 0:u(t)},v=function(t){var e=t._c;e&&(t._c=void 0,e())},g=function(t){return void 0===t._o},y=function(t){g(t)||(t._o=void 0,v(t))},_=function(t,e){c(t),this._c=void 0,this._o=t,t=new b(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(i){return void t.error(i)}g(this)&&v(this)};_.prototype=f({},{unsubscribe:function(){y(this)}});var b=function(t){this._s=t};b.prototype=f({},{next:function(t){var e=this._s;if(!g(e)){var n=e._o;try{var r=m(n.next);if(r)return r.call(n,t)}catch(i){try{y(e)}finally{throw i}}}},error:function(t){var e=this._s;if(g(e))throw t;var n=e._o;e._o=void 0;try{var r=m(n.error);if(!r)throw t;t=r.call(n,t)}catch(i){try{v(e)}finally{throw i}}return v(e),t},complete:function(t){var e=this._s;if(!g(e)){var n=e._o;e._o=void 0;try{var r=m(n.complete);t=r?r.call(n,t):void 0}catch(i){try{v(e)}finally{throw i}}return v(e),t}}});var x=function(t){l(this,x,"Observable","_f")._f=u(t)};f(x.prototype,{subscribe:function(t){return new _(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||i.Promise)(function(n,r){u(t);var i=e.subscribe({next:function(e){try{return t(e)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n})})}}),f(x,{from:function(t){var e="function"==typeof this?this:x,n=m(c(t)[s]);if(n){var r=c(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return a(function(){if(!n){try{if(h(t,!1,function(t){return e.next(t),n?p:void 0})===p)return}catch(r){if(n)throw r;return void e.error(r)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=Array(e);e>t;)n[t]=arguments[t++];return new("function"==typeof this?this:x)(function(t){var e=!1;return a(function(){if(!e){for(var r=0;ra;)(n[a]=arguments[a++])===s&&(u=!0);return function(){var r,o=this,a=arguments.length,c=0,l=0;if(!u&&!a)return i(t,n,o);if(r=n.slice(),u)for(;e>c;c++)r[c]===s&&(r[c]=arguments[l++]);for(;a>l;)r.push(arguments[l++]);return i(t,r,o)}}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(11),i=n(211);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(197),i=n(21),o=n(7),a=n(13),s=n(133),u=n(28),c=u("iterator"),l=u("toStringTag"),f=s.Array,d=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],h=0;5>h;h++){var p,m=d[h],v=o[m],g=v&&v.prototype;if(g){g[c]||a(g,c,f),g[l]||a(g,l,m),s[m]=f;for(p in r)g[p]||i(g,p,r[p],!0)}}},function(t,e,n){(function(e,n,r){!function(e){"use strict";function i(t,e,n,r){var i=Object.create((e||a).prototype),o=new m(r||[]);return i._invoke=d(t,n,o),i}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function a(){}function s(){}function u(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function l(t){this.arg=t}function f(t){function e(r,i,a,s){var u=o(t[r],t,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f instanceof l?n.resolve(f.arg).then(function(t){e("next",t,a,s)},function(t){e("throw",t,a,s)}):n.resolve(f).then(function(t){c.value=t,a(c)},s)}s(u.arg)}function i(t,r){function i(){return new n(function(n,i){e(t,r,n,i)})}return a=a?a.then(i,i):i()}"object"==typeof r&&r.domain&&(e=r.domain.bind(e));var a;this._invoke=i}function d(t,e,n){var r=E;return function(i,a){if(r===I)throw new Error("Generator is already running");if(r===M){if("throw"===i)throw a;return g()}for(;;){var s=n.delegate;if(s){if("return"===i||"throw"===i&&s.iterator[i]===y){n.delegate=null;var u=s.iterator["return"];if(u){var c=o(u,s.iterator,a);if("throw"===c.type){i="throw",a=c.arg;continue}}if("return"===i)continue}var c=o(s.iterator[i],s.iterator,a);if("throw"===c.type){n.delegate=null,i="throw",a=c.arg;continue}i="next",a=y;var l=c.arg;if(!l.done)return r=A,l;n[s.resultName]=l.value,n.next=s.nextLoc,n.delegate=null}if("next"===i)n.sent=n._sent=a;else if("throw"===i){if(r===E)throw r=M,a;n.dispatchException(a)&&(i="next",a=y)}else"return"===i&&n.abrupt("return",a);r=I;var c=o(t,e,n);if("normal"===c.type){r=n.done?M:A;var l={value:c.arg,done:n.done};if(c.arg!==O)return l;n.delegate&&"next"===i&&(a=y)}else"throw"===c.type&&(r=M,i="throw",a=c.arg)}}}function h(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function m(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function v(t){if(t){var e=t[x];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=_.call(i,"catchLoc"),s=_.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),O}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},O}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(4),n(298))},function(t,e){function n(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&r())}function r(){if(!c){var t=setTimeout(n);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l1)for(var n=1;n "+t.message+"
"+t.stack+"
"),console.error(t.message+" at "+t.stack)}Object.defineProperty(e,"__esModule",{value:!0}),e.parseStatus=i,e.parseJSON=o,e.userFeedback=a,e.userFeedbackError=s;var u=n(303),c=r(u),l=n(306),f=function d(t){var d=new Error(t.statusText||t||"");return d.response=t,d}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(304),o=r(i);o["default"].options.positionClass="toast-top-right",o["default"].options.preventDuplicates=!0,e["default"]=o["default"]},,,function(t,e){t.exports=GravAdmin},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||0>t||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,i,s,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[t],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,u=0;i>u;u++)c[u].apply(this,s);return!0},n.prototype.addListener=function(t,e){var i;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(i=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(0>i)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){(function(t){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n':'",n+='\n \n Grav v'+t.available+" "+l.translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE+'! ('+l.translations.PLUGIN_ADMIN.CURRENT+" v"+t.version+")\n ",(0,s["default"])("[data-gpm-grav]").css("display","block").addClass("grav").html("

"+n+"

")}return(0,s["default"])("#grav-update-button").on("click",function(){(0,s["default"])(this).html(l.translations.PLUGIN_ADMIN.UPDATING_PLEASE_WAIT+" "+(0,d["default"])(t.assets["grav-update"].size)+"..")}),this}},{key:"resources",value:function(){if(!this.payload.resources.total)return this.maintenance("hide");var t=["plugins","themes"],e=["plugin","theme"],n=this.payload.resources,r=n.plugins,i=n.themes;return this.payload.resources.total?void[r,i].forEach(function(n,r){if(n&&!Array.isArray(n)){var i=Object.keys(n).length,o=t[r];(0,s["default"])('#admin-menu a[href$="/'+t[r]+'"]').find(".badges").addClass("with-updates").find(".badge.updates").text(i);var a="";a="plugins"===o?l.translations.PLUGIN_ADMIN.PLUGINS:l.translations.PLUGIN_ADMIN.THEMES;var u=(0,s["default"])(".grav-update."+o);u.css("display","block").html('\n

\n '+l.translations.PLUGIN_ADMIN.UPDATE+" "+l.translations.PLUGIN_ADMIN.ALL+" "+a+'\n \n '+i+" "+l.translations.PLUGIN_ADMIN.OF_YOUR+" "+o+" "+l.translations.PLUGIN_ADMIN.HAVE_AN_UPDATE_AVAILABLE+"\n

\n ");var f=(0,s["default"])("[data-update-packages]").attr("data-packages-slugs")||"";f=f?f.split(","):[];var d=(0,c["default"])(f.concat(Object.keys(n))).join();(0,s["default"])("[data-update-packages]").attr("data-packages-slugs",""+d),Object.keys(n).forEach(function(t){var i=(0,s["default"])("[data-gpm-"+e[r]+'="'+t+'"]'),a=i.find(".gpm-name"),u=a.find("a");if("plugins"!==o||a.find(".badge.update").length?"themes"===o&&a.append('"):a.append(''+l.translations.PLUGIN_ADMIN.UPDATE_AVAILABLE+"!"),i.length){var c=(0,s["default"])(".grav-update."+e[r]);if(c.length){var f="testing"===n[t].type?'test release':"";c.html('\n

\n '+l.translations.PLUGIN_ADMIN.UPDATE+" "+(e[r].charAt(0).toUpperCase()+e[r].substr(1).toLowerCase())+'\n \n v'+n[t].available+" "+f+" "+l.translations.PLUGIN_ADMIN.OF_THIS+" "+e[r]+" "+l.translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE+"!\n

\n ").css("display","block")}}}),(0,s["default"])("[data-update-packages]").removeClass("hidden")}}):this}}]),t}();e["default"]=p;var m=new p;e.Instance=m,h.Instance.on("fetched",function(t,e){m.setPayload(t.payload||{}),m.grav().resources()}),"1"===l.config.enable_auto_updates_check&&h.Instance.fetch()},function(t,e,n){function r(t,e){return e=e||i,o(t,function(t,n,r){for(var i=r.length;++n .fa").removeClass("fa-cloud-download").addClass("fa-refresh fa-spin"),(0,s["default"])(e,function(e){"updategrav"===e.type&&((0,o["default"])("[data-gpm-grav]").remove(),(0,o["default"])("#footer .grav-version").html(e.version)),t.removeAttr("disabled").find("> .fa").removeClass("fa-refresh fa-spin").addClass("fa-cloud-download")})})},function(t,e,n){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(302),i=n(306),o=void 0,a=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=arguments.length<=2||void 0===arguments[2]?function(){return!0}:arguments[2];return"function"==typeof n&&(a=n,n={}),n.method&&"post"===n.method&&n.body&&!function(){var t=new FormData;n.body=Object.assign({"admin-nonce":i.config.admin_nonce},n.body),Object.keys(n.body).map(function(e){return t.append(e,n.body[e])}),n.body=t}(),n=Object.assign({credentials:"same-origin",headers:{Accept:"application/json"}},n),t(e,n).then(function(t){return o=t,t}).then(r.parseStatus).then(r.parseJSON).then(r.userFeedback).then(function(t){return a(t,o)})["catch"](r.userFeedbackError)};e["default"]=a}).call(e,n(3))},function(t,e,n){(function(t){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}var r=n(1),i=e(r),o=n(325),a=e(o),s=(0,i["default"])('input[type="radio"][name="channel-switch"]');s&&s.on("change",function(e){var n=(0,i["default"])(e.target),r=""+n.parent("[data-url]").data("url");(0,a["default"])(r,{method:"post",body:{task:"gpmRelease",release:n.val()}},function(e){e.reload&&t.location.reload()})})}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(328),o=r(i),a=n(330);n(331),e["default"]={Chart:{Chart:o["default"],UpdatesChart:i.UpdatesChart,Instances:i.Instances},Cache:a.Instance}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instances=e.UpdatesChart=e.defaults=void 0;var s=function x(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:x(i,e,n)}if("value"in r)return r.value;var o=r.get;if(void 0!==o)return o.call(n)},u=function(){function t(t,e){for(var n=0;n-1,g=e.defaults={data:{series:[100,0]},options:{Pie:{donut:!0,donutWidth:10,startAngle:0,total:100,showLabel:!1,height:150,chartPadding:5},Bar:{height:164,chartPadding:v?10:5,axisX:{showGrid:!1,labelOffset:{x:0,y:0}},axisY:{offset:15,showLabel:!0,showGrid:!0,labelOffset:{x:5,y:5},scaleMinSpace:v?10:20}}}},y=function(){function t(e){var n=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(a(this,t),this.element=(0,l["default"])(e)||[],this.element[0]){var o=(this.element.data("chart-type")||"pie").toLowerCase();this.type=o.charAt(0).toUpperCase()+o.substr(1).toLowerCase(),r=Object.assign({},g.options[this.type],r),i=Object.assign({},g.data,i),Object.assign(this,{options:r,data:i}),this.chart=d["default"][this.type](this.element.find(".ct-chart").empty()[0],this.data,this.options),this.chart.on("created",function(){return n.element.find(".hidden").removeClass("hidden")})}}return u(t,[{key:"updateData",value:function(t){Object.assign(this.data,t),this.chart.update(this.data)}}]),t}();e["default"]=y;var _=e.UpdatesChart=function(t){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];a(this,e);var o=i(this,Object.getPrototypeOf(e).call(this,t,n,r));return o.chart.on("draw",function(t){return o.draw(t)}),p.Instance.on("fetched",function(t){var e=t.payload.grav,n=100*(t.payload.resources.total+(e.isUpdatable?1:0))/(t.payload.installed+(e.isUpdatable?1:0)),r=100-n;o.updateData({series:[r,n]}),t.payload.resources.total&&m.Instance.maintenance("show")}),o}return o(e,t),u(e,[{key:"draw",value:function(t){if(!t.index){var e=h.translations.PLUGIN_ADMIN[100===t.value?"FULLY_UPDATED":"UPDATES_AVAILABLE"];this.element.find(".numeric span").text(Math.round(t.value)+"%"),this.element.find(".js__updates-available-description").html(e),this.element.find(".hidden").removeClass("hidden")}}},{key:"updateData",value:function(t){s(Object.getPrototypeOf(e.prototype),"updateData",this).call(this,t),this.data.series[0]<100&&this.element.closest("#updates").find("[data-update-packages]").fadeIn()}}]),e}(y),b={};(0,l["default"])("[data-chart-name]").each(function(){var t=(0,l["default"])(this),e=t.data("chart-name")||"",n=t.data("chart-options")||{},r=t.data("chart-data")||{};"updates"===e?b[e]=new _(t,n,r):b[e]=new y(t,n,r)});e.Instances=b},,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var o=function(){function t(t,e){for(var n=0;n .fa").removeClass("fa-refresh fa-spin").addClass("fa-trash")}},{key:"disable",value:function(){this.element.attr("disabled","disabled").find("> .fa").removeClass("fa-trash").addClass("fa-refresh fa-spin")}}]),t}();e["default"]=d;var h=new d;e.Instance=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(1),o=r(i),a=n(306),s=n(325),u=r(s),c=n(328);(0,o["default"])('[data-ajax*="task:backup"]').on("click",function(){var t=(0,o["default"])(this),e=t.data("ajax");t.attr("disabled","disabled").find("> .fa").removeClass("fa-database").addClass("fa-spin fa-refresh"),(0,u["default"])(e,function(){c.Instances&&c.Instances.backups&&(c.Instances.backups.updateData({series:[0,100]}),c.Instances.backups.element.find(".numeric").html("0 "+a.translations.PLUGIN_ADMIN.DAYS.toLowerCase()+"")),t.removeAttr("disabled").find("> .fa").removeClass("fa-spin fa-refresh").addClass("fa-database")})})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(333),s=r(a),u=n(334),c=r(u);n(342);var l=null,f=(0,o["default"])("#ordering");f.length&&(l=new s["default"](f.get(0),{filter:".ignore",onUpdate:function(t){var e=(0,o["default"])(t.item),n=f.children().index(e)+1;(0,o["default"])("[data-order]").val(n)}})),e["default"]={Ordering:l,PageFilters:{PageFilters:c["default"],Instance:u.Instance}}},,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;nl&&l>0?o=setTimeout(i,e-l):(o=null,n||(c=t.apply(s,a),o||(s=a=null)))}var o,a,s,u,c;return null==e&&(e=100),function(){s=this,a=arguments,u=r();var l=n&&!o;return o||(o=setTimeout(i,e)),l&&(c=t.apply(s,a),s=a=null),c}}},function(t,e){function n(){return(new Date).getTime()}t.exports=Date.now||n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var o=function(){function t(t,e){for(var n=0;n');o.parent().append(n),o.siblings("label").on("mousedown touchdown",function(e){e.preventDefault();var r=(0,i["default"])('[data-remodal-id="changes"] [data-leave-action="continue"]');r.one("click",function(){(0,i["default"])(t).on("beforeunload._grav"),n.off("click._grav"),(0,i["default"])(e.target).trigger("click")}),n.trigger("click._grav")}),o.on("change",function(t){var r=(0,i["default"])(t.target);e=r.data("leave-url"),setTimeout(function(){return n.attr("href",e).get(0).click()},5)}); -}()}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(1),o=r(i);n(344);var a=!1,s=(0,o["default"])('[data-remodal-id="modal"] input[name="data[folder]"], [data-remodal-id="modular"] input[name="data[folder]"]'),u=(0,o["default"])('[data-remodal-id="modal"] input[name="data[title]"], [data-remodal-id="modular"] input[name="data[title]"]'),c=function(t,e){e=(0,o["default"])(e);var n='[data-remodal-id="'+e.closest("[data-remodal-id]").data("remodal-id")+'"]';return{title:"title"===t?(0,o["default"])(e):(0,o["default"])(n+' input[name="data[title]"]'),folder:"folder"===t?(0,o["default"])(e):(0,o["default"])(n+' input[name="data[folder]"]')}};u.on("input focus blur",function(t){if(a)return!0;var e=c("title",t.currentTarget),n=o["default"].slugify(e.title.val());e.folder.val(n)}),s.on("input",function(t){var e=c("folder",t.currentTarget),n=e.folder.get(0),r=e.folder.val(),i={start:n.selectionStart,end:n.selectionEnd};r=r.toLowerCase().replace(/\s/g,"-").replace(/[^a-z0-9_\-]/g,""),e.folder.val(r),a=!!r,n.setSelectionRange(i.start,i.end)}),s.on("focus blur",function(t){return c("title",t.currentTarget).title.trigger("input")})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(1),o=r(i),a=n(345),s=r(a);o["default"].expr[":"].noparents=o["default"].expr.createPseudo(function(t){return function(e){return(0,o["default"])(e).parents(t).length<1}}),o["default"].fn.slugify=function(t,e){return(void 0).each(function(t){var n=(0,o["default"])(t),r=(0,o["default"])(r);n.on("keyup change",function(){n.data("locked",""!==n.val()&&void 0!==n.val())}),r.on("keyup change",function(){if(n.data("locked")===!0)return!0;var t=n.is("input")||n.is("textarea");n[t?"val":"text"](o["default"].slugify(r.val(),e))})})},o["default"].slugify=function(t,e){return e=o["default"].extend({},o["default"].slugify.options,e),e.lang=e.lang||(0,o["default"])("html").prop("lang"),"function"==typeof e.preSlug&&(t=e.preSlug(t)),t=e.slugFunc(t,e),"function"==typeof e.postSlug&&(t=e.postSlug(t)),t},o["default"].slugify.options={preSlug:null,postSlug:null,slugFunc:function(t,e){return(0,s["default"])(t,e)}}},,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(1),o=r(i);(0,o["default"])('[data-page-move] button[name="task"][value="save"]').on("click",function(){var t=(0,o["default"])('form#blueprints:first select[name="data[route]"]'),e=(0,o["default"])("[data-page-move] select").val();if(t.length&&t.val()!==e){var n=t.data("selectize");t.val(e),n&&n.setValue(e)}})},function(t,e,n){(function(t){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}var r=n(1),i=e(r);(0,i["default"])('[data-remodal-target="delete"]').on("click",function(){var t=(0,i["default"])('[data-remodal-id="delete"] [data-delete-action]'),e=(0,i["default"])(this).data("delete-url");t.data("delete-action",e)}),(0,i["default"])("[data-delete-action]").on("click",function(){var e=i["default"].remodal.lookup[(0,i["default"])('[data-remodal-id="delete"]').data("remodal")];t.location.href=(0,i["default"])(this).data("delete-action"),e.close()})}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(1),o=r(i);(0,o["default"])(".disable-after-click").on("click",function(){(0,o["default"])(this).addClass("pointer-events-disabled")})},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return t=t.replace(/@3x|@2x|@1x/,""),t=t.replace(/\(/g,"%28"),t=t.replace(/\)/g,"%29"),t.match(/\.(jpe?g|png|gif|svg)$/i)?"![]("+t+")":"["+decodeURI(t)+"]("+t+")"}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var a=function(){function t(t,e){for(var n=0;n\n
\n
\n
\n \n
\n
\n
\n
\n
\n '+h.translations.PLUGIN_ADMIN.DELETE+'\n '+h.translations.PLUGIN_ADMIN.INSERT+"\n ").trim()},v=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.form,r=void 0===n?"[data-media-url]":n,o=t.container,a=void 0===o?"#grav-dropzone":o,s=t.options,c=void 0===s?{}:s;i(this,e),this.form=(0,u["default"])(r),this.container=(0,u["default"])(a),this.form.length&&this.container.length&&(this.options=Object.assign({},m,{url:this.form.data("media-url")+"/task"+h.config.param_sep+"addmedia",acceptedFiles:this.form.data("media-types")},this.form.data("dropzone-options"),c),this.dropzone=new l["default"](a,this.options),this.dropzone.on("complete",this.onDropzoneComplete.bind(this)),this.dropzone.on("success",this.onDropzoneSuccess.bind(this)),this.dropzone.on("removedfile",this.onDropzoneRemovedFile.bind(this)),this.dropzone.on("sending",this.onDropzoneSending.bind(this)),this.dropzone.on("error",this.onDropzoneError.bind(this)),("undefined"==typeof this.options.fetchMedia||this.options.fetchMedia)&&this.fetchMedia(),("undefined"==typeof this.options.attachDragDrop||this.options.attachDragDrop)&&this.attachDragDrop())}return a(e,[{key:"fetchMedia",value:function(){var t=this,e=this.form.data("media-url")+"/task"+h.config.param_sep+"listmedia/admin-nonce"+h.config.param_sep+h.config.admin_nonce;(0,d["default"])(e,function(e){var n=e.results;Object.keys(n).forEach(function(e){var r=n[e],i={name:e,size:r.size,accepted:!0,extras:r};t.dropzone.files.push(i),t.dropzone.options.addedfile.call(t.dropzone,i),e.match(/\.(jpg|jpeg|png|gif)$/i)&&t.dropzone.options.thumbnail.call(t.dropzone,i,r.url)}),t.container.find(".dz-preview").prop("draggable","true")})}},{key:"onDropzoneSending",value:function(t,e,n){n.append("admin-nonce",h.config.admin_nonce)}},{key:"onDropzoneSuccess",value:function(e,n,r){return this.options.reloadPage&&t.location.reload(),this.handleError({file:e,data:n,mode:"removeFile",msg:"

"+h.translations.PLUGIN_ADMIN.FILE_ERROR_UPLOAD+" "+e.name+"

\n
"+n.message+"
"})}},{key:"onDropzoneComplete",value:function(e){if(!e.accepted){var n={status:"error",message:h.translations.PLUGIN_ADMIN.FILE_UNSUPPORTED+": "+e.name.match(/\..+/).join("")};return this.handleError({file:e,data:n,mode:"removeFile",msg:"

"+h.translations.PLUGIN_ADMIN.FILE_ERROR_ADD+" "+e.name+"

\n
"+n.message+"
"})}(0,u["default"])(".dz-preview").prop("draggable","true"),this.options.reloadPage&&t.location.reload()}},{key:"onDropzoneRemovedFile",value:function(t){if(t.accepted&&!t.rejected){var e=this.form.data("media-url")+"/task"+h.config.param_sep+"delmedia";(0,d["default"])(e,{method:"post",body:{filename:t.name}})}}},{key:"onDropzoneError",value:function(t,e,n){var r=n?e.error.message:e;return(0,u["default"])(t.previewElement).find("[data-dz-errormessage]").html(r),this.handleError({file:t,data:{status:"error"},msg:"
"+r+"
"})}},{key:"handleError",value:function(t){var e=t.file,n=t.data,r=t.mode,i=t.msg;if("error"===n.status||"unauthorized"===n.status){switch(r){case"addBack":e instanceof File?this.dropzone.addFile.call(this.dropzone,e):(this.dropzone.files.push(e),this.dropzone.options.addedfile.call(this.dropzone,e),this.dropzone.options.thumbnail.call(this.dropzone,e,e.extras.url));break;case"removeFile":e.rejected=!0,this.dropzone.removeFile.call(this.dropzone,e)}var o=(0,u["default"])('[data-remodal-id="generic"]');o.find(".error-content").html(i),u["default"].remodal.lookup[o.data("remodal")].open()}}},{key:"attachDragDrop",value:function(){var t=this;this.container.delegate("[data-dz-insert]","click",function(t){var e=(0,u["default"])(t.currentTarget).parent(".dz-preview").find(".dz-filename"),n=p.Instance.editors.filter(function(t,e){return"data[content]"===(0,u["default"])(e).attr("name")});if(n.length){n=n.data("codemirror"),n.focus();var r=encodeURI(e.text()),i=o(r);n.doc.replaceSelection(i)}}),this.container.delegate(".dz-preview","dragstart",function(e){var n=(0,u["default"])(e.currentTarget),r=encodeURI(n.find(".dz-filename").text()),i=o(r);t.dropzone.disable(),n.addClass("hide-backface"),e.originalEvent.dataTransfer.effectAllowed="copy",e.originalEvent.dataTransfer.setData("text",i)}),this.container.delegate(".dz-preview","dragend",function(e){var n=(0,u["default"])(e.currentTarget);t.dropzone.enable(),n.removeClass("hide-backface")})}}]),e}();e["default"]=v;e.Instance=new v}).call(e,function(){return this}())},,,function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=e.Toolbar=void 0;var o=function(){function t(t,e){for(var n=0;n').attr("href",r))}"yaml"===e.mode&&Object.assign(e.extraKeys,{Tab:function(t){t.replaceSelection(" ","end")}});var i=f["default"].fromTextArea(t.get(0),e);t.data("codemirror",i),t.data("toolbar",new _(t)),e.toolbar===!1&&t.data("toolbar").ui.navigation.addClass("grav-editor-hide-toolbar"),i.on("change",function(){return i.save()})}},{key:"_onAddedNodes",value:function(t,e){var n=this,r=(0,s["default"])(e).find("[data-grav-editor]");r.length&&r.each(function(t,e){e=(0,s["default"])(e),~n.editors.index(e)||n.addEditor(e)})}}]),t}();e["default"]=y;var _=e.Toolbar=function(){function t(e){i(this,t),this.editor=(0,s["default"])(e),this.codemirror=this.editor.data("codemirror"),this.buttons=c["default"].navigation,this.ui={navigation:(0,s["default"])(t.templates().navigation)},this.editor.parent(".grav-editor-content").before(this.ui.navigation).after(this.ui.states),this.renderButtons()}return o(t,null,[{key:"templates",value:function(){return{navigation:'\n
\n
\n
\n
\n '}}}]),o(t,[{key:"renderButtons",value:function(){var t=this,e={actions:"navigation",modes:"states"};["actions","modes"].forEach(function(n){t.ui.navigation.find(".grav-editor-"+n).empty().append("
    "),c["default"][e[n]].forEach(function(e){return t.renderButton(e,n)})})}},{key:"renderButton",value:function(t,e){var n=this,r=arguments.length<=2||void 0===arguments[2]?null:arguments[2];Object.keys(t).forEach(function(i){var o=t[i];if(o.modes||(o.modes=[]),!~n.codemirror.options.ignore.indexOf(i)&&(!o.modes.length||o.modes.indexOf(n.codemirror.options.mode)>-1)){var a=o.title?'data-hint="'+o.title+'"':"",u=(0,s["default"])('
  • "+o.label+"
  • ");(r||n.ui.navigation.find(".grav-editor-"+e+" ul:not(.dropdown-menu)")).append(u),o.shortcut&&n.addShortcut(o.identifier,o.shortcut,u),o.action&&o.action.call(o.action,{codemirror:n.codemirror,button:u,textarea:n.editor,ui:n.ui}),o.children&&!function(){var t=(0,s["default"])('