]> BookStack Code Mirror - bookstack/commitdiff
Updated assets and version for v0.18.1 release v0.18.1
authorDan Brown <redacted>
Wed, 20 Sep 2017 20:36:17 +0000 (21:36 +0100)
committerDan Brown <redacted>
Wed, 20 Sep 2017 20:36:17 +0000 (21:36 +0100)
public/js/common.js
version

index 8bca924bb353edb8a63ae7e35d11b44f23e5981d..db4d9fbda71858a42f8b0073fbe1d8df82b5917f 100644 (file)
@@ -30,5 +30,5 @@ months:0}}function Wt(e,t){return function(n,r){var i,o;return null===r||isNaN(+
 ;if(d(e)&&(e=o.extend(e)),"function"==typeof e){if(!e.cid)if(e.resolved)e=e.resolved;else if(!(e=Oe(e,o,function(){n.$forceUpdate()})))return;tt(e),t=t||{},t.model&&Ie(e.options,t);var a=je(t,e,i);if(e.options.functional)return De(e,a,t,n,r);var s=t.on;t.on=t.nativeOn,e.options.abstract&&(t={}),Pe(t);var l=e.options.name||i;return new io("vue-component-"+e.cid+(l?"-"+l:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:a,listeners:s,tag:i,children:r})}}}function De(e,t,n,r,i){var o={},a=e.options.props;if(a)for(var s in a)o[s]=q(s,a,t);var l=Object.create(r),c=function(e,t,n,r){return qe(l,e,t,n,r,!0)},u=e.options.render.call(null,c,{props:o,data:n,parent:r,children:i,slots:function(){return ie(i,r)}});return u instanceof io&&(u.functionalContext=r,n.slot&&((u.data||(u.data={})).slot=n.slot)),u}function Le(e,t,n,r){var i=e.componentOptions,o={_isComponent:!0,parent:t,propsData:i.propsData,_componentTag:i.tag,_parentVnode:e,_parentListeners:i.listeners,_renderChildren:i.children,_parentElm:n||null,_refElm:r||null},a=e.data.inlineTemplate;return a&&(o.render=a.render,o.staticRenderFns=a.staticRenderFns),new i.Ctor(o)}function Oe(e,t,n){if(!e.requested){e.requested=!0;var r=e.pendingCallbacks=[n],i=!0,o=function(n){if(d(n)&&(n=t.extend(n)),e.resolved=n,!i)for(var o=0,a=r.length;o<a;o++)r[o](n)},a=function(e){},s=e(o,a);return s&&"function"==typeof s.then&&!e.resolved&&s.then(o,a),i=!1,e.resolved}e.pendingCallbacks.push(n)}function je(e,t,n){var r=t.options.props;if(r){var i={},o=e.attrs,a=e.props,s=e.domProps;if(o||a||s)for(var l in r){var c=Si(l);Fe(i,a,l,c,!0)||Fe(i,o,l,c)||Fe(i,s,l,c)}return i}}function Fe(e,t,n,r,i){if(t){if(a(t,n))return e[n]=t[n],i||delete t[n],!0;if(a(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Pe(e){e.hook||(e.hook={});for(var t=0;t<wo.length;t++){var n=wo[t],r=e.hook[n],i=xo[n];e.hook[n]=r?Ne(i,r):i}}function Ne(e,t){return function(n,r,i,o){e(n,r,i,o),t(n,r,i,o)}}function Ie(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});i[r]?i[r]=[t.model.callback].concat(i[r]):i[r]=t.model.callback}function qe(e,t,n,r,i,o){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o&&(i=$o),ze(e,t,n,r,i)}function ze(e,t,n,r,i){if(n&&n.__ob__)return so();if(!t)return so();Array.isArray(r)&&"function"==typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===$o?r=J(r):i===ko&&(r=K(r));var o,a;if("string"==typeof t){var s;a=Di.getTagNamespace(t),o=Di.isReservedTag(t)?new io(Di.parsePlatformTagName(t),n,r,void 0,void 0,e):(s=I(e.$options,"components",t))?Me(s,n,e,r,t):new io(t,n,r,void 0,void 0,e)}else o=Me(t,n,e,r);return o?(a&&Re(o,a),o):so()}function Re(e,t){if(e.ns=t,"foreignObject"!==e.tag&&e.children)for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];i.tag&&!i.ns&&Re(i,t)}}function Ue(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(d(e))for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return n}function Be(e,t,n,r){var i=this.$scopedSlots[e];if(i)return n=n||{},r&&f(n,r),i(n)||t;var o=this.$slots[e];return o||t}function He(e){return I(this.$options,"filters",e,!0)||Mi}function We(e,t,n){var r=Di.keyCodes[t]||n;return Array.isArray(r)?-1===r.indexOf(e):r!==e}function Ve(e,t,n,r){if(n)if(d(n)){Array.isArray(n)&&(n=h(n));var i;for(var o in n){if("class"===o||"style"===o)i=e;else{var a=e.attrs&&e.attrs.type;i=r||Di.mustUseProp(t,a,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}o in i||(i[o]=n[o])}}else;return e}function Ye(e,t){var n=this._staticTrees[e];return n&&!t?Array.isArray(n)?V(n):W(n):(n=this._staticTrees[e]=this.$options.staticRenderFns[e].call(this._renderProxy),Ze(n,"__static__"+e,!1),n)}function Ge(e,t,n){return Ze(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ze(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Ke(e[r],t+"_"+r,n);else Ke(e,t,n)}function Ke(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Je(e){e.$vnode=null,e._vnode=null,e._staticTrees=null;var t=e.$options._parentVnode,n=t&&t.context;e.$slots=ie(e.$options._renderChildren,n),e.$scopedSlots=Li,e._c=function(t,n,r,i){return qe(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return qe(e,t,n,r,i,!0)}}function Xe(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function Qe(e){var t=e.$options.inject;if(t)for(var n=Array.isArray(t),r=n?t:Wi?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++)!function(i){for(var o=r[i],a=n?o:t[o],s=e;s;){if(s._provided&&a in s._provided){T(e,o,s._provided[a]);break}s=s.$parent}}(i)}function et(e,t){var n=e.$options=Object.create(e.constructor.options);n.parent=t.parent,n.propsData=t.propsData,n._parentVnode=t._parentVnode,n._parentListeners=t._parentListeners,n._renderChildren=t._renderChildren,n._componentTag=t._componentTag,n._parentElm=t._parentElm,n._refElm=t._refElm,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function tt(e){var t=e.options;if(e.super){var n=tt(e.super);if(n!==e.superOptions){e.superOptions=n;var r=nt(e);r&&f(e.extendOptions,r),t=e.options=N(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function nt(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=rt(n[i],r[i]));return t}function rt(e,t){if(Array.isArray(e)){var n=[];t=Array.isArray(t)?t:[t];for(var r=0;r<e.length;r++)t.indexOf(e[r])<0&&n.push(e[r]);return n}return e}function it(e){this._init(e)}function ot(e){e.use=function(e){if(!e.installed){var t=u(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):"function"==typeof e&&e.apply(null,t),e.installed=!0,this}}}function at(e){e.mixin=function(e){this.options=N(this.options,e)}}function st(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=N(n.options,e),a.super=n,a.options.props&&lt(a),a.options.computed&&ct(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Di._assetTypes.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=f({},a.options),i[r]=a,a}}function lt(e){var t=e.options.props;for(var n in t)_e(e.prototype,"_props",n)}function ct(e){var t=e.options.computed;for(var n in t)Ce(e.prototype,n,t[n])}function ut(e){Di._assetTypes.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&p(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function ft(e){return e&&(e.Ctor.options.name||e.tag)}function dt(e,t){return"string"==typeof e?e.split(",").indexOf(t)>-1:e instanceof RegExp&&e.test(t)}function pt(e,t){for(var n in e){var r=e[n];if(r){var i=ft(r.componentOptions);i&&!t(i)&&(ht(r),e[n]=null)}}}function ht(e){e&&(e.componentInstance._inactive||pe(e.componentInstance,"deactivated"),e.componentInstance.$destroy())}function mt(e){for(var t=e.data,n=e,r=e;r.componentInstance;)r=r.componentInstance._vnode,r.data&&(t=gt(r.data,t));for(;n=n.parent;)n.data&&(t=gt(t,n.data));return vt(t)}function gt(e,t){return{staticClass:yt(e.staticClass,t.staticClass),class:e.class?[e.class,t.class]:t.class}}function vt(e){var t=e.class,n=e.staticClass;return n||t?yt(n,_t(t)):""}function yt(e,t){return e?t?e+" "+t:e:t||""}function _t(e){var t="";if(!e)return t;if("string"==typeof e)return e;if(Array.isArray(e)){for(var n,r=0,i=e.length;r<i;r++)e[r]&&(n=_t(e[r]))&&(t+=n+" ");return t.slice(0,-1)}if(d(e)){for(var o in e)e[o]&&(t+=o+" ");return t.slice(0,-1)}return t}function bt(e){return Go(e)?"svg":"math"===e?"math":void 0}function xt(e){if(!Fi)return!0;if(Ko(e))return!1;if(e=e.toLowerCase(),null!=Jo[e])return Jo[e];var t=document.createElement(e);return e.indexOf("-")>-1?Jo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Jo[e]=/HTMLUnknownElement/.test(t.toString())}function wt(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function kt(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function $t(e,t){return document.createElementNS(Vo[e],t)}function Ct(e){return document.createTextNode(e)}function St(e){return document.createComment(e)}function Et(e,t,n){e.insertBefore(t,n)}function Tt(e,t){e.removeChild(t)}function At(e,t){e.appendChild(t)}function Mt(e){return e.parentNode}function Dt(e){return e.nextSibling}function Lt(e){return e.tagName}function Ot(e,t){e.textContent=t}function jt(e,t,n){e.setAttribute(t,n)}function Ft(e,t){var n=e.data.ref;if(n){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?o(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])&&a[n].indexOf(i)<0?a[n].push(i):a[n]=[i]:a[n]=i}}function Pt(e){return void 0===e||null===e}function Nt(e){return void 0!==e&&null!==e}function It(e){return!0===e}function qt(e,t){return e.key===t.key&&e.tag===t.tag&&e.isComment===t.isComment&&Nt(e.data)===Nt(t.data)&&zt(e,t)}function zt(e,t){if("input"!==e.tag)return!0;var n;return(Nt(n=e.data)&&Nt(n=n.attrs)&&n.type)===(Nt(n=t.data)&&Nt(n=n.attrs)&&n.type)}function Rt(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,Nt(i)&&(o[i]=r);return o}function Ut(e,t){(e.data.directives||t.data.directives)&&Bt(e,t)}function Bt(e,t){var n,r,i,o=e===ea,a=t===ea,s=Ht(e.data.directives,e.context),l=Ht(t.data.directives,t.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,Vt(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(Vt(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var f=function(){for(var n=0;n<c.length;n++)Vt(c[n],"inserted",t,e)};o?Z(t.data.hook||(t.data.hook={}),"insert",f):f()}if(u.length&&Z(t.data.hook||(t.data.hook={}),"postpatch",function(){for(var n=0;n<u.length;n++)Vt(u[n],"componentUpdated",t,e)}),!o)for(n in s)l[n]||Vt(s[n],"unbind",e,e,a)}function Ht(e,t){var n=Object.create(null);if(!e)return n;var r,i;for(r=0;r<e.length;r++)i=e[r],i.modifiers||(i.modifiers=ra),n[Wt(i)]=i,i.def=I(t.$options,"directives",i.name,!0);return n}function Wt(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Vt(e,t,n,r,i){var o=e.def&&e.def[t];o&&o(n.elm,e,n,r,i)}function Yt(e,t){if(e.data.attrs||t.data.attrs){var n,r,i=t.elm,o=e.data.attrs||{},a=t.data.attrs||{};a.__ob__&&(a=t.data.attrs=f({},a));for(n in a)r=a[n],o[n]!==r&&Gt(i,n,r);Ii&&a.value!==o.value&&Gt(i,"value",a.value);for(n in o)null==a[n]&&(Bo(n)?i.removeAttributeNS(Uo,Ho(n)):zo(n)||i.removeAttribute(n))}}function Gt(e,t,n){Ro(t)?Wo(n)?e.removeAttribute(t):e.setAttribute(t,t):zo(t)?e.setAttribute(t,Wo(n)||"false"===n?"false":"true"):Bo(t)?Wo(n)?e.removeAttributeNS(Uo,Ho(t)):e.setAttributeNS(Uo,t,n):Wo(n)?e.removeAttribute(t):e.setAttribute(t,n)}function Zt(e,t){var n=t.elm,r=t.data,i=e.data;if(r.staticClass||r.class||i&&(i.staticClass||i.class)){var o=mt(t),a=n._transitionClasses;a&&(o=yt(o,_t(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}function Kt(e){function t(){(a||(a=[])).push(e.slice(h,i).trim()),h=i+1}var n,r,i,o,a,s=!1,l=!1,c=!1,u=!1,f=0,d=0,p=0,h=0;for(i=0;i<e.length;i++)if(r=n,n=e.charCodeAt(i),s)39===n&&92!==r&&(s=!1);else if(l)34===n&&92!==r&&(l=!1);else if(c)96===n&&92!==r&&(c=!1);else if(u)47===n&&92!==r&&(u=!1);else if(124!==n||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||f||d||p){switch(n){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:f++;break;case 125:f--}if(47===n){for(var m=i-1,g=void 0;m>=0&&" "===(g=e.charAt(m));m--);g&&sa.test(g)||(u=!0)}}else void 0===o?(h=i+1,o=e.slice(0,i).trim()):t();if(void 0===o?o=e.slice(0,i).trim():0!==h&&t(),a)for(i=0;i<a.length;i++)o=Jt(o,a[i]);return o}function Jt(e,t){var n=t.indexOf("(");return n<0?'_f("'+t+'")('+e+")":'_f("'+t.slice(0,n)+'")('+e+","+t.slice(n+1)}function Xt(e){console.error("[Vue compiler]: "+e)}function Qt(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function en(e,t,n){(e.props||(e.props=[])).push({name:t,value:n})}function tn(e,t,n){(e.attrs||(e.attrs=[])).push({name:t,value:n})}function nn(e,t,n,r,i,o){(e.directives||(e.directives=[])).push({name:t,rawName:n,value:r,arg:i,modifiers:o})}function rn(e,t,n,r,i){r&&r.capture&&(delete r.capture,t="!"+t),r&&r.once&&(delete r.once,t="~"+t);var o;r&&r.native?(delete r.native,o=e.nativeEvents||(e.nativeEvents={})):o=e.events||(e.events={});var a={value:n,modifiers:r},s=o[t];Array.isArray(s)?i?s.unshift(a):s.push(a):o[t]=s?i?[a,s]:[s,a]:a}function on(e,t,n){var r=an(e,":"+t)||an(e,"v-bind:"+t);if(null!=r)return Kt(r);if(!1!==n){var i=an(e,t);if(null!=i)return JSON.stringify(i)}}function an(e,t){var n;if(null!=(n=e.attrsMap[t]))for(var r=e.attrsList,i=0,o=r.length;i<o;i++)if(r[i].name===t){r.splice(i,1);break}return n}function sn(e,t,n){var r=n||{},i=r.number,o=r.trim,a="$$v";o&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(a="_n("+a+")");var s=ln(t,a);e.model={value:"("+t+")",expression:'"'+t+'"',callback:"function ($$v) {"+s+"}"}}function ln(e,t){var n=cn(e);return null===n.idx?e+"="+t:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+e+"="+t+"}else{$$exp.splice($$idx, 1, "+t+")}"}function cn(e){if(Mo=e,Ao=Mo.length,Lo=Oo=jo=0,e.indexOf("[")<0||e.lastIndexOf("]")<Ao-1)return{exp:e,idx:null};for(;!fn();)Do=un(),dn(Do)?hn(Do):91===Do&&pn(Do);return{exp:e.substring(0,Oo),idx:e.substring(Oo+1,jo)}}function un(){return Mo.charCodeAt(++Lo)}function fn(){return Lo>=Ao}function dn(e){return 34===e||39===e}function pn(e){var t=1;for(Oo=Lo;!fn();)if(e=un(),dn(e))hn(e);else if(91===e&&t++,93===e&&t--,0===t){jo=Lo;break}}function hn(e){for(var t=e;!fn()&&(e=un())!==t;);}function mn(e,t,n){Fo=n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if("select"===o)yn(e,r,i);else if("input"===o&&"checkbox"===a)gn(e,r,i);else if("input"===o&&"radio"===a)vn(e,r,i);else if("input"===o||"textarea"===o)_n(e,r,i);else if(!Di.isReservedTag(o))return sn(e,r,i),!1;return!0}function gn(e,t,n){var r=n&&n.number,i=on(e,"value")||"null",o=on(e,"true-value")||"true",a=on(e,"false-value")||"false";en(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),rn(e,ca,"var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+t+"=$$a.concat($$v))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+t+"=$$c}",null,!0)}function vn(e,t,n){var r=n&&n.number,i=on(e,"value")||"null";i=r?"_n("+i+")":i,en(e,"checked","_q("+t+","+i+")"),rn(e,ca,ln(t,i),null,!0)}function yn(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="var $$selectedVal = "+i+";";o=o+" "+ln(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),rn(e,"change",o,null,!0)}function _n(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,c=o?"change":"range"===r?la:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=ln(t,u);l&&(f="if($event.target.composing)return;"+f),en(e,"value","("+t+")"),rn(e,c,f,null,!0),(s||a||"number"===r)&&rn(e,"blur","$forceUpdate()")}function bn(e){var t;e[la]&&(t=Ni?"change":"input",e[t]=[].concat(e[la],e[t]||[]),delete e[la]),e[ca]&&(t=Ui?"click":"change",e[t]=[].concat(e[ca],e[t]||[]),delete e[ca])}function xn(e,t,n,r){if(n){var i=t,o=Po;t=function(n){null!==(1===arguments.length?i(n):i.apply(null,arguments))&&wn(e,t,r,o)}}Po.addEventListener(e,t,r)}function wn(e,t,n,r){(r||Po).removeEventListener(e,t,n)}function kn(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};Po=t.elm,bn(n),G(n,r,xn,wn,t.context)}}function $n(e,t){if(e.data.domProps||t.data.domProps){var n,r,i=t.elm,o=e.data.domProps||{},a=t.data.domProps||{};a.__ob__&&(a=t.data.domProps=f({},a));for(n in o)null==a[n]&&(i[n]="");for(n in a)if(r=a[n],"textContent"!==n&&"innerHTML"!==n||(t.children&&(t.children.length=0),r!==o[n]))if("value"===n){i._value=r;var s=null==r?"":String(r);Cn(i,t,s)&&(i.value=s)}else i[n]=r}}function Cn(e,t,n){return!e.composing&&("option"===t.tag||Sn(e,n)||En(e,n))}function Sn(e,t){return document.activeElement!==e&&e.value!==t}function En(e,t){var n=e.value,i=e._vModifiers;return i&&i.number||"number"===e.type?r(n)!==r(t):i&&i.trim?n.trim()!==t.trim():n!==t}function Tn(e){var t=An(e.style);return e.staticStyle?f(e.staticStyle,t):t}function An(e){return Array.isArray(e)?h(e):"string"==typeof e?da(e):e}function Mn(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)i=i.componentInstance._vnode,i.data&&(n=Tn(i.data))&&f(r,n);(n=Tn(e.data))&&f(r,n);for(var o=e;o=o.parent;)o.data&&(n=Tn(o.data))&&f(r,n);return r}function Dn(e,t){var n=t.data,r=e.data;if(n.staticStyle||n.style||r.staticStyle||r.style){var i,o,a=t.elm,s=e.data.staticStyle,l=e.data.style||{},c=s||l,u=An(t.data.style)||{};t.data.style=u.__ob__?f({},u):u;var d=Mn(t,!0);for(o in c)null==d[o]&&ma(a,o,"");for(o in d)(i=d[o])!==c[o]&&ma(a,o,null==i?"":i)}}function Ln(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function On(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function jn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&f(t,_a(e.name||"v")),f(t,e),t}return"string"==typeof e?_a(e):void 0}}function Fn(e){Ea(function(){Ea(e)})}function Pn(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),Ln(e,t)}function Nn(e,t){e._transitionClasses&&o(e._transitionClasses,t),On(e,t)}function In(e,t,n){var r=qn(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===xa?$a:Sa,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=a&&c()};setTimeout(function(){l<a&&c()},o+1),e.addEventListener(s,u)}function qn(e,t){var n,r=window.getComputedStyle(e),i=r[ka+"Delay"].split(", "),o=r[ka+"Duration"].split(", "),a=zn(i,o),s=r[Ca+"Delay"].split(", "),l=r[Ca+"Duration"].split(", "),c=zn(s,l),u=0,f=0;return t===xa?a>0&&(n=xa,u=a,f=o.length):t===wa?c>0&&(n=wa,u=c,f=l.length):(u=Math.max(a,c),n=u>0?a>c?xa:wa:null,f=n?n===xa?o.length:l.length:0),{type:n,timeout:u,propCount:f,hasTransform:n===xa&&Ta.test(r[ka+"Property"])}}function zn(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return Rn(t)+Rn(e[n])}))}function Rn(e){return 1e3*Number(e.slice(0,-1))}function Un(e,t){var n=e.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=jn(e.data.transition);if(i&&!n._enterCb&&1===n.nodeType){for(var o=i.css,a=i.type,s=i.enterClass,l=i.enterToClass,c=i.enterActiveClass,u=i.appearClass,f=i.appearToClass,p=i.appearActiveClass,h=i.beforeEnter,m=i.enter,g=i.afterEnter,v=i.enterCancelled,_=i.beforeAppear,b=i.appear,x=i.afterAppear,w=i.appearCancelled,k=i.duration,$=co,C=co.$vnode;C&&C.parent;)C=C.parent,$=C.context;var S=!$._isMounted||!e.isRootInsert;if(!S||b||""===b){var E=S&&u?u:s,T=S&&p?p:c,A=S&&f?f:l,M=S?_||h:h,D=S&&"function"==typeof b?b:m,L=S?x||g:g,O=S?w||v:v,j=r(d(k)?k.enter:k),F=!1!==o&&!Ii,P=Wn(D),N=n._enterCb=y(function(){F&&(Nn(n,A),Nn(n,T)),N.cancelled?(F&&Nn(n,E),O&&O(n)):L&&L(n),n._enterCb=null});e.data.show||Z(e.data.hook||(e.data.hook={}),"insert",function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,N)}),M&&M(n),F&&(Pn(n,E),Pn(n,T),Fn(function(){Pn(n,A),Nn(n,E),N.cancelled||P||(Hn(j)?setTimeout(N,j):In(n,a,N))})),e.data.show&&(t&&t(),D&&D(n,N)),F||P||N()}}}function Bn(e,t){function n(){w.cancelled||(e.data.show||((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),f&&f(i),_&&(Pn(i,l),Pn(i,u),Fn(function(){Pn(i,c),Nn(i,l),w.cancelled||b||(Hn(x)?setTimeout(w,x):In(i,s,w))})),p&&p(i,w),_||b||w())}var i=e.elm;i._enterCb&&(i._enterCb.cancelled=!0,i._enterCb());var o=jn(e.data.transition);if(!o)return t();if(!i._leaveCb&&1===i.nodeType){var a=o.css,s=o.type,l=o.leaveClass,c=o.leaveToClass,u=o.leaveActiveClass,f=o.beforeLeave,p=o.leave,h=o.afterLeave,m=o.leaveCancelled,g=o.delayLeave,v=o.duration,_=!1!==a&&!Ii,b=Wn(p),x=r(d(v)?v.leave:v),w=i._leaveCb=y(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),_&&(Nn(i,c),Nn(i,u)),w.cancelled?(_&&Nn(i,l),m&&m(i)):(t(),h&&h(i)),i._leaveCb=null});g?g(n):n()}}function Hn(e){return"number"==typeof e&&!isNaN(e)}function Wn(e){if(!e)return!1;var t=e.fns;return t?Wn(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Vn(e,t){t.data.show||Un(t)}function Yn(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s<l;s++)if(a=e.options[s],i)o=v(r,Zn(a))>-1,a.selected!==o&&(a.selected=o);else if(g(Zn(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Gn(e,t){for(var n=0,r=t.length;n<r;n++)if(g(Zn(t[n]),e))return!1;return!0}function Zn(e){return"_value"in e?e._value:e.value}function Kn(e){e.target.composing=!0}function Jn(e){e.target.composing=!1,Xn(e.target,"input")}function Xn(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Qn(e){return!e.componentInstance||e.data&&e.data.transition?e:Qn(e.componentInstance._vnode)}function er(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?er(Q(t.children)):e}function tr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[$i(o)]=i[o];return t}function nr(e,t){return/\d-keep-alive$/.test(t.tag)?e("keep-alive"):null}function rr(e){for(;e=e.parent;)if(e.data.transition)return!0}function ir(e,t){return t.key===e.key&&t.tag===e.tag}function or(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ar(e){e.data.newPos=e.elm.getBoundingClientRect()}function sr(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function lr(e){return Ra=Ra||document.createElement("div"),Ra.innerHTML=e,Ra.textContent}function cr(e,t){var n=t?$s:ks;return e.replace(n,function(e){return ws[e]})}function ur(e,t){function n(t){u+=t,e=e.substring(t)}function r(e,n,r){var i,s;if(null==n&&(n=u),null==r&&(r=u),e&&(s=e.toLowerCase()),e)for(i=a.length-1;i>=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var l=a.length-1;l>=i;l--)t.end&&t.end(a[l].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var i,o,a=[],s=t.expectHTML,l=t.isUnaryTag||Ai,c=t.canBeLeftOpenTag||Ai,u=0;e;){if(i=e,o&&bs(o)){var f=o.toLowerCase(),d=xs[f]||(xs[f]=new RegExp("([\\s\\S]*?)(</"+f+"[^>]*>)","i")),p=0,h=e.replace(d,function(e,n,r){return p=r.length,bs(f)||"noscript"===f||(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),t.chars&&t.chars(n),""});u+=e.length-h.length,e=h,r(f,u-p,u)}else{var m=e.indexOf("<");if(0===m){if(Qa.test(e)){var g=e.indexOf("--\x3e");if(g>=0){n(g+3);continue}}if(es.test(e)){var v=e.indexOf("]>");if(v>=0){n(v+2);continue}}var y=e.match(Xa);if(y){n(y[0].length);continue}var _=e.match(Ja);if(_){var b=u;n(_[0].length),r(_[1],b,u);continue}var x=function(){var t=e.match(Za);if(t){var r={tagName:t[1],attrs:[],start:u};n(t[0].length);for(var i,o;!(i=e.match(Ka))&&(o=e.match(Ya));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=u,r}}();if(x){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===o&&Wa(n)&&r(o),c(n)&&o===n&&r(n));for(var u=l(n)||"html"===n&&"head"===o||!!i,f=e.attrs.length,d=new Array(f),p=0;p<f;p++){var h=e.attrs[p];ts&&-1===h[0].indexOf('""')&&(""===h[3]&&delete h[3],""===h[4]&&delete h[4],""===h[5]&&delete h[5]);var m=h[3]||h[4]||h[5]||"";d[p]={name:h[1],value:cr(m,t.shouldDecodeNewlines)}}u||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d}),o=n),t.start&&t.start(n,d,u,e.start,e.end)}(x);continue}}var w=void 0,k=void 0,$=void 0;if(m>=0){for(k=e.slice(m);!(Ja.test(k)||Za.test(k)||Qa.test(k)||es.test(k)||($=k.indexOf("<",1))<0);)m+=$,k=e.slice(m);w=e.substring(0,m),n(m)}m<0&&(w=e,e=""),t.chars&&w&&t.chars(w)}if(e===i){t.chars&&t.chars(e);break}}r()}function fr(e,t){var n=t?Ss(t):Cs;if(n.test(e)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(e);){i=r.index,i>a&&o.push(JSON.stringify(e.slice(a,i)));var s=Kt(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a<e.length&&o.push(JSON.stringify(e.slice(a))),o.join("+")}}function dr(e,t){function n(e){e.pre&&(s=!1),ss(e.tag)&&(l=!1)}ns=t.warn||Xt,cs=t.getTagNamespace||Ai,ls=t.mustUseProp||Ai,ss=t.isPreTag||Ai,os=Qt(t.modules,"preTransformNode"),is=Qt(t.modules,"transformNode"),as=Qt(t.modules,"postTransformNode"),rs=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=!1,l=!1;return ur(e,{warn:ns,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(e,a,c){var u=i&&i.ns||cs(e);Ni&&"svg"===u&&(a=Mr(a));var f={type:1,tag:e,attrsList:a,attrsMap:Tr(a),parent:i,children:[]};u&&(f.ns=u),Ar(f)&&!Bi()&&(f.forbidden=!0);for(var d=0;d<os.length;d++)os[d](f,t);if(s||(pr(f),f.pre&&(s=!0)),ss(f.tag)&&(l=!0),s)hr(f);else{vr(f),yr(f),wr(f),mr(f),f.plain=!f.key&&!a.length,gr(f),kr(f),$r(f);for(var p=0;p<is.length;p++)is[p](f,t);Cr(f)}if(r?o.length||r.if&&(f.elseif||f.else)&&xr(r,{exp:f.elseif,block:f}):r=f,i&&!f.forbidden)if(f.elseif||f.else)_r(f,i);else if(f.slotScope){i.plain=!1;var h=f.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[h]=f}else i.children.push(f),f.parent=i;c?n(f):(i=f,o.push(f));for(var m=0;m<as.length;m++)as[m](f,t)},end:function(){var e=o[o.length-1],t=e.children[e.children.length-1];t&&3===t.type&&" "===t.text&&!l&&e.children.pop(),o.length-=1,i=o[o.length-1],n(e)},chars:function(e){if(i&&(!Ni||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var t=i.children;if(e=l||e.trim()?js(e):a&&t.length?" ":""){var n;!s&&" "!==e&&(n=fr(e,rs))?t.push({type:2,expression:n,text:e}):" "===e&&t.length&&" "===t[t.length-1].text||t.push({type:3,text:e})}}}}),r}function pr(e){null!=an(e,"v-pre")&&(e.pre=!0)}function hr(e){var t=e.attrsList.length;if(t)for(var n=e.attrs=new Array(t),r=0;r<t;r++)n[r]={name:e.attrsList[r].name,value:JSON.stringify(e.attrsList[r].value)};else e.pre||(e.plain=!0)}function mr(e){var t=on(e,"key");t&&(e.key=t)}function gr(e){var t=on(e,"ref");t&&(e.ref=t,e.refInFor=Sr(e))}function vr(e){var t;if(t=an(e,"v-for")){var n=t.match(As);if(!n)return;e.for=n[2].trim();var r=n[1].trim(),i=r.match(Ms);i?(e.alias=i[1].trim(),e.iterator1=i[2].trim(),i[3]&&(e.iterator2=i[3].trim())):e.alias=r}}function yr(e){var t=an(e,"v-if");if(t)e.if=t,xr(e,{exp:t,block:e});else{null!=an(e,"v-else")&&(e.else=!0);var n=an(e,"v-else-if");n&&(e.elseif=n)}}function _r(e,t){var n=br(t.children);n&&n.if&&xr(n,{exp:e.elseif,block:e})}function br(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}function xr(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function wr(e){null!=an(e,"v-once")&&(e.once=!0)}function kr(e){if("slot"===e.tag)e.slotName=on(e,"name");else{var t=on(e,"slot");t&&(e.slotTarget='""'===t?'"default"':t),"template"===e.tag&&(e.slotScope=an(e,"scope"))}}function $r(e){var t;(t=on(e,"is"))&&(e.component=t),null!=an(e,"inline-template")&&(e.inlineTemplate=!0)}function Cr(e){var t,n,r,i,o,a,s,l=e.attrsList;for(t=0,n=l.length;t<n;t++)if(r=i=l[t].name,o=l[t].value,Ts.test(r))if(e.hasBindings=!0,a=Er(r),a&&(r=r.replace(Os,"")),Ls.test(r))r=r.replace(Ls,""),o=Kt(o),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(r=$i(r))&&(r="innerHTML")),a.camel&&(r=$i(r))),s||ls(e.tag,e.attrsMap.type,r)?en(e,r,o):tn(e,r,o);else if(Es.test(r))r=r.replace(Es,""),rn(e,r,o,a);else{r=r.replace(Ts,"");var c=r.match(Ds),u=c&&c[1];u&&(r=r.slice(0,-(u.length+1))),nn(e,r,i,o,u,a)}else{tn(e,r,JSON.stringify(o))}}function Sr(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}function Er(e){var t=e.match(Os);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function Tr(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}function Ar(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}function Mr(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Fs.test(r.name)||(r.name=r.name.replace(Ps,""),t.push(r))}return t}function Dr(e,t){e&&(us=Ns(t.staticKeys||""),fs=t.isReservedTag||Ai,Or(e),jr(e,!1))}function Lr(e){return i("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))}function Or(e){if(e.static=Pr(e),1===e.type){if(!fs(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];Or(r),r.static||(e.static=!1)}}}function jr(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)jr(e.children[n],t||!!e.for);e.ifConditions&&Fr(e.ifConditions,t)}}function Fr(e,t){for(var n=1,r=e.length;n<r;n++)jr(e[n].block,t)}function Pr(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||wi(e.tag)||!fs(e.tag)||Nr(e)||!Object.keys(e).every(us))))}function Nr(e){for(;e.parent;){if(e=e.parent,"template"!==e.tag)return!1;if(e.for)return!0}return!1}function Ir(e,t){var n=t?"nativeOn:{":"on:{";for(var r in e)n+='"'+r+'":'+qr(r,e[r])+",";return n.slice(0,-1)+"}"}function qr(e,t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return qr(e,t)}).join(",")+"]";var n=qs.test(t.value),r=Is.test(t.value);if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)Us[s]?(o+=Us[s],zs[s]&&a.push(s)):a.push(s);a.length&&(i+=zr(a)),o&&(i+=o);return"function($event){"+i+(n?t.value+"($event)":r?"("+t.value+")($event)":t.value)+"}"}return n||r?t.value:"function($event){"+t.value+"}"}function zr(e){return"if(!('button' in $event)&&"+e.map(Rr).join("&&")+")return null;"}function Rr(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=zs[e];return"_k($event.keyCode,"+JSON.stringify(e)+(n?","+JSON.stringify(n):"")+")"}function Ur(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+(t.modifiers&&t.modifiers.prop?",true":"")+")"}}function Br(e,t){var n=vs,r=vs=[],i=ys;ys=0,_s=t,ds=t.warn||Xt,ps=Qt(t.modules,"transformCode"),hs=Qt(t.modules,"genData"),ms=t.directives||{},gs=t.isReservedTag||Ai;var o=e?Hr(e):'_c("div")';return vs=n,ys=i,{render:"with(this){return "+o+"}",staticRenderFns:r}}function Hr(e){if(e.staticRoot&&!e.staticProcessed)return Wr(e);if(e.once&&!e.onceProcessed)return Vr(e);if(e.for&&!e.forProcessed)return Zr(e);if(e.if&&!e.ifProcessed)return Yr(e);if("template"!==e.tag||e.slotTarget){if("slot"===e.tag)return si(e);var t;if(e.component)t=li(e.component,e);else{var n=e.plain?void 0:Kr(e),r=e.inlineTemplate?null:ti(e,!0);t="_c('"+e.tag+"'"+(n?","+n:"")+(r?","+r:"")+")"}for(var i=0;i<ps.length;i++)t=ps[i](e,t);return t}return ti(e)||"void 0"}
 function Wr(e){return e.staticProcessed=!0,vs.push("with(this){return "+Hr(e)+"}"),"_m("+(vs.length-1)+(e.staticInFor?",true":"")+")"}function Vr(e){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Yr(e);if(e.staticInFor){for(var t="",n=e.parent;n;){if(n.for){t=n.key;break}n=n.parent}return t?"_o("+Hr(e)+","+ys+++(t?","+t:"")+")":Hr(e)}return Wr(e)}function Yr(e){return e.ifProcessed=!0,Gr(e.ifConditions.slice())}function Gr(e){function t(e){return e.once?Vr(e):Hr(e)}if(!e.length)return"_e()";var n=e.shift();return n.exp?"("+n.exp+")?"+t(n.block)+":"+Gr(e):""+t(n.block)}function Zr(e){var t=e.for,n=e.alias,r=e.iterator1?","+e.iterator1:"",i=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+t+"),function("+n+r+i+"){return "+Hr(e)+"})"}function Kr(e){var t="{",n=Jr(e);n&&(t+=n+","),e.key&&(t+="key:"+e.key+","),e.ref&&(t+="ref:"+e.ref+","),e.refInFor&&(t+="refInFor:true,"),e.pre&&(t+="pre:true,"),e.component&&(t+='tag:"'+e.tag+'",');for(var r=0;r<hs.length;r++)t+=hs[r](e);if(e.attrs&&(t+="attrs:{"+ci(e.attrs)+"},"),e.props&&(t+="domProps:{"+ci(e.props)+"},"),e.events&&(t+=Ir(e.events)+","),e.nativeEvents&&(t+=Ir(e.nativeEvents,!0)+","),e.slotTarget&&(t+="slot:"+e.slotTarget+","),e.scopedSlots&&(t+=Qr(e.scopedSlots)+","),e.model&&(t+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var i=Xr(e);i&&(t+=i+",")}return t=t.replace(/,$/,"")+"}",e.wrapData&&(t=e.wrapData(t)),t}function Jr(e){var t=e.directives;if(t){var n,r,i,o,a="directives:[",s=!1;for(n=0,r=t.length;n<r;n++){i=t[n],o=!0;var l=ms[i.name]||Bs[i.name];l&&(o=!!l(e,i,ds)),o&&(s=!0,a+='{name:"'+i.name+'",rawName:"'+i.rawName+'"'+(i.value?",value:("+i.value+"),expression:"+JSON.stringify(i.value):"")+(i.arg?',arg:"'+i.arg+'"':"")+(i.modifiers?",modifiers:"+JSON.stringify(i.modifiers):"")+"},")}return s?a.slice(0,-1)+"]":void 0}}function Xr(e){var t=e.children[0];if(1===t.type){var n=Br(t,_s);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function Qr(e){return"scopedSlots:_u(["+Object.keys(e).map(function(t){return ei(t,e[t])}).join(",")+"])"}function ei(e,t){return"["+e+",function("+String(t.attrsMap.scope)+"){return "+("template"===t.tag?ti(t)||"void 0":Hr(t))+"}]"}function ti(e,t){var n=e.children;if(n.length){var r=n[0];if(1===n.length&&r.for&&"template"!==r.tag&&"slot"!==r.tag)return Hr(r);var i=t?ni(n):0;return"["+n.map(oi).join(",")+"]"+(i?","+i:"")}}function ni(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(1===r.type){if(ri(r)||r.ifConditions&&r.ifConditions.some(function(e){return ri(e.block)})){t=2;break}(ii(r)||r.ifConditions&&r.ifConditions.some(function(e){return ii(e.block)}))&&(t=1)}}return t}function ri(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ii(e){return!gs(e.tag)}function oi(e){return 1===e.type?Hr(e):ai(e)}function ai(e){return"_v("+(2===e.type?e.expression:ui(JSON.stringify(e.text)))+")"}function si(e){var t=e.slotName||'"default"',n=ti(e),r="_t("+t+(n?","+n:""),i=e.attrs&&"{"+e.attrs.map(function(e){return $i(e.name)+":"+e.value}).join(",")+"}",o=e.attrsMap["v-bind"];return!i&&!o||n||(r+=",null"),i&&(r+=","+i),o&&(r+=(i?"":",null")+","+o),r+")"}function li(e,t){var n=t.inlineTemplate?null:ti(t,!0);return"_c("+e+","+Kr(t)+(n?","+n:"")+")"}function ci(e){for(var t="",n=0;n<e.length;n++){var r=e[n];t+='"'+r.name+'":'+ui(r.value)+","}return t.slice(0,-1)}function ui(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function fi(e,t){var n=dr(e.trim(),t);Dr(n,t);var r=Br(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}function di(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),m}}function pi(e,t){var n=(t.warn,an(e,"class"));n&&(e.staticClass=JSON.stringify(n));var r=on(e,"class",!1);r&&(e.classBinding=r)}function hi(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}function mi(e,t){var n=(t.warn,an(e,"style"));if(n){e.staticStyle=JSON.stringify(da(n))}var r=on(e,"style",!1);r&&(e.styleBinding=r)}function gi(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}function vi(e,t){t.value&&en(e,"textContent","_s("+t.value+")")}function yi(e,t){t.value&&en(e,"innerHTML","_s("+t.value+")")}function _i(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}var bi,xi,wi=i("slot,component",!0),ki=Object.prototype.hasOwnProperty,$i=l(function(e){return e.replace(/-(\w)/g,function(e,t){return t?t.toUpperCase():""})}),Ci=l(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Si=l(function(e){return e.replace(/([^-])([A-Z])/g,"$1-$2").replace(/([^-])([A-Z])/g,"$1-$2").toLowerCase()}),Ei=Object.prototype.toString,Ti="[object Object]",Ai=function(){return!1},Mi=function(e){return e},Di={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Ai,isUnknownElement:Ai,getTagNamespace:m,parsePlatformTagName:Mi,mustUseProp:Ai,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100},Li=Object.freeze({}),Oi=/[^\w.$]/,ji="__proto__"in{},Fi="undefined"!=typeof window,Pi=Fi&&window.navigator.userAgent.toLowerCase(),Ni=Pi&&/msie|trident/.test(Pi),Ii=Pi&&Pi.indexOf("msie 9.0")>0,qi=Pi&&Pi.indexOf("edge/")>0,zi=Pi&&Pi.indexOf("android")>0,Ri=Pi&&/iphone|ipad|ipod|ios/.test(Pi),Ui=Pi&&/chrome\/\d+/.test(Pi)&&!qi,Bi=function(){return void 0===bi&&(bi=!Fi&&void 0!==e&&"server"===e.process.env.VUE_ENV),bi},Hi=Fi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Wi="undefined"!=typeof Symbol&&w(Symbol)&&"undefined"!=typeof Reflect&&w(Reflect.ownKeys),Vi=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t<e.length;t++)e[t]()}var t,n=[],r=!1;if("undefined"!=typeof Promise&&w(Promise)){var i=Promise.resolve(),o=function(e){console.error(e)};t=function(){i.then(e).catch(o),Ri&&setTimeout(m)}}else if("undefined"==typeof MutationObserver||!w(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())t=function(){setTimeout(e,0)};else{var a=1,s=new MutationObserver(e),l=document.createTextNode(String(a));s.observe(l,{characterData:!0}),t=function(){a=(a+1)%2,l.data=String(a)}}return function(e,i){var o;if(n.push(function(){e&&e.call(i),o&&o(i)}),r||(r=!0,t()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){o=e})}}();xi="undefined"!=typeof Set&&w(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Yi=m,Gi=0,Zi=function(){this.id=Gi++,this.subs=[]};Zi.prototype.addSub=function(e){this.subs.push(e)},Zi.prototype.removeSub=function(e){o(this.subs,e)},Zi.prototype.depend=function(){Zi.target&&Zi.target.addDep(this)},Zi.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},Zi.target=null;var Ki=[],Ji=Array.prototype,Xi=Object.create(Ji);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=Ji[e];b(Xi,e,function(){for(var n=arguments,r=arguments.length,i=new Array(r);r--;)i[r]=n[r];var o,a=t.apply(this,i),s=this.__ob__;switch(e){case"push":case"unshift":o=i;break;case"splice":o=i.slice(2)}return o&&s.observeArray(o),s.dep.notify(),a})});var Qi=Object.getOwnPropertyNames(Xi),eo={shouldConvert:!0,isSettingProps:!1},to=function(e){if(this.value=e,this.dep=new Zi,this.vmCount=0,b(e,"__ob__",this),Array.isArray(e)){(ji?C:S)(e,Xi,Qi),this.observeArray(e)}else this.walk(e)};to.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)T(e,t[n],e[t[n]])},to.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)E(e[t])};var no=Di.optionMergeStrategies;no.data=function(e,t,n){return n?e||t?function(){var r="function"==typeof t?t.call(n):t,i="function"==typeof e?e.call(n):void 0;return r?L(r,i):i}:void 0:t?"function"!=typeof t?e:e?function(){return L(t.call(this),e.call(this))}:t:e},Di._lifecycleHooks.forEach(function(e){no[e]=O}),Di._assetTypes.forEach(function(e){no[e+"s"]=j}),no.watch=function(e,t){if(!t)return Object.create(e||null);if(!e)return t;var n={};f(n,e);for(var r in t){var i=n[r],o=t[r];i&&!Array.isArray(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},no.props=no.methods=no.computed=function(e,t){if(!t)return Object.create(e||null);if(!e)return t;var n=Object.create(null);return f(n,e),f(n,t),n};var ro=function(e,t){return void 0===t?e:t},io=function(e,t,n,r,i,o,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.functionalContext=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},oo={child:{}};oo.child.get=function(){return this.componentInstance},Object.defineProperties(io.prototype,oo);var ao,so=function(){var e=new io;return e.text="",e.isComment=!0,e},lo=l(function(e){var t="~"===e.charAt(0);e=t?e.slice(1):e;var n="!"===e.charAt(0);return e=n?e.slice(1):e,{name:e,once:t,capture:n}}),co=null,uo=[],fo={},po=!1,ho=!1,mo=0,go=0,vo=function(e,t,n,r){this.vm=e,e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++go,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new xi,this.newDepIds=new xi,this.expression="","function"==typeof t?this.getter=t:(this.getter=x(t),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};vo.prototype.get=function(){k(this);var e,t=this.vm;if(this.user)try{e=this.getter.call(t,t)}catch(e){B(e,t,'getter for watcher "'+this.expression+'"')}else e=this.getter.call(t,t);return this.deep&&ve(e),$(),this.cleanupDeps(),e},vo.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},vo.prototype.cleanupDeps=function(){for(var e=this,t=this.deps.length;t--;){var n=e.deps[t];e.newDepIds.has(n.id)||n.removeSub(e)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},vo.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ge(this)},vo.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||d(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){B(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},vo.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vo.prototype.depend=function(){for(var e=this,t=this.deps.length;t--;)e.deps[t].depend()},vo.prototype.teardown=function(){var e=this;if(this.active){this.vm._isBeingDestroyed||o(this.vm._watchers,this);for(var t=this.deps.length;t--;)e.deps[t].removeSub(e);this.active=!1}};var yo=new xi,_o={enumerable:!0,configurable:!0,get:m,set:m},bo={lazy:!0},xo={init:function(e,t,n,r){if(!e.componentInstance||e.componentInstance._isDestroyed){(e.componentInstance=Le(e,co,n,r)).$mount(t?e.elm:void 0,t)}else if(e.data.keepAlive){var i=e;xo.prepatch(i,i)}},prepatch:function(e,t){var n=t.componentOptions;ce(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){e.componentInstance._isMounted||(e.componentInstance._isMounted=!0,pe(e.componentInstance,"mounted")),e.data.keepAlive&&fe(e.componentInstance,!0)},destroy:function(e){e.componentInstance._isDestroyed||(e.data.keepAlive?de(e.componentInstance,!0):e.componentInstance.$destroy())}},wo=Object.keys(xo),ko=1,$o=2,Co=0;!function(e){e.prototype._init=function(e){var t=this;t._uid=Co++,t._isVue=!0,e&&e._isComponent?et(t,e):t.$options=N(tt(t.constructor),e||{},t),t._renderProxy=t,t._self=t,se(t),ee(t),Je(t),pe(t,"beforeCreate"),Qe(t),be(t),Xe(t),pe(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(it),function(e){var t={};t.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=A,e.prototype.$delete=M,e.prototype.$watch=function(e,t,n){var r=this;n=n||{},n.user=!0;var i=new vo(r,e,t,n);return n.immediate&&t.call(r,i.value),function(){i.teardown()}}}(it),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this,i=this;if(Array.isArray(e))for(var o=0,a=e.length;o<a;o++)r.$on(e[o],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){function n(){r.$off(e,n),t.apply(r,arguments)}var r=this;return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var n=this,r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(e)){for(var i=0,o=e.length;i<o;i++)n.$off(e[i],t);return r}var a=r._events[e];if(!a)return r;if(1===arguments.length)return r._events[e]=null,r;for(var s,l=a.length;l--;)if((s=a[l])===t||s.fn===t){a.splice(l,1);break}return r},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?u(n):n;for(var r=u(arguments,1),i=0,o=n.length;i<o;i++)n[i].apply(t,r)}return t}}(it),function(e){e.prototype._update=function(e,t){var n=this;n._isMounted&&pe(n,"beforeUpdate");var r=n.$el,i=n._vnode,o=co;co=n,n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),co=o,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){pe(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||o(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),pe(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$options._parentElm=e.$options._refElm=null}}}(it),function(e){e.prototype.$nextTick=function(e){return Vi(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t.staticRenderFns,i=t._parentVnode;if(e._isMounted)for(var o in e.$slots)e.$slots[o]=V(e.$slots[o]);e.$scopedSlots=i&&i.data.scopedSlots||Li,r&&!e._staticTrees&&(e._staticTrees=[]),e.$vnode=i;var a;try{a=n.call(e._renderProxy,e.$createElement)}catch(t){B(t,e,"render function"),a=e._vnode}return a instanceof io||(a=so()),a.parent=i,a},e.prototype._o=Ge,e.prototype._n=r,e.prototype._s=n,e.prototype._l=Ue,e.prototype._t=Be,e.prototype._q=g,e.prototype._i=v,e.prototype._m=Ye,e.prototype._f=He,e.prototype._k=We,e.prototype._b=Ve,e.prototype._v=H,e.prototype._e=so,e.prototype._u=ae}(it);var So=[String,RegExp],Eo={name:"keep-alive",abstract:!0,props:{include:So,exclude:So},created:function(){this.cache=Object.create(null)},destroyed:function(){var e=this;for(var t in e.cache)ht(e.cache[t])},watch:{include:function(e){pt(this.cache,function(t){return dt(e,t)})},exclude:function(e){pt(this.cache,function(t){return!dt(e,t)})}},render:function(){var e=Q(this.$slots.default),t=e&&e.componentOptions;if(t){var n=ft(t);if(n&&(this.include&&!dt(this.include,n)||this.exclude&&dt(this.exclude,n)))return e;var r=null==e.key?t.Ctor.cid+(t.tag?"::"+t.tag:""):e.key;this.cache[r]?e.componentInstance=this.cache[r].componentInstance:this.cache[r]=e,e.data.keepAlive=!0}return e}},To={KeepAlive:Eo};!function(e){var t={};t.get=function(){return Di},Object.defineProperty(e,"config",t),e.util={warn:Yi,extend:f,mergeOptions:N,defineReactive:T},e.set=A,e.delete=M,e.nextTick=Vi,e.options=Object.create(null),Di._assetTypes.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,f(e.options.components,To),ot(e),at(e),st(e),ut(e)}(it),Object.defineProperty(it.prototype,"$isServer",{get:Bi}),it.version="2.2.6";var Ao,Mo,Do,Lo,Oo,jo,Fo,Po,No,Io=i("input,textarea,option,select"),qo=function(e,t,n){return"value"===n&&Io(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},zo=i("contenteditable,draggable,spellcheck"),Ro=i("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Uo="http://www.w3.org/1999/xlink",Bo=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ho=function(e){return Bo(e)?e.slice(6,e.length):""},Wo=function(e){return null==e||!1===e},Vo={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Yo=i("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),Go=i("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Zo=function(e){return"pre"===e},Ko=function(e){return Yo(e)||Go(e)},Jo=Object.create(null),Xo=Object.freeze({createElement:kt,createElementNS:$t,createTextNode:Ct,createComment:St,insertBefore:Et,removeChild:Tt,appendChild:At,parentNode:Mt,nextSibling:Dt,tagName:Lt,setTextContent:Ot,setAttribute:jt}),Qo={create:function(e,t){Ft(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ft(e,!0),Ft(t))},destroy:function(e){Ft(e,!0)}},ea=new io("",{},[]),ta=["create","activate","update","remove","destroy"],na={create:Ut,update:Ut,destroy:function(e){Ut(e,ea)}},ra=Object.create(null),ia=[Qo,na],oa={create:Yt,update:Yt},aa={create:Zt,update:Zt},sa=/[\w).+\-_$\]]/,la="__r",ca="__c",ua={create:kn,update:kn},fa={create:$n,update:$n},da=l(function(e){var t={};return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var n=e.split(/:(.+)/);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),pa=/^--/,ha=/\s*!important$/,ma=function(e,t,n){pa.test(t)?e.style.setProperty(t,n):ha.test(n)?e.style.setProperty(t,n.replace(ha,""),"important"):e.style[va(t)]=n},ga=["Webkit","Moz","ms"],va=l(function(e){if(No=No||document.createElement("div"),"filter"!==(e=$i(e))&&e in No.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ga.length;n++){var r=ga[n]+t;if(r in No.style)return r}}),ya={create:Dn,update:Dn},_a=l(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),ba=Fi&&!Ii,xa="transition",wa="animation",ka="transition",$a="transitionend",Ca="animation",Sa="animationend";ba&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ka="WebkitTransition",$a="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ca="WebkitAnimation",Sa="webkitAnimationEnd"));var Ea=Fi&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,Ta=/\b(transform|all)(,|$)/,Aa=Fi?{create:Vn,activate:Vn,remove:function(e,t){e.data.show?t():Bn(e,t)}}:{},Ma=[oa,aa,ua,fa,ya,Aa],Da=Ma.concat(ia),La=function(e){function t(e){return new io(E.tagName(e).toLowerCase(),{},[],void 0,e)}function n(e,t){function n(){0==--n.listeners&&r(e)}return n.listeners=t,n}function r(e){var t=E.parentNode(e);Nt(t)&&E.removeChild(t,e)}function o(e,t,n,r,i){if(e.isRootInsert=!i,!a(e,t,n,r)){var o=e.data,s=e.children,l=e.tag;Nt(l)?(e.elm=e.ns?E.createElementNS(e.ns,l):E.createElement(l,e),h(e),f(e,s,t),Nt(o)&&p(e,t),u(n,e.elm,r)):It(e.isComment)?(e.elm=E.createComment(e.text),u(n,e.elm,r)):(e.elm=E.createTextNode(e.text),u(n,e.elm,r))}}function a(e,t,n,r){var i=e.data;if(Nt(i)){var o=Nt(e.componentInstance)&&i.keepAlive;if(Nt(i=i.hook)&&Nt(i=i.init)&&i(e,!1,n,r),Nt(e.componentInstance))return l(e,t),It(o)&&c(e,t,n,r),!0}}function l(e,t){Nt(e.data.pendingInsert)&&t.push.apply(t,e.data.pendingInsert),e.elm=e.componentInstance.$el,d(e)?(p(e,t),h(e)):(Ft(e),t.push(e))}function c(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,Nt(i=o.data)&&Nt(i=i.transition)){for(i=0;i<C.activate.length;++i)C.activate[i](ea,o);t.push(o);break}u(n,e.elm,r)}function u(e,t,n){Nt(e)&&(Nt(n)?E.insertBefore(e,t,n):E.appendChild(e,t))}function f(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)o(t[r],n,e.elm,null,!0);else s(e.text)&&E.appendChild(e.elm,E.createTextNode(e.text))}function d(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return Nt(e.tag)}function p(e,t){for(var n=0;n<C.create.length;++n)C.create[n](ea,e);k=e.data.hook,Nt(k)&&(Nt(k.create)&&k.create(ea,e),Nt(k.insert)&&t.push(e))}function h(e){for(var t,n=e;n;)Nt(t=n.context)&&Nt(t=t.$options._scopeId)&&E.setAttribute(e.elm,t,""),n=n.parent;Nt(t=co)&&t!==e.context&&Nt(t=t.$options._scopeId)&&E.setAttribute(e.elm,t,"")}function m(e,t,n,r,i,a){for(;r<=i;++r)o(n[r],a,e,t)}function g(e){var t,n,r=e.data;if(Nt(r))for(Nt(t=r.hook)&&Nt(t=t.destroy)&&t(e),t=0;t<C.destroy.length;++t)C.destroy[t](e);if(Nt(t=e.children))for(n=0;n<e.children.length;++n)g(e.children[n])}function v(e,t,n,i){for(;n<=i;++n){var o=t[n];Nt(o)&&(Nt(o.tag)?(y(o),g(o)):r(o.elm))}}function y(e,t){if(Nt(t)||Nt(e.data)){var i=C.remove.length+1;for(Nt(t)?t.listeners+=i:t=n(e.elm,i),Nt(k=e.componentInstance)&&Nt(k=k._vnode)&&Nt(k.data)&&y(k,t),k=0;k<C.remove.length;++k)C.remove[k](e,t);Nt(k=e.data.hook)&&Nt(k=k.remove)?k(e,t):t()}else r(e.elm)}function _(e,t,n,r,i){for(var a,s,l,c,u=0,f=0,d=t.length-1,p=t[0],h=t[d],g=n.length-1,y=n[0],_=n[g],x=!i;u<=d&&f<=g;)Pt(p)?p=t[++u]:Pt(h)?h=t[--d]:qt(p,y)?(b(p,y,r),p=t[++u],y=n[++f]):qt(h,_)?(b(h,_,r),h=t[--d],_=n[--g]):qt(p,_)?(b(p,_,r),x&&E.insertBefore(e,p.elm,E.nextSibling(h.elm)),p=t[++u],_=n[--g]):qt(h,y)?(b(h,y,r),x&&E.insertBefore(e,h.elm,p.elm),h=t[--d],y=n[++f]):(Pt(a)&&(a=Rt(t,u,d)),s=Nt(y.key)?a[y.key]:null,Pt(s)?(o(y,r,e,p.elm),y=n[++f]):(l=t[s],qt(l,y)?(b(l,y,r),t[s]=void 0,x&&E.insertBefore(e,y.elm,p.elm),y=n[++f]):(o(y,r,e,p.elm),y=n[++f])));u>d?(c=Pt(n[g+1])?null:n[g+1].elm,m(e,c,n,f,g,r)):f>g&&v(e,t,u,d)}function b(e,t,n,r){if(e!==t){if(It(t.isStatic)&&It(e.isStatic)&&t.key===e.key&&(It(t.isCloned)||It(t.isOnce)))return t.elm=e.elm,void(t.componentInstance=e.componentInstance);var i,o=t.data;Nt(o)&&Nt(i=o.hook)&&Nt(i=i.prepatch)&&i(e,t);var a=t.elm=e.elm,s=e.children,l=t.children;if(Nt(o)&&d(t)){for(i=0;i<C.update.length;++i)C.update[i](e,t);Nt(i=o.hook)&&Nt(i=i.update)&&i(e,t)}Pt(t.text)?Nt(s)&&Nt(l)?s!==l&&_(a,s,l,n,r):Nt(l)?(Nt(e.text)&&E.setTextContent(a,""),m(a,null,l,0,l.length-1,n)):Nt(s)?v(a,s,0,s.length-1):Nt(e.text)&&E.setTextContent(a,""):e.text!==t.text&&E.setTextContent(a,t.text),Nt(o)&&Nt(i=o.hook)&&Nt(i=i.postpatch)&&i(e,t)}}function x(e,t,n){if(It(n)&&Nt(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}function w(e,t,n){t.elm=e;var r=t.tag,i=t.data,o=t.children;if(Nt(i)&&(Nt(k=i.hook)&&Nt(k=k.init)&&k(t,!0),Nt(k=t.componentInstance)))return l(t,n),!0;if(Nt(r)){if(Nt(o))if(e.hasChildNodes()){for(var a=!0,s=e.firstChild,c=0;c<o.length;c++){if(!s||!w(s,o[c],n)){a=!1;break}s=s.nextSibling}if(!a||s)return!1}else f(t,o,n);if(Nt(i))for(var u in i)if(!T(u)){p(t,n);break}}else e.data!==t.text&&(e.data=t.text);return!0}var k,$,C={},S=e.modules,E=e.nodeOps;for(k=0;k<ta.length;++k)for(C[ta[k]]=[],$=0;$<S.length;++$)Nt(S[$][ta[k]])&&C[ta[k]].push(S[$][ta[k]]);var T=i("attrs,style,class,staticClass,staticStyle,key");return function(e,n,r,i,a,s){if(Pt(n))return void(Nt(e)&&g(e));var l=!1,c=[];if(Pt(e))l=!0,o(n,c,a,s);else{var u=Nt(e.nodeType);if(!u&&qt(e,n))b(e,n,c,i);else{if(u){if(1===e.nodeType&&e.hasAttribute("server-rendered")&&(e.removeAttribute("server-rendered"),r=!0),It(r)&&w(e,n,c))return x(n,c,!0),e;e=t(e)}var f=e.elm,p=E.parentNode(f);if(o(n,c,f._leaveCb?null:p,E.nextSibling(f)),Nt(n.parent)){for(var h=n.parent;h;)h.elm=n.elm,h=h.parent;if(d(n))for(var m=0;m<C.create.length;++m)C.create[m](ea,n.parent)}Nt(p)?v(p,[e],0,0):Nt(e.tag)&&g(e)}}return x(n,c,l),n.elm}}({nodeOps:Xo,modules:Da});Ii&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Xn(e,"input")});var Oa={inserted:function(e,t,n){if("select"===n.tag){var r=function(){Yn(e,t,n.context)};r(),(Ni||qi)&&setTimeout(r,0)}else"textarea"!==n.tag&&"text"!==e.type&&"password"!==e.type||(e._vModifiers=t.modifiers,t.modifiers.lazy||(zi||(e.addEventListener("compositionstart",Kn),e.addEventListener("compositionend",Jn)),Ii&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Yn(e,t,n.context);(e.multiple?t.value.some(function(t){return Gn(t,e.options)}):t.value!==t.oldValue&&Gn(t.value,e.options))&&Xn(e,"change")}}},ja={bind:function(e,t,n){var r=t.value;n=Qn(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i&&!Ii?(n.data.show=!0,Un(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;r!==t.oldValue&&(n=Qn(n),n.data&&n.data.transition&&!Ii?(n.data.show=!0,r?Un(n,function(){e.style.display=e.__vOriginalDisplay}):Bn(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Fa={model:Oa,show:ja},Pa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},Na={name:"transition",props:Pa,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag}),n.length)){var r=this.mode,i=n[0];if(rr(this.$vnode))return i;var o=er(i);if(!o)return i;if(this._leaving)return nr(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=tr(this),c=this._vnode,u=er(c);if(o.data.directives&&o.data.directives.some(function(e){return"show"===e.name})&&(o.data.show=!0),u&&u.data&&!ir(o,u)){var d=u&&(u.data.transition=f({},l));if("out-in"===r)return this._leaving=!0,Z(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),nr(e,i);if("in-out"===r){var p,h=function(){p()};Z(l,"afterEnter",h),Z(l,"enterCancelled",h),Z(d,"delayLeave",function(e){p=e})}}return i}}},Ia=f({tag:String,moveClass:String},Pa);delete Ia.mode;var qa={props:Ia,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=tr(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){for(var c=[],u=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?c.push(d):u.push(d)}this.kept=e(t,null,c),this.removed=u}return e(t,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";if(e.length&&this.hasMove(e[0].elm,t)){e.forEach(or),e.forEach(ar),e.forEach(sr);var n=document.body;n.offsetHeight;e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;Pn(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener($a,n._moveCb=function e(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener($a,e),n._moveCb=null,Nn(n,t))})}})}},methods:{hasMove:function(e,t){if(!ba)return!1;if(null!=this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){On(n,e)}),Ln(n,t),n.style.display="none",this.$el.appendChild(n);var r=qn(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}},za={Transition:Na,TransitionGroup:qa};it.config.mustUseProp=qo,it.config.isReservedTag=Ko,it.config.getTagNamespace=bt,it.config.isUnknownElement=xt,f(it.options.directives,Fa),f(it.options.components,za),it.prototype.__patch__=Fi?La:m,it.prototype.$mount=function(e,t){return e=e&&Fi?wt(e):void 0,le(this,e,t)},setTimeout(function(){Di.devtools&&Hi&&Hi.emit("init",it)},0);var Ra,Ua=!!Fi&&function(e,t){var n=document.createElement("div");return n.innerHTML='<div a="'+e+'">',n.innerHTML.indexOf(t)>0}("\n","&#10;"),Ba=i("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ha=i("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Wa=i("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Va=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],Ya=new RegExp("^\\s*"+/([^\s"'<>\/=]+)/.source+"(?:\\s*("+/(?:=)/.source+")\\s*(?:"+Va.join("|")+"))?"),Ga="[a-zA-Z_][\\w\\-\\.]*",Za=new RegExp("^<((?:"+Ga+"\\:)?"+Ga+")"),Ka=/^\s*(\/?)>/,Ja=new RegExp("^<\\/((?:"+Ga+"\\:)?"+Ga+")[^>]*>"),Xa=/^<!DOCTYPE [^>]+>/i,Qa=/^<!--/,es=/^<!\[/,ts=!1;"x".replace(/x(.)?/g,function(e,t){ts=""===t});var ns,rs,is,os,as,ss,ls,cs,us,fs,ds,ps,hs,ms,gs,vs,ys,_s,bs=i("script,style,textarea",!0),xs={},ws={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n"},ks=/&(?:lt|gt|quot|amp);/g,$s=/&(?:lt|gt|quot|amp|#10);/g,Cs=/\{\{((?:.|\n)+?)\}\}/g,Ss=l(function(e){var t=e[0].replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&"),n=e[1].replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),Es=/^@|^v-on:/,Ts=/^v-|^@|^:/,As=/(.*?)\s+(?:in|of)\s+(.*)/,Ms=/\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,Ds=/:(.*)$/,Ls=/^:|^v-bind:/,Os=/\.[^.]+/g,js=l(lr),Fs=/^xmlns:NS\d+/,Ps=/^NS\d+:/,Ns=l(Lr),Is=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,qs=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,zs={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Rs=function(e){return"if("+e+")return null;"},Us={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Rs("$event.target !== $event.currentTarget"),ctrl:Rs("!$event.ctrlKey"),shift:Rs("!$event.shiftKey"),alt:Rs("!$event.altKey"),meta:Rs("!$event.metaKey"),left:Rs("'button' in $event && $event.button !== 0"),middle:Rs("'button' in $event && $event.button !== 1"),right:Rs("'button' in $event && $event.button !== 2")},Bs={bind:Ur,cloak:m
 },Hs=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),{staticKeys:["staticClass"],transformNode:pi,genData:hi}),Ws={staticKeys:["staticStyle"],transformNode:mi,genData:gi},Vs=[Hs,Ws],Ys={model:mn,text:vi,html:yi},Gs={expectHTML:!0,modules:Vs,directives:Ys,isPreTag:Zo,isUnaryTag:Ba,mustUseProp:qo,canBeLeftOpenTag:Ha,isReservedTag:Ko,getTagNamespace:bt,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Vs)},Zs=function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(r.warn=function(e,t){(t?o:i).push(e)},n){n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=f(Object.create(e.directives),n.directives));for(var a in n)"modules"!==a&&"directives"!==a&&(r[a]=n[a])}var s=fi(t,r);return s.errors=i,s.tips=o,s}function n(e,n,i){n=n||{};var o=n.delimiters?String(n.delimiters)+e:e;if(r[o])return r[o];var a=t(e,n),s={},l=[];s.render=di(a.render,l);var c=a.staticRenderFns.length;s.staticRenderFns=new Array(c);for(var u=0;u<c;u++)s.staticRenderFns[u]=di(a.staticRenderFns[u],l);return r[o]=s}var r=Object.create(null);return{compile:t,compileToFunctions:n}}(Gs),Ks=Zs.compileToFunctions,Js=l(function(e){var t=wt(e);return t&&t.innerHTML}),Xs=it.prototype.$mount;it.prototype.$mount=function(e,t){if((e=e&&wt(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Js(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=_i(e));if(r){var i=Ks(r,{shouldDecodeNewlines:Ua,delimiters:n.delimiters},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Xs.call(this,e,t)},it.compile=Ks,t.exports=it}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],435:[function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};!function(){function o(e){function t(e){e.parentElement.removeChild(e)}function n(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function o(e,t){return e.map(function(e){return e.elm}).indexOf(t)}function a(e,t,n){if(!e)return[];var i=e.map(function(e){return e.elm}),o=[].concat(r(t)).map(function(e){return i.indexOf(e)});return n?o.filter(function(e){return-1!==e}):o}function s(e,t){var n=this;this.$nextTick(function(){return n.$emit(e.toLowerCase(),t)})}function l(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),s.call(t,e,n)}}var c=["Start","Add","Remove","Update","End"],u=["Choose","Sort","Filter","Clone"],f=["Move"].concat(c,u).map(function(e){return"on"+e}),d=null;return{name:"draggable",props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},move:{type:Function,default:null}},data:function(){return{transitionMode:!1,componentMode:!1}},render:function(e){var t=this.$slots.default;if(t&&1===t.length){var n=t[0];n.componentOptions&&"transition-group"===n.componentOptions.tag&&(this.transitionMode=!0)}var i=t,o=this.$slots.footer;return o&&(i=t?[].concat(r(t),r(o)):[].concat(r(o))),e(this.element,null,i)},mounted:function(){var t=this;if(this.componentMode=this.element.toLowerCase()!==this.$el.nodeName.toLowerCase(),this.componentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter element value or remove transition-group. Current element value: "+this.element);var n={};c.forEach(function(e){n["on"+e]=l.call(t,e)}),u.forEach(function(e){n["on"+e]=s.bind(t,e)});var r=i({},this.options,n,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new e(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},isCloning:function(){return!!this.options&&!!this.options.group&&"clone"===this.options.group.pull},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){for(var t in e)-1==f.indexOf(t)&&this._sortable.option(t,e[t])},deep:!0},realList:function(){this.computeIndexes()}},methods:{getChildrenNodes:function(){if(this.componentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick(function(){e.visibleIndexes=a(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode)})},getUnderlyingVm:function(e){var t=o(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&"transition-group"===t.$options._componentTag?t.$parent:t},emitChanges:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})},alterList:function(e){if(this.list)e(this.list);else{var t=[].concat(r(this.value));e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,e)};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var o=r.realList,a={list:o,component:r};if(t!==n&&o&&r.getUnderlyingVm){var s=r.getUnderlyingVm(n);if(s)return i(s,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),d=e.item},onDragAdd:function(e){var n=e.item._underlying_vm_;if(void 0!==n){t(e.item);var r=this.getVmIndex(e.newIndex);this.spliceList(r,0,n),this.computeIndexes();var i={element:n,newIndex:r};this.emitChanges({added:i})}},onDragRemove:function(e){if(n(this.rootContainer,e.item,e.oldIndex),this.isCloning)return void t(e.clone);var r=this.context.index;this.spliceList(r,1);var i={element:this.context.element,oldIndex:r};this.resetTransitionData(r),this.emitChanges({removed:i})},onDragUpdate:function(e){t(e.item),n(e.from,e.item,e.oldIndex);var r=this.context.index,i=this.getVmIndex(e.newIndex);this.updatePosition(r,i);var o={element:this.context.element,oldIndex:r,newIndex:i};this.emitChanges({moved:o})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=[].concat(r(t.to.children)).filter(function(e){return"none"!==e.style.display}),i=n.indexOf(t.related),o=e.component.getVmIndex(i);return-1==n.indexOf(d)&&t.willInsertAfter?o+1:o},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),o=this.context,a=this.computeFutureIndex(r,e);return i(o,{futureIndex:a}),i(e,{relatedContext:r,draggedContext:o}),n(e,t)},onDragEnd:function(e){this.computeIndexes(),d=null}}}}if(Array.from||(Array.from=function(e){return[].slice.call(e)}),"object"==typeof n){var a=e("sortablejs");t.exports=o(a)}else if("function"==typeof define&&define.amd)define(["sortablejs"],function(e){return o(e)});else if(window&&window.Vue&&window.Sortable){var s=o(window.Sortable);Vue.component("draggable",s)}}()},{sortablejs:426}],436:[function(e,t,n){"use strict";function r(){for(var e=document.querySelectorAll(".page-content pre, .comment-box .content pre"),t=0;t<e.length;t++)i(e[t])}function i(e){var t=e.querySelector("code[class^=language-]"),n="";if(null!==t){n=o(t.className.replace("language-",""))}e.innerHTML=e.innerHTML.replace(/<br\s*[\/]?>/gi,"\n");var r=e.textContent.trim();p(function(t){e.parentNode.replaceChild(t,e)},{value:r,mode:n,lineNumbers:!0,theme:a(),readOnly:!0})}function o(e){return e=e.trim().replace(/^\./g,"").toLowerCase(),void 0!==h[e]?h[e]:""}function a(){return window.codeTheme||"base16-light"}function s(e){var t=e.ownerDocument,n=e.querySelector("code"),r=(e.className||"").replace("language-","");""===r&&n&&(r=(n.className||"").replace("language-","")),e.innerHTML=e.innerHTML.replace(/<br\s*[\/]?>/gi,"\n");var i=e.textContent,s=t.createElement("div"),l=t.createElement("textarea");s.className="CodeMirrorContainer",s.setAttribute("data-lang",r),l.style.display="none",e.parentNode.replaceChild(s,e),s.appendChild(l),s.contentEditable=!1,l.textContent=i;var c=p(function(e){s.appendChild(e)},{value:i,mode:o(r),lineNumbers:!0,theme:a(),readOnly:!0});return setTimeout(function(){c.refresh()},300),{wrap:s,editor:c}}function l(e,t){var n=e.textContent;return p(function(t){e.parentNode.insertBefore(t,e),e.style.display="none"},{value:n,mode:o(t),lineNumbers:!0,theme:a(),lineWrapping:!0})}function c(e,t){e.setOption("mode",o(t))}function u(e,t){e.setValue(t),setTimeout(function(){e.refresh()},10)}function f(e){var t=e.textContent;return p(function(t){e.parentNode.insertBefore(t,e),e.style.display="none"},{value:t,mode:"markdown",lineNumbers:!0,theme:a(),lineWrapping:!0})}function d(){return p.keyMap.default==p.keyMap.macDefault?"Cmd":"Ctrl"}e("codemirror/mode/css/css"),e("codemirror/mode/clike/clike"),e("codemirror/mode/diff/diff"),e("codemirror/mode/go/go"),e("codemirror/mode/htmlmixed/htmlmixed"),e("codemirror/mode/javascript/javascript"),e("codemirror/mode/markdown/markdown"),e("codemirror/mode/nginx/nginx"),e("codemirror/mode/php/php"),e("codemirror/mode/powershell/powershell"),e("codemirror/mode/python/python"),e("codemirror/mode/ruby/ruby"),e("codemirror/mode/shell/shell"),e("codemirror/mode/sql/sql"),e("codemirror/mode/toml/toml"),e("codemirror/mode/xml/xml"),e("codemirror/mode/yaml/yaml");var p=e("codemirror"),h={css:"css",c:"clike",java:"clike",scala:"clike",kotlin:"clike","c++":"clike","c#":"clike",csharp:"clike",diff:"diff",go:"go",html:"htmlmixed",javascript:"javascript",json:{name:"javascript",json:!0},js:"javascript",php:"php",md:"markdown",mdown:"markdown",markdown:"markdown",nginx:"nginx",powershell:"powershell",py:"python",python:"python",ruby:"ruby",rb:"ruby",shell:"shell",sh:"shell",bash:"shell",toml:"toml",sql:"sql",xml:"xml",yaml:"yaml",yml:"yaml"};t.exports={highlight:r,highlightElem:i,wysiwygView:s,popupEditor:l,setMode:c,setContent:u,markdownEditor:f,getMetaKey:d}},{codemirror:40,"codemirror/mode/clike/clike":41,"codemirror/mode/css/css":42,"codemirror/mode/diff/diff":43,"codemirror/mode/go/go":44,"codemirror/mode/htmlmixed/htmlmixed":45,"codemirror/mode/javascript/javascript":46,"codemirror/mode/markdown/markdown":47,"codemirror/mode/nginx/nginx":49,"codemirror/mode/php/php":50,"codemirror/mode/powershell/powershell":51,"codemirror/mode/python/python":52,"codemirror/mode/ruby/ruby":53,"codemirror/mode/shell/shell":54,"codemirror/mode/sql/sql":55,"codemirror/mode/toml/toml":56,"codemirror/mode/xml/xml":57,"codemirror/mode/yaml/yaml":58}],437:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.elem=t,this.targetElem=document.getElementById("header"),this.showing=!1,this.breakPoint=1200,this.elem.addEventListener("click",this.scrollToTop.bind(this)),window.addEventListener("scroll",this.onPageScroll.bind(this))}return i(e,[{key:"onPageScroll",value:function(){var e=this,t=document.documentElement.scrollTop||document.body.scrollTop||0;!this.showing&&t>this.breakPoint?(this.elem.style.display="block",this.showing=!0,setTimeout(function(){e.elem.style.opacity=.4},1)):this.showing&&t<this.breakPoint&&(this.elem.style.opacity=0,this.showing=!1,setTimeout(function(){e.elem.style.display="none"},500))}},{key:"scrollToTop",value:function(){function e(){var a=1-(Date.now()-i)/r,s=Math.abs(a*o);a>0?(n.scrollTop=s,requestAnimationFrame(e.bind(this))):n.scrollTop=t}var t=this.targetElem.getBoundingClientRect().top,n=document.documentElement.scrollTop?document.documentElement:document.body,r=300,i=Date.now(),o=this.targetElem.getBoundingClientRect().top;requestAnimationFrame(e.bind(this))}}]),e}();t.exports=o},{}],438:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.elem=t,this.isOpen=t.classList.contains("open"),t.addEventListener("click",this.click.bind(this))}return i(e,[{key:"open",value:function(){function e(){t.style.overflow="",t.style.height="",t.style.transition="",t.removeEventListener("transitionend",r)}var t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.add("open"),t.style.display="block",t.style.height="";var n=t.getBoundingClientRect().height;t.style.height="0px",t.style.overflow="hidden",t.style.transition="height ease-in-out 240ms";var r=e.bind(this);setTimeout(function(){t.style.height=n+"px",t.addEventListener("transitionend",r)},1)}},{key:"close",value:function(){function e(){t.style.overflow="",t.style.height="",t.style.transition="",t.style.display="none",t.removeEventListener("transitionend",n)}var t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.remove("open"),t.style.display="block",t.style.height=t.getBoundingClientRect().height+"px",t.style.overflow="hidden",t.style.transition="height ease-in-out 240ms";var n=e.bind(this);setTimeout(function(){t.style.height="0px",t.addEventListener("transitionend",n)},1)}},{key:"click",value:function(e){e.preventDefault(),this.isOpen?this.close():this.open(),this.isOpen=!this.isOpen}}]),e}();t.exports=o},{}],439:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.container=t,this.menu=t.querySelector("ul"),this.toggle=t.querySelector("[dropdown-toggle]"),this.setupListeners()}return i(e,[{key:"show",value:function(){this.menu.style.display="block",this.menu.classList.add("anim","menuIn"),this.container.addEventListener("mouseleave",this.hide.bind(this));var e=this.menu.querySelector("input");null!==e&&e.focus()}},{key:"hide",value:function(){this.menu.style.display="none",this.menu.classList.remove("anim","menuIn")}},{key:"setupListeners",value:function(){var e=this;this.container.addEventListener("click",function(t){-1!==Array.from(e.menu.querySelectorAll("a")).indexOf(t.target)&&e.hide()}),this.toggle.addEventListener("click",this.show.bind(this)),this.container.addEventListener("keypress",function(t){return 13!==t.keyCode||(t.preventDefault(),e.hide(),!1)})}}]),e}();t.exports=o},{}],440:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.elem=t,window.EntitySelectorPopup=this,this.callback=null,this.selection=null,this.selectButton=t.querySelector(".entity-link-selector-confirm"),this.selectButton.addEventListener("click",this.onSelectButtonClick.bind(this)),window.$events.listen("entity-select-change",this.onSelectionChange.bind(this)),window.$events.listen("entity-select-confirm",this.onSelectionConfirm.bind(this))}return i(e,[{key:"show",value:function(e){this.callback=e,this.elem.components.overlay.show()}},{key:"hide",value:function(){this.elem.components.overlay.hide()}},{key:"onSelectButtonClick",value:function(){this.hide(),null!==this.selection&&this.callback&&this.callback(this.selection)}},{key:"onSelectionConfirm",value:function(e){this.hide(),this.callback&&e&&this.callback(e)}},{key:"onSelectionChange",value:function(e){this.selection=e,null===e?this.selectButton.setAttribute("disabled","true"):this.selectButton.removeAttribute("disabled")}}]),e}();t.exports=o},{}],441:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){var n=this;r(this,e),this.elem=t,this.search="",this.lastClick=0;var i=t.hasAttribute("entity-types")?t.getAttribute("entity-types"):"page,book,chapter";this.searchUrl=window.baseUrl("/ajax/search/entities?types="+encodeURIComponent(i)),this.input=t.querySelector("[entity-selector-input]"),this.searchInput=t.querySelector("[entity-selector-search]"),this.loading=t.querySelector("[entity-selector-loading]"),this.resultsContainer=t.querySelector("[entity-selector-results]"),this.elem.addEventListener("click",this.onClick.bind(this));var o=0;this.searchInput.addEventListener("input",function(e){o=Date.now(),n.showLoading(),setTimeout(function(){Date.now()-o<199||n.searchEntities(n.searchInput.value)},200)}),this.searchInput.addEventListener("keydown",function(e){13===e.keyCode&&e.preventDefault()}),this.showLoading(),this.initialLoad()}return i(e,[{key:"showLoading",value:function(){this.loading.style.display="block",this.resultsContainer.style.display="none"}},{key:"hideLoading",value:function(){this.loading.style.display="none",this.resultsContainer.style.display="block"}},{key:"initialLoad",value:function(){var e=this;window.$http.get(this.searchUrl).then(function(t){e.resultsContainer.innerHTML=t.data,e.hideLoading()})}},{key:"searchEntities",value:function(e){var t=this;this.input.value="";var n=this.searchUrl+"&term="+encodeURIComponent(e);window.$http.get(n).then(function(e){t.resultsContainer.innerHTML=e.data,t.hideLoading()})}},{key:"isDoubleClick",value:function(){var e=Date.now(),t=e-this.lastClick<300;return this.lastClick=e,t}},{key:"onClick",value:function(e){var t=e.target;if(console.log("click",t),t.matches(".entity-list-item  *")){e.preventDefault(),e.stopPropagation();var n=t.closest("[data-entity-type]");this.selectItem(n)}else t.matches("[data-entity-type]")&&this.selectItem(t)}},{key:"selectItem",value:function(e){var t=this.isDoubleClick(),n=e.getAttribute("data-entity-type"),r=e.getAttribute("data-entity-id"),i=!e.classList.contains("selected")||t;if(this.unselectAll(),this.input.value=i?n+":"+r:"",i||window.$events.emit("entity-select-change",null),i&&(e.classList.add("selected"),e.classList.add("primary-background")),t||i){var o=e.querySelector(".entity-list-item-link").getAttribute("href"),a=e.querySelector(".entity-list-item-name").textContent,s={id:Number(r),name:a,link:o};t&&window.$events.emit("entity-select-confirm",s),i&&window.$events.emit("entity-select-change",s)}}},{key:"unselectAll",value:function(){for(var e=this.elem.querySelectorAll(".selected"),t=0,n=e.length;t<n;t++)e[t].classList.remove("selected"),e[t].classList.remove("primary-background")}}]),e}();t.exports=o},{}],442:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.elem=t,this.isOpen=!1,this.selector=t.getAttribute("expand-toggle"),t.addEventListener("click",this.click.bind(this))}return i(e,[{key:"open",value:function(e){function t(){e.style.overflow="",e.style.height="",e.style.transition="",e.removeEventListener("transitionend",r)}e.style.display="block",e.style.height="";var n=e.getBoundingClientRect().height;e.style.height="0px",e.style.overflow="hidden",e.style.transition="height ease-in-out 240ms";var r=t.bind(this);setTimeout(function(){e.style.height=n+"px",e.addEventListener("transitionend",r)},1)}},{key:"close",value:function(e){function t(){e.style.overflow="",e.style.height="",e.style.transition="",e.style.display="none",e.removeEventListener("transitionend",n)}e.style.display="block",e.style.height=e.getBoundingClientRect().height+"px",e.style.overflow="hidden",e.style.transition="all ease-in-out 240ms";var n=t.bind(this);setTimeout(function(){e.style.height="0px",e.addEventListener("transitionend",n)},1)}},{key:"click",value:function(e){e.preventDefault();for(var t=document.querySelectorAll(this.selector),n=0,r=t.length;n<r;n++)this.isOpen?this.close(t[n]):this.open(t[n]);this.isOpen=!this.isOpen}}]),e}();t.exports=o},{}],443:[function(e,t,n){"use strict";function r(e,t){var n=t.querySelectorAll("["+e+"]");if(0!==n.length){var r=o[e];void 0===window.components[e]&&(window.components[e]=[]);for(var i=0,a=n.length;i<a;i++){var s=new r(n[i]);void 0===n[i].components&&(n[i].components={}),n[i].components[e]=s,window.components[e].push(s)}}}function i(e){void 0===e&&(e=document);for(var t=0,n=a.length;t<n;t++)r(a[t],e)}var o={dropdown:e("./dropdown"),overlay:e("./overlay"),"back-to-top":e("./back-top-top"),notification:e("./notification"),"chapter-toggle":e("./chapter-toggle"),"expand-toggle":e("./expand-toggle"),"entity-selector-popup":e("./entity-selector-popup"),"entity-selector":e("./entity-selector"),sidebar:e("./sidebar"),"page-picker":e("./page-picker"),"page-comments":e("./page-comments")};window.components={};var a=Object.keys(o);i(),window.components.init=i},{"./back-top-top":437,"./chapter-toggle":438,"./dropdown":439,"./entity-selector":441,"./entity-selector-popup":440,"./expand-toggle":442,"./notification":444,"./overlay":445,"./page-comments":446,"./page-picker":447,"./sidebar":448}],444:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){var n=this;r(this,e),this.elem=t,this.type=t.getAttribute("notification"),this.textElem=t.querySelector("span"),this.autohide=this.elem.hasAttribute("data-autohide"),window.$events.listen(this.type,function(e){n.show(e)}),t.addEventListener("click",this.hide.bind(this)),t.hasAttribute("data-show")&&this.show(this.textElem.textContent),this.hideCleanup=this.hideCleanup.bind(this)}return i(e,[{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.elem.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=t,this.elem.style.display="block",setTimeout(function(){e.elem.classList.add("showing")},1),this.autohide&&setTimeout(this.hide.bind(this),2e3)}},{key:"hide",value:function(){this.elem.classList.remove("showing"),this.elem.addEventListener("transitionend",this.hideCleanup)}},{key:"hideCleanup",value:function(){this.elem.style.display="none",this.elem.removeEventListener("transitionend",this.hideCleanup)}}]),e}();t.exports=o},{}],445:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){var n=this;r(this,e),this.container=t,t.addEventListener("click",function(e){if(e.target===t)return n.hide()});for(var i=t.querySelectorAll(".overlay-close"),o=0;o<i.length;o++)i[o].addEventListener("click",this.hide.bind(this))}return i(e,[{key:"toggle",value:function(){function e(){var i=Date.now()-n,o=t?i/r:1-i/r;this.container.style.opacity=o,i>r?(this.container.style.display=t?"flex":"none",this.container.style.opacity=""):requestAnimationFrame(e.bind(this))}var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Date.now(),r=240;requestAnimationFrame(e.bind(this))}},{key:"hide",value:function(){this.toggle(!1)}},{key:"show",value:function(){this.toggle(!0)}}]),e}();t.exports=o},{}],446:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=e("markdown-it"),a=new o({html:!1}),s=function(){function e(t){r(this,e),this.elem=t,this.pageId=Number(t.getAttribute("page-id")),this.editingComment=null,this.parentId=null,this.container=t.querySelector("[comment-container]"),this.formContainer=t.querySelector("[comment-form-container]"),this.formContainer&&(this.form=this.formContainer.querySelector("form"),this.formInput=this.form.querySelector("textarea"),this.form.addEventListener("submit",this.saveComment.bind(this))),this.elem.addEventListener("click",this.handleAction.bind(this)),this.elem.addEventListener("submit",this.updateComment.bind(this))}return i(e,[{key:"handleAction",value:function(e){var t=e.target.closest("[action]");if(e.target.matches('a[href^="#"]')){var n=e.target.href.split("#")[1];window.scrollAndHighlight(document.querySelector("#"+n))}if(null!==t){e.preventDefault();var r=t.getAttribute("action");"edit"===r&&this.editComment(t.closest("[comment]")),"closeUpdateForm"===r&&this.closeUpdateForm(),"delete"===r&&this.deleteComment(t.closest("[comment]")),"addComment"===r&&this.showForm(),"hideForm"===r&&this.hideForm(),"reply"===r&&this.setReply(t.closest("[comment]")),"remove-reply-to"===r&&this.removeReplyTo()}}},{key:"closeUpdateForm",value:function(){this.editingComment&&(this.editingComment.querySelector("[comment-content]").style.display="block",this.editingComment.querySelector("[comment-edit-container]").style.display="none")}},{key:"editComment",value:function(e){this.hideForm(),this.editingComment&&this.closeUpdateForm(),e.querySelector("[comment-content]").style.display="none",e.querySelector("[comment-edit-container]").style.display="block";var t=e.querySelector("[comment-edit-container] textarea"),n=t.value.split("\n").length;t.style.height=20*n+"px",this.editingComment=e}},{key:"updateComment",value:function(e){var t=this,n=e.target;e.preventDefault();var r=n.querySelector("textarea").value,i={text:r,html:a.render(r),parent_id:this.parentId||null};this.showLoading(n);var o=this.editingComment.getAttribute("comment");window.$http.put(window.baseUrl("/ajax/comment/"+o),i).then(function(e){var r=document.createElement("div");r.innerHTML=e.data,t.editingComment.innerHTML=r.children[0].innerHTML,window.$events.emit("success",window.trans("entities.comment_updated_success")),window.components.init(t.editingComment),t.closeUpdateForm(),t.editingComment=null,t.hideLoading(n)})}},{key:"deleteComment",value:function(e){var t=this,n=e.getAttribute("comment");this.showLoading(e.querySelector("[comment-content]")),window.$http.delete(window.baseUrl("/ajax/comment/"+n)).then(function(n){e.parentNode.removeChild(e),window.$events.emit("success",window.trans("entities.comment_deleted_success")),t.updateCount()})}},{key:"saveComment",value:function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=this.formInput.value,r={text:n,html:a.render(n),parent_id:this.parentId||null};this.showLoading(this.form),window.$http.post(window.baseUrl("/ajax/page/"+this.pageId+"/comment"),r).then(function(e){var n=document.createElement("div");n.innerHTML=e.data;var r=n.children[0];t.container.appendChild(r),window.components.init(r),window.$events.emit("success",window.trans("entities.comment_created_success")),t.resetForm(),t.updateCount()})}},{key:"updateCount",value:function(){var e=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_choice("entities.comment_count",e,{count:e})}},{key:"resetForm",value:function(){this.formInput.value="",this.formContainer.appendChild(this.form),this.hideForm(),this.removeReplyTo(),this.hideLoading(this.form)}},{key:"showForm",value:function(){this.formContainer.style.display="block",this.formContainer.parentNode.style.display="block",this.elem.querySelector("[comment-add-button]").style.display="none",this.formInput.focus(),window.scrollToElement(this.formInput)}},{key:"hideForm",value:function(){this.formContainer.style.display="none",this.formContainer.parentNode.style.display="none",this.elem.querySelector("[comment-add-button]").style.display="block"}},{key:"setReply",value:function(e){this.showForm(),this.parentId=Number(e.getAttribute("local-id")),this.elem.querySelector("[comment-form-reply-to]").style.display="block";var t=this.elem.querySelector("[comment-form-reply-to] a");t.textContent="#"+this.parentId,t.href="#comment"+this.parentId}},{key:"removeReplyTo",value:function(){this.parentId=null,this.elem.querySelector("[comment-form-reply-to]").style.display="none"}},{key:"showLoading",value:function(e){for(var t=e.querySelectorAll(".form-group"),n=0,r=t.length;n<r;n++)t[n].style.display="none";e.querySelector(".form-group.loading").style.display="block"}},{key:"hideLoading",value:function(e){for(var t=e.querySelectorAll(".form-group"),n=0,r=t.length;n<r;n++)t[n].style.display="block";e.querySelector(".form-group.loading").style.display="none"}}]),e}();t.exports=s},{"markdown-it":363}],447:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var n="BUTTON"===e.tagName||"SPAN"===e.tagName?"inline-block":"block";e.style.display=t?n:"none"}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(t){r(this,e),this.elem=t,this.input=t.querySelector("input"),this.resetButton=t.querySelector("[page-picker-reset]"),this.selectButton=t.querySelector("[page-picker-select]"),this.display=t.querySelector("[page-picker-display]"),this.defaultDisplay=t.querySelector("[page-picker-default]"),this.buttonSep=t.querySelector("span.sep"),this.value=this.input.value,this.setupListeners()}
-return o(e,[{key:"setupListeners",value:function(){var e=this;this.selectButton.addEventListener("click",function(t){window.EntitySelectorPopup.show(function(t){e.setValue(t.id,t.name)})}),this.resetButton.addEventListener("click",function(t){e.setValue("","")})}},{key:"setValue",value:function(e,t){this.value=e,this.input.value=e,this.controlView(t)}},{key:"controlView",value:function(e){var t=this.value&&0!==this.value;if(i(this.resetButton,t),i(this.buttonSep,t),i(this.defaultDisplay,!t),i(this.display,t),t){var n=this.getAssetIdFromVal();this.display.textContent="#"+n+", "+e,this.display.href=window.baseUrl("/link/"+n)}}},{key:"getAssetIdFromVal",value:function(){return Number(this.value)}}]),e}();t.exports=a},{}],448:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.elem=t,this.toggleElem=t.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}return i(e,[{key:"toggle",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.elem.classList.toggle("open")}}]),e}();t.exports=o},{}],449:[function(e,t,n){"use strict";var r=e("moment");e("moment/locale/en-gb");var i=e("./pages/page-form");r.locale("en-gb"),t.exports=function(e,t){e.controller("PageEditController",["$scope","$http","$attrs","$interval","$timeout","$sce",function(e,n,o,a,s,l){function c(){v.title=$("#name").val(),v.html=e.editContent,g=a(function(){if(!(Date.now()-y<1e3*h/2)){var t=$("#name").val(),n=e.editContent;t===v.title&&n===v.html||(v.html=n,v.title=t,u())}},1e3*h)}function u(){if(e.draftsEnabled){var i={name:$("#name").val(),html:m?l.getTrustedHtml(e.displayContent):e.editContent};m&&(i.markdown=e.editContent);var o=window.baseUrl("/ajax/page/"+d+"/save-draft");n.put(o,i).then(function(t){_=!1;var n=r.utc(r.unix(t.data.timestamp)).toDate();e.draftText=t.data.message+r(n).format("HH:mm"),e.isNewPageDraft||(e.isUpdateDraft=!0),f(),y=Date.now()},function(e){_||(t.emit("error",trans("errors.page_draft_autosave_fail")),_=!0)})}}function f(){e.draftUpdated=!0,s(function(){e.draftUpdated=!1},2e3)}e.editorOptions=i(),e.editContent="",e.draftText="";var d=Number(o.pageId),p=0!==d,h=30,m="markdown"===o.editorType;e.draftsEnabled="true"===o.draftsEnabled,e.isUpdateDraft=1===Number(o.pageUpdateDraft),e.isNewPageDraft=1===Number(o.pageNewDraft),e.isUpdateDraft||e.isNewPageDraft?e.draftText=trans("entities.pages_editing_draft"):e.draftText=trans("entities.pages_editing_page");var g=!1,v={title:!1,html:!1};p&&e.draftsEnabled&&setTimeout(function(){c()},1e3),m&&(e.displayContent="",e.editorChange=function(t){e.displayContent=l.trustAsHtml(t)}),m||(e.editorChange=function(){});var y=0,_=!1;e.forceDraftSave=function(){u()},e.$on("save-draft",u),e.discardDraft=function(){var r=window.baseUrl("/ajax/page/"+d);n.get(r).then(function(n){g&&a.cancel(g),e.draftText=trans("entities.pages_editing_page"),e.isUpdateDraft=!1,e.$broadcast("html-update",n.data.html),e.$broadcast("markdown-update",n.data.markdown||n.data.html),$("#name").val(n.data.name),s(function(){c()},1e3),t.emit("success",trans("entities.pages_draft_discarded"))})}}])}},{"./pages/page-form":453,moment:421,"moment/locale/en-gb":420}],450:[function(e,t,n){"use strict";var r=e("markdown-it"),i=e("markdown-it-task-lists"),o=e("./code");t.exports=function(e,t){e.directive("tinymce",["$timeout",function(e){return{restrict:"A",scope:{tinymce:"=",mceModel:"=",mceChange:"="},link:function(t,n,r){function i(n){n.on("ExecCommand change input NodeChange ObjectResized",function(r){var i=n.getContent();e(function(){t.mceModel=i}),t.mceChange(i)}),n.on("keydown",function(e){83===e.keyCode&&(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&(e.preventDefault(),t.$emit("save-draft",e))}),n.on("init",function(e){t.mceModel=n.getContent()}),t.$on("html-update",function(e,r){n.setContent(r),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),t.mceModel=n.getContent()})}t.tinymce.extraSetups.push(i),tinymce.init(t.tinymce)}}}]);var n=new r({html:!0});n.use(i,{label:!0}),e.directive("markdownInput",["$timeout",function(e){return{restrict:"A",scope:{mdModel:"=",mdChange:"="},link:function(r,i,a){function s(e,t){var n=g.getValue(),r=g.listSelections();g.setValue(n.replace(e,t)),g.setSelections(r)}function l(e){var t=g.getCursor(),n=g.getLine(t.line),r=n.length,i=n.split(" ")[0];if(i===e)return n=n.replace(e+" ",""),g.replaceRange(n,{line:t.line,ch:0},{line:t.line,ch:r}),void g.setCursor({line:t.line,ch:t.ch-(e.length+1)});var o=/^[#>`]/.test(i),a=0;o?(a=e.length-i.length,n=n.replace(i,e).trim()):""!==e&&(a=e.length+1,n=e+" "+n),g.replaceRange(n,{line:t.line,ch:0},{line:t.line,ch:r}),g.setCursor({line:t.line,ch:t.ch+a})}function c(e,t){var n=g.getCursor(),r=g.getLine(n.line),i=r.length,o=r;o=0===r.indexOf(e)&&r.slice(-t.length)===t?r.slice(e.length,r.length-t.length):""+e+r+t,g.replaceRange(o,{line:n.line,ch:0},{line:n.line,ch:i}),g.setCursor({line:n.line,ch:n.ch+e.length})}function u(e,t){var n=g.getSelection();if(""===n)return c(e,t);var r=n,i=0;0===n.indexOf(e)&&n.slice(-t.length)===t?(r=n.slice(e.length,n.length-t.length),i=-(t.length+e.length)):(r=""+e+n+t,i=e.length+t.length);var o=g.listSelections()[0];g.replaceSelection(r);var a=o.head.ch<=o.anchor.ch;o.head.ch+=a?0:i,o.anchor.ch+=a?i:0,g.setSelections([o])}function f(e){if(null!==e&&0===e.type.indexOf("image")){var n="png";if(e.name){var r=e.name.match(/\.(.+)$/);r.length>1&&(n=r[1])}var i="image-"+Math.random().toString(16).slice(2),o=window.baseUrl("/loading.gif#upload"+i),a=g.getSelection(),l="!["+a+"]("+o+")";g.replaceSelection(l);var c="image-"+Date.now()+"."+n,u=new FormData;u.append("file",e,c),window.$http.post("/images/gallery/upload",u).then(function(e){s(o,e.data.thumbs.display)}).catch(function(e){t.emit("error",trans("errors.image_upload_error")),s(l,a),console.log(e)})}}function d(){var e=g.getCursor("from");window.EntitySelectorPopup.show(function(t){var n=g.getSelection()||t.name,r="["+n+"]("+t.link+")";g.focus(),g.replaceSelection(r),g.setCursor(e.line,e.ch+r.length)})}function p(){var e=g.getCursor("from"),t=g.getSelection()||"",n="["+t+"]()";g.focus(),g.replaceSelection(n);var r=""===t?-3:-1;g.setCursor(e.line,e.ch+n.length+r)}function h(){var e=g.getCursor("from");window.ImageManager.show(function(t){var n=g.getSelection(),r="!["+(n||t.name)+"]("+t.thumbs.display+")";g.focus(),g.replaceSelection(r),g.setCursor(e.line,e.ch+r.length)})}function m(t){var o=t.getValue();i.val(o),e(function(){r.mdModel=o,r.mdChange(n.render(o))})}i=i.find("textarea").first();var g=o.markdownEditor(i[0]),v=o.getMetaKey(),y={};y[v+"-Alt-I"]=function(e){var t=e.getSelection(),n="!["+t+"](http://)",r=e.getCursor("from");e.replaceSelection(n),e.setCursor(r.line,r.ch+n.length-1)},y[v+"-S"]=function(e){r.$emit("save-draft")},y["Shift-"+v+"-K"]=function(e){d()},y[v+"-K"]=function(e){p()},y[v+"-1"]=function(e){l("##")},y[v+"-2"]=function(e){l("###")},y[v+"-3"]=function(e){l("####")},y[v+"-4"]=function(e){l("#####")},y[v+"-5"]=function(e){l("")},y[v+"-d"]=function(e){l("")},y[v+"-6"]=function(e){l(">")},y[v+"-q"]=function(e){l(">")},y[v+"-7"]=function(e){u("\n```\n","\n```")},y[v+"-8"]=function(e){u("`","`")},y["Shift-"+v+"-E"]=function(e){u("`","`")},y[v+"-9"]=function(e){u('<p class="callout info">',"</p>")},g.setOption("extraKeys",y),g.on("change",function(e,t){m(e)}),g.on("scroll",function(e){var t=e.getScrollInfo();if(t.top+t.clientHeight===t.height)return void r.$emit("markdown-scroll",-1);var i=e.lineAtHeight(t.top,"local"),o=e.getRange({line:0,ch:null},{line:i,ch:null}),a=new DOMParser,s=a.parseFromString(n.render(o),"text/html"),l=s.documentElement.querySelectorAll("body > *");r.$emit("markdown-scroll",l.length)}),g.on("paste",function(e,t){if(t.clipboardData&&t.clipboardData.items)for(var n=0;n<t.clipboardData.items.length;n++)f(t.clipboardData.items[n].getAsFile())}),g.on("drop",function(e,t){t.stopPropagation(),t.preventDefault();var n=e.coordsChar({left:t.pageX,top:t.pageY});if(e.setCursor(n),t.dataTransfer&&t.dataTransfer.files)for(var r=0;r<t.dataTransfer.files.length;r++)f(t.dataTransfer.files[r])}),m(g),r.$on("md-insert-link",d),r.$on("md-insert-image",h),r.$on("markdown-update",function(e,t){g.setValue(t),i.val(t),r.mdModel=t,r.mdChange(n.render(t))})}}}]),e.directive("markdownEditor",["$timeout","$rootScope",function(e,t){return{restrict:"A",link:function(e,n,r){var i=n.find(".markdown-display").first(),o=n.find('button[data-action="insertImage"]'),a=n.find('button[data-action="insertEntityLink"]');i.on("click","a",function(e){e.preventDefault(),window.open(this.getAttribute("href"))}),a.click(function(t){e.$broadcast("md-insert-link")}),o.click(function(t){e.$broadcast("md-insert-image")}),t.$on("markdown-scroll",function(e,t){var n=i[0].children[0].children;if(n.length>t){var r=-1===t?n[n.length-1]:n[t];i.animate({scrollTop:r.offsetTop},{queue:!1,duration:200,easing:"linear"})}})}}}]),e.directive("toolbox",[function(){return{restrict:"A",link:function(e,t,n){function r(e,n){i.removeClass("active"),o.hide(),i.filter('[toolbox-tab-button="'+e+'"]').addClass("active"),o.filter('[toolbox-tab-content="'+e+'"]').show(),n&&t.addClass("open")}var i=t.find("[toolbox-tab-button]"),o=t.find("[toolbox-tab-content]");t.find("[toolbox-toggle]").click(function(e){t.toggleClass("open")}),r(o.first().attr("toolbox-tab-content"),!1),i.click(function(e){r($(this).attr("toolbox-tab-button"),!0)})}}}])}},{"./code":436,"markdown-it":363,"markdown-it-task-lists":362}],451:[function(e,t,n){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this,n=this;if(!document.documentElement.contains(t))return null;do{if(n.matches(e))return n;n=n.parentElement}while(null!==n);return null})},{}],452:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();e("babel-polyfill"),e("./dom-polyfills"),window.baseUrl=function(e){var t=document.querySelector('meta[name="base-url"]').getAttribute("content");return"/"===t[t.length-1]&&(t=t.slice(0,t.length-1)),"/"===e[0]&&(e=e.slice(1)),t+"/"+e};var o=function(){function e(){r(this,e),this.listeners={},this.stack=[]}return i(e,[{key:"emit",value:function(e,t){if(this.stack.push({name:e,data:t}),void 0===this.listeners[e])return this;for(var n=this.listeners[e],r=0;r<n.length;r++){(0,n[r])(t)}return this}},{key:"listen",value:function(e,t){return void 0===this.listeners[e]&&(this.listeners[e]=[]),this.listeners[e].push(t),this}}]),e}();window.$events=new o;var a=e("vue"),s=e("axios"),l=s.create({headers:{"X-CSRF-TOKEN":document.querySelector("meta[name=token]").getAttribute("content"),baseURL:window.baseUrl("")}});l.interceptors.request.use(function(e){return e},function(e){if(void 0===e.response||void 0===e.response.data)return Promise.reject(e);void 0!==e.response.data.error&&window.$events.emit("error",e.response.data.error),void 0!==e.response.data.message&&window.$events.emit("error",e.response.data.message)}),window.$http=l,a.prototype.$http=l,a.prototype.$events=window.$events;var c=e("angular");e("angular-resource"),e("angular-animate"),e("angular-sanitize"),e("angular-ui-sortable");var u=c.module("bookStack",["ngResource","ngAnimate","ngSanitize","ui.sortable"]),f=e("./translations"),d=new f(window.translations);window.trans=d.get.bind(d),window.trans_choice=d.getPlural.bind(d),e("./vues/vues"),e("./components");var p=e("./directives"),h=e("./controllers");p(u,window.$events),h(u,window.$events),window.scrollToElement=function(e){if(e){var t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,n=e.getBoundingClientRect().top+t;$("html, body").animate({scrollTop:n-60},300)}},window.scrollAndHighlight=function(e){if(e){window.scrollToElement(e);var t=document.getElementById("custom-styles").getAttribute("data-color-light"),n=window.getComputedStyle(e).getPropertyValue("background-color");e.style.backgroundColor=t,setTimeout(function(){e.classList.add("selectFade"),e.style.backgroundColor=n},10),setTimeout(function(){e.classList.remove("selectFade"),e.style.backgroundColor=""},3e3)}},jQuery.fn.smoothScrollTo=function(){if(0!==this.length)return window.scrollToElement(this[0]),this},jQuery.expr[":"].contains=$.expr.createPseudo(function(e){return function(t){return $(t).text().toUpperCase().indexOf(e.toUpperCase())>=0}}),(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0||-1!==navigator.userAgent.indexOf("Safari"))&&document.body.classList.add("flexbox-support"),e("./pages/page-show")},{"./components":443,"./controllers":449,"./directives":450,"./dom-polyfills":451,"./pages/page-show":454,"./translations":455,"./vues/vues":464,angular:9,"angular-animate":2,"angular-resource":4,"angular-sanitize":6,"angular-ui-sortable":7,axios:10,"babel-polyfill":35,vue:434}],453:[function(e,t,n){"use strict";function r(e,t){if(e.clipboardData){var n=e.clipboardData.items;if(n)for(var r=0;r<n.length;r++){var i=function(e){if(-1===n[e].type.indexOf("image"))return{v:void 0};var r=n[e].getAsFile(),i=new FormData,o="png",a=new XMLHttpRequest;if(r.name){var s=r.name.match(/\.(.+)$/);s&&(o=s[1])}var l="image-"+Math.random().toString(16).slice(2),c=window.baseUrl("/loading.gif");t.execCommand("mceInsertContent",!1,'<img src="'+c+'" id="'+l+'">');var u="image-"+Date.now()+"."+o;i.append("file",r,u),i.append("_token",document.querySelector('meta[name="token"]').getAttribute("content")),a.open("POST",window.baseUrl("/images/gallery/upload")),a.onload=function(){if(200===a.status||201===a.status){var e=JSON.parse(a.responseText);t.dom.setAttrib(l,"src",e.thumbs.display)}else console.log("An error occurred uploading the image",a.responseText),t.dom.remove(l)},a.send(i)}(r);if("object"===(void 0===i?"undefined":s(i)))return i.v}}}function i(e){for(var t=1;t<5;t++)e.shortcuts.add("meta+"+t,"",["FormatBlock",!1,"h"+(t+1)]);e.shortcuts.add("meta+5","",["FormatBlock",!1,"p"]),e.shortcuts.add("meta+d","",["FormatBlock",!1,"p"]),e.shortcuts.add("meta+6","",["FormatBlock",!1,"blockquote"]),e.shortcuts.add("meta+q","",["FormatBlock",!1,"blockquote"]),e.shortcuts.add("meta+7","",["codeeditor",!1,"pre"]),e.shortcuts.add("meta+e","",["codeeditor",!1,"pre"]),e.shortcuts.add("meta+8","",["FormatBlock",!1,"code"]),e.shortcuts.add("meta+shift+E","",["FormatBlock",!1,"code"]),e.shortcuts.add("meta+9","",function(){var t=e.selection.getNode(),n=["info","success","warning","danger"];if(!t||-1===t.className.indexOf("callout"))return void e.formatter.apply("calloutinfo");for(var r=0;r<n.length;r++)if(-1!==t.className.indexOf(n[r])){var i=r===n.length-1?n[0]:n[r+1];return void e.formatter.apply("callout"+i)}e.formatter.apply("p")})}function o(){function e(e){return"CodeMirrorContainer"===e.className}function t(t){var n=t.selection.getNode();if(!e(n)){var r=t.selection.getNode().textContent;return void window.vues["code-editor"].open(r,"",function(e,n){var r=document.createElement("div");r.innerHTML='<pre><code class="language-'+n+'"></code></pre>',r.querySelector("code").innerText=e,t.formatter.toggle("pre");var i=t.selection.getNode();t.dom.setHTML(i,r.querySelector("pre").innerHTML),t.fire("SetContent")})}var i=n.hasAttribute("data-lang")?n.getAttribute("data-lang"):"",o=n.querySelector("textarea").textContent;window.vues["code-editor"].open(o,i,function(e,t){var r=n.querySelector(".CodeMirror"),i=r.CodeMirror;i&&(l.setContent(i,e),l.setMode(i,t));var o=n.querySelector("textarea");o&&(o.textContent=e),n.setAttribute("data-lang",t)})}function n(e){var t=e[0].querySelector("textarea"),n=t.textContent,r=e[0].getAttribute("data-lang");e.removeAttr("contentEditable");var i=$("<pre></pre>");i.append($("<code></code>").each(function(e,t){t.textContent=n}).attr("class","language-"+r)),e.replaceWith(i)}window.tinymce.PluginManager.add("codeeditor",function(r,i){var o=r.$;r.addButton("codeeditor",{text:"Code block",icon:!1,cmd:"codeeditor"}),r.addCommand("codeeditor",function(){t(r)}),r.on("PreProcess",function(e){o("div.CodeMirrorContainer",e.node).each(function(e,t){n(o(t))})}),r.on("dblclick",function(n){e(r.selection.getNode())&&t(r)}),r.on("SetContent",function(){o(".CodeMirrorContainer").filter(function(e,t){return void 0===t.querySelector(".CodeMirror").CodeMirror}).each(function(e,t){n(o(t))});var e=o("body > pre").filter(function(e,t){return"false"!==t.contentEditable});e.length&&r.undoManager.transact(function(){e.each(function(e,t){l.wysiwygView(t)})})})})}function a(){window.tinymce.PluginManager.add("customhr",function(e){e.addCommand("InsertHorizontalRule",function(){var t=document.createElement("hr"),n=e.selection.getNode();n.parentNode.insertBefore(t,n)}),e.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),e.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})})}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=e("../code");t.exports=function(){a(),o();var e={selector:"#html-editor",content_css:[window.baseUrl("/css/styles.css"),window.baseUrl("/libs/material-design-iconic-font/css/material-design-iconic-font.min.css")],branding:!1,body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,remove_script_host:!1,document_base_url:window.baseUrl("/"),statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*]",automatic_uploads:!1,valid_children:"-div[p|h1|h2|h3|h4|h5|h6|blockquote],+div[pre]",plugins:"image table textcolor paste link autolink fullscreen imagetools code customhr autosave lists codeeditor",imagetools_toolbar:"imageoptions",toolbar:"undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr | removeformat code fullscreen",content_style:"body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",style_formats:[{title:"Header Large",format:"h2"},{title:"Header Medium",format:"h3"},{title:"Header Small",format:"h4"},{title:"Header Tiny",format:"h5"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Code Block",icon:"code",cmd:"codeeditor",format:"codeeditor"},{title:"Inline Code",icon:"code",inline:"code"},{title:"Callouts",items:[{title:"Info",format:"calloutinfo"},{title:"Success",format:"calloutsuccess"},{title:"Warning",format:"calloutwarning"},{title:"Danger",format:"calloutdanger"}]}],style_formats_merge:!1,formats:{codeeditor:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div"},alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"},calloutsuccess:{block:"p",exact:!0,attributes:{class:"callout success"}},calloutinfo:{block:"p",exact:!0,attributes:{class:"callout info"}},calloutwarning:{block:"p",exact:!0,attributes:{class:"callout warning"}},calloutdanger:{block:"p",exact:!0,attributes:{class:"callout danger"}}},file_browser_callback:function(e,t,n,r){"file"===n&&window.EntitySelectorPopup.show(function(t){var n=r.document.getElementById(e);n.value=t.link,$(n).closest(".mce-form").find("input").eq(2).val(t.name)}),"image"===n&&window.ImageManager.show(function(t){if(r.document.getElementById(e).value=t.url,"createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent("change",!1,!0),r.document.getElementById(e).dispatchEvent(n)}else r.document.getElementById(e).fireEvent("onchange");var i='<a href="'+t.url+'" target="_blank">';i+='<img src="'+t.thumbs.display+'" alt="'+t.name+'">',i+="</a>",r.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,i)})},paste_preprocess:function(e,t){-1!==t.content.indexOf('<img src="file://')&&(t.content="")},extraSetups:[],setup:function(t){function n(e){return e&&!(!e.textContent&&!e.innerText)}for(var o=0;o<e.extraSetups.length;o++)e.extraSetups[o](t);i(t);var a=void 0;t.on("dragstart",function(){var e=t.selection.getNode();"IMG"===e.nodeName&&((a=t.dom.getParent(e,".mceTemp"))||"A"!==e.parentNode.nodeName||n(e.parentNode)||(a=e.parentNode))}),t.on("drop",function(e){var n=t.dom,r=tinymce.dom.RangeUtils.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc());n.getParent(r.startContainer,".mceTemp")?e.preventDefault():a&&(e.preventDefault(),t.undoManager.transact(function(){t.selection.setRng(r),t.selection.setNode(a),n.remove(a)})),a=null}),t.addButton("image-insert",{title:"My title",icon:"image",tooltip:"Insert an image",onclick:function(){window.ImageManager.show(function(e){var n='<a href="'+e.url+'" target="_blank">';n+='<img src="'+e.thumbs.display+'" alt="'+e.name+'">',n+="</a>",t.execCommand("mceInsertContent",!1,n)})}}),t.on("paste",function(e){r(e,t)})}};return e}},{"../code":436}],454:[function(e,t,n){"use strict";var r=e("clipboard"),i=e("../code"),o=window.setupPageShow=function(e){function t(){var t=p?window.baseUrl("/link/"+e+"#"+h):"{{@"+e+"#"+h+"}}";p&&0!==t.indexOf("http")&&(t=window.location.protocol+"//"+window.location.host+t),c.find("input").val(t)}function n(e){var t=document.getElementById(e);$(".page-content [data-highlighted]").attr("data-highlighted","").css("background-color",""),null!==t?window.scrollAndHighlight(t):$(".page-content").find(':contains("'+e+'")').smoothScrollTo()}function o(){g.width(v.width()+15),g.addClass("fixed"),b=!0}function a(){g.css("width","auto"),g.removeClass("fixed"),b=!1}function s(e){var t=m.scrollTop()>_;!t||b&&!e?t||!b&&!e||a():o()}function l(){s(!1)}if(i.highlight(),e){var c=$("#pointer").detach(),u=!1,f=c.children("div.pointer").first(),d=!1,p=!0,h="";c.on("click","input",function(e){$(this).select(),e.stopPropagation()}),c.on("click","span.icon",function(e){var n=$(e.currentTarget);p=!p,n.html(p?'<i class="zmdi zmdi-link"></i>':'<i class="zmdi zmdi-square-down"></i>'),t()});new r("#pointer button");if($(document.body).find("*").on("click focus",function(e){if(u&&!d){$(e.target).is(".zmdi")||1===$(e.target).closest("#pointer").length||(c.detach(),u=!1)}}),$('.page-content [id^="bkmrk"]').on("mouseup keyup",function(e){if(e.stopPropagation(),0!==window.getSelection().toString().length){var n=$(this);h=n.attr("id"),t(),n.before(c),c.show(),u=!0;var r=e.pageX-n.offset().left-f.width()/2;r<0&&(r=0);var i=r/n.width()*100;f.css("left",i+"%"),d=!0,setTimeout(function(){d=!1},100)}}),window.location.hash){n(window.location.hash.replace(/\%20/g," ").substr(1))}$(".sidebar-page-nav").on("click","a",function(e){n(e.target.getAttribute("href").substr(1))});var m=$(window),g=$("#sidebar .scroll-body"),v=g.parent(),y=$(document).height()>m.height()&&g.height()<$(".page-content").height(),_=$("#header").height()+$(".toolbar").height(),b=m.scrollTop()>_;y&&m.width()>1e3&&(m.on("scroll",l),s(!0)),m.on("resize",function(e){y&&m.width()>1e3?(m.on("scroll",l),s(!0)):(m.off("scroll",l),a())})}};t.exports=o},{"../code":436,clipboard:39}],455:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.store=t}return i(e,[{key:"get",value:function(e,t){var n=this.getTransText(e);return this.performReplacements(n,t)}},{key:"getPlural",value:function(e,t,n){for(var r=this.getTransText(e),i=r.split("|"),o=null,a=0,s=i.length;a<s;a++){var l=i[a],c=l.match(/^{([0-9]+)}/);if(null!==c&&Number(c[1])===t){o=l.replace(/^{([0-9]+)}/,"").trim();break}var u=l.match(/^\[([0-9]+),([0-9*]+)]/);if(null!==u){if(Number(u[1])<=t&&("*"===u[2]||Number(u[2])>=t)){o=l.replace(/^\[([0-9]+),([0-9*]+)]/,"").trim();break}}}return null===o&&i.length>1&&(o=1===t?i[0]:i[1]),null===o&&(o=i[0]),this.performReplacements(o,n)}},{key:"getTransText",value:function(e){var t=e.split("."),n=t.reduce(function(e,t){return void 0!==e?e[t]:e},this.store);return void 0===n&&(console.log('Translation with key "'+e+'" does not exist'),n=e),n}},{key:"performReplacements",value:function(e,t){if(!t)return e;var n=e.match(/:([\S]+)/g);return null===n?e:(n.forEach(function(n){var r=n.substring(1);void 0!==t[r]&&(e=e.replace(n,t[r]))}),e)}}]),e}();t.exports=o},{}],456:[function(e,t,n){"use strict";function r(){var e=this;this.pageId=this.$el.getAttribute("page-id"),this.file=this.newFile(),this.$http.get(window.baseUrl("/attachments/get/page/"+this.pageId)).then(function(t){e.files=t.data}).catch(function(t){e.checkValidationErrors("get",t)})}var i=e("vuedraggable"),o=e("./components/dropzone"),a={pageId:null,files:[],fileToEdit:null,file:{},tab:"list",editTab:"file",errors:{link:{},edit:{},delete:{}}},s={dropzone:o,draggable:i},l={newFile:function(){return{page_id:this.pageId}},getFileUrl:function(e){return window.baseUrl("/attachments/"+e.id)},fileSortUpdate:function(){var e=this;this.$http.put(window.baseUrl("/attachments/sort/page/"+this.pageId),{files:this.files}).then(function(t){e.$events.emit("success",t.data.message)}).catch(function(t){e.checkValidationErrors("sort",t)})},startEdit:function(e){this.fileToEdit=Object.assign({},e),this.fileToEdit.link=e.external?e.path:"",this.editTab=e.external?"link":"file"},deleteFile:function(e){var t=this;if(!e.deleting)return e.deleting=!0;this.$http.delete(window.baseUrl("/attachments/"+e.id)).then(function(n){t.$events.emit("success",n.data.message),t.files.splice(t.files.indexOf(e),1)}).catch(function(e){t.checkValidationErrors("delete",e)})},uploadSuccess:function(e){this.files.push(e.data),this.$events.emit("success",trans("entities.attachments_file_uploaded"))},uploadSuccessUpdate:function(e){var t=this.filesIndex(e.data);-1===t?this.files.push(e.data):this.files.splice(t,1,e.data),this.fileToEdit&&this.fileToEdit.id===e.data.id&&(this.fileToEdit=Object.assign({},e.data)),this.$events.emit("success",trans("entities.attachments_file_updated"))},checkValidationErrors:function(e,t){console.error(t),void 0===t.response.data&&void 0===t.response.data.validation||(this.errors[e]=t.response.data.validation,console.log(this.errors[e]))},getUploadUrl:function(e){var t=window.baseUrl("/attachments/upload");return void 0!==e&&(t+="/"+e.id),t},cancelEdit:function(){this.fileToEdit=null},attachNewLink:function(e){var t=this;e.uploaded_to=this.pageId,this.$http.post(window.baseUrl("/attachments/link"),e).then(function(e){t.files.push(e.data),t.file=t.newFile(),t.$events.emit("success",trans("entities.attachments_link_attached"))}).catch(function(e){t.checkValidationErrors("link",e)})},updateFile:function(e){var t=this;$http.put(window.baseUrl("/attachments/"+e.id),e).then(function(n){var r=t.filesIndex(n.data);-1===r?t.files.push(n.data):t.files.splice(r,1,n.data),t.fileToEdit&&!e.external&&(t.fileToEdit.link=""),t.fileToEdit=!1,t.$events.emit("success",trans("entities.attachments_updated_success"))}).catch(function(e){t.checkValidationErrors("edit",e)})},filesIndex:function(e){for(var t=0,n=this.files.length;t<n;t++)if(this.files[t].id===e.id)return t;return-1}};t.exports={data:a,methods:l,mounted:r,components:s}},{"./components/dropzone":459,vuedraggable:435}],457:[function(e,t,n){"use strict";var r=e("../code"),i={show:function(){this.editor||(this.editor=r.popupEditor(this.$refs.editor,this.language)),this.$refs.overlay.style.display="flex"},hide:function(){this.$refs.overlay.style.display="none"},updateEditorMode:function(e){r.setMode(this.editor,e)},updateLanguage:function(e){this.language=e,this.updateEditorMode(e)},open:function(e,t,n){this.show(),this.updateEditorMode(t),this.language=t,r.setContent(this.editor,e),this.code=e,this.callback=n},save:function(){this.callback&&(this.callback(this.editor.getValue(),this.language),this.hide())}},o={editor:null,language:"",code:"",callback:null};t.exports={methods:i,data:o}},{"../code":436}],458:[function(e,t,n){"use strict";function r(){return{suggestions:[],showSuggestions:!1,active:0}}function i(e){var t=e.parentNode.parentNode,n=t.querySelector('[autosuggest-type="name"]');return null===n?"":n.value}var o={},a=["url","type","value","placeholder","name"],s={inputUpdate:function(e){var t=this;this.$emit("input",e);var n={};if("value"===this.type){var r=i(this.$el);""!==r&&(n.name=r)}this.getSuggestions(e.slice(0,3),n).then(function(n){if(0===e.length)return void t.displaySuggestions(n.slice(0,6));n=n.filter(function(t){return-1!==t.toLowerCase().indexOf(e.toLowerCase())}).slice(0,4),t.displaySuggestions(n)})},inputBlur:function(){var e=this;setTimeout(function(){e.$emit("blur"),e.showSuggestions=!1},100)},inputKeydown:function(e){13===e.keyCode&&e.preventDefault(),this.showSuggestions&&(40===e.keyCode?this.active=this.active===this.suggestions.length-1?0:this.active+1:38===e.keyCode?this.active=0===this.active?this.suggestions.length-1:this.active-1:13!==e.keyCode&&9!==e.keyCode||e.shiftKey?27===e.keyCode&&(this.showSuggestions=!1):this.selectSuggestion(this.suggestions[this.active]))},displaySuggestions:function(e){if(0===e.length)return this.suggestions=[],void(this.showSuggestions=!1);this.suggestions=e,this.showSuggestions=!0,this.active=0},selectSuggestion:function(e){this.$refs.input.value=e,this.$refs.input.focus(),this.$emit("input",e),this.showSuggestions=!1},getSuggestions:function(e,t){t.search=e;var n=this.url+":"+JSON.stringify(t);return void 0!==o[n]?Promise.resolve(o[n]):this.$http.get(this.url,{params:t}).then(function(e){return o[n]=e.data,e.data})}},l=[];t.exports={template:'\n    <div>\n        <input :value="value" :autosuggest-type="type" ref="input"\n            :placeholder="placeholder" :name="name"\n            @input="inputUpdate($event.target.value)" @focus="inputUpdate($event.target.value)"\n            @blur="inputBlur"\n            @keydown="inputKeydown"\n        />\n        <ul class="suggestion-box" v-if="showSuggestions">\n            <li v-for="(suggestion, i) in suggestions"\n                @click="selectSuggestion(suggestion)"\n                :class="{active: (i === active)}">{{suggestion}}</li>\n        </ul>\n    </div>\n    \n',data:r,props:a,methods:s,computed:l}},{}],459:[function(e,t,n){"use strict";function r(){var e=this.$el,t=this;new o(e,{url:function(){return t.uploadUrl},init:function(){var e=this;e.on("sending",function(e,n,r){var i=window.document.querySelector("meta[name=token]").getAttribute("content");r.append("_token",i);var o=void 0===t.uploadedTo?0:t.uploadedTo;r.append("uploaded_to",o)}),e.on("success",function(n,r){t.$emit("success",{file:n,data:r}),$(n.previewElement).fadeOut(400,function(){e.removeFile(n)})}),e.on("error",function(e,n,r){function i(t){$(e.previewElement).find("[data-dz-errormessage]").text(t)}t.$emit("error",{file:e,errorMessage:n,xhr:r}),console.log(n),console.log(r),413===r.status&&i(trans("errors.server_upload_limit")),n.file&&i(n.file[0])})}})}
-function i(){return{}}var o=e("dropzone"),a=["placeholder","uploadUrl","uploadedTo"];t.exports={template:'\n    <div class="dropzone-container">\n        <div class="dz-message">{{placeholder}}</div>\n    </div>\n',props:a,mounted:r,data:i}},{dropzone:355}],460:[function(e,t,n){"use strict";function r(){this.id=Number(this.$el.getAttribute("entity-id")),this.type=this.$el.getAttribute("entity-type")}var i={id:null,type:"",searching:!1,searchTerm:"",searchResults:""},o={},a={searchBook:function(){var e=this;if(0!==this.searchTerm.trim().length){this.searching=!0,this.searchResults="";var t=window.baseUrl("/search/"+this.type+"/"+this.id);t+="?term="+encodeURIComponent(this.searchTerm),this.$http.get(t).then(function(t){e.searchResults=t.data})}},checkSearchForm:function(){this.searching=this.searchTerm>0},clearSearch:function(){this.searching=!1,this.searchTerm=""}};t.exports={data:i,computed:o,methods:a,mounted:r}},{}],461:[function(e,t,n){"use strict";function r(){window.ImageManager=this,this.imageType=this.$el.getAttribute("image-type"),this.uploadedTo=this.$el.getAttribute("uploaded-to"),u=window.baseUrl("/images/"+this.imageType+"/all/")}var i=e("./components/dropzone"),o=0,a=0,s=0,l=!1,c=!1,u="",f=[],d=!1,p={images:[],imageType:!1,uploadedTo:!1,selectedImage:!1,dependantPages:!1,showing:!1,view:"all",hasMore:!1,searching:!1,searchTerm:"",imageUpdateSuccess:!1,imageDeleteSuccess:!1},h={show:function(e){c=e,this.showing=!0,this.$el.children[0].components.overlay.show(),l||(this.fetchData(),l=!0)},hide:function(){this.showing=!1,this.$el.children[0].components.overlay.hide()},fetchData:function(){var e=this,t=u+o,n={};!1!==this.uploadedTo&&(n.page_id=this.uploadedTo),this.searching&&(n.term=this.searchTerm),this.$http.get(t,{params:n}).then(function(t){e.images=e.images.concat(t.data.images),e.hasMore=t.data.hasMore,o++})},setView:function(e){this.cancelSearch(),this.images=[],this.hasMore=!1,o=0,this.view=e,u=window.baseUrl("/images/"+this.imageType+"/"+e+"/"),this.fetchData()},searchImages:function(){if(""===this.searchTerm)return this.cancelSearch();this.searching||(f=this.images,d=this.hasMore),this.searching=!0,this.images=[],this.hasMore=!1,o=0,u=window.baseUrl("/images/"+this.imageType+"/search/"),this.fetchData()},cancelSearch:function(){this.searching=!1,this.searchTerm="",this.images=f,this.hasMore=d},imageSelect:function(e){var t=Date.now();t-a<300&&e.id===s?this.callbackAndHide(e):(this.selectedImage=e,this.dependantPages=!1),a=t,s=e.id},callbackAndHide:function(e){c&&c(e),this.hide()},saveImageDetails:function(){var e=this,t=window.baseUrl("/images/update/"+this.selectedImage.id);this.$http.put(t,this.selectedImage).then(function(t){e.$events.emit("success",trans("components.image_update_success"))}).catch(function(t){if(422===t.response.status){var n=t.response.data,r="";Object.keys(n).forEach(function(e){r+=n[e].join("\n")}),e.$events.emit("error",r)}})},deleteImage:function(){var e=this,t=!1!==this.dependantPages,n=window.baseUrl("/images/"+this.selectedImage.id);t&&(n+="?force=true"),this.$http.delete(n).then(function(t){e.images.splice(e.images.indexOf(e.selectedImage),1),e.selectedImage=!1,e.$events.emit("success",trans("components.image_delete_success"))}).catch(function(t){400===t.response.status&&(e.dependantPages=t.response.data)})},getDate:function(e){return new Date(e)},uploadSuccess:function(e){this.images.unshift(e.data),this.$events.emit("success",trans("components.image_upload_success"))}},m={uploadUrl:function(){return window.baseUrl("/images/"+this.imageType+"/upload")}};t.exports={mounted:r,methods:h,data:p,computed:m,components:{dropzone:i}}},{"./components/dropzone":459}],462:[function(e,t,n){"use strict";function r(){this.termString=document.querySelector("[name=searchTerm]").value,this.typeParse(this.termString),this.exactParse(this.termString),this.tagParse(this.termString),this.optionParse(this.termString),this.dateParse(this.termString)}var i=e("moment"),o={terms:"",termString:"",search:{type:{page:!0,chapter:!0,book:!0},exactTerms:[],tagTerms:[],option:{},dates:{updated_after:!1,updated_before:!1,created_after:!1,created_before:!1}}},a={},s={appendTerm:function(e){this.termString+=" "+e,this.termString=this.termString.replace(/\s{2,}/g," "),this.termString=this.termString.replace(/^\s+/,""),this.termString=this.termString.replace(/\s+$/,"")},exactParse:function(e){this.search.exactTerms=[];for(var t=/"(.+?)"/g,n=void 0;null!==(n=t.exec(e));)this.search.exactTerms.push(n[1])},exactChange:function(){this.termString=this.termString.replace(/"(.+?)"/g,"");var e=this.search.exactTerms.filter(function(e){return""!==e.trim()}).map(function(e){return'"'+e+'"'}).join(" ");this.appendTerm(e)},addExact:function(){this.search.exactTerms.push(""),setTimeout(function(){var e=document.querySelectorAll(".exact-input");e[e.length-1].focus()},100)},removeExact:function(e){this.search.exactTerms.splice(e,1),this.exactChange()},tagParse:function(e){this.search.tagTerms=[];for(var t=/\[(.+?)\]/g,n=void 0;null!==(n=t.exec(e));)this.search.tagTerms.push(n[1])},tagChange:function(){this.termString=this.termString.replace(/\[(.+?)\]/g,"");var e=this.search.tagTerms.filter(function(e){return""!==e.trim()}).map(function(e){return"["+e+"]"}).join(" ");this.appendTerm(e)},addTag:function(){this.search.tagTerms.push(""),setTimeout(function(){var e=document.querySelectorAll(".tag-input");e[e.length-1].focus()},100)},removeTag:function(e){this.search.tagTerms.splice(e,1),this.tagChange()},typeParse:function(e){var t=e.match(/{\s?type:\s?(.*?)\s?}/),n=this.search.type;if(!t)return void(n.page=n.book=n.chapter=!0);var r=t[1].replace(/ /g,"").split("|");n.page=-1!==r.indexOf("page"),n.chapter=-1!==r.indexOf("chapter"),n.book=-1!==r.indexOf("book")},typeChange:function(){var e=this,t=/{\s?type:\s?(.*?)\s?}/,n=this.search.type;if(n.page===n.chapter&&n.page===n.book)return void(this.termString=this.termString.replace(t,""));var r=Object.keys(n).filter(function(t){return e.search.type[t]}).join("|"),i="{type:"+r+"}";if(this.termString.match(t))return void(this.termString=this.termString.replace(t,i));this.appendTerm(i)},optionParse:function(e){for(var t=/{([a-z_\-:]+?)}/gi,n=void 0;null!==(n=t.exec(e));)this.search.option[n[1].toLowerCase()]=!0},optionChange:function(e){this.search.option[e]?this.appendTerm("{"+e+"}"):this.termString=this.termString.replace("{"+e+"}","")},updateSearch:function(e){e.preventDefault(),window.location=window.baseUrl("/search?term="+encodeURIComponent(this.termString))},enableDate:function(e){this.search.dates[e.toLowerCase()]=i().format("YYYY-MM-DD"),this.dateChange(e)},dateParse:function(e){for(var t=/{([a-z_\-]+?):([a-z_\-0-9]+?)}/gi,n=Object.keys(this.search.dates),r=void 0;null!==(r=t.exec(e));)-1!==n.indexOf(r[1])&&(this.search.dates[r[1].toLowerCase()]=r[2])},dateChange:function(e){var t=new RegExp("{\\s?"+e+"\\s?:([a-z_\\-0-9]+?)}","gi");this.termString=this.termString.replace(t,""),this.search.dates[e]&&this.appendTerm("{"+e+":"+this.search.dates[e]+"}")},dateRemove:function(e){this.search.dates[e]=!1,this.dateChange(e)}};t.exports={data:o,computed:a,methods:s,created:r}},{moment:421}],463:[function(e,t,n){"use strict";function r(){var e=this;this.pageId=Number(this.$el.getAttribute("page-id"));var t=window.baseUrl("/ajax/tags/get/page/"+this.pageId);this.$http.get(t).then(function(t){for(var n=t.data,r=0,i=n.length;r<i;r++)n[r].key=Math.random().toString(36).substring(7);e.tags=n,e.addEmptyTag()})}var i=e("vuedraggable"),o=e("./components/autosuggest"),a={pageId:!1,tags:[]},s={draggable:i,autosuggest:o},l={},c={},u={addEmptyTag:function(){this.tags.push({name:"",value:"",key:Math.random().toString(36).substring(7)})},tagChange:function(e){this.tags.indexOf(e)!==this.tags.length-1||""===e.name&&""===e.value||this.addEmptyTag()},tagBlur:function(e){var t=this.tags.indexOf(e)===this.tags.length-1;if(""===e.name&&""===e.value&&!t){var n=this.tags.indexOf(e);this.tags.splice(n,1)}},removeTag:function(e){var t=this.tags.indexOf(e);-1!==t&&this.tags.splice(t,1)},getTagFieldName:function(e,t){return"tags["+e+"]["+t+"]"}};t.exports={data:a,computed:c,methods:u,mounted:r,components:s,directives:l}},{"./components/autosuggest":458,vuedraggable:435}],464:[function(e,t,n){"use strict";var r=e("vue"),i={"search-system":e("./search"),"entity-dashboard":e("./entity-dashboard"),"code-editor":e("./code-editor"),"image-manager":e("./image-manager"),"tag-manager":e("./tag-manager"),"attachment-manager":e("./attachment-manager")};window.vues={};for(var o=Object.keys(i),a=0,s=o.length;a<s;a++)if(function(e){return null!==document.getElementById(e)}(o[a])){var l=i[o[a]];l.el="#"+o[a],window.vues[o[a]]=new r(l)}},{"./attachment-manager":456,"./code-editor":457,"./entity-dashboard":460,"./image-manager":461,"./search":462,"./tag-manager":463,vue:434}]},{},[452]);
\ No newline at end of file
+return o(e,[{key:"setupListeners",value:function(){var e=this;this.selectButton.addEventListener("click",function(t){window.EntitySelectorPopup.show(function(t){e.setValue(t.id,t.name)})}),this.resetButton.addEventListener("click",function(t){e.setValue("","")})}},{key:"setValue",value:function(e,t){this.value=e,this.input.value=e,this.controlView(t)}},{key:"controlView",value:function(e){var t=this.value&&0!==this.value;if(i(this.resetButton,t),i(this.buttonSep,t),i(this.defaultDisplay,!t),i(this.display,t),t){var n=this.getAssetIdFromVal();this.display.textContent="#"+n+", "+e,this.display.href=window.baseUrl("/link/"+n)}}},{key:"getAssetIdFromVal",value:function(){return Number(this.value)}}]),e}();t.exports=a},{}],448:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.elem=t,this.toggleElem=t.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}return i(e,[{key:"toggle",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.elem.classList.toggle("open")}}]),e}();t.exports=o},{}],449:[function(e,t,n){"use strict";var r=e("moment");e("moment/locale/en-gb");var i=e("./pages/page-form");r.locale("en-gb"),t.exports=function(e,t){e.controller("PageEditController",["$scope","$http","$attrs","$interval","$timeout","$sce",function(e,n,o,a,s,l){function c(){v.title=$("#name").val(),v.html=e.editContent,g=a(function(){if(!(Date.now()-y<1e3*h/2)){var t=$("#name").val(),n=e.editContent;t===v.title&&n===v.html||(v.html=n,v.title=t,u())}},1e3*h)}function u(){if(e.draftsEnabled){var i={name:$("#name").val(),html:m?l.getTrustedHtml(e.displayContent):e.editContent};m&&(i.markdown=e.editContent);var o=window.baseUrl("/ajax/page/"+d+"/save-draft");n.put(o,i).then(function(t){_=!1;var n=r.utc(r.unix(t.data.timestamp)).toDate();e.draftText=t.data.message+r(n).format("HH:mm"),e.isNewPageDraft||(e.isUpdateDraft=!0),f(),y=Date.now()},function(e){_||(t.emit("error",trans("errors.page_draft_autosave_fail")),_=!0)})}}function f(){e.draftUpdated=!0,s(function(){e.draftUpdated=!1},2e3)}e.editorOptions=i(),e.editContent="",e.draftText="";var d=Number(o.pageId),p=0!==d,h=30,m="markdown"===o.editorType;e.draftsEnabled="true"===o.draftsEnabled,e.isUpdateDraft=1===Number(o.pageUpdateDraft),e.isNewPageDraft=1===Number(o.pageNewDraft),e.isUpdateDraft||e.isNewPageDraft?e.draftText=trans("entities.pages_editing_draft"):e.draftText=trans("entities.pages_editing_page");var g=!1,v={title:!1,html:!1};p&&e.draftsEnabled&&setTimeout(function(){c()},1e3),m&&(e.displayContent="",e.editorChange=function(t){e.displayContent=l.trustAsHtml(t)}),m||(e.editorChange=function(){});var y=0,_=!1;e.forceDraftSave=function(){u()},e.$on("save-draft",u),e.discardDraft=function(){var r=window.baseUrl("/ajax/page/"+d);n.get(r).then(function(n){g&&a.cancel(g),e.draftText=trans("entities.pages_editing_page"),e.isUpdateDraft=!1,e.$broadcast("html-update",n.data.html),e.$broadcast("markdown-update",n.data.markdown||n.data.html),$("#name").val(n.data.name),s(function(){c()},1e3),t.emit("success",trans("entities.pages_draft_discarded"))})}}])}},{"./pages/page-form":453,moment:421,"moment/locale/en-gb":420}],450:[function(e,t,n){"use strict";var r=e("markdown-it"),i=e("markdown-it-task-lists"),o=e("./code");t.exports=function(e,t){e.directive("tinymce",["$timeout",function(e){return{restrict:"A",scope:{tinymce:"=",mceModel:"=",mceChange:"="},link:function(t,n,r){function i(n){n.on("ExecCommand change input NodeChange ObjectResized",function(r){var i=n.getContent();e(function(){t.mceModel=i}),t.mceChange(i)}),n.on("keydown",function(e){83===e.keyCode&&(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&(e.preventDefault(),t.$emit("save-draft",e))}),n.on("init",function(e){t.mceModel=n.getContent()}),t.$on("html-update",function(e,r){n.setContent(r),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),t.mceModel=n.getContent()})}t.tinymce.extraSetups.push(i),tinymce.init(t.tinymce)}}}]);var n=new r({html:!0});n.use(i,{label:!0}),e.directive("markdownInput",["$timeout",function(e){return{restrict:"A",scope:{mdModel:"=",mdChange:"="},link:function(r,i,a){function s(e,t){var n=g.getValue(),r=g.listSelections();g.setValue(n.replace(e,t)),g.setSelections(r)}function l(e){var t=g.getCursor(),n=g.getLine(t.line),r=n.length,i=n.split(" ")[0];if(i===e)return n=n.replace(e+" ",""),g.replaceRange(n,{line:t.line,ch:0},{line:t.line,ch:r}),void g.setCursor({line:t.line,ch:t.ch-(e.length+1)});var o=/^[#>`]/.test(i),a=0;o?(a=e.length-i.length,n=n.replace(i,e).trim()):""!==e&&(a=e.length+1,n=e+" "+n),g.replaceRange(n,{line:t.line,ch:0},{line:t.line,ch:r}),g.setCursor({line:t.line,ch:t.ch+a})}function c(e,t){var n=g.getCursor(),r=g.getLine(n.line),i=r.length,o=r;o=0===r.indexOf(e)&&r.slice(-t.length)===t?r.slice(e.length,r.length-t.length):""+e+r+t,g.replaceRange(o,{line:n.line,ch:0},{line:n.line,ch:i}),g.setCursor({line:n.line,ch:n.ch+e.length})}function u(e,t){var n=g.getSelection();if(""===n)return c(e,t);var r=n,i=0;0===n.indexOf(e)&&n.slice(-t.length)===t?(r=n.slice(e.length,n.length-t.length),i=-(t.length+e.length)):(r=""+e+n+t,i=e.length+t.length);var o=g.listSelections()[0];g.replaceSelection(r);var a=o.head.ch<=o.anchor.ch;o.head.ch+=a?0:i,o.anchor.ch+=a?i:0,g.setSelections([o])}function f(e){if(null!==e&&0===e.type.indexOf("image")){var n="png";if(e.name){var r=e.name.match(/\.(.+)$/);r.length>1&&(n=r[1])}var i="image-"+Math.random().toString(16).slice(2),o=window.baseUrl("/loading.gif#upload"+i),a=g.getSelection(),l="!["+a+"]("+o+")";g.replaceSelection(l);var c="image-"+Date.now()+"."+n,u=new FormData;u.append("file",e,c),window.$http.post("/images/gallery/upload",u).then(function(e){s(o,e.data.thumbs.display)}).catch(function(e){t.emit("error",trans("errors.image_upload_error")),s(l,a),console.log(e)})}}function d(){var e=g.getCursor("from");window.EntitySelectorPopup.show(function(t){var n=g.getSelection()||t.name,r="["+n+"]("+t.link+")";g.focus(),g.replaceSelection(r),g.setCursor(e.line,e.ch+r.length)})}function p(){var e=g.getCursor("from"),t=g.getSelection()||"",n="["+t+"]()";g.focus(),g.replaceSelection(n);var r=""===t?-3:-1;g.setCursor(e.line,e.ch+n.length+r)}function h(){var e=g.getCursor("from");window.ImageManager.show(function(t){var n=g.getSelection(),r="!["+(n||t.name)+"]("+t.thumbs.display+")";g.focus(),g.replaceSelection(r),g.setCursor(e.line,e.ch+r.length)})}function m(t){var o=t.getValue();i.val(o),e(function(){r.mdModel=o,r.mdChange(n.render(o))})}i=i.find("textarea").first();var g=o.markdownEditor(i[0]),v=o.getMetaKey(),y={};y[v+"-Alt-I"]=function(e){var t=e.getSelection(),n="!["+t+"](http://)",r=e.getCursor("from");e.replaceSelection(n),e.setCursor(r.line,r.ch+n.length-1)},y[v+"-S"]=function(e){r.$emit("save-draft")},y["Shift-"+v+"-K"]=function(e){d()},y[v+"-K"]=function(e){p()},y[v+"-1"]=function(e){l("##")},y[v+"-2"]=function(e){l("###")},y[v+"-3"]=function(e){l("####")},y[v+"-4"]=function(e){l("#####")},y[v+"-5"]=function(e){l("")},y[v+"-d"]=function(e){l("")},y[v+"-6"]=function(e){l(">")},y[v+"-q"]=function(e){l(">")},y[v+"-7"]=function(e){u("\n```\n","\n```")},y[v+"-8"]=function(e){u("`","`")},y["Shift-"+v+"-E"]=function(e){u("`","`")},y[v+"-9"]=function(e){u('<p class="callout info">',"</p>")},g.setOption("extraKeys",y),g.on("change",function(e,t){m(e)}),g.on("scroll",function(e){var t=e.getScrollInfo();if(t.top+t.clientHeight===t.height)return void r.$emit("markdown-scroll",-1);var i=e.lineAtHeight(t.top,"local"),o=e.getRange({line:0,ch:null},{line:i,ch:null}),a=new DOMParser,s=a.parseFromString(n.render(o),"text/html"),l=s.documentElement.querySelectorAll("body > *");r.$emit("markdown-scroll",l.length)}),g.on("paste",function(e,t){if(t.clipboardData&&t.clipboardData.items)for(var n=0;n<t.clipboardData.items.length;n++)f(t.clipboardData.items[n].getAsFile())}),g.on("drop",function(e,t){t.stopPropagation(),t.preventDefault();var n=e.coordsChar({left:t.pageX,top:t.pageY});if(e.setCursor(n),t.dataTransfer&&t.dataTransfer.files)for(var r=0;r<t.dataTransfer.files.length;r++)f(t.dataTransfer.files[r])}),m(g),r.$on("md-insert-link",d),r.$on("md-insert-image",h),r.$on("markdown-update",function(e,t){g.setValue(t),i.val(t),r.mdModel=t,r.mdChange(n.render(t))})}}}]),e.directive("markdownEditor",["$timeout","$rootScope",function(e,t){return{restrict:"A",link:function(e,n,r){var i=n.find(".markdown-display").first(),o=n.find('button[data-action="insertImage"]'),a=n.find('button[data-action="insertEntityLink"]');i.on("click","a",function(e){e.preventDefault(),window.open(this.getAttribute("href"))}),a.click(function(t){e.$broadcast("md-insert-link")}),o.click(function(t){e.$broadcast("md-insert-image")}),t.$on("markdown-scroll",function(e,t){var n=i[0].children[0].children;if(n.length>t){var r=-1===t?n[n.length-1]:n[t];i.animate({scrollTop:r.offsetTop},{queue:!1,duration:200,easing:"linear"})}})}}}]),e.directive("toolbox",[function(){return{restrict:"A",link:function(e,t,n){function r(e,n){i.removeClass("active"),o.hide(),i.filter('[toolbox-tab-button="'+e+'"]').addClass("active"),o.filter('[toolbox-tab-content="'+e+'"]').show(),n&&t.addClass("open")}var i=t.find("[toolbox-tab-button]"),o=t.find("[toolbox-tab-content]");t.find("[toolbox-toggle]").click(function(e){t.toggleClass("open")}),r(o.first().attr("toolbox-tab-content"),!1),i.click(function(e){r($(this).attr("toolbox-tab-button"),!0)})}}}])}},{"./code":436,"markdown-it":363,"markdown-it-task-lists":362}],451:[function(e,t,n){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this,n=this;if(!document.documentElement.contains(t))return null;do{if(n.matches(e))return n;n=n.parentElement}while(null!==n);return null})},{}],452:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();e("babel-polyfill"),e("./dom-polyfills"),window.baseUrl=function(e){var t=document.querySelector('meta[name="base-url"]').getAttribute("content");return"/"===t[t.length-1]&&(t=t.slice(0,t.length-1)),"/"===e[0]&&(e=e.slice(1)),t+"/"+e};var o=function(){function e(){r(this,e),this.listeners={},this.stack=[]}return i(e,[{key:"emit",value:function(e,t){if(this.stack.push({name:e,data:t}),void 0===this.listeners[e])return this;for(var n=this.listeners[e],r=0;r<n.length;r++){(0,n[r])(t)}return this}},{key:"listen",value:function(e,t){return void 0===this.listeners[e]&&(this.listeners[e]=[]),this.listeners[e].push(t),this}}]),e}();window.$events=new o;var a=e("vue"),s=e("axios"),l=s.create({headers:{"X-CSRF-TOKEN":document.querySelector("meta[name=token]").getAttribute("content"),baseURL:window.baseUrl("")}});l.interceptors.request.use(function(e){return e},function(e){if(void 0===e.response||void 0===e.response.data)return Promise.reject(e);void 0!==e.response.data.error&&window.$events.emit("error",e.response.data.error),void 0!==e.response.data.message&&window.$events.emit("error",e.response.data.message)}),window.$http=l,a.prototype.$http=l,a.prototype.$events=window.$events;var c=e("angular");e("angular-resource"),e("angular-animate"),e("angular-sanitize"),e("angular-ui-sortable");var u=c.module("bookStack",["ngResource","ngAnimate","ngSanitize","ui.sortable"]),f=e("./translations"),d=new f(window.translations);window.trans=d.get.bind(d),window.trans_choice=d.getPlural.bind(d),e("./vues/vues"),e("./components");var p=e("./directives"),h=e("./controllers");p(u,window.$events),h(u,window.$events),window.scrollToElement=function(e){if(e){var t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,n=e.getBoundingClientRect().top+t;$("html, body").animate({scrollTop:n-60},300)}},window.scrollAndHighlight=function(e){if(e){window.scrollToElement(e);var t=document.getElementById("custom-styles").getAttribute("data-color-light"),n=window.getComputedStyle(e).getPropertyValue("background-color");e.style.backgroundColor=t,setTimeout(function(){e.classList.add("selectFade"),e.style.backgroundColor=n},10),setTimeout(function(){e.classList.remove("selectFade"),e.style.backgroundColor=""},3e3)}},jQuery.fn.smoothScrollTo=function(){if(0!==this.length)return window.scrollToElement(this[0]),this},jQuery.expr[":"].contains=$.expr.createPseudo(function(e){return function(t){return $(t).text().toUpperCase().indexOf(e.toUpperCase())>=0}}),(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0||-1!==navigator.userAgent.indexOf("Safari"))&&document.body.classList.add("flexbox-support"),e("./pages/page-show")},{"./components":443,"./controllers":449,"./directives":450,"./dom-polyfills":451,"./pages/page-show":454,"./translations":455,"./vues/vues":464,angular:9,"angular-animate":2,"angular-resource":4,"angular-sanitize":6,"angular-ui-sortable":7,axios:10,"babel-polyfill":35,vue:434}],453:[function(e,t,n){"use strict";function r(e,t){if(e.clipboardData&&e.clipboardData.items)for(var n=e.clipboardData.items,r=0;r<n.length;r++){(function(r){if(-1===n[r].type.indexOf("image"))return"continue";e.preventDefault();var o="image-"+Math.random().toString(16).slice(2),a=window.baseUrl("/loading.gif"),s=n[r].getAsFile();setTimeout(function(){t.insertContent('<p><img src="'+a+'" id="'+o+'"></p>'),i(s).then(function(e){t.dom.setAttrib(o,"src",e.thumbs.display)}).catch(function(e){t.dom.remove(o),window.$events.emit("error",trans("errors.image_upload_error")),console.log(e)})},10)})(r)}}function i(e){if(null===e||0!==e.type.indexOf("image"))return Promise.reject("Not an image file");var t="png";if(e.name){var n=e.name.match(/\.(.+)$/);n.length>1&&(t=n[1])}var r="image-"+Date.now()+"."+t,i=new FormData;return i.append("file",e,r),window.$http.post("/images/gallery/upload",i).then(function(e){return e.data})}function o(e){for(var t=1;t<5;t++)e.shortcuts.add("meta+"+t,"",["FormatBlock",!1,"h"+(t+1)]);e.shortcuts.add("meta+5","",["FormatBlock",!1,"p"]),e.shortcuts.add("meta+d","",["FormatBlock",!1,"p"]),e.shortcuts.add("meta+6","",["FormatBlock",!1,"blockquote"]),e.shortcuts.add("meta+q","",["FormatBlock",!1,"blockquote"]),e.shortcuts.add("meta+7","",["codeeditor",!1,"pre"]),e.shortcuts.add("meta+e","",["codeeditor",!1,"pre"]),e.shortcuts.add("meta+8","",["FormatBlock",!1,"code"]),e.shortcuts.add("meta+shift+E","",["FormatBlock",!1,"code"]),e.shortcuts.add("meta+9","",function(){var t=e.selection.getNode(),n=["info","success","warning","danger"];if(!t||-1===t.className.indexOf("callout"))return void e.formatter.apply("calloutinfo");for(var r=0;r<n.length;r++)if(-1!==t.className.indexOf(n[r])){var i=r===n.length-1?n[0]:n[r+1];return void e.formatter.apply("callout"+i)}e.formatter.apply("p")})}function a(){function e(e){return"CodeMirrorContainer"===e.className}function t(t){var n=t.selection.getNode();if(!e(n)){var r=t.selection.getNode().textContent;return void window.vues["code-editor"].open(r,"",function(e,n){var r=document.createElement("div");r.innerHTML='<pre><code class="language-'+n+'"></code></pre>',r.querySelector("code").innerText=e,t.formatter.toggle("pre");var i=t.selection.getNode();t.dom.setHTML(i,r.querySelector("pre").innerHTML),t.fire("SetContent")})}var i=n.hasAttribute("data-lang")?n.getAttribute("data-lang"):"",o=n.querySelector("textarea").textContent;window.vues["code-editor"].open(o,i,function(e,t){var r=n.querySelector(".CodeMirror"),i=r.CodeMirror;i&&(l.setContent(i,e),l.setMode(i,t));var o=n.querySelector("textarea");o&&(o.textContent=e),n.setAttribute("data-lang",t)})}function n(e){var t=e[0].querySelector("textarea"),n=t.textContent,r=e[0].getAttribute("data-lang");e.removeAttr("contentEditable");var i=$("<pre></pre>");i.append($("<code></code>").each(function(e,t){t.textContent=n}).attr("class","language-"+r)),e.replaceWith(i)}window.tinymce.PluginManager.add("codeeditor",function(r,i){var o=r.$;r.addButton("codeeditor",{text:"Code block",icon:!1,cmd:"codeeditor"}),r.addCommand("codeeditor",function(){t(r)}),r.on("PreProcess",function(e){o("div.CodeMirrorContainer",e.node).each(function(e,t){n(o(t))})}),r.on("dblclick",function(n){e(r.selection.getNode())&&t(r)}),r.on("SetContent",function(){o(".CodeMirrorContainer").filter(function(e,t){return void 0===t.querySelector(".CodeMirror").CodeMirror}).each(function(e,t){n(o(t))});var e=o("body > pre").filter(function(e,t){return"false"!==t.contentEditable});e.length&&r.undoManager.transact(function(){e.each(function(e,t){l.wysiwygView(t)})})})})}function s(){window.tinymce.PluginManager.add("customhr",function(e){e.addCommand("InsertHorizontalRule",function(){var t=document.createElement("hr"),n=e.selection.getNode();n.parentNode.insertBefore(t,n)}),e.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),e.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})})}var l=e("../code");t.exports=function(){s(),a();var e={selector:"#html-editor",content_css:[window.baseUrl("/css/styles.css"),window.baseUrl("/libs/material-design-iconic-font/css/material-design-iconic-font.min.css")],branding:!1,body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,remove_script_host:!1,document_base_url:window.baseUrl("/"),statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*]",automatic_uploads:!1,valid_children:"-div[p|h1|h2|h3|h4|h5|h6|blockquote],+div[pre]",plugins:"image table textcolor paste link autolink fullscreen imagetools code customhr autosave lists codeeditor",imagetools_toolbar:"imageoptions",toolbar:"undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr | removeformat code fullscreen",content_style:"body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",style_formats:[{title:"Header Large",format:"h2"},{title:"Header Medium",format:"h3"},{title:"Header Small",format:"h4"},{title:"Header Tiny",format:"h5"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Code Block",icon:"code",cmd:"codeeditor",format:"codeeditor"},{title:"Inline Code",icon:"code",inline:"code"},{title:"Callouts",items:[{title:"Info",format:"calloutinfo"},{title:"Success",format:"calloutsuccess"},{title:"Warning",format:"calloutwarning"},{title:"Danger",format:"calloutdanger"}]}],style_formats_merge:!1,formats:{codeeditor:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div"},alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"},calloutsuccess:{block:"p",exact:!0,attributes:{class:"callout success"}},calloutinfo:{block:"p",exact:!0,attributes:{class:"callout info"}},calloutwarning:{block:"p",exact:!0,attributes:{class:"callout warning"}},calloutdanger:{block:"p",exact:!0,attributes:{class:"callout danger"}}},file_browser_callback:function(e,t,n,r){"file"===n&&window.EntitySelectorPopup.show(function(t){var n=r.document.getElementById(e);n.value=t.link,$(n).closest(".mce-form").find("input").eq(2).val(t.name)}),"image"===n&&window.ImageManager.show(function(t){if(r.document.getElementById(e).value=t.url,"createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent("change",!1,!0),r.document.getElementById(e).dispatchEvent(n)}else r.document.getElementById(e).fireEvent("onchange");var i='<a href="'+t.url+'" target="_blank">';i+='<img src="'+t.thumbs.display+'" alt="'+t.name+'">',i+="</a>",r.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,i)})},paste_preprocess:function(e,t){-1!==t.content.indexOf('<img src="file://')&&(t.content="")},extraSetups:[],setup:function(t){function n(e){return e&&!(!e.textContent&&!e.innerText)}for(var i=0;i<e.extraSetups.length;i++)e.extraSetups[i](t);o(t);var a=void 0;t.on("dragstart",function(){var e=t.selection.getNode();"IMG"===e.nodeName&&((a=t.dom.getParent(e,".mceTemp"))||"A"!==e.parentNode.nodeName||n(e.parentNode)||(a=e.parentNode))}),t.on("drop",function(e){var n=t.dom,r=tinymce.dom.RangeUtils.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc());n.getParent(r.startContainer,".mceTemp")?e.preventDefault():a&&(e.preventDefault(),t.undoManager.transact(function(){t.selection.setRng(r),t.selection.setNode(a),n.remove(a)})),a=null}),t.addButton("image-insert",{title:"My title",icon:"image",tooltip:"Insert an image",onclick:function(){window.ImageManager.show(function(e){var n='<a href="'+e.url+'" target="_blank">';n+='<img src="'+e.thumbs.display+'" alt="'+e.name+'">',n+="</a>",t.execCommand("mceInsertContent",!1,n)})}}),t.on("paste",function(e){r(e,t)})}};return e}},{"../code":436}],454:[function(e,t,n){"use strict";var r=e("clipboard"),i=e("../code"),o=window.setupPageShow=function(e){function t(){var t=p?window.baseUrl("/link/"+e+"#"+h):"{{@"+e+"#"+h+"}}";p&&0!==t.indexOf("http")&&(t=window.location.protocol+"//"+window.location.host+t),c.find("input").val(t)}function n(e){var t=document.getElementById(e);$(".page-content [data-highlighted]").attr("data-highlighted","").css("background-color",""),null!==t?window.scrollAndHighlight(t):$(".page-content").find(':contains("'+e+'")').smoothScrollTo()}function o(){g.width(v.width()+15),g.addClass("fixed"),b=!0}function a(){g.css("width","auto"),g.removeClass("fixed"),b=!1}function s(e){var t=m.scrollTop()>_;!t||b&&!e?t||!b&&!e||a():o()}function l(){s(!1)}if(i.highlight(),e){var c=$("#pointer").detach(),u=!1,f=c.children("div.pointer").first(),d=!1,p=!0,h="";c.on("click","input",function(e){$(this).select(),e.stopPropagation()}),c.on("click","span.icon",function(e){var n=$(e.currentTarget);p=!p,n.html(p?'<i class="zmdi zmdi-link"></i>':'<i class="zmdi zmdi-square-down"></i>'),t()});new r("#pointer button");if($(document.body).find("*").on("click focus",function(e){if(u&&!d){$(e.target).is(".zmdi")||1===$(e.target).closest("#pointer").length||(c.detach(),u=!1)}}),$('.page-content [id^="bkmrk"]').on("mouseup keyup",function(e){if(e.stopPropagation(),0!==window.getSelection().toString().length){var n=$(this);h=n.attr("id"),t(),n.before(c),c.show(),u=!0;var r=e.pageX-n.offset().left-f.width()/2;r<0&&(r=0);var i=r/n.width()*100;f.css("left",i+"%"),d=!0,setTimeout(function(){d=!1},100)}}),window.location.hash){n(window.location.hash.replace(/\%20/g," ").substr(1))}$(".sidebar-page-nav").on("click","a",function(e){n(e.target.getAttribute("href").substr(1))});var m=$(window),g=$("#sidebar .scroll-body"),v=g.parent(),y=$(document).height()>m.height()&&g.height()<$(".page-content").height(),_=$("#header").height()+$(".toolbar").height(),b=m.scrollTop()>_;y&&m.width()>1e3&&(m.on("scroll",l),s(!0)),m.on("resize",function(e){y&&m.width()>1e3?(m.on("scroll",l),s(!0)):(m.off("scroll",l),a())})}};t.exports=o},{"../code":436,clipboard:39}],455:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){r(this,e),this.store=t}return i(e,[{key:"get",value:function(e,t){var n=this.getTransText(e);return this.performReplacements(n,t)}},{key:"getPlural",value:function(e,t,n){for(var r=this.getTransText(e),i=r.split("|"),o=null,a=0,s=i.length;a<s;a++){var l=i[a],c=l.match(/^{([0-9]+)}/);if(null!==c&&Number(c[1])===t){o=l.replace(/^{([0-9]+)}/,"").trim();break}var u=l.match(/^\[([0-9]+),([0-9*]+)]/);if(null!==u){if(Number(u[1])<=t&&("*"===u[2]||Number(u[2])>=t)){o=l.replace(/^\[([0-9]+),([0-9*]+)]/,"").trim();break}}}return null===o&&i.length>1&&(o=1===t?i[0]:i[1]),null===o&&(o=i[0]),this.performReplacements(o,n)}},{key:"getTransText",value:function(e){var t=e.split("."),n=t.reduce(function(e,t){return void 0!==e?e[t]:e},this.store);return void 0===n&&(console.log('Translation with key "'+e+'" does not exist'),n=e),n}},{key:"performReplacements",value:function(e,t){if(!t)return e;var n=e.match(/:([\S]+)/g);return null===n?e:(n.forEach(function(n){var r=n.substring(1);void 0!==t[r]&&(e=e.replace(n,t[r]))}),e)}}]),e}();t.exports=o},{}],456:[function(e,t,n){"use strict";function r(){var e=this;this.pageId=this.$el.getAttribute("page-id"),this.file=this.newFile(),this.$http.get(window.baseUrl("/attachments/get/page/"+this.pageId)).then(function(t){e.files=t.data}).catch(function(t){e.checkValidationErrors("get",t)})}var i=e("vuedraggable"),o=e("./components/dropzone"),a={pageId:null,files:[],fileToEdit:null,file:{},tab:"list",editTab:"file",errors:{link:{},edit:{},delete:{}}},s={dropzone:o,draggable:i},l={newFile:function(){return{page_id:this.pageId}},getFileUrl:function(e){return window.baseUrl("/attachments/"+e.id)},fileSortUpdate:function(){var e=this;this.$http.put(window.baseUrl("/attachments/sort/page/"+this.pageId),{files:this.files}).then(function(t){e.$events.emit("success",t.data.message)}).catch(function(t){e.checkValidationErrors("sort",t)})},startEdit:function(e){this.fileToEdit=Object.assign({},e),this.fileToEdit.link=e.external?e.path:"",this.editTab=e.external?"link":"file"},deleteFile:function(e){var t=this;if(!e.deleting)return e.deleting=!0;this.$http.delete(window.baseUrl("/attachments/"+e.id)).then(function(n){t.$events.emit("success",n.data.message),t.files.splice(t.files.indexOf(e),1)}).catch(function(e){t.checkValidationErrors("delete",e)})},uploadSuccess:function(e){this.files.push(e.data),this.$events.emit("success",trans("entities.attachments_file_uploaded"))},uploadSuccessUpdate:function(e){var t=this.filesIndex(e.data);-1===t?this.files.push(e.data):this.files.splice(t,1,e.data),this.fileToEdit&&this.fileToEdit.id===e.data.id&&(this.fileToEdit=Object.assign({},e.data)),this.$events.emit("success",trans("entities.attachments_file_updated"))},checkValidationErrors:function(e,t){console.error(t),void 0===t.response.data&&void 0===t.response.data.validation||(this.errors[e]=t.response.data.validation,console.log(this.errors[e]))},getUploadUrl:function(e){var t=window.baseUrl("/attachments/upload");return void 0!==e&&(t+="/"+e.id),t},cancelEdit:function(){this.fileToEdit=null},attachNewLink:function(e){var t=this;e.uploaded_to=this.pageId,this.$http.post(window.baseUrl("/attachments/link"),e).then(function(e){t.files.push(e.data),t.file=t.newFile(),t.$events.emit("success",trans("entities.attachments_link_attached"))}).catch(function(e){t.checkValidationErrors("link",e)})},updateFile:function(e){var t=this;$http.put(window.baseUrl("/attachments/"+e.id),e).then(function(n){var r=t.filesIndex(n.data);-1===r?t.files.push(n.data):t.files.splice(r,1,n.data),t.fileToEdit&&!e.external&&(t.fileToEdit.link=""),t.fileToEdit=!1,t.$events.emit("success",trans("entities.attachments_updated_success"))}).catch(function(e){t.checkValidationErrors("edit",e)})},filesIndex:function(e){for(var t=0,n=this.files.length;t<n;t++)if(this.files[t].id===e.id)return t;return-1}};t.exports={data:a,methods:l,mounted:r,components:s}},{"./components/dropzone":459,vuedraggable:435}],457:[function(e,t,n){"use strict";var r=e("../code"),i={show:function(){this.editor||(this.editor=r.popupEditor(this.$refs.editor,this.language)),this.$refs.overlay.style.display="flex"},hide:function(){this.$refs.overlay.style.display="none"},updateEditorMode:function(e){r.setMode(this.editor,e)},updateLanguage:function(e){this.language=e,this.updateEditorMode(e)},open:function(e,t,n){this.show(),this.updateEditorMode(t),this.language=t,r.setContent(this.editor,e),this.code=e,this.callback=n},save:function(){this.callback&&(this.callback(this.editor.getValue(),this.language),this.hide())}},o={editor:null,language:"",code:"",callback:null};t.exports={methods:i,data:o}},{"../code":436}],458:[function(e,t,n){"use strict";function r(){return{suggestions:[],showSuggestions:!1,active:0}}function i(e){var t=e.parentNode.parentNode,n=t.querySelector('[autosuggest-type="name"]');return null===n?"":n.value}var o={},a=["url","type","value","placeholder","name"],s={inputUpdate:function(e){var t=this;this.$emit("input",e);var n={};if("value"===this.type){var r=i(this.$el);""!==r&&(n.name=r)}this.getSuggestions(e.slice(0,3),n).then(function(n){if(0===e.length)return void t.displaySuggestions(n.slice(0,6));n=n.filter(function(t){return-1!==t.toLowerCase().indexOf(e.toLowerCase())}).slice(0,4),t.displaySuggestions(n)})},inputBlur:function(){var e=this;setTimeout(function(){e.$emit("blur"),e.showSuggestions=!1},100)},inputKeydown:function(e){13===e.keyCode&&e.preventDefault(),this.showSuggestions&&(40===e.keyCode?this.active=this.active===this.suggestions.length-1?0:this.active+1:38===e.keyCode?this.active=0===this.active?this.suggestions.length-1:this.active-1:13!==e.keyCode&&9!==e.keyCode||e.shiftKey?27===e.keyCode&&(this.showSuggestions=!1):this.selectSuggestion(this.suggestions[this.active]))},displaySuggestions:function(e){if(0===e.length)return this.suggestions=[],void(this.showSuggestions=!1);this.suggestions=e,this.showSuggestions=!0,this.active=0},selectSuggestion:function(e){this.$refs.input.value=e,this.$refs.input.focus(),this.$emit("input",e),this.showSuggestions=!1},getSuggestions:function(e,t){t.search=e;var n=this.url+":"+JSON.stringify(t);return void 0!==o[n]?Promise.resolve(o[n]):this.$http.get(this.url,{params:t}).then(function(e){return o[n]=e.data,e.data})}},l=[];t.exports={template:'\n    <div>\n        <input :value="value" :autosuggest-type="type" ref="input"\n            :placeholder="placeholder" :name="name"\n            @input="inputUpdate($event.target.value)" @focus="inputUpdate($event.target.value)"\n            @blur="inputBlur"\n            @keydown="inputKeydown"\n        />\n        <ul class="suggestion-box" v-if="showSuggestions">\n            <li v-for="(suggestion, i) in suggestions"\n                @click="selectSuggestion(suggestion)"\n                :class="{active: (i === active)}">{{suggestion}}</li>\n        </ul>\n    </div>\n    \n',data:r,props:a,methods:s,computed:l}},{}],459:[function(e,t,n){"use strict";function r(){var e=this.$el,t=this;new o(e,{url:function(){return t.uploadUrl},init:function(){var e=this;e.on("sending",function(e,n,r){var i=window.document.querySelector("meta[name=token]").getAttribute("content");r.append("_token",i);var o=void 0===t.uploadedTo?0:t.uploadedTo;r.append("uploaded_to",o)}),e.on("success",function(n,r){t.$emit("success",{file:n,data:r}),$(n.previewElement).fadeOut(400,function(){e.removeFile(n)})}),e.on("error",function(e,n,r){function i(t){$(e.previewElement).find("[data-dz-errormessage]").text(t)}t.$emit("error",{file:e,errorMessage:n,xhr:r}),console.log(n),console.log(r),413===r.status&&i(trans("errors.server_upload_limit")),n.file&&i(n.file[0])})}})}function i(){return{}}var o=e("dropzone"),a=["placeholder","uploadUrl","uploadedTo"];t.exports={template:'\n    <div class="dropzone-container">\n        <div class="dz-message">{{placeholder}}</div>\n    </div>\n',props:a,mounted:r,data:i}},{
+dropzone:355}],460:[function(e,t,n){"use strict";function r(){this.id=Number(this.$el.getAttribute("entity-id")),this.type=this.$el.getAttribute("entity-type")}var i={id:null,type:"",searching:!1,searchTerm:"",searchResults:""},o={},a={searchBook:function(){var e=this;if(0!==this.searchTerm.trim().length){this.searching=!0,this.searchResults="";var t=window.baseUrl("/search/"+this.type+"/"+this.id);t+="?term="+encodeURIComponent(this.searchTerm),this.$http.get(t).then(function(t){e.searchResults=t.data})}},checkSearchForm:function(){this.searching=this.searchTerm>0},clearSearch:function(){this.searching=!1,this.searchTerm=""}};t.exports={data:i,computed:o,methods:a,mounted:r}},{}],461:[function(e,t,n){"use strict";function r(){window.ImageManager=this,this.imageType=this.$el.getAttribute("image-type"),this.uploadedTo=this.$el.getAttribute("uploaded-to"),u=window.baseUrl("/images/"+this.imageType+"/all/")}var i=e("./components/dropzone"),o=0,a=0,s=0,l=!1,c=!1,u="",f=[],d=!1,p={images:[],imageType:!1,uploadedTo:!1,selectedImage:!1,dependantPages:!1,showing:!1,view:"all",hasMore:!1,searching:!1,searchTerm:"",imageUpdateSuccess:!1,imageDeleteSuccess:!1},h={show:function(e){c=e,this.showing=!0,this.$el.children[0].components.overlay.show(),l||(this.fetchData(),l=!0)},hide:function(){this.showing=!1,this.$el.children[0].components.overlay.hide()},fetchData:function(){var e=this,t=u+o,n={};!1!==this.uploadedTo&&(n.page_id=this.uploadedTo),this.searching&&(n.term=this.searchTerm),this.$http.get(t,{params:n}).then(function(t){e.images=e.images.concat(t.data.images),e.hasMore=t.data.hasMore,o++})},setView:function(e){this.cancelSearch(),this.images=[],this.hasMore=!1,o=0,this.view=e,u=window.baseUrl("/images/"+this.imageType+"/"+e+"/"),this.fetchData()},searchImages:function(){if(""===this.searchTerm)return this.cancelSearch();this.searching||(f=this.images,d=this.hasMore),this.searching=!0,this.images=[],this.hasMore=!1,o=0,u=window.baseUrl("/images/"+this.imageType+"/search/"),this.fetchData()},cancelSearch:function(){this.searching=!1,this.searchTerm="",this.images=f,this.hasMore=d},imageSelect:function(e){var t=Date.now();t-a<300&&e.id===s?this.callbackAndHide(e):(this.selectedImage=e,this.dependantPages=!1),a=t,s=e.id},callbackAndHide:function(e){c&&c(e),this.hide()},saveImageDetails:function(){var e=this,t=window.baseUrl("/images/update/"+this.selectedImage.id);this.$http.put(t,this.selectedImage).then(function(t){e.$events.emit("success",trans("components.image_update_success"))}).catch(function(t){if(422===t.response.status){var n=t.response.data,r="";Object.keys(n).forEach(function(e){r+=n[e].join("\n")}),e.$events.emit("error",r)}})},deleteImage:function(){var e=this,t=!1!==this.dependantPages,n=window.baseUrl("/images/"+this.selectedImage.id);t&&(n+="?force=true"),this.$http.delete(n).then(function(t){e.images.splice(e.images.indexOf(e.selectedImage),1),e.selectedImage=!1,e.$events.emit("success",trans("components.image_delete_success"))}).catch(function(t){400===t.response.status&&(e.dependantPages=t.response.data)})},getDate:function(e){return new Date(e)},uploadSuccess:function(e){this.images.unshift(e.data),this.$events.emit("success",trans("components.image_upload_success"))}},m={uploadUrl:function(){return window.baseUrl("/images/"+this.imageType+"/upload")}};t.exports={mounted:r,methods:h,data:p,computed:m,components:{dropzone:i}}},{"./components/dropzone":459}],462:[function(e,t,n){"use strict";function r(){this.termString=document.querySelector("[name=searchTerm]").value,this.typeParse(this.termString),this.exactParse(this.termString),this.tagParse(this.termString),this.optionParse(this.termString),this.dateParse(this.termString)}var i=e("moment"),o={terms:"",termString:"",search:{type:{page:!0,chapter:!0,book:!0},exactTerms:[],tagTerms:[],option:{},dates:{updated_after:!1,updated_before:!1,created_after:!1,created_before:!1}}},a={},s={appendTerm:function(e){this.termString+=" "+e,this.termString=this.termString.replace(/\s{2,}/g," "),this.termString=this.termString.replace(/^\s+/,""),this.termString=this.termString.replace(/\s+$/,"")},exactParse:function(e){this.search.exactTerms=[];for(var t=/"(.+?)"/g,n=void 0;null!==(n=t.exec(e));)this.search.exactTerms.push(n[1])},exactChange:function(){this.termString=this.termString.replace(/"(.+?)"/g,"");var e=this.search.exactTerms.filter(function(e){return""!==e.trim()}).map(function(e){return'"'+e+'"'}).join(" ");this.appendTerm(e)},addExact:function(){this.search.exactTerms.push(""),setTimeout(function(){var e=document.querySelectorAll(".exact-input");e[e.length-1].focus()},100)},removeExact:function(e){this.search.exactTerms.splice(e,1),this.exactChange()},tagParse:function(e){this.search.tagTerms=[];for(var t=/\[(.+?)\]/g,n=void 0;null!==(n=t.exec(e));)this.search.tagTerms.push(n[1])},tagChange:function(){this.termString=this.termString.replace(/\[(.+?)\]/g,"");var e=this.search.tagTerms.filter(function(e){return""!==e.trim()}).map(function(e){return"["+e+"]"}).join(" ");this.appendTerm(e)},addTag:function(){this.search.tagTerms.push(""),setTimeout(function(){var e=document.querySelectorAll(".tag-input");e[e.length-1].focus()},100)},removeTag:function(e){this.search.tagTerms.splice(e,1),this.tagChange()},typeParse:function(e){var t=e.match(/{\s?type:\s?(.*?)\s?}/),n=this.search.type;if(!t)return void(n.page=n.book=n.chapter=!0);var r=t[1].replace(/ /g,"").split("|");n.page=-1!==r.indexOf("page"),n.chapter=-1!==r.indexOf("chapter"),n.book=-1!==r.indexOf("book")},typeChange:function(){var e=this,t=/{\s?type:\s?(.*?)\s?}/,n=this.search.type;if(n.page===n.chapter&&n.page===n.book)return void(this.termString=this.termString.replace(t,""));var r=Object.keys(n).filter(function(t){return e.search.type[t]}).join("|"),i="{type:"+r+"}";if(this.termString.match(t))return void(this.termString=this.termString.replace(t,i));this.appendTerm(i)},optionParse:function(e){for(var t=/{([a-z_\-:]+?)}/gi,n=void 0;null!==(n=t.exec(e));)this.search.option[n[1].toLowerCase()]=!0},optionChange:function(e){this.search.option[e]?this.appendTerm("{"+e+"}"):this.termString=this.termString.replace("{"+e+"}","")},updateSearch:function(e){e.preventDefault(),window.location=window.baseUrl("/search?term="+encodeURIComponent(this.termString))},enableDate:function(e){this.search.dates[e.toLowerCase()]=i().format("YYYY-MM-DD"),this.dateChange(e)},dateParse:function(e){for(var t=/{([a-z_\-]+?):([a-z_\-0-9]+?)}/gi,n=Object.keys(this.search.dates),r=void 0;null!==(r=t.exec(e));)-1!==n.indexOf(r[1])&&(this.search.dates[r[1].toLowerCase()]=r[2])},dateChange:function(e){var t=new RegExp("{\\s?"+e+"\\s?:([a-z_\\-0-9]+?)}","gi");this.termString=this.termString.replace(t,""),this.search.dates[e]&&this.appendTerm("{"+e+":"+this.search.dates[e]+"}")},dateRemove:function(e){this.search.dates[e]=!1,this.dateChange(e)}};t.exports={data:o,computed:a,methods:s,created:r}},{moment:421}],463:[function(e,t,n){"use strict";function r(){var e=this;this.pageId=Number(this.$el.getAttribute("page-id"));var t=window.baseUrl("/ajax/tags/get/page/"+this.pageId);this.$http.get(t).then(function(t){for(var n=t.data,r=0,i=n.length;r<i;r++)n[r].key=Math.random().toString(36).substring(7);e.tags=n,e.addEmptyTag()})}var i=e("vuedraggable"),o=e("./components/autosuggest"),a={pageId:!1,tags:[]},s={draggable:i,autosuggest:o},l={},c={},u={addEmptyTag:function(){this.tags.push({name:"",value:"",key:Math.random().toString(36).substring(7)})},tagChange:function(e){this.tags.indexOf(e)!==this.tags.length-1||""===e.name&&""===e.value||this.addEmptyTag()},tagBlur:function(e){var t=this.tags.indexOf(e)===this.tags.length-1;if(""===e.name&&""===e.value&&!t){var n=this.tags.indexOf(e);this.tags.splice(n,1)}},removeTag:function(e){var t=this.tags.indexOf(e);-1!==t&&this.tags.splice(t,1)},getTagFieldName:function(e,t){return"tags["+e+"]["+t+"]"}};t.exports={data:a,computed:c,methods:u,mounted:r,components:s,directives:l}},{"./components/autosuggest":458,vuedraggable:435}],464:[function(e,t,n){"use strict";var r=e("vue"),i={"search-system":e("./search"),"entity-dashboard":e("./entity-dashboard"),"code-editor":e("./code-editor"),"image-manager":e("./image-manager"),"tag-manager":e("./tag-manager"),"attachment-manager":e("./attachment-manager")};window.vues={};for(var o=Object.keys(i),a=0,s=o.length;a<s;a++)if(function(e){return null!==document.getElementById(e)}(o[a])){var l=i[o[a]];l.el="#"+o[a],window.vues[o[a]]=new r(l)}},{"./attachment-manager":456,"./code-editor":457,"./entity-dashboard":460,"./image-manager":461,"./search":462,"./tag-manager":463,vue:434}]},{},[452]);
\ No newline at end of file
diff --git a/version b/version
index 2a8eccd9e299167bc71f7356c2065200bed903f2..468312066c12a6997587c28bbd2341c7757f71b8 100644 (file)
--- a/version
+++ b/version
@@ -1 +1 @@
-v0.18
\ No newline at end of file
+v0.18.1
\ No newline at end of file