diff --git a/CHANGELOG.md b/CHANGELOG.md index 070d18f56..b5e405308 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#bugfix) * Fixed chart labels not parsing HTML [#1234](https://github.com/getgrav/grav-plugin-admin/issues/1234) + * Fixed Dropzone timeout to address slow internet connections [#1239](https://github.com/getgrav/grav-plugin-admin/pull/1239) # v1.6.2 ## 09/29/2017 diff --git a/themes/grav/js/admin.min.js b/themes/grav/js/admin.min.js index a432e44f1..2c8917602 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 y}})},function(t,e,n){var r=n(37);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){"use strict";var r=n(41),i=n(38);t.exports=function(t){var e=String(i(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(11),i=n(10),a=n(92),o=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==o.call(1,void 0)})||!i(function(){o.call({})})),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?o.call(e):o.call(e,t)}})},function(t,e,n){var r=n(11);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(11),i=n(7).isFinite;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(98)})},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(98),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&a(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(88);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(11),i=n(84);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(11),i=n(106),a=Math.sqrt,o=Math.acosh;r(r.S+r.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+a(t-1)*a(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(11),a=Math.asinh;i(i.S+i.F*!(a&&1/a(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(110);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:t<0?-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(114);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||n(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(11);r(r.S,"Math",{fround:n(116)})},function(t,e,n){var r=n(110),i=Math.pow,a=i(2,-52),o=i(2,-23),s=i(2,127)*(2-o),l=i(2,-126),c=function(t){return t+1/a-1/a};t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),u=r(t);return is||n!=n?u*(1/0):u*n)}},function(t,e,n){var r=n(11),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,o=0,s=arguments.length,l=0;o0?(r=n/l,a+=r*r):a+=n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(11),i=Math.imul;r(r.S+r.F*n(10)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(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.LOG10E}})},function(t,e,n){var r=n(11);r(r.S,"Math",{log1p:n(106)})},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(110)})},function(t,e,n){var r=n(11),i=n(114),a=Math.exp;r(r.S+r.F*n(10)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(11),i=n(114),a=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)/(a(t)+a(-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),a=String.fromCharCode,o=String.fromCodePoint;r(r.S+r.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,o=0;r>o;){if(e=+arguments[o++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(11),i=n(35),a=n(40);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=a(e.length),r=arguments.length,o=[],s=0;n>s;)o.push(String(e[s++])),s=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 a,o,s=String(i(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):a:t?s.slice(l,l+2):(a-55296<<10)+(o-56320)+65536)}}},function(t,e,n){"use strict";var r=n(31),i=n(11),a=n(21),o=n(13),s=n(8),l=n(132),c=n(133),u=n(27),f=n(61),d=n(28)("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",m="keys",v="values",g=function(){return this};t.exports=function(t,e,n,y,_,b,w){c(n,e,y);var k,x,S,A=function(t){if(!p&&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)}},E=e+" Iterator",I=_==v,M=!1,O=t.prototype,C=O[d]||O[h]||_&&O[_],P=C||A(_),j=_?I?A("entries"):P:void 0,T="Array"==e?O.entries||C:C;if(T&&(S=f(T.call(new t)),S!==Object.prototype&&S.next&&(u(S,E,!0),r||s(S,d)||o(S,d,g))),I&&C&&C.name!==v&&(M=!0,P=function(){return C.call(this)}),r&&!w||!p&&!M&&O[d]||o(O,d,P),l[e]=P,l[E]=g,_)if(k={values:I?P:A(v),keys:b?P:A(m),entries:j},w)for(x in k)x in O||a(O,x,k[x]);else i(i.P+i.F*(p||M),e,k);return k}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(48),i=n(20),a=n(27),o={};n(13)(o,n(28)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(o,{next:i(1,n)}),a(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(11),i=n(130)(!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),a=n(136),o="endsWith",s=""[o];r(r.P+r.F*n(138)(o),"String",{endsWith:function(t){var e=a(this,t,o),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),l=void 0===n?r:Math.min(i(n),r),c=String(t);return s?s.call(e,c,l):e.slice(l-c.length,l)===c}})},function(t,e,n){var r=n(137),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),a=n(28)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!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(t){}}return!0}},function(t,e,n){"use strict";var r=n(11),i=n(136),a="includes";r(r.P+r.F*n(138)(a),"String",{includes:function(t){return!!~i(this,t,a).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(11);r(r.P,"String",{repeat:n(93)})},function(t,e,n){"use strict";var r=n(11),i=n(40),a=n(136),o="startsWith",s=""[o];r(r.P+r.F*n(138)(o),"String",{startsWith:function(t){var e=a(this,t,o),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(143)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){var r=n(11),i=n(10),a=n(38),o=/"/g,s=function(t,e,n,r){var i=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(o,""")+'"'),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(143)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(143)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(143)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(143)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(143)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(143)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(143)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(143)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(143)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(143)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(143)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(143)("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(60),a=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=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(11),i=n(159);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(10),i=Date.prototype.getTime,a=Date.prototype.toISOString,o=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!r(function(){a.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+o(t.getUTCMonth()+1)+"-"+o(t.getUTCDate())+"T"+o(t.getUTCHours())+":"+o(t.getUTCMinutes())+":"+o(t.getUTCSeconds())+"."+(n>99?n:"0"+o(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,i="Invalid Date",a="toString",o=r[a],s=r.getTime;new Date(NaN)+""!=i&&n(21)(r,a,function(){var t=s.call(this);return t===t?o.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),a="number";t.exports=function(t){if("string"!==t&&t!==a&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),t!=a)}},function(t,e,n){var r=n(11);r(r.S,"Array",{isArray:n(47)})},function(t,e,n){"use strict";var r=n(23),i=n(11),a=n(60),o=n(165),s=n(166),l=n(40),c=n(167),u=n(168);i(i.S+i.F*!n(169)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,d=a(t),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(d);if(v&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(e=l(d.length),n=new p(e);e>g;g++)c(n,g,v?m(d[g],g):d[g]);else for(f=y.call(d),n=new p;!(i=f.next()).done;g++)c(n,g,v?o(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(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(132),i=n(28)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[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(77),i=n(28)("iterator"),a=n(132);t.exports=n(12).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||a[r(t)]}},function(t,e,n){var r=n(28)("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},t(a)}catch(t){}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),a=[].join;r(r.P+r.F*(n(36)!=Object||!n(172)(a)),"Array",{join:function(t){return a.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";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(50),a=n(37),o=n(42),s=n(40),l=[].slice;r(r.P+r.F*n(10)(function(){i&&l.call(i)}),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return l.call(this,t,e);for(var i=o(t,n),c=o(e,n),u=s(c-i),f=Array(u),d=0;dw;w++)if((d||w in y)&&(m=y[w],v=_(m,w,g),t))if(n)k[w]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(u)return!1;return f?-1:c||u?u: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(47),a=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[a],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(60),a=n(36),o=n(40);t.exports=function(t,e,n,s,l){r(e);var c=i(t),u=a(c),f=o(c.length),d=l?f-1:0,p=l?-1:1;if(n<2)for(;;){if(d in u){s=u[d],d+=p;break}if(d+=p,l?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;l?d>=0:f>d;d+=p)d in u&&(s=e(s,u[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),a=[].indexOf,o=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(o||!n(172)(a)),"Array",{indexOf:function(t){return o?a.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(11),i=n(35),a=n(41),o=n(40),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(172)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=i(this),n=o(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(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(60),i=n(42),a=n(40);t.exports=[].copyWithin||function(t,e){var n=r(this),o=a(n.length),s=i(t,o),l=i(e,o),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?o:i(c,o))-l,o-s),f=1;for(l0;)l in n?n[s]=n[l]:delete n[s],s+=f,l+=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(60),i=n(42),a=n(40);t.exports=function(t){for(var e=r(this),n=a(e.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(11),i=n(176)(5),a="find",o=!0;a in[]&&Array(1)[a](function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(190)(a)},function(t,e,n){"use strict";var r=n(11),i=n(176)(6),a="findIndex",o=!0;a in[]&&Array(1)[a](function(){o=!1}),r(r.P+r.F*o,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(190)(a)},function(t,e,n){n(196)("Array")},function(t,e,n){"use strict";var r=n(7),i=n(14),a=n(9),o=n(28)("species");t.exports=function(t){var e=r[t];a&&e&&!e[o]&&i.f(e,o,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(190),i=n(198),a=n(132),o=n(35);t.exports=n(131)(Array,"Array",function(t,e){this._t=o(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"),a.Arguments=a.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(90),a=n(14).f,o=n(52).f,s=n(137),l=n(200),c=r.RegExp,u=c,f=c.prototype,d=/a/g,p=/a/g,h=new c(d)!==d;if(n(9)&&(!h||n(10)(function(){return p[n(28)("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")}))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:i(h?new u(r&&!a?t.source:t,e):u((r=t instanceof c)?t.source:t,r&&a?l.call(t):e),n?this:f,c)};for(var m=(function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})}),v=o(u),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),a=n(9),o="toString",s=/./[o],l=function(t){n(21)(RegExp.prototype,o,t,!0)};n(10)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?l(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?i.call(t):void 0)}):s.name!=o&&l(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),a=n(10),o=n(38),s=n(28);t.exports=function(t,e,n){var l=s(t),c=n(o,l,""[t]),u=c[0],f=c[1];a(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,u),r(RegExp.prototype,l,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 a=t(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,a,i):n.call(String(a),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(137),a=r,o=[].push,s="split",l="length",c="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[l]||2!="ab"[s](/(?:ab)*/)[l]||4!="."[s](/(.?)(.?)/)[l]||"."[s](/()()/)[l]>1||""[s](/.?/)[l]){var u=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return a.call(n,t,e);var r,s,f,d,p,h=[],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(u||(r=new RegExp("^"+y.source+"$(?!\\s)",m));(s=y.exec(n))&&(f=s.index+s[0][l],!(f>v&&(h.push(n.slice(v,s.index)),!u&&s[l]>1&&s[0].replace(r,function(){for(p=1;p1&&s.index=g)));)y[c]===s.index&&y[c]++;return v===n[l]?!d&&y.test("")||h.push(""):h.push(n.slice(v)),h[l]>g?h.slice(0,g):h}}else"0"[s](void 0,0)[l]&&(r=function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)});return[function(n,i){var a=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,a,i):r.call(String(a),n,i)},r]})},function(t,e,n){"use strict";var r,i,a,o,s=n(31),l=n(7),c=n(23),u=n(77),f=n(11),d=n(16),p=n(24),h=n(209),m=n(210),v=n(211),g=n(212).set,y=n(213)(),_=n(214),b=n(215),w=n(216),k="Promise",x=l.TypeError,S=l.process,A=l[k],E="process"==u(S),I=function(){},M=i=_.f,O=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n(28)("species")]=function(t){t(I,I)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e}catch(t){}}(),C=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,a=0,o=function(e){var n,a,o=i?e.ok:e.fail,s=e.resolve,l=e.reject,c=e.domain;try{o?(i||(2==t._h&&z(t),t._h=1),o===!0?n=r:(c&&c.enter(),n=o(r),c&&c.exit()),n===e.promise?l(x("Promise-chain cycle")):(a=C(n))?a.call(n,s,l):s(n)):l(r)}catch(t){l(t)}};n.length>a;)o(n[a++]);t._c=[],t._n=!1,e&&!t._h&&j(t)})}},j=function(t){g.call(l,function(){var e,n,r,i=t._v,a=T(t);if(a&&(e=b(function(){E?S.emit("unhandledRejection",i,t):(n=l.onunhandledrejection)?n({promise:t,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=E||T(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},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},z=function(t){g.call(l,function(){var e;E?S.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=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()),P(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=C(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(L,r,1),c(D,r,1))}catch(t){D.call(r,t)}}):(n._v=t,n._s=1,P(n,!1))}catch(t){D.call({_w:n,_d:!1},t)}}};O||(A=function(t){h(this,A,k,"_h"),p(t),r.call(this);try{t(c(L,this,1),c(D,this,1))}catch(t){D.call(this,t)}},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(217)(A.prototype,{then:function(t,e){var n=M(v(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=c(L,t,1),this.reject=c(D,t,1)},_.f=M=function(t){return t===A||t===o?new a(t):i(t)}),f(f.G+f.W+f.F*!O,{Promise:A}),n(27)(A,k),n(196)(k),o=n(12)[k],f(f.S+f.F*!O,k,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(s||!O),k,{resolve:function(t){return w(s&&this===o?A:this,t)}}),f(f.S+f.F*!(O&&n(169)(function(t){A.all(t).catch(I)})),k,{all:function(t){var e=this,n=M(e),r=n.resolve,i=n.reject,a=b(function(){var n=[],a=0,o=1;m(t,!1,function(t){var s=a++,l=!1;n.push(void 0),o++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--o||r(n))},i)}),--o||r(n)});return a.e&&i(a.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=b(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(23),i=n(165),a=n(166),o=n(15),s=n(40),l=n(168),c={},u={},e=t.exports=function(t,e,n,f,d){var p,h,m,v,g=d?function(){return t}:l(t),y=r(n,f,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(a(g)){for(p=s(t.length);p>_;_++)if(v=e?y(o(h=t[_])[0],h[1]):y(t[_]),v===c||v===u)return v}else for(m=g.call(t);!(h=m.next()).done;)if(v=i(m,y,h.value,e),v===c||v===u)return v};e.BREAK=c,e.RETURN=u},function(t,e,n){var r=n(15),i=n(24),a=n(28)("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},function(t,e,n){var r,i,a,o=n(23),s=n(80),l=n(50),c=n(18),u=n(7),f=u.process,d=u.setImmediate,p=u.clearImmediate,h=u.MessageChannel,m=u.Dispatch,v=0,g={},y="onreadystatechange",_=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){_.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete g[t]},"process"==n(37)(f)?r=function(t){f.nextTick(o(_,t,1))}:m&&m.now?r=function(t){m.now(o(_,t,1))}:h?(i=new h,a=i.port2,i.port1.onmessage=b,r=o(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):r=y in c("script")?function(t){l.appendChild(c("script"))[y]=function(){l.removeChild(this),_.call(t)}}:function(t){setTimeout(o(_,t,1),0)}),t.exports={set:d,clear:p}},function(t,e,n){var r=n(7),i=n(212).set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,l="process"==n(37)(o);t.exports=function(){var t,e,n,c=function(){var r,i;for(l&&(r=o.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){o.nextTick(c)};else if(a){var u=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=u=!u}}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){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(24);t.exports.f=function(t){return new r(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(15),i=n(16),a=n(214);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=a.f(t),o=n.resolve;return o(e),n.promise}},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(219),i=n(220),a="Map";t.exports=n(221)(a,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,a),t);return e&&e.v},set:function(t,e){return r.def(i(this,a),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(14).f,i=n(48),a=n(217),o=n(23),s=n(209),l=n(210),c=n(131),u=n(198),f=n(196),d=n(9),p=n(25).fastKey,h=n(220),m=d?"_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,c){var u=t(function(t,r){s(t,u,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=r&&l(r,n,t[c],t)});return a(u.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=h(this,e),r=v(n,t);if(r){var i=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=i),i&&(i.p=a),n._f==r&&(n._f=i),n._l==r&&(n._l=a),n[m]--}return!!r},forEach:function(t){h(this,e);for(var n,r=o(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(h(this,e),t)}}),d&&r(u.prototype,"size",{get:function(){return h(this,e)[m]}}),u},def:function(t,e,n){var r,i,a=v(t,e);return a?a.v=n:(t._l=a={i:i=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[m]++,"F"!==i&&(t._i[i]=a)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=h(t,e),this._k=n,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?u(0,n.k):"values"==e?u(0,n.v):u(0,[n.k,n.v]):(t._t=void 0,u(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){var r=n(16);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";var r=n(7),i=n(11),a=n(21),o=n(217),s=n(25),l=n(210),c=n(209),u=n(16),f=n(10),d=n(169),p=n(27),h=n(90);t.exports=function(t,e,n,m,v,g){var y=r[t],_=y,b=v?"set":"add",w=_&&_.prototype,k={},x=function(t){var e=w[t];a(w,t,"delete"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!u(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||w.forEach&&!f(function(){(new _).entries().next()}))){var S=new _,A=S[b](g?{}:-0,1)!=S,E=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=h(new y,e,_);return void 0!=n&&l(n,v,r[b],r),r}),_.prototype=w,w.constructor=_),(E||M)&&(x("delete"),x("has"),v&&x("get")),(M||A)&&x(b),g&&w.clear&&delete w.clear}else _=m.getConstructor(e,t,v,b),o(_.prototype,n),s.NEED=!0;return p(_,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(219),i=n(220),a="Set";t.exports=n(221)(a,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,a),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(176)(0),a=n(21),o=n(25),s=n(71),l=n(224),c=n(16),u=n(10),f=n(220),d="WeakMap",p=o.getWeak,h=Object.isExtensible,m=l.ufstore,v={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(c(t)){var e=p(t);return e===!0?m(f(this,d)).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(f(this,d),t,e)}},_=t.exports=n(221)(d,g,y,l,!0,!0);u(function(){return 7!=(new _).set((Object.freeze||Object)(v),7).get(v)})&&(r=l.getConstructor(g,d),s(r.prototype,y),o.NEED=!0,i(["delete","has","get","set"],function(t){var e=_.prototype,n=e[t];a(e,t,function(e,i){if(c(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,i);return"set"==t?this:a}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(217),i=n(25).getWeak,a=n(15),o=n(16),s=n(209),l=n(210),c=n(176),u=n(8),f=n(220),d=c(5),p=c(6),h=0,m=function(t){ return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return d(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t(function(t,r){s(t,c,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=r&&l(r,n,t[a],t)});return r(c.prototype,{delete:function(t){if(!o(t))return!1;var n=i(t);return n===!0?m(f(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!o(t))return!1;var n=i(t);return n===!0?m(f(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=i(a(e),!0);return r===!0?m(t).set(e,n):r[t._i]=n,t},ufstore:m}},function(t,e,n){"use strict";var r=n(224),i=n(220),a="WeakSet";n(221)(a,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,a),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(11),i=n(227),a=n(228),o=n(15),s=n(42),l=n(40),c=n(16),u=n(7).ArrayBuffer,f=n(211),d=a.ArrayBuffer,p=a.DataView,h=i.ABV&&u.isView,m=d.prototype.slice,v=i.VIEW,g="ArrayBuffer";r(r.G+r.W+r.F*(u!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,g,{isView:function(t){return h&&h(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(o(this),t);for(var n=o(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),a=new(f(this,d))(l(i-r)),c=new p(this),u=new p(a),h=0;r>1,u=23===e?R(2,-24)-R(2,-77):0,f=0,d=t<0||0===t&&1/t<0?1:0;for(t=U(t),t!=t||t===q?(i=t!=t?1:0,r=l):(r=B(V(t)/H),t*(a=R(2,-r))<1&&(r--,a*=2),t+=r+c>=1?u/a:u*R(2,1-c),t*a>=2&&(r++,a/=2),r+c>=l?(i=0,r=l):r+c>=1?(i=(t*a-1)*R(2,e),r+=c):(i=t*R(2,c-1)*R(2,e),r=0));e>=8;o[f++]=255&i,i/=256,e-=8);for(r=r<0;o[f++]=255&r,r/=256,s-=8);return o[--f]|=128*d,o}function i(t,e,n){var r,i=8*n-e-1,a=(1<>1,s=i-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-o;else{if(u===a)return r?NaN:c?-q:q;r+=R(2,e),u-=o}return(c?-1:1)*r*R(2,u-e)}function a(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function o(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function l(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function c(t){return r(t,52,8)}function u(t){return r(t,23,4)}function f(t,e,n){E(t[P],e,{get:function(){return this[n]}})}function d(t,e,n,r){var i=+n,a=S(i);if(a+e>t[J])throw N(T);var o=t[$]._b,s=a+t[Y],l=o.slice(s,s+e);return r?l:l.reverse()}function p(t,e,n,r,i,a){var o=+n,s=S(o);if(s+e>t[J])throw N(T);for(var l=t[$]._b,c=s+t[Y],u=r(+i),f=0;ftt;)(X=Z[tt++])in z||y(z,X,F[X]);v||(Q.constructor=z)}var et=new D(new z(2)),nt=D[P].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||_(D[P],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else z=function(t){w(this,z,O);var e=S(t);this._b=I.call(Array(e),0),this[J]=e},D=function(t,e,n){w(this,D,C),w(t,z,C);var r=t[J],i=k(e);if(i<0||i>r)throw N("Wrong offset!");if(n=void 0===n?r-i:x(n),i+n>r)throw N(j);this[$]=t,this[Y]=i,this[J]=n},m&&(f(z,W,"_l"),f(D,G,"_b"),f(D,W,"_l"),f(D,K,"_o")),_(D[P],{getInt8:function(t){return d(this,1,t)[0]<<24>>24},getUint8:function(t){return d(this,1,t)[0]},getInt16:function(t){var e=d(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=d(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return a(d(this,4,t,arguments[1]))},getUint32:function(t){return a(d(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return i(d(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return i(d(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){p(this,1,t,o,e)},setUint8:function(t,e){p(this,1,t,o,e)},setInt16:function(t,e){p(this,2,t,s,e,arguments[2])},setUint16:function(t,e){p(this,2,t,s,e,arguments[2])},setInt32:function(t,e){p(this,4,t,l,e,arguments[2])},setUint32:function(t,e){p(this,4,t,l,e,arguments[2])},setFloat32:function(t,e){p(this,4,t,u,e,arguments[2])},setFloat64:function(t,e){p(this,8,t,c,e,arguments[2])}});M(z,O),M(D,C),y(D[P],g.VIEW,!0),e[O]=z,e[C]=D},function(t,e,n){var r=n(41),i=n(40);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(11);r(r.G+r.W+r.F*!n(227).ABV,{DataView:n(228).DataView})},function(t,e,n){n(232)("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),a=n(10),o=n(11),s=n(227),l=n(228),c=n(23),u=n(209),f=n(20),d=n(13),p=n(217),h=n(41),m=n(40),v=n(229),g=n(42),y=n(19),_=n(8),b=n(77),w=n(16),k=n(60),x=n(166),S=n(48),A=n(61),E=n(52).f,I=n(168),M=n(22),O=n(28),C=n(176),P=n(39),j=n(211),T=n(197),z=n(132),D=n(169),L=n(196),N=n(192),q=n(189),F=n(14),U=n(53),R=F.f,B=U.f,V=i.RangeError,H=i.TypeError,G=i.Uint8Array,W="ArrayBuffer",K="Shared"+W,$="BYTES_PER_ELEMENT",J="prototype",Y=Array[J],X=l.ArrayBuffer,Q=l.DataView,Z=C(0),tt=C(2),et=C(3),nt=C(4),rt=C(5),it=C(6),at=P(!0),ot=P(!1),st=T.values,lt=T.keys,ct=T.entries,ut=Y.lastIndexOf,ft=Y.reduce,dt=Y.reduceRight,pt=Y.join,ht=Y.sort,mt=Y.slice,vt=Y.toString,gt=Y.toLocaleString,yt=O("iterator"),_t=O("toStringTag"),bt=M("typed_constructor"),wt=M("def_constructor"),kt=s.CONSTR,xt=s.TYPED,St=s.VIEW,At="Wrong length!",Et=C(1,function(t,e){return Pt(j(t,t[wt]),e)}),It=a(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Mt=!!G&&!!G[J].set&&a(function(){new G(1).set({})}),Ot=function(t,e){var n=h(t);if(n<0||n%e)throw V("Wrong offset!");return n},Ct=function(t){if(w(t)&&xt in t)return t;throw H(t+" is not a typed array!")},Pt=function(t,e){if(!(w(t)&&bt in t))throw H("It is not a typed array constructor!");return new t(e)},jt=function(t,e){return Tt(j(t,t[wt]),e)},Tt=function(t,e){for(var n=0,r=e.length,i=Pt(t,r);r>n;)i[n]=e[n++];return i},zt=function(t,e,n){R(t,e,{get:function(){return this._d[n]}})},Dt=function(t){var e,n,r,i,a,o,s=k(t),l=arguments.length,u=l>1?arguments[1]:void 0,f=void 0!==u,d=I(s);if(void 0!=d&&!x(d)){for(o=d.call(s),r=[],e=0;!(a=o.next()).done;e++)r.push(a.value);s=r}for(f&&l>2&&(u=c(u,arguments[2],2)),e=0,n=m(s.length),i=Pt(this,n);n>e;e++)i[e]=f?u(s[e],e):s[e];return i},Lt=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!G&&a(function(){gt.call(new G(1))}),qt=function(){return gt.apply(Nt?mt.call(Ct(this)):Ct(this),arguments)},Ft={copyWithin:function(t,e){return q.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Ct(this),arguments)},filter:function(t){return jt(this,tt(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return at(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Ct(this),arguments)},lastIndexOf:function(t){return ut.apply(Ct(this),arguments)},map:function(t){return Et(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ft.apply(Ct(this),arguments)},reduceRight:function(t){return dt.apply(Ct(this),arguments)},reverse:function(){for(var t,e=this,n=Ct(e).length,r=Math.floor(n/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return ht.call(Ct(this),t)},subarray:function(t,e){var n=Ct(this),r=n.length,i=g(t,r);return new(j(n,n[wt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===e?r:g(e,r))-i))}},Ut=function(t,e){return jt(this,mt.call(Ct(this),t,e))},Rt=function(t){Ct(this);var e=Ot(arguments[1],1),n=this.length,r=k(t),i=m(r.length),a=0;if(i+e>n)throw V(At);for(;a255?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})};_?(h=n(function(t,n,r,i){u(t,h,c,"_d");var a,o,s,l,f=0,p=0;if(w(n)){if(!(n instanceof X||(l=b(n))==W||l==K))return xt in n?Tt(h,n):Dt.call(h,n);a=n,p=Ot(r,e);var g=n.byteLength;if(void 0===i){if(g%e)throw V(At);if(o=g-p,o<0)throw V(At)}else if(o=m(i)*e,o+p>g)throw V(At);s=o/e}else s=v(n),o=s*e,a=new X(o);for(d(t,"_d",{b:a,o:p,l:o,e:s,v:new Q(a)});f=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 a(t)}})},function(t,e,n){function r(t,e){var n,s,u=arguments.length<3?t:arguments[2];return c(t)===u?t[e]:(n=i.f(t,e))?o(n,"value")?n.value:void 0!==n.get?n.get.call(u):void 0:l(s=a(t))?r(s,e,u):void 0}var i=n(53),a=n(61),o=n(8),s=n(11),l=n(16),c=n(15);s(s.S,"Reflect",{get:r})},function(t,e,n){var r=n(53),i=n(11),a=n(15);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(11),i=n(61),a=n(15);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(a(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),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!a||a(t)}})},function(t,e,n){var r=n(11);r(r.S,"Reflect",{ownKeys:n(252)})},function(t,e,n){var r=n(52),i=n(45),a=n(15),o=n(7).Reflect;t.exports=o&&o.ownKeys||function(t){var e=r.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(11),i=n(15),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var l,d,p=arguments.length<4?t:arguments[3],h=a.f(u(t),e);if(!h){if(f(d=o(t)))return r(d,e,n,p);h=c(0)}return s(h,"value")?!(h.writable===!1||!f(p))&&(l=a.f(p,e)||c(0),l.value=n,i.f(p,e,l),!0):void 0!==h.set&&(h.set.call(p,n),!0)}var i=n(14),a=n(53),o=n(61),s=n(8),l=n(11),c=n(20),u=n(15),f=n(16);l(l.S,"Reflect",{set:r})},function(t,e,n){var r=n(11),i=n(75);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){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(258),a=n(60),o=n(40),s=n(24),l=n(177);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=o(r.length),n=l(r,0),i(n,r,r,e,0,1,t,arguments[1]),n}}),n(190)("flatMap")},function(t,e,n){"use strict";function r(t,e,n,c,u,f,d,p){for(var h,m,v=u,g=0,y=!!d&&s(d,p,3);g0)v=r(t,e,h,o(h.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();t[v]=h}v++}g++}return v}var i=n(47),a=n(16),o=n(40),s=n(23),l=n(28)("isConcatSpreadable");t.exports=r},function(t,e,n){"use strict";var r=n(11),i=n(258),a=n(60),o=n(40),s=n(41),l=n(177);r(r.P,"Array",{flatten:function(){var t=arguments[0],e=a(this),n=o(e.length),r=l(e,0);return i(r,e,e,n,0,void 0===t?1:s(t)),r}}),n(190)("flatten")},function(t,e,n){"use strict";var r=n(11),i=n(130)(!0);r(r.P,"String",{at:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(11),i=n(262);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(93),a=n(38);t.exports=function(t,e,n,o){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=l||""==c)return s;var f=u-l,d=i.call(c,Math.ceil(f/c.length));return d.length>f&&(d=d.slice(0,f)),o?d+s:s+d}},function(t,e,n){"use strict";var r=n(11),i=n(262);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(85)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(85)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){"use strict";var r=n(11),i=n(38),a=n(40),o=n(137),s=n(200),l=RegExp.prototype,c=function(t,e){this._r=t,this._s=e};n(133)(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),!o(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in l?String(t.flags):s.call(t),r=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=a(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(252),a=n(35),o=n(53),s=n(167);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=o.f,c=i(r),u={},f=0;c.length>f;)n=l(r,e=c[f++]),void 0!==n&&s(u,e,n);return u}})},function(t,e,n){var r=n(11),i=n(271)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){var r=n(33),i=n(35),a=n(46).f;t.exports=function(t){return function(e){for(var n,o=i(e),s=r(o),l=s.length,c=0,u=[];l>c;)a.call(o,n=s[c++])&&u.push(t?[n,o[n]]:o[n]);return u}}},function(t,e,n){var r=n(11),i=n(271)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(11),i=n(60),a=n(24),o=n(14);n(9)&&r(r.P+n(274),"Object",{__defineGetter__:function(t,e){o.f(i(this),t,{get:a(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";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(60),a=n(24),o=n(14);n(9)&&r(r.P+n(274),"Object",{__defineSetter__:function(t,e){o.f(i(this),t,{set:a(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(11),i=n(60),a=n(19),o=n(61),s=n(53).f;n(9)&&r(r.P+n(274),"Object",{__lookupGetter__:function(t){var e,n=i(this),r=a(t,!0);do if(e=s(n,r))return e.get;while(n=o(n))}})},function(t,e,n){"use strict";var r=n(11),i=n(60),a=n(19),o=n(61),s=n(53).f;n(9)&&r(r.P+n(274),"Object",{__lookupSetter__:function(t){var e,n=i(this),r=a(t,!0);do if(e=s(n,r))return e.set;while(n=o(n))}})},function(t,e,n){var r=n(11);r(r.P+r.R,"Map",{toJSON:n(279)("Map")})},function(t,e,n){var r=n(77),i=n(280);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(210);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(279)("Set")})},function(t,e,n){n(283)("Map")},function(t,e,n){"use strict";var r=n(11);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){n(283)("Set")},function(t,e,n){n(283)("WeakMap")},function(t,e,n){n(283)("WeakSet")},function(t,e,n){n(288)("Map")},function(t,e,n){"use strict";var r=n(11),i=n(24),a=n(23),o=n(210);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,s,l=arguments[1];return i(this),e=void 0!==l,e&&i(l),void 0==t?new this:(n=[],e?(r=0,s=a(l,arguments[2],2),o(t,!1,function(t){n.push(s(t,r++))})):o(t,!1,n.push,n),new this(n))}})}},function(t,e,n){n(288)("Set")},function(t,e,n){n(288)("WeakMap")},function(t,e,n){n(288)("WeakSet")},function(t,e,n){var r=n(11);r(r.G,{global:n(7)})},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",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},function(t,e,n){var r=n(11);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,n){var r=n(11),i=180/Math.PI;r(r.S,"Math",{degrees:function(t){return t*i}})},function(t,e,n){var r=n(11),i=n(299),a=n(116);r(r.S,"Math",{fscale:function(t,e,n,r,o){return a(i(t,e,n,r,o))}})},function(t,e){t.exports=Math.scale||function(t,e,n,r,i){return 0===arguments.length||t!=t||e!=e||n!=n||r!=r||i!=i?NaN:t===1/0||t===-(1/0)?t:(t-e)*(i-r)/(n-e)+r}},function(t,e,n){var r=n(11);r(r.S,"Math",{iaddh:function(t,e,n,r){var i=t>>>0,a=e>>>0,o=n>>>0;return a+(r>>>0)+((i&o|(i|o)&~(i+o>>>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,a=e>>>0,o=n>>>0;return a-(r>>>0)-((~i&o|~(i^o)&i-o>>>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,a=r&n,o=i&n,s=r>>16,l=i>>16,c=(s*o>>>0)+(a*o>>>16);return s*l+(c>>16)+((a*l>>>0)+(c&n)>>16)}})},function(t,e,n){var r=n(11);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,n){var r=n(11),i=Math.PI/180;r(r.S,"Math",{radians:function(t){return t*i}})},function(t,e,n){var r=n(11);r(r.S,"Math",{scale:n(299)})},function(t,e,n){var r=n(11);r(r.S,"Math",{umulh:function(t,e){var n=65535,r=+t,i=+e,a=r&n,o=i&n,s=r>>>16,l=i>>>16,c=(s*o>>>0)+(a*o>>>16);return s*l+(c>>>16)+((a*l>>>0)+(c&n)>>>16)}})},function(t,e,n){var r=n(11);r(r.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,n){"use strict";var r=n(11),i=n(12),a=n(7),o=n(211),s=n(216);r(r.P+r.R,"Promise",{finally:function(t){var e=o(this,i.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(11),i=n(214),a=n(215);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=a(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var r=n(311),i=n(15),a=r.key,o=r.set;r.exp({defineMetadata:function(t,e,n,r){o(t,e,i(n),a(r))}})},function(t,e,n){var r=n(218),i=n(11),a=n(26)("metadata"),o=a.store||(a.store=new(n(223))),s=function(t,e,n){var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}var a=i.get(e);if(!a){if(!n)return;i.set(e,a=new r)}return a},l=function(t,e,n){var r=s(e,n,!1);return void 0!==r&&r.has(t)},c=function(t,e,n){var r=s(e,n,!1);return void 0===r?void 0:r.get(t)},u=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)},p=function(t){i(i.S,"Reflect",t)};t.exports={store:o,map:s,has:l,get:c,set:u,keys:f,key:d,exp:p}},function(t,e,n){var r=n(311),i=n(15),a=r.key,o=r.map,s=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:a(arguments[2]),r=o(i(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var l=s.get(e);return l.delete(n),!!l.size||s.delete(e)}})},function(t,e,n){var r=n(311),i=n(15),a=n(61),o=r.has,s=r.get,l=r.key,c=function(t,e,n){var r=o(t,e,n);if(r)return s(t,e,n);var i=a(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:l(arguments[2]))}})},function(t,e,n){var r=n(222),i=n(280),a=n(311),o=n(15),s=n(61),l=a.keys,c=a.key,u=function(t,e){var n=l(t,e),a=s(t);if(null===a)return n;var o=u(a,e);return o.length?n.length?i(new r(n.concat(o))):o:n};a.exp({getMetadataKeys:function(t){return u(o(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,n){var r=n(311),i=n(15),a=r.get,o=r.key;r.exp({getOwnMetadata:function(t,e){return a(t,i(e),arguments.length<3?void 0:o(arguments[2]))}})},function(t,e,n){var r=n(311),i=n(15),a=r.keys,o=r.key;r.exp({getOwnMetadataKeys:function(t){return a(i(t),arguments.length<2?void 0:o(arguments[1]))}})},function(t,e,n){var r=n(311),i=n(15),a=n(61),o=r.has,s=r.key,l=function(t,e,n){var r=o(t,e,n);if(r)return!0;var i=a(e);return null!==i&&l(t,i,n)};r.exp({hasMetadata:function(t,e){return l(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(311),i=n(15),a=r.has,o=r.key;r.exp({hasOwnMetadata:function(t,e){return a(t,i(e),arguments.length<3?void 0:o(arguments[2]))}})},function(t,e,n){var r=n(311),i=n(15),a=n(24),o=r.key,s=r.set;r.exp({metadata:function(t,e){return function(n,r){s(t,e,(void 0!==r?i:a)(n),o(r))}}})},function(t,e,n){var r=n(11),i=n(213)(),a=n(7).process,o="process"==n(37)(a);r(r.G,{asap:function(t){var e=o&&a.domain;i(e?e.bind(t):t)}})},function(t,e,n){"use strict";var r=n(11),i=n(7),a=n(12),o=n(213)(),s=n(28)("observable"),l=n(24),c=n(15),u=n(209),f=n(217),d=n(13),p=n(210),h=p.RETURN,m=function(t){return null==t?void 0:l(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()}:l(n),this._c=n)}catch(e){return void t.error(e)}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(t){try{y(e)}finally{throw t}}}},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(t){try{v(e)}finally{throw t}}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(t){try{v(e)}finally{throw t}}return v(e),t}}});var w=function(t){u(this,w,"Observable","_f")._f=l(t)};f(w.prototype,{subscribe:function(t){return new _(t,this._f)},forEach:function(t){var e=this;return new(a.Promise||i.Promise)(function(n,r){l(t);var i=e.subscribe({next:function(e){try{return t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:n})})}}),f(w,{from:function(t){var e="function"==typeof this?this:w,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 o(function(){if(!n){try{if(p(t,!1,function(t){if(e.next(t),n)return h})===h)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=Array(e);t2,i=!!r&&o.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(t,e,n){var r=n(11),i=n(212);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(197),i=n(33),a=n(21),o=n(7),s=n(13),l=n(132),c=n(28),u=c("iterator"),f=c("toStringTag"),d=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),m=0;m=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var o=_.call(i,"catchLoc"),s=_.call(i,"finallyLoc");if(o&&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),C}},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:m(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=g),C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(4))},function(t,e,n){n(327),t.exports=n(12).RegExp.escape},function(t,e,n){var r=n(11),i=n(328)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return i(t)}})},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return t}function a(t){return t.text().then(function(t){var e=t;try{e=JSON.parse(t)}catch(e){var n=document.createElement("div");n.innerHTML=t;var r=new Error;throw r.stack=(0,v.default)(n.innerText),r}return e})}function o(t){if(g)return!0;var e=t.status||(t.error?"error":""),n=t.message||(t.error?t.error.message:null),r=t.toastr||null,i=void 0;switch(e){case"unauthenticated":throw document.location.href=h.config.base_url_relative,y("Logged out");case"unauthorized":e="error",n=n||"Unauthorized.";break;case"error":e="error",n=n||"Unknown error.";break;case"success":e="success",n=n||"";break;default:e="error",n=n||"Invalid AJAX response."}return r&&(i=Object.assign({},f.default.options),Object.keys(r).forEach(function(t){f.default.options[t]=r[t]})),n&&(p.default||!p.default&&"error"!==e)&&f.default["success"===e?"success":"error"](n),r&&(f.default.options=i),t}function s(t){if(g)return!0;var e=t.stack?"
"+t.stack+"
":"";f.default.error("Fetch Failed:
"+t.message+" "+e),console.error(t.message+" at "+t.stack)}Object.defineProperty(e,"__esModule",{value:!0}),e.parseStatus=i,e.parseJSON=a,e.userFeedback=o,e.userFeedbackError=s;var l=n(1),c=r(l),u=n(330),f=r(u),d=n(333),p=r(d),h=n(334),m=n(335),v=r(m),g=!1,y=function t(e){var t=new Error(e.statusText||e||"");return t.response=e,t};(0,c.default)(t).on("beforeunload._ajax",function(){g=!0})}).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(331),a=r(i);a.default.options.positionClass="toast-top-right",a.default.options.preventDuplicates=!0,e.default=a.default},,,function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=r(i),o=n(333),s=r(o),l=(0,a.default)("#offline-status");(0,a.default)(window).on("offline",function(){l.slideDown()}),(0,a.default)(window).on("online",function(){l.slideUp()}),(0,a.default)(document).ready(function(){s.default||l.slideDown()}),e.default="undefined"==typeof t.navigator.onLine||t.navigator.onLine}).call(e,function(){return this}())},function(t,e){t.exports=GravAdmin},function(t,e,n){function r(t,e){return t=i(t),e=e||a,o(s(t,e),e)}var i=n(336),a=n(337),o=n(338),s=n(339);t.exports=r},function(t,e){function n(t){return null==t?"":t.toString()}t.exports=n},function(t,e){t.exports=[" ","\n","\r","\t","\f","\v"," "," ","᠎"," "," "," "," "," "," "," "," "," "," "," ","\u2028","\u2029"," "," "," "]},function(t,e,n){function r(t,e){t=i(t),e=e||a;for(var n,r,o=0,s=t.length,l=e.length,c=!0;c&&o=s?"":t.substr(o,s)}var i=n(336),a=n(337);t.exports=r},function(t,e,n){function r(t,e){t=i(t),e=e||a;for(var n,r,o=t.length-1,s=e.length,l=!0;l&&o>=0;)for(l=!1,n=-1,r=t.charAt(o);++n=0?t.substring(0,o+1):""}var i=n(336),a=n(337);t.exports=r},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 a(t){return"object"==typeof t&&null!==t}function o(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)||t<0||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,l,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(n=this._events[t],o(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(a(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,l=0;l0&&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,o,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=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(a(n)){for(s=o;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)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;n0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this.setPayload(e),this.task="task"+u.config.param_sep}return a(t,[{key:"setPayload",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.payload=t,this}},{key:"fetch",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p.Instance.fetch(function(e){return t.setPayload(e)},e),this}},{key:"maintenance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hide",e=(0,s.default)("#updates [data-update-packages]");return e["show"===t?"fadeIn":"fadeOut"](),"hide"===t&&(0,s.default)(".badges.with-updates").removeClass("with-updates").find(".badge.updates").remove(),this}},{key:"grav",value:function(){var t=this.payload.grav;if(t&&t.isUpdatable){var e=this.task,n="";n+=t.isSymlink?'':'",n+="\n Grav v"+t.available+" "+u.translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE+'! ('+u.translations.PLUGIN_ADMIN.CURRENT+" v"+t.version+")\n ";var r=(0,s.default)("[data-gpm-grav]").removeClass("hidden");r.is(":empty")&&r.hide(),r.addClass("grav").html(""+n).slideDown(150).parent("#messages").addClass("default-box-shadow")}return(0,s.default)("#grav-update-button").on("click",function(){(0,s.default)(this).html(u.translations.PLUGIN_ADMIN.UPDATING_PLEASE_WAIT+" "+(0,d.default)(t.assets["grav-update"].size)+"..")}),this}},{key:"resources",value:function(){if(!this.payload||!this.payload.resources||!this.payload.resources.total)return this.maintenance("hide");var t=!0,e=["plugins","themes"],n=["plugin","theme"],r=this.payload.resources,i=r.plugins,a=r.themes;return this.payload.resources.total?([i,a].forEach(function(r,i){if(r&&!Array.isArray(r)){var a=Object.keys(r).length,o=e[i];(0,s.default)('#admin-menu a[href$="/'+e[i]+'"]').find(".badges").addClass("with-updates").find(".badge.updates").text(a);var l="";l="plugins"===o?u.translations.PLUGIN_ADMIN.PLUGINS:u.translations.PLUGIN_ADMIN.THEMES;var f=(0,s.default)(".grav-update."+o);f.css("display","block").html('\n

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

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

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

\n ").css("display","block"),t=!1}}}),(0,s.default)("[data-update-packages]").removeClass("hidden")}}),(0,s.default)(".content-wrapper").addClass("updates-checked"),void(t||(0,s.default)(".warning-reinstall-not-latest-release").removeClass("hidden"))):this}}]),t}();e.default=y;var _=new y;e.Instance=_,e.Notifications=m.default,e.Feed=g.default,p.Instance.on("fetched",function(t,e){_.setPayload(t.payload||{}),_.grav().resources()}),"1"===u.config.enable_auto_updates_check&&p.Instance.fetch()},function(t,e,n){function r(t,e){return e=e||i,a(t,function(t,n,r){for(var i=r.length;++n ul").show();switch(r.find("div").remove(),r.find(".fa-warning").removeClass("fa-warning").addClass("fa-refresh fa-spin"),t.type||(t.type="note"),t.type){case"note":t.intro_text="Note";break;case"info":t.intro_text="Info";break;case"warning":t.intro_text="Warning"}var a="";if(e>9&&(a=" hidden "),t.link)i.append('\n
  • \n '+t.intro_text+'\n '+t.message+"\n
  • \n ");else{var o=(0,s.default)("

    "+t.message+"

    ").text();i.append('\n
  • \n '+t.intro_text+'\n '+t.message+"\n
  • \n ")}}},{key:"addShowAllInFeed",value:function(){(0,s.default)("#notifications ul").append('\n
  • Show all
  • \n ')}},{key:"showNotificationInTop",value:function(t){var e=void 0;e=t.link?(0,s.default)('
    \n '+t.message+"\n "+t.closeButton+"\n
    "):(0,s.default)('
    \n '+t.message+"\n "+t.closeButton+"\n
    "),e.hide(),(0,s.default)(".top-notifications-container").removeClass("hidden").addClass("default-box-shadow").append(e),e.slideDown(150)}},{key:"showNotificationInDashboard",value:function(t){var e=void 0;e=t.link?(0,s.default)('
    \n '+t.message+"\n "+t.closeButton+"\n
    "):(0,s.default)('
    \n '+t.message+"\n "+t.closeButton+"\n
    "),e.hide(),(0,s.default)(".dashboard-notifications-container").removeClass("hidden").append(e),e.slideDown(150)}},{key:"showNotificationInPlugins",value:function(t){var e=void 0;e=t.link?(0,s.default)('
    \n '+t.message+"\n "+t.closeButton+"\n
    "):(0,s.default)('
    \n '+t.message+" "+t.closeButton+"\n
    "),e.hide(),(0,s.default)(".plugins-notifications-container").removeClass("hidden").append(e),e.slideDown(150)}},{key:"showNotificationInThemes",value:function(t){var e=void 0;e=t.link?(0,s.default)('
    \n '+t.message+"\n "+t.closeButton+"\n
    "):(0,s.default)('
    \n '+t.message+"\n "+t.closeButton+"\n
    "),e.hide(),(0,s.default)(".themes-notifications-container").removeClass("hidden").append(e),e.slideDown(150)}},{key:"processLocation",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;switch(t){case"feed":this.showNotificationInFeed(e,n);break;case"top":e.read||this.showNotificationInTop(e);break;case"dashboard":e.read||this.showNotificationInDashboard(e);break;case"plugins":e.read||this.showNotificationInPlugins(e);break;case"themes":e.read||this.showNotificationInThemes(e)}}},{key:"fetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locations,n=void 0===e?[]:e,r=t.refresh,i=void 0!==r&&r;if(!f())return!1;var a=this,o=(0,s.default)("#notifications"),c=o.find(".widget-loader"),d=o.find(".widget-content > ul");c.find("div").remove(),c.find(".fa-warning").removeClass("fa-warning").addClass("fa-refresh fa-spin"),c.show(),d.hide();var p=function(t){var e=t.notifications;if((0,s.default)("#notifications").find(".widget-content > ul").empty(),e){var r=0;e.forEach(function(t,e){if(t.closeButton='',t.options&&t.options.indexOf("sticky")!==-1&&(t.closeButton=""),Array.isArray(t.location))t.location.forEach(function(e){n.length&&n.indexOf(e)===-1||("feed"===e?(a.processLocation(e,t,r),r++):a.processLocation(e,t))});else{if(n.length&&n.indexOf(t.location)===-1)return;a.processLocation(t.location,t)}}),r>10&&a.addShowAllInFeed()}};(0,u.default)(l.config.base_url_relative+"/notifications.json/task"+l.config.param_sep+"getNotifications",{method:"post"},function(t){(t.need_update===!0||i)&&s.default.get((l.config.local_notifications?"http://localhost":"https://getgrav.org")+"/notifications.json?"+Date.now()).then(function(t){(0,u.default)(l.config.base_url_relative+"/notifications.json/task"+l.config.param_sep+"processNotifications",{method:"post",body:{notifications:JSON.stringify(t)}},function(t){t.show_immediately===!0&&p(t)})}).fail(function(){var t=(0,s.default)("#notifications .widget-content");t.find(".widget-loader").find("div").remove(),t.find(".widget-loader").append("
    Failed to retrieve notifications
    ").find(".fa-spin").removeClass("fa-spin fa-refresh").addClass("fa-warning")}),p(t)})}}]),t}(),p=new d;e.default=p,f()&&(p.fetch(),(0,s.default)(document).on("click",'[data-notification-action="hide-notification"]',function(t){var e=(0,s.default)(t.target).parents(".hide-notification").data("notification-id"),n=l.config.base_url_relative+"/notifications.json/task"+l.config.param_sep+"hideNotification/notification_id"+l.config.param_sep+e;(0,u.default)(n,{method:"post"},function(){}),(0,s.default)(t.target).parents(".single-notification").hide()}),(0,s.default)(document).on("click",'[data-notification-action="show-all-notifications"]',function(t){(0,s.default)("#notifications .show-all").hide(),(0,s.default)("#notifications .hidden").removeClass("hidden")}),(0,s.default)(document).on("click",'[data-refresh="notifications"]',function(t){t.preventDefault(),p.fetch({locations:["feed"],refresh:!0})}))},function(t,e,n){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(329),i=n(334),a=void 0,o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0};if("function"==typeof n&&(o=n,n={}),n.method&&"post"===n.method){var s=new FormData;n.body=Object.assign({"admin-nonce":i.config.admin_nonce},n.body||{}),Object.keys(n.body).map(function(t){return s.append(t,n.body[t])}),n.body=s}return n=Object.assign({credentials:"same-origin",headers:{Accept:"application/json"}},n),t(e,n).then(function(t){return a=t,t}).then(r.parseStatus).then(r.parseJSON).then(r.userFeedback).then(function(t){return o(t,a)}).catch(r.userFeedbackError)};e.default=o}).call(e,n(3))},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});var a=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};(0,u.default)(f,{method:"post",body:{refresh:e}},function(e){t.data=e,n(e)})}},{key:"refresh",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=(0,s.default)("#news-feed .widget-content");if(e.length){var n=e.find(".widget-loader");n.find("div").remove(),n.find(".fa-warning").removeClass("fa-warning").addClass("fa-refresh fa-spin"),n.show(),e.find("> ul").hide(),!this.data||this.data.error||t?this.fetch(t,this.updateContent.bind(this)):this.updateContent()}}},{key:"updateContent",value:function(){var t=(0,s.default)("#news-feed .widget-content");if(t.length){var e=t.find(".widget-loader").hide(),n=t.find("> ul").empty().show();return this.data.error||"error"===this.data.status?(e.show().find("div").remove(),e.find(".fa-refresh").removeClass("fa-refresh fa-spin").addClass("fa-warning"),void e.append("
    "+(this.data.error?this.data.error.message:this.data.message||"Unable to download news feed")+"
    ")):void(this.data&&this.data.feed_data&&this.data.feed_data.forEach(function(t){n.append(t)}))}}}]),t}(),p=new d;(0,s.default)(document).ready(function(){return p.refresh()}),(0,s.default)(document).on("click",'[data-refresh="feed"]',function(t){t.preventDefault(),p.refresh(!0)}),e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1),a=r(i),o=n(2),s=n(334),l=n(330),c=r(l);(0,a.default)("[data-gpm-checkupdates]").on("click",function(){var t=(0,a.default)(this);t.find("i").addClass("fa-spin"),o.Instance.fetch(function(e){t.find("i").removeClass("fa-spin");var n=e.payload;if(n)if(n.grav.isUpdatable||n.resources.total){var r=n.grav.isUpdatable?"Grav v"+n.grav.available:"",i=n.resources.total?n.resources.total+" "+s.translations.PLUGIN_ADMIN.UPDATES_ARE_AVAILABLE:"";i||(r+=" "+s.translations.PLUGIN_ADMIN.IS_AVAILABLE_FOR_UPDATE),c.default.info(r+(r&&i?" "+s.translations.PLUGIN_ADMIN.AND+" ":"")+i)}else c.default.success(s.translations.PLUGIN_ADMIN.EVERYTHING_UP_TO_DATE)},!0)})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1),a=r(i),o=n(357),s=r(o);(0,a.default)("body").on("click","[data-maintenance-update]",function(){var t=(0,a.default)(this),e=t.data("maintenanceUpdate");t.attr("disabled","disabled").find("> .fa").removeClass("fa-cloud-download").addClass("fa-refresh fa-spin"),(0,s.default)(e,function(e){"updategrav"===e.type&&((0,a.default)("[data-gpm-grav]").remove(),(0,a.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";function e(t){return t&&t.__esModule?t:{default:t}}var r=n(1),i=e(r),a=n(357),o=e(a),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,o.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(363),a=r(i),o=n(365);n(366), -e.default={Chart:{Chart:a.default,UpdatesChart:i.UpdatesChart,Instances:i.Instances},Cache:o.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 a(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 o(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 t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,n,r)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(r)},l=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(o(this,t),this.element=(0,u.default)(e)||[],this.element[0]){var a=(this.element.data("chart-type")||"pie").toLowerCase();this.type=a.charAt(0).toUpperCase()+a.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(){n.element.find(".hidden").removeClass("hidden"),n.element.find(".ct-label").each(function(t,e){e=(0,u.default)(e);var n=e.html().replace("<","<").replace(">",">");e.html(n)})})}}return l(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]:{};o(this,e);var a=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,r));return a.chart.on("draw",function(t){return a.draw(t)}),h.Instance.on("fetched",function(t){if(t.payload){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;a.updateData({series:[r,n]}),t.payload.resources.total&&m.Instance.maintenance("show")}}),a}return a(e,t),l(e,[{key:"draw",value:function(t){if(!t.index){var e=p.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(e.prototype.__proto__||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,u.default)("[data-chart-name]").each(function(){var t=(0,u.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 a=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return t&&(t="cleartype:"+t+"/"),l.config.base_url_relative+"/cache.json/task"+l.config.param_sep+"clearCache/"+t+"admin-nonce"+l.config.param_sep+l.config.admin_nonce},d=function(){function t(){var e=this;i(this,t),this.element=(0,s.default)("[data-clear-cache]"),(0,s.default)("body").on("click","[data-clear-cache]",function(t){return e.clear(t,t.target)})}return a(t,[{key:"clear",value:function(t,e){var n=this,r="";t&&t.preventDefault&&t.preventDefault(),"string"==typeof t&&(r=t),e=e?(0,s.default)(e):(0,s.default)('[data-clear-cache-type="'+r+'"]'),r=r||(0,s.default)(e).data("clear-cache-type")||"";var i=e.data("clearCache")||f(r);this.disable(),(0,u.default)(i,function(){return n.enable()})}},{key:"enable",value:function(){this.element.removeAttr("disabled").find("> .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 p=new d;e.Instance=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1),a=r(i),o=n(334),s=n(357),l=r(s),c=n(363);(0,a.default)('[data-ajax*="task:backup"]').on("click",function(){var t=(0,a.default)(this),e=t.data("ajax");t.attr("disabled","disabled").find("> .fa").removeClass("fa-database").addClass("fa-spin fa-refresh"),(0,l.default)(e,function(){c.Instances&&c.Instances.backups&&(c.Instances.backups.updateData({series:[0,100]}),c.Instances.backups.element.find(".numeric").html("0 "+o.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),a=r(i),o=n(368),s=r(o),l=n(369),c=r(l),u=n(377),f=r(u),d=function(t,e){return("000"+t).substr(-e)},p=null,h=(0,a.default)("#ordering");h.length&&(p=new s.default(h.get(0),{filter:".ignore",onUpdate:function(){var t=[],e=h.children(),n=(e.length+"").split("").length;e.each(function(e,r){r=(0,a.default)(r),t.push(r.data("id")),r.find(".page-order").text(d(e+1,n)+".")}),(0,a.default)("[data-order]").val(t.join(","))}}),(0,a.default)(document).on("input",'[name="data[folder]"]',function(t){var e=(0,a.default)(t.currentTarget),n=(0,a.default)("[data-id][data-active-id]");n.data("id",e.val()),p.options.onUpdate()})),e.default={Ordering:p,Page:f.default,PageFilters:{PageFilters:c.default,Instance:l.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 a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n=0?i=setTimeout(r,e-c):(i=null,n||(l=t.apply(o,a),o=a=null))}var i,a,o,s,l;null==e&&(e=100);var c=function(){o=this,a=arguments,s=Date.now();var c=n&&!i;return i||(i=setTimeout(r,e)),c&&(l=t.apply(o,a),o=a=null),l};return c.clear=function(){i&&(clearTimeout(i),i=null)},c}},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 a=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];"string"==typeof t&&(t=(0,s.default)('[data-nav-id="'+t+'"]').find('[data-toggle="children"]')),t=(0,s.default)(t||this.elements),t.each(function(t,r){r=(0,s.default)(r);var i=e.getState(r.closest('[data-toggle="children"]'));e[i.isOpen?"collapse":"expand"](i.id,n)})}},{key:"collapse",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"string"==typeof t&&(t=(0,s.default)('[data-nav-id="'+t+'"]').find('[data-toggle="children"]')),t=(0,s.default)(t||this.elements),t.each(function(t,r){r=(0,s.default)(r);var i=e.getState(r);i.isOpen&&(i.children.hide(),i.icon.removeClass("children-open").addClass("children-closed"),n||delete e.session[i.id])}),n||this.save()}},{key:"expand",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"==typeof t){var r=(0,s.default)('[data-nav-id="'+t+'"]'),i=r.parents("[data-nav-id]");if(i.length)return i=i.find('[data-toggle="children"]:first'),i=i.add(r.find('[data-toggle="children"]:first')),this.expand(i,n);t=r.find('[data-toggle="children"]:first')}t=(0,s.default)(t||this.elements),t.each(function(t,r){r=(0,s.default)(r);var i=e.getState(r);i.isOpen||(i.children.show(),i.icon.removeClass("children-closed").addClass("children-open"),n||(e.session[i.id]=1))}),n||this.save()}},{key:"restore",value:function(){var t=this;this.collapse(null,!0),Object.keys(this.session).forEach(function(e){t.expand(e,"no-store")})}},{key:"save",value:function(){return sessionStorage.setItem(l,JSON.stringify(this.session))}},{key:"getState",value:function(t){return t=(0,s.default)(t),{id:t.closest("[data-nav-id]").data("nav-id"),children:t.closest("li.page-item").find("ul:first"),icon:t.find(".page-icon"),get isOpen(){return this.icon.hasClass("children-open")}}}}]),t}();e.default=c;var u=new c('[data-toggle="children"]');e.Instance=u},function(t,e){"use strict";!function(){function t(){var t="localStoragePollyfill";try{return localStorage.setItem(t,t),localStorage.removeItem(t),sessionStorage.setItem(t,t),sessionStorage.removeItem(t),!0}catch(t){return!1}}if(!t())try{Storage.prototype._data={},Storage.prototype.setItem=function(t,e){return this._data[t]=String(e),this._data[t]},Storage.prototype.getItem=function(t){return this._data.hasOwnProperty(t)?this._data[t]:void 0},Storage.prototype.removeItem=function(t){return delete this._data[t]},Storage.prototype.clear=function(){return this._data={},this._data}}catch(t){console.error("localStorage pollyfill error: ",t)}}()},,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(373),a=r(i);a.default.define("required-fix",function(t){var e=this;this.refreshValidityState=function(){if(!e.isRequired)return!1;var t=!e.items.length;e.isInvalid=t,t?(e.$control_input.attr("required",""),e.$input.removeAttr("required")):(e.$control_input.removeAttr("required"),e.$input.attr("required"))}})},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=r(i);n(378),n(381),n(382),n(383);var o=n(384),s=r(o);n(453);var l=(0,a.default)('input[type="radio"][name="mode-switch"]');if(l){var c=l.closest(":checked").data("leave-url"),u=(0,a.default)('');l.parent().append(u),l.siblings("label").on("mousedown touchdown",function(e){e.preventDefault();var n=(0,a.default)('[data-remodal-id="changes"] [data-leave-action="continue"]');n.one("click",function(){(0,a.default)(t).on("beforeunload._grav"),u.off("click._grav"),(0,a.default)(e.target).trigger("click")}),u.trigger("click._grav")}),l.on("change",function(t){var e=(0,a.default)(t.target);c=e.data("leave-url"),setTimeout(function(){return u.attr("href",c).get(0).click()},5)})}e.default={Media:{PageMedia:s.default,PageMediaInstances:o.Instance}}}).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),a=r(i);n(379);var o=n(357),s=r(o),l=n(334),c=!1,u=(0,a.default)('[data-remodal-id="modal"] input[name="data[folder]"], [data-remodal-id="modular"] input[name="data[folder]"]'),f=(0,a.default)('[data-remodal-id="modal"] input[name="data[title]"], [data-remodal-id="modular"] input[name="data[title]"]'),d=function(t,e){e=(0,a.default)(e);var n='[data-remodal-id="'+e.closest("[data-remodal-id]").data("remodal-id")+'"]';return{title:"title"===t?(0,a.default)(e):(0,a.default)(n+' input[name="data[title]"]'),folder:"folder"===t?(0,a.default)(e):(0,a.default)(n+' input[name="data[folder]"]')}};f.on("input focus blur",function(t){if(c)return!0;var e=d("title",t.currentTarget),n=a.default.slugify(e.title.val(),{custom:{"'":""}});e.folder.val(n)}),u.on("input",function(t){var e=d("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),c=!!r,n.setSelectionRange(i.start,i.end)}),u.on("focus blur",function(t){return d("title",t.currentTarget).title.trigger("input")}),(0,a.default)(document).on("change",'[name="data[route]"]',function(t){var e=(0,a.default)(t.currentTarget).val(),n=(0,a.default)('[name="data[name]"]'),r=l.config.base_url_relative+"/ajax.json/task"+l.config.param_sep+"getChildTypes";0!==n.length&&(0,s.default)(r,{method:"post",body:{rawroute:e}},function(t){var e=t.child_type;""!==e&&"default"!==e&&(n.val(e),n.data("selectize").setValue(e))})})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1),a=r(i),o=n(380),s=r(o);a.default.expr[":"].noparents=a.default.expr.createPseudo(function(t){return function(e){return(0,a.default)(e).parents(t).length<1}}),a.default.fn.slugify=function(t,e){return(void 0).each(function(t){var n=(0,a.default)(t),r=(0,a.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"](a.default.slugify(r.val(),e))})})},a.default.slugify=function(t,e){return e=a.default.extend({},a.default.slugify.options,e),e.lang=e.lang||(0,a.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},a.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),a=r(i);(0,a.default)('[data-page-move] button[name="task"][value="save"]').on("click",function(){var t=(0,a.default)('form#blueprints:first select[name="data[route]"]'),e=(0,a.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),a=r(i);(0,a.default)(".disable-after-click").on("click",function(){(0,a.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 a(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var s=function(){function t(t,e){for(var n=0;n\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    '+m.translations.PLUGIN_ADMIN.DELETE+'\n \n '+m.translations.PLUGIN_ADMIN.VIEW+'\n '+m.translations.PLUGIN_ADMIN.INSERT+"\n ").trim(),y=function(e){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.container,r=void 0===e?"#grav-dropzone":e,o=t.options,s=void 0===o?{}:o;i(this,n),s=Object.assign(s,{previewTemplate:g});var l=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,{container:r,options:s}));return l.container.length?(l.urls={fetch:l.container.data("media-url")+"/task"+m.config.param_sep+"listmedia",add:l.container.data("media-url")+"/task"+m.config.param_sep+"addmedia",delete:l.container.data("media-url")+"/task"+m.config.param_sep+"delmedia"},l.dropzone.options.url=l.urls.add,("undefined"==typeof l.options.fetchMedia||l.options.fetchMedia)&&l.fetchMedia(),("undefined"==typeof l.options.attachDragDrop||l.options.attachDragDrop)&&l.attachDragDrop(),l):a(l)}return o(n,e),s(n,[{key:"fetchMedia",value:function(){var t=this,e=this.urls.fetch;(0,d.default)(e,{method:"post"},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),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("name",this.options.dotNotation),n.append("admin-nonce",m.config.admin_nonce)}},{key:"onDropzoneComplete",value:function(t){l(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"onDropzoneComplete",this).call(this,t),(0,u.default)(".dz-preview").prop("draggable","true")}},{key:"attachDragDrop",value:function(){var e=this;this.container.delegate("[data-dz-insert]","click",function(t){var e=(0,u.default)(t.currentTarget).parent(".dz-preview").find(".dz-filename"),n=v.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=(0,p.UriToMarkdown)(r);n.doc.replaceSelection(i)}}),this.container.delegate("[data-dz-view]","mouseenter",function(t){var n=(0,u.default)(t.currentTarget),r=n.parent(".dz-preview").find(".dz-filename"),i=encodeURI(r.text()),a=n.closest("[data-media-path]").data("media-path"),o=e.dropzone.files.filter(function(t){return t.name===i}).shift().extras.original;n.attr("href",a+"/"+o)}),this.container.delegate("[data-dz-metadata]","click",function(n){n.preventDefault();var r=(0,u.default)(n.currentTarget),i=r.parent(".dz-preview").find(".dz-filename"),a=encodeURI(i.text()),o=e.dropzone.files.filter(function(e){return e.name===t.decodeURI(a)}).shift()||{};o.extras||(o.extras={metadata:[]}),Array.isArray(o.extras.metadata)&&!o.extras.metadata.length&&(o.extras.metadata={"":t.decodeURI(a)+".meta.yaml doesn't exist"}),o=o.extras;var s=(0,u.default)("body").find('[data-remodal-id="metadata"]'),l=u.default.remodal.lookup[s.data("remodal")];s.find("h1 strong").html(a),o.url&&s.find(".meta-preview").html('');var c=s.find(".meta-content").html("
      ").find("ul");Object.keys(o.metadata).forEach(function(t){c.append("
    • "+(t?t+":":"")+" "+o.metadata[t]+"
    • ")}),l.open()}),this.container.delegate(".dz-preview","dragstart",function(t){var n=(0,u.default)(t.currentTarget),r=encodeURI(n.find(".dz-filename").text()),i=(0,p.UriToMarkdown)(r);e.dropzone.disable(),n.addClass("hide-backface"),t.originalEvent.dataTransfer.effectAllowed="copy",t.originalEvent.dataTransfer.setData("text",i)}),this.container.delegate(".dz-preview","dragend",function(t){var n=(0,u.default)(t.currentTarget);e.dropzone.enable(),n.removeClass("hide-backface")})}}]),n}(h.default);e.default=y;e.Instance=new y}).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")}function a(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|mp4|webm|ogv|mov)$/i)?"![]("+t+")":"["+decodeURI(t)+"]("+t+")"}Object.defineProperty(e,"__esModule",{value:!0}),e.Instances=void 0;var o=function(){function t(t,e){for(var n=0;n"),dictRemoveFileConfirmation:"[placeholder]",previewTemplate:('\n ").trim()},v=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.container,a=void 0===r?".dropzone.files-upload":r,o=n.options,s=void 0===o?{}:o;i(this,e),this.container=(0,l.default)(a),this.container.length&&(this.urls={},this.options=Object.assign({},h,m,{klass:this,url:this.container.data("file-url-add")||p.config.current_url,acceptedFiles:this.container.data("media-types"),init:this.initDropzone},this.container.data("dropzone-options"),s),this.dropzone=new u.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)),this.container.on("mouseenter","[data-dz-view]",function(e){var n=JSON.parse(t.container.find('[name][type="hidden"]').val()||"{}"),r=(0,l.default)(e.currentTarget),i=r.parent(".dz-preview").find(".dz-filename"),a=encodeURI(i.text()),o=Object.keys(n).filter(function(t){return n[t].name===a}).shift();r.attr("href",p.config.base_url_simple+"/"+o)}))}return o(e,[{key:"initDropzone",value:function(){var t=this,e=this.options.klass.container.find("[data-file]"),n=this;e.length&&e.each(function(e,r){r=(0,l.default)(r);var i=r.data("file"),a={name:i.name,size:i.size,type:i.type,status:u.default.ADDED,accepted:!0,url:t.options.url,removeUrl:i.remove};n.files.push(a),n.options.addedfile.call(n,a),a.type.match(/^image\//)&&(n.options.thumbnail.call(n,a,i.path),n.createThumbnailFromUrl(a,i.path)),r.remove()})}},{key:"onDropzoneSending",value:function(t,e,n){n.append("name",this.options.dotNotation),n.append("admin-nonce",p.config.admin_nonce),n.append("task","filesupload")}},{key:"onDropzoneSuccess",value:function(e,n,r){if(n="string"==typeof n?JSON.parse(n):n,this.options.reloadPage&&t.location.reload(),n.session){e.sessionParams=n.session,e.removeUrl=this.options.url;var i=this.container.find('[name][type="hidden"]'),a=i.val();i.val(a+" ")}return this.handleError({file:e,data:n,mode:"removeFile",msg:"

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

      \n
      "+n.message+"
      " +e.default={Chart:{Chart:a.default,UpdatesChart:i.UpdatesChart,Instances:i.Instances},Cache:o.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 a(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 o(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 t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,n,r)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(r)},l=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(o(this,t),this.element=(0,u.default)(e)||[],this.element[0]){var a=(this.element.data("chart-type")||"pie").toLowerCase();this.type=a.charAt(0).toUpperCase()+a.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(){n.element.find(".hidden").removeClass("hidden"),n.element.find(".ct-label").each(function(t,e){e=(0,u.default)(e);var n=e.html().replace("<","<").replace(">",">");e.html(n)})})}}return l(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]:{};o(this,e);var a=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,r));return a.chart.on("draw",function(t){return a.draw(t)}),h.Instance.on("fetched",function(t){if(t.payload){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;a.updateData({series:[r,n]}),t.payload.resources.total&&m.Instance.maintenance("show")}}),a}return a(e,t),l(e,[{key:"draw",value:function(t){if(!t.index){var e=p.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(e.prototype.__proto__||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,u.default)("[data-chart-name]").each(function(){var t=(0,u.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 a=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return t&&(t="cleartype:"+t+"/"),l.config.base_url_relative+"/cache.json/task"+l.config.param_sep+"clearCache/"+t+"admin-nonce"+l.config.param_sep+l.config.admin_nonce},d=function(){function t(){var e=this;i(this,t),this.element=(0,s.default)("[data-clear-cache]"),(0,s.default)("body").on("click","[data-clear-cache]",function(t){return e.clear(t,t.target)})}return a(t,[{key:"clear",value:function(t,e){var n=this,r="";t&&t.preventDefault&&t.preventDefault(),"string"==typeof t&&(r=t),e=e?(0,s.default)(e):(0,s.default)('[data-clear-cache-type="'+r+'"]'),r=r||(0,s.default)(e).data("clear-cache-type")||"";var i=e.data("clearCache")||f(r);this.disable(),(0,u.default)(i,function(){return n.enable()})}},{key:"enable",value:function(){this.element.removeAttr("disabled").find("> .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 p=new d;e.Instance=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1),a=r(i),o=n(334),s=n(357),l=r(s),c=n(363);(0,a.default)('[data-ajax*="task:backup"]').on("click",function(){var t=(0,a.default)(this),e=t.data("ajax");t.attr("disabled","disabled").find("> .fa").removeClass("fa-database").addClass("fa-spin fa-refresh"),(0,l.default)(e,function(){c.Instances&&c.Instances.backups&&(c.Instances.backups.updateData({series:[0,100]}),c.Instances.backups.element.find(".numeric").html("0 "+o.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),a=r(i),o=n(368),s=r(o),l=n(369),c=r(l),u=n(377),f=r(u),d=function(t,e){return("000"+t).substr(-e)},p=null,h=(0,a.default)("#ordering");h.length&&(p=new s.default(h.get(0),{filter:".ignore",onUpdate:function(){var t=[],e=h.children(),n=(e.length+"").split("").length;e.each(function(e,r){r=(0,a.default)(r),t.push(r.data("id")),r.find(".page-order").text(d(e+1,n)+".")}),(0,a.default)("[data-order]").val(t.join(","))}}),(0,a.default)(document).on("input",'[name="data[folder]"]',function(t){var e=(0,a.default)(t.currentTarget),n=(0,a.default)("[data-id][data-active-id]");n.data("id",e.val()),p.options.onUpdate()})),e.default={Ordering:p,Page:f.default,PageFilters:{PageFilters:c.default,Instance:l.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 a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n=0?i=setTimeout(r,e-c):(i=null,n||(l=t.apply(o,a),o=a=null))}var i,a,o,s,l;null==e&&(e=100);var c=function(){o=this,a=arguments,s=Date.now();var c=n&&!i;return i||(i=setTimeout(r,e)),c&&(l=t.apply(o,a),o=a=null),l};return c.clear=function(){i&&(clearTimeout(i),i=null)},c}},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 a=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];"string"==typeof t&&(t=(0,s.default)('[data-nav-id="'+t+'"]').find('[data-toggle="children"]')),t=(0,s.default)(t||this.elements),t.each(function(t,r){r=(0,s.default)(r);var i=e.getState(r.closest('[data-toggle="children"]'));e[i.isOpen?"collapse":"expand"](i.id,n)})}},{key:"collapse",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"string"==typeof t&&(t=(0,s.default)('[data-nav-id="'+t+'"]').find('[data-toggle="children"]')),t=(0,s.default)(t||this.elements),t.each(function(t,r){r=(0,s.default)(r);var i=e.getState(r);i.isOpen&&(i.children.hide(),i.icon.removeClass("children-open").addClass("children-closed"),n||delete e.session[i.id])}),n||this.save()}},{key:"expand",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"==typeof t){var r=(0,s.default)('[data-nav-id="'+t+'"]'),i=r.parents("[data-nav-id]");if(i.length)return i=i.find('[data-toggle="children"]:first'),i=i.add(r.find('[data-toggle="children"]:first')),this.expand(i,n);t=r.find('[data-toggle="children"]:first')}t=(0,s.default)(t||this.elements),t.each(function(t,r){r=(0,s.default)(r);var i=e.getState(r);i.isOpen||(i.children.show(),i.icon.removeClass("children-closed").addClass("children-open"),n||(e.session[i.id]=1))}),n||this.save()}},{key:"restore",value:function(){var t=this;this.collapse(null,!0),Object.keys(this.session).forEach(function(e){t.expand(e,"no-store")})}},{key:"save",value:function(){return sessionStorage.setItem(l,JSON.stringify(this.session))}},{key:"getState",value:function(t){return t=(0,s.default)(t),{id:t.closest("[data-nav-id]").data("nav-id"),children:t.closest("li.page-item").find("ul:first"),icon:t.find(".page-icon"),get isOpen(){return this.icon.hasClass("children-open")}}}}]),t}();e.default=c;var u=new c('[data-toggle="children"]');e.Instance=u},function(t,e){"use strict";!function(){function t(){var t="localStoragePollyfill";try{return localStorage.setItem(t,t),localStorage.removeItem(t),sessionStorage.setItem(t,t),sessionStorage.removeItem(t),!0}catch(t){return!1}}if(!t())try{Storage.prototype._data={},Storage.prototype.setItem=function(t,e){return this._data[t]=String(e),this._data[t]},Storage.prototype.getItem=function(t){return this._data.hasOwnProperty(t)?this._data[t]:void 0},Storage.prototype.removeItem=function(t){return delete this._data[t]},Storage.prototype.clear=function(){return this._data={},this._data}}catch(t){console.error("localStorage pollyfill error: ",t)}}()},,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(373),a=r(i);a.default.define("required-fix",function(t){var e=this;this.refreshValidityState=function(){if(!e.isRequired)return!1;var t=!e.items.length;e.isInvalid=t,t?(e.$control_input.attr("required",""),e.$input.removeAttr("required")):(e.$control_input.removeAttr("required"),e.$input.attr("required"))}})},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=r(i);n(378),n(381),n(382),n(383);var o=n(384),s=r(o);n(453);var l=(0,a.default)('input[type="radio"][name="mode-switch"]');if(l){var c=l.closest(":checked").data("leave-url"),u=(0,a.default)('');l.parent().append(u),l.siblings("label").on("mousedown touchdown",function(e){e.preventDefault();var n=(0,a.default)('[data-remodal-id="changes"] [data-leave-action="continue"]');n.one("click",function(){(0,a.default)(t).on("beforeunload._grav"),u.off("click._grav"),(0,a.default)(e.target).trigger("click")}),u.trigger("click._grav")}),l.on("change",function(t){var e=(0,a.default)(t.target);c=e.data("leave-url"),setTimeout(function(){return u.attr("href",c).get(0).click()},5)})}e.default={Media:{PageMedia:s.default,PageMediaInstances:o.Instance}}}).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),a=r(i);n(379);var o=n(357),s=r(o),l=n(334),c=!1,u=(0,a.default)('[data-remodal-id="modal"] input[name="data[folder]"], [data-remodal-id="modular"] input[name="data[folder]"]'),f=(0,a.default)('[data-remodal-id="modal"] input[name="data[title]"], [data-remodal-id="modular"] input[name="data[title]"]'),d=function(t,e){e=(0,a.default)(e);var n='[data-remodal-id="'+e.closest("[data-remodal-id]").data("remodal-id")+'"]';return{title:"title"===t?(0,a.default)(e):(0,a.default)(n+' input[name="data[title]"]'),folder:"folder"===t?(0,a.default)(e):(0,a.default)(n+' input[name="data[folder]"]')}};f.on("input focus blur",function(t){if(c)return!0;var e=d("title",t.currentTarget),n=a.default.slugify(e.title.val(),{custom:{"'":""}});e.folder.val(n)}),u.on("input",function(t){var e=d("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),c=!!r,n.setSelectionRange(i.start,i.end)}),u.on("focus blur",function(t){return d("title",t.currentTarget).title.trigger("input")}),(0,a.default)(document).on("change",'[name="data[route]"]',function(t){var e=(0,a.default)(t.currentTarget).val(),n=(0,a.default)('[name="data[name]"]'),r=l.config.base_url_relative+"/ajax.json/task"+l.config.param_sep+"getChildTypes";0!==n.length&&(0,s.default)(r,{method:"post",body:{rawroute:e}},function(t){var e=t.child_type;""!==e&&"default"!==e&&(n.val(e),n.data("selectize").setValue(e))})})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1),a=r(i),o=n(380),s=r(o);a.default.expr[":"].noparents=a.default.expr.createPseudo(function(t){return function(e){return(0,a.default)(e).parents(t).length<1}}),a.default.fn.slugify=function(t,e){return(void 0).each(function(t){var n=(0,a.default)(t),r=(0,a.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"](a.default.slugify(r.val(),e))})})},a.default.slugify=function(t,e){return e=a.default.extend({},a.default.slugify.options,e),e.lang=e.lang||(0,a.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},a.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),a=r(i);(0,a.default)('[data-page-move] button[name="task"][value="save"]').on("click",function(){var t=(0,a.default)('form#blueprints:first select[name="data[route]"]'),e=(0,a.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),a=r(i);(0,a.default)(".disable-after-click").on("click",function(){(0,a.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 a(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var s=function(){function t(t,e){for(var n=0;n\n
      \n
      \n
      \n \n
      \n
      \n
      \n
      \n
      \n
      '+m.translations.PLUGIN_ADMIN.DELETE+'\n \n '+m.translations.PLUGIN_ADMIN.VIEW+'\n '+m.translations.PLUGIN_ADMIN.INSERT+"\n ").trim(),y=function(e){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.container,r=void 0===e?"#grav-dropzone":e,o=t.options,s=void 0===o?{}:o;i(this,n),s=Object.assign(s,{previewTemplate:g});var l=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,{container:r,options:s}));return l.container.length?(l.urls={fetch:l.container.data("media-url")+"/task"+m.config.param_sep+"listmedia",add:l.container.data("media-url")+"/task"+m.config.param_sep+"addmedia",delete:l.container.data("media-url")+"/task"+m.config.param_sep+"delmedia"},l.dropzone.options.url=l.urls.add,("undefined"==typeof l.options.fetchMedia||l.options.fetchMedia)&&l.fetchMedia(),("undefined"==typeof l.options.attachDragDrop||l.options.attachDragDrop)&&l.attachDragDrop(),l):a(l)}return o(n,e),s(n,[{key:"fetchMedia",value:function(){var t=this,e=this.urls.fetch;(0,d.default)(e,{method:"post"},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),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("name",this.options.dotNotation),n.append("admin-nonce",m.config.admin_nonce)}},{key:"onDropzoneComplete",value:function(t){l(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"onDropzoneComplete",this).call(this,t),(0,u.default)(".dz-preview").prop("draggable","true")}},{key:"attachDragDrop",value:function(){var e=this;this.container.delegate("[data-dz-insert]","click",function(t){var e=(0,u.default)(t.currentTarget).parent(".dz-preview").find(".dz-filename"),n=v.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=(0,p.UriToMarkdown)(r);n.doc.replaceSelection(i)}}),this.container.delegate("[data-dz-view]","mouseenter",function(t){var n=(0,u.default)(t.currentTarget),r=n.parent(".dz-preview").find(".dz-filename"),i=encodeURI(r.text()),a=n.closest("[data-media-path]").data("media-path"),o=e.dropzone.files.filter(function(t){return t.name===i}).shift().extras.original;n.attr("href",a+"/"+o)}),this.container.delegate("[data-dz-metadata]","click",function(n){n.preventDefault();var r=(0,u.default)(n.currentTarget),i=r.parent(".dz-preview").find(".dz-filename"),a=encodeURI(i.text()),o=e.dropzone.files.filter(function(e){return e.name===t.decodeURI(a)}).shift()||{};o.extras||(o.extras={metadata:[]}),Array.isArray(o.extras.metadata)&&!o.extras.metadata.length&&(o.extras.metadata={"":t.decodeURI(a)+".meta.yaml doesn't exist"}),o=o.extras;var s=(0,u.default)("body").find('[data-remodal-id="metadata"]'),l=u.default.remodal.lookup[s.data("remodal")];s.find("h1 strong").html(a),o.url&&s.find(".meta-preview").html('');var c=s.find(".meta-content").html("
        ").find("ul");Object.keys(o.metadata).forEach(function(t){c.append("
      • "+(t?t+":":"")+" "+o.metadata[t]+"
      • ")}),l.open()}),this.container.delegate(".dz-preview","dragstart",function(t){var n=(0,u.default)(t.currentTarget),r=encodeURI(n.find(".dz-filename").text()),i=(0,p.UriToMarkdown)(r);e.dropzone.disable(),n.addClass("hide-backface"),t.originalEvent.dataTransfer.effectAllowed="copy",t.originalEvent.dataTransfer.setData("text",i)}),this.container.delegate(".dz-preview","dragend",function(t){var n=(0,u.default)(t.currentTarget);e.dropzone.enable(),n.removeClass("hide-backface")})}}]),n}(h.default);e.default=y;e.Instance=new y}).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")}function a(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|mp4|webm|ogv|mov)$/i)?"![]("+t+")":"["+decodeURI(t)+"]("+t+")"}Object.defineProperty(e,"__esModule",{value:!0}),e.Instances=void 0;var o=function(){function t(t,e){for(var n=0;n"),dictRemoveFileConfirmation:"[placeholder]",previewTemplate:('\n ").trim()},v=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.container,a=void 0===r?".dropzone.files-upload":r,o=n.options,s=void 0===o?{}:o;i(this,e),this.container=(0,l.default)(a),this.container.length&&(this.urls={},this.options=Object.assign({},h,m,{klass:this,url:this.container.data("file-url-add")||p.config.current_url,acceptedFiles:this.container.data("media-types"),init:this.initDropzone},this.container.data("dropzone-options"),s),this.dropzone=new u.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)),this.container.on("mouseenter","[data-dz-view]",function(e){var n=JSON.parse(t.container.find('[name][type="hidden"]').val()||"{}"),r=(0,l.default)(e.currentTarget),i=r.parent(".dz-preview").find(".dz-filename"),a=encodeURI(i.text()),o=Object.keys(n).filter(function(t){return n[t].name===a}).shift();r.attr("href",p.config.base_url_simple+"/"+o)}))}return o(e,[{key:"initDropzone",value:function(){var t=this,e=this.options.klass.container.find("[data-file]"),n=this;e.length&&e.each(function(e,r){r=(0,l.default)(r);var i=r.data("file"),a={name:i.name,size:i.size,type:i.type,status:u.default.ADDED,accepted:!0,url:t.options.url,removeUrl:i.remove};n.files.push(a),n.options.addedfile.call(n,a),a.type.match(/^image\//)&&(n.options.thumbnail.call(n,a,i.path),n.createThumbnailFromUrl(a,i.path)),r.remove()})}},{key:"onDropzoneSending",value:function(t,e,n){n.append("name",this.options.dotNotation),n.append("admin-nonce",p.config.admin_nonce),n.append("task","filesupload")}},{key:"onDropzoneSuccess",value:function(e,n,r){if(n="string"==typeof n?JSON.parse(n):n,this.options.reloadPage&&t.location.reload(),n.session){e.sessionParams=n.session,e.removeUrl=this.options.url;var i=this.container.find('[name][type="hidden"]'),a=i.val();i.val(a+" ")}return this.handleError({file:e,data:n,mode:"removeFile",msg:"

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

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

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

        \n
        "+n.message+"
        "})}this.options.reloadPage&&t.location.reload()}},{key:"b64_to_utf8",value:function(t){return t=t.replace(/\s/g,""),decodeURIComponent(escape(window.atob(t)))}},{key:"onDropzoneRemovedFile",value:function(t){var e=this;if(t.accepted&&!t.rejected){var n=t.removeUrl||this.urls.delete,r=(n||"").match(/path:(.*)\//),i={filename:t.name};t.sessionParams&&(i.task="filessessionremove",i.session=t.sessionParams),(0,d.default)(n,{method:"post",body:i},function(){if(r){r=e.b64_to_utf8(r[1]);var t=e.container.find('[name][type="hidden"]'),n=JSON.parse(t.val()||"{}");delete n[r],t.val(JSON.stringify(n))}})}}},{key:"onDropzoneError",value:function(t,e,n){var r=n?e.error.message:e;return(0,l.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":default:~this.dropzone.files.indexOf(e)&&(e.rejected=!0,this.dropzone.removeFile.call(this.dropzone,e,{silent:!0}))}var a=(0,l.default)('[data-remodal-id="generic"]');a.find(".error-content").html(i),l.default.remodal.lookup[a.data("remodal")].open()}}}]),e}();e.default=v;var g=[],y=(0,l.default)(),_=function(t,e){var n=(0,l.default)(e).find(".dropzone.files-upload");n.length&&n.each(function(t,e){e=(0,l.default)(e),~y.index(e)||b(e)})},b=function(t){t=(0,l.default)(t);var e=t.find('input[type="file"]'),n=t.data("grav-file-settings")||{};n.accept&&~n.accept.indexOf("*")&&(n.accept=[""]);var r={url:t.data("file-url-add")||(t.closest("form").attr("action")||p.config.current_url)+".json",paramName:n.paramName||"file",dotNotation:n.name||"file",acceptedFiles:n.accept?n.accept.join(","):e.attr("accept")||t.data("media-types"),maxFilesize:"undefined"!=typeof n.filesize?n.filesize:256,maxFiles:n.limit||null};y=y.add(t),t=t[0],g.push(new v({container:t,options:r}))};e.Instances=function(){return(0,l.default)(".dropzone.files-upload").each(function(t,e){return b(e)}),(0,l.default)("body").on("mutation._grav",_),g}()}).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 a=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 a(t,null,[{key:"templates",value:function(){return{navigation:'\n
        \n
        \n
        \n
        \n '}}}]),a(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]?arguments[2]:null;Object.keys(t).forEach(function(i){var a=t[i];if(a.modes||(a.modes=[]),!~n.codemirror.options.ignore.indexOf(i)&&(!a.modes.length||a.modes.indexOf(n.codemirror.options.mode)>-1)){var o=a.title?'data-hint="'+a.title+'"':"",l=(0,s.default)('
        • "+a.label+"
        • ");if((r||n.ui.navigation.find(".grav-editor-"+e+" ul:not(.dropdown-menu)")).append(l),a.shortcut&&n.addShortcut(a.identifier,a.shortcut,l),a.action&&a.action.call(a.action,{codemirror:n.codemirror,button:l,textarea:n.editor,ui:n.ui}),a.children){var c=(0,s.default)('