varGrav=webpackJsonpGrav([0],[function(t,e,n){(function(t){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});vari=n(1),a=r(i),o=n(2),s=r(o),l=n(313),u=r(l),c=n(314),f=r(c),d=n(334),p=r(d),h=n(339),m=r(h),v=n(425),g=r(v),y=n(552),_=r(y);n(556),n(566);varb=n(567),w=n(302),x=r(w),k=n(329),S=r(k);n(568),n(569),n(570),n(571);varA=n(573),E=r(A);u.default.start(),t.setInterval(function(){y.Instance.update(),A.Instance.scroller.update()},150),(0,a.default)(t).on("sidebar_state._grav",function(){Object.keys(p.default.Chart.Instances).forEach(function(t){setTimeout(function(){returnp.default.Chart.Instances[t].chart.update()},10)})}),e.default={GPM:{GPM:s.default,Instance:o.Instance},KeepAlive:u.default,Dashboard:p.default,Pages:m.default,Forms:g.default,Scrollbar:{Scrollbar:_.default,Instance:y.Instance},Updates:{Updates:f.default,Notifications:c.Notifications,Feed:c.Feed,Instance:c.Instance},Sidebar:{Sidebar:E.default,Instance:A.Instance},MediaFilter:{MediaFilter:b.Filter,Instance:b.Instance},Utils:{request:S.default,toastr:x.default}}}).call(e,function(){returnthis}())},,function(t,e,n){(function(t){"use strict";functionr(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functioni(t,e){if(!t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeofe&&"function"!=typeofe?t:e}functiona(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);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=void0;varo=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(301),l=n(306),u=n(312),c=function(e){functionn(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:"getUpdates";r(this,n);vare=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));returne.payload={},e.raw={},e.action=t,e}returna(n,e),o(n,[{key:"setPayload",value:function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};returnthis.payload=t,this.emit("payload",t),this}},{key:"setAction",value:function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:"getUpdates";returnthis.action=t,this.emit("action",t),this}},{key:"fetch",value:function(t){functione(){returnt.apply(this,arguments)}returne.toString=function(){returnt.toString()},e}(function(){vare=this,n=arguments.length>0&&void0!==arguments[0]?arguments[0]:function(){return!0},r=arguments.length>1&&void0!==arguments[1]&&arguments[1],i=newFormData;i.append("admin-nonce",l.config.admin_nonce),r&&i.append("flush",!0),this.emit("fetching",this),t(l.config.base_url_relative+"/update.json/task"+l.config.param_sep+"getUpdates",{credentials:"same-origin",method:"post",body:i}).then(function(t){returne.raw=t,t}).then(s.parseStatus).then(s.parseJSON).then(function(t){returne.response(t)}).then(function(t){returnn(t,e.raw)}).then(function(t){returne.emit("fetched",e.payload,e.raw,e)}).catch(s.userFeedbackError)})},{key:"response",value:function(t){returnthis.payload=t,t}}]),n}(u.EventEmitter);e.default=c;e.Instance=newc}).call(e,n(3))},function(t,e,n){(function(e,n){(function(){!function(t){"use strict";functionn(t){if("string"!=typeoft&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))thrownewTypeError("Invalid character in header field name");returnt.toLowerCase()}functionr(t){return"string"!=typeoft&&(t=String(t)),t}functioni(t){vare={next:function(){vare=t.shift();return{done:void0===e,value:e}}};returny.iterable&&(e[Symbol.iterator]=function(){returne}),e}functiona(t){this.map={},tinstanceofa?t.forEach(function(t,e){this.append(e,t)},this):Array.is
}elsed(0,n),d(1<<-e,0),y=h()+o.call(f,u);returnu>0?(s=y.length,y=g+(s<=u?"0."+o.call(f,u-s)+y:y.slice(0,s-u)+"."+y.slice(s-u))):y=g+y,y}})},function(t,e,n){varr=n(37);t.exports=function(t,e){if("number"!=typeoft&&"Number"!=r(t))throwTypeError(e);return+t}},function(t,e,n){"use strict";varr=n(41),i=n(38);t.exports=function(t){vare=String(i(this)),n="",a=r(t);if(a<0||a==1/0)throwRangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);returnn}},function(t,e,n){"use strict";varr=n(11),i=n(10),a=n(93),o=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==o.call(1,void0)})||!i(function(){o.call({})})),"Number",{toPrecision:function(t){vare=a(this,"Number#toPrecision: incorrect invocation!");returnvoid0===t?o.call(e):o.call(e,t)}})},function(t,e,n){varr=n(11);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){varr=n(11),i=n(7).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeoft&&i(t)}})},function(t,e,n){varr=n(11);r(r.S,"Number",{isInteger:n(99)})},function(t,e,n){varr=n(16),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){varr=n(11);r(r.S,"Number",{isNaN:function(t){returnt!=t}})},function(t,e,n){varr=n(11),i=n(99),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){returni(t)&&a(t)<=9007199254740991}})},function(t,e,n){varr=n(11);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){varr=n(11);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){varr=n(11),i=n(89);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){varr=n(11),i=n(85);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){varr=n(11),i=n(107),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){functionr(t){returnisFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}vari=n(11),a=Math.asinh;i(i.S+i.F*!(a&&1/a(0)>0),"Math",{asinh:r})},function(t,e,n){varr=n(11),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){varr=n(11),i=n(111);r(r.S,"Math",{cbrt:function(t){returni(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){varr=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){varr=n(11),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){varr=n(11),i=n(115);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e){varn=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(t){return0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){varr=n(11),i=n(111),a=Math.pow,o=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126),c=function(t){returnt+1/o-1/o};r(r.S,"Math",{fround:function(t){vare,n,r=Math.abs(t),a=i(t);returnr<u?a*c(r/u/s)*u*s:(e=(1+s/o)*r,n=e-(e-r),n>l||n!=n?a*(1/0):a*n)}})},function(t,e,n){varr=n(11),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(varn,r,a=0,o=0,s=arguments.length,l=0;o<s;)n=i(arguments[o++]),l<n?(r=l/n,a=a*r*r+1,l=n):n>0?(r=n/l,a+=r*r):a+=n;returnl===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){varr=n(11),i=Math.imul;r(r.S+r.F*n(10)(function(){returni(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,e){varn=65535,r=+t,i=+e,a=n&r,o=n&i;return0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},function(t,e,n){varr=n(11);r(r.S,"Math",{log10:function(t){returnMath.log(t)/Math.LN10}})},function(t,e,n){varr=n(11);r(r.S,"Math",{log1p:n(107)})},function(t,e,n){varr=n(11);r(r.S,"Math",{log2:function(t){returnMath.log(t)/Math.LN2}})},function(t,e,n){varr=n(11);r(r.S,"Math",{sign:n(111)})},function(t,e,n){varr=n(11),i=n(115),a=Math.exp;r(r.S+r.F*n(10)(fu
}functionr(){thrownewError("clearTimeout has not been defined")}functioni(t){if(c===setTimeout)returnsetTimeout(t,0);if((c===n||!c)&&setTimeout)returnc=setTimeout,setTimeout(t,0);try{returnc(t,0)}catch(e){try{returnc.call(null,t,0)}catch(e){returnc.call(this,t,0)}}}functiona(t){if(f===clearTimeout)returnclearTimeout(t);if((f===r||!f)&&clearTimeout)returnf=clearTimeout,clearTimeout(t);try{returnf(t)}catch(e){try{returnf.call(null,t)}catch(e){returnf.call(this,t)}}}functiono(){m&&p&&(m=!1,p.length?h=p.concat(h):v=-1,h.length&&s())}functions(){if(!m){vart=i(o);m=!0;for(vare=h.length;e;){for(p=h,h=[];++v<e;)p&&p[v].run();v=-1,e=h.length}p=null,m=!1,a(t)}}functionl(t,e){this.fun=t,this.array=e}functionu(){}varc,f,d=t.exports={};!function(){try{c="function"==typeofsetTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeofclearTimeout?clearTimeout:r}catch(t){f=r}}();varp,h=[],m=!1,v=-1;d.nextTick=function(t){vare=newArray(arguments.length-1);if(arguments.length>1)for(varn=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(newl(t,e)),1!==h.length||m||i(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.binding=function(t){thrownewError("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){thrownewError("process.chdir is not supported")},d.umask=function(){return0}},function(t,e,n){n(299),t.exports=n(12).RegExp.escape},function(t,e,n){varr=n(11),i=n(300)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){returni(t)}})},function(t,e){t.exports=function(t,e){varn=e===Object(e)?function(t){returne[t]}:e;returnfunction(e){returnString(e).replace(t,n)}}},function(t,e,n){(function(t){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}functioni(t){returnt}functiona(t){returnt.text().then(function(t){vare=t;try{e=JSON.parse(t)}catch(e){varn=document.createElement("div");n.innerHTML=t;varr=newError;throwr.stack=(0,v.default)(n.innerText),r}returne})}functiono(t){if(g)return!0;vare=t.status||(t.error?"error":""),n=t.message||(t.error?t.error.message:null),r=t.toastr||null,i=void0;switch(e){case"unauthenticated":throwdocument.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."}returnr&&(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}functions(t){if(g)return!0;vare=t.stack?"<pre><code>"+t.stack+"</code></pre>":"";f.default.error("Fetch Failed: <br /> "+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;varl=n(1),u=r(l),c=n(302),f=r(c),d=n(305),p=r(d),h=n(306),m=n(307),v=r(m),g=!1,y=functiont(e){vart=newError(e.statusText||e||"");returnt.response=e,t};(0,u.default)(t).on("beforeunload._ajax",function(){g=!0})}).call(e,function(){returnthis}())},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});vari=n(303),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";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});vari=n(1),a=r(i),o=n(305),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"==typeoft.navigator.onLine||t.navigator.onL
this.chart.on("created",function(){returnn.element.find(".hidden").removeClass("hidden")})}}returnl(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){functione(t){varn=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void0!==arguments[2]?arguments[2]:{};o(this,e);vara=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,r));returna.chart.on("draw",function(t){returna.draw(t)}),h.Instance.on("fetched",function(t){if(t.payload){vare=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}returna(e,t),l(e,[{key:"draw",value:function(t){if(!t.index){vare=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,c.default)("[data-chart-name]").each(function(){vart=(0,c.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]=newy(t,n,r)});e.Instances=b},,function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void0;vara=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(1),s=r(o),l=n(306),u=n(329),c=r(u),f=function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:"";returnt&&(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(){functiont(){vare=this;i(this,t),this.element=(0,s.default)("[data-clear-cache]"),(0,s.default)("body").on("click","[data-clear-cache]",function(t){returne.clear(t,t.target)})}returna(t,[{key:"clear",value:function(t,e){varn=this,r="";t&&t.preventDefault&&t.preventDefault(),"string"==typeoft&&(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")||"";vari=e.data("clearCache")||f(r);this.disable(),(0,c.default)(i,function(){returnn.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;varp=newd;e.Instance=p},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}vari=n(1),a=r(i),o=n(306),s=n(329),l=r(s),u=n(335);(0,a.default)('[data-ajax*="task:backup"]').on("click",function(){vart=(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(){u.Instances&&u.Instances.backups&&(u.Instances.backups.updateData({series:[0,100]}),u.Instances.backups.element.find(".numeric").html("0 <em>"+o.translations.PLUGIN_ADMIN.DAYS.toLowerCase()+"</em>")),t.removeAttr("disabled").find("> .fa").removeClass("fa-spin fa-refresh").addClass("fa-database")})})},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});vari=n(1),a=r(i),o=n(340),s=r(o),l=n(341),u=r(l),c=n(348),f=r(
functionr(t){returnt&&t.__esModule?t:{default:t}}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=e.Toolbar=void0;vara=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(1),s=r(o),l=n(360),u=r(l),c=n(361),f=r(c),d=n(362),p=n(363),h=r(p);n(398),n(399),n(404),n(405),n(400),n(406),n(408),n(409),n(401),n(411),n(412),n(403),n(413),n(414),n(415),n(420),n(421),n(422),n(423),t.jsyaml=h.default;varm=!1,v=["paper"],g={codemirror:{mode:"htmlmixed",theme:"paper",lineWrapping:!0,dragDrop:!0,autoCloseTags:!0,matchTags:!0,autoCloseBrackets:!0,matchBrackets:!0,indentUnit:4,indentWithTabs:!1,tabSize:4,hintOptions:{completionSingle:!1},extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"}}},y=function(){functiont(e){varn=this;i(this,t);varr=(0,s.default)("body");this.editors=(0,s.default)(),this.options=Object.assign({},g,e),this.buttons=u.default,this.buttonStrategies=l.strategies,(0,d.watch)(u.default,function(){n.editors.each(function(t,e){return(0,s.default)(e).data("toolbar").renderButtons()})}),(0,s.default)("[data-grav-editor]").each(function(t,e){returnn.addEditor(e)}),(0,s.default)(function(){r.trigger("grav-editor-ready")}),r.on("mutation._grav",this._onAddedNodes.bind(this)),r.on("mouseup._grav",function(){return!m||(r.unbind("mousemove._grav"),void(m=!1))}),r.on("mousedown._grav",".grav-editor-resizer",function(t){t&&t.preventDefault(),m=!0;vare=(0,s.default)(t.currentTarget),n=e.siblings(".grav-editor-content"),i=n.find(".CodeMirror"),a=n.find("textarea").data("codemirror");r.on("mousemove._grav",function(t){i.css("height",Math.max(100,t.pageY-n.offset().top)),a.refresh()})})}returna(t,[{key:"addButton",value:function(t,e){if(e&&(e.before||e.after)){varn=this.buttons.navigation.findIndex(function(t){varn=Object.keys(t).shift();returnt[n].identifier===(e.before||e.after)});~n?this.buttons.navigation.splice(e.before?n:n+1,0,t):e="end"}"start"===e&&this.buttons.navigation.splice(0,0,t),e&&"end"!==e||this.buttons.navigation.push(t)}},{key:"addEditor",value:function(t){t=(0,s.default)(t);vare=Object.assign({},this.options.codemirror,t.data("grav-editor").codemirror),n=e.theme||"paper";if(this.editors=this.editors.add(t),n&&!~v.indexOf(n)){v.push(n);varr="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/theme/"+n+".min.css";(0,s.default)("head").append((0,s.default)('<link rel="stylesheet" type="text/css" />').attr("href",r))}"yaml"===e.mode&&Object.assign(e.extraKeys,{Tab:function(t){t.replaceSelection(" ","end")}});vari=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(){returni.save()})}},{key:"_onAddedNodes",value:function(t,e){varn=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(){functiont(e){i(this,t),this.editor=(0,s.default)(e),this.codemirror=this.editor.data("codemirror"),this.buttons=u.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()}returna(t,null,[{key:"templates",value:function(){return{navigation:'\n <div class="grav-editor-toolbar">\n <div class="grav-editor-actions"></div>\n <div class="grav-editor-modes"></div>\n </div>\n '}}}]),a(t,[{key:"renderButtons",value:function(){vart=this,e={actions:"navigation",modes:"states"};["actions","modes"].forEach(function(n){t.ui.navigation.find(".grav-editor-"+n).empty().append("<ul />"),u.default[e[n]].forEach(function(e){returnt.renderButton(e,n)})})
vare=(0,s.default)(t.currentTarget),n=(0,s.default)(e.closest('[data-type="collection"]')).find('> ul > [data-collection-item] > .item-actions [data-action="expand"]');n.click()}},{key:"expandItem",value:function(t){vare=(0,s.default)(t.currentTarget),n=e.closest("[data-collection-item]");e.attr("data-action","collapse").removeClass("fa-chevron-circle-right").addClass("fa-chevron-circle-down"),n.removeClass("collection-collapsed")}},{key:"sortItems",value:function(t){vare=(0,s.default)(t.currentTarget),n=e.data("action-sort"),r=e.data("action-sort-dir")||"asc",i=(0,s.default)(e.closest('[data-type="collection"]')),a=i.closest('[data-type="collection"]').find("> ul > [data-collection-item]");a.sort(function(t,e){vari=(0,s.default)(t).find('[name$="['+n+']"]'),a=(0,s.default)(e).find('[name$="['+n+']"]'),o=void0;returno="asc"===r?i.val()<a.val()?-1:i.val()>a.val()?1:0:i.val()>a.val()?-1:i.val()<a.val()?1:0}).each(function(t,e){(0,s.default)(e).parent().append(e)}),this.reindex(i)}},{key:"observeKey",value:function(t){vare=(0,s.default)(t.target),n=e.val(),r=e.closest("[data-collection-key]");r.data("collection-key-backup",r.data("collection-key")).data("collection-key",n),this.reindex(null,r)}},{key:"reindex",value:function(t,e){e=e||(0,s.default)(t).closest('[data-type="collection"]').find("> ul > [data-collection-item]"),e.each(function(t,e){e=(0,s.default)(e);varn=e.find("[data-key-observe]"),r=n.val(),i=n.length,a=e.data("collection-key-backup");e.attr("data-collection-key",i?r:t),["name","data-grav-field-name","for","id","data-grav-file-settings"].forEach(function(t){e.find("["+t+"], [_"+t+"]").each(function(){vare=(0,s.default)(this),n=[],o=[newRegExp("\\[(\\d+|\\*|"+a+")\\]","g"),newRegExp("\\.(\\d+|\\*|"+a+")\\.","g")];if(i&&!r)returne.attr("_"+t,e.attr(t)),voide.attr(t,null);e.attr("_"+t)&&(e.attr(t,e.attr("_"+t)),e.attr("_"+t,null)),e.parents("[data-collection-key]").map(function(t,e){returnn.push((0,s.default)(e).attr("data-collection-key"))}),n.reverse();varl=a,u=e.attr(t).replace(o[0],function(){returnl=n.shift()||l,"["+l+"]"});u=u.replace(o[1],function(){returnl=n.shift()||l,"."+l+"."}),e.attr(t,u)})})})}},{key:"_onAddedNodes",value:function(t,e){varn=this,r=(0,s.default)(e).find('[data-type="collection"]');r.length&&r.each(function(t,e){e=(0,s.default)(e),~n.lists.index(e)||n.addList(e)})}},{key:"_updateActionsStateBasedOnMinMax",value:function(t){vare=t.closest('[data-type="collection"]').find("> ul > [data-collection-item]"),n=t.data("min"),r=t.data("max");t.find('> .collection-actions [data-action="add"]').attr("disabled",!1),t.find('> ul > li > .item-actions [data-action="delete"]').attr("disabled",!1),"undefined"!=typeofn&&e.length<=n&&t.find('> ul > li > .item-actions [data-action="delete"]').attr("disabled",!0),"undefined"!=typeofr&&e.length>=r&&t.find('> .collection-actions [data-action="add"]').attr("disabled",!0)}}]),t}();e.default=c;e.Instance=newc},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void0;vara=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(1),s=r(o),l=n(306);n(439);varu=function(){functiont(e){varn=this;i(this,t),this.items=(0,s.default)(),this.options=Object.assign({},this.defaults,e),(0,s.default)("[data-grav-datetime]").each(function(t,e){returnn.addItem(e)}),(0,s.default)("body").on("mutation._grav",this._onAddedNodes.bind(this))}returna(t,[{key:"defaults",get:function(){return{showTodayButton:!0,showClear:!0,locale:l.config.language||"en",icons:{time:"fa fa-clock-o",date:"fa fa-calendar-o",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-bullseye",clear:"fa fa-trash-o",close:"fa fa-remove"}}}}]),a(t,[{k
!function(e,n){t.exports=n()}(this,function(){"use strict";functiont(t){vare=typeoft;returnnull!==t&&("object"===e||"function"===e)}functioni(t){return"function"==typeoft}functiona(t){Y=t}functiono(t){J=t}functions(){returnfunction(){returne.nextTick(d)}}functionl(){return"undefined"!=typeof$?function(){$(d)}:f()}functionu(){vart=0,e=newZ(d),n=document.createTextNode("");returne.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}functionc(){vart=newMessageChannel;returnt.port1.onmessage=d,function(){returnt.port2.postMessage(0)}}functionf(){vart=setTimeout;returnfunction(){returnt(d,1)}}functiond(){for(vart=0;t<W;t+=2){vare=nt[t],n=nt[t+1];e(n),nt[t]=void0,nt[t+1]=void0}W=0}functionp(){try{vart=n(559);return$=t.runOnLoop||t.runOnContext,l()}catch(t){returnf()}}functionh(t,e){varn=arguments,r=this,i=newthis.constructor(v);void0===i[it]&&D(i);vara=r._state;returna?!function(){vart=n[a-1];J(function(){returnP(a,i,t,r._result)})}():M(r,i,t,e),i}functionm(t){vare=this;if(t&&"object"==typeoft&&t.constructor===e)returnt;varn=newe(v);returnS(n,t),n}functionv(){}functiong(){returnnewTypeError("You cannot resolve a promise with itself")}functiony(){returnnewTypeError("A promises callback cannot return that same promise.")}function_(t){try{returnt.then}catch(t){returnlt.error=t,lt}}functionb(t,e,n,r){try{t.call(e,n,r)}catch(t){returnt}}functionw(t,e,n){J(function(t){varr=!1,i=b(n,e,function(n){r||(r=!0,e!==n?S(t,n):E(t,n))},function(e){r||(r=!0,I(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,I(t,i))},t)}functionx(t,e){e._state===ot?E(t,e._result):e._state===st?I(t,e._result):M(e,void0,function(e){returnS(t,e)},function(e){returnI(t,e)})}functionk(t,e,n){e.constructor===t.constructor&&n===h&&e.constructor.resolve===m?x(t,e):n===lt?(I(t,lt.error),lt.error=null):void0===n?E(t,e):i(n)?w(t,e,n):E(t,e)}functionS(e,n){e===n?I(e,g()):t(n)?k(e,n,_(n)):E(e,n)}functionA(t){t._onerror&&t._onerror(t._result),O(t)}functionE(t,e){t._state===at&&(t._result=e,t._state=ot,0!==t._subscribers.length&&J(O,t))}functionI(t,e){t._state===at&&(t._state=st,t._result=e,J(A,t))}functionM(t,e,n,r){vari=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+ot]=n,i[a+st]=r,0===a&&t._state&&J(O,t)}functionO(t){vare=t._subscribers,n=t._state;if(0!==e.length){for(varr=void0,i=void0,a=t._result,o=0;o<e.length;o+=3)r=e[o],i=e[o+n],r?P(n,r,i,a):i(a);t._subscribers.length=0}}functionC(){this.error=null}functionj(t,e){try{returnt(e)}catch(t){returnut.error=t,ut}}functionP(t,e,n,r){vara=i(n),o=void0,s=void0,l=void0,u=void0;if(a){if(o=j(n,r),o===ut?(u=!0,s=o.error,o.error=null):l=!0,e===o)returnvoidI(e,y())}elseo=r,l=!0;e._state!==at||(a&&l?S(e,o):u?I(e,s):t===ot?E(e,o):t===st&&I(e,o))}functionT(t,e){try{e(function(e){S(t,e)},function(e){I(t,e)})}catch(e){I(t,e)}}functionz(){returnct++}functionD(t){t[it]=ct++,t._state=void0,t._result=void0,t._subscribers=[]}functionL(t,e){this._instanceConstructor=t,this.promise=newt(v),this.promise[it]||D(this.promise),K(e)?(this.length=e.length,this._remaining=e.length,this._result=newArray(this.length),0===this.length?E(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&E(this.promise,this._result))):I(this.promise,N())}functionN(){returnnewError("Array Methods must be provided an Array")}functionF(t){returnnewL(this,t).promise}functionq(t){vare=this;returnnewe(K(t)?function(n,r){for(vari=t.length,a=0;a<i;a++)e.resolve(t[a]).then(n,r)}:function(t,e){returne(newTypeError("You must pass an array to race."))})}functionU(t){vare=this,n=newe(v);returnI(n,t),n}functionR(){thrownewTypeError("You must pass a resolver function as the first argument to the promise constructor")}functionB(){thrownewTypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}functionV(t){this[it]=z(),this._result=this._state=void0,this._subscribers=[],v!==t&&("function"!=typeoft&&R(),thisinstanceofV?
toStringTag:s("",r&&r.toStringTag||i("toStringTag")),unscopables:s("",r&&r.unscopables||i("unscopables"))}),c(a.prototype,{constructor:s(i),toString:s("",function(){returnthis.__name__})}),c(i.prototype,{toString:s(function(){return"Symbol ("+l(this).__description__+")"}),valueOf:s(function(){returnl(this)})}),f(i.prototype,i.toPrimitive,s("",function(){vart=l(this);return"symbol"==typeoft?t:t.toString()})),f(i.prototype,i.toStringTag,s("c","Symbol")),f(a.prototype,i.toStringTag,s("c",i.prototype[i.toStringTag])),f(a.prototype,i.toPrimitive,s("c",i.prototype[i.toPrimitive]))},function(t,e,n){"use strict";varr=n(613);t.exports=function(t){if(!r(t))thrownewTypeError(t+" is not a symbol");returnt}},function(t,e){"use strict";t.exports=function(t){return!!t&&("symbol"==typeoft||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))}},function(t,e,n){"use strict";varr=n(615);t.exports=function(t){if(!r(t))thrownewTypeError(t+" is not iterable");returnt}},function(t,e,n){"use strict";varr=n(616),i=n(617),a=n(609).iterator,o=Array.isArray;t.exports=function(t){returnnull!=t&&(!!o(t)||(!!i(t)||(!!r(t)||"function"==typeoft[a])))}},function(t,e){"use strict";varn=Object.prototype.toString,r=n.call(function(){returnarguments}());t.exports=function(t){returnn.call(t)===r}},function(t,e){"use strict";varn=Object.prototype.toString,r=n.call("");t.exports=function(t){return"string"==typeoft||t&&"object"==typeoft&&(tinstanceofString||n.call(t)===r)||!1}},function(t,e,n){"use strict";varr=n(616),i=n(595),a=n(617),o=n(619),s=Array.isArray,l=Function.prototype.call,u=Array.prototype.some;t.exports=function(t,e){varn,c,f,d,p,h,m,v,g=arguments[2];if(s(t)||r(t)?n="array":a(t)?n="string":t=o(t),i(e),f=function(){d=!0},"array"===n)returnvoidu.call(t,function(t){if(l.call(e,g,t,f),d)return!0});if("string"!==n)for(c=t.next();!c.done;){if(l.call(e,g,c.value,f),d)return;c=t.next()}elsefor(h=t.length,p=0;p<h&&(m=t[p],p+1<h&&(v=m.charCodeAt(0),v>=55296&&v<=56319&&(m+=t[++p])),l.call(e,g,m,f),!d);++p);}},function(t,e,n){"use strict";varr=n(616),i=n(617),a=n(620),o=n(649),s=n(614),l=n(609).iterator;t.exports=function(t){return"function"==typeofs(t)[l]?t[l]():r(t)?newa(t):i(t)?newo(t):newa(t)}},function(t,e,n){"use strict";varr,i=n(590),a=n(605),o=n(596),s=n(621),l=Object.defineProperty;r=t.exports=function(t,e){returnthisinstanceofr?(s.call(this,t),e=e?a.call(e,"key+value")?"key+value":a.call(e,"key")?"key":"value":"value",voidl(this,"__kind__",o("",e))):newr(t,e)},i&&i(r,s),r.prototype=Object.create(s.prototype,{constructor:o(r),_resolve:o(function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}),toString:o(function(){return"[object Array Iterator]"})})},function(t,e,n){"use strict";varr,i=n(577),a=n(597),o=n(595),s=n(578),l=n(596),u=n(622),c=n(609),f=Object.defineProperty,d=Object.defineProperties;t.exports=r=function(t,e){returnthisinstanceofr?(d(this,{__list__:l("w",s(t)),__context__:l("w",e),__nextIndex__:l("w",0)}),void(e&&(o(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear)))):newr(t,e)},d(r.prototype,a({constructor:l(r),_next:l(function(){vart;if(this.__list__)returnthis.__redo__&&(t=this.__redo__.shift(),void0!==t)?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:voidthis._unBind()}),next:l(function(){returnthis._createResult(this._next())}),_createResult:l(function(t){returnvoid0===t?{done:!0,value:void0}:{done:!1,value:this._resolve(t)}}),_resolve:l(function(t){returnthis.__list__[t]}),_unBind:l(function(){this.__list__=null,deletethis.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:l(function(){return"[object Iterator]"})},u({_onAdd:l(function(t){if(!(t>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)returnvoidf(this,"__redo__",l("c",[t]));this.__redo__.forEach(function(e,n){e>=t&&(th