github.com/benoitkugler/goacve@v0.0.0-20201217100549-151ce6e55dc8/server/static/directeurs/js/chunk-vendors.b1698eca.js (about) 1 (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"02f0":function(t,e,n){},"030f":function(t,e,n){(function(t){(function(){"use strict";var e=function(){},n=function(t){return function(){return t()}},r=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))}},o=function(t,e){return function(n){return t(e(n))}},i=function(t){return function(){return t}},a=function(t){return t};function u(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.concat(n);return t.apply(null,o)}}var s=function(t){return function(e){return!t(e)}},c=function(t){return function(){throw new Error(t)}},l=i(!1),f=i(!0),d=tinymce.util.Tools.resolve("tinymce.ThemeManager"),h=function(){return h=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},h.apply(this,arguments)};function p(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}var g,v=function(){return b},b=function(){var t=function(t){return t.isNone()},n=function(t){return t()},r=function(t){return t},o={fold:function(t,e){return t()},is:l,isSome:l,isNone:f,getOr:r,getOrThunk:n,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:r,orThunk:n,map:v,each:e,bind:v,exists:l,forall:f,filter:v,equals:t,equals_:t,toArray:function(){return[]},toString:i("none()")};return o}(),y=function(t){var e=i(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:f,isNone:l,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return y(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:b},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(l,(function(e){return n(t,e)}))}};return o},x=function(t){return null===t||void 0===t?b:y(t)},w={some:y,none:v,from:x},C=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},S=function(t){return function(e){return C(e)===t}},k=function(t){return function(e){return typeof e===t}},O=function(t){return function(e){return t===e}},_=S("string"),A=S("object"),E=S("array"),T=k("boolean"),D=O(void 0),I=function(t){return null===t||void 0===t},B=function(t){return!I(t)},L=k("function"),N=k("number"),P=function(t,e){if(E(t)){for(var n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return!0}return!1},M=Array.prototype.slice,j=Array.prototype.indexOf,R=Array.prototype.push,$=function(t,e){return j.call(t,e)},F=function(t,e){var n=$(t,e);return-1===n?w.none():w.some(n)},V=function(t,e){return $(t,e)>-1},H=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return!0}return!1},z=function(t,e){for(var n=[],r=0;r<t;r++)n.push(e(r));return n},U=function(t,e){for(var n=[],r=0;r<t.length;r+=e){var o=M.call(t,r,r+e);n.push(o)}return n},W=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},q=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},G=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];e(r,n)}},Y=function(t,e){for(var n=[],r=[],o=0,i=t.length;o<i;o++){var a=t[o],u=e(a,o)?n:r;u.push(a)}return{pass:n,fail:r}},X=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},K=function(t,e,n){return G(t,(function(t){n=e(n,t)})),n},Z=function(t,e,n){return q(t,(function(t){n=e(n,t)})),n},J=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return w.some(i);if(n(i,r))break}return w.none()},Q=function(t,e){return J(t,e,l)},tt=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return w.some(n)}return w.none()},et=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!E(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);R.apply(e,t[n])}return e},nt=function(t,e){return et(W(t,e))},rt=function(t,e){for(var n=0,r=t.length;n<r;++n){var o=t[n];if(!0!==e(o,n))return!1}return!0},ot=function(t){var e=M.call(t,0);return e.reverse(),e},it=function(t,e){return X(t,(function(t){return!V(e,t)}))},at=function(t,e){for(var n={},r=0,o=t.length;r<o;r++){var i=t[r];n[String(i)]=e(i,r)}return n},ut=function(t,e){var n=M.call(t,0);return n.sort(e),n},st=function(t,e){return e>=0&&e<t.length?w.some(t[e]):w.none()},ct=function(t){return st(t,0)},lt=function(t){return st(t,t.length-1)},ft=L(Array.from)?Array.from:function(t){return M.call(t)},dt=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return w.none()},ht=function(t){var e=function(e){return t===e},n=function(e){return ht(t)},r=function(e){return ht(t)},o=function(e){return ht(e(t))},a=function(e){return ht(t)},u=function(e){e(t)},s=function(e){return e(t)},c=function(e,n){return n(t)},d=function(e){return e(t)},h=function(e){return e(t)},p=function(){return w.some(t)};return{is:e,isValue:f,isError:l,getOr:i(t),getOrThunk:i(t),getOrDie:i(t),or:n,orThunk:r,fold:c,map:o,mapError:a,each:u,bind:s,exists:d,forall:h,toOptional:p}},pt=function(t){var n=function(t){return t()},r=function(){return c(String(t))()},o=function(t){return t},i=function(t){return t()},u=function(e){return pt(t)},s=function(e){return pt(e(t))},d=function(e){return pt(t)},h=function(e,n){return e(t)};return{is:l,isValue:l,isError:f,getOr:a,getOrThunk:n,getOrDie:r,or:o,orThunk:i,fold:h,map:u,mapError:s,each:e,bind:d,exists:l,forall:f,toOptional:w.none}},mt=function(t,e){return t.fold((function(){return pt(e)}),ht)},gt={value:ht,error:pt,fromOption:mt};(function(t){t[t["Error"]=0]="Error",t[t["Value"]=1]="Value"})(g||(g={}));var vt=function(t,e,n){return t.stype===g.Error?e(t.serror):n(t.svalue)},bt=function(t){var e=[],n=[];return q(t,(function(t){vt(t,(function(t){return n.push(t)}),(function(t){return e.push(t)}))})),{values:e,errors:n}},yt=function(t,e){return t.stype===g.Error?{stype:g.Error,serror:e(t.serror)}:t},xt=function(t,e){return t.stype===g.Value?{stype:g.Value,svalue:e(t.svalue)}:t},wt=function(t,e){return t.stype===g.Value?e(t.svalue):t},Ct=function(t,e){return t.stype===g.Error?e(t.serror):t},St=function(t){return{stype:g.Value,svalue:t}},kt=function(t){return{stype:g.Error,serror:t}},Ot=function(t){return vt(t,gt.error,gt.value)},_t=function(t){return t.fold(kt,St)},At={fromResult:_t,toResult:Ot,svalue:St,partition:bt,serror:kt,bind:wt,bindError:Ct,map:xt,mapError:yt,fold:vt},Et=Object.keys,Tt=Object.hasOwnProperty,Dt=function(t,e){for(var n=Et(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},It=function(t,e){return Bt(t,(function(t,n){return{k:n,v:e(t,n)}}))},Bt=function(t,e){var n={};return Dt(t,(function(t,r){var o=e(t,r);n[o.k]=o.v})),n},Lt=function(t){return function(e,n){t[n]=e}},Nt=function(t,e,n,r){var o={};return Dt(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},Pt=function(t,n){var r={};return Nt(t,n,Lt(r),e),r},Mt=function(t,e){var n=[];return Dt(t,(function(t,r){n.push(e(t,r))})),n},jt=function(t,e){for(var n=Et(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];if(e(a,i,t))return w.some(a)}return w.none()},Rt=function(t){return Mt(t,(function(t){return t}))},$t=function(t,e){return Ft(t,e)?w.from(t[e]):w.none()},Ft=function(t,e){return Tt.call(t,e)},Vt=function(t,e){return Ft(t,e)&&void 0!==t[e]&&null!==t[e]},Ht=function(t){if(!E(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return q(t,(function(r,o){var i=Et(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!E(u))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){var n=arguments.length;if(n!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+n);for(var r=new Array(n),i=0;i<r.length;i++)r[i]=arguments[i];var s=function(t){var n=Et(t);if(e.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+n.join(","));var o=rt(e,(function(t){return V(n,t)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,r)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var e=arguments[o];return e.apply(null,r)},match:s,log:function(t){console.log(t,{constructors:e,constructor:a,params:r})}}}})),n},zt={generate:Ht},Ut=Object.prototype.hasOwnProperty,Wt=function(t,e){return e},qt=function(t,e){var n=A(t)&&A(e);return n?Yt(t,e):e},Gt=function(t){return function(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<e.length;o++){var i=e[o];for(var a in i)Ut.call(i,a)&&(r[a]=t(r[a],i[a]))}return r}},Yt=Gt(qt),Xt=Gt(Wt),Kt=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}},Zt=zt.generate([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),Jt=function(t){return Zt.defaultedThunk(i(t))},Qt=function(t){return Zt.mergeWithThunk(i(t))},te=Zt.strict,ee=Zt.asOption,ne=Zt.defaultedThunk,re=(Zt.asDefaultedOptionThunk,Zt.mergeWithThunk),oe=(zt.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(t){var e=[],n=[];return q(t,(function(t){t.fold((function(t){e.push(t)}),(function(t){n.push(t)}))})),{errors:e,values:n}}),ie=function(t,e){var n={};return Dt(t,(function(t,r){V(e,r)||(n[r]=t)})),n},ae=function(t,e){var n;return n={},n[t]=e,n},ue=function(t){var e={};return q(t,(function(t){e[t.key]=t.value})),e},se=function(t,e){return ie(t,e)},ce=function(t,e){return ae(t,e)},le=function(t){return ue(t)},fe=function(t,e){return 0===t.length?gt.value(e):gt.value(Yt(e,Xt.apply(void 0,t)))},de=function(t){return gt.error(et(t))},he=function(t,e){var n=oe(t);return n.errors.length>0?de(n.errors):fe(n.values,e)},pe=function(t,e){return t.length>0?At.svalue(Yt(e,Xt.apply(void 0,t))):At.svalue(e)},me=function(t){return r(At.serror,et)(t)},ge=function(t,e){var n=At.partition(t);return n.errors.length>0?me(n.errors):pe(n.values,e)},ve=function(t){var e=At.partition(t);return e.errors.length>0?me(e.errors):At.svalue(e.values)},be={consolidateObj:ge,consolidateArr:ve},ye=function(t){return A(t)&&Et(t).length>100?" removed due to size":JSON.stringify(t,null,2)},xe=function(t){var e=t.length>10?t.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):t;return W(e,(function(t){return"Failed path: ("+t.path.join(" > ")+")\n"+t.getErrorInfo()}))},we=function(t,e){return At.serror([{path:t,getErrorInfo:e}])},Ce=function(t,e,n){return we(t,(function(){return'Could not find valid *strict* value for "'+e+'" in '+ye(n)}))},Se=function(t,e){return we(t,(function(){return'Choice schema did not contain choice key: "'+e+'"'}))},ke=function(t,e,n){return we(t,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+ye(e)}))},Oe=function(t,e){return we(t,(function(){return"There are unsupported fields: ["+e.join(", ")+"] specified"}))},_e=function(t,e){return we(t,(function(){return e}))},Ae=zt.generate([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),Ee=function(t,e,n){return $t(e,n).fold((function(){return Ce(t,n,e)}),At.svalue)},Te=function(t,e,n){var r=$t(t,e).fold((function(){return n(t)}),a);return At.svalue(r)},De=function(t,e){return At.svalue($t(t,e))},Ie=function(t,e,n){var r=$t(t,e).map((function(e){return!0===e?n(t):e}));return At.svalue(r)},Be=function(t,e,n,r){return n.fold((function(n,o,a,u){var s=function(e){var i=u.extract(t.concat([n]),r,e);return At.map(i,(function(t){return ae(o,r(t))}))},c=function(e){return e.fold((function(){var t=ae(o,r(w.none()));return At.svalue(t)}),(function(e){var i=u.extract(t.concat([n]),r,e);return At.map(i,(function(t){return ae(o,r(w.some(t)))}))}))};return function(){return a.fold((function(){return At.bind(Ee(t,e,n),s)}),(function(t){return At.bind(Te(e,n,t),s)}),(function(){return At.bind(De(e,n),c)}),(function(t){return At.bind(Ie(e,n,t),c)}),(function(t){var r=t(e),o=At.map(Te(e,n,i({})),(function(t){return Yt(r,t)}));return At.bind(o,s)}))}()}),(function(t,n){var o=n(e);return At.svalue(ae(t,r(o)))}))},Le=function(t,e,n,r){var o=W(n,(function(n){return Be(t,e,n,r)}));return be.consolidateObj(o,{})},Ne=function(t){var e=function(e,n,r){return t().extract(e,n,r)},n=function(){return t().toString()};return{extract:e,toString:n}},Pe=function(t){var e=function(e,n,r){return At.bindError(t(r,n),(function(t){return _e(e,t)}))},n=function(){return"val"};return{extract:e,toString:n}},Me=function(t){return Et(Pt(t,(function(t){return void 0!==t&&null!==t})))},je=function(t){var e=Re(t),n=K(t,(function(t,e){return e.fold((function(e){return Yt(t,ce(e,!0))}),i(t))}),{}),r=function(t,r,o){var i=T(o)?[]:Me(o),a=X(i,(function(t){return!Vt(n,t)}));return 0===a.length?e.extract(t,r,o):Oe(t,a)};return{extract:r,toString:e.toString}},Re=function(t){var e=function(e,n,r){return Le(e,r,t,n)},n=function(){var e=W(t,(function(t){return t.fold((function(t,e,n,r){return t+" -> "+r.toString()}),(function(t,e){return"state("+t+")"}))}));return"obj{\n"+e.join("\n")+"}"};return{extract:e,toString:n}},$e=function(t){var e=function(e,n,r){var o=W(r,(function(r,o){return t.extract(e.concat(["["+o+"]"]),n,r)}));return be.consolidateArr(o)},n=function(){return"array("+t.toString()+")"};return{extract:e,toString:n}},Fe=function(t){var e=function(e,n,r){for(var o=[],i=0,a=t;i<a.length;i++){var u=a[i],s=u.extract(e,n,r);if(s.stype===g.Value)return s;o.push(s)}return be.consolidateArr(o)},n=function(){return"oneOf("+W(t,(function(t){return t.toString()})).join(", ")+")"};return{extract:e,toString:n}},Ve=function(t,e){var n=function(e,n){return $e(Pe(t)).extract(e,a,n)},r=function(t,r,o){var i=Et(o),a=n(t,i);return At.bind(a,(function(n){var i=W(n,(function(t){return Ae.field(t,t,te(),e)}));return Re(i).extract(t,r,o)}))},o=function(){return"setOf("+e.toString()+")"};return{extract:r,toString:o}},He=function(t,e){var n=Kt((function(){return e()})),r=function(t,e,r){return n().extract(t,e,r)},o=function(){return n().toString()};return{extract:r,toString:o}},ze=i(Pe(At.svalue)),Ue=r($e,Re),We=Ae.state,qe=Ae.field,Ge=function(t,e,n,r,o){var i=$t(r,o);return i.fold((function(){return ke(t,r,o)}),(function(r){return r.extract(t.concat(["branch: "+o]),e,n)}))},Ye=function(t,e){var n=function(n,r,o){var i=$t(o,t);return i.fold((function(){return Se(n,t)}),(function(t){return Ge(n,r,o,e,t)}))},r=function(){return"chooseOn("+t+"). Possible values: "+Et(e)};return{extract:n,toString:r}},Xe=Pe(At.svalue),Ke=function(t){return Ue(t)},Ze=function(){return $e(Xe)},Je=Ne,Qe=function(t){return Pe((function(e){return t(e).fold(At.serror,At.svalue)}))},tn=function(t,e){return Ve((function(e){return At.fromResult(t(e))}),e)},en=function(t,e,n,r){var o=e.extract([t],n,r);return At.mapError(o,(function(t){return{input:r,errors:t}}))},nn=function(t,e,n){return At.toResult(en(t,e,a,n))},rn=function(t){return t.fold((function(t){throw new Error(an(t))}),a)},on=function(t,e,n){return rn(nn(t,e,n))},an=function(t){return"Errors: \n"+xe(t.errors).join("\n")+"\n\nInput object: "+ye(t.input)},un=function(t,e){return Ye(t,e)},sn=function(t,e){return Ye(t,It(e,Re))},cn=function(t,e){return He(t,e)},ln=i(Xe),fn=function(t,e){return Pe((function(n){var r=typeof n;return t(n)?At.svalue(n):At.serror("Expected type: "+e+" but got: "+r)}))},dn=fn(N,"number"),hn=fn(_,"string"),pn=fn(T,"boolean"),mn=fn(L,"function"),gn=function(t){var e=function(t,e){var n=t.next();while(!n.done){if(!e(n.value))return!1;n=t.next()}return!0};if(Object(t)!==t)return!0;switch({}.toString.call(t).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(t).every((function(e){return gn(t[e])}));case"Map":return e(t.keys(),gn)&&e(t.values(),gn);case"Set":return e(t.keys(),gn);default:return!1}},vn=Pe((function(t){return gn(t)?At.svalue(t):At.serror("Expected value to be acceptable for sending via postMessage")})),bn=function(t){return Qe((function(e){return V(t,e)?gt.value(e):gt.error('Unsupported value: "'+e+'", choose one of "'+t.join(", ")+'".')}))},yn=function(t){return qe(t,t,te(),ze())},xn=function(t,e){return qe(t,t,te(),e)},wn=function(t){return xn(t,dn)},Cn=function(t){return xn(t,hn)},Sn=function(t,e){return qe(t,t,te(),bn(e))},kn=function(t){return xn(t,pn)},On=function(t){return xn(t,mn)},_n=function(t,e){return qe(t,t,ee(),Pe((function(n){return At.serror("The field: "+t+" is forbidden. "+e)})))},An=function(t,e){return qe(t,t,te(),Re(e))},En=function(t,e){return qe(t,t,te(),Ue(e))},Tn=function(t,e){return qe(t,t,te(),$e(e))},Dn=function(t){return qe(t,t,ee(),ze())},In=function(t,e){return qe(t,t,ee(),e)},Bn=function(t){return In(t,dn)},Ln=function(t){return In(t,hn)},Nn=function(t){return In(t,mn)},Pn=function(t,e){return In(t,$e(e))},Mn=function(t,e){return In(t,Re(e))},jn=function(t,e){return In(t,je(e))},Rn=function(t,e){return qe(t,t,Jt(e),ze())},$n=function(t,e,n){return qe(t,t,Jt(e),n)},Fn=function(t,e){return $n(t,e,dn)},Vn=function(t,e){return $n(t,e,hn)},Hn=function(t,e,n){return $n(t,e,bn(n))},zn=function(t,e){return $n(t,e,pn)},Un=function(t,e){return $n(t,e,mn)},Wn=function(t,e){return $n(t,e,vn)},qn=function(t,e,n){return $n(t,e,$e(n))},Gn=function(t,e,n){return $n(t,e,Re(n))},Yn=function(t,e){return We(t,e)},Xn=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},Kn=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Qn(r.childNodes[0])},Zn=function(t,e){var n=e||document,r=n.createElement(t);return Qn(r)},Jn=function(t,e){var n=e||document,r=n.createTextNode(t);return Qn(r)},Qn=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},tr=function(t,e,n){return w.from(t.dom.elementFromPoint(e,n)).map(Qn)},er={fromHtml:Kn,fromTag:Zn,fromText:Jn,fromDom:Qn,fromPoint:tr},nr=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),a=t.isiOS()&&!o,u=t.isiOS()||t.isAndroid(),s=u||r("(pointer:coarse)"),c=o||!a&&u&&r("(min-device-width:768px)"),l=a||u&&!c,f=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!f;return{isiPad:i(o),isiPhone:i(a),isTablet:i(c),isPhone:i(l),isTouch:i(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:i(f),isDesktop:i(d)}},rr=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},or=function(t,e){var n=rr(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return ur(r(1),r(2))},ir=function(t,e){var n=String(e).toLowerCase();return 0===t.length?ar():or(t,n)},ar=function(){return ur(0,0)},ur=function(t,e){return{major:t,minor:e}},sr={nu:ur,detect:ir,unknown:ar},cr=function(t,e){var n=String(e).toLowerCase();return Q(t,(function(t){return t.search(n)}))},lr=function(t,e){return cr(t,e).map((function(t){var n=sr.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},fr=function(t,e){return cr(t,e).map((function(t){var n=sr.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},dr={detectBrowser:lr,detectOs:fr},hr=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},pr=function(t,e){return-1!==t.indexOf(e)},mr=function(t,e){return hr(t,e,t.length-e.length)},gr=function(t){return function(e){return e.replace(t,"")}},vr=gr(/^\s+|\s+$/g),br=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,yr=function(t){return function(e){return pr(e,t)}},xr=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return pr(t,"edge/")&&pr(t,"chrome")&&pr(t,"safari")&&pr(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,br],search:function(t){return pr(t,"chrome")&&!pr(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return pr(t,"msie")||pr(t,"trident")}},{name:"Opera",versionRegexes:[br,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:yr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:yr("firefox")},{name:"Safari",versionRegexes:[br,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(pr(t,"safari")||pr(t,"mobile/"))&&pr(t,"applewebkit")}}],wr=[{name:"Windows",search:yr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return pr(t,"iphone")||pr(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:yr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:yr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:yr("linux"),versionRegexes:[]},{name:"Solaris",search:yr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:yr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:yr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Cr={browsers:i(xr),oses:i(wr)},Sr="Edge",kr="Chrome",Or="IE",_r="Opera",Ar="Firefox",Er="Safari",Tr=function(){return Dr({current:void 0,version:sr.unknown()})},Dr=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Sr),isChrome:r(kr),isIE:r(Or),isOpera:r(_r),isFirefox:r(Ar),isSafari:r(Er)}},Ir={unknown:Tr,nu:Dr,edge:i(Sr),chrome:i(kr),ie:i(Or),opera:i(_r),firefox:i(Ar),safari:i(Er)},Br="Windows",Lr="iOS",Nr="Android",Pr="Linux",Mr="OSX",jr="Solaris",Rr="FreeBSD",$r="ChromeOS",Fr=function(){return Vr({current:void 0,version:sr.unknown()})},Vr=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(Br),isiOS:r(Lr),isAndroid:r(Nr),isOSX:r(Mr),isLinux:r(Pr),isSolaris:r(jr),isFreeBSD:r(Rr),isChromeOS:r($r)}},Hr={unknown:Fr,nu:Vr,windows:i(Br),ios:i(Lr),android:i(Nr),linux:i(Pr),osx:i(Mr),solaris:i(jr),freebsd:i(Rr),chromeos:i($r)},zr=function(t,e){var n=Cr.browsers(),r=Cr.oses(),o=dr.detectBrowser(n,t).fold(Ir.unknown,Ir.nu),i=dr.detectOs(r,t).fold(Hr.unknown,Hr.nu),a=nr(i,o,t,e);return{browser:o,os:i,deviceType:a}},Ur={detect:zr},Wr=function(t){return window.matchMedia(t).matches},qr=Kt((function(){return Ur.detect(navigator.userAgent,Wr)})),Gr=function(){return qr()},Yr=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},Xr=function(t,e){return Yr(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},Kr=9,Zr=11,Jr=1,Qr=3,to=function(t,e){var n=t.dom;if(n.nodeType!==Jr)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},eo=function(t){return t.nodeType!==Jr&&t.nodeType!==Kr&&t.nodeType!==Zr||0===t.childElementCount},no=function(t,e){var n=void 0===e?document:e.dom;return eo(n)?[]:W(n.querySelectorAll(t),er.fromDom)},ro=function(t,e){var n=void 0===e?document:e.dom;return eo(n)?w.none():w.from(n.querySelector(t)).map(er.fromDom)},oo=function(t,e){return t.dom===e.dom},io=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},ao=function(t,e){return Xr(t.dom,e.dom)},uo=function(t,e){return Gr().browser.isIE()?ao(t,e):io(t,e)},so=function(t){return L(t)?t:l},co=function(t,e,n){var r=t.dom,o=so(n);while(r.parentNode){r=r.parentNode;var i=er.fromDom(r),a=e(i);if(a.isSome())return a;if(o(i))break}return w.none()},lo=function(t,e,n){var r=e(t),o=so(n);return r.orThunk((function(){return o(t)?w.none():co(t,e,o)}))},fo=function(t,e){return oo(t.element,e.event.target)},ho=function(t){if(!Vt(t,"can")&&!Vt(t,"abort")&&!Vt(t,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(t,null,2)+" does not have can, abort, or run!");return on("Extracting event.handler",je([Rn("can",f),Rn("abort",l),Rn("run",e)]),t)},po=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Z(t,(function(t,r){return t&&e(r).apply(void 0,n)}),!0)}},mo=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Z(t,(function(t,r){return t||e(r).apply(void 0,n)}),!1)}},go=function(t){return L(t)?{can:i(!0),abort:i(!1),run:t}:t},vo=function(t){var e=po(t,(function(t){return t.can})),n=mo(t,(function(t){return t.abort})),r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];q(t,(function(t){t.run.apply(void 0,e)}))};return ho({can:e,abort:n,run:r})},bo=i,yo=bo("touchstart"),xo=bo("touchmove"),wo=bo("touchend"),Co=bo("touchcancel"),So=bo("mousedown"),ko=bo("mousemove"),Oo=bo("mouseout"),_o=bo("mouseup"),Ao=bo("mouseover"),Eo=bo("focusin"),To=bo("focusout"),Do=bo("keydown"),Io=bo("keyup"),Bo=bo("input"),Lo=bo("change"),No=bo("click"),Po=bo("transitionend"),Mo=bo("selectstart"),jo=function(t){return i("alloy."+t)},Ro={tap:jo("tap")},$o=jo("focus"),Fo=jo("blur.post"),Vo=jo("paste.post"),Ho=jo("receive"),zo=jo("execute"),Uo=jo("focus.item"),Wo=Ro.tap,qo=jo("longpress"),Go=jo("sandbox.close"),Yo=jo("typeahead.cancel"),Xo=jo("system.init"),Ko=jo("system.touchmove"),Zo=jo("system.touchend"),Jo=jo("system.scroll"),Qo=jo("system.resize"),ti=jo("system.attached"),ei=jo("system.detached"),ni=jo("system.dismissRequested"),ri=jo("system.repositionRequested"),oi=jo("focusmanager.shifted"),ii=jo("slotcontainer.visibility"),ai=jo("change.tab"),ui=jo("dismiss.tab"),si=jo("highlight"),ci=jo("dehighlight"),li=function(t,e){pi(t,t.element,e,{})},fi=function(t,e,n){pi(t,t.element,e,n)},di=function(t){li(t,zo())},hi=function(t,e,n){pi(t,e,n,{})},pi=function(t,e,n,r){var o=h({target:e},r);t.getSystem().triggerEvent(n,e,o)},mi=function(t,e,n,r){t.getSystem().triggerEvent(n,e,r.event)},gi=function(t){return le(t)},vi=function(t,e){return{key:t,value:ho({abort:e})}},bi=function(t,e){return{key:t,value:ho({can:e})}},yi=function(t){return{key:t,value:ho({run:function(t,e){e.event.prevent()}})}},xi=function(t,e){return{key:t,value:ho({run:e})}},wi=function(t,e,n){return{key:t,value:ho({run:function(t,r){e.apply(void 0,[t,r].concat(n))}})}},Ci=function(t){return function(e){return xi(t,e)}},Si=function(t){return function(e){return{key:t,value:ho({run:function(t,n){fo(t,n)&&e(t,n)}})}}},ki=function(t,e){return xi(t,(function(n,r){n.getSystem().getByUid(e).each((function(e){mi(e,e.element,t,r)}))}))},Oi=function(t,e,n){var r=e.partUids[n];return ki(t,r)},_i=function(t,e){return xi(t,(function(t,n){var r=n.event,o=t.getSystem().getByDom(r.target).fold((function(){var e=lo(r.target,(function(e){return t.getSystem().getByDom(e).toOptional()}),l);return e.getOr(t)}),(function(t){return t}));e(t,o,n)}))},Ai=function(t){return xi(t,(function(t,e){e.cut()}))},Ei=function(t){return xi(t,(function(t,e){e.stop()}))},Ti=function(t,e){return Si(t)(e)},Di=Si(ti()),Ii=Si(ei()),Bi=Si(Xo()),Li=Ci(zo()),Ni=("undefined"!==typeof window?window:Function("return this;")(),function(t){var e=t.dom.nodeName;return e.toLowerCase()}),Pi=function(t){return t.dom.nodeType},Mi=function(t){return function(e){return Pi(e)===t}},ji=Mi(Jr),Ri=Mi(Qr),$i=Mi(Kr),Fi=Mi(Zr),Vi=function(t){return er.fromDom(t.dom.ownerDocument)},Hi=function(t){return $i(t)?t:Vi(t)},zi=function(t){return er.fromDom(Hi(t).dom.documentElement)},Ui=function(t){return er.fromDom(Hi(t).dom.defaultView)},Wi=function(t){return w.from(t.dom.parentNode).map(er.fromDom)},qi=function(t){return Wi(t)},Gi=function(t){return w.from(t.dom.offsetParent).map(er.fromDom)},Yi=function(t){return w.from(t.dom.nextSibling).map(er.fromDom)},Xi=function(t){return W(t.dom.childNodes,er.fromDom)},Ki=function(t,e){var n=t.dom.childNodes;return w.from(n[e]).map(er.fromDom)},Zi=function(t){return Ki(t,0)},Ji=function(t,e){var n=Wi(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},Qi=function(t,e){var n=Yi(t);n.fold((function(){var n=Wi(t);n.each((function(t){ea(t,e)}))}),(function(t){Ji(t,e)}))},ta=function(t,e){var n=Zi(t);n.fold((function(){ea(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},ea=function(t,e){t.dom.appendChild(e.dom)},na=function(t,e,n){Ki(t,n).fold((function(){ea(t,e)}),(function(t){Ji(t,e)}))},ra=function(t,e){q(e,(function(e){Ji(t,e)}))},oa=function(t,e){q(e,(function(e){ea(t,e)}))},ia=function(t){t.dom.textContent="",q(Xi(t),(function(t){aa(t)}))},aa=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},ua=function(t){var e=Xi(t);e.length>0&&ra(t,e),aa(t)},sa=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,Xi(er.fromDom(r))},ca=function(t){return t.dom.innerHTML},la=function(t,e){var n=Vi(t),r=n.dom,o=er.fromDom(r.createDocumentFragment()),i=sa(e,r);oa(o,i),ia(t),ea(t,o)},fa=function(t){var e=er.fromTag("div"),n=er.fromDom(t.dom.cloneNode(!0));return ea(e,n),ca(e)},da=function(t,e,n){if(!(_(n)||T(n)||N(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},ha=function(t,e,n){da(t.dom,e,n)},pa=function(t,e){var n=t.dom;Dt(e,(function(t,e){da(n,e,t)}))},ma=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},ga=function(t,e){return w.from(ma(t,e))},va=function(t,e){var n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(e)},ba=function(t,e){t.dom.removeAttribute(e)},ya=function(t,e){return er.fromDom(t.dom.cloneNode(e))},xa=function(t){return ya(t,!1)},wa=function(t){var e=xa(t);return fa(e)},Ca=function(t){return wa(t)},Sa=function(t,e,n){return oo(e,t.element)&&!oo(e,n)},ka=gi([bi($o(),(function(t,e){var n=e.event,r=n.originator,o=n.target;return!Sa(t,r,o)||(console.warn($o()+" did not get interpreted by the desired target. \nOriginator: "+Ca(r)+"\nTarget: "+Ca(o)+"\nCheck the "+$o()+" event handlers"),!1)}))]),Oa=Object.freeze({__proto__:null,events:ka}),_a=0,Aa=function(t){var e=new Date,n=e.getTime(),r=Math.floor(1e9*Math.random());return _a++,t+"_"+r+_a+String(n)},Ea=i("alloy-id-"),Ta=i("data-alloy-id"),Da=Ea(),Ia=Ta(),Ba=function(t,e){var n=Aa(Da+t);return La(e,n),n},La=function(t,e){Object.defineProperty(t.dom,Ia,{value:e,writable:!0})},Na=function(t){var e=ji(t)?t.dom[Ia]:null;return w.from(e)},Pa=function(t){return Aa(t)},Ma=a,ja=function(t){var e=function(e){return function(){throw new Error("The component must be in a context to send: "+e+(t?"\n"+Ca(t().element)+" is not in context.":""))}};return{debugInfo:i("fake"),triggerEvent:e("triggerEvent"),triggerFocus:e("triggerFocus"),triggerEscape:e("triggerEscape"),build:e("build"),addToWorld:e("addToWorld"),removeFromWorld:e("removeFromWorld"),addToGui:e("addToGui"),removeFromGui:e("removeFromGui"),getByUid:e("getByUid"),getByDom:e("getByDom"),broadcast:e("broadcast"),broadcastOn:e("broadcastOn"),broadcastEvent:e("broadcastEvent"),isConnected:l}},Ra=ja(),$a=function(t,e,n){var r=n.toString(),o=r.indexOf(")")+1,i=r.indexOf("("),a=r.substring(i+1,o-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:Fa(a.slice(0,1).concat(a.slice(3)))}},t},Fa=function(t){return W(t,(function(t){return mr(t,"/*")?t.substring(0,t.length-"/*".length):t}))},Va=function(t,e){var n=t.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:Fa(i)}},t},Ha=function(t,e){var n=e.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Fa(i.slice(1))}},t},za=Aa("alloy-premade"),Ua=function(t){return ce(za,t)},Wa=function(t){return $t(t,za)},qa=function(t){return Ha((function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.apply(void 0,m([e.getApis(),e],n))}),t)},Ga={init:function(){return Ya({readState:function(){return"No State required"}})}},Ya=function(t){return t},Xa=function(t,e){var n=W(e,(function(t){return Mn(t.name(),[yn("config"),Rn("state",Ga)])})),r=nn("component.behaviours",Re(n),t.behaviours).fold((function(e){throw new Error(an(e)+"\nComplete spec:\n"+JSON.stringify(t,null,2))}),(function(t){return t}));return{list:e,data:It(r,(function(t){var e=t.map((function(t){return{config:t.config,state:t.state.init(t.config)}}));return function(){return e}}))}},Ka=function(t){return t.list},Za=function(t){return t.data},Ja=function(t,e){var n={};return Dt(t,(function(t,r){Dt(t,(function(t,o){var i=$t(n,o).getOr([]);n[o]=i.concat([e(r,t)])}))})),n},Qa=function(t){return{classes:void 0!==t.classes?t.classes:[],attributes:void 0!==t.attributes?t.attributes:{},styles:void 0!==t.styles?t.styles:{}}},tu=function(t,e){return h(h({},t),{attributes:h(h({},t.attributes),e.attributes),styles:h(h({},t.styles),e.styles),classes:t.classes.concat(e.classes)})},eu=function(t,e,n,r){var o=h({},e);q(n,(function(e){o[e.name()]=e.exhibit(t,r)}));var i=Ja(o,(function(t,e){return{name:t,modification:e}})),a=function(t){return K(t,(function(t,e){return h(h({},e.modification),t)}),{})},u=K(i.classes,(function(t,e){return e.modification.concat(t)}),[]),s=a(i.attributes),c=a(i.styles);return Qa({classes:u,attributes:s,styles:c})},nu=function(t,e,n,r){try{var o=ut(n,(function(n,o){var i=n[e],a=o[e],u=r.indexOf(i),s=r.indexOf(a);if(-1===u)throw new Error("The ordering for "+t+" does not have an entry for "+i+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===s)throw new Error("The ordering for "+t+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return u<s?-1:s<u?1:0}));return gt.value(o)}catch(i){return gt.error([i])}},ru=function(t,e){return{handler:t,purpose:e}},ou=function(t,e){return{cHandler:t,purpose:e}},iu=function(t,e){return ou(u.apply(void 0,[t.handler].concat(e)),t.purpose)},au=function(t){return t.cHandler},uu=function(t,e){return{name:t,handler:e}},su=function(t,e){var n={};return q(t,(function(t){n[t.name()]=t.handlers(e)})),n},cu=function(t,e,n){var r=h(h({},n),su(e,t));return Ja(r,uu)},lu=function(t,e,n,r){var o=cu(t,n,r);return pu(o,e)},fu=function(t){var e=go(t);return function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=[t,n].concat(r);e.abort.apply(void 0,i)?n.stop():e.can.apply(void 0,i)&&e.run.apply(void 0,i)}},du=function(t,e){return gt.error(["The event ("+t+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(W(e,(function(t){return t.name})),null,2)])},hu=function(t,e,n){var r=e[n];return r?nu("Event: "+n,"name",t,r).map((function(t){var e=W(t,(function(t){return t.handler}));return vo(e)})):du(n,t)},pu=function(t,e){var n=Mt(t,(function(t,n){var r=1===t.length?gt.value(t[0].handler):hu(t,e,n);return r.map((function(r){var o=fu(r),i=t.length>1?X(e[n],(function(e){return H(t,(function(t){return t.name===e}))})).join(" > "):t[0].name;return ce(n,ru(o,i))}))}));return he(n,{})},mu="alloy.base.behaviour",gu=function(t){var e;return nn("custom.definition",Re([qe("dom","dom",te(),Re([yn("tag"),Rn("styles",{}),Rn("classes",[]),Rn("attributes",{}),Dn("value"),Dn("innerHtml")])),yn("components"),yn("uid"),Rn("events",{}),Rn("apis",{}),qe("eventOrder","eventOrder",Qt((e={},e[zo()]=["disabling",mu,"toggling","typeaheadevents"],e[$o()]=[mu,"focusing","keying"],e[Xo()]=[mu,"disabling","toggling","representing"],e[Bo()]=[mu,"representing","streaming","invalidating"],e[ei()]=[mu,"representing","item-events","tooltipping"],e[So()]=["focusing",mu,"item-type-events"],e[yo()]=["focusing",mu,"item-type-events"],e[Ao()]=["item-type-events","tooltipping"],e[Ho()]=["receiving","reflecting","tooltipping"],e)),ln()),Dn("domModification")]),t)},vu=function(t){return h(h({},t.dom),{uid:t.uid,domChildren:W(t.components,(function(t){return t.element}))})},bu=function(t){return t.domModification.fold((function(){return Qa({})}),Qa)},yu=function(t){return t.events},xu=function(t,e){var n=ma(t,e);return void 0===n||""===n?[]:n.split(" ")},wu=function(t,e,n){var r=xu(t,e),o=r.concat([n]);return ha(t,e,o.join(" ")),!0},Cu=function(t,e,n){var r=X(xu(t,e),(function(t){return t!==n}));return r.length>0?ha(t,e,r.join(" ")):ba(t,e),!1},Su=function(t){return void 0!==t.dom.classList},ku=function(t){return xu(t,"class")},Ou=function(t,e){return wu(t,"class",e)},_u=function(t,e){return Cu(t,"class",e)},Au=function(t,e){Su(t)?t.dom.classList.add(e):Ou(t,e)},Eu=function(t){var e=Su(t)?t.dom.classList:ku(t);0===e.length&&ba(t,"class")},Tu=function(t,e){if(Su(t)){var n=t.dom.classList;n.remove(e)}else _u(t,e);Eu(t)},Du=function(t,e){return Su(t)&&t.dom.classList.contains(e)},Iu=function(t,e){q(e,(function(e){Au(t,e)}))},Bu=function(t,e){q(e,(function(e){Tu(t,e)}))},Lu=function(t){return void 0!==t.style&&L(t.style.getPropertyValue)},Nu=function(t){return Fi(t)},Pu=L(Element.prototype.attachShadow)&&L(Node.prototype.getRootNode),Mu=i(Pu),ju=Pu?function(t){return er.fromDom(t.dom.getRootNode())}:Hi,Ru=function(t){return Nu(t)?t:er.fromDom(Hi(t).dom.body)},$u=function(t){return Fu(t).isSome()},Fu=function(t){var e=ju(t);return Nu(e)?w.some(e):w.none()},Vu=function(t){return er.fromDom(t.dom.host)},Hu=function(t){if(Mu()&&B(t.target)){var e=er.fromDom(t.target);if(ji(e)&&zu(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return ct(n)}}return w.from(t.target)},zu=function(t){return B(t.dom.shadowRoot)},Uu=function(t){var e=Ri(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return Fu(er.fromDom(e)).fold((function(){return n.body.contains(e)}),o(Uu,Vu))},Wu=function(){return qu(er.fromDom(document))},qu=function(t){var e=t.dom.body;if(null===e||void 0===e)throw new Error("Body is not available yet");return er.fromDom(e)},Gu=function(t,e,n){if(!_(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);Lu(t)&&t.style.setProperty(e,n)},Yu=function(t,e){Lu(t)&&t.style.removeProperty(e)},Xu=function(t,e,n){var r=t.dom;Gu(r,e,n)},Ku=function(t,e){var n=t.dom;Dt(e,(function(t,e){Gu(n,e,t)}))},Zu=function(t,e){var n=t.dom;Dt(e,(function(t,e){t.fold((function(){Yu(n,e)}),(function(t){Gu(n,e,t)}))}))},Ju=function(t,e){var n=t.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(e);return""!==o||Uu(t)?o:Qu(n,e)},Qu=function(t,e){return Lu(t)?t.style.getPropertyValue(e):""},ts=function(t,e){var n=t.dom,r=Qu(n,e);return w.from(r).filter((function(t){return t.length>0}))},es=function(t){var e={},n=t.dom;if(Lu(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);e[o]=n.style[o]}return e},ns=function(t,e,n){var r=er.fromTag(t);Xu(r,e,n);var o=ts(r,e);return o.isSome()},rs=function(t,e){var n=t.dom;Yu(n,e),ga(t,"style").map(vr).is("")&&ba(t,"style")},os=function(t){return t.dom.offsetWidth},is=function(t){return t.dom.value},as=function(t,e){if(void 0===e)throw new Error("Value.set was undefined");t.dom.value=e},us=function(t){var e=er.fromTag(t.tag);pa(e,t.attributes),Iu(e,t.classes),Ku(e,t.styles),t.innerHtml.each((function(t){return la(e,t)}));var n=t.domChildren;return oa(e,n),t.value.each((function(t){as(e,t)})),t.uid,La(e,t.uid),e},ss=function(t){var e=$t(t,"behaviours").getOr({}),n=X(Et(e),(function(t){return void 0!==e[t]}));return W(n,(function(t){return e[t].me}))},cs=function(t,e){return Xa(t,e)},ls=function(t){var e=ss(t);return cs(t,e)},fs=function(t,e,n){var r=vu(t),o=bu(t),i={"alloy.base.modification":o},a=e.length>0?eu(n,i,e,r):o;return tu(r,a)},ds=function(t,e,n){var r={"alloy.base.behaviour":yu(t)};return lu(n,t.eventOrder,e,r).getOrDie()},hs=function(t){var e=function(){return b},n=Xn(Ra),r=rn(gu(t)),o=ls(t),i=Ka(o),a=Za(o),u=fs(r,i,a),s=us(u),c=ds(r,i,a),l=Xn(r.components),f=function(t){n.set(t)},d=function(){n.set(ja(e))},h=function(){var t=Xi(s),e=nt(t,(function(t){return n.get().getByDom(t).fold((function(){return[]}),(function(t){return[t]}))}));l.set(e)},p=function(e){var n=a,r=L(n[e.name()])?n[e.name()]:function(){throw new Error("Could not find "+e.name()+" in "+JSON.stringify(t,null,2))};return r()},m=function(t){return L(a[t.name()])},g=function(){return r.apis},v=function(t){return a[t]().map((function(t){return t.state.readState()})).getOr("not enabled")},b={getSystem:n.get,config:p,hasConfigured:m,spec:t,readState:v,getApis:g,connect:f,disconnect:d,element:s,syncComponents:h,components:l.get,events:c};return b},ps=function(t){var e=$t(t,"components").getOr([]);return W(e,ys)},ms=function(t){var e=Ma(t),n=e.events,r=p(e,["events"]),o=ps(r),i=h(h({},r),{events:h(h({},Oa),n),components:o});return gt.value(hs(i))},gs=function(t){var e=er.fromText(t);return vs({element:e})},vs=function(t){var n=on("external.component",je([yn("element"),Dn("uid")]),t),r=Xn(ja()),o=function(t){r.set(t)},a=function(){r.set(ja((function(){return u})))};n.uid.each((function(t){La(n.element,t)}));var u={getSystem:r.get,config:w.none,hasConfigured:l,connect:o,disconnect:a,getApis:function(){return{}},element:n.element,spec:t,readState:i("No state"),syncComponents:e,components:i([]),events:{}};return Ua(u)},bs=Pa,ys=function(t){return Wa(t).fold((function(){var e=t.hasOwnProperty("uid")?t:h({uid:bs("")},t);return ms(e).getOrDie()}),(function(t){return t}))},xs=Ua;function ws(t,e){var n=function(e,n){if(!N(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;Lu(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var o=Ju(n,t);return parseFloat(o)||0}return r},o=r,i=function(t,e){return Z(e,(function(e,n){var r=Ju(t,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?e:e+o}),0)},a=function(t,e,n){var r=i(t,n),o=e>r?e-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}}var Cs=ws("height",(function(t){var e=t.dom;return Uu(t)?e.getBoundingClientRect().height:e.offsetHeight})),Ss=function(t){return Cs.get(t)},ks=function(t){return Cs.getOuter(t)},Os=function(t,e){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=Cs.max(t,e,n);Xu(t,"max-height",r+"px")},_s=function(t,e){var n=function(n,r){return _s(t+n,e+r)};return{left:t,top:e,translate:n}},As=_s,Es=function(t){var e=t.getBoundingClientRect();return As(e.left,e.top)},Ts=function(t,e){return void 0!==t?t:void 0!==e?e:0},Ds=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,o=e.documentElement;if(n===t.dom)return As(n.offsetLeft,n.offsetTop);var i=Ts(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=Ts(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),u=Ts(o.clientTop,n.clientTop),s=Ts(o.clientLeft,n.clientLeft);return Is(t).translate(a-s,i-u)},Is=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?As(r.offsetLeft,r.offsetTop):Uu(t)?Es(e):As(0,0)},Bs=ws("width",(function(t){return t.dom.offsetWidth})),Ls=function(t,e){return Bs.set(t,e)},Ns=function(t){return Bs.get(t)},Ps=function(t){return Bs.getOuter(t)},Ms=function(t,e){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=Bs.max(t,e,n);Xu(t,"max-width",r+"px")},js=function(t,e,n,r,o,i,a){return{target:t,x:e,y:n,stop:r,prevent:o,kill:i,raw:a}},Rs=function(t){var e=er.fromDom(Hu(t).getOr(t.target)),n=function(){return t.stopPropagation()},o=function(){return t.preventDefault()},i=r(o,n);return js(e,t.clientX,t.clientY,n,o,i,t)},$s=function(t,e){return function(n){t(n)&&e(Rs(n))}},Fs=function(t,e,n,r,o){var i=$s(n,r);return t.dom.addEventListener(e,i,o),{unbind:u(zs,t,e,i,o)}},Vs=function(t,e,n,r){return Fs(t,e,n,r,!1)},Hs=function(t,e,n,r){return Fs(t,e,n,r,!0)},zs=function(t,e,n,r){t.dom.removeEventListener(e,n,r)},Us=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return As(n,r)},Ws=function(t,e,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(t,e)},qs=function(t){var e=void 0===t?window:t;return w.from(e["visualViewport"])},Gs=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Ys=function(t){var e=void 0===t?window:t,n=e.document,r=Us(er.fromDom(n));return qs(e).fold((function(){var t=e.document.documentElement,n=t.clientWidth,o=t.clientHeight;return Gs(r.left,r.top,n,o)}),(function(t){return Gs(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)}))},Xs=function(t,e){var n=t.view(e);return n.fold(i([]),(function(e){var n=t.owner(e),r=Xs(t,n);return[e].concat(r)}))},Ks=function(t,e){var n=e.owner(t),r=Xs(e,n);return w.some(r)},Zs=function(t){var e,n=t.dom===document?w.none():w.from(null===(e=t.dom.defaultView)||void 0===e?void 0:e.frameElement);return n.map(er.fromDom)},Js=function(t){return Vi(t)},Qs=Object.freeze({__proto__:null,view:Zs,owner:Js}),tc=function(t){var e=er.fromDom(document),n=Us(e),r=Ks(t,Qs);return r.fold(u(Ds,t),(function(e){var r=Is(t),o=K(e,(function(t,e){var n=Is(e);return{left:t.left+n.left,top:t.top+n.top}}),{left:0,top:0});return As(o.left+r.left+n.left,o.top+r.top+n.top)}))},ec=function(t,e,n){return{point:t,width:e,height:n}},nc=function(t,e,n,r){return{x:t,y:e,width:n,height:r}},rc=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},oc=function(t){var e=Ds(t),n=Ps(t),r=ks(t);return rc(e.left,e.top,n,r)},ic=function(t){var e=tc(t),n=Ps(t),r=ks(t);return rc(e.left,e.top,n,r)},ac=function(){return Ys(window)};function uc(t,e,n,r,o){return t(n,r)?w.some(n):L(o)&&o(n)?w.none():e(n,r,o)}var sc,cc=function(t,e,n){var r=t.dom,o=L(n)?n:l;while(r.parentNode){r=r.parentNode;var i=er.fromDom(r);if(e(i))return w.some(i);if(o(i))break}return w.none()},lc=function(t,e,n){var r=function(t,e){return e(t)};return uc(r,cc,t,e,n)},fc=function(t,e){var n=function(t){for(var r=0;r<t.childNodes.length;r++){var o=er.fromDom(t.childNodes[r]);if(e(o))return w.some(o);var i=n(t.childNodes[r]);if(i.isSome())return i}return w.none()};return n(t.dom)},dc=function(t,e,n){return lc(t,e,n).isSome()},hc=function(t,e,n){return cc(t,(function(t){return to(t,e)}),n)},pc=function(t,e){return ro(e,t)},mc=function(t,e,n){var r=function(t,e){return to(t,e)};return uc(r,hc,t,e,n)},gc=function(t){var e=lc(t,(function(t){if(!ji(t))return!1;var e=ma(t,"id");return void 0!==e&&e.indexOf("aria-owns")>-1}));return e.bind((function(t){var e=ma(t,"id"),n=ju(t);return pc(n,'[aria-owns="'+e+'"]')}))},vc=function(){var t=Aa("aria-owns"),e=function(e){ha(e,"aria-owns",t)},n=function(t){ba(t,"aria-owns")};return{id:t,link:e,unlink:n}},bc=function(t,e){return gc(e).exists((function(e){return yc(t,e)}))},yc=function(t,e){return dc(e,(function(e){return oo(e,t.element)}),l)||bc(t,e)},xc="unknown";(function(t){t[t["STOP"]=0]="STOP",t[t["NORMAL"]=1]="NORMAL",t[t["LOGGING"]=2]="LOGGING"})(sc||(sc={}));var wc,Cc=Xn({}),Sc=function(t,e){var n=[],r=(new Date).getTime();return{logEventCut:function(t,e,r){n.push({outcome:"cut",target:e,purpose:r})},logEventStopped:function(t,e,r){n.push({outcome:"stopped",target:e,purpose:r})},logNoParent:function(t,e,r){n.push({outcome:"no-parent",target:e,purpose:r})},logEventNoHandlers:function(t,e){n.push({outcome:"no-handlers-left",target:e})},logEventResponse:function(t,e,r){n.push({outcome:"response",purpose:r,target:e})},write:function(){var o=(new Date).getTime();V(["mousemove","mouseover","mouseout",Xo()],t)||console.log(t,{event:t,time:o-r,target:e.dom,sequence:W(n,(function(t){return V(["cut","stopped","response"],t.outcome)?"{"+t.purpose+"} "+t.outcome+" at ("+Ca(t.target)+")":t.outcome}))})}}},kc=function(t,e,n){var r=$t(Cc.get(),t).orThunk((function(){var e=Et(Cc.get());return dt(e,(function(e){return t.indexOf(e)>-1?w.some(Cc.get()[e]):w.none()}))})).getOr(sc.NORMAL);switch(r){case sc.NORMAL:return n(Tc());case sc.LOGGING:var o=Sc(t,e),i=n(o);return o.write(),i;case sc.STOP:return!0}},Oc=["alloy/data/Fields","alloy/debugging/Debugging"],_c=function(){var t=new Error;if(void 0!==t.stack){var e=t.stack.split("\n");return Q(e,(function(t){return t.indexOf("alloy")>0&&!H(Oc,(function(e){return t.indexOf(e)>-1}))})).getOr(xc)}return xc},Ac={logEventCut:e,logEventStopped:e,logNoParent:e,logEventNoHandlers:e,logEventResponse:e,write:e},Ec=function(t,e,n){return kc(t,e,n)},Tc=i(Ac),Dc=i([yn("menu"),yn("selectedMenu")]),Ic=i([yn("item"),yn("selectedItem")]),Bc=(i(Re(Ic().concat(Dc()))),i(Re(Ic()))),Lc=An("initSize",[yn("numColumns"),yn("numRows")]),Nc=function(){return xn("markers",Bc())},Pc=function(){return An("markers",[yn("backgroundMenu")].concat(Dc()).concat(Ic()))},Mc=function(t){return An("markers",W(t,yn))},jc=function(t,e,n){_c();return qe(e,e,n,Qe((function(t){return gt.value((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(void 0,e)}))})))},Rc=function(t){return jc("onHandler",t,Jt(e))},$c=function(t){return jc("onKeyboardHandler",t,Jt(w.none))},Fc=function(t){return jc("onHandler",t,te())},Vc=function(t){return jc("onKeyboardHandler",t,te())},Hc=function(t,e){return Yn(t,i(e))},zc=function(t){return Yn(t,a)},Uc=i(Lc),Wc=function(t,e,n,r,o,i){return{x:t,y:e,bubble:n,direction:r,boundsRestriction:o,label:i}},qc=zt.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Gc=function(t,e,n,r,o,i,a,u,s){return t.fold(e,n,r,o,i,a,u,s)},Yc=function(t,e,n,r){return t.fold(e,e,r,r,e,r,n,n)},Xc=function(t,e,n,r){return t.fold(e,r,e,r,n,n,e,r)},Kc=qc.southeast,Zc=qc.southwest,Jc=qc.northeast,Qc=qc.northwest,tl=qc.south,el=qc.north,nl=qc.east,rl=qc.west,ol=function(t,e){switch(e){case 1:return t.x;case 0:return t.x+t.width;case 2:return t.y;case 3:return t.y+t.height}},il=function(t,e){return at(["left","right","top","bottom"],(function(n){return $t(e,n).map((function(e){return ol(t,e)}))}))},al=function(t,e,n){var r=function(t,r){var o="top"===t||"bottom"===t?n.top:n.left;return $t(e,t).bind(a).bind((function(e){return"left"===t||"top"===t?e>=r?w.some(e):w.none():e<=r?w.some(e):w.none()})).map((function(t){return t+o})).getOr(r)},o=r("left",t.x),i=r("top",t.y),u=r("right",t.right),s=r("bottom",t.bottom);return rc(o,i,u-o,s-i)},ul=function(t){return t.x},sl=function(t,e){return t.x+t.width/2-e.width/2},cl=function(t,e){return t.x+t.width-e.width},ll=function(t,e){return t.y-e.height},fl=function(t){return t.y+t.height},dl=function(t,e){return t.y+t.height/2-e.height/2},hl=function(t){return t.x+t.width},pl=function(t,e){return t.x-e.width},ml=function(t,e,n){return Wc(ul(t),fl(t),n.southeast(),Kc(),il(t,{left:1,top:3}),"layout-se")},gl=function(t,e,n){return Wc(cl(t,e),fl(t),n.southwest(),Zc(),il(t,{right:0,top:3}),"layout-sw")},vl=function(t,e,n){return Wc(ul(t),ll(t,e),n.northeast(),Jc(),il(t,{left:1,bottom:2}),"layout-ne")},bl=function(t,e,n){return Wc(cl(t,e),ll(t,e),n.northwest(),Qc(),il(t,{right:0,bottom:2}),"layout-nw")},yl=function(t,e,n){return Wc(sl(t,e),ll(t,e),n.north(),el(),il(t,{bottom:2}),"layout-n")},xl=function(t,e,n){return Wc(sl(t,e),fl(t),n.south(),tl(),il(t,{top:3}),"layout-s")},wl=function(t,e,n){return Wc(hl(t),dl(t,e),n.east(),nl(),il(t,{left:0}),"layout-e")},Cl=function(t,e,n){return Wc(pl(t,e),dl(t,e),n.west(),rl(),il(t,{right:1}),"layout-w")},Sl=function(){return[ml,gl,vl,bl,xl,yl,wl,Cl]},kl=function(){return[gl,ml,bl,vl,xl,yl,wl,Cl]},Ol=function(){return[vl,bl,ml,gl,yl,xl]},_l=function(){return[bl,vl,gl,ml,yl,xl]},Al=function(){return[ml,gl,vl,bl,xl,yl]},El=function(){return[gl,ml,bl,vl,xl,yl]},Tl=function(t,e){return e.universal?t:X(t,(function(t){return V(e.channels,t)}))},Dl=function(t){return gi([xi(Ho(),(function(e,n){var r=t.channels,o=Et(r),i=n,a=Tl(o,i);q(a,(function(t){var n=r[t],o=n.schema,a=on("channel["+t+"] data\nReceiver: "+Ca(e.element),o,i.data);n.onReceive(e,a)}))}))])},Il=Object.freeze({__proto__:null,events:Dl}),Bl=[xn("channels",tn(gt.value,je([Fc("onReceive"),Rn("schema",ln())])))],Ll=function(t,e,n){return Li((function(r){n(r,t,e)}))},Nl=function(t,e,n){return Bi((function(r,o){n(r,t,e)}))},Pl=function(t,e,n,r,o,i){var a=je(t),u=Mn(e,[jn("config",t)]);return $l(a,u,e,n,r,o,i)},Ml=function(t,e,n,r,o,i){var a=t,u=Mn(e,[In("config",t)]);return $l(a,u,e,n,r,o,i)},jl=function(t,e,n){var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];var u=[r].concat(o);return r.config({name:i(t)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+t+". Using API: "+n)}),(function(t){var n=Array.prototype.slice.call(u,1);return e.apply(void 0,[r,t.config,t.state].concat(n))}))};return $a(r,n,e)},Rl=function(t){return{key:t,value:void 0}},$l=function(t,e,n,r,o,i,a){var s=function(t){return Vt(t,n)?t[n]():w.none()},c=It(o,(function(t,e){return jl(n,t,e)})),l=It(i,(function(t,e){return Va(t,e)})),f=h(h(h({},l),c),{revoke:u(Rl,n),config:function(e){var r=on(n+"-config",t,e);return{key:n,value:{config:r,me:f,configAsRaw:Kt((function(){return on(n+"-config",t,e)})),initialConfig:e,state:a}}},schema:function(){return e},exhibit:function(t,e){return s(t).bind((function(t){return $t(r,"exhibit").map((function(n){return n(e,t.config,t.state)}))})).getOr(Qa({}))},name:function(){return n},handlers:function(t){return s(t).map((function(t){var e=$t(r,"events").getOr((function(){return{}}));return e(t.config,t.state)})).getOr({})}});return f},Fl=function(t){return le(t)},Vl=je([yn("fields"),yn("name"),Rn("active",{}),Rn("apis",{}),Rn("state",Ga),Rn("extra",{})]),Hl=function(t){var e=on("Creating behaviour: "+t.name,Vl,t);return Pl(e.fields,e.name,e.active,e.apis,e.extra,e.state)},zl=je([yn("branchKey"),yn("branches"),yn("name"),Rn("active",{}),Rn("apis",{}),Rn("state",Ga),Rn("extra",{})]),Ul=function(t){var e=on("Creating behaviour: "+t.name,zl,t);return Ml(sn(e.branchKey,e.branches),e.name,e.active,e.apis,e.extra,e.state)},Wl=i(void 0),ql=Hl({fields:Bl,name:"receiving",active:Il}),Gl=function(t,e){return Qa({classes:[],styles:e.useFixed()?{}:{position:"relative"}})},Yl=Object.freeze({__proto__:null,exhibit:Gl}),Xl=function(){return er.fromDom(document)},Kl=function(t){return t.dom.focus()},Zl=function(t){return t.dom.blur()},Jl=function(t){var e=ju(t).dom;return t.dom===e.activeElement},Ql=function(t){return void 0===t&&(t=Xl()),w.from(t.dom.activeElement).map(er.fromDom)},tf=function(t){return Ql(ju(t)).filter((function(e){return t.dom.contains(e.dom)}))},ef=function(t,n){var r=ju(n),o=Ql(r).bind((function(t){var e=function(e){return oo(t,e)};return e(n)?w.some(n):fc(n,e)})),i=t(n);return o.each((function(t){Ql(r).filter((function(e){return oo(e,t)})).fold((function(){Kl(t)}),e)})),i},nf=function(t,e,n,r,o){return{position:t,left:e,top:n,right:r,bottom:o}},rf=function(t,e){var n=function(t){return t+"px"};Zu(t,{position:w.some(e.position),left:e.left.map(n),top:e.top.map(n),right:e.right.map(n),bottom:e.bottom.map(n)})},of=zt.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),af=function(t,e,n,r,o,i){var a=e.x-n,u=e.y-r,s=e.width,c=e.height,l=o-(a+s),f=i-(u+c),d=w.some(a),h=w.some(u),p=w.some(l),m=w.some(f),g=w.none();return Gc(e.direction,(function(){return nf(t,d,h,g,g)}),(function(){return nf(t,g,h,p,g)}),(function(){return nf(t,d,g,g,m)}),(function(){return nf(t,g,g,p,m)}),(function(){return nf(t,d,h,g,g)}),(function(){return nf(t,d,g,g,m)}),(function(){return nf(t,d,h,g,g)}),(function(){return nf(t,g,h,p,g)}))},uf=function(t,e){return t.fold((function(){return nf("absolute",w.some(e.x),w.some(e.y),w.none(),w.none())}),(function(t,n,r,o){return af("absolute",e,t,n,r,o)}),(function(t,n,r,o){return af("fixed",e,t,n,r,o)}))},sf=function(t,e){var n=u(tc,e),r=t.fold(n,n,(function(){var t=Us();return tc(e).translate(-t.left,-t.top)})),o=Ps(e),i=ks(e);return rc(r.left,r.top,o,i)},cf=function(t,e){return e.fold((function(){return t.fold(ac,ac,rc)}),(function(e){return t.fold(e,e,(function(){var n=e(),r=lf(t,n.x,n.y);return rc(r.left,r.top,n.width,n.height)}))}))},lf=function(t,e,n){var r=As(e,n),o=function(){var t=Us();return r.translate(-t.left,-t.top)};return t.fold(i(r),i(r),o)},ff=function(t,e,n,r){return t.fold(e,n,r)},df=(of.none,of.relative),hf=of.fixed,pf=function(t,e){return{anchorBox:t,origin:e}},mf=function(t,e){return pf(t,e)},gf=function(t,e,n,r){var o=t+e;return o>r?n:o<n?r:o},vf=function(t,e,n){return Math.min(Math.max(t,e),n)},bf=zt.generate([{fit:["reposition"]},{nofit:["reposition","deltaW","deltaH"]}]),yf=function(t,e,n,r,o){var i=o.x,a=o.y,u=o.width,s=o.height,c=t>=i,l=e>=a,f=c&&l,d=t+n<=i+u,h=e+r<=a+s,p=d&&h,m=Math.abs(Math.min(n,c?i+u-t:i-(t+n))),g=Math.abs(Math.min(r,l?a+s-e:a-(e+r))),v=Math.max(o.x,o.right-n),b=Math.max(o.y,o.bottom-r),y=vf(t,o.x,v),x=vf(e,o.y,b);return{originInBounds:f,sizeInBounds:p,limitX:y,limitY:x,deltaW:m,deltaH:g}},xf=function(t,e,n,r){var o=t.x,a=t.y,u=t.bubble.offset,s=u.left,c=u.top,l=al(r,t.boundsRestriction,u),f=l.y,d=l.bottom,h=l.x,p=l.right,m=o+s,g=a+c,v=yf(m,g,e,n,l),b=v.originInBounds,y=v.sizeInBounds,x=v.limitX,w=v.limitY,C=v.deltaW,S=v.deltaH,k=i(w+S-f),O=i(d-w),_=Yc(t.direction,O,O,k),A=i(x+C-h),E=i(p-x),T=Xc(t.direction,E,E,A),D={x:x,y:w,width:C,height:S,maxHeight:_,maxWidth:T,direction:t.direction,classes:{on:t.bubble.classesOn,off:t.bubble.classesOff},label:t.label,candidateYforTest:g};return b&&y?bf.fit(D):bf.nofit(D,C,S)},wf=function(t,e,n,r,o){var i=n.width,s=n.height,c=function(t,a,u,c){var l=t(e,n,r),f=xf(l,i,s,o);return f.fold(bf.fit,(function(t,e,n){var r=n>c||e>u;return r?bf.nofit(t,e,n):bf.nofit(a,u,c)}))},l=Z(t,(function(t,e){var n=u(c,e);return t.fold(bf.fit,n)}),bf.nofit({x:e.x,y:e.y,width:n.width,height:n.height,maxHeight:n.height,maxWidth:n.width,direction:Kc(),classes:{on:[],off:[]},label:"none",candidateYforTest:e.y},-1,-1));return l.fold(a,a)},Cf=function(t){return{width:Ps(t),height:ks(t)}},Sf=function(t,e,n,r){rs(e,"max-height"),rs(e,"max-width");var o=Cf(e);return wf(r.preference,t,o,n,r.bounds)},kf=function(t,e){var n=e.classes;Bu(t,n.off),Iu(t,n.on)},Of=function(t,e,n){var r=n.maxHeightFunction;r(t,e.maxHeight)},_f=function(t,e,n){var r=n.maxWidthFunction;r(t,e.maxWidth)},Af=function(t,e,n){rf(t,uf(n.origin,e))},Ef=function(t,e){Os(t,Math.floor(e))},Tf=i((function(t,e){Ef(t,e),Ku(t,{"overflow-x":"hidden","overflow-y":"auto"})})),Df=i((function(t,e){Ef(t,e)})),If=function(t,e,n){return void 0===t[e]?n:t[e]},Bf=function(t,n,r,o,i,a){var u=If(a,"maxHeightFunction",Tf()),s=If(a,"maxWidthFunction",e),c=t.anchorBox,l=t.origin,f={bounds:cf(l,i),origin:l,preference:o,maxHeightFunction:u,maxWidthFunction:s};Lf(c,n,r,f)},Lf=function(t,e,n,r){var o=Sf(t,e,n,r);Af(e,o,r),kf(e,o),Of(e,o,r),_f(e,o,r)},Nf=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right"],Pf=function(t,e,n){var r=function(t){return $t(n,t).getOr([])},o=function(t,e,n){var o=it(Nf,n);return{offset:As(t,e),classesOn:nt(n,r),classesOff:nt(o,r)}};return{southeast:function(){return o(-t,e,["top","alignLeft"])},southwest:function(){return o(t,e,["top","alignRight"])},south:function(){return o(-t/2,e,["top","alignCentre"])},northeast:function(){return o(-t,-e,["bottom","alignLeft"])},northwest:function(){return o(t,-e,["bottom","alignRight"])},north:function(){return o(-t/2,-e,["bottom","alignCentre"])},east:function(){return o(t,-e/2,["valignCentre","left"])},west:function(){return o(-t,-e/2,["valignCentre","right"])},innerNorthwest:function(){return o(-t,e,["top","alignRight"])},innerNortheast:function(){return o(t,e,["top","alignLeft"])},innerNorth:function(){return o(-t/2,e,["top","alignCentre"])},innerSouthwest:function(){return o(-t,-e,["bottom","alignRight"])},innerSoutheast:function(){return o(t,-e,["bottom","alignLeft"])},innerSouth:function(){return o(-t/2,-e,["bottom","alignCentre"])},innerWest:function(){return o(t,-e/2,["valignCentre","right"])},innerEast:function(){return o(-t,-e/2,["valignCentre","left"])}}},Mf=function(){return Pf(0,0,{})},jf=function(t){return t},Rf=function(t,e){return function(n){return"rtl"===$f(n)?e:t}},$f=function(t){return"rtl"===Ju(t,"direction")?"rtl":"ltr"};(function(t){t["TopToBottom"]="toptobottom",t["BottomToTop"]="bottomtotop"})(wc||(wc={}));var Ff="data-alloy-vertical-dir",Vf=function(t){return dc(t,(function(t){return ji(t)&&ma(t,"data-alloy-vertical-dir")===wc.BottomToTop}))},Hf=function(){return Mn("layouts",[yn("onLtr"),yn("onRtl"),Dn("onBottomLtr"),Dn("onBottomRtl")])},zf=function(t,e,n,r,o,i,a){var u=a.map(Vf).getOr(!1),s=e.layouts.map((function(e){return e.onLtr(t)})),c=e.layouts.map((function(e){return e.onRtl(t)})),l=u?e.layouts.bind((function(e){return e.onBottomLtr.map((function(e){return e(t)}))})).or(s).getOr(o):s.getOr(n),f=u?e.layouts.bind((function(e){return e.onBottomRtl.map((function(e){return e(t)}))})).or(c).getOr(i):c.getOr(r),d=Rf(l,f);return d(t)},Uf=function(t,e,n){var r=e.hotspot,o=sf(n,r.element),i=zf(t.element,e,Al(),El(),Ol(),_l(),w.some(e.hotspot.element));return w.some(jf({anchorBox:o,bubble:e.bubble.getOr(Mf()),overrides:e.overrides,layouts:i,placer:w.none()}))},Wf=[yn("hotspot"),Dn("bubble"),Rn("overrides",{}),Hf(),Hc("placement",Uf)],qf=function(t,e,n){var r=lf(n,e.x,e.y),o=rc(r.left,r.top,e.width,e.height),i=zf(t.element,e,Sl(),kl(),Sl(),kl(),w.none());return w.some(jf({anchorBox:o,bubble:e.bubble,overrides:e.overrides,layouts:i,placer:w.none()}))},Gf=[yn("x"),yn("y"),Rn("height",0),Rn("width",0),Rn("bubble",Mf()),Rn("overrides",{}),Hf(),Hc("placement",qf)],Yf="\ufeff",Xf=" ",Kf=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Zf={create:Kf},Jf=zt.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Qf=function(t,e,n,r){return t.fold(e,n,r)},td=function(t){return t.fold(a,a,a)},ed=Jf.before,nd=Jf.on,rd=Jf.after,od={before:ed,on:nd,after:rd,cata:Qf,getStart:td},id=zt.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),ad=function(t){return id.exact(t.start,t.soffset,t.finish,t.foffset)},ud=function(t){return t.match({domRange:function(t){return er.fromDom(t.startContainer)},relative:function(t,e){return od.getStart(t)},exact:function(t,e,n,r){return t}})},sd=id.domRange,cd=id.relative,ld=id.exact,fd=function(t){var e=ud(t);return Ui(e)},dd=Zf.create,hd={domRange:sd,relative:cd,exact:ld,exactFromRange:ad,getWin:fd,range:dd},pd=function(t,e){e.fold((function(e){t.setStartBefore(e.dom)}),(function(e,n){t.setStart(e.dom,n)}),(function(e){t.setStartAfter(e.dom)}))},md=function(t,e){e.fold((function(e){t.setEndBefore(e.dom)}),(function(e,n){t.setEnd(e.dom,n)}),(function(e){t.setEndAfter(e.dom)}))},gd=function(t,e,n){var r=t.document.createRange();return pd(r,e),md(r,n),r},vd=function(t,e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},bd=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},yd=function(t){var e=t.getClientRects(),n=e.length>0?e[0]:t.getBoundingClientRect();return n.width>0||n.height>0?w.some(n).map(bd):w.none()},xd=zt.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),wd=function(t,e,n){return e(er.fromDom(n.startContainer),n.startOffset,er.fromDom(n.endContainer),n.endOffset)},Cd=function(t,e){return e.match({domRange:function(t){return{ltr:i(t),rtl:w.none}},relative:function(e,n){return{ltr:Kt((function(){return gd(t,e,n)})),rtl:Kt((function(){return w.some(gd(t,n,e))}))}},exact:function(e,n,r,o){return{ltr:Kt((function(){return vd(t,e,n,r,o)})),rtl:Kt((function(){return w.some(vd(t,r,o,e,n))}))}}})},Sd=function(t,e){var n=e.ltr();if(n.collapsed){var r=e.rtl().filter((function(t){return!1===t.collapsed}));return r.map((function(t){return xd.rtl(er.fromDom(t.endContainer),t.endOffset,er.fromDom(t.startContainer),t.startOffset)})).getOrThunk((function(){return wd(t,xd.ltr,n)}))}return wd(t,xd.ltr,n)},kd=function(t,e){var n=Cd(t,e);return Sd(t,n)},Od=function(t,e){var n=kd(t,e);return n.match({ltr:function(e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},rtl:function(e,n,r,o){var i=t.document.createRange();return i.setStart(r.dom,o),i.setEnd(e.dom,n),i}})};xd.ltr,xd.rtl;function _d(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?w.from(e.dom.nodeValue):w.none()},o=function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}}var Ad=_d(Ri,"text"),Ed=function(t){return Ad.get(t)},Td=function(t){return Ad.getOption(t)},Dd=function(t){return"img"===Ni(t)?1:Td(t).fold((function(){return Xi(t).length}),(function(t){return t.length}))},Id=function(t){return Td(t).filter((function(t){return 0!==t.trim().length||t.indexOf(Xf)>-1})).isSome()},Bd=["img","br"],Ld=function(t){var e=Id(t);return e||V(Bd,Ni(t))},Nd=function(t){return Pd(t,Ld)},Pd=function(t,e){var n=function(t){for(var r=Xi(t),o=r.length-1;o>=0;o--){var i=r[o];if(e(i))return w.some(i);var a=n(i);if(a.isSome())return a}return w.none()};return n(t)},Md=function(t,e){return no(e,t)},jd=function(t,e,n,r){var o=Vi(t),i=o.dom.createRange();return i.setStart(t.dom,e),i.setEnd(n.dom,r),i},Rd=function(t,e,n,r){var o=jd(t,e,n,r),i=oo(t,n)&&e===r;return o.collapsed&&!i},$d=function(t){return w.from(t.getSelection())},Fd=function(t){if(t.rangeCount>0){var e=t.getRangeAt(0),n=t.getRangeAt(t.rangeCount-1);return w.some(Zf.create(er.fromDom(e.startContainer),e.startOffset,er.fromDom(n.endContainer),n.endOffset))}return w.none()},Vd=function(t){if(null===t.anchorNode||null===t.focusNode)return Fd(t);var e=er.fromDom(t.anchorNode),n=er.fromDom(t.focusNode);return Rd(e,t.anchorOffset,n,t.focusOffset)?w.some(Zf.create(e,t.anchorOffset,n,t.focusOffset)):Fd(t)},Hd=function(t){return $d(t).filter((function(t){return t.rangeCount>0})).bind(Vd)},zd=function(t,e){var n=Od(t,e);return yd(n)},Ud=function(t,e){return{element:t,offset:e}},Wd=function(t,e){var n=Xi(t);if(0===n.length)return Ud(t,e);if(e<n.length)return Ud(n[e],0);var r=n[n.length-1],o=Ri(r)?Ed(r).length:Xi(r).length;return Ud(r,o)},qd=zt.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Gd=function(t){return t.fold(a,(function(t,e,n){return t.translate(-e,-n)}))},Yd=function(t){return t.fold(a,a)},Xd=function(t){return Z(t,(function(t,e){return t.translate(e.left,e.top)}),As(0,0))},Kd=function(t){var e=W(t,Gd);return Xd(e)},Zd=function(t){var e=W(t,Yd);return Xd(e)},Jd=qd.screen,Qd=qd.absolute,th=function(t,e,n){var r=Ui(n.root).dom,o=function(e){var n=Vi(e),r=Vi(t.element);return oo(n,r)};return w.from(r.frameElement).map(er.fromDom).filter(o).map(Ds)},eh=function(t,e,n){var r=Vi(t.element),o=Us(r),i=th(t,e,n).getOr(o);return Qd(i,o.left,o.top)},nh=function(t,e,n,r){var o=t,i=e,a=n,u=r;t<0&&(o=0,a=n+t),e<0&&(i=0,u=r+e);var s=Jd(As(o,i));return w.some(ec(s,a,u))},rh=function(t,e,n,r,o){return t.map((function(t){var i=[e,t.point],a=ff(r,(function(){return Zd(i)}),(function(){return Zd(i)}),(function(){return Kd(i)})),u=nc(a.left,a.top,t.width,t.height),s=n.showAbove?Ol():Al(),c=n.showAbove?_l():El(),l=zf(o,n,s,c,s,c,w.none());return jf({anchorBox:u,bubble:n.bubble.getOr(Mf()),overrides:n.overrides,layouts:l,placer:w.none()})}))},oh=function(t,e){return Ri(t)?Ud(t,e):Wd(t,e)},ih=function(t,e){var n=e.getSelection.getOrThunk((function(){return function(){return Hd(t)}}));return n().map((function(t){var e=oh(t.start,t.soffset),n=oh(t.finish,t.foffset);return hd.range(e.element,e.offset,n.element,n.offset)}))},ah=function(t,e,n){var r=Ui(e.root).dom,o=eh(t,n,e),i=ih(r,e).bind((function(t){var e=zd(r,hd.exactFromRange(t)).orThunk((function(){var e=er.fromText(Yf);return Ji(t.start,e),zd(r,hd.exact(e,0,e,1)).map((function(t){return aa(e),t}))}));return e.bind((function(t){return nh(t.left,t.top,t.width,t.height)}))})),a=ih(r,e).bind((function(t){return ji(t.start)?w.some(t.start):qi(t.start)})),u=a.getOr(t.element);return rh(i,o,e,n,u)},uh=[Dn("getSelection"),yn("root"),Dn("bubble"),Hf(),Rn("overrides",{}),Rn("showAbove",!1),Hc("placement",ah)],sh=function(t,e,n){var r=eh(t,n,e);return e.node.bind((function(o){var i=o.dom.getBoundingClientRect(),a=nh(i.left,i.top,i.width,i.height),u=e.node.getOr(t.element);return rh(a,r,e,n,u)}))},ch=[yn("node"),yn("root"),Dn("bubble"),Hf(),Rn("overrides",{}),Rn("showAbove",!1),Hc("placement",sh)],lh=function(t){return t.x+t.width},fh=function(t,e){return t.x-e.width},dh=function(t,e){return t.y-e.height+t.height},hh=function(t){return t.y},ph=function(t,e,n){return Wc(lh(t),hh(t),n.southeast(),Kc(),il(t,{left:0,top:2}),"link-layout-se")},mh=function(t,e,n){return Wc(fh(t,e),hh(t),n.southwest(),Zc(),il(t,{right:1,top:2}),"link-layout-sw")},gh=function(t,e,n){return Wc(lh(t),dh(t,e),n.northeast(),Jc(),il(t,{left:0,bottom:3}),"link-layout-ne")},vh=function(t,e,n){return Wc(fh(t,e),dh(t,e),n.northwest(),Qc(),il(t,{right:1,bottom:3}),"link-layout-nw")},bh=function(){return[ph,mh,gh,vh]},yh=function(){return[mh,ph,vh,gh]},xh=function(t,e,n){var r=sf(n,e.item.element),o=zf(t.element,e,bh(),yh(),bh(),yh(),w.none());return w.some(jf({anchorBox:r,bubble:Mf(),overrides:e.overrides,layouts:o,placer:w.none()}))},wh=[yn("item"),Hf(),Rn("overrides",{}),Hc("placement",xh)],Ch=sn("anchor",{selection:uh,node:ch,hotspot:Wf,submenu:wh,makeshift:Gf}),Sh=function(){var t=document.documentElement;return hf(0,0,t.clientWidth,t.clientHeight)},kh=function(t){var e=Ds(t.element),n=t.element.dom.getBoundingClientRect();return df(e.left,e.top,n.width,n.height)},Oh=function(t,e,n,r,o){var i=mf(n.anchorBox,e);Bf(i,o.element,n.bubble,n.layouts,r,n.overrides)},_h=function(t,e,n,r,o){Ah(t,e,n,r,o,w.none())},Ah=function(t,e,n,r,o,i){var a=i.map(oc);return Eh(t,e,n,r,o,a)},Eh=function(t,e,n,r,o,a){var u=on("positioning anchor.info",Ch,r);ef((function(){Xu(o.element,"position","fixed");var n=ts(o.element,"visibility");Xu(o.element,"visibility","hidden");var r=e.useFixed()?Sh():kh(t),s=u.placement,c=a.map(i).or(e.getBounds);s(t,u,r).each((function(e){var n=e.placer.getOr(Oh);n(t,r,e,c,o)})),n.fold((function(){rs(o.element,"visibility")}),(function(t){Xu(o.element,"visibility",t)})),ts(o.element,"left").isNone()&&ts(o.element,"top").isNone()&&ts(o.element,"right").isNone()&&ts(o.element,"bottom").isNone()&&ts(o.element,"position").is("fixed")&&rs(o.element,"position")}),o.element)},Th=function(t,e,n){return e.useFixed()?"fixed":"absolute"},Dh=Object.freeze({__proto__:null,position:_h,positionWithin:Ah,positionWithinBounds:Eh,getMode:Th}),Ih=[Rn("useFixed",l),Dn("getBounds")],Bh=Hl({fields:Ih,name:"positioning",active:Yl,apis:Dh}),Lh=function(t){li(t,ei());var e=t.components();q(e,Lh)},Nh=function(t){var e=t.components();q(e,Nh),li(t,ti())},Ph=function(t,e){ea(t.element,e.element)},Mh=function(t){q(t.components(),(function(t){return aa(t.element)})),ia(t.element),t.syncComponents()},jh=function(t,e){var n=t.components();Mh(t);var r=it(n,e);q(r,(function(e){Lh(e),t.getSystem().removeFromWorld(e)})),q(e,(function(e){e.getSystem().isConnected()?Ph(t,e):(t.getSystem().addToWorld(e),Ph(t,e),Uu(t.element)&&Nh(e)),t.syncComponents()}))},Rh=function(t,e){$h(t,e,ea)},$h=function(t,e,n){t.getSystem().addToWorld(e),n(t.element,e.element),Uu(t.element)&&Nh(e),t.syncComponents()},Fh=function(t){Lh(t),aa(t.element),t.getSystem().removeFromWorld(t)},Vh=function(t){var e=Wi(t.element).bind((function(e){return t.getSystem().getByDom(e).toOptional()}));Fh(t),e.each((function(t){t.syncComponents()}))},Hh=function(t){var e=t.components();q(e,Fh),ia(t.element),t.syncComponents()},zh=function(t,e){Wh(t,e,ea)},Uh=function(t,e){Wh(t,e,Qi)},Wh=function(t,e,n){n(t,e.element);var r=Xi(e.element);q(r,(function(t){e.getByDom(t).each(Nh)}))},qh=function(t){var e=Xi(t.element);q(e,(function(e){t.getByDom(e).each(Lh)})),aa(t.element)},Gh=function(t,e,n,r){n.get().each((function(e){Hh(t)}));var o=e.getAttachPoint(t);Rh(o,t);var i=t.getSystem().build(r);return Rh(t,i),n.set(i),i},Yh=function(t,e,n,r){var o=Gh(t,e,n,r);return e.onOpen(t,o),o},Xh=function(t,e,n,r){return n.get().map((function(){return Gh(t,e,n,r)}))},Kh=function(t,e,n,r,o){rp(t,e),Yh(t,e,n,r),o(),ip(t,e)},Zh=function(t,e,n){n.get().each((function(r){Hh(t),Vh(t),e.onClose(t,r),n.clear()}))},Jh=function(t,e,n){return n.isOpen()},Qh=function(t,e,n,r){return Jh(t,e,n)&&n.get().exists((function(n){return e.isPartOf(t,n,r)}))},tp=function(t,e,n){return n.get()},ep=function(t,e,n,r){ts(t.element,e).fold((function(){ba(t.element,n)}),(function(e){ha(t.element,n,e)})),Xu(t.element,e,r)},np=function(t,e,n){ga(t.element,n).fold((function(){return rs(t.element,e)}),(function(n){return Xu(t.element,e,n)}))},rp=function(t,e,n){var r=e.getAttachPoint(t);Xu(t.element,"position",Bh.getMode(r)),ep(t,"visibility",e.cloakVisibilityAttr,"hidden")},op=function(t){return H(["top","left","right","bottom"],(function(e){return ts(t,e).isSome()}))},ip=function(t,e,n){op(t.element)||rs(t.element,"position"),np(t,"visibility",e.cloakVisibilityAttr)},ap=Object.freeze({__proto__:null,cloak:rp,decloak:ip,open:Yh,openWhileCloaked:Kh,close:Zh,isOpen:Jh,isPartOf:Qh,getState:tp,setContent:Xh}),up=function(t,e){return gi([xi(Go(),(function(n,r){Zh(n,t,e)}))])},sp=Object.freeze({__proto__:null,events:up}),cp=[Rc("onOpen"),Rc("onClose"),yn("isPartOf"),yn("getAttachPoint"),Rn("cloakVisibilityAttr","data-precloak-visibility")],lp=function(){var t=Xn(w.none()),e=i("not-implemented"),n=function(){return t.get().isSome()},r=function(e){t.set(w.some(e))},o=function(){return t.get()},a=function(){t.set(w.none())};return Ya({readState:e,isOpen:n,clear:a,set:r,get:o})},fp=Object.freeze({__proto__:null,init:lp}),dp=Hl({fields:cp,name:"sandboxing",active:sp,apis:ap,state:fp}),hp=i("dismiss.popups"),pp=i("reposition.popups"),mp=i("mouse.released"),gp=je([Rn("isExtraPart",l),Mn("fireEventInstead",[Rn("event",ni())])]),vp=function(t){var e,n=on("Dismissal",gp,t);return e={},e[hp()]={schema:je([yn("target")]),onReceive:function(t,e){if(dp.isOpen(t)){var r=dp.isPartOf(t,e.target)||n.isExtraPart(t,e.target);r||n.fireEventInstead.fold((function(){return dp.close(t)}),(function(e){return li(t,e.event)}))}}},e},bp=je([Mn("fireEventInstead",[Rn("event",ri())]),On("doReposition")]),yp=function(t){var e,n=on("Reposition",bp,t);return e={},e[pp()]={onReceive:function(t){dp.isOpen(t)&&n.fireEventInstead.fold((function(){return n.doReposition(t)}),(function(e){return li(t,e.event)}))}},e},xp=function(t,e,n){e.store.manager.onLoad(t,e,n)},wp=function(t,e,n){e.store.manager.onUnload(t,e,n)},Cp=function(t,e,n,r){e.store.manager.setValue(t,e,n,r)},Sp=function(t,e,n){return e.store.manager.getValue(t,e,n)},kp=function(t,e,n){return n},Op=Object.freeze({__proto__:null,onLoad:xp,onUnload:wp,setValue:Cp,getValue:Sp,getState:kp}),_p=function(t,e){var n=t.resetOnDom?[Di((function(n,r){xp(n,t,e)})),Ii((function(n,r){wp(n,t,e)}))]:[Nl(t,e,xp)];return gi(n)},Ap=Object.freeze({__proto__:null,events:_p}),Ep=function(){var t=Xn(null),e=function(){return{mode:"memory",value:t.get()}},n=function(){return null===t.get()},r=function(){t.set(null)};return Ya({set:t.set,get:t.get,isNotSet:n,clear:r,readState:e})},Tp=function(){var t=function(){};return Ya({readState:t})},Dp=function(){var t=Xn({}),e=Xn({}),n=function(){return{mode:"dataset",dataByValue:t.get(),dataByText:e.get()}},r=function(){t.set({}),e.set({})},o=function(n){return $t(t.get(),n).orThunk((function(){return $t(e.get(),n)}))},i=function(n){var r=t.get(),o=e.get(),i={},a={};q(n,(function(t){i[t.value]=t,$t(t,"meta").each((function(e){$t(e,"text").each((function(e){a[e]=t}))}))})),t.set(h(h({},r),i)),e.set(h(h({},o),a))};return Ya({readState:n,lookup:o,update:i,clear:r})},Ip=function(t){return t.store.manager.state(t)},Bp=Object.freeze({__proto__:null,memory:Ep,dataset:Dp,manual:Tp,init:Ip}),Lp=function(t,e,n,r){var o=e.store;n.update([r]),o.setValue(t,r),e.onSetValue(t,r)},Np=function(t,e,n){var r=e.store,o=r.getDataKey(t);return n.lookup(o).fold((function(){return r.getFallbackEntry(o)}),(function(t){return t}))},Pp=function(t,e,n){var r=e.store;r.initialValue.each((function(r){Lp(t,e,n,r)}))},Mp=function(t,e,n){n.clear()},jp=[Dn("initialValue"),yn("getFallbackEntry"),yn("getDataKey"),yn("setValue"),Hc("manager",{setValue:Lp,getValue:Np,onLoad:Pp,onUnload:Mp,state:Dp})],Rp=function(t,e,n){return e.store.getValue(t)},$p=function(t,e,n,r){e.store.setValue(t,r),e.onSetValue(t,r)},Fp=function(t,e,n){e.store.initialValue.each((function(n){e.store.setValue(t,n)}))},Vp=[yn("getValue"),Rn("setValue",e),Dn("initialValue"),Hc("manager",{setValue:$p,getValue:Rp,onLoad:Fp,onUnload:e,state:Ga.init})],Hp=function(t,e,n,r){n.set(r),e.onSetValue(t,r)},zp=function(t,e,n){return n.get()},Up=function(t,e,n){e.store.initialValue.each((function(t){n.isNotSet()&&n.set(t)}))},Wp=function(t,e,n){n.clear()},qp=[Dn("initialValue"),Hc("manager",{setValue:Hp,getValue:zp,onLoad:Up,onUnload:Wp,state:Ep})],Gp=[$n("store",{mode:"memory"},sn("mode",{memory:qp,manual:Vp,dataset:jp})),Rc("onSetValue"),Rn("resetOnDom",!1)],Yp=Hl({fields:Gp,name:"representing",active:Ap,apis:Op,extra:{setValueFrom:function(t,e){var n=Yp.getValue(e);Yp.setValue(t,n)}},state:Bp}),Xp=function(t,e){return Gn(t,{},W(e,(function(e){return _n(e.name(),"Cannot configure "+e.name()+" for "+t)})).concat([Yn("dump",a)]))},Kp=function(t){return t.dump},Zp=function(t,e){return h(h({},t.dump),Fl(e))},Jp={field:Xp,augment:Zp,get:Kp},Qp="placeholder",tm=zt.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),em=function(t){return Ft(t,"uiType")},nm=function(t,e,n,r){return t.exists((function(t){return t!==n.owner}))?tm.single(!0,i(n)):$t(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+Et(r)+"]\nNamespace: "+t.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(t){return t.replace()}))},rm=function(t,e,n,r){return em(n)&&n.uiType===Qp?nm(t,e,n,r):tm.single(!1,i(n))},om=function(t,e,n,r){var o=rm(t,e,n,r);return o.fold((function(o,i){var a=em(n)?i(e,n.config,n.validated):i(e),u=$t(a,"components").getOr([]),s=nt(u,(function(n){return om(t,e,n,r)}));return[h(h({},a),{components:s})]}),(function(t,r){if(em(n)){var o=r(e,n.config,n.validated),i=n.validated.preprocess.getOr(a);return i(o)}return r(e)}))},im=function(t,e,n,r){return nt(n,(function(n){return om(t,e,n,r)}))},am=function(t,e){var n=!1,r=function(){return n},o=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+t);return n=!0,e},a=function(){return e.fold((function(t,e){return t}),(function(t,e){return t}))};return{name:i(t),required:a,used:r,replace:o}},um=function(t,e,n,r){var o=It(r,(function(t,e){return am(e,t)})),i=im(t,e,n,o);return Dt(o,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+t.getOr("none")+"\nComponents: "+JSON.stringify(e.components,null,2))})),i},sm=tm.single,cm=tm.multiple,lm=i(Qp),fm=zt.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),dm=Rn("factory",{sketch:a}),hm=Rn("schema",[]),pm=yn("name"),mm=qe("pname","pname",ne((function(t){return"<alloy."+Aa(t.name)+">"})),ln()),gm=Yn("schema",(function(){return[Dn("preprocess")]})),vm=Rn("defaults",i({})),bm=Rn("overrides",i({})),ym=Re([dm,hm,pm,mm,vm,bm]),xm=Re([dm,hm,pm,vm,bm]),wm=Re([dm,hm,pm,mm,vm,bm]),Cm=Re([dm,gm,pm,yn("unit"),mm,vm,bm]),Sm=function(t){return t.fold(w.some,w.none,w.some,w.some)},km=function(t){var e=function(t){return t.name};return t.fold(e,e,e,e)},Om=function(t){return t.fold(a,a,a,a)},_m=function(t,e){return function(n){var r=on("Converting part type",e,n);return t(r)}},Am=_m(fm.required,ym),Em=_m(fm.external,xm),Tm=_m(fm.optional,wm),Dm=_m(fm.group,Cm),Im=i("entirety"),Bm=Object.freeze({__proto__:null,required:Am,external:Em,optional:Tm,group:Dm,asNamedPart:Sm,name:km,asCommon:Om,original:Im}),Lm=function(t,e,n,r){return Yt(e.defaults(t,n,r),n,{uid:t.partUids[e.name]},e.overrides(t,n,r))},Nm=function(t,e,n){var r={},o={};return q(n,(function(t){t.fold((function(t){r[t.pname]=sm(!0,(function(e,n,r){return t.factory.sketch(Lm(e,t,n,r))}))}),(function(t){var n=e.parts[t.name];o[t.name]=i(t.factory.sketch(Lm(e,t,n[Im()]),n))}),(function(t){r[t.pname]=sm(!1,(function(e,n,r){return t.factory.sketch(Lm(e,t,n,r))}))}),(function(t){r[t.pname]=cm(!0,(function(e,n,r){var o=e[t.name];return W(o,(function(n){return t.factory.sketch(Yt(t.defaults(e,n,r),n,t.overrides(e,n)))}))}))}))})),{internals:i(r),externals:i(o)}},Pm=function(t,e){var n={};return q(e,(function(e){Sm(e).each((function(e){var r=Mm(t,e.pname);n[e.name]=function(n){var o=on("Part: "+e.name+" in "+t,Re(e.schema),n);return h(h({},r),{config:n,validated:o})}}))})),n},Mm=function(t,e){return{uiType:lm(),owner:t,name:e}},jm=function(t,e,n){return{uiType:lm(),owner:t,name:e,config:n,validated:{}}},Rm=function(t){return nt(t,(function(t){return t.fold(w.none,w.some,w.none,w.none).map((function(t){return An(t.name,t.schema.concat([zc(Im())]))})).toArray()}))},$m=function(t){return W(t,km)},Fm=function(t,e,n){return Nm(t,e,n)},Vm=function(t,e,n){return um(w.some(t),e,e.components,n)},Hm=function(t,e,n){var r=e.partUids[n];return t.getSystem().getByUid(r).toOptional()},zm=function(t,e,n){return Hm(t,e,n).getOrDie("Could not find part: "+n)},Um=function(t,e,n){var r={},o=e.partUids,a=t.getSystem();return q(n,(function(t){r[t]=i(a.getByUid(o[t]))})),r},Wm=function(t,e){var n=t.getSystem();return It(e.partUids,(function(t,e){return i(n.getByUid(t))}))},qm=function(t){return Et(t.partUids)},Gm=function(t,e,n){var r={},o=e.partUids,a=t.getSystem();return q(n,(function(t){r[t]=i(a.getByUid(o[t]).getOrDie())})),r},Ym=function(t,e){var n=$m(e);return le(W(n,(function(e){return{key:e,value:t+"-"+e}})))},Xm=function(t){return qe("partUids","partUids",re((function(e){return Ym(e.uid,t)})),ln())},Km=Object.freeze({__proto__:null,generate:Pm,generateOne:jm,schemas:Rm,names:$m,substitutes:Fm,components:Vm,defaultUids:Ym,defaultUidsSchema:Xm,getAllParts:Wm,getAllPartNames:qm,getPart:Hm,getPartOrDie:zm,getParts:Um,getPartsOrDie:Gm}),Zm=function(t,e){var n=t.length>0?[An("parts",t)]:[];return n.concat([yn("uid"),Rn("dom",{}),Rn("components",[]),zc("originalSpec"),Rn("debug.sketcher",{})]).concat(e)},Jm=function(t,e,n,r,o){var i=Zm(r,o);return on(t+" [SpecSchema]",je(i.concat(e)),n)},Qm=function(t,e,n,r){var o=ng(r),i=Jm(t,e,o,[],[]);return n(i,o)},tg=function(t,e,n,r,o){var i=ng(o),a=Rm(n),u=Xm(n),s=Jm(t,e,i,a,[u]),c=Fm(t,s,n),l=Vm(t,s,c.internals());return r(s,l,i,c.externals())},eg=function(t){return Ft(t,"uid")},ng=function(t){return eg(t)?t:h(h({},t),{uid:Pa("uid")})};function rg(t){return void 0!==t.uid}var og,ig=je([yn("name"),yn("factory"),yn("configFields"),Rn("apis",{}),Rn("extraApis",{})]),ag=je([yn("name"),yn("factory"),yn("configFields"),yn("partFields"),Rn("apis",{}),Rn("extraApis",{})]),ug=function(t){var e=on("Sketcher for "+t.name,ig,t),n=function(t){return Qm(e.name,e.configFields,e.factory,t)},r=It(e.apis,qa),o=It(e.extraApis,(function(t,e){return Va(t,e)}));return h(h({name:e.name,configFields:e.configFields,sketch:n},r),o)},sg=function(t){var e=on("Sketcher for "+t.name,ag,t),n=function(t){return tg(e.name,e.configFields,e.partFields,e.factory,t)},r=Pm(e.name,e.partFields),o=It(e.apis,qa),i=It(e.extraApis,(function(t,e){return Va(t,e)}));return h(h({name:e.name,partFields:e.partFields,configFields:e.configFields,sketch:n,parts:r},o),i)},cg=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},lg=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.isSome())return w.none();e.push(r.getOrDie())}return w.some(e)},fg=function(t,e,n){return t.isSome()&&e.isSome()?w.some(n(t.getOrDie(),e.getOrDie())):w.none()},dg=function(t,e,n,r){return t.isSome()&&e.isSome()&&n.isSome()?w.some(r(t.getOrDie(),e.getOrDie(),n.getOrDie())):w.none()},hg=function(t,e){return void 0!==t&&null!==t?w.some(e(t)):w.none()},pg=function(t,e){return t?w.some(e):w.none()},mg=function(t){return"input"===Ni(t)&&"radio"!==ma(t,"type")||"textarea"===Ni(t)},gg=function(t,e,n){return e.find(t)},vg=Object.freeze({__proto__:null,getCurrent:gg}),bg=[yn("find")],yg=Hl({fields:bg,name:"composing",apis:vg}),xg=function(t,e,n,r){var o=Md(t.element,"."+e.highlightClass);q(o,(function(n){H(r,(function(t){return t.element===n}))||(Tu(n,e.highlightClass),t.getSystem().getByDom(n).each((function(n){e.onDehighlight(t,n),li(n,ci())})))}))},wg=function(t,e,n){return xg(t,e,n,[])},Cg=function(t,e,n,r){Eg(t,e,n,r)&&(Tu(r.element,e.highlightClass),e.onDehighlight(t,r),li(r,ci()))},Sg=function(t,e,n,r){xg(t,e,n,[r]),Eg(t,e,n,r)||(Au(r.element,e.highlightClass),e.onHighlight(t,r),li(r,si()))},kg=function(t,e,n){Ig(t,e).each((function(r){Sg(t,e,n,r)}))},Og=function(t,e,n){Bg(t,e).each((function(r){Sg(t,e,n,r)}))},_g=function(t,e,n,r){Dg(t,e,n,r).fold((function(t){throw new Error(t)}),(function(r){Sg(t,e,n,r)}))},Ag=function(t,e,n,r){var o=Mg(t,e),i=Q(o,r);i.each((function(r){Sg(t,e,n,r)}))},Eg=function(t,e,n,r){return Du(r.element,e.highlightClass)},Tg=function(t,e,n){return pc(t.element,"."+e.highlightClass).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Dg=function(t,e,n,r){var o=Md(t.element,"."+e.itemClass);return w.from(o[r]).fold((function(){return gt.error("No element found with index "+r)}),t.getSystem().getByDom)},Ig=function(t,e,n){return pc(t.element,"."+e.itemClass).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Bg=function(t,e,n){var r=Md(t.element,"."+e.itemClass),o=r.length>0?w.some(r[r.length-1]):w.none();return o.bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Lg=function(t,e,n,r){var o=Md(t.element,"."+e.itemClass),i=tt(o,(function(t){return Du(t,e.highlightClass)}));return i.bind((function(e){var n=gf(e,r,0,o.length-1);return t.getSystem().getByDom(o[n]).toOptional()}))},Ng=function(t,e,n){return Lg(t,e,n,-1)},Pg=function(t,e,n){return Lg(t,e,n,1)},Mg=function(t,e,n){var r=Md(t.element,"."+e.itemClass);return cg(W(r,(function(e){return t.getSystem().getByDom(e).toOptional()})))},jg=Object.freeze({__proto__:null,dehighlightAll:wg,dehighlight:Cg,highlight:Sg,highlightFirst:kg,highlightLast:Og,highlightAt:_g,highlightBy:Ag,isHighlighted:Eg,getHighlighted:Tg,getFirst:Ig,getLast:Bg,getPrevious:Ng,getNext:Pg,getCandidates:Mg}),Rg=[yn("highlightClass"),yn("itemClass"),Rc("onHighlight"),Rc("onDehighlight")],$g=Hl({fields:Rg,name:"highlighting",apis:jg}),Fg=[8],Vg=[9],Hg=[13],zg=[27],Ug=[32],Wg=[37],qg=[38],Gg=[39],Yg=[40],Xg=function(t,e,n){var r=ot(t.slice(0,e)),o=ot(t.slice(e+1));return Q(r.concat(o),n)},Kg=function(t,e,n){var r=ot(t.slice(0,e));return Q(r,n)},Zg=function(t,e,n){var r=t.slice(0,e),o=t.slice(e+1);return Q(o.concat(r),n)},Jg=function(t,e,n){var r=t.slice(e+1);return Q(r,n)},Qg=function(t){return function(e){var n=e.raw;return V(t,n.which)}},tv=function(t){return function(e){return rt(t,(function(t){return t(e)}))}},ev=function(t){var e=t.raw;return!0===e.shiftKey},nv=function(t){var e=t.raw;return!0===e.ctrlKey},rv=s(ev),ov=function(t,e){return{matches:t,classification:e}},iv=function(t,e){var n=Q(t,(function(t){return t.matches(e)}));return n.map((function(t){return t.classification}))},av=function(t,e,n){var r=e.exists((function(t){return n.exists((function(e){return oo(e,t)}))}));r||fi(t,oi(),{prevFocus:e,newFocus:n})},uv=function(){var t=function(t){return tf(t.element)},e=function(e,n){var r=t(e);e.getSystem().triggerFocus(n,e.element);var o=t(e);av(e,r,o)};return{get:t,set:e}},sv=function(){var t=function(t){return $g.getHighlighted(t).map((function(t){return t.element}))},n=function(n,r){var o=t(n);n.getSystem().getByDom(r).fold(e,(function(t){$g.highlight(n,t)}));var i=t(n);av(n,o,i)};return{get:t,set:n}};(function(t){t["OnFocusMode"]="onFocus",t["OnEnterOrSpaceMode"]="onEnterOrSpace",t["OnApiMode"]="onApi"})(og||(og={}));var cv=function(t,e,n,r,o){var i=function(){return t.concat([Rn("focusManager",uv()),$n("focusInside","onFocus",Qe((function(t){return V(["onFocus","onEnterOrSpace","onApi"],t)?gt.value(t):gt.error("Invalid value for focusInside")}))),Hc("handler",s),Hc("state",e),Hc("sendFocusIn",o)])},a=function(t,e,n,r,o){var i=n(t,e,r,o);return iv(i,e.event).bind((function(n){return n(t,e,r,o)}))},u=function(t,e){var i=t.focusInside!==og.OnFocusMode?w.none():o(t).map((function(n){return xi($o(),(function(r,o){n(r,t,e),o.stop()}))})),u=function(n,r){var i=Qg(Ug.concat(Hg))(r.event);t.focusInside===og.OnEnterOrSpaceMode&&i&&fo(n,r)&&o(t).each((function(o){o(n,t,e),r.stop()}))},s=[xi(Do(),(function(r,o){a(r,o,n,t,e).fold((function(){u(r,o)}),(function(t){o.stop()}))})),xi(Io(),(function(n,o){a(n,o,r,t,e).each((function(t){o.stop()}))}))];return gi(i.toArray().concat(s))},s={schema:i,processKey:a,toEvents:u};return s},lv=function(t){var e=[Dn("onEscape"),Dn("onEnter"),Rn("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Rn("firstTabstop",0),Rn("useTabstopAt",f),Dn("visibilitySelector")].concat([t]),n=function(t,e){var n=t.visibilitySelector.bind((function(t){return mc(e,t)})).getOr(e);return Ss(n)>0},r=function(t,e){var r=Md(t.element,e.selector),o=X(r,(function(t){return n(e,t)}));return w.from(o[e.firstTabstop])},o=function(t,e){return e.focusManager.get(t).bind((function(t){return mc(t,e.selector)}))},a=function(t,e){return n(t,e)&&t.useTabstopAt(e)},s=function(t,e,n){r(t,e).each((function(n){e.focusManager.set(t,n)}))},c=function(t,e,n,r,o){return o(e,n,(function(t){return a(r,t)})).fold((function(){return r.cyclic?w.some(!0):w.none()}),(function(e){return r.focusManager.set(t,e),w.some(!0)}))},l=function(t,e,n,r){var i=Md(t.element,n.selector);return o(t,n).bind((function(e){var o=tt(i,u(oo,e));return o.bind((function(e){return c(t,i,e,n,r)}))}))},d=function(t,e,n){var r=n.cyclic?Xg:Kg;return l(t,e,n,r)},h=function(t,e,n){var r=n.cyclic?Zg:Jg;return l(t,e,n,r)},p=function(t,e,n){return n.onEnter.bind((function(n){return n(t,e)}))},m=function(t,e,n){return n.onEscape.bind((function(n){return n(t,e)}))},g=i([ov(tv([ev,Qg(Vg)]),d),ov(Qg(Vg),h),ov(Qg(zg),m),ov(tv([rv,Qg(Hg)]),p)]),v=i([]);return cv(e,Ga.init,g,v,(function(){return w.some(s)}))},fv=lv(Yn("cyclic",l)),dv=lv(Yn("cyclic",f)),hv=function(t,e,n){return hi(t,n,zo()),w.some(!0)},pv=function(t,e,n){var r=mg(n)&&Qg(Ug)(e.event);return r?w.none():hv(t,e,n)},mv=function(t,e){return w.some(!0)},gv=[Rn("execute",pv),Rn("useSpace",!1),Rn("useEnter",!0),Rn("useControlEnter",!1),Rn("useDown",!1)],vv=function(t,e,n){return n.execute(t,e,t.element)},bv=function(t,e,n,r){var o=n.useSpace&&!mg(t.element)?Ug:[],i=n.useEnter?Hg:[],a=n.useDown?Yg:[],u=o.concat(i).concat(a);return[ov(Qg(u),vv)].concat(n.useControlEnter?[ov(tv([nv,Qg(Hg)]),vv)]:[])},yv=function(t,e,n,r){return n.useSpace&&!mg(t.element)?[ov(Qg(Ug),mv)]:[]},xv=cv(gv,Ga.init,bv,yv,(function(){return w.none()})),wv=function(){var t=Xn(w.none()),e=function(e,n){t.set(w.some({numRows:e,numColumns:n}))},n=function(){return t.get().map((function(t){return t.numRows}))},r=function(){return t.get().map((function(t){return t.numColumns}))};return Ya({readState:function(){return t.get().map((function(t){return{numRows:String(t.numRows),numColumns:String(t.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:e,getNumRows:n,getNumColumns:r})},Cv=function(t){return t.state(t)},Sv=Object.freeze({__proto__:null,flatgrid:wv,init:Cv}),kv=function(t){return function(e,n,r,o){var i=t(e.element);return Ev(i,e,n,r,o)}},Ov=function(t,e){var n=Rf(t,e);return kv(n)},_v=function(t,e){var n=Rf(e,t);return kv(n)},Av=function(t){return function(e,n,r,o){return Ev(t,e,n,r,o)}},Ev=function(t,e,n,r,o){var i=r.focusManager.get(e).bind((function(n){return t(e.element,n,r,o)}));return i.map((function(t){return r.focusManager.set(e,t),!0}))},Tv=Av,Dv=Av,Iv=Av,Bv=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Lv=function(t){return!Bv(t.dom)},Nv=function(t,e){return tt(t,e).map((function(e){return{index:e,candidates:t}}))},Pv=function(t,e,n){var r=function(t){return oo(t,e)},o=Md(t,n),i=X(o,Lv);return Nv(i,r)},Mv=function(t,e){return tt(t,(function(t){return oo(e,t)}))},jv=function(t,e,n,r){var o=Math.floor(e/n),i=e%n;return r(o,i).bind((function(e){var r=e.row*n+e.column;return r>=0&&r<t.length?w.some(t[r]):w.none()}))},Rv=function(t,e,n,r,o){return jv(t,e,r,(function(e,i){var a=e===n-1,u=a?t.length-e*r:r,s=gf(i,o,0,u-1);return w.some({row:e,column:s})}))},$v=function(t,e,n,r,o){return jv(t,e,r,(function(e,i){var a=gf(e,o,0,n-1),u=a===n-1,s=u?t.length-a*r:r,c=vf(i,0,s-1);return w.some({row:a,column:c})}))},Fv=function(t,e,n,r){return Rv(t,e,n,r,1)},Vv=function(t,e,n,r){return Rv(t,e,n,r,-1)},Hv=function(t,e,n,r){return $v(t,e,n,r,-1)},zv=function(t,e,n,r){return $v(t,e,n,r,1)},Uv=[yn("selector"),Rn("execute",pv),$c("onEscape"),Rn("captureTab",!1),Uc()],Wv=function(t,e,n){pc(t.element,e.selector).each((function(n){e.focusManager.set(t,n)}))},qv=function(t,e){return e.focusManager.get(t).bind((function(t){return mc(t,e.selector)}))},Gv=function(t,e,n,r){return qv(t,n).bind((function(r){return n.execute(t,e,r)}))},Yv=function(t){return function(e,n,r,o){return Pv(e,n,r.selector).bind((function(e){return t(e.candidates,e.index,o.getNumRows().getOr(r.initSize.numRows),o.getNumColumns().getOr(r.initSize.numColumns))}))}},Xv=function(t,e,n){return n.captureTab?w.some(!0):w.none()},Kv=function(t,e,n){return n.onEscape(t,e)},Zv=Yv(Vv),Jv=Yv(Fv),Qv=Yv(Hv),tb=Yv(zv),eb=i([ov(Qg(Wg),Ov(Zv,Jv)),ov(Qg(Gg),_v(Zv,Jv)),ov(Qg(qg),Tv(Qv)),ov(Qg(Yg),Dv(tb)),ov(tv([ev,Qg(Vg)]),Xv),ov(tv([rv,Qg(Vg)]),Xv),ov(Qg(zg),Kv),ov(Qg(Ug.concat(Hg)),Gv)]),nb=i([ov(Qg(Ug),mv)]),rb=cv(Uv,wv,eb,nb,(function(){return w.some(Wv)})),ob=function(t,e,n,r){var o=function(t){return"button"===Ni(t)&&"disabled"===ma(t,"disabled")},i=function(t,e,n){var a=gf(e,r,0,n.length-1);return a===t?w.none():o(n[a])?i(t,a,n):w.from(n[a])};return Pv(t,n,e).bind((function(t){var e=t.index,n=t.candidates;return i(e,e,n)}))},ib=[yn("selector"),Rn("getInitial",w.none),Rn("execute",pv),$c("onEscape"),Rn("executeOnMove",!1),Rn("allowVertical",!0)],ab=function(t,e){return e.focusManager.get(t).bind((function(t){return mc(t,e.selector)}))},ub=function(t,e,n){return ab(t,n).bind((function(r){return n.execute(t,e,r)}))},sb=function(t,e,n){e.getInitial(t).orThunk((function(){return pc(t.element,e.selector)})).each((function(n){e.focusManager.set(t,n)}))},cb=function(t,e,n){return ob(t,n.selector,e,-1)},lb=function(t,e,n){return ob(t,n.selector,e,1)},fb=function(t){return function(e,n,r,o){return t(e,n,r,o).bind((function(){return r.executeOnMove?ub(e,n,r):w.some(!0)}))}},db=function(t,e,n){return n.onEscape(t,e)},hb=function(t,e,n,r){var o=Wg.concat(n.allowVertical?qg:[]),i=Gg.concat(n.allowVertical?Yg:[]);return[ov(Qg(o),fb(Ov(cb,lb))),ov(Qg(i),fb(_v(cb,lb))),ov(Qg(Hg),ub),ov(Qg(Ug),ub),ov(Qg(zg),db)]},pb=i([ov(Qg(Ug),mv)]),mb=cv(ib,Ga.init,hb,pb,(function(){return w.some(sb)})),gb=function(t,e,n){return w.from(t[e]).bind((function(t){return w.from(t[n]).map((function(t){return{rowIndex:e,columnIndex:n,cell:t}}))}))},vb=function(t,e,n,r){var o=t[e],i=o.length,a=gf(n,r,0,i-1);return gb(t,e,a)},bb=function(t,e,n,r){var o=gf(n,r,0,t.length-1),i=t[o].length,a=vf(e,0,i-1);return gb(t,o,a)},yb=function(t,e,n,r){var o=t[e],i=o.length,a=vf(n+r,0,i-1);return gb(t,e,a)},xb=function(t,e,n,r){var o=vf(n+r,0,t.length-1),i=t[o].length,a=vf(e,0,i-1);return gb(t,o,a)},wb=function(t,e,n){return vb(t,e,n,1)},Cb=function(t,e,n){return vb(t,e,n,-1)},Sb=function(t,e,n){return bb(t,n,e,-1)},kb=function(t,e,n){return bb(t,n,e,1)},Ob=function(t,e,n){return yb(t,e,n,-1)},_b=function(t,e,n){return yb(t,e,n,1)},Ab=function(t,e,n){return xb(t,n,e,-1)},Eb=function(t,e,n){return xb(t,n,e,1)},Tb=[An("selectors",[yn("row"),yn("cell")]),Rn("cycles",!0),Rn("previousSelector",w.none),Rn("execute",pv)],Db=function(t,e,n){var r=e.previousSelector(t).orThunk((function(){var n=e.selectors;return pc(t.element,n.cell)}));r.each((function(n){e.focusManager.set(t,n)}))},Ib=function(t,e,n){return tf(t.element).bind((function(r){return n.execute(t,e,r)}))},Bb=function(t,e){return W(t,(function(t){return Md(t,e.selectors.cell)}))},Lb=function(t,e){return function(n,r,o){var i=o.cycles?t:e;return mc(r,o.selectors.row).bind((function(t){var e=Md(t,o.selectors.cell);return Mv(e,r).bind((function(e){var r=Md(n,o.selectors.row);return Mv(r,t).bind((function(t){var n=Bb(r,o);return i(n,t,e).map((function(t){return t.cell}))}))}))}))}},Nb=Lb(Cb,Ob),Pb=Lb(wb,_b),Mb=Lb(Sb,Ab),jb=Lb(kb,Eb),Rb=i([ov(Qg(Wg),Ov(Nb,Pb)),ov(Qg(Gg),_v(Nb,Pb)),ov(Qg(qg),Tv(Mb)),ov(Qg(Yg),Dv(jb)),ov(Qg(Ug.concat(Hg)),Ib)]),$b=i([ov(Qg(Ug),mv)]),Fb=cv(Tb,Ga.init,Rb,$b,(function(){return w.some(Db)})),Vb=[yn("selector"),Rn("execute",pv),Rn("moveOnTab",!1)],Hb=function(t,e,n){return n.focusManager.get(t).bind((function(r){return n.execute(t,e,r)}))},zb=function(t,e,n){pc(t.element,e.selector).each((function(n){e.focusManager.set(t,n)}))},Ub=function(t,e,n){return ob(t,n.selector,e,-1)},Wb=function(t,e,n){return ob(t,n.selector,e,1)},qb=function(t,e,n,r){return n.moveOnTab?Iv(Ub)(t,e,n,r):w.none()},Gb=function(t,e,n,r){return n.moveOnTab?Iv(Wb)(t,e,n,r):w.none()},Yb=i([ov(Qg(qg),Iv(Ub)),ov(Qg(Yg),Iv(Wb)),ov(tv([ev,Qg(Vg)]),qb),ov(tv([rv,Qg(Vg)]),Gb),ov(Qg(Hg),Hb),ov(Qg(Ug),Hb)]),Xb=i([ov(Qg(Ug),mv)]),Kb=cv(Vb,Ga.init,Yb,Xb,(function(){return w.some(zb)})),Zb=[$c("onSpace"),$c("onEnter"),$c("onShiftEnter"),$c("onLeft"),$c("onRight"),$c("onTab"),$c("onShiftTab"),$c("onUp"),$c("onDown"),$c("onEscape"),Rn("stopSpaceKeyup",!1),Dn("focusIn")],Jb=function(t,e,n){return[ov(Qg(Ug),n.onSpace),ov(tv([rv,Qg(Hg)]),n.onEnter),ov(tv([ev,Qg(Hg)]),n.onShiftEnter),ov(tv([ev,Qg(Vg)]),n.onShiftTab),ov(tv([rv,Qg(Vg)]),n.onTab),ov(Qg(qg),n.onUp),ov(Qg(Yg),n.onDown),ov(Qg(Wg),n.onLeft),ov(Qg(Gg),n.onRight),ov(Qg(Ug),n.onSpace),ov(Qg(zg),n.onEscape)]},Qb=function(t,e,n){return n.stopSpaceKeyup?[ov(Qg(Ug),mv)]:[]},ty=cv(Zb,Ga.init,Jb,Qb,(function(t){return t.focusIn})),ey=fv.schema(),ny=dv.schema(),ry=mb.schema(),oy=rb.schema(),iy=Fb.schema(),ay=xv.schema(),uy=Kb.schema(),sy=ty.schema(),cy=Object.freeze({__proto__:null,acyclic:ey,cyclic:ny,flow:ry,flatgrid:oy,matrix:iy,execution:ay,menu:uy,special:sy}),ly=function(t){return Vt(t,"setGridSize")},fy=Ul({branchKey:"mode",branches:cy,name:"keying",active:{events:function(t,e){var n=t.handler;return n.toEvents(t,e)}},apis:{focusIn:function(t,e,n){e.sendFocusIn(e).fold((function(){t.getSystem().triggerFocus(t.element,t.element)}),(function(r){r(t,e,n)}))},setGridSize:function(t,e,n,r,o){ly(n)?n.setGridSize(r,o):console.error("Layout does not support setGridSize")}},state:Sv}),dy=function(t,e,n,r){ef((function(){var e=W(r,t.getSystem().build);jh(t,e)}),t.element)},hy=function(t,e,n,r){var o=t.getSystem().build(r);$h(t,o,n)},py=function(t,e,n,r){hy(t,e,ea,r)},my=function(t,e,n,r){hy(t,e,ta,r)},gy=function(t,e,n,r){var o=vy(t),i=Q(o,(function(t){return oo(r.element,t.element)}));i.each(Vh)},vy=function(t,e){return t.components()},by=function(t,e,n,r,o){var i=vy(t);return w.from(i[r]).map((function(i){return gy(t,e,n,i),o.each((function(n){hy(t,e,(function(t,e){na(t,e,r)}),n)})),i}))},yy=function(t,e,n,r,o){var i=vy(t);return tt(i,r).bind((function(r){return by(t,e,n,r,o)}))},xy=Object.freeze({__proto__:null,append:py,prepend:my,remove:gy,replaceAt:by,replaceBy:yy,set:dy,contents:vy}),wy=Hl({fields:[],name:"replacing",apis:xy}),Cy=function(t,e){var n=gi(e);return Hl({fields:[yn("enabled")],name:t,active:{events:i(n)}})},Sy=function(t,e){var n=Cy(t,e);return{key:t,value:{config:{},me:n,configAsRaw:i({}),initialConfig:{},state:Ga}}},ky=function(t,e){e.ignore||(Kl(t.element),e.onFocus(t))},Oy=function(t,e){e.ignore||Zl(t.element)},_y=function(t){return Jl(t.element)},Ay=Object.freeze({__proto__:null,focus:ky,blur:Oy,isFocused:_y}),Ey=function(t,e){var n=e.ignore?{}:{attributes:{tabindex:"-1"}};return Qa(n)},Ty=function(t){return gi([xi($o(),(function(e,n){ky(e,t),n.stop()}))].concat(t.stopMousedown?[xi(So(),(function(t,e){e.event.prevent()}))]:[]))},Dy=Object.freeze({__proto__:null,exhibit:Ey,events:Ty}),Iy=[Rc("onFocus"),Rn("stopMousedown",!1),Rn("ignore",!1)],By=Hl({fields:Iy,name:"focusing",active:Dy,apis:Ay}),Ly=function(t){var e=function(){var e=Xn(t),n=function(){return e.get()},r=function(t){return e.set(t)},o=function(){return e.set(t)},i=function(){return e.get()};return{get:n,set:r,clear:o,readState:i}};return{init:e}},Ny=function(t,e,n){var r=e.aria;r.update(t,r,n.get())},Py=function(t,e,n){e.toggleClass.each((function(e){n.get()?Au(t.element,e):Tu(t.element,e)}))},My=function(t,e,n){$y(t,e,n,!n.get())},jy=function(t,e,n){n.set(!0),Py(t,e,n),Ny(t,e,n)},Ry=function(t,e,n){n.set(!1),Py(t,e,n),Ny(t,e,n)},$y=function(t,e,n,r){var o=r?jy:Ry;o(t,e,n)},Fy=function(t,e,n){return n.get()},Vy=function(t,e,n){$y(t,e,n,e.selected)},Hy=Object.freeze({__proto__:null,onLoad:Vy,toggle:My,isOn:Fy,on:jy,off:Ry,set:$y}),zy=function(){return Qa({})},Uy=function(t,e){var n=Ll(t,e,My),r=Nl(t,e,Vy);return gi(et([t.toggleOnExecute?[n]:[],[r]]))},Wy=Object.freeze({__proto__:null,exhibit:zy,events:Uy}),qy=function(t,e,n){ha(t.element,"aria-pressed",n),e.syncWithExpanded&&Xy(t,e,n)},Gy=function(t,e,n){ha(t.element,"aria-selected",n)},Yy=function(t,e,n){ha(t.element,"aria-checked",n)},Xy=function(t,e,n){ha(t.element,"aria-expanded",n)},Ky=[Rn("selected",!1),Dn("toggleClass"),Rn("toggleOnExecute",!0),$n("aria",{mode:"none"},sn("mode",{pressed:[Rn("syncWithExpanded",!1),Hc("update",qy)],checked:[Hc("update",Yy)],expanded:[Hc("update",Xy)],selected:[Hc("update",Gy)],none:[Hc("update",e)]}))],Zy=Hl({fields:Ky,name:"toggling",active:Wy,apis:Hy,state:Ly(!1)}),Jy=function(){var t=function(t,e){e.stop(),di(t)};return[xi(No(),t),xi(Wo(),t),Ai(yo()),Ai(So())]},Qy=function(t){var e=function(t){return Li((function(e,n){t(e),n.stop()}))};return gi(et([t.map(e).toArray(),Jy()]))},tx="alloy.item-hover",ex="alloy.item-focus",nx=function(t){(tf(t.element).isNone()||By.isFocused(t))&&(By.isFocused(t)||By.focus(t),fi(t,tx,{item:t}))},rx=function(t){fi(t,ex,{item:t})},ox=i(tx),ix=i(ex),ax=function(t){return{dom:t.dom,domModification:h(h({},t.domModification),{attributes:h(h(h({role:t.toggling.isSome()?"menuitemcheckbox":"menuitem"},t.domModification.attributes),{"aria-haspopup":t.hasSubmenu}),t.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:Jp.augment(t.itemBehaviours,[t.toggling.fold(Zy.revoke,(function(t){return Zy.config(h({aria:{mode:"checked"}},t))})),By.config({ignore:t.ignoreFocus,stopMousedown:t.ignoreFocus,onFocus:function(t){rx(t)}}),fy.config({mode:"execution"}),Yp.config({store:{mode:"memory",initialValue:t.data}}),Sy("item-type-events",m(Jy(),[xi(Ao(),nx),xi(Uo(),By.focus)]))]),components:t.components,eventOrder:t.eventOrder}},ux=[yn("data"),yn("components"),yn("dom"),Rn("hasSubmenu",!1),Dn("toggling"),Jp.field("itemBehaviours",[Zy,By,fy,Yp]),Rn("ignoreFocus",!1),Rn("domModification",{}),Hc("builder",ax),Rn("eventOrder",{})],sx=function(t){return{dom:t.dom,components:t.components,events:gi([Ei(Uo())])}},cx=[yn("dom"),yn("components"),Hc("builder",sx)],lx=function(){return"item-widget"},fx=i([Am({name:"widget",overrides:function(t){return{behaviours:Fl([Yp.config({store:{mode:"manual",getValue:function(e){return t.data},setValue:function(){}}})])}}})]),dx=function(t){var e=Fm(lx(),t,fx()),n=Vm(lx(),t,e.internals()),r=function(e){return Hm(e,t,"widget").map((function(t){return fy.focusIn(t),t}))},o=function(e,n){return mg(n.event.target)?w.none():function(){return t.autofocus?(n.setSource(e.element),w.none()):w.none()}()};return{dom:t.dom,components:n,domModification:t.domModification,events:gi([Li((function(t,e){r(t).each((function(t){e.stop()}))})),xi(Ao(),nx),xi(Uo(),(function(e,n){t.autofocus?r(e):By.focus(e)}))]),behaviours:Jp.augment(t.widgetBehaviours,[Yp.config({store:{mode:"memory",initialValue:t.data}}),By.config({ignore:t.ignoreFocus,onFocus:function(t){rx(t)}}),fy.config({mode:"special",focusIn:t.autofocus?function(t){r(t)}:Wl(),onLeft:o,onRight:o,onEscape:function(e,n){return By.isFocused(e)||t.autofocus?t.autofocus?(n.setSource(e.element),w.none()):w.none():(By.focus(e),w.some(!0))}})])}},hx=[yn("uid"),yn("data"),yn("components"),yn("dom"),Rn("autofocus",!1),Rn("ignoreFocus",!1),Jp.field("widgetBehaviours",[Yp,By,fy]),Rn("domModification",{}),Xm(fx()),Hc("builder",dx)],px=sn("type",{widget:hx,item:ux,separator:cx}),mx=function(t,e){return{mode:"flatgrid",selector:"."+t.markers.item,initSize:{numColumns:e.initSize.numColumns,numRows:e.initSize.numRows},focusManager:t.focusManager}},gx=function(t,e){return{mode:"matrix",selectors:{row:e.rowSelector,cell:"."+t.markers.item},focusManager:t.focusManager}},vx=function(t,e){return{mode:"menu",selector:"."+t.markers.item,moveOnTab:e.moveOnTab,focusManager:t.focusManager}},bx=i([Dm({factory:{sketch:function(t){var e=on("menu.spec item",px,t);return e.builder(e)}},name:"items",unit:"item",defaults:function(t,e){return e.hasOwnProperty("uid")?e:h(h({},e),{uid:Pa("item")})},overrides:function(t,e){return{type:e.type,ignoreFocus:t.fakeFocus,domModification:{classes:[t.markers.item]}}}})]),yx=i([yn("value"),yn("items"),yn("dom"),yn("components"),Rn("eventOrder",{}),Xp("menuBehaviours",[$g,Yp,yg,fy]),$n("movement",{mode:"menu",moveOnTab:!0},sn("mode",{grid:[Uc(),Hc("config",mx)],matrix:[Hc("config",gx),yn("rowSelector")],menu:[Rn("moveOnTab",!0),Hc("config",vx)]})),Nc(),Rn("fakeFocus",!1),Rn("focusManager",uv()),Rc("onHighlight")]),xx=i("alloy.menu-focus"),wx=function(t,e,n,r){return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Zp(t.menuBehaviours,[$g.config({highlightClass:t.markers.selectedItem,itemClass:t.markers.item,onHighlight:t.onHighlight}),Yp.config({store:{mode:"memory",initialValue:t.value}}),yg.config({find:w.some}),fy.config(t.movement.config(t,t.movement))]),events:gi([xi(ix(),(function(t,e){var n=e.event;t.getSystem().getByDom(n.target).each((function(n){$g.highlight(t,n),e.stop(),fi(t,xx(),{menu:t,item:n})}))})),xi(ox(),(function(t,e){var n=e.event.item;$g.highlight(t,n)}))]),components:e,eventOrder:t.eventOrder,domModification:{attributes:{role:"menu"}}}},Cx=sg({name:"Menu",configFields:yx(),partFields:bx(),factory:wx}),Sx=function(t){return Bt(t,(function(t,e){return{k:t,v:e}}))},kx=function(t,e,n,r){return $t(n,r).bind((function(r){return $t(t,r).bind((function(r){var o=kx(t,e,n,r);return w.some([r].concat(o))}))})).getOr([])},Ox=function(t,e){var n={};Dt(t,(function(t,e){q(t,(function(t){n[t]=e}))}));var r=e,o=Sx(e),i=It(o,(function(t,e){return[e].concat(kx(n,r,o,e))}));return It(n,(function(t){return $t(i,t).getOr([t])}))},_x=function(){var t=Xn({}),e=Xn({}),n=Xn({}),r=Xn(w.none()),o=Xn({}),i=function(){t.set({}),e.set({}),n.set({}),r.set(w.none())},a=function(){return r.get().isNone()},u=function(t,n){var r;e.set(h(h({},e.get()),(r={},r[t]={type:"prepared",menu:n},r)))},s=function(i,a,u,s){r.set(w.some(i)),t.set(u),e.set(a),o.set(s);var c=Ox(s,u);n.set(c)},c=function(e){return jt(t.get(),(function(t,n){return t===e}))},l=function(t,e,n){return g(t).bind((function(r){return c(t).bind((function(t){return e(t).map((function(t){return{triggeredMenu:r,triggeringItem:t,triggeringPath:n}}))}))}))},f=function(t,e){var o=X(b(t).toArray(),(function(t){return g(t).isSome()}));return $t(n.get(),t).bind((function(t){var n=ot(o.concat(t)),i=nt(n,(function(t,o){return l(t,e,n.slice(0,o+1)).fold((function(){return r.get().is(t)?[]:[w.none()]}),(function(t){return[w.some(t)]}))}));return lg(i)}))},d=function(e){return $t(t.get(),e).map((function(t){var r=$t(n.get(),e).getOr([]);return[t].concat(r)}))},p=function(t){return $t(n.get(),t).bind((function(t){return t.length>1?w.some(t.slice(1)):w.none()}))},m=function(t){return $t(n.get(),t)},g=function(t){return v(t).bind(Ax)},v=function(t){return $t(e.get(),t)},b=function(e){return $t(t.get(),e)},y=function(t){var e=o.get();return it(Et(e),t)},x=function(){return r.get().bind(g)},C=function(){return e.get()};return{setMenuBuilt:u,setContents:s,expand:d,refresh:m,collapse:p,lookupMenu:v,lookupItem:b,otherMenus:y,getPrimary:x,getMenus:C,clear:i,isClear:a,getTriggeringPath:f}},Ax=function(t){return"prepared"===t.type?w.some(t.menu):w.none()},Ex={init:_x,extractPreparedMenu:Ax},Tx=function(t,e){var n,r=Xn(w.none()),o=function(e,n,r){return It(r,(function(r,o){var i=function(){return Cx.sketch(h(h({},r),{value:o,markers:t.markers,fakeFocus:t.fakeFocus,onHighlight:t.onHighlight,focusManager:t.fakeFocus?sv():uv()}))};return o===n?{type:"prepared",menu:e.getSystem().build(i())}:{type:"notbuilt",nbMenu:i}}))},i=Ex.init(),a=function(e){var n=o(e,t.data.primary,t.data.menus),r=c();return i.setContents(t.data.primary,n,t.data.expansions,r),i.getPrimary()},u=function(t){return Yp.getValue(t).value},s=function(t,e,n){return dt(e,(function(t){if(!t.getSystem().isConnected())return w.none();var e=$g.getCandidates(t);return Q(e,(function(t){return u(t)===n}))}))},c=function(e){return It(t.data.menus,(function(t,e){return nt(t.items,(function(t){return"separator"===t.type?[]:[t.data.value]}))}))},l=function(t,e){$g.highlight(t,e),$g.getHighlighted(e).orThunk((function(){return $g.getFirst(e)})).each((function(e){hi(t,e.element,Uo())}))},f=function(t,e){return cg(W(e,(function(e){return t.lookupMenu(e).bind((function(t){return"prepared"===t.type?w.some(t.menu):w.none()}))})))},d=function(e,n,r){var o=f(n,n.otherMenus(r));q(o,(function(n){Bu(n.element,[t.markers.backgroundMenu]),t.stayInDom||wy.remove(e,n)}))},p=function(e){return r.get().getOrThunk((function(){var n={},o=Md(e.element,"."+t.markers.item),i=X(o,(function(t){return"true"===ma(t,"aria-haspopup")}));return q(i,(function(t){e.getSystem().getByDom(t).each((function(t){var e=u(t);n[e]=t}))})),r.set(w.some(n)),n}))},m=function(t,e){var n=p(t);Dt(n,(function(t,n){var r=V(e,n);ha(t.element,"aria-expanded",r)}))},g=function(e,n,r){return w.from(r[0]).bind((function(o){return n.lookupMenu(o).bind((function(o){if("notbuilt"===o.type)return w.none();var i=o.menu,a=f(n,r.slice(1));return q(a,(function(e){Au(e.element,t.markers.backgroundMenu)})),Uu(i.element)||wy.append(e,xs(i)),Bu(i.element,[t.markers.backgroundMenu]),l(e,i),d(e,n,r),w.some(i)}))}))};(function(t){t[t["HighlightSubmenu"]=0]="HighlightSubmenu",t[t["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(t,e,n){if("notbuilt"===n.type){var r=t.getSystem().build(n.nbMenu());return i.setMenuBuilt(e,r),r}return n.menu},b=function(e,r,o){void 0===o&&(o=n.HighlightSubmenu);var a=u(r);return i.expand(a).bind((function(a){return m(e,a),w.from(a[0]).bind((function(u){return i.lookupMenu(u).bind((function(s){var c=v(e,u,s);return Uu(c.element)||wy.append(e,xs(c)),t.onOpenSubmenu(e,r,c,ot(a)),o===n.HighlightSubmenu?($g.highlightFirst(c),g(e,i,a)):($g.dehighlightAll(c),w.some(r))}))}))}))},y=function(e,n){var r=u(n);return i.collapse(r).bind((function(r){return m(e,r),g(e,i,r).map((function(r){return t.onCollapseMenu(e,n,r),r}))}))},x=function(t,e){var n=u(e);return i.refresh(n).bind((function(e){return m(t,e),g(t,i,e)}))},C=function(t,e){return mg(e.element)?w.none():b(t,e,n.HighlightSubmenu)},S=function(t,e){return mg(e.element)?w.none():y(t,e)},k=function(e,n){return y(e,n).orThunk((function(){return t.onEscape(e,n).map((function(){return e}))}))},O=function(e){return function(n,r){return mc(r.getSource(),"."+t.markers.item).bind((function(t){return n.getSystem().getByDom(t).toOptional().bind((function(t){return e(n,t).map((function(){return!0}))}))}))}},_=gi([xi(xx(),(function(t,e){var n=e.event.item;i.lookupItem(u(n)).each((function(){var n=e.event.menu;$g.highlight(t,n);var r=u(e.event.item);i.refresh(r).each((function(e){return d(t,i,e)}))}))})),Li((function(e,r){var o=r.event.target;e.getSystem().getByDom(o).each((function(r){var o=u(r);0===o.indexOf("collapse-item")&&y(e,r),b(e,r,n.HighlightSubmenu).fold((function(){t.onExecute(e,r)}),(function(){}))}))})),Di((function(e,n){a(e).each((function(n){wy.append(e,xs(n)),t.onOpenMenu(e,n),t.highlightImmediately&&l(e,n)}))}))].concat(t.navigateOnHover?[xi(ox(),(function(e,r){var o=r.event.item;x(e,o),b(e,o,n.HighlightParent),t.onHover(e,o)}))]:[])),A=function(t){return $g.getHighlighted(t).bind($g.getHighlighted)},E=function(t){A(t).each((function(e){y(t,e)}))},T=function(t){i.getPrimary().each((function(e){l(t,e)}))},D=function(t){return w.from(t.components()[0]).filter((function(t){return"menu"===ma(t.element,"role")}))},I=function(e){var n=i.getPrimary().bind((function(t){return A(e).bind((function(t){var n=u(t),r=Rt(i.getMenus()),o=cg(W(r,Ex.extractPreparedMenu));return i.getTriggeringPath(n,(function(t){return s(e,o,t)}))})).map((function(e){return{primary:t,triggeringPath:e}}))}));n.fold((function(){D(e).each((function(n){t.onRepositionMenu(e,n,[])}))}),(function(n){var r=n.primary,o=n.triggeringPath;t.onRepositionMenu(e,r,o)}))},B={collapseMenu:E,highlightPrimary:T,repositionMenus:I};return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Zp(t.tmenuBehaviours,[fy.config({mode:"special",onRight:O(C),onLeft:O(S),onEscape:O(k),focusIn:function(t,e){i.getPrimary().each((function(e){hi(t,e.element,Uo())}))}}),$g.config({highlightClass:t.markers.selectedMenu,itemClass:t.markers.menu}),yg.config({find:function(t){return $g.getHighlighted(t)}}),wy.config({})]),eventOrder:t.eventOrder,apis:B,events:_}},Dx=i("collapse-item"),Ix=function(t,e,n){return{primary:t,menus:e,expansions:n}},Bx=function(t,e){return{primary:t,menus:ce(t,e),expansions:{}}},Lx=function(t){return{value:Aa(Dx()),meta:{text:t}}},Nx=ug({name:"TieredMenu",configFields:[Vc("onExecute"),Vc("onEscape"),Fc("onOpenMenu"),Fc("onOpenSubmenu"),Rc("onRepositionMenu"),Rc("onCollapseMenu"),Rn("highlightImmediately",!0),An("data",[yn("primary"),yn("menus"),yn("expansions")]),Rn("fakeFocus",!1),Rc("onHighlight"),Rc("onHover"),Pc(),yn("dom"),Rn("navigateOnHover",!0),Rn("stayInDom",!1),Xp("tmenuBehaviours",[fy,$g,yg,wy]),Rn("eventOrder",{})],apis:{collapseMenu:function(t,e){t.collapseMenu(e)},highlightPrimary:function(t,e){t.highlightPrimary(e)},repositionMenus:function(t,e){t.repositionMenus(e)}},factory:Tx,extraApis:{tieredData:Ix,singleData:Bx,collapseItem:Lx}}),Px=function(t,e,n,r,o){var i=function(){return t.lazySink(e)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Al()},onRtl:function(){return El()}}}:{},u=function(t){return 2===t.length},s=function(t){return u(t)?a:{}};return Nx.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return dp.close(e),t.onEscape.map((function(t){return t(e)})),w.some(!0)},onExecute:function(){return w.some(!0)},onOpenMenu:function(t,e){Bh.positionWithinBounds(i().getOrDie(),n,e,o())},onOpenSubmenu:function(t,e,n,r){var o=i().getOrDie();Bh.position(o,h({anchor:"submenu",item:e},s(r)),n)},onRepositionMenu:function(t,e,r){var a=i().getOrDie();Bh.positionWithinBounds(a,n,e,o()),q(r,(function(t){var e=s(t.triggeringPath);Bh.position(a,h({anchor:"submenu",item:t.triggeringItem},e),t.triggeredMenu)}))}})},Mx=function(t,e){var n=function(e,n){var r=t.getRelated(e);return r.exists((function(t){return yc(t,n)}))},r=function(t,e){dp.setContent(t,e)},o=function(t,e,n){i(t,e,n,w.none())},i=function(t,e,n,r){a(t,e,n,(function(){return r.map((function(t){return oc(t)}))}))},a=function(e,n,r,o){var i=t.lazySink(e).getOrDie();dp.openWhileCloaked(e,r,(function(){return Bh.positionWithinBounds(i,n,e,o())})),Yp.setValue(e,w.some({mode:"position",anchor:n,getBounds:o}))},u=function(t,e,n){s(t,e,n,(function(){return w.none()}))},s=function(e,n,r,o){var i=Px(t,e,n,r,o);dp.open(e,i),Yp.setValue(e,w.some({mode:"menu",menu:i}))},c=function(t){dp.isOpen(t)&&(Yp.setValue(t,w.none()),dp.close(t))},l=function(t){return dp.getState(t)},f=function(e){dp.isOpen(e)&&Yp.getValue(e).each((function(n){switch(n.mode){case"menu":dp.getState(e).each((function(t){Nx.repositionMenus(t)}));break;case"position":var r=t.lazySink(e).getOrDie();Bh.positionWithinBounds(r,n.anchor,e,n.getBounds());break}}))},d={setContent:r,showAt:o,showWithin:i,showWithinBounds:a,showMenuAt:u,showMenuWithinBounds:s,hide:c,getContent:l,reposition:f,isOpen:dp.isOpen};return{uid:t.uid,dom:t.dom,behaviours:Zp(t.inlineBehaviours,[dp.config({isPartOf:function(t,e,r){return yc(e,r)||n(t,r)},getAttachPoint:function(e){return t.lazySink(e).getOrDie()},onOpen:function(e){t.onShow(e)},onClose:function(e){t.onHide(e)}}),Yp.config({store:{mode:"memory",initialValue:w.none()}}),ql.config({channels:h(h({},vp(h({isExtraPart:e.isExtraPart},t.fireDismissalEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})))),yp(h(h({},t.fireRepositionEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})),{doReposition:f})))})]),eventOrder:t.eventOrder,apis:d}},jx=ug({name:"InlineView",configFields:[yn("lazySink"),Rc("onShow"),Rc("onHide"),Nn("onEscape"),Xp("inlineBehaviours",[dp,Yp,ql]),Mn("fireDismissalEventInstead",[Rn("event",ni())]),Mn("fireRepositionEventInstead",[Rn("event",ri())]),Rn("getRelated",w.none),Rn("isExtraPart",l),Rn("eventOrder",w.none)],factory:Mx,apis:{showAt:function(t,e,n,r){t.showAt(e,n,r)},showWithin:function(t,e,n,r,o){t.showWithin(e,n,r,o)},showWithinBounds:function(t,e,n,r,o){t.showWithinBounds(e,n,r,o)},showMenuAt:function(t,e,n,r){t.showMenuAt(e,n,r)},showMenuWithinBounds:function(t,e,n,r,o){t.showMenuWithinBounds(e,n,r,o)},hide:function(t,e){t.hide(e)},isOpen:function(t,e){return t.isOpen(e)},getContent:function(t,e){return t.getContent(e)},setContent:function(t,e,n){t.setContent(e,n)},reposition:function(t,e){t.reposition(e)}}}),Rx=function(t){return t.x},$x=function(t,e){return t.x+t.width/2-e.width/2},Fx=function(t,e){return t.x+t.width-e.width},Vx=function(t){return t.y},Hx=function(t,e){return t.y+t.height-e.height},zx=function(t,e,n){return Wc(Fx(t,e),Hx(t,e),n.innerSoutheast(),Qc(),il(t,{right:0,bottom:3}),"layout-inner-se")},Ux=function(t,e,n){return Wc(Rx(t),Hx(t,e),n.innerSouthwest(),Jc(),il(t,{left:1,bottom:3}),"layout-inner-sw")},Wx=function(t,e,n){return Wc(Fx(t,e),Vx(t),n.innerNortheast(),Zc(),il(t,{right:0,top:2}),"layout-inner-ne")},qx=function(t,e,n){return Wc(Rx(t),Vx(t),n.innerNorthwest(),Kc(),il(t,{left:1,top:2}),"layout-inner-nw")},Gx=function(t,e,n){return Wc($x(t,e),Vx(t),n.innerNorth(),tl(),il(t,{top:2}),"layout-inner-n")},Yx=function(t,e,n){return Wc($x(t,e),Hx(t,e),n.innerSouth(),el(),il(t,{bottom:3}),"layout-inner-s")},Xx=tinymce.util.Tools.resolve("tinymce.util.Delay"),Kx=function(t){var e=Qy(t.action),n=t.dom.tag,r=function(e){return $t(t.dom,"attributes").bind((function(t){return $t(t,e)}))},o=function(){if("button"===n){var t=r("type").getOr("button"),e=r("role").map((function(t){return{role:t}})).getOr({});return h({type:t},e)}var o=r("role").getOr("button");return{role:o}};return{uid:t.uid,dom:t.dom,components:t.components,events:e,behaviours:Jp.augment(t.buttonBehaviours,[By.config({}),fy.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:o()},eventOrder:t.eventOrder}},Zx=ug({name:"Button",factory:Kx,configFields:[Rn("uid",void 0),yn("dom"),Rn("components",[]),Jp.field("buttonBehaviours",[By,fy]),Dn("action"),Dn("role"),Rn("eventOrder",{})]}),Jx=function(t){var e=rg(t)&&Vt(t,"uid")?t.uid:Pa("memento"),n=function(t){return t.getSystem().getByUid(e).getOrDie()},r=function(t){return t.getSystem().getByUid(e).toOptional()},o=function(){return h(h({},t),{uid:e})};return{get:n,getOpt:r,asSpec:o}},Qx=function(t){return w.from(t()["temporary-placeholder"]).getOr("!not found!")},tw=function(t,e){return w.from(e()[t.toLowerCase()]).getOrThunk((function(){return Qx(e)}))},ew=function(t,e,n){return w.from(e()[t.toLowerCase()]).or(n).getOrThunk((function(){return Qx(e)}))},nw=function(t,e){return dt(t,(function(t){return w.from(e()[t.toLowerCase()])})).getOrThunk((function(){return Qx(e)}))},rw={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},ow=function(t){var e=Jx({dom:{tag:"p",innerHtml:t.translationProvider(t.text)},behaviours:Fl([wy.config({})])}),n=function(t){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+t+"%"}}}},r=function(t){return{dom:{tag:"div",classes:["tox-text"],innerHtml:t+"%"}}},o=Jx({dom:{tag:"div",classes:t.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:Fl([wy.config({})])}),i=function(t,e){t.getSystem().isConnected()&&o.getOpt(t).each((function(t){wy.set(t,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(e)]},r(e)])}))},a=function(t,n){if(t.getSystem().isConnected()){var r=e.get(t);wy.set(r,[gs(n)])}},u={updateProgress:i,updateText:a},s=et([t.icon.toArray(),t.level.toArray(),t.level.bind((function(t){return w.from(rw[t])})).toArray()]),c=Jx(Zx.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:tw("close",t.iconProvider),attributes:{"aria-label":t.translationProvider("Close")}}}],action:function(e){t.onAction(e)}})),l=[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:nw(s,t.iconProvider)}},{dom:{tag:"div",classes:["tox-notification__body"]},components:[e.asSpec()],behaviours:Fl([wy.config({})])}];return{uid:t.uid,dom:{tag:"div",attributes:{role:"alert"},classes:t.level.map((function(t){return["tox-notification","tox-notification--in","tox-notification--"+t]})).getOr(["tox-notification","tox-notification--in"])},behaviours:Fl([By.config({}),Sy("notification-events",[xi(Eo(),(function(t){c.getOpt(t).each(By.focus)}))])]),components:l.concat(t.progress?[o.asSpec()]:[]).concat(t.closeButton?[c.asSpec()]:[]),apis:u}},iw=ug({name:"Notification",factory:ow,configFields:[Dn("level"),yn("progress"),yn("icon"),yn("onAction"),yn("text"),yn("iconProvider"),yn("translationProvider"),zn("closeButton",!0)],apis:{updateProgress:function(t,e,n){t.updateProgress(e,n)},updateText:function(t,e,n){t.updateText(e,n)}}});function aw(t,e,n){var r=e.backstage,o=function(t){switch(t){case"bc-bc":return Yx;case"tc-tc":return Gx;case"tc-bc":return yl;case"bc-tc":default:return xl}},i=function(t){q(t,(function(t){return t.moveTo(0,0)}))},a=function(t){t.length>0&&(ct(t).each((function(t){return t.moveRel(null,"banner")})),q(t,(function(e,n){n>0&&e.moveRel(t[n-1].getEl(),"bc-tc")})))},u=function(t){i(t),a(t)},s=function(t,i){var a=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),u=function(){i(),jx.hide(c)},s=ys(iw.sketch({text:t.text,level:V(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:w.from(t.icon),closeButton:!a,onAction:u,iconProvider:r.shared.providers.icons,translationProvider:r.shared.providers.translate})),c=ys(jx.sketch(h({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:e.backstage.shared.getSink,fireDismissalEventInstead:{}},r.shared.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));return n.add(c),t.timeout>0&&Xx.setTimeout((function(){u()}),t.timeout),{close:u,moveTo:function(t,e){jx.showAt(c,{anchor:"makeshift",x:t,y:e},xs(s))},moveRel:function(t,n){if("banner"!==n){var r=o(n),i={anchor:"node",root:Wu(),node:w.some(er.fromDom(t)),layouts:{onRtl:function(){return[r]},onLtr:function(){return[r]}}};jx.showAt(c,i,xs(s))}else jx.showAt(c,e.backstage.shared.anchors.banner(),xs(s))},text:function(t){iw.updateText(s,t)},settings:t,getEl:function(){return s.element.dom},progressBar:{value:function(t){iw.updateProgress(s,t)}}}},c=function(t){t.close()},l=function(t){return t.settings};return{open:s,close:c,reposition:u,getArgs:l}}var uw,sw=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];null===n&&(n=setTimeout((function(){t.apply(null,r),n=null}),e))};return{cancel:r,throttle:o}},cw=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((function(){t.apply(null,r),n=null}),e)};return{cancel:r,throttle:o}},lw=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),fw=function(t,e){return t.isBlock(e)||V(["BR","IMG","HR","INPUT"],e.nodeName)||"false"===t.getContentEditable(e)},dw=function(t,e,n,r,o){var i=lw(t,(function(e){return fw(t,e)}));return w.from(i.backwards(e,n,r,o))},hw="[data-mce-autocompleter]",pw=function(t,e){return mw(er.fromDom(t.selection.getNode())).getOrThunk((function(){var n=er.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',t.getDoc());return ea(n,er.fromDom(e.extractContents())),e.insertNode(n.dom),Wi(n).each((function(t){return t.dom.normalize()})),Nd(n).map((function(e){t.selection.setCursorLocation(e.dom,Dd(e))})),n}))},mw=function(t){return mc(t,hw)},gw=function(t){return t.collapsed&&3===t.startContainer.nodeType},vw=function(t){return t.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},bw=function(t){return""!==t&&-1!==" \f\n\r\t\v".indexOf(t)},yw=function(t,e){return t.substring(e.length)},xw=function(t,e,n){var r;for(r=e-1;r>=0;r--){var o=t.charAt(r);if(bw(o))return w.none();if(o===n)break}return w.some(r)},ww=function(t,e,n,r){if(void 0===r&&(r=0),!gw(e))return w.none();var o=function(t,e,r){return xw(r,e,n).getOr(e)},i=t.getParent(e.startContainer,t.isBlock)||t.getRoot();return dw(t,e.startContainer,e.startOffset,o,i).bind((function(t){var o=e.cloneRange();if(o.setStart(t.container,t.offset),o.setEnd(e.endContainer,e.endOffset),o.collapsed)return w.none();var i=vw(o),a=i.lastIndexOf(n);return 0!==a||yw(i,n).length<r?w.none():w.some({text:yw(i,n),range:o,triggerChar:n})}))},Cw=function(t,e,n,r){return void 0===r&&(r=0),mw(er.fromDom(e.startContainer)).fold((function(){return ww(t,e,n,r)}),(function(e){var r=t.createRng();r.selectNode(e.dom);var o=vw(r);return w.some({range:r,text:yw(o,n),triggerChar:n})}))},Sw=function(t,e){e.on("keypress compositionend",t.onKeypress.throttle),e.on("remove",t.onKeypress.cancel);var n=function(t,e){fi(t,Do(),{raw:e})};e.on("keydown",(function(e){var r=function(){return t.getView().bind($g.getHighlighted)};8===e.which&&t.onKeypress.throttle(e),t.isActive()&&(27===e.which&&t.cancelIfNecessary(),t.isMenuOpen()?13===e.which?(r().each(di),e.preventDefault()):40===e.which?(r().fold((function(){t.getView().each($g.highlightFirst)}),(function(t){n(t,e)})),e.preventDefault(),e.stopImmediatePropagation()):37!==e.which&&38!==e.which&&39!==e.which||r().each((function(t){n(t,e),e.preventDefault(),e.stopImmediatePropagation()})):13!==e.which&&38!==e.which&&40!==e.which||t.cancelIfNecessary())})),e.on("NodeChange",(function(e){t.isActive()&&!t.isProcessingAction()&&mw(er.fromDom(e.element)).isNone()&&t.cancelIfNecessary()}))},kw={setup:Sw},Ow=tinymce.util.Tools.resolve("tinymce.util.Promise"),_w=function(t,e){return{container:t,offset:e}},Aw=function(t){return t.nodeType===Qr},Ew=function(t){return t.nodeType===Jr},Tw=function(t){if(Aw(t))return _w(t,t.data.length);var e=t.childNodes;return e.length>0?Tw(e[e.length-1]):_w(t,e.length)},Dw=function(t,e){var n=t.childNodes;return n.length>0&&e<n.length?Dw(n[e],0):n.length>0&&Ew(t)&&n.length===e?Tw(n[n.length-1]):_w(t,e)},Iw=function(t,e){return dw(t,e.container,e.offset,(function(t,e){return 0===e?-1:e}),t.getRoot()).filter((function(t){var e=t.container.data.charAt(t.offset-1);return!bw(e)})).isSome()},Bw=function(t){return function(e){var n=Dw(e.startContainer,e.startOffset);return!Iw(t,n)}},Lw=function(t,e,n){return dt(n.triggerChars,(function(n){return Cw(t,e,n)}))},Nw=function(t,e){var n=e(),r=t.selection.getRng();return Lw(t.dom,r,n).bind((function(n){return Pw(t,e,n)}))},Pw=function(t,e,n,r){void 0===r&&(r={});var o=e(),i=t.selection.getRng(),a=i.startContainer.nodeValue,u=X(o.lookupByChar(n.triggerChar),(function(e){return n.text.length>=e.minChars&&e.matches.getOrThunk((function(){return Bw(t.dom)}))(n.range,a,n.text)}));if(0===u.length)return w.none();var s=Ow.all(W(u,(function(t){var e=t.fetch(n.text,t.maxResults,r);return e.then((function(e){return{matchText:n.text,items:e,columns:t.columns,onAction:t.onAction,highlightOn:t.highlightOn}}))})));return w.some({lookupData:s,context:n})},Mw=Re([Cn("type"),Ln("text")]),jw=function(t){return nn("separatormenuitem",Mw,t)},Rw=Re([Rn("type","autocompleteitem"),Rn("active",!1),Rn("disabled",!1),Rn("meta",{}),Cn("value"),Ln("text"),Ln("icon")]),$w=Re([Cn("type"),Cn("ch"),Fn("minChars",1),Rn("columns",1),Fn("maxResults",10),Nn("matches"),On("fetch"),On("onAction"),qn("highlightOn",[],hn)]),Fw=function(t){return nn("Autocompleter.Separator",Mw,t)},Vw=function(t){return nn("Autocompleter.Item",Rw,t)},Hw=function(t){return nn("Autocompleter",$w,t)},zw=[zn("disabled",!1),Ln("tooltip"),Ln("icon"),Ln("text"),Un("onSetup",(function(){return e}))],Uw=Re([Cn("type"),On("onAction")].concat(zw)),Ww=function(t){return nn("toolbarbutton",Uw,t)},qw=[zn("active",!1)].concat(zw),Gw=Re(qw.concat([Cn("type"),On("onAction")])),Yw=function(t){return nn("ToggleButton",Gw,t)},Xw=[Un("predicate",(function(){return!1})),Hn("scope","node",["node","editor"]),Hn("position","selection",["node","selection","line"])],Kw=zw.concat([Rn("type","contextformbutton"),Rn("primary",!1),On("onAction"),Yn("original",a)]),Zw=qw.concat([Rn("type","contextformbutton"),Rn("primary",!1),On("onAction"),Yn("original",a)]),Jw=zw.concat([Rn("type","contextformbutton")]),Qw=qw.concat([Rn("type","contextformtogglebutton")]),tC=sn("type",{contextformbutton:Kw,contextformtogglebutton:Zw}),eC=Re([Rn("type","contextform"),Un("initValue",(function(){return""})),Ln("label"),Tn("commands",tC),In("launch",sn("type",{contextformbutton:Jw,contextformtogglebutton:Qw}))].concat(Xw)),nC=function(t){return nn("ContextForm",eC,t)},rC=Re([Rn("type","contexttoolbar"),Cn("items")].concat(Xw)),oC=function(t){return nn("ContextToolbar",rC,t)},iC=function(t){var e={};return q(t,(function(t){e[t]={}})),Et(e)},aC=function(t){var e=t.ui.registry.getAll().popups,n=It(e,(function(t){return Hw(t).fold((function(t){throw new Error(an(t))}),(function(t){return t}))})),r=iC(Mt(n,(function(t){return t.ch}))),o=Rt(n),i=function(t){return X(o,(function(e){return e.ch===t}))};return{dataset:n,triggerChars:r,lookupByChar:i}};(function(t){t[t["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",t[t["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(uw||(uw={}));var uC,sC=uw,cC="tox-menu-nav__js",lC="tox-collection__item",fC="tox-swatch",dC={normal:cC,color:fC},hC="tox-collection__item--enabled",pC="tox-collection__group-heading",mC="tox-collection__item-icon",gC="tox-collection__item-label",vC="tox-collection__item-accessory",bC="tox-collection__item-caret",yC="tox-collection__item-checkmark",xC="tox-collection__item--active",wC="tox-collection__item-icon-rtl",CC="tox-collection__item-container",SC="tox-collection__item-container--column",kC="tox-collection__item-container--row",OC="tox-collection__item-container--align-right",_C="tox-collection__item-container--align-left",AC="tox-collection__item-container--valign-top",EC="tox-collection__item-container--valign-middle",TC="tox-collection__item-container--valign-bottom",DC=function(t){return $t(dC,t).getOr(cC)},IC=function(t){return"color"===t?"tox-swatches":"tox-menu"},BC=function(t){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:IC(t),tieredMenu:"tox-tiered-menu"}},LC=function(t){var e=BC(t);return{backgroundMenu:e.backgroundMenu,selectedMenu:e.selectedMenu,menu:e.menu,selectedItem:e.selectedItem,item:DC(t)}},NC=function(t,e,n){var r=BC(n);return{tag:"div",classes:et([[r.menu,"tox-menu-"+e+"-column"],t?[r.hasIcons]:[]])}},PC=[Cx.parts.items({})],MC=function(t,e,n){var r=BC(n),o={tag:"div",classes:et([[r.tieredMenu]])};return{dom:o,markers:LC(n)}},jC=function(t,e){return function(n){var r=U(n,e);return W(r,(function(e){return{dom:t,components:e}}))}},RC=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Cx.parts.items({preprocess:"auto"!==t?jC({tag:"div",classes:["tox-swatches__row"]},t):a})]}]}},$C=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Cx.parts.items({preprocess:jC({tag:"div",classes:["tox-collection__group"]},t)})]}},FC=function(t,e){var n=[],r=[];return q(t,(function(t,o){e(t,o)?(r.length>0&&n.push(r),r=[],Ft(t.dom,"innerHtml")&&r.push(t)):r.push(t)})),r.length>0&&n.push(r),W(n,(function(t){return{dom:{tag:"div",classes:["tox-collection__group"]},components:t}}))},VC=function(t,e,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===t?["tox-collection--list"]:["tox-collection--grid"])},components:[Cx.parts.items({preprocess:function(n){return"auto"!==t&&t>1?jC({tag:"div",classes:["tox-collection__group"]},t)(n):FC(n,(function(t,n){return"separator"===e[n].type}))}})]}},HC=function(t,e){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Cx.parts.items({preprocess:function(e){return FC(e,(function(e,n){return"separator"===t[n].type}))}})]}},zC=function(t){return H(t,(function(t){return"icon"in t&&void 0!==t.icon}))},UC=function(t){return console.error(an(t)),console.log(t),w.none()},WC=function(t,e,n,r,o){var i=HC(n);return{value:t,dom:i.dom,components:i.components,items:n}},qC=function(t,e,n,r,o){if("color"===o){var i=RC(r);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o&&"auto"===r){i=VC(r,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o&&1===r){i=VC(1,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o){i=VC(r,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("listpreview"===o&&"auto"!==r){i=$C(r);return{value:t,dom:i.dom,components:i.components,items:n}}return{value:t,dom:NC(e,r,o),components:PC,items:n}},GC=[Cn("type"),Cn("src"),Ln("alt"),qn("classes",[],hn)],YC=Re(GC),XC=[Cn("type"),Cn("text"),Ln("name"),qn("classes",["tox-collection__item-label"],hn)],KC=Re(XC),ZC=Je((function(){return un("type",{cardimage:YC,cardtext:KC,cardcontainer:JC})})),JC=Re([Cn("type"),Vn("direction","horizontal"),Vn("align","left"),Vn("valign","middle"),Tn("items",ZC)]),QC=[zn("disabled",!1),Ln("text"),Ln("shortcut"),qe("value","value",ne((function(){return Aa("menuitem-value")})),ln()),Rn("meta",{})],tS=Re([Cn("type"),Ln("label"),Tn("items",ZC),Un("onSetup",(function(){return e})),Un("onAction",e)].concat(QC)),eS=function(t){return nn("cardmenuitem",tS,t)},nS=Re([Cn("type"),zn("active",!1),Ln("icon")].concat(QC)),rS=function(t){return nn("choicemenuitem",nS,t)},oS=["inserttable","colorswatch"],iS=Re([Cn("type"),Sn("fancytype",oS),Un("onAction",e)]),aS=function(t){return nn("fancymenuitem",iS,t)},uS=Re([Cn("type"),Un("onSetup",(function(){return e})),Un("onAction",e),Ln("icon")].concat(QC)),sS=function(t){return nn("menuitem",uS,t)},cS=Re([Cn("type"),On("getSubmenuItems"),Un("onSetup",(function(){return e})),Ln("icon")].concat(QC)),lS=function(t){return nn("nestedmenuitem",cS,t)},fS=Re([Cn("type"),Ln("icon"),zn("active",!1),Un("onSetup",(function(){return e})),On("onAction")].concat(QC)),dS=function(t){return nn("togglemenuitem",fS,t)},hS=function(t,e,n){var r=Md(t.element,"."+n);if(r.length>0){var o=tt(r,(function(t){var n=t.dom.getBoundingClientRect().top,o=r[0].dom.getBoundingClientRect().top;return Math.abs(n-o)>e})).getOr(r.length);return w.some({numColumns:o,numRows:Math.ceil(r.length/o)})}return w.none()},pS=function(t,e){return Fl([Sy(t,e)])},mS=function(t){return pS(Aa("unnamed-events"),t)},gS={namedEvents:pS,unnamedEvents:mS},vS=[yn("lazySink"),yn("tooltipDom"),Rn("exclusive",!0),Rn("tooltipComponents",[]),Rn("delay",300),Hn("mode","normal",["normal","follow-highlight"]),Rn("anchor",(function(t){return{anchor:"hotspot",hotspot:t,layouts:{onLtr:i([xl,yl,ml,vl,gl,bl]),onRtl:i([xl,yl,ml,vl,gl,bl])}}})),Rc("onHide"),Rc("onShow")],bS=function(){var t=Xn(w.none()),e=Xn(w.none()),n=function(){return e.get()},r=function(t){e.set(w.some(t))},o=function(){e.set(w.none())},a=function(){t.get().each((function(t){clearTimeout(t)}))},u=function(e,n){a(),t.set(w.some(setTimeout((function(){e()}),n)))},s=function(){return e.get().isSome()},c=i("not-implemented");return Ya({getTooltip:n,isShowing:s,setTooltip:r,clearTooltip:o,clearTimer:a,resetTimer:u,readState:c})},yS=Object.freeze({__proto__:null,init:bS}),xS=Aa("tooltip.exclusive"),wS=Aa("tooltip.show"),CS=Aa("tooltip.hide"),SS=function(t,e,n){t.getSystem().broadcastOn([xS],{})},kS=function(t,e,n,r){n.getTooltip().each((function(t){t.getSystem().isConnected()&&wy.set(t,r)}))},OS=Object.freeze({__proto__:null,hideAllExclusive:SS,setComponents:kS}),_S=function(t,e){var n=function(n){e.getTooltip().each((function(r){Vh(r),t.onHide(n,r),e.clearTooltip()})),e.clearTimer()},r=function(n){if(!e.isShowing()){SS(n);var r=t.lazySink(n).getOrDie(),o=n.getSystem().build({dom:t.tooltipDom,components:t.tooltipComponents,events:gi("normal"===t.mode?[xi(Ao(),(function(t){li(n,wS)})),xi(Oo(),(function(t){li(n,CS)}))]:[]),behaviours:Fl([wy.config({})])});e.setTooltip(o),Rh(r,o),t.onShow(n,o),Bh.position(r,t.anchor(n),o)}};return gi(et([[xi(wS,(function(n){e.resetTimer((function(){r(n)}),t.delay)})),xi(CS,(function(r){e.resetTimer((function(){n(r)}),t.delay)})),xi(Ho(),(function(t,e){var r=e;r.universal||V(r.channels,xS)&&n(t)})),Ii((function(t){n(t)}))],"normal"===t.mode?[xi(Eo(),(function(t){li(t,wS)})),xi(Fo(),(function(t){li(t,CS)})),xi(Ao(),(function(t){li(t,wS)})),xi(Oo(),(function(t){li(t,CS)}))]:[xi(si(),(function(t,e){li(t,wS)})),xi(ci(),(function(t){li(t,CS)}))]]))},AS=Object.freeze({__proto__:null,events:_S}),ES=Hl({fields:vS,name:"tooltipping",active:AS,state:yS,apis:OS}),TS=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),DS=tinymce.util.Tools.resolve("tinymce.util.I18n"),IS=["input","button","textarea","select"],BS=function(t,e,n){var r=e.disabled()?FS:VS;r(t,e)},LS=function(t,e){return!0===e.useNative&&V(IS,Ni(t.element))},NS=function(t){return va(t.element,"disabled")},PS=function(t){ha(t.element,"disabled","disabled")},MS=function(t){ba(t.element,"disabled")},jS=function(t){return"true"===ma(t.element,"aria-disabled")},RS=function(t){ha(t.element,"aria-disabled","true")},$S=function(t){ha(t.element,"aria-disabled","false")},FS=function(t,e,n){e.disableClass.each((function(e){Au(t.element,e)}));var r=LS(t,e)?PS:RS;r(t),e.onDisabled(t)},VS=function(t,e,n){e.disableClass.each((function(e){Tu(t.element,e)}));var r=LS(t,e)?MS:$S;r(t),e.onEnabled(t)},HS=function(t,e){return LS(t,e)?NS(t):jS(t)},zS=function(t,e,n,r){var o=r?FS:VS;o(t,e)},US=Object.freeze({__proto__:null,enable:VS,disable:FS,isDisabled:HS,onLoad:BS,set:zS}),WS=function(t,e){return Qa({classes:e.disabled()?e.disableClass.toArray():[]})},qS=function(t,e){return gi([vi(zo(),(function(e,n){return HS(e,t)})),Nl(t,e,BS)])},GS=Object.freeze({__proto__:null,exhibit:WS,events:qS}),YS=[Un("disabled",l),Rn("useNative",!0),Dn("disableClass"),Rc("onDisabled"),Rc("onEnabled")],XS=Hl({fields:YS,name:"disabling",active:GS,apis:US}),KS=tinymce.util.Tools.resolve("tinymce.EditorManager"),ZS=function(t){var e=t.getParam("skin"),n=t.getParam("skin_url");if(!1!==e){var r=e||"oxide";n=n?t.documentBaseURI.toAbsolute(n):KS.baseURL+"/skins/ui/"+r}return n},JS=function(t){return t.getParam("readonly",!1,"boolean")},QS=function(t){return!1===t.getParam("skin")},tk=function(t){return t.getParam("height",Math.max(t.getElement().offsetHeight,200))},ek=function(t){return t.getParam("width",TS.DOM.getStyle(t.getElement(),"width"))},nk=function(t){return w.from(t.getParam("min_width")).filter(N)},rk=function(t){return w.from(t.getParam("min_height")).filter(N)},ok=function(t){return w.from(t.getParam("max_width")).filter(N)},ik=function(t){return w.from(t.getParam("max_height")).filter(N)},ak=function(t){return w.from(t.getParam("style_formats")).filter(E)},uk=function(t){return t.getParam("style_formats_merge",!1,"boolean")},sk=function(t){return t.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},ck=function(t){return t.getParam("removed_menuitems","")},lk=function(t){return!1!==t.getParam("menubar",!0,"boolean")},fk=function(t){var e=t.getParam("toolbar",!0),n=!0===e,r=_(e),o=E(e)&&e.length>0;return!hk(t)&&(o||r||n)},dk=function(t){var e=z(9,(function(e){return t.getParam("toolbar"+(e+1),!1,"string")})),n=X(e,(function(t){return"string"===typeof t}));return n.length>0?w.some(n):w.none()},hk=function(t){return dk(t).fold((function(){var e=t.getParam("toolbar",[],"string[]");return e.length>0}),(function(){return!0}))};(function(t){t["default"]="wrap",t["floating"]="floating",t["sliding"]="sliding",t["scrolling"]="scrolling"})(uC||(uC={}));var pk,mk=function(t){return t.getParam("toolbar_mode","","string")};(function(t){t["auto"]="auto",t["top"]="top",t["bottom"]="bottom"})(pk||(pk={}));var gk,vk=function(t){return t.getParam("toolbar_groups",{},"object")},bk=function(t){return t.getParam("toolbar_location",pk.auto,"string")},yk=function(t){return bk(t)===pk.bottom},xk=function(t){return t.getParam("fixed_toolbar_container","","string")},wk=function(t){return t.getParam("toolbar_persist",!1,"boolean")},Ck=function(t){var e=xk(t);return e.length>0&&t.inline?pc(Wu(),e):w.none()},Sk=function(t){return t.inline&&Ck(t).isSome()},kk=function(t){var e=Ck(t);return e.getOrThunk((function(){return Ru(ju(er.fromDom(t.getElement())))}))},Ok=function(t){return t.inline&&!lk(t)&&!fk(t)&&!hk(t)},_k=function(t){var e=t.getParam("toolbar_sticky",!1,"boolean");return(e||t.inline)&&!Sk(t)&&!Ok(t)},Ak=function(t){return t.getParam("draggable_modal",!1,"boolean")},Ek=function(t){var e=t.getParam("menu");return e?It(e,(function(t){return h(h({},t),{items:t.items})})):{}},Tk=function(t){return t.getParam("menubar")},Dk=function(t){return t.getParam("toolbar",!0)},Ik=function(t){return t.getParam("file_picker_callback")},Bk=function(t){return t.getParam("file_picker_types")},Lk=function(t){return t.getParam("file_browser_callback_types")},Nk=function(t){return!1===t.getParam("typeahead_urls")},Pk=function(t){return t.getParam("anchor_top","#top")},Mk=function(t){return t.getParam("anchor_bottom","#bottom")},jk=function(t){var e=t.getParam("file_picker_validator_handler",void 0,"function");return void 0===e?t.getParam("filepicker_validator_handler",void 0,"function"):e},Rk="silver.readonly",$k=Re([kn("readonly")]),Fk=function(t,e){var n=t.outerContainer,r=n.element;e&&(t.mothership.broadcastOn([hp()],{target:r}),t.uiMothership.broadcastOn([hp()],{target:r})),t.mothership.broadcastOn([Rk],{readonly:e}),t.uiMothership.broadcastOn([Rk],{readonly:e})},Vk=function(t,e){t.on("init",(function(){t.mode.isReadOnly()&&Fk(e,!0)})),t.on("SwitchMode",(function(){return Fk(e,t.mode.isReadOnly())})),JS(t)&&t.setMode("readonly")},Hk=function(){var t;return ql.config({channels:(t={},t[Rk]={schema:$k,onReceive:function(t,e){XS.set(t,e.readonly)}},t)})},zk=function(t){return XS.config({disabled:t,disableClass:"tox-collection__item--state-disabled"})},Uk=function(t){return XS.config({disabled:t})},Wk=function(t){return XS.config({disabled:t,disableClass:"tox-tbtn--disabled"})},qk=function(t){return XS.config({disabled:t,disableClass:"tox-tbtn--disabled",useNative:!1})},Gk={item:zk,button:Uk,splitButton:Wk,toolbarButton:qk},Yk=function(t,e){var n=t.getApi(e);return function(t){t(n)}},Xk=function(t,e){return Di((function(n){var r=Yk(t,n);r((function(n){var r=t.onSetup(n);null!==r&&void 0!==r&&e.set(r)}))}))},Kk=function(t,e){return Ii((function(n){return Yk(t,n)(e.get())}))},Zk=function(t,e){return Li((function(n,r){Yk(t,n)(t.onAction),t.triggersSubmenu||e!==sC.CLOSE_ON_EXECUTE||(li(n,Go()),r.stop())}))},Jk=(gk={},gk[zo()]=["disabling","alloy.base.behaviour","toggling","item-events"],gk),Qk=function(t){return nt(t,(function(t){return t.toArray()}))},tO=function(t,n,r,o){var i=Xn(e);return{type:"item",dom:n.dom,components:Qk(n.optComponents),data:t.data,eventOrder:Jk,hasSubmenu:t.triggersSubmenu,itemBehaviours:Fl([Sy("item-events",[Zk(t,r),Xk(t,i),Kk(t,i)]),Gk.item((function(){return t.disabled||o.isDisabled()})),Hk(),wy.config({})].concat(t.itemBehaviours))}},eO=function(t){return{value:t.value,meta:h({text:t.text.getOr("")},t.meta)}},nO=tinymce.util.Tools.resolve("tinymce.Env"),rO=function(t){var e={alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"},n={meta:"Ctrl",access:"Shift+Alt"},r=nO.mac?e:n,o=t.split("+"),i=W(o,(function(t){var e=t.toLowerCase().trim();return Ft(r,e)?r[e]:t}));return nO.mac?i.join(""):i.join("+")},oO=function(t){return{dom:{tag:"div",classes:[mC],innerHtml:t}}},iO=function(t){return{dom:{tag:"div",classes:[gC]},components:[gs(DS.translate(t))]}},aO=function(t,e){return{dom:{tag:"div",classes:e,innerHtml:t}}},uO=function(t,e){return{dom:{tag:"div",classes:[gC]},components:[{dom:{tag:t.tag,styles:t.styles},components:[gs(DS.translate(e))]}]}},sO=function(t){return{dom:{tag:"div",classes:[vC],innerHtml:rO(t)}}},cO=function(t){return{dom:{tag:"div",classes:[yC],innerHtml:tw("checkmark",t)}}},lO=function(t){return{dom:{tag:"div",classes:[bC],innerHtml:tw("chevron-right",t)}}},fO=function(t){return{dom:{tag:"div",classes:[bC],innerHtml:tw("chevron-down",t)}}},dO=function(t,e){var n="vertical"===t.direction?SC:kC,r="left"===t.align?_C:OC,o=function(){switch(t.valign){case"top":return AC;case"middle":return EC;case"bottom":return TC}};return{dom:{tag:"div",classes:[CC,n,r,o()]},components:e}},hO=function(t,e,n){return{dom:{tag:"img",classes:e,attributes:{src:t,alt:n.getOr("")}}}},pO=function(t,e,n,r){var o="custom",i="remove",a=function(){var a=fC,u=n.getOr(""),s=t.map((function(t){return{title:r.translate(t)}})).getOr({}),c={tag:"div",attributes:s,classes:[a]};return h(h({},c),e===o?{tag:"button",classes:m(c.classes,["tox-swatches__picker-btn"]),innerHtml:u}:e===i?{classes:m(c.classes,["tox-swatch--remove"]),innerHtml:u}:{attributes:h(h({},c.attributes),{"data-mce-color":e}),styles:{"background-color":e}})};return{dom:a(),optComponents:[]}},mO=function(t,e){var n=e.map((function(t){return{attributes:{title:DS.translate(t)}}})).getOr({});return h({tag:"div",classes:[cC,lC].concat(t?[wC]:[])},n)},gO=function(t,e,n,r,o){var i=n?e.or(w.some("")).map(oO):w.none(),a=t.checkMark,u=t.htmlContent.fold((function(){return t.textContent.map(r)}),(function(t){return w.some(aO(t,[gC]))})),s={dom:mO(o,t.ariaLabel),optComponents:[i,u,t.shortcutContent.map(sO),a,t.caret]};return s},vO=["list-num-default","list-num-lower-alpha","list-num-lower-greek","list-num-lower-roman","list-num-upper-alpha","list-num-upper-roman"],bO=["list-bull-circle","list-bull-default","list-bull-square"],yO=function(t,e,n,r){void 0===r&&(r=w.none());var o=function(t){return t.map((function(t){return DS.isRtl()&&V(vO,t)?t+"-rtl":t}))},i=DS.isRtl()&&t.iconContent.exists((function(t){return V(bO,t)})),a=o(t.iconContent).map((function(t){return ew(t,e.icons,r)})),s=w.from(t.meta).fold((function(){return iO}),(function(t){return Ft(t,"style")?u(uO,t.style):iO}));return"color"===t.presets?pO(t.ariaLabel,t.value,a,e):gO(t,a,n,s,i)},xO=function(t,e){return $t(t,"tooltipWorker").map((function(t){return[ES.config({lazySink:e.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(t){return{anchor:"submenu",item:t,overrides:{maxHeightFunction:Df}}},mode:"follow-highlight",onShow:function(e,n){t((function(t){ES.setComponents(e,[vs({element:er.fromDom(t)})])}))}})]})).getOr([])},wO=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},CO=function(t){return TS.DOM.encode(t)},SO=function(t,e){var n=DS.translate(t),r=CO(n);if(e.length>0){var o=new RegExp(wO(e),"gi");return r.replace(o,(function(t){return'<span class="tox-autocompleter-highlight">'+t+"</span>"}))}return r},kO=function(t,e,n,r,o,i,a,u){void 0===u&&(u=!0);var s=yO({presets:r,textContent:w.none(),htmlContent:n?t.text.map((function(t){return SO(t,e)})):w.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:w.none(),checkMark:w.none(),caret:w.none(),value:t.value},a.providers,u,t.icon);return tO({data:eO(t),disabled:t.disabled,getApi:function(){return{}},onAction:function(e){return o(t.value,t.meta)},onSetup:function(){return function(){}},triggersSubmenu:!1,itemBehaviours:xO(t.meta,a)},s,i,a.providers)},OO=function(t,e,n,r,o,i,a,u){void 0===u&&(u=!0);var s=function(t){return{setActive:function(e){Zy.set(t,e)},isActive:function(){return Zy.isOn(t)},isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){return XS.set(t,e)}}},c=yO({presets:n,textContent:e?t.text:w.none(),htmlContent:w.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:e?t.shortcut:w.none(),checkMark:e?w.some(cO(a.icons)):w.none(),caret:w.none(),value:t.value},a,u);return Yt(tO({data:eO(t),disabled:t.disabled,getApi:s,onAction:function(e){return r(t.value)},onSetup:function(t){return t.setActive(o),function(){}},triggersSubmenu:!1,itemBehaviours:[]},c,i,a),{toggling:{toggleClass:hC,toggleOnExecute:!1,selected:t.active}})},_O=Pm(lx(),fx()),AO=function(t){return{value:t}},EO=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,TO=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,DO=function(t){return EO.test(t)||TO.test(t)},IO=function(t){var e=t.value.replace(EO,(function(t,e,n,r){return e+e+n+n+r+r}));return{value:e}},BO=function(t){var e=IO(t),n=TO.exec(e.value);return null===n?["FFFFFF","FF","FF","FF"]:n},LO=function(t){var e=t.toString(16);return 1===e.length?"0"+e:e},NO=function(t){var e=LO(t.red)+LO(t.green)+LO(t.blue);return AO(e)},PO=Math.min,MO=Math.max,jO=Math.round,RO=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,$O=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,FO=function(t,e,n,r){return{red:t,green:e,blue:n,alpha:r}},VO=function(t){var e=parseInt(t,10);return e.toString()===t&&e>=0&&e<=255},HO=function(t){var e,n,r,o=(t.hue||0)%360,i=t.saturation/100,a=t.value/100;if(i=MO(0,PO(i,1)),a=MO(0,PO(a,1)),0===i)return e=n=r=jO(255*a),FO(e,n,r,1);var u=o/60,s=a*i,c=s*(1-Math.abs(u%2-1)),l=a-s;switch(Math.floor(u)){case 0:e=s,n=c,r=0;break;case 1:e=c,n=s,r=0;break;case 2:e=0,n=s,r=c;break;case 3:e=0,n=c,r=s;break;case 4:e=c,n=0,r=s;break;case 5:e=s,n=0,r=c;break;default:e=n=r=0}return e=jO(255*(e+l)),n=jO(255*(n+l)),r=jO(255*(r+l)),FO(e,n,r,1)},zO=function(t){var e=BO(t),n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16);return FO(n,r,o,1)},UO=function(t,e,n,r){var o=parseInt(t,10),i=parseInt(e,10),a=parseInt(n,10),u=parseFloat(r);return FO(o,i,a,u)},WO=function(t){if("transparent"===t)return w.some(FO(0,0,0,0));var e=RO.exec(t);if(null!==e)return w.some(UO(e[1],e[2],e[3],"1"));var n=$O.exec(t);return null!==n?w.some(UO(n[1],n[2],n[3],n[4])):w.none()},qO=function(t){return"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"},GO=FO(255,0,0,1),YO=function(t){return t.fire("SkinLoaded")},XO=function(t,e){return t.fire("SkinLoadError",e)},KO=function(t){return t.fire("ResizeEditor")},ZO=function(t,e){return t.fire("ResizeContent",e)},JO=function(t,e){return t.fire("ScrollContent",e)},QO=function(t,e){return t.fire("TextColorChange",e)},t_=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),e_="tinymce-custom-colors";function n_(t){void 0===t&&(t=10);var e=t_.getItem(e_),n=_(e)?JSON.parse(e):[],r=function(e){var n=t-e.length;return n<0?e.slice(0,t):e},o=r(n),i=function(e){F(o,e).each(a),o.unshift(e),o.length>t&&o.pop(),t_.setItem(e_,JSON.stringify(o))},a=function(t){o.splice(t,1)},u=function(){return o.slice(0)};return{add:i,state:u}}var r_="choiceitem",o_=[{type:r_,text:"Light Green",value:"#BFEDD2"},{type:r_,text:"Light Yellow",value:"#FBEEB8"},{type:r_,text:"Light Red",value:"#F8CAC6"},{type:r_,text:"Light Purple",value:"#ECCAFA"},{type:r_,text:"Light Blue",value:"#C2E0F4"},{type:r_,text:"Green",value:"#2DC26B"},{type:r_,text:"Yellow",value:"#F1C40F"},{type:r_,text:"Red",value:"#E03E2D"},{type:r_,text:"Purple",value:"#B96AD9"},{type:r_,text:"Blue",value:"#3598DB"},{type:r_,text:"Dark Turquoise",value:"#169179"},{type:r_,text:"Orange",value:"#E67E23"},{type:r_,text:"Dark Red",value:"#BA372A"},{type:r_,text:"Dark Purple",value:"#843FA1"},{type:r_,text:"Dark Blue",value:"#236FA1"},{type:r_,text:"Light Gray",value:"#ECF0F1"},{type:r_,text:"Medium Gray",value:"#CED4D9"},{type:r_,text:"Gray",value:"#95A5A6"},{type:r_,text:"Dark Gray",value:"#7E8C8D"},{type:r_,text:"Navy Blue",value:"#34495E"},{type:r_,text:"Black",value:"#000000"},{type:r_,text:"White",value:"#ffffff"}],i_=n_(10),a_=function(t){var e=[],n=document.createElement("canvas");n.height=1,n.width=1;for(var r=n.getContext("2d"),o=function(t,e){var n=255,r=e/255,o=Math.round(t*r+n*(1-r));return("0"+o.toString(16)).slice(-2).toUpperCase()},i=function(t){if(/^[0-9A-Fa-f]{6}$/.test(t))return"#"+t.toUpperCase();r.clearRect(0,0,n.width,n.height),r.fillStyle="#FFFFFF",r.fillStyle=t,r.fillRect(0,0,1,1);var e=r.getImageData(0,0,1,1).data,i=e[0],a=e[1],u=e[2],s=e[3];return"#"+o(i,s)+o(a,s)+o(u,s)},a=0;a<t.length;a+=2)e.push({text:t[a+1],value:i(t[a]),type:"choiceitem"});return e},u_=function(t,e){return t.getParam("color_cols",e,"number")},s_=function(t){return!1!==t.getParam("custom_colors")},c_=function(t){return t.getParam("color_map")},l_=function(t){var e=c_(t);return void 0!==e?a_(e):o_},f_=function(){return W(i_.state(),(function(t){return{type:r_,text:t,value:t}}))},d_=function(t){i_.add(t)},h_=function(t,e){var n;return t.dom.getParents(t.selection.getStart(),(function(t){var r;(r=t.style["forecolor"===e?"color":"background-color"])&&(n=n||r)})),n},p_=function(t,e,n){t.undoManager.transact((function(){t.focus(),t.formatter.apply(e,{value:n}),t.nodeChanged()}))},m_=function(t,e){t.undoManager.transact((function(){t.focus(),t.formatter.remove(e,{value:null},null,!0),t.nodeChanged()}))},g_=function(t){t.addCommand("mceApplyTextcolor",(function(e,n){p_(t,e,n)})),t.addCommand("mceRemoveTextcolor",(function(e){m_(t,e)}))},v_=function(t){return Math.max(5,Math.ceil(Math.sqrt(t)))},b_=function(t){var e=l_(t),n=v_(e.length);return u_(t,n)},y_=function(t){var e="choiceitem",n={type:e,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:e,text:"Custom color",icon:"color-picker",value:"custom"};return t?[n,r]:[n]},x_=function(t,e,n,r){if("custom"===n){var o=__(t);o((function(n){n.each((function(n){d_(n),t.execCommand("mceApplyTextcolor",e,n),r(n)}))}),"#000000")}else"remove"===n?(r(""),t.execCommand("mceRemoveTextcolor",e)):(r(n),t.execCommand("mceApplyTextcolor",e,n))},w_=function(t,e){return t.concat(f_().concat(y_(e)))},C_=function(t,e){return function(n){n(w_(t,e))}},S_=function(t,e,n){var r=function(e,n){t.setIconFill(e,n),t.setIconStroke(e,n)},o="forecolor"===e?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";r(o,n)},k_=function(t,e,n,r,o){t.ui.registry.addSplitButton(e,{tooltip:r,presets:"color",icon:"forecolor"===e?"text-color":"highlight-bg-color",select:function(e){var r=w.from(h_(t,n));return r.bind((function(t){return WO(t).map((function(t){var n=NO(t).value;return pr(e.toLowerCase(),n)}))})).getOr(!1)},columns:b_(t),fetch:C_(l_(t),s_(t)),onAction:function(e){null!==o.get()&&x_(t,n,o.get(),(function(){}))},onItemAction:function(r,i){x_(t,n,i,(function(n){o.set(n),QO(t,{name:e,color:n})}))},onSetup:function(n){null!==o.get()&&S_(n,e,o.get());var r=function(t){t.name===e&&S_(n,t.name,t.color)};return t.on("TextColorChange",r),function(){t.off("TextColorChange",r)}}})},O_=function(t,n,r,o){t.ui.registry.addNestedMenuItem(n,{text:o,icon:"forecolor"===n?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(n){x_(t,r,n.value,e)}}]}})},__=function(t){return function(e,n){var r=function(t){return function(e){var n=e.getData();t(w.from(n.colorpicker)),e.close()}},o=function(t,e){"hex-valid"===e.name&&(e.value?t.enable("ok"):t.disable("ok"))},i={colorpicker:n},a=r(e);t.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i,onAction:o,onSubmit:a,onClose:function(){},onCancel:function(){e(w.none())}})}},A_=function(t){g_(t);var e=Xn(null),n=Xn(null);k_(t,"forecolor","forecolor","Text color",e),k_(t,"backcolor","hilitecolor","Background color",n),O_(t,"forecolor","forecolor","Text color"),O_(t,"backcolor","hilitecolor","Background color")},E_=function(t,e,n,r,o,i,a,u){var s=zC(e),c="color"!==o?"normal":"color",l=T_(e,n,r,c,i,a,u);return qC(t,s,l,r,o)},T_=function(t,e,n,r,o,i,a){return cg(W(t,(function(u){return"choiceitem"===u.type?rS(u).fold(UC,(function(s){return w.some(OO(s,1===n,r,e,i(u.value),o,a,zC(t)))})):w.none()})))},D_=function(t,e){var n=LC(e);if(1===t)return{mode:"menu",moveOnTab:!0};if("auto"===t)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===e?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},I_=function(t,e){return 1===t?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===t?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===e?".tox-swatches__row":".tox-collection__group",cell:"color"===e?"."+fC:"."+lC}}};function B_(t,e){var n=w_(e.colorinput.getColors(),e.colorinput.hasCustomColors()),r=e.colorinput.getColorCols(),o="color",i=E_(Aa("menu-value"),n,(function(e){t.onAction({value:e})}),r,o,sC.CLOSE_ON_EXECUTE,(function(){return!1}),e.shared.providers),a=h(h({},i),{markers:LC(o),movement:D_(r,o)});return{type:"widget",data:{value:Aa("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[_O.widget(Cx.sketch(a))]}}var L_,N_=Aa("cell-over"),P_=Aa("cell-execute"),M_=function(t,e,n){var r,o=function(n){return fi(n,N_,{row:t,col:e})},i=function(n){return fi(n,P_,{row:t,col:e})},a=function(t,e){e.stop(),i(t)};return ys({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:Fl([Sy("insert-table-picker-cell",[xi(Ao(),By.focus),xi(zo(),i),xi(No(),a),xi(Wo(),a)]),Zy.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),By.config({onFocus:o})])})},j_=function(t,e,n){for(var r=[],o=0;o<e;o++){for(var i=[],a=0;a<n;a++)i.push(M_(o,a,t));r.push(i)}return r},R_=function(t,e,n,r,o){for(var i=0;i<r;i++)for(var a=0;a<o;a++)Zy.set(t[i][a],i<=e&&a<=n)},$_=function(t){return nt(t,(function(t){return W(t,xs)}))},F_=function(t,e){return gs(e+1+"x"+(t+1))},V_=function(t){var e=10,n=10,r=Aa("size-label"),o=j_(r,e,n),i=Jx({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[gs("0x0")],behaviours:Fl([wy.config({})])});return{type:"widget",data:{value:Aa("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[_O.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:$_(o).concat(i.asSpec()),behaviours:Fl([Sy("insert-table-picker",[_i(N_,(function(t,r,a){var u=a.event.row,s=a.event.col;R_(o,u,s,e,n),wy.set(i.get(t),[F_(u,s)])})),_i(P_,(function(e,n,r){t.onAction({numRows:r.event.row+1,numColumns:r.event.col+1}),li(e,Go())}))]),fy.config({initSize:{numRows:e,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},H_={inserttable:V_,colorswatch:B_},z_=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)?w.some(t[e]):w.none()},U_=function(t,e){return z_(H_,t.fancytype).map((function(n){return n(t,e)}))},W_=function(t,n,r,o,i){void 0===o&&(o=!0),void 0===i&&(i=!1);var a=i?fO(r.icons):lO(r.icons),u=function(t){return{isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){return XS.set(t,e)}}},s=yO({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:w.none(),ariaLabel:t.text,caret:w.some(a),checkMark:w.none(),shortcutContent:t.shortcut},r,o);return tO({data:eO(t),getApi:u,disabled:t.disabled,onAction:e,onSetup:t.onSetup,triggersSubmenu:!0,itemBehaviours:[]},s,n,r)},q_=function(t,e,n,r){void 0===r&&(r=!0);var o=function(t){return{isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){return XS.set(t,e)}}},i=yO({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:w.none(),ariaLabel:t.text,caret:w.none(),checkMark:w.none(),shortcutContent:t.shortcut},n,r);return tO({data:eO(t),getApi:o,disabled:t.disabled,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,e,n)},G_=function(t){var e=t.text.fold((function(){return{}}),(function(t){return{innerHtml:t}}));return{type:"separator",dom:h({tag:"div",classes:[lC,pC]},e),components:[]}},Y_=function(t,e,n,r){void 0===r&&(r=!0);var o=function(t){return{setActive:function(e){Zy.set(t,e)},isActive:function(){return Zy.isOn(t)},isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){return XS.set(t,e)}}},i=yO({iconContent:t.icon,textContent:t.text,htmlContent:w.none(),ariaLabel:t.text,checkMark:w.some(cO(n.icons)),caret:w.none(),shortcutContent:t.shortcut,presets:"normal",meta:t.meta},n,r);return Yt(tO({data:eO(t),disabled:t.disabled,getApi:o,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,e,n),{toggling:{toggleClass:hC,toggleOnExecute:!1,selected:t.active}})},X_=function(t,e){return W(t,(function(t){switch(t.type){case"cardcontainer":return dO(t,X_(t.items,e));case"cardimage":return hO(t.src,t.classes,t.alt);case"cardtext":var n=t.name.exists((function(t){return V(e.cardText.highlightOn,t)})),r=n?w.from(e.cardText.matchText).getOr(""):"";return aO(SO(t.text,r),t.classes)}}))},K_=function(t,e,n,r){var o=function(t){return{isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){XS.set(t,e),q(Md(t.element,"*"),(function(n){t.getSystem().getByDom(n).each((function(t){t.hasConfigured(XS)&&XS.set(t,e)}))}))}}},i={dom:mO(!1,t.label),optComponents:[w.some({dom:{tag:"div",classes:[CC,kC]},components:X_(t.items,r)})]};return tO({data:eO(h({text:w.none()},t)),disabled:t.disabled,getApi:o,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:w.from(r.itemBehaviours).getOr([])},i,e,n.providers)},Z_=kO,J_=G_,Q_=q_,tA=W_,eA=Y_,nA=U_,rA=K_;(function(t){t[t["ContentFocus"]=0]="ContentFocus",t[t["UiFocus"]=1]="UiFocus"})(L_||(L_={}));var oA=function(t,e,n,r,o){var i=n.shared.providers,a=function(t){return o?h(h({},t),{shortcut:w.none(),icon:t.text.isSome()?w.none():t.icon}):t};switch(t.type){case"menuitem":return sS(t).fold(UC,(function(t){return w.some(Q_(a(t),e,i,r))}));case"nestedmenuitem":return lS(t).fold(UC,(function(t){return w.some(tA(a(t),e,i,r,o))}));case"togglemenuitem":return dS(t).fold(UC,(function(t){return w.some(eA(a(t),e,i,r))}));case"separator":return jw(t).fold(UC,(function(t){return w.some(J_(t))}));case"fancymenuitem":return aS(t).fold(UC,(function(t){return nA(a(t),n)}));default:return console.error("Unknown item in general menu",t),w.none()}},iA=function(t,e,n,r,o,i,a){var u=1===r,s=!u||zC(t);return cg(W(t,(function(t){switch(t.type){case"separator":return Fw(t).fold(UC,(function(t){return w.some(J_(t))}));case"cardmenuitem":return eS(t).fold(UC,(function(t){return w.some(rA(h(h({},t),{onAction:function(e){t.onAction(e),n(t.value,t.meta)}}),o,i,{itemBehaviours:xO(t.meta,i),cardText:{matchText:e,highlightOn:a}}))}));case"autocompleteitem":default:return Vw(t).fold(UC,(function(t){return w.some(Z_(t,e,u,"normal",n,o,i,s))}))}})))},aA=function(t,e,n,r,o){var i=zC(e),a=cg(W(e,(function(t){var e=function(t){return o?!t.hasOwnProperty("text"):i},a=function(t){return oA(t,n,r,e(t),o)};return"nestedmenuitem"===t.type&&t.getSubmenuItems().length<=0?a(h(h({},t),{disabled:!0})):a(t)}))),u=o?WC:qC;return u(t,i,a,1,"normal")},uA=function(t){return Nx.singleData(t.value,t)},sA=function(t,e,n,r){var o=n===L_.ContentFocus?sv():uv(),i=D_(e,r),a=LC(r);return{dom:t.dom,components:t.components,items:t.items,value:t.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:i,fakeFocus:n===L_.ContentFocus,focusManager:o,menuBehaviours:gS.unnamedEvents("auto"!==e?[]:[Di((function(t,e){hS(t,4,a.item).each((function(e){var n=e.numColumns,r=e.numRows;fy.setGridSize(t,r,n)}))}))])}},cA=function(t,e){var n=Xn(w.none()),r=Xn(!1),o=ys(jx.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:Fl([Sy("dismissAutocompleter",[xi(ni(),(function(){return s()}))])]),lazySink:e.getSink})),i=function(){return jx.isOpen(o)},a=function(){return n.get().isSome()},u=function(){a()&&jx.hide(o)},s=function(){if(a()){var e=n.get().map((function(t){return t.element}));mw(e.getOr(er.fromDom(t.selection.getNode()))).each(ua),u(),n.set(w.none()),r.set(!1)}},c=Kt((function(){return aC(t)})),l=function(n,o){var i=dt(o,(function(t){return w.from(t.columns)})).getOr(1);return nt(o,(function(o){var a=o.items;return iA(a,o.matchText,(function(e,i){var a=t.selection.getRng();Cw(t.dom,a,n).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(t){var n=t.range,a={hide:function(){s()},reload:function(t){u(),p(t)}};r.set(!0),o.onAction(a,n,e,i),r.set(!1)}))}),i,sC.BUBBLE_TO_SANDBOX,e,o.highlightOn)}))},f=function(e){if(!a()){var o=pw(t,e.range);n.set(w.some({triggerChar:e.triggerChar,element:o,matchLength:e.text.length})),r.set(!1)}},d=function(e,n,r,i){e.matchLength=n.text.length;var a=dt(r,(function(t){return w.from(t.columns)})).getOr(1);jx.showAt(o,{anchor:"node",root:er.fromDom(t.getBody()),node:w.from(e.element)},Cx.sketch(sA(qC("autocompleter-value",!0,i,a,"normal"),a,L_.ContentFocus,"normal"))),jx.getContent(o).each($g.highlightFirst)},h=function(e){return n.get().map((function(n){return Cw(t.dom,t.selection.getRng(),n.triggerChar).bind((function(n){return Pw(t,c,n,e)}))})).getOrThunk((function(){return Nw(t,c)}))},p=function(t){h(t).fold(s,(function(t){f(t.context),t.lookupData.then((function(e){n.get().map((function(n){var r=t.context;if(n.triggerChar===r.triggerChar){var o=l(r.triggerChar,e);o.length>0?d(n,r,e,o):r.text.length-n.matchLength>=10?s():u()}}))}))}))},m=cw((function(t){27!==t.which&&p()}),50),g={onKeypress:m,cancelIfNecessary:s,isMenuOpen:i,isActive:a,isProcessingAction:r.get,getView:function(){return jx.getContent(o)}};!1===t.hasPlugin("rtc")&&kw.setup(g,t)},lA={register:cA},fA=f,dA=function(t,e,n){return Vs(t,e,fA,n)},hA=function(t,e,n){return Hs(t,e,fA,n)},pA=Rs,mA=function(t,e,n){return mc(t,e,n).isSome()};function gA(t,e){var n=null,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n=setTimeout((function(){t.apply(null,r),n=null}),e)},o=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:o,schedule:r}}var vA=5,bA=400,yA=function(t){var e=t.raw;return void 0===e.touches||1!==e.touches.length?w.none():w.some(e.touches[0])},xA=function(t,e){var n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y);return n>vA||r>vA},wA=function(t){var e=Xn(w.none()),n=Xn(!1),r=gA((function(e){t.triggerEvent(qo(),e),n.set(!0)}),bA),o=function(t){return yA(t).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:t.target};r.schedule(t),n.set(!1),e.set(w.some(i))})),w.none()},i=function(t){return r.cancel(),yA(t).each((function(t){e.get().each((function(n){xA(t,n)&&e.set(w.none())}))})),w.none()},a=function(o){r.cancel();var i=function(t){return oo(t.target,o.target)};return e.get().filter(i).map((function(e){return n.get()?(o.prevent(),!1):t.triggerEvent(Wo(),o)}))},u=le([{key:yo(),value:o},{key:xo(),value:i},{key:wo(),value:a}]),s=function(t,e){return $t(u,e).bind((function(e){return e(t)}))};return{fireIfReady:s}},CA=function(t){var e=t.raw;return e.which===Fg[0]&&!V(["input","textarea"],Ni(t.target))&&!mA(t.target,'[contenteditable="true"]')},SA=function(){return Gr().browser.isFirefox()},kA=je([On("triggerEvent"),Rn("stopBackspace",!0)]),OA=function(t,e){return SA()?hA(t,"focus",e):dA(t,"focusin",e)},_A=function(t,e){return SA()?hA(t,"blur",e):dA(t,"focusout",e)},AA=function(t,e){var n=on("Getting GUI events settings",kA,e),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],o=wA(n),i=W(r.concat(["selectstart","input","contextmenu","change","transitionend","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(e){return dA(t,e,(function(t){o.fireIfReady(t,e).each((function(e){e&&t.kill()}));var r=n.triggerEvent(e,t);r&&t.kill()}))})),a=Xn(w.none()),u=dA(t,"paste",(function(t){o.fireIfReady(t,"paste").each((function(e){e&&t.kill()}));var e=n.triggerEvent("paste",t);e&&t.kill(),a.set(w.some(setTimeout((function(){n.triggerEvent(Vo(),t)}),0)))})),s=dA(t,"keydown",(function(t){var e=n.triggerEvent("keydown",t);e?t.kill():!0===n.stopBackspace&&CA(t)&&t.prevent()})),c=OA(t,(function(t){var e=n.triggerEvent("focusin",t);e&&t.kill()})),l=Xn(w.none()),f=_A(t,(function(t){var e=n.triggerEvent("focusout",t);e&&t.kill(),l.set(w.some(setTimeout((function(){n.triggerEvent(Fo(),t)}),0)))})),d=function(){q(i,(function(t){t.unbind()})),s.unbind(),c.unbind(),f.unbind(),u.unbind(),a.get().each(clearTimeout),l.get().each(clearTimeout)};return{unbind:d}},EA=function(t,e){var n=$t(t,"target").getOr(e);return Xn(n)},TA=function(t,e){var n=Xn(!1),r=Xn(!1),o=function(){n.set(!0)},i=function(){r.set(!0)};return{stop:o,cut:i,isStopped:n.get,isCut:r.get,event:t,setSource:e.set,getSource:e.get}},DA=function(t){var n=Xn(!1),r=function(){n.set(!0)};return{stop:r,cut:e,isStopped:n.get,isCut:l,event:t,setSource:c("Cannot set source of a broadcasted event"),getSource:c("Cannot get source of a broadcasted event")}},IA=zt.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),BA=function(t,e,n,r,o,i){var a=t(e,r),u=TA(n,o);return a.fold((function(){return i.logEventNoHandlers(e,r),IA.complete()}),(function(t){var n=t.descHandler,r=au(n);return r(u),u.isStopped()?(i.logEventStopped(e,t.element,n.purpose),IA.stopped()):u.isCut()?(i.logEventCut(e,t.element,n.purpose),IA.complete()):Wi(t.element).fold((function(){return i.logNoParent(e,t.element,n.purpose),IA.complete()}),(function(r){return i.logEventResponse(e,t.element,n.purpose),IA.resume(r)}))}))},LA=function(t,e,n,r,o,i){return BA(t,e,n,r,o,i).fold((function(){return!0}),(function(r){return LA(t,e,n,r,o,i)}),(function(){return!1}))},NA=function(t,e,n,r,o){var i=EA(n,r);return BA(t,e,n,r,i,o)},PA=function(t,e,n){var r=DA(e);return q(t,(function(t){var e=t.descHandler,n=au(e);n(r)})),r.isStopped()},MA=function(t,e,n,r){return jA(t,e,n,n.target,r)},jA=function(t,e,n,r,o){var i=EA(n,r);return LA(t,e,n,r,i,o)},RA=function(t,e){return{element:t,descHandler:e}},$A=function(t,e){return{id:t,descHandler:e}};function FA(){var t={},e=function(e,n,r){Dt(r,(function(r,o){var i=void 0!==t[o]?t[o]:{};i[n]=iu(r,e),t[o]=i}))},n=function(t,e){return Na(e).fold((function(){return w.none()}),(function(n){return t.bind((function(t){return $t(t,n)})).map((function(t){return RA(e,t)}))}))},r=function(e){return $t(t,e).map((function(t){return Mt(t,(function(t,e){return $A(e,t)}))})).getOr([])},o=function(e,r,o){var i=$t(t,r);return lo(o,(function(t){return n(i,t)}),e)},i=function(e){Dt(t,(function(t,n){t.hasOwnProperty(e)&&delete t[e]}))};return{registerId:e,unregisterId:i,filterByType:r,find:o}}function VA(){var t=FA(),e={},n=function(t){var e=t.element;return Na(e).fold((function(){return Ba("uid-",t.element)}),(function(t){return t}))},r=function(t,n){var r=e[n];if(r!==t)throw new Error('The tagId "'+n+'" is already used by: '+Ca(r.element)+"\nCannot use it for: "+Ca(t.element)+"\nThe conflicting element is"+(Uu(r.element)?" ":" not ")+"already in the DOM");i(t)},o=function(o){var i=n(o);Vt(e,i)&&r(o,i);var a=[o];t.registerId(a,i,o.events),e[i]=o},i=function(n){Na(n.element).each((function(n){delete e[n],t.unregisterId(n)}))},a=function(e){return t.filterByType(e)},u=function(e,n,r){return t.find(e,n,r)},s=function(t){return $t(e,t)};return{find:u,filter:a,register:o,unregister:i,getById:s}}var HA=function(t){var e=t.dom,n=e.attributes,r=p(e,["attributes"]);return{uid:t.uid,dom:h({tag:"div",attributes:h({role:"presentation"},n)},r),components:t.components,behaviours:Kp(t.containerBehaviours),events:t.events,domModification:t.domModification,eventOrder:t.eventOrder}},zA=ug({name:"Container",factory:HA,configFields:[Rn("components",[]),Xp("containerBehaviours",[]),Rn("events",{}),Rn("domModification",{}),Rn("eventOrder",{})]}),UA=function(t){var n=function(e){return Wi(t.element).fold((function(){return!0}),(function(t){return oo(e,t)}))},r=VA(),o=function(t,e){return r.find(n,t,e)},a=AA(t.element,{triggerEvent:function(t,e){return Ec(t,e.target,(function(n){return MA(o,t,e,n)}))}}),u={debugInfo:i("real"),triggerEvent:function(t,e,n){Ec(t,e,(function(r){return jA(o,t,n,e,r)}))},triggerFocus:function(t,n){Na(t).fold((function(){Kl(t)}),(function(r){Ec($o(),t,(function(r){return NA(o,$o(),{originator:n,kill:e,prevent:e,target:t},t,r),!1}))}))},triggerEscape:function(t,e){u.triggerEvent("keydown",t.element,e.event)},getByUid:function(t){return b(t)},getByDom:function(t){return y(t)},build:ys,addToGui:function(t){l(t)},removeFromGui:function(t){d(t)},addToWorld:function(t){s(t)},removeFromWorld:function(t){c(t)},broadcast:function(t){m(t)},broadcastOn:function(t,e){g(t,e)},broadcastEvent:function(t,e){v(t,e)},isConnected:f},s=function(t){t.connect(u),Ri(t.element)||(r.register(t),q(t.components(),s),u.triggerEvent(Xo(),t.element,{target:t.element}))},c=function(t){Ri(t.element)||(q(t.components(),c),r.unregister(t)),t.disconnect()},l=function(e){Rh(t,e)},d=function(t){Vh(t)},h=function(){a.unbind(),aa(t.element)},p=function(t){var e=r.filter(Ho());q(e,(function(e){var n=e.descHandler,r=au(n);r(t)}))},m=function(t){p({universal:!0,data:t})},g=function(t,e){p({universal:!1,channels:t,data:e})},v=function(t,e){var n=r.filter(t);return PA(n,e)},b=function(t){return r.getById(t).fold((function(){return gt.error(new Error('Could not find component with uid: "'+t+'" in system.'))}),gt.value)},y=function(t){var e=Na(t).getOr("not found");return b(e)};return s(t),{root:t,element:t.element,destroy:h,add:l,remove:d,getByUid:b,getByDom:y,addToWorld:s,removeFromWorld:c,broadcast:m,broadcastOn:g,broadcastEvent:v}},WA=function(t,e){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:W(t.items,e.interpreter)}},qA=i([Rn("prefix","form-field"),Xp("fieldBehaviours",[yg,Yp])]),GA=i([Tm({schema:[yn("dom")],name:"label"}),Tm({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[yn("text")],name:"aria-descriptor"}),Am({factory:{sketch:function(t){var e=se(t,["factory"]);return t.factory.sketch(e)}},schema:[yn("factory")],name:"field"})]),YA=function(t,e,n,r){var o=Zp(t.fieldBehaviours,[yg.config({find:function(e){return Hm(e,t,"field")}}),Yp.config({store:{mode:"manual",getValue:function(t){return yg.getCurrent(t).bind(Yp.getValue)},setValue:function(t,e){yg.getCurrent(t).each((function(t){Yp.setValue(t,e)}))}}})]),i=gi([Di((function(e,n){var r=Um(e,t,["label","field","aria-descriptor"]);r.field().each((function(e){var n=Aa(t.prefix);r.label().each((function(t){ha(t.element,"for",n),ha(e.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=Aa(t.prefix);ha(n.element,"id",r),ha(e.element,"aria-describedby",r)}))}))}))]),a={getField:function(e){return Hm(e,t,"field")},getLabel:function(e){return Hm(e,t,"label")}};return{uid:t.uid,dom:t.dom,components:e,behaviours:o,events:i,apis:a}},XA=sg({name:"FormField",configFields:qA(),partFields:GA(),factory:YA,apis:{getField:function(t,e){return t.getField(e)},getLabel:function(t,e){return t.getLabel(e)}}}),KA=function(t,e){return Qa({attributes:le([{key:e.tabAttr,value:"true"}])})},ZA=Object.freeze({__proto__:null,exhibit:KA}),JA=[Rn("tabAttr","data-alloy-tabstop")],QA=Hl({fields:JA,name:"tabstopping",active:ZA}),tE=tinymce.util.Tools.resolve("tinymce.html.Entities"),eE=function(t,e,n,r){var o=rE(t,e,n,r);return XA.sketch(o)},nE=function(t,e){return eE(t,e,[],[])},rE=function(t,e,n,r){return{dom:iE(n),components:t.toArray().concat([e]),fieldBehaviours:Fl(r)}},oE=function(){return iE([])},iE=function(t){return{tag:"div",classes:["tox-form__group"].concat(t)}},aE=function(t,e){return XA.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}})},uE=Aa("form-component-change"),sE=Aa("form-close"),cE=Aa("form-cancel"),lE=Aa("form-action"),fE=Aa("form-submit"),dE=Aa("form-block"),hE=Aa("form-unblock"),pE=Aa("form-tabchange"),mE=Aa("form-resize"),gE=function(t,e){var n,r=t.label.map((function(t){return aE(t,e)})),o=function(t){return function(e,n){mc(n.event.target,"[data-collection-item-value]").each((function(r){t(e,n,r,ma(r,"data-collection-item-value"))}))}},i=function(n,r){var o=W(r,(function(n){var r=DS.translate(n.text),o=1===t.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",i='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},u=r.replace(/\_| \- |\-/g,(function(t){return a[t]})),s=e.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+s+'" tabindex="-1" data-collection-item-value="'+tE.encodeAllRaw(n.value)+'" title="'+u+'" aria-label="'+u+'">'+i+o+"</div>"})),i="auto"!==t.columns&&t.columns>1?U(o,t.columns):[o],a=W(i,(function(t){return'<div class="tox-collection__group">'+t.join("")+"</div>"}));la(n.element,a.join(""))},u=o((function(n,r,o,i){r.stop(),e.isDisabled()||fi(n,lE,{name:t.name,value:i})})),s=[xi(Ao(),o((function(t,e,n){Kl(n)}))),xi(No(),u),xi(Wo(),u),xi(Eo(),o((function(t,e,n){pc(t.element,"."+xC).each((function(t){Tu(t,xC)})),Au(n,xC)}))),xi(To(),o((function(t){pc(t.element,"."+xC).each((function(t){Tu(t,xC)}))}))),Li(o((function(e,n,r,o){fi(e,lE,{name:t.name,value:o})})))],c=function(t,e){return W(Md(t.element,".tox-collection__item"),e)},l=XA.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==t.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:a},behaviours:Fl([XS.config({disabled:e.isDisabled,onDisabled:function(t){c(t,(function(t){Au(t,"tox-collection__item--state-disabled"),ha(t,"aria-disabled",!0)}))},onEnabled:function(t){c(t,(function(t){Tu(t,"tox-collection__item--state-disabled"),ba(t,"aria-disabled")}))}}),Hk(),wy.config({}),Yp.config({store:{mode:"memory",initialValue:[]},onSetValue:function(e,n){i(e,n),"auto"===t.columns&&hS(e,5,"tox-collection__item").each((function(t){var n=t.numRows,r=t.numColumns;fy.setGridSize(e,n,r)})),li(e,mE)}}),QA.config({}),fy.config(I_(t.columns,"normal")),Sy("collection-events",s)]),eventOrder:(n={},n[zo()]=["disabling","alloy.base.behaviour","collection-events"],n)}),f=["tox-form__group--collection"];return eE(r,l,f,[])},vE=i([Dn("data"),Rn("inputAttributes",{}),Rn("inputStyles",{}),Rn("tag","input"),Rn("inputClasses",[]),Rc("onSetValue"),Rn("styles",{}),Rn("eventOrder",{}),Xp("inputBehaviours",[Yp,By]),Rn("selectOnFocus",!0)]),bE=function(t){return Fl([By.config({onFocus:t.selectOnFocus?function(t){var e=t.element,n=is(e);e.dom.setSelectionRange(0,n.length)}:e})])},yE=function(t){return h(h({},bE(t)),Zp(t.inputBehaviours,[Yp.config({store:h(h({mode:"manual"},t.data.map((function(t){return{initialValue:t}})).getOr({})),{getValue:function(t){return is(t.element)},setValue:function(t,e){var n=is(t.element);n!==e&&as(t.element,e)}}),onSetValue:t.onSetValue})]))},xE=function(t){return{tag:t.tag,attributes:h({type:"text"},t.inputAttributes),styles:t.inputStyles,classes:t.inputClasses}},wE=function(t,e){return{uid:t.uid,dom:xE(t),components:[],behaviours:yE(t),eventOrder:t.eventOrder}},CE=ug({name:"Input",configFields:vE(),factory:wE}),SE={},kE={exports:SE};(function(e,n,r,o){(function(o){if("object"===typeof n&&"undefined"!==typeof r)r.exports=o();else if("function"===typeof e&&e.amd)e([],o);else{var i;i="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:this,i.EphoxContactWrapper=o()}})((function(){return function(){function t(e,n,r){function i(u,s){if(!n[u]){if(!e[u]){var c="function"==typeof o&&o;if(!s&&c)return c(u,!0);if(a)return a(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[u]={exports:{}};e[u][0].call(f.exports,(function(t){var n=e[u][1][t];return i(n||t)}),f,f.exports,t,e,n,r)}return n[u].exports}for(var a="function"==typeof o&&o,u=0;u<r.length;u++)i(r[u]);return i}return t}()({1:[function(t,e,n){var r,o,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function c(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{return o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(t){r=a}try{o="function"===typeof clearTimeout?clearTimeout:u}catch(t){o=u}})();var l,f=[],d=!1,h=-1;function p(){d&&l&&(d=!1,l.length?f=l.concat(f):h=-1,f.length&&m())}function m(){if(!d){var t=s(p);d=!0;var e=f.length;while(e){l=f,f=[];while(++h<e)l&&l[h].run();h=-1,e=f.length}l=null,d=!1,c(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new g(t,e)),1!==f.length||d||s(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(t,e,n){(function(t){(function(n){var r=setTimeout;function o(){}function i(t,e){return function(){t.apply(e,arguments)}}function a(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function u(t,e){while(3===t._state)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(o){return void c(e.promise,o)}s(e.promise,r)}else(1===t._state?s:c)(e.promise,t._value)}))):t._deferreds.push(e)}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,void l(t);if("function"===typeof n)return void d(i(n,e),t)}t._state=1,t._value=e,l(t)}catch(r){c(t,r)}}function c(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&a._immediateFn((function(){t._handled||a._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)u(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t((function(t){n||(n=!0,s(e,t))}),(function(t){n||(n=!0,c(e,t))}))}catch(r){if(n)return;n=!0,c(e,r)}}a.prototype["catch"]=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var n=new this.constructor(o);return u(this,new f(t,e,n)),n},a.all=function(t){var e=Array.prototype.slice.call(t);return new a((function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(t){o(i,t)}),n)}e[i]=a,0===--r&&t(e)}catch(s){n(s)}}for(var i=0;i<e.length;i++)o(i,e[i])}))},a.resolve=function(t){return t&&"object"===typeof t&&t.constructor===a?t:new a((function(e){e(t)}))},a.reject=function(t){return new a((function(e,n){n(t)}))},a.race=function(t){return new a((function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)}))},a._immediateFn="function"===typeof t?function(e){t(e)}:function(t){r(t,0)},a._unhandledRejectionFn=function(t){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},a._setImmediateFn=function(t){a._immediateFn=t},a._setUnhandledRejectionFn=function(t){a._unhandledRejectionFn=t},"undefined"!==typeof e&&e.exports?e.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,t("timers").setImmediate)},{timers:3}],3:[function(t,e,n){(function(e,r){var o=t("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,u={},s=0;function c(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new c(i.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(i.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"===typeof e?e:function(t){var e=s++,r=!(arguments.length<2)&&a.call(arguments,1);return u[e]=!0,o((function(){u[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"===typeof r?r:function(t){delete u[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,e,n){var r=t("promise-polyfill"),o=function(){return"undefined"!==typeof window?window:Function("return this;")()}();e.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,SE,kE,void 0);var OE,_E=kE.exports.boltExport,AE=function(t){var e=w.none(),n=[],r=function(t){return AE((function(e){o((function(n){e(t(n))}))}))},o=function(t){a()?s(t):n.push(t)},i=function(t){a()||(e=w.some(t),u(n),n=[])},a=function(){return e.isSome()},u=function(t){q(t,s)},s=function(t){e.each((function(e){setTimeout((function(){t(e)}),0)}))};return t(i),{get:o,map:r,isReady:a}},EE=function(t){return AE((function(e){e(t)}))},TE={nu:AE,pure:EE},DE=function(t){setTimeout((function(){throw t}),0)},IE=function(t){var e=function(e){t().then(e,DE)},n=function(e){return IE((function(){return t().then(e)}))},r=function(e){return IE((function(){return t().then((function(t){return e(t).toPromise()}))}))},o=function(e){return IE((function(){return t().then((function(){return e.toPromise()}))}))},i=function(){return TE.nu(e)},a=function(){var e=null;return IE((function(){return null===e&&(e=t()),e}))},u=t;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:e}},BE=function(t){return IE((function(){return new _E(t)}))},LE=function(t){return IE((function(){return _E.resolve(t)}))},NE={nu:BE,pure:LE},PE=["input","textarea"],ME=function(t){var e=Ni(t);return V(PE,e)},jE=function(t,e){var n=e.getRoot(t).getOr(t.element);Tu(n,e.invalidClass),e.notify.each((function(e){ME(t.element)&&ha(t.element,"aria-invalid",!1),e.getContainer(t).each((function(t){la(t,e.validHtml)})),e.onValid(t)}))},RE=function(t,e,n,r){var o=e.getRoot(t).getOr(t.element);Au(o,e.invalidClass),e.notify.each((function(e){ME(t.element)&&ha(t.element,"aria-invalid",!0),e.getContainer(t).each((function(t){la(t,r)})),e.onInvalid(t,r)}))},$E=function(t,e,n){return e.validator.fold((function(){return NE.pure(gt.value(!0))}),(function(e){return e.validate(t)}))},FE=function(t,e,n){return e.notify.each((function(e){e.onValidate(t)})),$E(t,e).map((function(r){return t.getSystem().isConnected()?r.fold((function(r){return RE(t,e,n,r),gt.error(r)}),(function(n){return jE(t,e),gt.value(n)})):gt.error("No longer in system")}))},VE=function(t,e){var n=e.getRoot(t).getOr(t.element);return Du(n,e.invalidClass)},HE=Object.freeze({__proto__:null,markValid:jE,markInvalid:RE,query:$E,run:FE,isInvalid:VE}),zE=function(t,n){return t.validator.map((function(r){return gi([xi(r.onEvent,(function(e){FE(e,t,n).get(a)}))].concat(r.validateOnLoad?[Di((function(r){FE(r,t,n).get(e)}))]:[]))})).getOr({})},UE=Object.freeze({__proto__:null,events:zE}),WE=[yn("invalidClass"),Rn("getRoot",w.none),Mn("notify",[Rn("aria","alert"),Rn("getContainer",w.none),Rn("validHtml",""),Rc("onValid"),Rc("onInvalid"),Rc("onValidate")]),Mn("validator",[yn("validate"),Rn("onEvent","input"),Rn("validateOnLoad",!0)])],qE=Hl({fields:WE,name:"invalidating",active:UE,apis:HE,extra:{validation:function(t){return function(e){var n=Yp.getValue(e);return NE.pure(t(n))}}}}),GE=function(t,e,n,r){return n.getOrCreate(t,e,r)},YE=Object.freeze({__proto__:null,getCoupled:GE}),XE=[xn("others",tn(gt.value,ln()))],KE=function(){var t={},e=function(e,n,r){var o=Et(n.others);if(o)return $t(t,r).getOrThunk((function(){var o=$t(n.others,r).getOrDie("No information found for coupled component: "+r),i=o(e),a=e.getSystem().build(i);return t[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(o,null,2))},n=i({});return Ya({readState:n,getOrCreate:e})},ZE=Object.freeze({__proto__:null,init:KE}),JE=Hl({fields:XE,name:"coupling",apis:YE,state:ZE}),QE=i("sink"),tT=i(Tm({name:QE(),overrides:i({dom:{tag:"div"},behaviours:Fl([Bh.config({useFixed:f})]),events:gi([Ai(Do()),Ai(So()),Ai(No())])})}));(function(t){t[t["HighlightFirst"]=0]="HighlightFirst",t[t["HighlightNone"]=1]="HighlightNone"})(OE||(OE={}));var eT=function(t,e){var n=t.getHotspot(e).getOr(e),r="hotspot",o=t.getAnchorOverrides();return t.layouts.fold((function(){return{anchor:r,hotspot:n,overrides:o}}),(function(t){return{anchor:r,hotspot:n,overrides:o,layouts:t}}))},nT=function(t,e,n){var r=t.fetch;return r(n).map(e)},rT=function(t,e,n,r,o,i,a){var u=nT(t,e,r),s=sT(r,t);return u.map((function(t){return t.bind((function(t){return w.from(Nx.sketch(h(h({},i.menu()),{uid:Pa(""),data:t,highlightImmediately:a===OE.HighlightFirst,onOpenMenu:function(t,e){var r=s().getOrDie();Bh.position(r,n,e),dp.decloak(o)},onOpenSubmenu:function(t,e,n){var r=s().getOrDie();Bh.position(r,{anchor:"submenu",item:e},n),dp.decloak(o)},onRepositionMenu:function(t,e,r){var o=s().getOrDie();Bh.position(o,n,e),q(r,(function(t){Bh.position(o,{anchor:"submenu",item:t.triggeringItem},t.triggeredMenu)}))},onEscape:function(){return By.focus(r),dp.close(o),w.some(!0)}})))}))}))},oT=function(t,e,n,r,o,i,a){var u=eT(t,n),s=rT(t,e,u,n,r,o,a);return s.map((function(t){return t.fold((function(){dp.isOpen(r)&&dp.close(r)}),(function(t){dp.cloak(r),dp.open(r,t),i(r)})),r}))},iT=function(t,e,n,r,o,i,a){return dp.close(r),NE.pure(r)},aT=function(t,e,n,r,o,i){var a=JE.getCoupled(n,"sandbox"),u=dp.isOpen(a),s=u?iT:oT;return s(t,e,n,a,r,o,i)},uT=function(t,e,n){var r=yg.getCurrent(e).getOr(e),o=Ns(t.element);n?Xu(r.element,"min-width",o+"px"):Ls(r.element,o)},sT=function(t,e){return t.getSystem().getByUid(e.uid+"-"+QE()).map((function(t){return function(){return gt.value(t)}})).getOrThunk((function(){return e.lazySink.fold((function(){return function(){return gt.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(e){return function(){return e(t)}}))}))},cT=function(t){dp.getState(t).each((function(t){Nx.repositionMenus(t)}))},lT=function(t,e,n){var r=vc(),o=function(o,i){var a=eT(t,e);r.link(e.element),t.matchWidth&&uT(a.hotspot,i,t.useMinWidth),t.onOpen(a,o,i),void 0!==n&&void 0!==n.onOpen&&n.onOpen(o,i)},i=function(t,o){r.unlink(e.element),void 0!==n&&void 0!==n.onClose&&n.onClose(t,o)},a=sT(e,t);return{dom:{tag:"div",classes:t.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:Jp.augment(t.sandboxBehaviours,[Yp.config({store:{mode:"memory",initialValue:e}}),dp.config({onOpen:o,onClose:i,isPartOf:function(t,n,r){return yc(n,r)||yc(e,r)},getAttachPoint:function(){return a().getOrDie()}}),yg.config({find:function(t){return dp.getState(t).bind((function(t){return yg.getCurrent(t)}))}}),ql.config({channels:h(h({},vp({isExtraPart:l})),yp({doReposition:cT}))})])}},fT=function(t){var e=JE.getCoupled(t,"sandbox");cT(e)},dT=function(){return[Rn("sandboxClasses",[]),Jp.field("sandboxBehaviours",[yg,ql,dp,Yp])]},hT=i([yn("dom"),yn("fetch"),Rc("onOpen"),$c("onExecute"),Rn("getHotspot",w.some),Rn("getAnchorOverrides",i({})),Hf(),Xp("dropdownBehaviours",[Zy,JE,fy,By]),yn("toggleClass"),Rn("eventOrder",{}),Dn("lazySink"),Rn("matchWidth",!1),Rn("useMinWidth",!1),Dn("role")].concat(dT())),pT=i([Em({schema:[Pc()],name:"menu",defaults:function(t){return{onExecute:t.onExecute}}}),tT()]),mT=function(t,n,r,o){var i,a=function(e){return $t(t.dom,"attributes").bind((function(t){return $t(t,e)}))},u=function(t){dp.getState(t).each((function(t){Nx.highlightPrimary(t)}))},s=function(n){var r=u;aT(t,(function(t){return t}),n,o,r,OE.HighlightFirst).get(e)},c={expand:function(n){Zy.isOn(n)||aT(t,(function(t){return t}),n,o,e,OE.HighlightNone).get(e)},open:function(n){Zy.isOn(n)||aT(t,(function(t){return t}),n,o,e,OE.HighlightFirst).get(e)},isOpen:Zy.isOn,close:function(n){Zy.isOn(n)&&aT(t,(function(t){return t}),n,o,e,OE.HighlightFirst).get(e)},repositionMenus:function(t){Zy.isOn(t)&&fT(t)}},l=function(t,e){return di(t),w.some(!0)};return{uid:t.uid,dom:t.dom,components:n,behaviours:Zp(t.dropdownBehaviours,[Zy.config({toggleClass:t.toggleClass,aria:{mode:"expanded"}}),JE.config({others:{sandbox:function(e){return lT(t,e,{onOpen:function(){Zy.on(e)},onClose:function(){Zy.off(e)}})}}}),fy.config({mode:"special",onSpace:l,onEnter:l,onDown:function(t,e){if(gT.isOpen(t)){var n=JE.getCoupled(t,"sandbox");u(n)}else gT.open(t);return w.some(!0)},onEscape:function(t,e){return gT.isOpen(t)?(gT.close(t),w.some(!0)):w.none()}}),By.config({})]),events:Qy(w.some(s)),eventOrder:h(h({},t.eventOrder),(i={},i[zo()]=["disabling","toggling","alloy.base.behaviour"],i)),apis:c,domModification:{attributes:h(h({"aria-haspopup":"true"},t.role.fold((function(){return{}}),(function(t){return{role:t}}))),"button"===t.dom.tag?{type:a("type").getOr("button")}:{})}}},gT=sg({name:"Dropdown",configFields:hT(),partFields:pT(),factory:mT,apis:{open:function(t,e){return t.open(e)},expand:function(t,e){return t.expand(e)},close:function(t,e){return t.close(e)},isOpen:function(t,e){return t.isOpen(e)},repositionMenus:function(t,e){return t.repositionMenus(e)}}}),vT=function(){return Qa({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},bT=function(){return gi([vi(Mo(),f)])},yT=Object.freeze({__proto__:null,events:bT,exhibit:vT}),xT=Hl({fields:[],name:"unselecting",active:yT}),wT=function(t,e){return gT.sketch({dom:t.dom,components:t.components,toggleClass:"mce-active",dropdownBehaviours:Fl([Gk.button(e.providers.isDisabled),Hk(),xT.config({}),QA.config({})]),layouts:t.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:e.getSink,fetch:function(n){return NE.nu((function(e){return t.fetch(e)})).map((function(r){return w.from(uA(Yt(E_(Aa("menu-value"),r,(function(e){t.onItemAction(n,e)}),t.columns,t.presets,sC.CLOSE_ON_EXECUTE,(function(){return!1}),e.providers),{movement:D_(t.columns,t.presets)})))}))},parts:{menu:MC(!1,1,t.presets)}})},CT=Aa("color-input-change"),ST=Aa("color-swatch-change"),kT=Aa("color-picker-cancel"),OT=function(t,e,n){var r=XA.parts.field({factory:CE,inputClasses:["tox-textfield"],onSetValue:function(t){return qE.run(t).get((function(){}))},inputBehaviours:Fl([XS.config({disabled:e.providers.isDisabled}),Hk(),QA.config({}),qE.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(t){return Wi(t.element)},notify:{onValid:function(t){var e=Yp.getValue(t);fi(t,CT,{color:e})}},validator:{validateOnLoad:!1,validate:function(t){var e=Yp.getValue(t);if(0===e.length)return NE.pure(gt.value(!0));var n=er.fromTag("span");Xu(n,"background-color",e);var r=ts(n,"background-color").fold((function(){return gt.error("blah")}),(function(t){return gt.value(e)}));return NE.pure(r)}}})]),selectOnFocus:!1}),o=t.label.map((function(t){return aE(t,e.providers)})),i=function(t,e){fi(t,ST,{value:e})},a=function(t,e){u.getOpt(t).each((function(t){"custom"===e?n.colorPicker((function(e){e.fold((function(){return li(t,kT)}),(function(e){i(t,e),d_(e)}))}),"#ffffff"):i(t,"remove"===e?"":e)}))},u=Jx(wT({dom:{tag:"span",attributes:{"aria-label":e.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[gl,ml,xl]},onLtr:function(){return[ml,gl,xl]}},components:[],fetch:C_(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},e));return XA.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:o.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,u.asSpec()]}]),fieldBehaviours:Fl([Sy("form-field-events",[xi(CT,(function(e,n){u.getOpt(e).each((function(t){Xu(t.element,"background-color",n.event.color)})),fi(e,uE,{name:t.name})})),xi(ST,(function(t,e){XA.getField(t).each((function(n){Yp.setValue(n,e.event.value),yg.getCurrent(t).each(By.focus)}))})),xi(kT,(function(t,e){XA.getField(t).each((function(e){yg.getCurrent(t).each(By.focus)}))}))])])})},_T=function(t,e,n){return{hue:t,saturation:e,value:n}},AT=function(t){var e=0,n=0,r=0,o=t.red/255,i=t.green/255,a=t.blue/255,u=Math.min(o,Math.min(i,a)),s=Math.max(o,Math.max(i,a));if(u===s)return r=u,_T(0,0,100*r);var c=o===u?i-a:a===u?o-i:a-o;return e=o===u?3:a===u?1:5,e=60*(e-c/(s-u)),n=(s-u)/s,r=s,_T(Math.round(e),Math.round(100*n),Math.round(100*r))},ET=function(t){var e=(100-t)/100*360,n=_T(e,100,100),r=HO(n);return NO(r)},TT=Aa("rgb-hex-update"),DT=Aa("slider-update"),IT=Aa("palette-update"),BT=Tm({schema:[yn("dom")],name:"label"}),LT=function(t){return Tm({name:t+"-edge",overrides:function(e){var n=e.model.manager.edgeActions[t];return n.fold((function(){return{}}),(function(t){return{events:gi([wi(yo(),(function(e,n,r){return t(e,r)}),[e]),wi(So(),(function(e,n,r){return t(e,r)}),[e]),wi(ko(),(function(e,n,r){r.mouseIsDown.get()&&t(e,r)}),[e])])}}))}})},NT=LT("top-left"),PT=LT("top"),MT=LT("top-right"),jT=LT("right"),RT=LT("bottom-right"),$T=LT("bottom"),FT=LT("bottom-left"),VT=LT("left"),HT=Am({name:"thumb",defaults:i({dom:{styles:{position:"absolute"}}}),overrides:function(t){return{events:gi([Oi(yo(),t,"spectrum"),Oi(xo(),t,"spectrum"),Oi(wo(),t,"spectrum"),Oi(So(),t,"spectrum"),Oi(ko(),t,"spectrum"),Oi(_o(),t,"spectrum")])}}}),zT=Am({schema:[Yn("mouseIsDown",(function(){return Xn(!1)}))],name:"spectrum",overrides:function(t){var e=t.model,n=e.manager,r=function(e,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(e,t,r)}))};return{behaviours:Fl([fy.config({mode:"special",onLeft:function(e){return n.onLeft(e,t)},onRight:function(e){return n.onRight(e,t)},onUp:function(e){return n.onUp(e,t)},onDown:function(e){return n.onDown(e,t)}}),By.config({})]),events:gi([xi(yo(),r),xi(xo(),r),xi(So(),r),xi(ko(),(function(e,n){t.mouseIsDown.get()&&r(e,n)}))])}}}),UT=[BT,VT,jT,PT,$T,NT,MT,FT,RT,HT,zT],WT="slider.change.value",qT=i(WT),GT=function(t){return-1!==t.type.indexOf("touch")},YT=function(t){var e=t.event.raw;if(GT(e)){var n=e;return void 0!==n.touches&&1===n.touches.length?w.some(n.touches[0]).map((function(t){return As(t.clientX,t.clientY)})):w.none()}var r=e;return void 0!==r.clientX?w.some(r).map((function(t){return As(t.clientX,t.clientY)})):w.none()},XT="top",KT="right",ZT="bottom",JT="left",QT=function(t){return t.model.minX},tD=function(t){return t.model.minY},eD=function(t){return t.model.minX-1},nD=function(t){return t.model.minY-1},rD=function(t){return t.model.maxX},oD=function(t){return t.model.maxY},iD=function(t){return t.model.maxX+1},aD=function(t){return t.model.maxY+1},uD=function(t,e,n){return e(t)-n(t)},sD=function(t){return uD(t,rD,QT)},cD=function(t){return uD(t,oD,tD)},lD=function(t){return sD(t)/2},fD=function(t){return cD(t)/2},dD=function(t){return t.stepSize},hD=function(t){return t.snapToGrid},pD=function(t){return t.snapStart},mD=function(t){return t.rounded},gD=function(t,e){return void 0!==t[e+"-edge"]},vD=function(t){return gD(t,JT)},bD=function(t){return gD(t,KT)},yD=function(t){return gD(t,XT)},xD=function(t){return gD(t,ZT)},wD=function(t){return t.model.value.get()},CD=function(t){return{x:t}},SD=function(t){return{y:t}},kD=function(t,e){return{x:t,y:e}},OD=function(t,e){fi(t,qT(),{value:e})},_D=function(t,e){OD(t,kD(eD(e),nD(e)))},AD=function(t,e){OD(t,SD(nD(e)))},ED=function(t,e){OD(t,kD(lD(e),nD(e)))},TD=function(t,e){OD(t,kD(iD(e),nD(e)))},DD=function(t,e){OD(t,CD(iD(e)))},ID=function(t,e){OD(t,kD(iD(e),fD(e)))},BD=function(t,e){OD(t,kD(iD(e),aD(e)))},LD=function(t,e){OD(t,SD(aD(e)))},ND=function(t,e){OD(t,kD(lD(e),aD(e)))},PD=function(t,e){OD(t,kD(eD(e),aD(e)))},MD=function(t,e){OD(t,CD(eD(e)))},jD=function(t,e){OD(t,kD(eD(e),fD(e)))},RD=function(t,e,n,r){return t<e?t:t>n?n:t===e?e-1:Math.max(e,t-r)},$D=function(t,e,n,r){return t>n?t:t<e?e:t===n?n+1:Math.min(n,t+r)},FD=function(t,e,n){return Math.max(e,Math.min(n,t))},VD=function(t,e,n,r,o){return o.fold((function(){var o=t-e,i=Math.round(o/r)*r;return FD(e+i,e-1,n+1)}),(function(e){var o=(t-e)%r,i=Math.round(o/r),a=Math.floor((t-e)/r),u=Math.floor((n-e)/r),s=Math.min(u,a+i),c=e+s*r;return Math.max(e,c)}))},HD=function(t,e,n){return Math.min(n,Math.max(t,e))-e},zD=function(t){var e=t.min,n=t.max,r=t.range,o=t.value,i=t.step,a=t.snap,u=t.snapStart,s=t.rounded,c=t.hasMinEdge,l=t.hasMaxEdge,f=t.minBound,d=t.maxBound,h=t.screenRange,p=c?e-1:e,m=l?n+1:n;if(o<f)return p;if(o>d)return m;var g=HD(o,f,d),v=FD(g/h*r+e,p,m);return a&&v>=e&&v<=n?VD(v,e,n,i,u):s?Math.round(v):v},UD=function(t){var e=t.min,n=t.max,r=t.range,o=t.value,i=t.hasMinEdge,a=t.hasMaxEdge,u=t.maxBound,s=t.maxOffset,c=t.centerMinEdge,l=t.centerMaxEdge;return o<e?i?0:c:o>n?a?u:l:(o-e)/r*s},WD="top",qD="right",GD="bottom",YD="left",XD="width",KD="height",ZD=function(t){return t.element.dom.getBoundingClientRect()},JD=function(t,e){return t[e]},QD=function(t){var e=ZD(t);return JD(e,YD)},tI=function(t){var e=ZD(t);return JD(e,qD)},eI=function(t){var e=ZD(t);return JD(e,WD)},nI=function(t){var e=ZD(t);return JD(e,GD)},rI=function(t){var e=ZD(t);return JD(e,XD)},oI=function(t){var e=ZD(t);return JD(e,KD)},iI=function(t,e,n){return(t+e)/2-n},aI=function(t,e){var n=ZD(t),r=ZD(e),o=JD(n,YD),i=JD(n,qD),a=JD(r,YD);return iI(o,i,a)},uI=function(t,e){var n=ZD(t),r=ZD(e),o=JD(n,WD),i=JD(n,GD),a=JD(r,WD);return iI(o,i,a)},sI=function(t,e){fi(t,qT(),{value:e})},cI=function(t){return{x:t}},lI=function(t,e,n){var r={min:QT(e),max:rD(e),range:sD(e),value:n,step:dD(e),snap:hD(e),snapStart:pD(e),rounded:mD(e),hasMinEdge:vD(e),hasMaxEdge:bD(e),minBound:QD(t),maxBound:tI(t),screenRange:rI(t)};return zD(r)},fI=function(t,e,n){var r=lI(t,e,n),o=cI(r);return sI(t,o),r},dI=function(t,e){var n=QT(e);sI(t,cI(n))},hI=function(t,e){var n=rD(e);sI(t,cI(n))},pI=function(t,e,n){var r=t>0?$D:RD,o=r(wD(n).x,QT(n),rD(n),dD(n));return sI(e,cI(o)),w.some(o)},mI=function(t){return function(e,n){return pI(t,e,n).map((function(){return!0}))}},gI=function(t){var e=YT(t);return e.map((function(t){return t.left}))},vI=function(t,e,n,r,o){var i=0,a=rI(t),u=r.bind((function(e){return w.some(aI(e,t))})).getOr(i),s=o.bind((function(e){return w.some(aI(e,t))})).getOr(a),c={min:QT(e),max:rD(e),range:sD(e),value:n,hasMinEdge:vD(e),hasMaxEdge:bD(e),minBound:QD(t),minOffset:i,maxBound:tI(t),maxOffset:a,centerMinEdge:u,centerMaxEdge:s};return UD(c)},bI=function(t,e,n,r,o,i){var a=vI(e,i,n,r,o);return QD(e)-QD(t)+a},yI=function(t,e,n,r){var o=wD(n),i=bI(t,r.getSpectrum(t),o.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=Ns(e.element)/2;Xu(e.element,"left",i-a+"px")},xI=mI(-1),wI=mI(1),CI=w.none,SI=w.none,kI={"top-left":w.none(),top:w.none(),"top-right":w.none(),right:w.some(DD),"bottom-right":w.none(),bottom:w.none(),"bottom-left":w.none(),left:w.some(MD)},OI=Object.freeze({__proto__:null,setValueFrom:fI,setToMin:dI,setToMax:hI,findValueOfOffset:lI,getValueFromEvent:gI,findPositionOfValue:bI,setPositionFromValue:yI,onLeft:xI,onRight:wI,onUp:CI,onDown:SI,edgeActions:kI}),_I=function(t,e){fi(t,qT(),{value:e})},AI=function(t){return{y:t}},EI=function(t,e,n){var r={min:tD(e),max:oD(e),range:cD(e),value:n,step:dD(e),snap:hD(e),snapStart:pD(e),rounded:mD(e),hasMinEdge:yD(e),hasMaxEdge:xD(e),minBound:eI(t),maxBound:nI(t),screenRange:oI(t)};return zD(r)},TI=function(t,e,n){var r=EI(t,e,n),o=AI(r);return _I(t,o),r},DI=function(t,e){var n=tD(e);_I(t,AI(n))},II=function(t,e){var n=oD(e);_I(t,AI(n))},BI=function(t,e,n){var r=t>0?$D:RD,o=r(wD(n).y,tD(n),oD(n),dD(n));return _I(e,AI(o)),w.some(o)},LI=function(t){return function(e,n){return BI(t,e,n).map((function(){return!0}))}},NI=function(t){var e=YT(t);return e.map((function(t){return t.top}))},PI=function(t,e,n,r,o){var i=0,a=oI(t),u=r.bind((function(e){return w.some(uI(e,t))})).getOr(i),s=o.bind((function(e){return w.some(uI(e,t))})).getOr(a),c={min:tD(e),max:oD(e),range:cD(e),value:n,hasMinEdge:yD(e),hasMaxEdge:xD(e),minBound:eI(t),minOffset:i,maxBound:nI(t),maxOffset:a,centerMinEdge:u,centerMaxEdge:s};return UD(c)},MI=function(t,e,n,r,o,i){var a=PI(e,i,n,r,o);return eI(e)-eI(t)+a},jI=function(t,e,n,r){var o=wD(n),i=MI(t,r.getSpectrum(t),o.y,r.getTopEdge(t),r.getBottomEdge(t),n),a=Ss(e.element)/2;Xu(e.element,"top",i-a+"px")},RI=w.none,$I=w.none,FI=LI(-1),VI=LI(1),HI={"top-left":w.none(),top:w.some(AD),"top-right":w.none(),right:w.none(),"bottom-right":w.none(),bottom:w.some(LD),"bottom-left":w.none(),left:w.none()},zI=Object.freeze({__proto__:null,setValueFrom:TI,setToMin:DI,setToMax:II,findValueOfOffset:EI,getValueFromEvent:NI,findPositionOfValue:MI,setPositionFromValue:jI,onLeft:RI,onRight:$I,onUp:FI,onDown:VI,edgeActions:HI}),UI=function(t,e){fi(t,qT(),{value:e})},WI=function(t,e){return{x:t,y:e}},qI=function(t,e,n){var r=lI(t,e,n.left),o=EI(t,e,n.top),i=WI(r,o);return UI(t,i),i},GI=function(t,e,n,r){var o=t>0?$D:RD,i=e?wD(r).x:o(wD(r).x,QT(r),rD(r),dD(r)),a=e?o(wD(r).y,tD(r),oD(r),dD(r)):wD(r).y;return UI(n,WI(i,a)),w.some(i)},YI=function(t,e){return function(n,r){return GI(t,e,n,r).map((function(){return!0}))}},XI=function(t,e){var n=QT(e),r=tD(e);UI(t,WI(n,r))},KI=function(t,e){var n=rD(e),r=oD(e);UI(t,WI(n,r))},ZI=function(t){return YT(t)},JI=function(t,e,n,r){var o=wD(n),i=bI(t,r.getSpectrum(t),o.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=MI(t,r.getSpectrum(t),o.y,r.getTopEdge(t),r.getBottomEdge(t),n),u=Ns(e.element)/2,s=Ss(e.element)/2;Xu(e.element,"left",i-u+"px"),Xu(e.element,"top",a-s+"px")},QI=YI(-1,!1),tB=YI(1,!1),eB=YI(-1,!0),nB=YI(1,!0),rB={"top-left":w.some(_D),top:w.some(ED),"top-right":w.some(TD),right:w.some(ID),"bottom-right":w.some(BD),bottom:w.some(ND),"bottom-left":w.some(PD),left:w.some(jD)},oB=Object.freeze({__proto__:null,setValueFrom:qI,setToMin:XI,setToMax:KI,getValueFromEvent:ZI,setPositionFromValue:JI,onLeft:QI,onRight:tB,onUp:eB,onDown:nB,edgeActions:rB}),iB=[Rn("stepSize",1),Rn("onChange",e),Rn("onChoose",e),Rn("onInit",e),Rn("onDragStart",e),Rn("onDragEnd",e),Rn("snapToGrid",!1),Rn("rounded",!0),Dn("snapStart"),xn("model",sn("mode",{x:[Rn("minX",0),Rn("maxX",100),Yn("value",(function(t){return Xn(t.mode.minX)})),yn("getInitialValue"),Hc("manager",OI)],y:[Rn("minY",0),Rn("maxY",100),Yn("value",(function(t){return Xn(t.mode.minY)})),yn("getInitialValue"),Hc("manager",zI)],xy:[Rn("minX",0),Rn("maxX",100),Rn("minY",0),Rn("maxY",100),Yn("value",(function(t){return Xn({x:t.mode.minX,y:t.mode.minY})})),yn("getInitialValue"),Hc("manager",oB)]})),Xp("sliderBehaviours",[fy,Yp]),Yn("mouseIsDown",(function(){return Xn(!1)}))],aB=function(t,e,n,r){var o,i=function(e){return zm(e,t,"thumb")},a=function(e){return zm(e,t,"spectrum")},u=function(e){return Hm(e,t,"left-edge")},s=function(e){return Hm(e,t,"right-edge")},c=function(e){return Hm(e,t,"top-edge")},l=function(e){return Hm(e,t,"bottom-edge")},d=t.model,h=d.manager,p=function(e,n){h.setPositionFromValue(e,n,t,{getLeftEdge:u,getRightEdge:s,getTopEdge:c,getBottomEdge:l,getSpectrum:a})},m=function(e,n){d.value.set(n);var r=i(e);return p(e,r),t.onChange(e,r,n),w.some(!0)},g=function(e){h.setToMin(e,t)},v=function(e){h.setToMax(e,t)},b=function(e){var n=function(){Hm(e,t,"thumb").each((function(n){var r=d.value.get();t.onChoose(e,n,r)}))},r=t.mouseIsDown.get();t.mouseIsDown.set(!1),r&&n()},y=function(e,n){n.stop(),t.mouseIsDown.set(!0),t.onDragStart(e,i(e))},x=function(e,n){n.stop(),t.onDragEnd(e,i(e)),b(e)};return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.sliderBehaviours,[fy.config({mode:"special",focusIn:function(e){return Hm(e,t,"spectrum").map(fy.focusIn).map(f)}}),Yp.config({store:{mode:"manual",getValue:function(t){return d.value.get()}}}),ql.config({channels:(o={},o[mp()]={onReceive:b},o)})]),events:gi([xi(qT(),(function(t,e){m(t,e.event.value)})),Di((function(e,n){var r=d.getInitialValue();d.value.set(r);var o=i(e);p(e,o);var u=a(e);t.onInit(e,o,u,d.value.get())})),xi(yo(),y),xi(wo(),x),xi(So(),y),xi(_o(),x)]),apis:{resetToMin:g,resetToMax:v,changeValue:m,refresh:p},domModification:{styles:{position:"relative"}}}},uB=sg({name:"Slider",configFields:iB,partFields:UT,factory:aB,apis:{resetToMin:function(t,e){t.resetToMin(e)},resetToMax:function(t,e){t.resetToMax(e)},refresh:function(t,e){t.refresh(e)}}}),sB=function(t,e){var n=uB.parts.spectrum({dom:{tag:"div",classes:[e("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=uB.parts.thumb({dom:{tag:"div",classes:[e("hue-slider-thumb")],attributes:{role:"presentation"}}});return uB.sketch({dom:{tag:"div",classes:[e("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:i({y:0})},components:[n,r],sliderBehaviours:Fl([By.config({})]),onChange:function(t,e,n){fi(t,DT,{value:n})}})},cB="form",lB=[Xp("formBehaviours",[Yp])],fB=function(t){return"<alloy.field."+t+">"},dB=function(t){var e=function(){var t=[],e=function(e,n){return t.push(e),jm(cB,fB(e),n)};return{field:e,record:function(){return t}}}(),n=t(e),r=e.record(),o=W(r,(function(t){return Am({name:t,pname:fB(t)})}));return tg(cB,lB,o,pB,n)},hB=function(t,e){return t.fold((function(){return gt.error(e)}),gt.value)},pB=function(t,e){return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.formBehaviours,[Yp.config({store:{mode:"manual",getValue:function(e){var n=Wm(e,t);return It(n,(function(t,e){return t().bind((function(t){var n=yg.getCurrent(t);return hB(n,new Error("Cannot find a current component to extract the value from for form part '"+e+"': "+Ca(t.element)))})).map(Yp.getValue)}))},setValue:function(e,n){Dt(n,(function(n,r){Hm(e,t,r).each((function(t){yg.getCurrent(t).each((function(t){Yp.setValue(t,n)}))}))}))}}})]),apis:{getField:function(e,n){return Hm(e,t,n).bind(yg.getCurrent)}}}},mB={getField:qa((function(t,e,n){return t.getField(e,n)})),sketch:dB},gB=Aa("valid-input"),vB=Aa("invalid-input"),bB=Aa("validating-input"),yB="colorcustom.rgb.",xB=function(t,n,r,o){var i=function(e,r){return qE.config({invalidClass:n("invalid"),notify:{onValidate:function(t){fi(t,bB,{type:e})},onValid:function(t){fi(t,gB,{type:e,value:Yp.getValue(t)})},onInvalid:function(t){fi(t,vB,{type:e,value:Yp.getValue(t)})}},validator:{validate:function(e){var n=Yp.getValue(e),o=r(n)?gt.value(!0):gt.error(t("aria.input.invalid"));return NE.pure(o)},validateOnLoad:!1}})},a=function(r,o,a,u,s){var c=t(yB+"range"),l=XA.parts.label({dom:{tag:"label",innerHtml:a,attributes:{"aria-label":u}}}),f=XA.parts.field({data:s,factory:CE,inputAttributes:h({type:"text"},"hex"===o?{"aria-live":"polite"}:{}),inputClasses:[n("textfield")],inputBehaviours:Fl([i(o,r),QA.config({})]),onSetValue:function(t){if(qE.isInvalid(t)){var n=qE.run(t);n.get(e)}}}),d=[l,f],p="hex"!==o?[XA.parts["aria-descriptor"]({text:c})]:[],m=d.concat(p);return{dom:{tag:"div",attributes:{role:"presentation"}},components:m}},u=function(t,e){var n=NO(e);return mB.getField(t,"hex").each((function(e){By.isFocused(e)||Yp.setValue(t,{hex:n.value})})),n},s=function(t,e){var n=e.red,r=e.green,o=e.blue;Yp.setValue(t,{red:n,green:r,blue:o})},c=Jx({dom:{tag:"div",classes:[n("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),l=function(t,e){c.getOpt(t).each((function(t){Xu(t.element,"background-color","#"+e.value)}))},f=function(){var e={red:Xn(w.some(255)),green:Xn(w.some(255)),blue:Xn(w.some(255)),hex:Xn(w.some("ffffff"))},i=function(t,e){var n=zO(e);s(t,n),p(n)},f=function(t){return e[t].get()},d=function(t,n){e[t].set(n)},h=function(){return f("red").bind((function(t){return f("green").bind((function(e){return f("blue").map((function(n){return FO(t,e,n,1)}))}))}))},p=function(t){var e=t.red,n=t.green,r=t.blue;d("red",w.some(e)),d("green",w.some(n)),d("blue",w.some(r))},m=function(t,e){var n=e.event;"hex"!==n.type?d(n.type,w.none()):o(t)},g=function(t,e){r(t);var n=AO(e);d("hex",w.some(e));var o=zO(n);s(t,o),p(o),fi(t,TT,{hex:n}),l(t,n)},v=function(t,e,n){var r=parseInt(n,10);d(e,w.some(r)),h().each((function(e){var n=u(t,e);l(t,n)}))},b=function(t){return"hex"===t.type},y=function(t,e){var n=e.event;b(n)?g(t,n.value):v(t,n.type,n.value)},x=function(e){return{label:t(yB+e+".label"),description:t(yB+e+".description")}},C=x("red"),S=x("green"),k=x("blue"),O=x("hex");return Yt(mB.sketch((function(e){return{dom:{tag:"form",classes:[n("rgb-form")],attributes:{"aria-label":t("aria.color.picker")}},components:[e.field("red",XA.sketch(a(VO,"red",C.label,C.description,255))),e.field("green",XA.sketch(a(VO,"green",S.label,S.description,255))),e.field("blue",XA.sketch(a(VO,"blue",k.label,k.description,255))),e.field("hex",XA.sketch(a(DO,"hex",O.label,O.description,"ffffff"))),c.asSpec()],formBehaviours:Fl([qE.config({invalidClass:n("form-invalid")}),Sy("rgb-form-events",[xi(gB,y),xi(vB,m),xi(bB,m)])])}})),{apis:{updateHex:function(t,e){Yp.setValue(t,{hex:e.value}),i(t,e),l(t,e)}}})},d=ug({factory:f,name:"RgbForm",configFields:[],apis:{updateHex:function(t,e,n){t.updateHex(e,n)}},extraApis:{}});return d},wB=function(t,e){var n=uB.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[e("sv-palette-spectrum")]}}),r=uB.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette-thumb")],innerHtml:"<div class="+e("sv-palette-inner-thumb")+' role="presentation"></div>'}}),o=function(t,e){var n=t.width,r=t.height,o=t.getContext("2d");if(null!==o){o.fillStyle=e,o.fillRect(0,0,n,r);var i=o.createLinearGradient(0,0,n,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),o.fillStyle=i,o.fillRect(0,0,n,r);var a=o.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),o.fillStyle=a,o.fillRect(0,0,n,r)}},a=function(t,e){var n=t.components()[0].element.dom;o(n,qO(e))},u=function(t){var a=i({x:0,y:0}),u=function(t,e,n){fi(t,IT,{value:n})},s=function(t,e,n,r){o(n.element.dom,qO(GO))},c=Fl([yg.config({find:w.some}),By.config({})]);return uB.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette")]},model:{mode:"xy",getInitialValue:a},rounded:!1,components:[n,r],onChange:u,onInit:s,sliderBehaviours:c})},s=ug({factory:u,name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(t,e,n){a(e,n)}},extraApis:{}});return s},CB=function(t,n){var r=function(e){var r=xB(t,n,e.onValidHex,e.onInvalidHex),o=wB(t,n),i={paletteRgba:Xn(GO)},a=Jx(o.sketch({})),u=Jx(r.sketch({})),s=function(t,e){a.getOpt(t).each((function(t){var n=zO(e);i.paletteRgba.set(n),o.setRgba(t,n)}))},c=function(t,e){u.getOpt(t).each((function(t){r.updateHex(t,e)}))},l=function(t,e,n){q(n,(function(n){n(t,e)}))},f=function(){var t=[c];return function(e,n){var r=n.event.value,o=i.paletteRgba.get(),a=AT(o),u=_T(a.hue,r.x,100-r.y),s=HO(u),c=NO(s);l(e,c,t)}},d=function(){var t=[s,c];return function(e,n){var r=n.event.value,o=ET(r.y);l(e,o,t)}};return{uid:e.uid,dom:e.dom,components:[a.asSpec(),sB(t,n),u.asSpec()],behaviours:Fl([Sy("colour-picker-events",[xi(IT,f()),xi(DT,d())]),yg.config({find:function(t){return u.getOpt(t)}}),fy.config({mode:"acyclic"})])}},o=ug({name:"ColourPicker",configFields:[yn("dom"),Rn("onValidHex",e),Rn("onInvalidHex",e)],factory:r});return o},SB=function(){return yg.config({find:w.some})},kB=function(t){return yg.config({find:t.getOpt})},OB=function(t){return yg.config({find:function(e){return Ki(e.element,t).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}})},_B={self:SB,memento:kB,childAt:OB},AB={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},EB=function(t){return AB[t]},TB=function(t){return EB(t)},DB=function(t){var e=function(t){return"tox-"+t},n=CB(TB,e),r=function(t){fi(t,lE,{name:"hex-valid",value:!0})},o=function(t){fi(t,lE,{name:"hex-valid",value:!1})},i=Jx(n.sketch({dom:{tag:"div",classes:[e("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:o}));return{dom:{tag:"div"},components:[i.asSpec()],behaviours:Fl([Yp.config({store:{mode:"manual",getValue:function(t){var e=i.get(t),n=yg.getCurrent(e),r=n.bind((function(t){var e=Yp.getValue(t);return e.hex}));return r.map((function(t){return"#"+t})).getOr("")},setValue:function(t,e){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(e),o=i.get(t),a=yg.getCurrent(o);a.fold((function(){console.log("Can not find form")}),(function(t){Yp.setValue(t,{hex:w.from(r[1]).getOr("")}),mB.getField(t,"hex").each((function(t){li(t,Bo())}))}))}}}),_B.self()])}},IB=tinymce.util.Tools.resolve("tinymce.Resource"),BB=function(t){return Object.prototype.hasOwnProperty.call(t,"init")},LB=function(t){var e=Xn(w.none()),n=Jx({dom:{tag:t.tag}}),r=Xn(w.none());return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Fl([Sy("custom-editor-events",[Di((function(o){n.getOpt(o).each((function(n){(BB(t)?t.init(n.element.dom):IB.load(t.scriptId,t.scriptUrl).then((function(e){return e(n.element.dom,t.settings)}))).then((function(t){r.get().each((function(e){t.setValue(e)})),r.set(w.none()),e.set(w.some(t))}))}))}))]),Yp.config({store:{mode:"manual",getValue:function(){return e.get().fold((function(){return r.get().getOr("")}),(function(t){return t.getValue()}))},setValue:function(t,n){e.get().fold((function(){r.set(w.some(n))}),(function(t){return t.setValue(n)}))}}}),_B.self()]),components:[n.asSpec()]}},NB=tinymce.util.Tools.resolve("tinymce.util.Tools"),PB=Re([Rn("preprocess",a),Rn("postprocess",a)]),MB=function(t,e){var n=on("RepresentingConfigs.memento processors",PB,e);return Yp.config({store:{mode:"manual",getValue:function(e){var r=t.get(e),o=Yp.getValue(r);return n.postprocess(o)},setValue:function(e,r){var o=n.preprocess(r),i=t.get(e);Yp.setValue(i,o)}}})},jB=function(t,e,n){return Yp.config(Yt({store:{mode:"manual",getValue:e,setValue:n}},t.map((function(t){return{store:{initialValue:t}}})).getOr({})))},RB=function(t,e,n){return jB(t,(function(t){return e(t.element)}),(function(t,e){return n(t.element,e)}))},$B=function(t){return RB(t,is,as)},FB=function(t){return RB(t,ca,la)},VB=function(t){return Yp.config({store:{mode:"memory",initialValue:t}})},HB={memento:MB,withElement:RB,withComp:jB,domValue:$B,domHtml:FB,memory:VB},zB="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",UB=function(t,e){var n=NB.explode(e.getSetting("images_file_types",zB,"string")),r=function(t){return H(n,(function(e){return mr(t.name,"."+e)}))};return X(ft(t),r)},WB=function(t,e){var n=function(t,e){e.stop()},r=function(t){return function(e,n){q(t,(function(t){t(e,n)}))}},o=function(t,e){if(!XS.isDisabled(t)){var n=e.event.raw;a(t,n.dataTransfer.files)}},i=function(t,e){var n=e.event.raw.target;a(t,n.files)},a=function(n,r){Yp.setValue(n,UB(r,e)),fi(n,uE,{name:t.name})},u=Jx({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Fl([Sy("input-file-events",[Ai(No()),Ai(Wo())])])}),s=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Fl([HB.memory([]),_B.self(),XS.config({}),Zy.config({toggleClass:"dragenter",toggleOnExecute:!1}),Sy("dropzone-events",[xi("dragenter",r([n,Zy.toggle])),xi("dragleave",r([n,Zy.toggle])),xi("dragover",n),xi("drop",r([n,o])),xi(Lo(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:e.translate("Drop an image here")}},Zx.sketch({dom:{tag:"button",innerHtml:e.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[u.asSpec()],action:function(t){var e=u.get(t);e.element.dom.click()},buttonBehaviours:Fl([QA.config({}),Gk.button(e.isDisabled),Hk()])})]}]}},c=t.label.map((function(t){return aE(t,e)})),l=XA.parts.field({factory:{sketch:s}});return eE(c,l,["tox-form__group--stretched"],[])},qB=function(t,e){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+t.columns+"col"]},components:W(t.items,e.interpreter)}},GB=Aa("alloy-fake-before-tabstop"),YB=Aa("alloy-fake-after-tabstop"),XB=function(t){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:Fl([By.config({ignore:!0}),QA.config({})])}},KB=function(t){return{dom:{tag:"div",classes:["tox-navobj"]},components:[XB([GB]),t,XB([YB])],behaviours:Fl([_B.childAt(1)])}},ZB=function(t,e){fi(t,Do(),{raw:{which:9,shiftKey:e}})},JB=function(t,e){var n=e.element;Du(n,GB)?ZB(t,!0):Du(n,YB)&&ZB(t,!1)},QB=function(t){return mA(t,["."+GB,"."+YB].join(","),l)},tL=!(Gr().browser.isIE()||Gr().browser.isEdge()),eL=function(t){var e=Xn("");return{getValue:function(t){return e.get()},setValue:function(n,r){if(t)ha(n.element,"srcdoc",r);else{ha(n.element,"src","javascript:''");var o=n.element.dom.contentWindow.document;o.open(),o.write(r),o.close()}e.set(r)}}},nL=function(t,e){var n=tL&&t.sandboxed,r=h(h({},t.label.map((function(t){return{title:t}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),o=eL(n),i=t.label.map((function(t){return aE(t,e)})),a=function(t){return KB({uid:t.uid,dom:{tag:"iframe",attributes:r},behaviours:Fl([QA.config({}),By.config({}),HB.withComp(w.none(),o.getValue,o.setValue)])})},u=XA.parts.field({factory:{sketch:a}});return eE(i,u,["tox-form__group--stretched"],[])};function rL(t,e){return aL(document.createElement("canvas"),t,e)}function oL(t){var e=rL(t.width,t.height),n=iL(e);return n.drawImage(t,0,0),e}function iL(t){return t.getContext("2d")}function aL(t,e,n){return t.width=e,t.height=n,t}function uL(t){return t.naturalWidth||t.width}function sL(t){return t.naturalHeight||t.height}var cL=function(){var t=function(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(t,r(a,this),r(u,this))},e=window,n=t.immediateFn||"function"===typeof e.setImmediate&&e.setImmediate||function(t){setTimeout(t,1)};function r(t,e){return function(){return t.apply(e,arguments)}}var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t){var e=this;null!==this._state?n((function(){var n=e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void t.reject(o)}t.resolve(r)}else(e._state?t.resolve:t.reject)(e._value)})):this._deferreds.push(t)}function a(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var e=t.then;if("function"===typeof e)return void l(r(e,t),r(a,this),r(u,this))}this._state=!0,this._value=t,s.call(this)}catch(n){u.call(this,n)}}function u(t){this._state=!1,this._value=t,s.call(this)}function s(){for(var t=0,e=this._deferreds;t<e.length;t++){var n=e[t];i.call(this,n)}this._deferreds=[]}function c(t,e,n,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=n,this.reject=r}function l(t,e,n){var r=!1;try{t((function(t){r||(r=!0,e(t))}),(function(t){r||(r=!0,n(t))}))}catch(o){if(r)return;r=!0,n(o)}}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.then=function(e,n){var r=this;return new t((function(t,o){i.call(r,new c(e,n,t,o))}))},t.all=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Array.prototype.slice.call(1===e.length&&o(e[0])?e[0]:e);return new t((function(t,e){if(0===r.length)return t([]);var n=r.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(t){o(i,t)}),e)}r[i]=a,0===--n&&t(r)}catch(s){e(s)}}for(var i=0;i<r.length;i++)o(i,r[i])}))},t.resolve=function(e){return e&&"object"===typeof e&&e.constructor===t?e:new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];i.then(t,n)}}))},t},lL=window.Promise?window.Promise:cL();function fL(t){return new lL((function(e,n){var r=URL.createObjectURL(t),o=new Image,i=function(){o.removeEventListener("load",a),o.removeEventListener("error",u)};function a(){i(),e(o)}function u(){i(),n("Unable to load data of type "+t.type+": "+r)}o.addEventListener("load",a),o.addEventListener("error",u),o.src=r,o.complete&&a()}))}function dL(t){var e=t.split(","),n=/data:([^;]+)/.exec(e[0]);if(!n)return w.none();for(var r=n[1],o=e[1],i=1024,a=atob(o),u=a.length,s=Math.ceil(u/i),c=new Array(s),l=0;l<s;++l){for(var f=l*i,d=Math.min(f+i,u),h=new Array(d-f),p=f,m=0;p<d;++m,++p)h[m]=a[p].charCodeAt(0);c[l]=new Uint8Array(h)}return w.some(new Blob(c,{type:r}))}function hL(t){return new lL((function(e,n){dL(t).fold((function(){n("uri is not base64: "+t)}),e)}))}function pL(t,e,n){return e=e||"image/png",L(HTMLCanvasElement.prototype.toBlob)?new lL((function(r,o){t.toBlob((function(t){t?r(t):o()}),e,n)})):hL(t.toDataURL(e,n))}function mL(t,e,n){return e=e||"image/png",t.toDataURL(e,n)}function gL(t){return fL(t).then((function(t){bL(t);var e=rL(uL(t),sL(t)),n=iL(e);return n.drawImage(t,0,0),e}))}function vL(t){return new lL((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)}))}function bL(t){URL.revokeObjectURL(t.src)}function yL(t,e,n){var r=e.type,o=i(r);function a(){return lL.resolve(e)}var u=i(n);function s(){return n.split(",")[1]}function c(e,n){return t.then((function(t){return pL(t,e,n)}))}function l(e,n){return t.then((function(t){return mL(t,e,n)}))}function f(t,e){return l(t,e).then((function(t){return t.split(",")[1]}))}function d(){return t.then(oL)}return{getType:o,toBlob:a,toDataURL:u,toBase64:s,toAdjustedBlob:c,toAdjustedDataURL:l,toAdjustedBase64:f,toCanvas:d}}function xL(t){return vL(t).then((function(e){return yL(gL(t),t,e)}))}function wL(t,e){return pL(t,e).then((function(e){return yL(lL.resolve(t),e,t.toDataURL())}))}var CL=function(t){return xL(t)};function SL(t,e,n){var r="string"===typeof t?parseFloat(t):t;return r>n?r=n:r<e&&(r=e),r}function kL(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}var OL=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10];function _L(t,e){for(var n,r=[],o=new Array(25),i=0;i<5;i++){for(var a=0;a<5;a++)r[a]=e[a+5*i];for(a=0;a<5;a++){n=0;for(var u=0;u<5;u++)n+=t[a+5*u]*r[u];o[a+5*i]=n}}return o}function AL(t,e){var n;return e=SL(e,-1,1),e*=100,e<0?n=127+e/100*127:(n=e%1,n=0===n?OL[e]:OL[Math.floor(e)]*(1-n)+OL[Math.floor(e)+1]*n,n=127*n+127),_L(t,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])}function EL(t,e){return e=SL(255*e,-255,255),_L(t,[1,0,0,0,e,0,1,0,0,e,0,0,1,0,e,0,0,0,1,0,0,0,0,0,1])}function TL(t,e,n,r){return e=SL(e,0,2),n=SL(n,0,2),r=SL(r,0,2),_L(t,[e,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])}function DL(t,e){return t.toCanvas().then((function(n){return IL(n,t.getType(),e)}))}function IL(t,e,n){var r=iL(t);function o(t,e){for(var n,r,o,i,a=t.data,u=e[0],s=e[1],c=e[2],l=e[3],f=e[4],d=e[5],h=e[6],p=e[7],m=e[8],g=e[9],v=e[10],b=e[11],y=e[12],x=e[13],w=e[14],C=e[15],S=e[16],k=e[17],O=e[18],_=e[19],A=0;A<a.length;A+=4)n=a[A],r=a[A+1],o=a[A+2],i=a[A+3],a[A]=n*u+r*s+o*c+i*l+f,a[A+1]=n*d+r*h+o*p+i*m+g,a[A+2]=n*v+r*b+o*y+i*x+w,a[A+3]=n*C+r*S+o*k+i*O+_;return t}var i=o(r.getImageData(0,0,t.width,t.height),n);return r.putImageData(i,0,0),wL(t,e)}function BL(t,e){return t.toCanvas().then((function(n){return LL(n,t.getType(),e)}))}function LL(t,e,n){var r=iL(t);function o(t,e,n){function r(t,e,n){return t>n?t=n:t<e&&(t=e),t}for(var o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=t.data,u=e.data,s=t.width,c=t.height,l=0;l<c;l++)for(var f=0;f<s;f++){for(var d=0,h=0,p=0,m=0;m<o;m++)for(var g=0;g<o;g++){var v=r(f+g-i,0,s-1),b=r(l+m-i,0,c-1),y=4*(b*s+v),x=n[m*o+g];d+=a[y]*x,h+=a[y+1]*x,p+=a[y+2]*x}var w=4*(l*s+f);u[w]=r(d,0,255),u[w+1]=r(h,0,255),u[w+2]=r(p,0,255)}return e}var i=r.getImageData(0,0,t.width,t.height),a=r.getImageData(0,0,t.width,t.height);return a=o(i,a,n),r.putImageData(a,0,0),wL(t,e)}function NL(t){var e=function(e,n,r){var o=iL(e),i=new Array(256);function a(t,e){for(var n=t.data,r=0;r<n.length;r+=4)n[r]=e[n[r]],n[r+1]=e[n[r+1]],n[r+2]=e[n[r+2]];return t}for(var u=0;u<i.length;u++)i[u]=t(u,r);var s=a(o.getImageData(0,0,e.width,e.height),i);return o.putImageData(s,0,0),wL(e,n)};return function(t,n){return t.toCanvas().then((function(r){return e(r,t.getType(),n)}))}}function PL(t){return function(e,n){return DL(e,t(kL(),n))}}function ML(t){return function(e){return DL(e,t)}}function jL(t){return function(e){return BL(e,t)}}var RL=ML([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),$L=PL(EL),FL=PL(AL),VL=function(t,e,n,r){return DL(t,TL(kL(),e,n,r))},HL=jL([0,-1,0,-1,5,-1,0,-1,0]),zL=NL((function(t,e){return 255*Math.pow(t/255,1-e)}));function UL(t,e,n){var r=uL(t),o=sL(t),i=e/r,a=n/o,u=!1;(i<.5||i>2)&&(i=i<.5?.5:2,u=!0),(a<.5||a>2)&&(a=a<.5?.5:2,u=!0);var s=WL(t,i,a);return u?s.then((function(t){return UL(t,e,n)})):s}function WL(t,e,n){return new lL((function(r){var o=uL(t),i=sL(t),a=Math.floor(o*e),u=Math.floor(i*n),s=rL(a,u),c=iL(s);c.drawImage(t,0,0,o,i,0,0,a,u),r(s)}))}function qL(t,e){return t.toCanvas().then((function(n){return GL(n,t.getType(),e)}))}function GL(t,e,n){var r=rL(t.width,t.height),o=iL(r),i=0,a=0;return n=n<0?360+n:n,90!==n&&270!==n||aL(r,r.height,r.width),90!==n&&180!==n||(i=r.width),270!==n&&180!==n||(a=r.height),o.translate(i,a),o.rotate(n*Math.PI/180),o.drawImage(t,0,0),wL(r,e)}function YL(t,e){return t.toCanvas().then((function(n){return XL(n,t.getType(),e)}))}function XL(t,e,n){var r=rL(t.width,t.height),o=iL(r);return"v"===n?(o.scale(1,-1),o.drawImage(t,0,-r.height)):(o.scale(-1,1),o.drawImage(t,-r.width,0)),wL(r,e)}function KL(t,e,n,r,o){return t.toCanvas().then((function(i){return ZL(i,t.getType(),e,n,r,o)}))}function ZL(t,e,n,r,o,i){var a=rL(o,i),u=iL(a);return u.drawImage(t,-n,-r),wL(a,e)}function JL(t,e,n){return t.toCanvas().then((function(r){return UL(r,e,n).then((function(e){return wL(e,t.getType())}))}))}var QL,tN=function(t){return RL(t)},eN=function(t){return HL(t)},nN=function(t,e){return zL(t,e)},rN=function(t,e,n,r){return VL(t,e,n,r)},oN=function(t,e){return $L(t,e)},iN=function(t,e){return FL(t,e)},aN=function(t,e){return YL(t,e)},uN=function(t,e,n,r,o){return KL(t,e,n,r,o)},sN=function(t,e,n){return JL(t,e,n)},cN=function(t,e){return qL(t,e)},lN=function(t,e){return h({dom:{tag:"span",innerHtml:t,classes:["tox-icon","tox-tbtn__icon-wrap"]}},e)},fN=function(t,e){return lN(tw(t,e),{})},dN=function(t,e){return lN(tw(t,e),{behaviours:Fl([wy.config({})])})},hN=function(t,e,n){return{dom:{tag:"span",innerHtml:n.translate(t),classes:[e+"__select-label"]},behaviours:Fl([wy.config({})])}},pN=Aa("toolbar.button.execute"),mN=function(t){return Li((function(e,n){Yk(t,e)((function(n){fi(e,pN,{buttonApi:n}),t.onAction(n)}))}))},gN=(QL={},QL[zo()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],QL),vN=Aa("update-menu-text"),bN=Aa("update-menu-icon"),yN=function(t,n,r){var o=Xn(e),i=t.text.map((function(t){return Jx(hN(t,n,r.providers))})),a=t.icon.map((function(t){return Jx(dN(t,r.providers.icons))})),s=function(t,e){var n=Yp.getValue(t);return By.focus(n),fi(n,"keydown",{raw:e.event.raw}),gT.close(n),w.some(!0)},c=t.role.fold((function(){return{}}),(function(t){return{role:t}})),l=t.tooltip.fold((function(){return{}}),(function(t){var e=r.providers.translate(t);return{title:e,"aria-label":e}})),f=Jx(gT.sketch(h(h(h({},t.uid?{uid:t.uid}:{}),c),{dom:{tag:"button",classes:[n,n+"--select"].concat(W(t.classes,(function(t){return n+"--"+t}))),attributes:h({},l)},components:Qk([a.map((function(t){return t.asSpec()})),i.map((function(t){return t.asSpec()})),w.some({dom:{tag:"div",classes:[n+"__select-chevron"],innerHtml:tw("chevron-down",r.providers.icons)}})]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:Fl(m(t.dropdownBehaviours,[Gk.button((function(){return t.disabled||r.providers.isDisabled()})),Hk(),xT.config({}),wy.config({}),Sy("dropdown-events",[Xk(t,o),Kk(t,o)]),Sy("menubutton-update-display-text",[xi(vN,(function(t,e){i.bind((function(e){return e.getOpt(t)})).each((function(t){wy.set(t,[gs(r.providers.translate(e.event.text))])}))})),xi(bN,(function(t,e){a.bind((function(e){return e.getOpt(t)})).each((function(t){wy.set(t,[dN(e.event.icon,r.providers.icons)])}))}))])])),eventOrder:Yt(gN,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:Fl([fy.config({mode:"special",onLeft:s,onRight:s})]),lazySink:r.getSink,toggleClass:n+"--active",parts:{menu:MC(!1,t.columns,t.presets)},fetch:function(e){return NE.nu(u(t.fetch,e))}})));return f.asSpec()},xN=function(t){return _(t)},wN=function(t){return"separator"===t.type},CN=function(t){return Ft(t,"getSubmenuItems")},SN={type:"separator"},kN=function(t,e){var n=Z(t,(function(t,n){return xN(n)?""===n?t:"|"===n?t.length>0&&!wN(t[t.length-1])?t.concat([SN]):t:Ft(e,n.toLowerCase())?t.concat([e[n.toLowerCase()]]):t:t.concat([n])}),[]);return n.length>0&&wN(n[n.length-1])&&n.pop(),n},ON=function(t,e){var n=t.getSubmenuItems(),r=EN(n,e),o=Yt(r.menus,ce(t.value,r.items)),i=Yt(r.expansions,ce(t.value,t.value));return{item:t,menus:o,expansions:i}},_N=function(t,e){return CN(t)?ON(t,e):{item:t,menus:{},expansions:{}}},AN=function(t){if(wN(t))return t;var e=$t(t,"value").getOrThunk((function(){return Aa("generated-menu-item")}));return Yt({value:e},t)},EN=function(t,e){var n=kN(_(t)?t.split(" "):t,e);return K(n,(function(t,n){var r=AN(n),o=_N(r,e);return{menus:Yt(t.menus,o.menus),items:[o.item].concat(t.items),expansions:Yt(t.expansions,o.expansions)}}),{menus:{},expansions:{},items:[]})},TN=function(t,e,n,r){var o=Aa("primary-menu"),i=EN(t,n.shared.providers.menuItems());if(0===i.items.length)return w.none();var a=aA(o,i.items,e,n,r),u=It(i.menus,(function(t,r){return aA(r,t,e,n,!1)})),s=Yt(u,ce(o,a));return w.from(Nx.tieredData(o,s,i.expansions))},DN=function(t){return{isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){return XS.set(t,e)},setActive:function(e){var n=t.element;e?(Au(n,"tox-tbtn--enabled"),ha(n,"aria-pressed",!0)):(Tu(n,"tox-tbtn--enabled"),ba(n,"aria-pressed"))},isActive:function(){return Du(t.element,"tox-tbtn--enabled")}}},IN=function(t,e,n,r){return yN({text:t.text,icon:t.icon,tooltip:t.tooltip,role:r,fetch:function(e,r){t.fetch((function(t){r(TN(t,sC.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:t.onSetup,getApi:DN,columns:1,presets:"normal",classes:[],dropdownBehaviours:[QA.config({})]},e,n.shared)},BN=function(t,e,n){var r=function(t){return function(r){var o=!r.isActive();r.setActive(o),t.storage.set(o),n.shared.getSink().each((function(n){e().getOpt(n).each((function(e){Kl(e.element),fi(e,lE,{name:t.name,value:t.storage.get()})}))}))}},o=function(t){return function(e){e.setActive(t.storage.get())}};return function(e){e(W(t,(function(t){var e=t.text.fold((function(){return{}}),(function(t){return{text:t}}));return h(h({type:t.type,active:!1},e),{onAction:r(t),onSetup:o(t)})})))}},LN=function(t,e,n,r,o,i){void 0===n&&(n=[]);var a=e.fold((function(){return{}}),(function(t){return{action:t}})),u=h({buttonBehaviours:Fl([Gk.button((function(){return t.disabled||i.isDisabled()})),Hk(),QA.config({}),Sy("button press",[yi("click"),yi("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),s=Yt(u,{dom:r});return Yt(s,{components:o})},NN=function(t,e,n,r){void 0===r&&(r=[]);var o=t.tooltip.map((function(t){return{"aria-label":n.translate(t),title:n.translate(t)}})).getOr({}),i={tag:"button",classes:["tox-tbtn"],attributes:o},a=t.icon.map((function(t){return fN(t,n.icons)})),u=Qk([a]);return LN(t,e,r,i,u,n)},PN=function(t,e,n,r){void 0===r&&(r=[]);var o=NN(t,w.some(e),n,r);return Zx.sketch(o)},MN=function(t,e,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=n.translate(t.text),a=t.icon?t.icon.map((function(t){return fN(t,n.icons)})):w.none(),u=a.isSome()?Qk([a]):[],s=a.isSome()?{}:{innerHtml:i},c=m(t.primary||t.borderless?["tox-button"]:["tox-button","tox-button--secondary"],a.isSome()?["tox-button--icon"]:[],t.borderless?["tox-button--naked"]:[],o),l=h(h({tag:"button",classes:c},s),{attributes:{title:i}});return LN(t,e,r,l,u,n)},jN=function(t,e,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=MN(t,w.some(e),n,r,o);return Zx.sketch(i)},RN=function(t,e){return function(n){"custom"===e?fi(n,lE,{name:t,value:{}}):"submit"===e?li(n,fE):"cancel"===e?li(n,cE):console.error("Unknown button type: ",e)}},$N=function(t,e){return"menu"===e},FN=function(t,e){return"custom"===e||"cancel"===e||"submit"===e},VN=function(t,n,r){if($N(t,n)){var o=function(){return u},i=t,a=h(h({},t),{onSetup:function(n){return n.setDisabled(t.disabled),e},fetch:BN(i.items,o,r)}),u=Jx(IN(a,"tox-tbtn",r,w.none()));return u.asSpec()}if(FN(t,n)){var s=RN(t.name,n),c=h(h({},t),{borderless:!1});return jN(c,s,r.shared.providers,[])}console.error("Unknown footer button type: ",n)},HN=function(t,e){var n=RN(t.name,"custom");return nE(w.none(),XA.parts.field(h({factory:Zx},MN(t,w.some(n),e,[HB.memory(""),_B.self()]))))},zN=i([Rn("field1Name","field1"),Rn("field2Name","field2"),Fc("onLockedChange"),Mc(["lockClass"]),Rn("locked",!1),Jp.field("coupledFieldBehaviours",[yg,Yp])]),UN=function(t,e,n){return Hm(t,e,n).bind(yg.getCurrent)},WN=function(t,e){return Am({factory:XA,name:t,overrides:function(t){return{fieldBehaviours:Fl([Sy("coupled-input-behaviour",[xi(Bo(),(function(n){UN(n,t,e).each((function(e){Hm(n,t,"lock").each((function(r){Zy.isOn(r)&&t.onLockedChange(n,e,r)}))}))}))])])}}})},qN=i([WN("field1","field2"),WN("field2","field1"),Am({factory:Zx,schema:[yn("dom")],name:"lock",overrides:function(t){return{buttonBehaviours:Fl([Zy.config({selected:t.locked,toggleClass:t.markers.lockClass,aria:{mode:"pressed"}})])}}})]),GN=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:Jp.augment(t.coupledFieldBehaviours,[yg.config({find:w.some}),Yp.config({store:{mode:"manual",getValue:function(e){var n,r=Gm(e,t,["field1","field2"]);return n={},n[t.field1Name]=Yp.getValue(r.field1()),n[t.field2Name]=Yp.getValue(r.field2()),n},setValue:function(e,n){var r=Gm(e,t,["field1","field2"]);Vt(n,t.field1Name)&&Yp.setValue(r.field1(),n[t.field1Name]),Vt(n,t.field2Name)&&Yp.setValue(r.field2(),n[t.field2Name])}}})]),apis:{getField1:function(e){return Hm(e,t,"field1")},getField2:function(e){return Hm(e,t,"field2")},getLock:function(e){return Hm(e,t,"lock")}}}},YN=sg({name:"FormCoupledInputs",configFields:zN(),partFields:qN(),factory:GN,apis:{getField1:function(t,e){return t.getField1(e)},getField2:function(t,e){return t.getField2(e)},getLock:function(t,e){return t.getLock(e)}}}),XN=function(t){var e={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(t){return t in e?e[t]:1},r=t.value.toFixed(n(t.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+t.unit},KN=function(t){var e=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=e.exec(t);if(null!==n){var r=parseFloat(n[1]),o=n[2];return gt.value({value:r,unit:o})}return gt.error(t)},ZN=function(t,e){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(t){return Object.prototype.hasOwnProperty.call(n,t)};return t.unit===e?w.some(t.value):r(t.unit)&&r(e)?n[t.unit]===n[e]?w.some(t.value):w.some(t.value/n[t.unit]*n[e]):w.none()},JN=function(t){return w.none()},QN=function(t,e){return function(n){return ZN(n,e).map((function(n){return{value:n*t,unit:e}}))}},tP=function(t,e){var n=KN(t).toOptional(),r=KN(e).toOptional();return fg(n,r,(function(t,e){return ZN(t,e.unit).map((function(t){return e.value/t})).map((function(t){return QN(t,e.unit)})).getOr(JN)})).getOr(JN)},eP=function(t,e){var n=JN,r=Aa("ratio-event"),o=YN.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:e.translate(t.label.getOr("Constrain proportions"))}},components:[{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__lock"],innerHtml:tw("lock",e.icons)}},{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__unlock"],innerHtml:tw("unlock",e.icons)}}],buttonBehaviours:Fl([XS.config({disabled:function(){return t.disabled||e.isDisabled()}}),Hk(),QA.config({})])}),i=function(t){return{dom:{tag:"div",classes:["tox-form__group"]},components:t}},a=function(n){return XA.parts.field({factory:CE,inputClasses:["tox-textfield"],inputBehaviours:Fl([XS.config({disabled:function(){return t.disabled||e.isDisabled()}}),Hk(),QA.config({}),Sy("size-input-events",[xi(Eo(),(function(t,e){fi(t,r,{isField1:n})})),xi(Lo(),(function(e,n){fi(e,uE,{name:t.name})}))])]),selectOnFocus:!1})},u=function(t){return{dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}}},s=YN.parts.field1(i([XA.parts.label(u("Width")),a(!0)])),c=YN.parts.field2(i([XA.parts.label(u("Height")),a(!1)]));return YN.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[s,c,i([u(" "),o])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(t,e,r){KN(Yp.getValue(t)).each((function(t){n(t).each((function(t){Yp.setValue(e,XN(t))}))}))},coupledFieldBehaviours:Fl([XS.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){YN.getField1(t).bind(XA.getField).each(XS.disable),YN.getField2(t).bind(XA.getField).each(XS.disable),YN.getLock(t).each(XS.disable)},onEnabled:function(t){YN.getField1(t).bind(XA.getField).each(XS.enable),YN.getField2(t).bind(XA.getField).each(XS.enable),YN.getLock(t).each(XS.enable)}}),Hk(),Sy("size-input-events2",[xi(r,(function(t,e){var r=e.event.isField1,o=r?YN.getField1(t):YN.getField2(t),i=r?YN.getField2(t):YN.getField1(t),a=o.map(Yp.getValue).getOr(""),u=i.map(Yp.getValue).getOr("");n=tP(a,u)}))])])})},nP=i(Aa("undo")),rP=i(Aa("redo")),oP=i(Aa("zoom")),iP=i(Aa("back")),aP=i(Aa("apply")),uP=i(Aa("swap")),sP=i(Aa("transform")),cP=i(Aa("temp-transform")),lP=i(Aa("transform-apply")),fP={undo:nP,redo:rP,zoom:oP,back:iP,apply:aP,swap:uP,transform:sP,tempTransform:cP,transformApply:lP},dP=i("save-state"),hP=i("disable"),pP=i("enable"),mP={formActionEvent:lE,saveState:dP,disable:hP,enable:pP},gP=function(t,n){var r=function(t,e,r,o){return Jx(jN({name:t,text:t,disabled:r,primary:o,icon:w.none(),borderless:!1},e,n))},o=function(t,e,r,o){return Jx(PN({name:t,icon:w.some(t),tooltip:w.some(e),disabled:o,primary:!1,borderless:!1},r,n))},a=function(t,e){t.map((function(t){var n=t.get(e);n.hasConfigured(XS)&&XS.disable(n)}))},u=function(t,e){t.map((function(t){var n=t.get(e);n.hasConfigured(XS)&&XS.enable(n)}))},s={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},c=e,l=function(t,e,n){fi(t,e,n)},f=function(t){return li(t,mP.disable())},d=function(t){return li(t,mP.enable())},h=function(t,e){f(t),l(t,fP.transform(),{transform:e}),d(t)},p=function(t,e){f(t),l(t,fP.tempTransform(),{transform:e}),d(t)},m=function(t){return function(){at.getOpt(t).each((function(t){wy.set(t,[ot])}))}},g=function(t,e){f(t),l(t,fP.transformApply(),{transform:e,swap:m(t)}),d(t)},v=function(){return r("Back",(function(t){return l(t,fP.back(),{swap:m(t)})}),!1,!1)},b=function(){return Jx({dom:{tag:"div",classes:["tox-spacer"]},behaviours:Fl([XS.config({})])})},y=function(){return r("Apply",(function(t){return l(t,fP.apply(),{swap:m(t)})}),!0,!0)},x=function(){return function(e){var n=t.getRect();return uN(e,n.x,n.y,n.w,n.h)}},C=[v(),b(),r("Apply",(function(e){var n=x();g(e,n),t.hideCrop()}),!1,!0)],S=zA.sketch({dom:s,components:C.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Sy("image-tools-crop-buttons-events",[xi(mP.disable(),(function(t,e){a(C,t)})),xi(mP.enable(),(function(t,e){u(C,t)}))])])}),k=Jx(eP({name:"size",label:w.none(),constrain:!0,disabled:!1},n)),O=function(t,e){return function(n){return sN(n,t,e)}},_=[v(),b(),k,b(),r("Apply",(function(t){k.getOpt(t).each((function(e){var n=Yp.getValue(e),r=parseInt(n.width,10),o=parseInt(n.height,10),i=O(r,o);g(t,i)}))}),!1,!0)],A=zA.sketch({dom:s,components:_.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Sy("image-tools-resize-buttons-events",[xi(mP.disable(),(function(t,e){a(_,t)})),xi(mP.enable(),(function(t,e){u(_,t)}))])])}),E=function(t,e){return function(n){return t(n,e)}},T=E(aN,"h"),D=E(aN,"v"),I=E(cN,-90),B=E(cN,90),L=function(t,e){p(t,e)},N=[v(),b(),o("flip-horizontally","Flip horizontally",(function(t){L(t,T)}),!1),o("flip-vertically","Flip vertically",(function(t){L(t,D)}),!1),o("rotate-left","Rotate counterclockwise",(function(t){L(t,I)}),!1),o("rotate-right","Rotate clockwise",(function(t){L(t,B)}),!1),b(),y()],P=zA.sketch({dom:s,components:N.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Sy("image-tools-fliprotate-buttons-events",[xi(mP.disable(),(function(t,e){a(N,t)})),xi(mP.enable(),(function(t,e){u(N,t)}))])])}),M=function(t,e,r,o,a){var u=uB.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:n.translate(t)}}),s=uB.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=uB.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Jx(uB.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:a,getInitialValue:i({x:o})},components:[u,s,c],sliderBehaviours:Fl([By.config({})]),onChoose:e}))},j=function(t,e,n,r,o){var i=function(t,n,r){var o=E(e,r.x/100);h(t,o)};return M(t,i,n,r,o)},R=function(t,e,n,r,o){return[v(),j(t,e,n,r,o),y()]},$=function(t,e,n,r,o){var i=R(t,e,n,r,o);return zA.sketch({dom:s,components:i.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Sy("image-tools-filter-panel-buttons-events",[xi(mP.disable(),(function(t,e){a(i,t)})),xi(mP.enable(),(function(t,e){u(i,t)}))])])})},F=[v(),b(),y()],V=zA.sketch({dom:s,components:F.map((function(t){return t.asSpec()}))}),H=$("Brightness",oN,-100,0,100),z=$("Contrast",iN,-100,0,100),U=$("Gamma",nN,-100,0,100),W=function(t,e,n){return function(r){return rN(r,t,e,n)}},q=function(t){var e=function(t,e,n){var r=G.getOpt(t),o=X.getOpt(t),i=Y.getOpt(t);r.each((function(e){o.each((function(n){i.each((function(r){var o=Yp.getValue(e).x/100,i=Yp.getValue(r).x/100,a=Yp.getValue(n).x/100,u=W(o,i,a);h(t,u)}))}))}))};return M(t,e,0,100,200)},G=q("R"),Y=q("G"),X=q("B"),K=[v(),G,Y,X,y()],Z=zA.sketch({dom:s,components:K.map((function(t){return t.asSpec()}))}),J=function(t,e,n){return function(r){var o=function(){at.getOpt(r).each((function(e){wy.set(e,[t]),n(e)}))};l(r,fP.swap(),{transform:e,swap:o})}},Q=function(e){t.showCrop()},tt=function(e){k.getOpt(e).each((function(e){var n=t.getMeasurements(),r=n.width,o=n.height;Yp.setValue(e,{width:r,height:o})}))},et=w.some(eN),nt=w.some(tN),rt=[o("crop","Crop",J(S,w.none(),Q),!1),o("resize","Resize",J(A,w.none(),tt),!1),o("orientation","Orientation",J(P,w.none(),c),!1),o("brightness","Brightness",J(H,w.none(),c),!1),o("sharpen","Sharpen",J(V,et,c),!1),o("contrast","Contrast",J(z,w.none(),c),!1),o("color-levels","Color levels",J(Z,w.none(),c),!1),o("gamma","Gamma",J(U,w.none(),c),!1),o("invert","Invert",J(V,nt,c),!1)],ot=zA.sketch({dom:s,components:rt.map((function(t){return t.asSpec()}))}),it=zA.sketch({dom:{tag:"div"},components:[ot],containerBehaviours:Fl([wy.config({})])}),at=Jx(it),ut=function(t){return at.getOpt(t).map((function(t){var e=t.components()[0];return e.components()[e.components().length-1]}))};return{memContainer:at,getApplyButton:ut}},vP=tinymce.util.Tools.resolve("tinymce.geom.Rect"),bP=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),yP=tinymce.util.Tools.resolve("tinymce.util.Observable"),xP=tinymce.util.Tools.resolve("tinymce.util.VK");function wP(t){var e=Math.max,n=t.documentElement,r=t.body,o=e(n.scrollWidth,r.scrollWidth),i=e(n.clientWidth,r.clientWidth),a=e(n.offsetWidth,r.offsetWidth),u=e(n.scrollHeight,r.scrollHeight),s=e(n.clientHeight,r.clientHeight),c=e(n.offsetHeight,r.offsetHeight);return{width:o<a?i:o,height:u<c?s:u}}function CP(t){var e,n;if(t.changedTouches)for(e="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<e.length;n++)t[e[n]]=t.changedTouches[0][e[n]]}function SP(t,e){var n,r,o,i,a=e.document||document,u=a.getElementById(e.handle||t),s=function(t){var s,f=wP(a);CP(t),t.preventDefault(),r=t.button;var d=u;o=t.screenX,i=t.screenY,s=window.getComputedStyle?window.getComputedStyle(d,null).getPropertyValue("cursor"):d.runtimeStyle.cursor,n=bP("<div></div>").css({position:"absolute",top:0,left:0,width:f.width,height:f.height,zIndex:2147483647,opacity:1e-4,cursor:s}).appendTo(a.body),bP(a).on("mousemove touchmove",c).on("mouseup touchend",l),e.start(t)},c=function(t){if(CP(t),t.button!==r)return l(t);t.deltaX=t.screenX-o,t.deltaY=t.screenY-i,t.preventDefault(),e.drag(t)},l=function(t){CP(t),bP(a).off("mousemove touchmove",c).off("mouseup touchend",l),n.remove(),e.stop&&e.stop(t)};this.destroy=function(){bP(u).off()},bP(u).on("mousedown touchstart",s)}var kP=0,OP=function(t,e,n,r,o){var i,a="tox-",u=a+"crid-"+kP++,s=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],c=["top","right","bottom","left"],l=function(t,e){return{x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},f=function(t,e){return{x:e.x-t.x,y:e.y-t.y,w:e.w,h:e.h}},d=function(){return f(n,t)};function h(e,r,o,i){var a,u,s,c,l;a=r.x,u=r.y,s=r.w,c=r.h,a+=o*e.deltaX,u+=i*e.deltaY,s+=o*e.deltaW,c+=i*e.deltaH,s<20&&(s=20),c<20&&(c=20),l=t=vP.clamp({x:a,y:u,w:s,h:c},n,"move"===e.name),l=f(n,l),C.fire("updateRect",{rect:l}),y(l)}function p(){function e(e){var n;return new SP(u,{document:r.ownerDocument,handle:u+"-"+e.name,start:function(){n=t},drag:function(t){h(e,n,t.deltaX,t.deltaY)}})}bP('<div id="'+u+'" class="'+a+'croprect-container" role="grid" aria-dropeffect="execute">').appendTo(r),NB.each(c,(function(t){bP("#"+u,r).append('<div id="'+u+"-"+t+'"class="'+a+'croprect-block" style="display: none" data-mce-bogus="all">')})),NB.each(s,(function(t){bP("#"+u,r).append('<div id="'+u+"-"+t.name+'" class="'+a+"croprect-handle "+a+"croprect-handle-"+t.name+'"style="display: none" data-mce-bogus="all" role="gridcell" tabindex="-1" aria-label="'+t.label+'" aria-grabbed="false" title="'+t.label+'">')})),i=NB.map(s,e),g(t),bP(r).on("focusin focusout",(function(t){bP(t.target).attr("aria-grabbed","focus"===t.type?"true":"false")})),bP(r).on("keydown",(function(e){var n;function r(t,e,r,o,i){t.stopPropagation(),t.preventDefault(),h(n,r,o,i)}switch(NB.each(s,(function(t){if(e.target.id===u+"-"+t.name)return n=t,!1})),e.keyCode){case xP.LEFT:r(e,n,t,-10,0);break;case xP.RIGHT:r(e,n,t,10,0);break;case xP.UP:r(e,n,t,0,-10);break;case xP.DOWN:r(e,n,t,0,10);break;case xP.ENTER:case xP.SPACEBAR:e.preventDefault(),o();break}}))}function m(t){var e=NB.map(s,(function(t){return"#"+u+"-"+t.name})).concat(NB.map(c,(function(t){return"#"+u+"-"+t}))).join(",");t?bP(e,r).show():bP(e,r).hide()}function g(t){function n(t,e){e.h<0&&(e.h=0),e.w<0&&(e.w=0),bP("#"+u+"-"+t,r).css({left:e.x,top:e.y,width:e.w,height:e.h})}NB.each(s,(function(e){bP("#"+u+"-"+e.name,r).css({left:t.w*e.xMul+t.x,top:t.h*e.yMul+t.y})})),n("top",{x:e.x,y:e.y,w:e.w,h:t.y-e.y}),n("right",{x:t.x+t.w,y:t.y,w:e.w-t.x-t.w+e.x,h:t.h}),n("bottom",{x:e.x,y:t.y+t.h,w:e.w,h:e.h-t.y-t.h+e.y}),n("left",{x:e.x,y:t.y,w:t.x-e.x,h:t.h}),n("move",t)}function v(e){t=e,g(t)}function b(n){e=n,g(t)}function y(t){v(l(n,t))}function x(e){n=e,g(t)}function w(){NB.each(i,(function(t){t.destroy()})),i=[]}p();var C=NB.extend({toggleVisibility:m,setClampRect:x,setRect:v,getInnerRect:d,setInnerRect:y,setViewPortRect:b,destroy:w},yP);return C},_P={create:OP},AP=function(t){return new Ow((function(e){var n=function(){t.removeEventListener("load",n),e(t)};t.complete?e(t):t.addEventListener("load",n)}))},EP=function(t){var e=Jx({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=Xn(1),r=Xn(w.none()),o=Xn({x:0,y:0,w:1,h:1}),i=Xn({x:0,y:0,w:1,h:1}),a=function(t,i){p.getOpt(t).each((function(t){var a=n.get(),u=Ns(t.element),s=Ss(t.element),c=i.dom.naturalWidth*a,l=i.dom.naturalHeight*a,f=Math.max(0,u/2-c/2),d=Math.max(0,s/2-l/2),h={left:f.toString()+"px",top:d.toString()+"px",width:c.toString()+"px",height:l.toString()+"px",position:"absolute"};Ku(i,h),e.getOpt(t).each((function(t){Ku(t.element,h)})),r.get().each((function(t){var e=o.get();t.setRect({x:e.x*a+f,y:e.y*a+d,w:e.w*a,h:e.h*a}),t.setClampRect({x:f,y:d,w:c,h:l}),t.setViewPortRect({x:0,y:0,w:u,h:s})}))}))},u=function(t,e){p.getOpt(t).each((function(t){var r=Ns(t.element),o=Ss(t.element),i=e.dom.naturalWidth,a=e.dom.naturalHeight,u=Math.min(r/i,o/a);u>=1?n.set(1):n.set(u)}))},s=function(t,e){var n=er.fromTag("img");return ha(n,"src",e),AP(n.dom).then((function(){return p.getOpt(t).map((function(t){var e=vs({element:n});wy.replaceAt(t,1,w.some(e));var r=i.get(),s={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};i.set(s);var c=vP.inflate(s,-20,-20);return o.set(c),r.w===s.w&&r.h===s.h||u(t,n),a(t,n),n}))}))},c=function(t,e){var r=n.get(),o=e>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(o),p.getOpt(t).each((function(t){var e=t.components()[1].element;a(t,e)}))},l=function(){r.get().each((function(t){t.toggleVisibility(!0)}))},f=function(){r.get().each((function(t){t.toggleVisibility(!1)}))},d=function(){return o.get()},h=zA.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[e.asSpec(),{dom:{tag:"img",attributes:{src:t}}},{dom:{tag:"div"},behaviours:Fl([Sy("image-panel-crop-events",[Di((function(t){p.getOpt(t).each((function(t){var e=t.element.dom,i=_P.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},e,(function(){}));i.toggleVisibility(!1),i.on("updateRect",(function(t){var e=t.rect,r=n.get(),i={x:Math.round(e.x/r),y:Math.round(e.y/r),w:Math.round(e.w/r),h:Math.round(e.h/r)};o.set(i)})),r.set(w.some(i))}))}))])])}],containerBehaviours:Fl([wy.config({}),Sy("image-panel-events",[Di((function(e){s(e,t)}))])])}),p=Jx(h),m=function(){var t=i.get();return{width:t.w,height:t.h}};return{memContainer:p,updateSrc:s,zoom:c,showCrop:l,hideCrop:f,getRect:d,getMeasurements:m}},TP=function(t,e,n,r,o){return PN({name:t,icon:w.some(e),disabled:n,tooltip:w.some(t),primary:!1,borderless:!1},r,o)},DP=function(t,e){e?XS.enable(t):XS.disable(t)},IP=function(t){var e=function(t,e,o){n.getOpt(t).each((function(t){DP(t,e)})),r.getOpt(t).each((function(t){DP(t,o)}))},n=Jx(TP("Undo","undo",!0,(function(t){fi(t,fP.undo(),{direction:1})}),t)),r=Jx(TP("Redo","redo",!0,(function(t){fi(t,fP.redo(),{direction:1})}),t)),o=zA.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),TP("Zoom in","zoom-in",!1,(function(t){fi(t,fP.zoom(),{direction:1})}),t),TP("Zoom out","zoom-out",!1,(function(t){fi(t,fP.zoom(),{direction:-1})}),t)]});return{container:o,updateButtonUndoStates:e}};function BP(){var t=[],e=-1;function n(n){var r=t.splice(++e);return t.push(n),{state:n,removed:r}}function r(){if(i())return t[--e]}function o(){if(a())return t[++e]}function i(){return e>0}function a(){return-1!==e&&e<t.length-1}return{data:t,add:n,undo:r,redo:o,canUndo:i,canRedo:a}}var LP,NP=function(t){var e=Xn(t),n=Xn(w.none()),r=BP();r.add(t);var o=function(){return e.get()},i=function(t){e.set(t)},a=function(){return n.get().fold((function(){return e.get()}),(function(t){return t}))},u=function(t){var e=s(t);return f(),n.set(w.some(e)),e.url},s=function(t){return{blob:t,url:URL.createObjectURL(t)}},c=function(t){URL.revokeObjectURL(t.url)},l=function(t){NB.each(t,c)},f=function(){n.get().each(c),n.set(w.none())},d=function(t){var e=s(t);i(e);var n=r.add(e).removed;return l(n),e.url},h=function(t){var e=s(t);return n.set(w.some(e)),e.url},p=function(t){return n.get().fold((function(){}),(function(e){d(e.blob),t()}))},m=function(){var t=r.undo();return i(t),t.url},g=function(){var t=r.redo();return i(t),t.url},v=function(){var t=r.canUndo(),e=r.canRedo();return{undoEnabled:t,redoEnabled:e}};return{getBlobState:o,setBlobState:i,addBlobState:d,getTempState:a,updateTempState:u,addTempState:h,applyTempState:p,destroyTempState:f,undo:m,redo:g,getHistoryStates:v}},PP=function(t,n){var r=NP(t.currentState),o=function(t,e){var n=e.event.direction;k.zoom(t,n)},i=function(t){var e=r.getHistoryStates();O.updateButtonUndoStates(t,e.undoEnabled,e.redoEnabled),fi(t,mP.formActionEvent,{name:mP.saveState(),value:e.undoEnabled})},a=function(t){O.updateButtonUndoStates(t,!1,!1)},u=function(t,e){var n=r.undo();d(t,n).then((function(e){f(t),i(t)}))},s=function(t,e){var n=r.redo();d(t,n).then((function(e){f(t),i(t)}))},c=function(t){return t.toBlob()},l=function(t){fi(t,mP.formActionEvent,{name:mP.disable(),value:{}})},f=function(t){_.getApplyButton(t).each((function(t){XS.enable(t)})),fi(t,mP.formActionEvent,{name:mP.enable(),value:{}})},d=function(t,e){return l(t),k.updateSrc(t,e)},h=function(t,e,n,r,o){return l(t),CL(e).then(n).then(c).then(r).then((function(e){return d(t,e).then((function(e){return i(t),o(),f(t),e}))})).catch((function(e){return console.log(e),f(t),e}))},p=function(t,e,n){var o=r.getBlobState().blob,i=function(t){return r.updateTempState(t)};h(t,o,e,i,n)},m=function(t,n){var o=r.getTempState().blob,i=function(t){return r.addTempState(t)};h(t,o,n,i,e)},g=function(t,e,n){var o=r.getBlobState().blob,i=function(e){var n=r.addBlobState(e);return b(t),n};h(t,o,e,i,n)},v=function(t,e){var n=function(){b(t);var n=e.event.swap;n()};r.applyTempState(n)},b=function(t){var e=r.getBlobState().url;return r.destroyTempState(),i(t),e},y=function(t){var e=b(t);d(t,e).then((function(e){f(t)}))},x=function(t,e){y(t);var n=e.event.swap;n(),k.hideCrop()},w=function(t,n){return p(t,n.event.transform,e)},C=function(t,e){return m(t,e.event.transform)},S=function(t,e){return g(t,e.event.transform,e.event.swap)},k=EP(t.currentState.url),O=IP(n),_=gP(k,n),A=function(t,e){a(t);var n=e.event.transform,r=e.event.swap;n.fold((function(){r()}),(function(e){p(t,e,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[_.memContainer.asSpec(),k.memContainer.asSpec(),O.container],behaviours:Fl([Yp.config({store:{mode:"manual",getValue:function(){return r.getBlobState()}}}),Sy("image-tools-events",[xi(fP.undo(),u),xi(fP.redo(),s),xi(fP.zoom(),o),xi(fP.back(),x),xi(fP.apply(),v),xi(fP.transform(),w),xi(fP.tempTransform(),C),xi(fP.transformApply(),S),xi(fP.swap(),A)]),_B.self()])}},MP=function(t,e){var n={dom:{tag:"label",innerHtml:e.providers.translate(t.label),classes:["tox-label"]}},r=W(t.items,e.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:Fl([_B.self(),wy.config({}),HB.domHtml(w.none()),fy.config({mode:"acyclic"})])}},jP=function(t){return!Ft(t,"items")},RP="data-value",$P=function(t,e,n,r){return W(n,(function(n){return jP(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){Yp.setValue(t,n.value),fi(t,uE,{name:e}),By.focus(t)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return $P(t,e,n.items,r)}}}))},FP=function(t,e){return dt(t,(function(t){return jP(t)?pg(t.value===e,t):FP(t.items,e)}))},VP=function(t,n){var r=n.shared.providers,o=ct(t.items).filter(jP),a=t.label.map((function(t){return aE(t,r)})),u=XA.parts.field({dom:{},factory:{sketch:function(r){return yN({uid:r.uid,text:o.map((function(t){return t.text})),icon:w.none(),tooltip:t.label,role:w.none(),fetch:function(e,r){var o=$P(e,t.name,t.items,Yp.getValue(e));r(TN(o,sC.CLOSE_ON_EXECUTE,n,!1))},onSetup:i(e),getApi:i({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[QA.config({}),Yp.config({store:{mode:"manual",initialValue:o.map((function(t){return t.value})).getOr(""),getValue:function(t){return ma(t.element,RP)},setValue:function(e,n){FP(t.items,n).each((function(t){ha(e.element,RP,t.value),fi(e,vN,{text:t.text})}))}}})]},"tox-listbox",n.shared)}}}),s={dom:{tag:"div",classes:["tox-listboxfield"]},components:[u]};return XA.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:et([a.toArray(),[s]]),fieldBehaviours:Fl([XS.config({disabled:i(t.disabled),onDisabled:function(t){XA.getField(t).each(XS.disable)},onEnabled:function(t){XA.getField(t).each(XS.enable)}})])})},HP=function(t,e){return{dom:{tag:"div",classes:t.classes},components:W(t.items,e.shared.interpreter)}},zP=function(t,e){var n=W(t.options,(function(t){return{dom:{tag:"option",value:t.value,innerHtml:t.text}}})),r=t.data.map((function(t){return ce("initialValue",t)})).getOr({});return{uid:t.uid,dom:{tag:"select",classes:t.selectClasses,attributes:t.selectAttributes},components:n,behaviours:Zp(t.selectBehaviours,[By.config({}),Yp.config({store:h({mode:"manual",getValue:function(t){return is(t.element)},setValue:function(e,n){var r=Q(t.options,(function(t){return t.value===n}));r.isSome()&&as(e.element,n)}},r)})])}},UP=ug({name:"HtmlSelect",configFields:[yn("options"),Xp("selectBehaviours",[By,Yp]),Rn("selectClasses",[]),Rn("selectAttributes",{}),Dn("data")],factory:zP}),WP=function(t,e){var n=W(t.items,(function(t){return{text:e.translate(t.text),value:t.value}})),r=t.label.map((function(t){return aE(t,e)})),o=XA.parts.field({dom:{},selectAttributes:{size:t.size},options:n,factory:UP,selectBehaviours:Fl([XS.config({disabled:function(){return t.disabled||e.isDisabled()}}),QA.config({}),Sy("selectbox-change",[xi(Lo(),(function(e,n){fi(e,uE,{name:t.name})}))])])}),i=t.size>1?w.none():w.some({dom:{tag:"div",classes:["tox-selectfield__icon-js"],innerHtml:tw("chevron-down",e.icons)}}),a={dom:{tag:"div",classes:["tox-selectfield"]},components:et([[o],i.toArray()])};return XA.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:et([r.toArray(),[a]]),fieldBehaviours:Fl([XS.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){XA.getField(t).each(XS.disable)},onEnabled:function(t){XA.getField(t).each(XS.enable)}}),Hk()])})},qP=function(t,e){var n=function(t){return{dom:{tag:"th",innerHtml:e.translate(t)}}},r=function(t){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:W(t,n)}]}},o=function(t){return{dom:{tag:"td",innerHtml:e.translate(t)}}},i=function(t){return{dom:{tag:"tr"},components:W(t,o)}},a=function(t){return{dom:{tag:"tbody"},components:W(t,i)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(t.header),a(t.cells)],behaviours:Fl([QA.config({}),By.config({})])}},GP=function(t,e){var n=t.label.map((function(t){return aE(t,e)})),r=[XS.config({disabled:function(){return t.disabled||e.isDisabled()}}),Hk(),fy.config({mode:"execution",useEnter:!0!==t.multiline,useControlEnter:!0===t.multiline,execute:function(t){return li(t,fE),w.some(!0)}}),Sy("textfield-change",[xi(Bo(),(function(e,n){fi(e,uE,{name:t.name})})),xi(Vo(),(function(e,n){fi(e,uE,{name:t.name})}))]),QA.config({})],o=t.validation.map((function(t){return qE.config({getRoot:function(t){return Wi(t.element)},invalidClass:"tox-invalid",validator:{validate:function(e){var n=Yp.getValue(e),r=t.validator(n);return NE.pure(!0===r?gt.value(n):gt.error(r))},validateOnLoad:t.validateOnLoad}})})).toArray(),a=t.placeholder.fold(i({}),(function(t){return{placeholder:e.translate(t)}})),u=t.inputMode.fold(i({}),(function(t){return{inputmode:t}})),s=h(h({},a),u),c=XA.parts.field({tag:!0===t.multiline?"textarea":"input",inputAttributes:s,inputClasses:[t.classname],inputBehaviours:Fl(et([r,o])),selectOnFocus:!1,factory:CE}),l=t.flex?["tox-form__group--stretched"]:[],f=l.concat(t.maximized?["tox-form-group--maximize"]:[]),d=[XS.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){XA.getField(t).each(XS.disable)},onEnabled:function(t){XA.getField(t).each(XS.enable)}}),Hk()];return eE(n,c,f,d)},YP=function(t,e){return GP({name:t.name,multiline:!1,label:t.label,inputMode:t.inputMode,placeholder:t.placeholder,flex:!1,disabled:t.disabled,classname:"tox-textfield",validation:w.none(),maximized:t.maximized},e)},XP=function(t,e){return GP({name:t.name,multiline:!0,label:t.label,inputMode:w.none(),placeholder:t.placeholder,flex:!0,disabled:t.disabled,classname:"tox-textarea",validation:w.none(),maximized:t.maximized},e)},KP=function(t,e){var n=t.stream.streams,r=n.setup(t,e);return gi([xi(t.event,r),Ii((function(){return e.cancel()}))].concat(t.cancelEvent.map((function(t){return[xi(t,(function(){return e.cancel()}))]})).getOr([])))},ZP=Object.freeze({__proto__:null,events:KP}),JP=function(t){var e=Xn(null),n=function(){return{timer:null!==e.get()?"set":"unset"}},r=function(t){e.set(t)},o=function(){var t=e.get();null!==t&&t.cancel()};return Ya({readState:n,setTimer:r,cancel:o})},QP=function(t){return t.stream.streams.state(t)},tM=Object.freeze({__proto__:null,throttle:JP,init:QP}),eM=function(t,e){var n=t.stream,r=cw(t.onStream,n.delay);return e.setTimer(r),function(t,e){r.throttle(t,e),n.stopEvent&&e.stop()}},nM=[xn("stream",sn("mode",{throttle:[yn("delay"),Rn("stopEvent",!0),Hc("streams",{setup:eM,state:JP})]})),Rn("event","input"),Dn("cancelEvent"),Fc("onStream")],rM=Hl({fields:nM,name:"streaming",active:ZP,state:tM}),oM=function(t,e,n){var r=Yp.getValue(n);Yp.setValue(e,r),aM(e)},iM=function(t,e){var n=t.element,r=is(n),o=n.dom;"number"!==ma(n,"type")&&e(o,r)},aM=function(t){iM(t,(function(t,e){return t.setSelectionRange(e.length,e.length)}))},uM=function(t,e){iM(t,(function(t,n){return t.setSelectionRange(e,n.length)}))},sM=function(t,e,n){if(t.selectsOver){var r=Yp.getValue(e),o=t.getDisplayText(r),i=Yp.getValue(n),a=t.getDisplayText(i);return 0===a.indexOf(o)?w.some((function(){oM(t,e,n),uM(e,o.length)})):w.none()}return w.none()},cM=i("alloy.typeahead.itemexecute"),lM=function(t,n,r,o){var i=function(n,r,i){t.previewing.set(!1);var a=JE.getCoupled(n,"sandbox");if(dp.isOpen(a))yg.getCurrent(a).each((function(t){$g.getHighlighted(t).fold((function(){i(t)}),(function(){mi(a,t.element,"keydown",r)}))}));else{var s=function(t){yg.getCurrent(t).each(i)};oT(t,u(n),n,a,o,s,OE.HighlightFirst).get(e)}},a=bE(t),u=function(t){return function(e){return e.map((function(e){var n=Rt(e.menus),r=nt(n,(function(t){return X(t.items,(function(t){return"item"===t.type}))})),o=Yp.getState(t);return o.update(W(r,(function(t){return t.data}))),e}))}},s=[By.config({}),Yp.config({onSetValue:t.onSetValue,store:h({mode:"dataset",getDataKey:function(t){return is(t.element)},getFallbackEntry:function(t){return{value:t,meta:{}}},setValue:function(e,n){as(e.element,t.model.getDisplayText(n))}},t.initialData.map((function(t){return ce("initialValue",t)})).getOr({}))}),rM.config({stream:{mode:"throttle",delay:t.responseTime,stopEvent:!1},onStream:function(n,r){var i=JE.getCoupled(n,"sandbox"),a=By.isFocused(n);if(a&&is(n.element).length>=t.minChars){var s=yg.getCurrent(i).bind((function(t){return $g.getHighlighted(t).map(Yp.getValue)}));t.previewing.set(!0);var c=function(e){yg.getCurrent(i).each((function(e){s.fold((function(){t.model.selectsOver&&$g.highlightFirst(e)}),(function(t){$g.highlightBy(e,(function(e){var n=Yp.getValue(e);return n.value===t.value})),$g.getHighlighted(e).orThunk((function(){return $g.highlightFirst(e),w.none()}))}))}))};oT(t,u(n),n,i,o,c,OE.HighlightFirst).get(e)}},cancelEvent:Yo()}),fy.config({mode:"special",onDown:function(t,e){return i(t,e,$g.highlightFirst),w.some(!0)},onEscape:function(t){var e=JE.getCoupled(t,"sandbox");return dp.isOpen(e)?(dp.close(e),w.some(!0)):w.none()},onUp:function(t,e){return i(t,e,$g.highlightLast),w.some(!0)},onEnter:function(e){var n=JE.getCoupled(e,"sandbox"),r=dp.isOpen(n);if(r&&!t.previewing.get())return yg.getCurrent(n).bind((function(t){return $g.getHighlighted(t)})).map((function(t){return fi(e,cM(),{item:t}),!0}));var o=Yp.getValue(e);return li(e,Yo()),t.onExecute(n,e,o),r&&dp.close(n),w.some(!0)}}),Zy.config({toggleClass:t.markers.openClass,aria:{mode:"expanded"}}),JE.config({others:{sandbox:function(e){return lT(t,e,{onOpen:function(){return Zy.on(e)},onClose:function(){return Zy.off(e)}})}}}),Sy("typeaheadevents",[Li((function(n){var r=e;aT(t,u(n),n,o,r,OE.HighlightFirst).get(e)})),xi(cM(),(function(e,n){var r=JE.getCoupled(e,"sandbox");oM(t.model,e,n.event.item),li(e,Yo()),t.onItemExecute(e,r,n.event.item,Yp.getValue(e)),dp.close(r),aM(e)}))].concat(t.dismissOnBlur?[xi(Fo(),(function(t){var e=JE.getCoupled(t,"sandbox");tf(e.element).isNone()&&dp.close(e)}))]:[]))];return{uid:t.uid,dom:xE(Yt(t,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:h(h({},a),Zp(t.typeaheadBehaviours,s)),eventOrder:t.eventOrder}},fM=i([Dn("lazySink"),yn("fetch"),Rn("minChars",5),Rn("responseTime",1e3),Rc("onOpen"),Rn("getHotspot",w.some),Rn("getAnchorOverrides",i({})),Rn("layouts",w.none()),Rn("eventOrder",{}),Gn("model",{},[Rn("getDisplayText",(function(t){return void 0!==t.meta&&void 0!==t.meta.text?t.meta.text:t.value})),Rn("selectsOver",!0),Rn("populateFromBrowse",!0)]),Rc("onSetValue"),$c("onExecute"),Rc("onItemExecute"),Rn("inputClasses",[]),Rn("inputAttributes",{}),Rn("inputStyles",{}),Rn("matchWidth",!0),Rn("useMinWidth",!1),Rn("dismissOnBlur",!0),Mc(["openClass"]),Dn("initialData"),Xp("typeaheadBehaviours",[By,Yp,rM,fy,Zy,JE]),Yn("previewing",(function(){return Xn(!0)}))].concat(vE()).concat(dT())),dM=i([Em({schema:[Pc()],name:"menu",overrides:function(t){return{fakeFocus:!0,onHighlight:function(e,n){t.previewing.get()?e.getSystem().getByUid(t.uid).each((function(r){sM(t.model,r,n).fold((function(){return $g.dehighlight(e,n)}),(function(t){return t()}))})):e.getSystem().getByUid(t.uid).each((function(e){t.model.populateFromBrowse&&oM(t.model,e,n)})),t.previewing.set(!1)},onExecute:function(e,n){return e.getSystem().getByUid(t.uid).toOptional().map((function(t){return fi(t,cM(),{item:n}),!0}))},onHover:function(e,n){t.previewing.set(!1),e.getSystem().getByUid(t.uid).each((function(e){t.model.populateFromBrowse&&oM(t.model,e,n)}))}}}})]),hM=sg({name:"Typeahead",configFields:fM(),partFields:dM(),factory:lM}),pM=function(t){var e=function(){return pM(t.toCached())},n=function(e){return pM(t.bind((function(t){return t.fold((function(t){return NE.pure(gt.error(t))}),(function(t){return e(t)}))})))},r=function(e){return pM(t.map((function(t){return t.bind(e)})))},o=function(e){return pM(t.map((function(t){return t.map(e)})))},i=function(e){return pM(t.map((function(t){return t.mapError(e)})))},a=function(e,n){return t.map((function(t){return t.fold(e,n)}))},u=function(e,n){return pM(NE.nu((function(r){var o=!1,i=setTimeout((function(){o=!0,r(gt.error(n()))}),e);t.get((function(t){o||(clearTimeout(i),r(t))}))})))};return h(h({},t),{toCached:e,bindFuture:n,bindResult:r,mapResult:o,mapError:i,foldResult:a,withTimeout:u})},mM=function(t){return pM(NE.nu(t))},gM=function(t){return pM(NE.pure(gt.value(t)))},vM=function(t){return pM(NE.pure(gt.error(t)))},bM=function(t){return pM(NE.pure(t))},yM=function(t){return pM(t.map(gt.value))},xM=function(t){return mM((function(e){t.then((function(t){e(gt.value(t))}),(function(t){e(gt.error(t))}))}))},wM={nu:mM,wrap:pM,pure:gM,value:gM,error:vM,fromResult:bM,fromFuture:yM,fromPromise:xM},CM={type:"separator"},SM=function(t){return{type:"menuitem",value:t.url,text:t.title,meta:{attach:t.attach},onAction:function(){}}},kM=function(t,e){return{type:"menuitem",value:e,text:t,meta:{attach:void 0},onAction:function(){}}},OM=function(t){return W(t,SM)},_M=function(t,e){return X(e,(function(e){return e.type===t}))},AM=function(t,e){return OM(_M(t,e))},EM=function(t){return AM("header",t.targets)},TM=function(t){return AM("anchor",t.targets)},DM=function(t){return w.from(t.anchorTop).map((function(t){return kM("<top>",t)})).toArray()},IM=function(t){return w.from(t.anchorBottom).map((function(t){return kM("<bottom>",t)})).toArray()},BM=function(t){return W(t,(function(t){return kM(t,t)}))},LM=function(t){return Z(t,(function(t,e){var n=0===t.length||0===e.length;return n?t.concat(e):t.concat(CM,e)}),[])},NM=function(t,e){var n=t.toLowerCase();return X(e,(function(t){var e=void 0!==t.meta&&void 0!==t.meta.text?t.meta.text:t.text;return pr(e.toLowerCase(),n)||pr(t.value.toLowerCase(),n)}))},PM=function(t,e,n){var r=Yp.getValue(e),o=void 0!==r.meta.text?r.meta.text:r.value,i=n.getLinkInformation();return i.fold((function(){return[]}),(function(e){var r=NM(o,BM(n.getHistory(t)));return"file"===t?LM([r,NM(o,EM(e)),NM(o,et([DM(e),TM(e),IM(e)]))]):r}))},MM=Aa("aria-invalid"),jM=function(t,n,r){var o,i=n.shared.providers,a=function(e){var n=Yp.getValue(e);r.addToHistory(n.value,t.filetype)},u=XA.parts.field({factory:hM,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":MM,type:"url"},minChars:0,responseTime:0,fetch:function(e){var o=PM(t.filetype,e,r),i=TN(o,sC.BUBBLE_TO_SANDBOX,n,!1);return NE.pure(i)},getHotspot:function(t){return m.getOpt(t)},onSetValue:function(t,n){t.hasConfigured(qE)&&qE.run(t).get(e)},typeaheadBehaviours:Fl(et([r.getValidationHandler().map((function(e){return qE.config({getRoot:function(t){return Wi(t.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(t,e){l.getOpt(t).each((function(t){ha(t.element,"title",i.translate(e))}))}},validator:{validate:function(n){var r=Yp.getValue(n);return wM.nu((function(n){e({type:t.filetype,url:r.value},(function(t){if("invalid"===t.status){var e=gt.error(t.message);n(e)}else{var r=gt.value(t.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[XS.config({disabled:function(){return t.disabled||i.isDisabled()}}),QA.config({}),Sy("urlinput-events",et(["file"===t.filetype?[xi(Bo(),(function(e){fi(e,uE,{name:t.name})}))]:[],[xi(Lo(),(function(e){fi(e,uE,{name:t.name}),a(e)})),xi(Vo(),(function(e){fi(e,uE,{name:t.name}),a(e)}))]]))]])),eventOrder:(o={},o[Bo()]=["streaming","urlinput-events","invalidating"],o),model:{getDisplayText:function(t){return t.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:n.shared.getSink,parts:{menu:MC(!1,1,"normal")},onExecute:function(t,e,n){fi(e,fE,{})},onItemExecute:function(e,n,r,o){a(e),fi(e,uE,{name:t.name})}}),s=t.label.map((function(t){return aE(t,i)})),c=function(t,e,n,r){return void 0===n&&(n=t),void 0===r&&(r=t),{dom:{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+t],innerHtml:tw(n,i.icons),attributes:h({title:i.translate(r),"aria-live":"polite"},e.fold((function(){return{}}),(function(t){return{id:t}})))}}},l=Jx(c("invalid",w.some(MM),"warning")),f=Jx({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[l.asSpec()]}),d=r.getUrlPicker(t.filetype),p=Aa("browser.url.event"),m=Jx({dom:{tag:"div",classes:["tox-control-wrap"]},components:[u,f.asSpec()],behaviours:Fl([XS.config({disabled:function(){return t.disabled||i.isDisabled()}})])}),g=Jx(jN({name:t.name,icon:w.some("browse"),text:t.label.getOr(""),disabled:t.disabled,primary:!1,borderless:!0},(function(t){return li(t,p)}),i,[],["tox-browse-url"])),v=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:et([[m.asSpec()],d.map((function(){return g.asSpec()})).toArray()])}},b=function(e){yg.getCurrent(e).each((function(n){var r=Yp.getValue(n),o=h({fieldname:t.name},r);d.each((function(r){r(o).get((function(r){Yp.setValue(n,r),fi(e,uE,{name:t.name})}))}))}))};return XA.sketch({dom:oE(),components:s.toArray().concat([v()]),fieldBehaviours:Fl([XS.config({disabled:function(){return t.disabled||i.isDisabled()},onDisabled:function(t){XA.getField(t).each(XS.disable),g.getOpt(t).each(XS.disable)},onEnabled:function(t){XA.getField(t).each(XS.enable),g.getOpt(t).each(XS.enable)}}),Hk(),Sy("url-input-events",[xi(p,b)])])})},RM=function(t,e){return zA.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+t.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[Zx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:tw(t.icon,e.icons),attributes:{title:e.translate(t.iconTooltip)}},action:function(e){fi(e,lE,{name:"alert-banner",value:t.url})}})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:e.translate(t.text)}}]})},$M=function(t,e){var n=Yp.config({store:{mode:"manual",getValue:function(t){var e=t.element.dom;return e.checked},setValue:function(t,e){var n=t.element.dom;n.checked=e}}}),r=function(t){return t.element.dom.click(),w.some(!0)},o=XA.parts.field({factory:{sketch:a},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Fl([_B.self(),XS.config({disabled:function(){return t.disabled||e.isDisabled()}}),QA.config({}),By.config({}),n,fy.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),Sy("checkbox-events",[xi(Lo(),(function(e,n){fi(e,uE,{name:t.name})}))])])}),i=XA.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:e.translate(t.label)},behaviours:Fl([xT.config({})])}),u=function(t){var n="checked"===t?"selected":"unselected";return{dom:{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+t],innerHtml:tw(n,e.icons)}}},s=Jx({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[u("checked"),u("unchecked")]});return XA.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[o,s.asSpec(),i],fieldBehaviours:Fl([XS.config({disabled:function(){return t.disabled||e.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(t){XA.getField(t).each(XS.disable)},onEnabled:function(t){XA.getField(t).each(XS.enable)}}),Hk()])})},FM=function(t){return"presentation"===t.presets?zA.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html}}):zA.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html,attributes:{role:"document"}},containerBehaviours:Fl([QA.config({}),By.config({})])})},VM=function(t){return function(e,n,r){return $t(n,"name").fold((function(){return t(n,r)}),(function(o){return e.field(o,t(n,r))}))}},HM=function(t){return function(e,n,r){var o=Yt(n,{source:"dynamic"});return VM(t)(e,o,r)}},zM={bar:VM((function(t,e){return WA(t,e.shared)})),collection:VM((function(t,e){return gE(t,e.shared.providers)})),alertbanner:VM((function(t,e){return RM(t,e.shared.providers)})),input:VM((function(t,e){return YP(t,e.shared.providers)})),textarea:VM((function(t,e){return XP(t,e.shared.providers)})),label:VM((function(t,e){return MP(t,e.shared)})),iframe:HM((function(t,e){return nL(t,e.shared.providers)})),button:VM((function(t,e){return HN(t,e.shared.providers)})),checkbox:VM((function(t,e){return $M(t,e.shared.providers)})),colorinput:VM((function(t,e){return OT(t,e.shared,e.colorinput)})),colorpicker:VM(DB),dropzone:VM((function(t,e){return WB(t,e.shared.providers)})),grid:VM((function(t,e){return qB(t,e.shared)})),listbox:VM((function(t,e){return VP(t,e)})),selectbox:VM((function(t,e){return WP(t,e.shared.providers)})),sizeinput:VM((function(t,e){return eP(t,e.shared.providers)})),urlinput:VM((function(t,e){return jM(t,e,e.urlinput)})),customeditor:VM(LB),htmlpanel:VM(FM),imagetools:VM((function(t,e){return PP(t,e.shared.providers)})),table:VM((function(t,e){return qP(t,e.shared.providers)})),panel:VM((function(t,e){return HP(t,e)}))},UM={field:function(t,e){return e}},WM=function(t,e,n){var r=Yt(n,{shared:{interpreter:function(e){return qM(t,e,r)}}});return qM(t,e,r)},qM=function(t,e,n){return $t(zM,e.type).fold((function(){return console.error('Unknown factory type "'+e.type+'", defaulting to container: ',e),e}),(function(r){return r(t,e,n)}))},GM=function(t,e){var n=UM;return qM(n,t,e)},YM={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},XM=function(t,e,n){var r=Pf(-12,12,YM),o={maxHeightFunction:Df()},i=function(){return{anchor:"node",root:Ru(t()),node:w.from(t()),bubble:r,layouts:{onRtl:function(){return[qx]},onLtr:function(){return[Wx]}},overrides:o}},a=function(){return{anchor:"hotspot",hotspot:e(),bubble:r,layouts:{onRtl:function(){return[ml]},onLtr:function(){return[gl]}},overrides:o}};return function(){return n()?i():a()}},KM=function(t,e,n){var r=function(){return{anchor:"node",root:Ru(t()),node:w.from(t()),layouts:{onRtl:function(){return[Gx]},onLtr:function(){return[Gx]}}}},o=function(){return{anchor:"hotspot",hotspot:e(),layouts:{onRtl:function(){return[xl]},onLtr:function(){return[xl]}}}};return function(){return n()?r():o()}},ZM=function(t,e){return function(){return{anchor:"selection",root:e(),getSelection:function(){var e=t.selection.getRng();return w.some(hd.range(er.fromDom(e.startContainer),e.startOffset,er.fromDom(e.endContainer),e.endOffset))}}}},JM=function(t){return function(e){return{anchor:"node",root:t(),node:e}}},QM=function(t,e,n){var r=Sk(t),o=function(){return er.fromDom(t.getBody())},i=function(){return er.fromDom(t.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:XM(i,e,a),banner:KM(i,e,a),cursor:ZM(t,o),node:JM(o)}},tj=function(t){return function(e,n){var r=__(t);r(e,n)}},ej=function(t){return function(){return s_(t)}},nj=function(t){return function(){return l_(t)}},rj=function(t){return function(){return b_(t)}},oj=function(t){return{colorPicker:tj(t),hasCustomColors:ej(t),getColors:nj(t),getColorCols:rj(t)}},ij=function(t){return function(){return Ak(t)}},aj=function(t){return{isDraggableModal:ij(t)}},uj=function(t){var e=Xn(yk(t)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===e.get()},getDockingMode:e.get,setDockingMode:e.set}},sj=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],cj=function(t){return Ft(t,"items")},lj=function(t){return Ft(t,"block")},fj=function(t){return Ft(t,"inline")},dj=function(t){return Ft(t,"selector")},hj=function(t){return Z(t,(function(t,e){if(cj(e)){var n=hj(e.items);return{customFormats:t.customFormats.concat(n.customFormats),formats:t.formats.concat([{title:e.title,items:n.formats}])}}if(fj(e)||lj(e)||dj(e)){var r=_(e.name)?e.name:e.title.toLowerCase(),o="custom-"+r;return{customFormats:t.customFormats.concat([{name:o,format:e}]),formats:t.formats.concat([{title:e.title,format:o,icon:e.icon}])}}return h(h({},t),{formats:t.formats.concat(e)})}),{customFormats:[],formats:[]})},pj=function(t,e){var n=hj(e),r=function(e){q(e,(function(e){t.formatter.has(e.name)||t.formatter.register(e.name,e.format)}))};return t.formatter?r(n.customFormats):t.on("init",(function(){r(n.customFormats)})),n.formats},mj=function(t){return ak(t).map((function(e){var n=pj(t,e);return uk(t)?sj.concat(n):n})).getOr(sj)},gj=function(t,e,n){var r={type:"formatter",isSelected:e(t.format),getStylePreview:n(t.format)};return Yt(t,r)},vj=function(t,e,n,r){var o=function(t){return gj(t,n,r)},i=function(t){var e={type:"submenu"};return Yt(t,e)},a=function(e){var o=_(e.name)?e.name:Aa(e.title),i="custom-"+o,a={type:"formatter",format:i,isSelected:n(i),getStylePreview:r(i)},u=Yt(e,a);return t.formatter.register(o,u),u},u=function(t){return W(t,(function(t){var e=Et(t);if(Vt(t,"items")){var n=u(t.items);return Yt(i(t),{getStyleItems:function(){return n}})}return Vt(t,"format")?o(t):1===e.length&&V(e,"title")?Yt(t,{type:"separator"}):a(t)}))};return u(e)},bj=function(t){var e=function(e){return function(){return t.formatter.match(e)}},n=function(e){return function(){var n=t.formatter.get(e);return void 0!==n?w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))}):w.none()}},r=function(t){var e=t.items;return void 0!==e&&e.length>0?nt(e,r):[t.format]},o=Xn([]),i=Xn([]),a=Xn([]),u=Xn([]),s=Xn(!1);t.on("PreInit",(function(a){var u=mj(t),s=vj(t,u,e,n);o.set(s),i.set(nt(s,r))})),t.on("addStyleModifications",(function(o){var i=vj(t,o.items,e,n);a.set(i),s.set(o.replace),u.set(nt(i,r))}));var c=function(){var t=s.get()?[]:o.get(),e=a.get();return t.concat(e)},l=function(){var t=s.get()?[]:i.get(),e=u.get();return t.concat(e)};return{getData:c,getFlattenedKeys:l}},yj=NB.trim,xj=function(t){return function(e){if(e&&1===e.nodeType){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},wj=xj("true"),Cj=xj("false"),Sj=function(t,e,n,r,o){return{type:t,title:e,url:n,level:r,attach:o}},kj=function(t){while(t=t.parentNode){var e=t.contentEditable;if(e&&"inherit"!==e)return wj(t)}return!1},Oj=function(t,e){return W(Md(er.fromDom(e),t),(function(t){return t.dom}))},_j=function(t){return t.innerText||t.textContent},Aj=function(t){return t.id?t.id:Aa("h")},Ej=function(t){return t&&"A"===t.nodeName&&void 0!==(t.id||t.name)},Tj=function(t){return Ej(t)&&Ij(t)},Dj=function(t){return t&&/^(H[1-6])$/.test(t.nodeName)},Ij=function(t){return kj(t)&&!Cj(t)},Bj=function(t){return Dj(t)&&Ij(t)},Lj=function(t){return Dj(t)?parseInt(t.nodeName.substr(1),10):0},Nj=function(t){var e=Aj(t),n=function(){t.id=e};return Sj("header",_j(t),"#"+e,Lj(t),n)},Pj=function(t){var n=t.id||t.name,r=_j(t);return Sj("anchor",r||"#"+n,"#"+n,0,e)},Mj=function(t){return W(X(t,Bj),Nj)},jj=function(t){return W(X(t,Tj),Pj)},Rj=function(t){var e=Oj("h1,h2,h3,h4,h5,h6,a:not([href])",t);return e},$j=function(t){return yj(t.title).length>0},Fj=function(t){var e=Rj(t);return X(Mj(e).concat(jj(e)),$j)},Vj={find:Fj},Hj="tinymce-url-history",zj=5,Uj=function(t){return _(t)&&/^https?/.test(t)},Wj=function(t){return E(t)&&t.length<=zj&&rt(t,Uj)},qj=function(t){return A(t)&&jt(t,(function(t){return!Wj(t)})).isNone()},Gj=function(){var t,e=t_.getItem(Hj);if(null===e)return{};try{t=JSON.parse(e)}catch(n){if(n instanceof SyntaxError)return console.log("Local storage "+Hj+" was not valid JSON",n),{};throw n}return qj(t)?t:(console.log("Local storage "+Hj+" was not valid format",t),{})},Yj=function(t){if(!qj(t))throw new Error("Bad format for history:\n"+JSON.stringify(t));t_.setItem(Hj,JSON.stringify(t))},Xj=function(t){var e=Gj();return Object.prototype.hasOwnProperty.call(e,t)?e[t]:[]},Kj=function(t,e){if(Uj(t)){var n=Gj(),r=Object.prototype.hasOwnProperty.call(n,e)?n[e]:[],o=X(r,(function(e){return e!==t}));n[e]=[t].concat(o).slice(0,zj),Yj(n)}},Zj=function(t){return!!t},Jj=function(t){return It(NB.makeMap(t,/[, ]/),Zj)},Qj=function(t){return w.from(Ik(t)).filter(L)},tR=function(t){var e=w.some(Bk(t)).filter(Zj),n=w.some(Lk(t)).filter(Zj),r=e.or(n).map(Jj);return Qj(t).fold((function(){return!1}),(function(t){return r.fold((function(){return!0}),(function(t){return Et(t).length>0&&t}))}))},eR=function(t,e){var n=tR(t);return T(n)?n?Qj(t):w.none():n[e]?Qj(t):w.none()},nR=function(t,e){return eR(t,e).map((function(n){return function(r){return NE.nu((function(o){var i=function(t,e){if(!_(t))throw new Error("Expected value to be string");if(void 0!==e&&!A(e))throw new Error("Expected meta to be a object");var n={value:t,meta:e};o(n)},a=h({filetype:e,fieldname:r.fieldname},w.from(r.meta).getOr({}));n.call(t,i,r.value,a)}))}}))},rR=function(t){return w.from(t).filter(_).getOrUndefined()},oR=function(t){return Nk(t)?w.none():w.some({targets:Vj.find(t.getBody()),anchorTop:rR(Pk(t)),anchorBottom:rR(Mk(t))})},iR=function(t){return w.from(jk(t))},aR=function(t){return{getHistory:Xj,addToHistory:Kj,getLinkInformation:function(){return oR(t)},getValidationHandler:function(){return iR(t)},getUrlPicker:function(e){return nR(t,e)}}},uR=function(t,e,n){var r=Xn(!1),o=uj(e),i={shared:{providers:{icons:function(){return e.ui.registry.getAll().icons},menuItems:function(){return e.ui.registry.getAll().menuItems},translate:DS.translate,isDisabled:function(){return e.mode.isReadOnly()||e.ui.isDisabled()},getSetting:e.getParam.bind(e)},interpreter:function(t){return GM(t,i)},anchors:QM(e,n,o.isPositionedAtTop),header:o,getSink:function(){return gt.value(t)}},urlinput:aR(e),styleselect:bj(e),colorinput:oj(e),dialog:aj(e),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(t){return r.set(t)}};return i},sR=i((function(t,e){Ms(t,Math.floor(e))})),cR="contexttoolbar-show",lR="contexttoolbar-hide",fR=i([yn("dom"),Rn("shell",!0),Xp("toolbarBehaviours",[wy])]),dR=function(){return{behaviours:Fl([wy.config({})])}},hR=i([Tm({name:"groups",overrides:dR})]),pR=function(t,e,n,r){var o=function(t,e){i(t).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(t){wy.set(t,e)}))},i=function(e){return t.shell?w.some(e):Hm(e,t,"groups")},a=t.shell?{behaviours:[wy.config({})],components:[]}:{behaviours:[],components:e};return{uid:t.uid,dom:t.dom,components:a.components,behaviours:Zp(t.toolbarBehaviours,a.behaviours),apis:{setGroups:o},domModification:{attributes:{role:"group"}}}},mR=sg({name:"Toolbar",configFields:fR(),partFields:hR(),factory:pR,apis:{setGroups:function(t,e,n){t.setGroups(e,n)}}}),gR=function(t,e){var n={len:0,list:[]},r=Z(t,(function(t,n){var r=e(n,t.len);return r.fold(i(t),(function(e){return{len:e.finish,list:t.list.concat([e])}}))}),n);return r.list},vR=function(t,e,n){return{within:t,extra:e,withinWidth:n}},bR=function(t,e,n){var r=gR(t,(function(t,e){var r=n(t);return w.some({element:t,start:e,finish:e+r,width:r})})),o=X(r,(function(t){return t.finish<=e})),i=K(o,(function(t,e){return t+e.width}),0),a=r.slice(o.length);return{within:o,extra:a,withinWidth:i}},yR=function(t){return W(t,(function(t){return t.element}))},xR=function(t,e,n){var r=yR(t.concat(e));return vR(r,[],n)},wR=function(t,e,n,r){var o=yR(t).concat([n]);return vR(o,yR(e),r)},CR=function(t,e,n){return vR(yR(t),[],n)},SR=function(t,e,n){var r=bR(e,t,n);return 0===r.extra.length?w.some(r):w.none()},kR=function(t,e,n,r){var o=SR(t,e,n).getOrThunk((function(){return bR(e,t-n(r),n)})),i=o.within,a=o.extra,u=o.withinWidth;return 1===a.length&&a[0].width<=n(r)?xR(i,a,u):a.length>=1?wR(i,a,r,u):CR(i,a,u)},OR=function(t,e){var n=W(e,(function(t){return xs(t)}));mR.setGroups(t,n)},_R=function(t){return dt(t,(function(t){return tf(t.element).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}))},AR=function(t,e,n){var r=zm(t,e,"primary"),o=JE.getCoupled(t,"overflowGroup");Xu(r.element,"visibility","hidden");var i=e.builtGroups.get().concat([o]),a=_R(i);n([]),OR(r,i);var u=Ns(r.element),s=kR(u,e.builtGroups.get(),(function(t){return Ns(t.element)}),o);0===s.extra.length?(wy.remove(r,o),n([])):(OR(r,s.within),n(s.extra)),rs(r.element,"visibility"),os(r.element),a.each(By.focus)},ER=i([Xp("splitToolbarBehaviours",[JE]),Yn("builtGroups",(function(){return Xn([])}))]),TR=i([Mc(["overflowToggledClass"]),Nn("getOverflowBounds"),yn("lazySink"),Yn("overflowGroups",(function(){return Xn([])}))].concat(ER())),DR=i([Am({factory:mR,schema:fR(),name:"primary"}),Em({schema:fR(),name:"overflow"}),Em({name:"overflow-button"}),Em({name:"overflow-group"})]),IR=i([Mc(["toggledClass"]),yn("lazySink"),On("fetch"),Nn("getBounds"),Mn("fireDismissalEventInstead",[Rn("event",ni())]),Hf()]),BR=i([Em({name:"button",overrides:function(t){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Fl([Zy.config({toggleClass:t.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Em({factory:mR,schema:fR(),name:"toolbar",overrides:function(t){return{toolbarBehaviours:Fl([fy.config({mode:"cyclic",onEscape:function(e){return Hm(e,t,"button").each(By.focus),w.none()}})])}}})]),LR=function(t,e){var n=JE.getCoupled(t,"toolbarSandbox");dp.isOpen(n)?dp.close(n):dp.open(n,e.toolbar())},NR=function(t,e,n,r){var o=n.getBounds.map((function(t){return t()})),i=n.lazySink(t).getOrDie();Bh.positionWithinBounds(i,{anchor:"hotspot",hotspot:t,layouts:r,overrides:{maxWidthFunction:sR()}},e,o)},PR=function(t,e,n,r,o){mR.setGroups(e,o),NR(t,e,n,r),Zy.on(t)},MR=function(t,e,n){var r=vc(),o=function(o,i){n.fetch().get((function(o){PR(t,i,n,e.layouts,o),r.link(t.element),fy.focusIn(i)}))},i=function(){Zy.off(t),By.focus(t),r.unlink(t.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:Fl([fy.config({mode:"special",onEscape:function(t){return dp.close(t),w.some(!0)}}),dp.config({onOpen:o,onClose:i,isPartOf:function(e,n,r){return yc(n,r)||yc(t,r)},getAttachPoint:function(){return n.lazySink(t).getOrDie()}}),ql.config({channels:h(h({},vp(h({isExtraPart:l},n.fireDismissalEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})))),yp({doReposition:function(){dp.getState(JE.getCoupled(t,"toolbarSandbox")).each((function(r){NR(t,r,n,e.layouts)}))}}))})])}},jR=function(t,e,n,r){return h(h({},Zx.sketch(h(h({},r.button()),{action:function(t){LR(t,r)},buttonBehaviours:Jp.augment({dump:r.button().buttonBehaviours},[JE.config({others:{toolbarSandbox:function(e){return MR(e,n,t)}}})])}))),{apis:{setGroups:function(e,r){dp.getState(JE.getCoupled(e,"toolbarSandbox")).each((function(o){PR(e,o,t,n.layouts,r)}))},reposition:function(e){dp.getState(JE.getCoupled(e,"toolbarSandbox")).each((function(r){NR(e,r,t,n.layouts)}))},toggle:function(t){LR(t,r)},getToolbar:function(t){return dp.getState(JE.getCoupled(t,"toolbarSandbox"))},isOpen:function(t){return dp.isOpen(JE.getCoupled(t,"toolbarSandbox"))}}})},RR=sg({name:"FloatingToolbarButton",factory:jR,configFields:IR(),partFields:BR(),apis:{setGroups:function(t,e,n){t.setGroups(e,n)},reposition:function(t,e){t.reposition(e)},toggle:function(t,e){t.toggle(e)},getToolbar:function(t,e){return t.getToolbar(e)},isOpen:function(t,e){return t.isOpen(e)}}}),$R=i([yn("items"),Mc(["itemSelector"]),Xp("tgroupBehaviours",[fy])]),FR=i([Dm({name:"items",unit:"item"})]),VR=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.tgroupBehaviours,[fy.config({mode:"flow",selector:t.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},HR=sg({name:"ToolbarGroup",configFields:$R(),partFields:FR(),factory:VR}),zR=function(t){return W(t,(function(t){return xs(t)}))},UR=function(t,e,n){AR(t,n,(function(r){n.overflowGroups.set(r),e.getOpt(t).each((function(t){RR.setGroups(t,zR(r))}))}))},WR=function(t,e,n,r){var o=Jx(RR.sketch({fetch:function(){return NE.nu((function(e){e(zR(t.overflowGroups.get()))}))},layouts:{onLtr:function(){return[gl,ml]},onRtl:function(){return[ml,gl]},onBottomLtr:function(){return[bl,vl]},onBottomRtl:function(){return[vl,bl]}},getBounds:n.getOverflowBounds,lazySink:t.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:t.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.splitToolbarBehaviours,[JE.config({others:{overflowGroup:function(){return HR.sketch(h(h({},r["overflow-group"]()),{items:[o.asSpec()]}))}}})]),apis:{setGroups:function(e,n){t.builtGroups.set(W(n,e.getSystem().build)),UR(e,o,t)},refresh:function(e){return UR(e,o,t)},toggle:function(t){o.getOpt(t).each((function(t){RR.toggle(t)}))},isOpen:function(t){return o.getOpt(t).map(RR.isOpen).getOr(!1)},reposition:function(t){o.getOpt(t).each((function(t){RR.reposition(t)}))},getOverflow:function(t){return o.getOpt(t).bind(RR.getToolbar)}},domModification:{attributes:{role:"group"}}}},qR=sg({name:"SplitFloatingToolbar",configFields:TR(),partFields:DR(),factory:WR,apis:{setGroups:function(t,e,n){t.setGroups(e,n)},refresh:function(t,e){t.refresh(e)},reposition:function(t,e){t.reposition(e)},toggle:function(t,e){t.toggle(e)},isOpen:function(t,e){return t.isOpen(e)},getOverflow:function(t,e){return t.getOverflow(e)}}}),GR=function(t,e){return e.getAnimationRoot.fold((function(){return t.element}),(function(e){return e(t)}))},YR=function(t){return t.dimension.property},XR=function(t,e){return t.dimension.getDimension(e)},KR=function(t,e){var n=GR(t,e);Bu(n,[e.shrinkingClass,e.growingClass])},ZR=function(t,e){Tu(t.element,e.openClass),Au(t.element,e.closedClass),Xu(t.element,YR(e),"0px"),os(t.element)},JR=function(t,e){Tu(t.element,e.closedClass),Au(t.element,e.openClass),rs(t.element,YR(e))},QR=function(t,e,n,r){n.setCollapsed(),Xu(t.element,YR(e),XR(e,t.element)),os(t.element),KR(t,e),ZR(t,e),e.onStartShrink(t),e.onShrunk(t)},t$=function(t,e,n,r){var o=r.getOrThunk((function(){return XR(e,t.element)}));n.setCollapsed(),Xu(t.element,YR(e),o),os(t.element);var i=GR(t,e);Tu(i,e.growingClass),Au(i,e.shrinkingClass),ZR(t,e),e.onStartShrink(t)},e$=function(t,e,n){var r=XR(e,t.element),o="0px"===r?QR:t$;o(t,e,n,w.some(r))},n$=function(t,e,n){var r=GR(t,e),o=Du(r,e.shrinkingClass),i=XR(e,t.element);JR(t,e);var a=XR(e,t.element),u=function(){Xu(t.element,YR(e),i),os(t.element)},s=function(){ZR(t,e)},c=o?u:s;c(),Tu(r,e.shrinkingClass),Au(r,e.growingClass),JR(t,e),Xu(t.element,YR(e),a),n.setExpanded(),e.onStartGrow(t)},r$=function(t,e,n){if(n.isExpanded()){rs(t.element,YR(e));var r=XR(e,t.element);Xu(t.element,YR(e),r)}},o$=function(t,e,n){n.isExpanded()||n$(t,e,n)},i$=function(t,e,n){n.isExpanded()&&e$(t,e,n)},a$=function(t,e,n){n.isExpanded()&&QR(t,e,n,w.none())},u$=function(t,e,n){return n.isExpanded()},s$=function(t,e,n){return n.isCollapsed()},c$=function(t,e,n){var r=GR(t,e);return!0===Du(r,e.growingClass)},l$=function(t,e,n){var r=GR(t,e);return!0===Du(r,e.shrinkingClass)},f$=function(t,e,n){return!0===c$(t,e)||!0===l$(t,e)},d$=function(t,e,n){var r=n.isExpanded()?e$:n$;r(t,e,n)},h$=Object.freeze({__proto__:null,refresh:r$,grow:o$,shrink:i$,immediateShrink:a$,hasGrown:u$,hasShrunk:s$,isGrowing:c$,isShrinking:l$,isTransitioning:f$,toggleGrow:d$,disableTransitions:KR}),p$=function(t,e,n){var r=e.expanded;return Qa(r?{classes:[e.openClass],styles:{}}:{classes:[e.closedClass],styles:ce(e.dimension.property,"0px")})},m$=function(t,e){return gi([Ti(Po(),(function(n,r){var o=r.event.raw;if(o.propertyName===t.dimension.property){KR(n,t),e.isExpanded()&&rs(n.element,t.dimension.property);var i=e.isExpanded()?t.onGrown:t.onShrunk;i(n)}}))])},g$=Object.freeze({__proto__:null,exhibit:p$,events:m$}),v$=[yn("closedClass"),yn("openClass"),yn("shrinkingClass"),yn("growingClass"),Dn("getAnimationRoot"),Rc("onShrunk"),Rc("onStartShrink"),Rc("onGrown"),Rc("onStartGrow"),Rn("expanded",!1),xn("dimension",sn("property",{width:[Hc("property","width"),Hc("getDimension",(function(t){return Ns(t)+"px"}))],height:[Hc("property","height"),Hc("getDimension",(function(t){return Ss(t)+"px"}))]}))],b$=function(t){var e=Xn(t.expanded),n=function(){return"expanded: "+e.get()};return Ya({isExpanded:function(){return!0===e.get()},isCollapsed:function(){return!1===e.get()},setCollapsed:u(e.set,!1),setExpanded:u(e.set,!0),readState:n})},y$=Object.freeze({__proto__:null,init:b$}),x$=Hl({fields:v$,name:"sliding",active:g$,apis:h$,state:y$}),w$=i([Mc(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Rc("onOpened"),Rc("onClosed")].concat(ER())),C$=i([Am({factory:mR,schema:fR(),name:"primary"}),Am({factory:mR,schema:fR(),name:"overflow",overrides:function(t){return{toolbarBehaviours:Fl([x$.config({dimension:{property:"height"},closedClass:t.markers.closedClass,openClass:t.markers.openClass,shrinkingClass:t.markers.shrinkingClass,growingClass:t.markers.growingClass,onShrunk:function(e){Hm(e,t,"overflow-button").each((function(t){Zy.off(t),By.focus(t)})),t.onClosed(e)},onGrown:function(e){fy.focusIn(e),t.onOpened(e)},onStartGrow:function(e){Hm(e,t,"overflow-button").each(Zy.on)}}),fy.config({mode:"acyclic",onEscape:function(e){return Hm(e,t,"overflow-button").each(By.focus),w.some(!0)}})])}}}),Em({name:"overflow-button",overrides:function(t){return{buttonBehaviours:Fl([Zy.config({toggleClass:t.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Em({name:"overflow-group"})]),S$=function(t,e){return Hm(t,e,"overflow").map(x$.hasGrown).getOr(!1)},k$=function(t,e){Hm(t,e,"overflow-button").bind((function(){return Hm(t,e,"overflow")})).each((function(n){O$(t,e),x$.toggleGrow(n)}))},O$=function(t,e){Hm(t,e,"overflow").each((function(n){AR(t,e,(function(t){var e=W(t,(function(t){return xs(t)}));mR.setGroups(n,e)})),Hm(t,e,"overflow-button").each((function(t){x$.hasGrown(n)&&Zy.on(t)})),x$.refresh(n)}))},_$=function(t,e,n,r){var o="alloy.toolbar.toggle",i=function(e,n){var r=W(n,e.getSystem().build);t.builtGroups.set(r)};return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.splitToolbarBehaviours,[JE.config({others:{overflowGroup:function(t){return HR.sketch(h(h({},r["overflow-group"]()),{items:[Zx.sketch(h(h({},r["overflow-button"]()),{action:function(e){li(t,o)}}))]}))}}}),Sy("toolbar-toggle-events",[xi(o,(function(e){k$(e,t)}))])]),apis:{setGroups:function(e,n){i(e,n),O$(e,t)},refresh:function(e){return O$(e,t)},toggle:function(e){return k$(e,t)},isOpen:function(e){return S$(e,t)}},domModification:{attributes:{role:"group"}}}},A$=sg({name:"SplitSlidingToolbar",configFields:w$(),partFields:C$(),factory:_$,apis:{setGroups:function(t,e,n){t.setGroups(e,n)},refresh:function(t,e){t.refresh(e)},toggle:function(t,e){t.toggle(e)},isOpen:function(t,e){return t.isOpen(e)}}}),E$=i(Aa("toolbar-height-change")),T$=function(t){var e=t.title.fold((function(){return{}}),(function(t){return{attributes:{title:t}}}));return{dom:h({tag:"div",classes:["tox-toolbar__group"]},e),components:[HR.parts.items({})],items:t.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:Fl([QA.config({}),By.config({})])}},D$=function(t){return HR.sketch(T$(t))},I$=function(t,e){var n=Di((function(e){var n=W(t.initGroups,D$);mR.setGroups(e,n)}));return Fl([Gk.toolbarButton(t.providers.isDisabled),Hk(),fy.config({mode:e,onEscape:t.onEscape,selector:".tox-toolbar__group"}),Sy("toolbar-events",[n])])},B$=function(t){var e=t.cyclicKeying?"cyclic":"acyclic";return{uid:t.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":T$({title:w.none(),items:[]}),"overflow-button":NN({name:"more",icon:w.some("more-drawer"),disabled:!1,tooltip:w.some("More..."),primary:!1,borderless:!1},w.none(),t.providers)},splitToolbarBehaviours:I$(t,e)}},L$=function(t){var e=B$(t),n=4,r=qR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return qR.sketch(h(h({},e),{lazySink:t.getSink,getOverflowBounds:function(){var e=t.moreDrawerData.lazyHeader().element,r=ic(e),o=zi(e),i=ic(o),a=Math.max(o.dom.scrollHeight,i.height);return rc(r.x+n,i.y,r.width-2*n,a)},parts:h(h({},e.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:t.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},N$=function(t){var e=A$.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=A$.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=B$(t);return A$.sketch(h(h({},r),{components:[e,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(t){t.getSystem().broadcastOn([E$()],{type:"opened"})},onClosed:function(t){t.getSystem().broadcastOn([E$()],{type:"closed"})}}))},P$=function(t){var e=t.cyclicKeying?"cyclic":"acyclic";return mR.sketch({uid:t.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(t.type===uC.scrolling?["tox-toolbar--scrolling"]:[])},components:[mR.parts.groups({})],toolbarBehaviours:I$(t,e)})},M$=Re([Cn("type"),xn("items",Fe([Ke([Cn("name"),Tn("items",hn)]),hn]))].concat(zw)),j$=function(t){return nn("GroupToolbarButton",M$,t)},R$=[Ln("text"),Ln("tooltip"),Ln("icon"),On("fetch"),Un("onSetup",(function(){return e}))],$$=Re(m([Cn("type")],R$)),F$=function(t){return nn("menubutton",$$,t)},V$=Re([Cn("type"),Ln("tooltip"),Ln("icon"),Ln("text"),Nn("select"),On("fetch"),Un("onSetup",(function(){return e})),Hn("presets","normal",["normal","color","listpreview"]),Rn("columns",1),On("onAction"),On("onItemAction")]),H$=function(t){return nn("SplitButton",V$,t)},z$=function(t,e){var n=function(n,r){t.updateState.each((function(t){var o=t(n,r);e.set(o)})),t.renderComponents.each((function(t){var o=t(r,e.get()),i=W(o,n.getSystem().build);jh(n,i)}))};return gi([xi(Ho(),(function(e,r){var o=r;if(!o.universal){var i=t.channel;V(o.channels,i)&&n(e,o.data)}})),Di((function(e,r){t.initialData.each((function(t){n(e,t)}))}))])},U$=Object.freeze({__proto__:null,events:z$}),W$=function(t,e,n){return n},q$=Object.freeze({__proto__:null,getState:W$}),G$=[yn("channel"),Dn("renderComponents"),Dn("updateState"),Dn("initialData")],Y$=function(){var t=Xn(w.none()),e=function(e){return t.set(e)},n=function(){return t.set(w.none())},r=function(){return t.get()},o=function(){return t.get().fold((function(){return"none"}),(function(t){return t}))};return{readState:o,get:r,set:e,clear:n}},X$=Object.freeze({__proto__:null,init:Y$}),K$=Hl({fields:G$,name:"reflecting",active:U$,apis:q$,state:X$}),Z$=i([yn("toggleClass"),yn("fetch"),Fc("onExecute"),Rn("getHotspot",w.some),Rn("getAnchorOverrides",i({})),Hf(),Fc("onItemExecute"),Dn("lazySink"),yn("dom"),Rc("onOpen"),Xp("splitDropdownBehaviours",[JE,fy,By]),Rn("matchWidth",!1),Rn("useMinWidth",!1),Rn("eventOrder",{}),Dn("role")].concat(dT())),J$=Am({factory:Zx,schema:[yn("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:Fl([By.revoke()])}},overrides:function(t){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(e){e.getSystem().getByUid(t.uid).each(di)},buttonBehaviours:Fl([Zy.config({toggleOnExecute:!1,toggleClass:t.toggleClass})])}}}),Q$=Am({factory:Zx,schema:[yn("dom")],name:"button",defaults:function(){return{buttonBehaviours:Fl([By.revoke()])}},overrides:function(t){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(e){e.getSystem().getByUid(t.uid).each((function(n){t.onExecute(n,e)}))}}}}),tF=i([J$,Q$,Tm({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[yn("text")],name:"aria-descriptor"}),Em({schema:[Pc()],name:"menu",defaults:function(t){return{onExecute:function(e,n){e.getSystem().getByUid(t.uid).each((function(r){t.onItemExecute(r,e,n)}))}}}}),tT()]),eF=function(t,n,r,o){var i,a=function(t){yg.getCurrent(t).each((function(t){$g.highlightFirst(t),fy.focusIn(t)}))},u=function(n){var r=a;aT(t,(function(t){return t}),n,o,r,OE.HighlightFirst).get(e)},s=function(t){return u(t),w.some(!0)},c=function(e){var n=zm(e,t,"button");return di(n),w.some(!0)},l=h(h({},gi([Di((function(e,n){var r=Hm(e,t,"aria-descriptor");r.each((function(t){var n=Aa("aria");ha(t.element,"id",n),ha(e.element,"aria-describedby",n)}))}))])),Qy(w.some(u))),f={repositionMenus:function(t){Zy.isOn(t)&&fT(t)}};return{uid:t.uid,dom:t.dom,components:n,apis:f,eventOrder:h(h({},t.eventOrder),(i={},i[zo()]=["disabling","toggling","alloy.base.behaviour"],i)),events:l,behaviours:Zp(t.splitDropdownBehaviours,[JE.config({others:{sandbox:function(e){var n=zm(e,t,"arrow"),r={onOpen:function(){Zy.on(n),Zy.on(e)},onClose:function(){Zy.off(n),Zy.off(e)}};return lT(t,e,r)}}}),fy.config({mode:"special",onSpace:c,onEnter:c,onDown:s}),By.config({}),Zy.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:t.role.getOr("button"),"aria-haspopup":!0}}}},nF=sg({name:"SplitDropdown",configFields:Z$(),partFields:tF(),factory:eF,apis:{repositionMenus:function(t,e){return t.repositionMenus(e)}}}),rF=function(t){return{isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){return XS.set(t,e)}}},oF=function(t){return{setActive:function(e){Zy.set(t,e)},isActive:function(){return Zy.isOn(t)},isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){return XS.set(t,e)}}},iF=function(t,e){return t.map((function(t){return{"aria-label":e.translate(t),title:e.translate(t)}})).getOr({})},aF=Aa("focus-button"),uF=["checklist","ordered-list"],sF=["indent","outdent","table-insert-column-after","table-insert-column-before","unordered-list"],cF=function(t,e,n,r,o,i){var a,u=function(t){return DS.isRtl()&&V(uF,t)?t+"-rtl":t},s=DS.isRtl()&&t.exists((function(t){return V(sF,t)}));return{dom:{tag:"button",classes:["tox-tbtn"].concat(e.isSome()?["tox-tbtn--select"]:[]).concat(s?["tox-tbtn__icon-rtl"]:[]),attributes:iF(n,i)},components:Qk([t.map((function(t){return fN(u(t),i.icons)})),e.map((function(t){return hN(t,"tox-tbtn",i)}))]),eventOrder:(a={},a[So()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:Fl([Gk.toolbarButton(i.isDisabled),Hk(),Sy("common-button-display-events",[xi(So(),(function(t,e){e.event.prevent(),li(t,aF)}))])].concat(r.map((function(n){return K$.config({channel:n,initialData:{icon:t,text:e},renderComponents:function(t,e){return Qk([t.icon.map((function(t){return fN(u(t),i.icons)})),t.text.map((function(t){return hN(t,"tox-tbtn",i)}))])}})})).toArray()).concat(o.getOr([])))}},lF=function(t,e,n,r){var o=e.shared;return RR.sketch({lazySink:o.getSink,fetch:function(){return NE.nu((function(e){e(W(n(t.items),D$))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:cF(t.icon,t.text,t.tooltip,w.none(),w.none(),o.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},fF=function(t,n,r){var o=Xn(e),i=cF(t.icon,t.text,t.tooltip,w.none(),w.none(),r);return Zx.sketch({dom:i.dom,components:i.components,eventOrder:gN,buttonBehaviours:Fl([Sy("toolbar-button-events",[mN({onAction:t.onAction,getApi:n.getApi}),Xk(n,o),Kk(n,o)]),Gk.toolbarButton((function(){return t.disabled||r.isDisabled()})),Hk()].concat(n.toolbarButtonBehaviours))})},dF=function(t,e){return hF(t,e,[])},hF=function(t,e,n){return fF(t,{toolbarButtonBehaviours:[].concat(n.length>0?[Sy("toolbarButtonWith",n)]:[]),getApi:rF,onSetup:t.onSetup},e)},pF=function(t,e){return mF(t,e,[])},mF=function(t,e,n){return Yt(fF(t,{toolbarButtonBehaviours:[wy.config({}),Zy.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[Sy("toolbarToggleButtonWith",n)]:[]),getApi:oF,onSetup:t.onSetup},e))},gF=function(t,e,n){return function(r){return NE.nu((function(t){return e.fetch(t)})).map((function(o){return w.from(uA(Yt(E_(Aa("menu-value"),o,(function(n){e.onItemAction(t(r),n)}),e.columns,e.presets,sC.CLOSE_ON_EXECUTE,e.select.getOr((function(){return!1})),n),{movement:D_(e.columns,e.presets),menuBehaviours:gS.unnamedEvents("auto"!==e.columns?[]:[Di((function(t,n){hS(t,4,DC(e.presets)).each((function(e){var n=e.numRows,r=e.numColumns;fy.setGridSize(t,n,r)}))}))])})))}))}},vF=function(t,n){var r,o=Aa("channel-update-split-dropdown-display"),i=function(t){return{isDisabled:function(){return XS.isDisabled(t)},setDisabled:function(e){return XS.set(t,e)},setIconFill:function(e,n){pc(t.element,'svg path[id="'+e+'"], rect[id="'+e+'"]').each((function(t){ha(t,"fill",n)}))},setIconStroke:function(e,n){pc(t.element,'svg path[id="'+e+'"], rect[id="'+e+'"]').each((function(t){ha(t,"stroke",n)}))},setActive:function(e){ha(t.element,"aria-pressed",e),pc(t.element,"span").each((function(n){t.getSystem().getByDom(n).each((function(t){return Zy.set(t,e)}))}))},isActive:function(){return pc(t.element,"span").exists((function(e){return t.getSystem().getByDom(e).exists(Zy.isOn)}))}}},a=Xn(e),u={getApi:i,onSetup:t.onSetup};return nF.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:h({"aria-pressed":!1},iF(t.tooltip,n.providers))},onExecute:function(e){t.onAction(i(e))},onItemExecute:function(t,e,n){},splitDropdownBehaviours:Fl([Gk.splitButton(n.providers.isDisabled),Hk(),Sy("split-dropdown-events",[xi(aF,By.focus),Xk(u,a),Kk(u,a)]),xT.config({})]),eventOrder:(r={},r[ti()]=["alloy.base.behaviour","split-dropdown-events"],r),toggleClass:"tox-tbtn--enabled",lazySink:n.getSink,fetch:gF(i,t,n.providers),parts:{menu:MC(!1,t.columns,t.presets)},components:[nF.parts.button(cF(t.icon,t.text,w.none(),w.some(o),w.some([Zy.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),n.providers)),nF.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:tw("chevron-down",n.providers.icons)},buttonBehaviours:Fl([Gk.splitButton(n.providers.isDisabled),Hk()])}),nF.parts["aria-descriptor"]({text:n.providers.translate("To open the popup, press Shift+Enter")})]})},bF=function(t){return{hide:function(){return li(t,Go())},getValue:function(){return Yp.getValue(t)}}},yF=function(t,e){return xi(pN,(function(n,r){var o=t.get(n),i=bF(o);e.onAction(i,r.event.buttonApi)}))},xF=function(t,e,n){var r=e.original,o=(r.primary,p(r,["primary"])),i=rn(Ww(h(h({},o),{type:"button",onAction:function(){}})));return hF(i,n.backstage.shared.providers,[yF(t,e)])},wF=function(t,e,n){var r=e.original,o=(r.primary,p(r,["primary"])),i=rn(Yw(h(h({},o),{type:"togglebutton",onAction:function(){}})));return mF(i,n.backstage.shared.providers,[yF(t,e)])},CF=function(t,e,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===e.type?wF(t,e,r):xF(t,e,r)},SF=function(t,e,n){var r=W(e,(function(e){return Jx(CF(t,e,n))})),o=function(){return W(r,(function(t){return t.asSpec()}))},i=function(t){return dt(e,(function(e,n){return e.primary?w.from(r[n]).bind((function(e){return e.getOpt(t)})).filter(s(XS.isDisabled)):w.none()}))};return{asSpecs:o,findPrimary:i}},kF=function(t,e){var n=t.label.fold((function(){return{}}),(function(t){return{"aria-label":t}})),r=Jx(CE.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:Fl([fy.config({mode:"special",onEnter:function(t){return o.findPrimary(t).map((function(t){return di(t),!0}))},onLeft:function(t,e){return e.cut(),w.none()},onRight:function(t,e){return e.cut(),w.none()}})])})),o=SF(r,t.commands,e);return[{title:w.none(),items:[r.asSpec()]},{title:w.none(),items:o.asSpecs()}]},OF=function(t,e,n){return P$({type:t,uid:Aa("context-toolbar"),initGroups:kF(e,n),onEscape:w.none,cyclicKeying:!0,providers:n})},_F={renderContextForm:OF,buildInitGroups:kF},AF=function(t,e){var n=Math.max(e.x,t.x),r=t.right-n,o=e.width-(n-e.x),i=Math.min(r,o);return{x:n,width:i}},EF=function(t,e,n,r){var o=er.fromDom(t.getContainer()),i=pc(o,".tox-editor-header").getOr(o),a=oc(i),u=a.y>=e.bottom,s=r&&!u;if(t.inline&&s)return{y:Math.max(a.bottom,n.y),bottom:n.bottom};if(t.inline&&!s)return{y:n.y,bottom:Math.min(a.y,n.bottom)};var c=oc(o);return s?{y:Math.max(a.bottom,n.y),bottom:Math.min(c.bottom,n.bottom)}:{y:Math.max(c.y,n.y),bottom:Math.min(a.y,n.bottom)}},TF=function(t,e){var n=Ys(window),r=oc(er.fromDom(t.getContentAreaContainer())),o=lk(t)||fk(t)||hk(t),i=AF(r,n),a=i.x,u=i.width;if(t.inline&&!o)return rc(a,n.y,u,n.height);var s=e.header.isPositionedAtTop(),c=EF(t,r,n,s),l=c.y,f=c.bottom;return rc(a,l,u,f-l)},DF=function(t,e){var n=X(e,(function(e){return e.predicate(t.dom)})),r=Y(n,(function(t){return"contexttoolbar"===t.type})),o=r.pass,i=r.fail;return{contextToolbars:o,contextForms:i}},IF=function(t){if(t.length<=1)return t;var e=function(e){return H(t,(function(t){return t.position===e}))},n=function(e){return X(t,(function(t){return t.position===e}))},r=e("selection"),o=e("node");if(r||o){if(o&&r){var i=n("node"),a=W(n("selection"),(function(t){return h(h({},t),{position:"node"})}));return i.concat(a)}return n(r?"selection":"node")}return n("line")},BF=function(t){if(t.length<=1)return t;var e=function(e){return Q(t,(function(t){return t.position===e}))},n=e("selection").orThunk((function(){return e("node")})).orThunk((function(){return e("line")})).map((function(t){return t.position}));return n.fold((function(){return[]}),(function(e){return X(t,(function(t){return t.position===e}))}))},LF=function(t,e,n){var r=DF(t,e);if(r.contextForms.length>0)return w.some({elem:t,toolbars:[r.contextForms[0]]});var o=DF(t,n);if(o.contextForms.length>0)return w.some({elem:t,toolbars:[o.contextForms[0]]});if(r.contextToolbars.length>0||o.contextToolbars.length>0){var i=IF(r.contextToolbars.concat(o.contextToolbars));return w.some({elem:t,toolbars:i})}return w.none()},NF=function(t,e,n){return t(e)?w.none():co(e,(function(t){var e=DF(t,n.inNodeScope),r=e.contextToolbars,o=e.contextForms,i=o.length>0?o:BF(r);return i.length>0?w.some({elem:t,toolbars:i}):w.none()}),t)},PF=function(t,e){var n=er.fromDom(e.getBody()),r=function(t){return oo(t,n)},o=function(t){return!r(t)&&!uo(n,t)},i=er.fromDom(e.selection.getNode());return o(i)?w.none():LF(i,t.inNodeScope,t.inEditorScope).orThunk((function(){return NF(r,i,t)}))},MF=function(t,e){var n={},r=[],o=[],i={},a={},u=function(t,u){var s=rn(nC(u));n[t]=s,s.launch.map((function(n){i["form:"+t]=h(h({},u.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){e(s)}})})),"editor"===s.scope?o.push(s):r.push(s),a[t]=s},s=function(t,e){oC(e).each((function(n){"editor"===e.scope?o.push(n):r.push(n),a[t]=n}))},c=Et(t);return q(c,(function(e){var n=t[e];"contextform"===n.type?u(e,n):"contexttoolbar"===n.type&&s(e,n)})),{forms:n,inNodeScope:r,inEditorScope:o,lookupTable:a,formNavigators:i}},jF=Aa("forward-slide"),RF=Aa("backward-slide"),$F=Aa("change-slide-event"),FF="tox-pop--resizing",VF=function(t){var e=Xn([]);return jx.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(t){e.set([]),jx.getContent(t).each((function(t){rs(t.element,"visibility")})),Tu(t.element,FF),rs(t.element,"width")},inlineBehaviours:Fl([Sy("context-toolbar-events",[Ti(Po(),(function(t,e){Tu(t.element,FF),rs(t.element,"width")})),xi($F,(function(t,e){rs(t.element,"width");var n=Ns(t.element);jx.setContent(t,e.event.contents),Au(t.element,FF);var r=Ns(t.element);Xu(t.element,"width",n+"px"),jx.getContent(t).each((function(n){e.event.focus.bind((function(e){return Kl(e),tf(t.element)})).orThunk((function(){return fy.focusIn(n),Ql()}))})),Xx.setTimeout((function(){Xu(t.element,"width",r+"px")}),0)})),xi(jF,(function(t,n){jx.getContent(t).each((function(t){e.set(e.get().concat([{bar:t,focus:Ql()}]))})),fi(t,$F,{contents:n.event.forwardContents,focus:w.none()})})),xi(RF,(function(t,n){lt(e.get()).each((function(n){e.set(e.get().slice(0,e.get().length-1)),fi(t,$F,{contents:xs(n.bar),focus:n.focus})}))}))]),fy.config({mode:"special",onEscape:function(n){return lt(e.get()).fold((function(){return t.onEscape()}),(function(t){return li(n,RF),w.some(!0)}))}})]),lazySink:function(){return gt.value(t.sink)}})},HF=function(t,e,n){var r=function(t,r,i,a){var u=e.shared.providers.translate(t.title);if("separator"===t.type)return w.some({type:"separator",text:u});if("submenu"===t.type){var s=nt(t.getStyleItems(),(function(t){return o(t,r,a)}));return 0===r&&s.length<=0?w.none():w.some({type:"nestedmenuitem",text:u,disabled:s.length<=0,getSubmenuItems:function(){return nt(t.getStyleItems(),(function(t){return o(t,r,a)}))}})}return w.some(h({type:"togglemenuitem",text:u,icon:t.icon,active:t.isSelected(a),disabled:i,onAction:n.onAction(t)},t.getStylePreview().fold((function(){return{}}),(function(t){return{meta:{style:t}}}))))},o=function(t,e,o){var i="formatter"===t.type&&n.isInvalid(t);return 0===e?i?[]:r(t,e,!1,o).toArray():r(t,e,i,o).toArray()},i=function(t){var e=n.getCurrentValue(),r=n.shouldHide?0:1;return nt(t,(function(t){return o(t,r,e)}))},a=function(t,e){return function(n,r){var o=e(),a=i(o),u=TN(a,sC.CLOSE_ON_EXECUTE,t,!1);r(u)}};return{validateItems:i,getFetch:a}},zF=function(t,e,n){var r=n.dataset,o="basic"===r.type?function(){return W(r.data,(function(t){return gj(t,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:HF(t,e,n),getStyleItems:o}},UF=function(t,n,r){var o=zF(t,n,r),i=o.items,a=o.getStyleItems,u=function(t){return{getComponent:function(){return t}}},s=function(n){return r.setInitialValue.each((function(t){return t(n.getComponent())})),r.nodeChangeHandler.map((function(e){var r=e(n.getComponent());return t.on("NodeChange",r),function(){t.off("NodeChange",r)}})).getOr(e)};return yN({text:r.icon.isSome()?w.none():w.some(""),icon:r.icon,tooltip:w.from(r.tooltip),role:w.none(),fetch:i.getFetch(n,a),onSetup:s,getApi:u,columns:1,presets:"normal",classes:r.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",n.shared)},WF=function(t){return W(t,(function(t){var e=t,n=t,r=t.split("=");return r.length>1&&(e=r[0],n=r[1]),{title:e,format:n}}))},qF=function(t){return{type:"basic",data:t}};(function(t){t[t["SemiColon"]=0]="SemiColon",t[t["Space"]=1]="Space"})(LP||(LP={}));var GF,YF=function(t,e){return e===LP.SemiColon?t.replace(/;$/,"").split(";"):t.split(" ")},XF=function(t,e,n,r){var o=t.getParam(e,n,"string"),i=WF(YF(o,r));return{type:"basic",data:i}},KF=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],ZF=function(t){var e=function(){return Q(KF,(function(e){return t.formatter.match(e.format)}))},n=function(e){return function(){return t.formatter.match(e)}},r=function(t){return function(){return w.none()}},o=function(t){var n=e(),r=n.fold((function(){return"left"}),(function(t){return t.title.toLowerCase()}));fi(t,bN,{icon:"align-"+r})},i=w.some((function(t){return function(){return o(t)}})),a=w.some((function(t){return o(t)})),u=qF(KF),s=function(e){return function(){return Q(KF,(function(t){return t.format===e.format})).each((function(e){return t.execCommand(e.command)}))}};return{tooltip:"Align",icon:w.some("align-left"),isSelectedFor:n,getCurrentValue:w.none,getPreviewFor:r,onAction:s,setInitialValue:a,nodeChangeHandler:i,dataset:u,shouldHide:!1,isInvalid:function(e){return!t.formatter.canApply(e.format)}}},JF=function(t,e){return UF(t,e,ZF(t))},QF=function(t,e){var n=zF(t,e,ZF(t));t.ui.registry.addNestedMenuItem("align",{text:e.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},tV="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",eV=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],nV=function(t){var e=t.split(/\s*,\s*/);return W(e,(function(t){return t.replace(/^['"]+|['"]+$/g,"")}))},rV=function(t){var e=function(){var e=nV(t.toLowerCase());return rt(eV,(function(t){return e.indexOf(t.toLowerCase())>-1}))};return 0===t.indexOf("-apple-system")&&e()},oV=function(t){var e=function(){var e=function(t){return t?nV(t)[0]:""},n=t.queryCommandValue("FontName"),r=c.data,o=n?n.toLowerCase():"",i=Q(r,(function(t){var n=t.format;return n.toLowerCase()===o||e(n).toLowerCase()===e(o).toLowerCase()})).orThunk((function(){return rV(o)?w.from({title:"System Font",format:o}):w.none()}));return{matchOpt:i,font:n}},n=function(t){return function(e){return e.exists((function(e){return e.format===t}))}},r=function(){var t=e().matchOpt;return t},o=function(t){return function(){return w.some({tag:"div",styles:-1===t.indexOf("dings")?{"font-family":t}:{}})}},i=function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("FontName",!1,e.format)}))}},a=function(t){var n=e(),r=n.matchOpt,o=n.font,i=r.fold((function(){return o}),(function(t){return t.title}));fi(t,vN,{text:i})},u=w.some((function(t){return function(){return a(t)}})),s=w.some((function(t){return a(t)})),c=XF(t,"font_formats",tV,LP.SemiColon);return{tooltip:"Fonts",icon:w.none(),isSelectedFor:n,getCurrentValue:r,getPreviewFor:o,onAction:i,setInitialValue:s,nodeChangeHandler:u,dataset:c,shouldHide:!1,isInvalid:function(){return!1}}},iV=function(t,e){return UF(t,e,oV(t))},aV=function(t,e){var n=zF(t,e,oV(t));t.ui.registry.addNestedMenuItem("fontformats",{text:e.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},uV="8pt 10pt 12pt 14pt 18pt 24pt 36pt",sV={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},cV={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},lV=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},fV=function(t,e){return/[0-9.]+px$/.test(t)?lV(72*parseInt(t,10)/96,e||0)+"pt":$t(cV,t).getOr(t)},dV=function(t){return $t(sV,t).getOr("")},hV=function(t){var e=function(){var e=w.none(),n=l.data,r=t.queryCommandValue("FontSize");if(r)for(var o=function(t){var o=fV(r,t),i=dV(o);e=Q(n,(function(t){return t.format===r||t.format===o||t.format===i}))},i=3;e.isNone()&&i>=0;i--)o(i);return{matchOpt:e,size:r}},n=function(t){return function(e){return e.exists((function(e){return e.format===t}))}},r=function(){var t=e().matchOpt;return t},o=i(w.none),a=function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("FontSize",!1,e.format)}))}},u=function(t){var n=e(),r=n.matchOpt,o=n.size,i=r.fold((function(){return o}),(function(t){return t.title}));fi(t,vN,{text:i})},s=w.some((function(t){return function(){return u(t)}})),c=w.some((function(t){return u(t)})),l=XF(t,"fontsize_formats",uV,LP.Space);return{tooltip:"Font sizes",icon:w.none(),isSelectedFor:n,getPreviewFor:o,getCurrentValue:r,onAction:a,setInitialValue:c,nodeChangeHandler:s,dataset:l,shouldHide:!1,isInvalid:function(){return!1}}},pV=function(t,e){return UF(t,e,hV(t))},mV=function(t,e){var n=zF(t,e,hV(t));t.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},gV=function(t,e){var n=e(),r=W(n,(function(t){return t.format}));return w.from(t.formatter.closest(r)).bind((function(t){return Q(n,(function(e){return e.format===t}))})).orThunk((function(){return pg(t.formatter.match("p"),{title:"Paragraph",format:"p"})}))},vV=function(t){var e=Xn(w.none()),n=function(){return e.get().each(t)},r=function(){n(),e.set(w.none())},o=function(){return e.get().isSome()},i=function(t){n(),e.set(w.some(t))};return{clear:r,isSet:o,set:i}},bV=function(){return vV((function(t){return t.destroy()}))},yV=function(){return vV((function(t){return t.unbind()}))},xV=function(){var t=Xn(w.none()),e=function(){return t.set(w.none())},n=function(e){return t.set(w.some(e))},r=function(){return t.get().isSome()},o=function(e){return t.get().each(e)};return{clear:e,set:n,isSet:r,on:o}},wV=function(t,e){return function(n){var r=yV(),o=function(){n.setActive(t.formatter.match(e));var o=t.formatter.formatChanged(e,n.setActive);r.set(o)};return t.initialized?o():t.on("init",o),r.clear}},CV=function(t){return function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("mceToggleFormat",!1,e.format)}))}}},SV="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",kV=function(t){var e=function(e){return function(){return t.formatter.match(e)}},n=function(e){return function(){var n=t.formatter.get(e);return w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))})}},r=function(e){var n=gV(t,(function(){return a.data})),r=n.fold((function(){return"Paragraph"}),(function(t){return t.title}));fi(e,vN,{text:r})},o=w.some((function(t){return function(){return r(t)}})),i=w.some((function(t){return r(t)})),a=XF(t,"block_formats",SV,LP.SemiColon);return{tooltip:"Blocks",icon:w.none(),isSelectedFor:e,getCurrentValue:w.none,getPreviewFor:n,onAction:CV(t),setInitialValue:i,nodeChangeHandler:o,dataset:a,shouldHide:!1,isInvalid:function(e){return!t.formatter.canApply(e.format)}}},OV=function(t,e){return UF(t,e,kV(t))},_V=function(t,e){var n=zF(t,e,kV(t));t.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},AV=function(t,e){var n=function(e){return function(){return t.formatter.match(e)}},r=function(e){return function(){var n=t.formatter.get(e);return void 0!==n?w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))}):w.none()}},o=function(e){var n=function(t){var e=t.items;return void 0!==e&&e.length>0?nt(e,n):[{title:t.title,format:t.format}]},r=nt(mj(t),n),o=gV(t,(function(){return r})),i=o.fold((function(){return"Paragraph"}),(function(t){return t.title}));fi(e,vN,{text:i})},i=w.some((function(t){return function(){return o(t)}})),a=w.some((function(t){return o(t)}));return{tooltip:"Formats",icon:w.none(),isSelectedFor:n,getCurrentValue:w.none,getPreviewFor:r,onAction:CV(t),setInitialValue:a,nodeChangeHandler:i,shouldHide:t.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(e){return!t.formatter.canApply(e.format)},dataset:e}},EV=function(t,e){var n=h({type:"advanced"},e.styleselect);return UF(t,e,AV(t,n))},TV=function(t,e){var n=h({type:"advanced"},e.styleselect),r=zF(t,e,AV(t,n));t.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},DV=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],IV=function(t,e){return function(n,r,o){var i=t(n).mapError((function(t){return an(t)})).getOrDie();return e(i,r,o)}},BV={button:IV(Ww,(function(t,e){return dF(t,e.backstage.shared.providers)})),togglebutton:IV(Yw,(function(t,e){return pF(t,e.backstage.shared.providers)})),menubutton:IV(F$,(function(t,e){return IN(t,"tox-tbtn",e.backstage,w.none())})),splitbutton:IV(H$,(function(t,e){return vF(t,e.backstage.shared)})),grouptoolbarbutton:IV(j$,(function(t,e,n){var r,o=n.ui.registry.getAll().buttons,i=function(t){return FV(n,{buttons:o,toolbar:t,allowToolbarGroups:!1},e,w.none())},a=(r={},r[Ff]=e.backstage.shared.header.isPositionedAtTop()?wc.TopToBottom:wc.BottomToTop,r);switch(mk(n)){case uC.floating:return lF(t,e.backstage,i,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(t,e){return EV(t,e.backstage)},fontsizeSelectButton:function(t,e){return pV(t,e.backstage)},fontSelectButton:function(t,e){return iV(t,e.backstage)},formatButton:function(t,e){return OV(t,e.backstage)},alignMenuButton:function(t,e){return JF(t,e.backstage)}},LV=function(t,e,n){return $t(BV,t.type).fold((function(){return console.error("skipping button defined by",t),w.none()}),(function(r){return w.some(r(t,e,n))}))},NV={styleselect:BV.styleSelectButton,fontsizeselect:BV.fontsizeSelectButton,fontselect:BV.fontSelectButton,formatselect:BV.formatButton,align:BV.alignMenuButton},PV=function(t){var e=W(DV,(function(e){var n=X(e.items,(function(e){return Ft(t,e)||Ft(NV,e)}));return{name:e.name,items:n}}));return X(e,(function(t){return t.items.length>0}))},MV=function(t){var e=t.split("|");return W(e,(function(t){return{items:t.trim().split(" ")}}))},jV=function(t){return P(t,(function(t){return Ft(t,"name")&&Ft(t,"items")}))},RV=function(t){var e=t.toolbar,n=t.buttons;return!1===e?[]:void 0===e||!0===e?PV(n):_(e)?MV(e):jV(e)?e:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},$V=function(t,e,n,r,o,i){return $t(e,n.toLowerCase()).orThunk((function(){return i.bind((function(t){return dt(t,(function(t){return $t(e,t+n.toLowerCase())}))}))})).fold((function(){return $t(NV,n.toLowerCase()).map((function(e){return e(t,o)})).orThunk((function(){return w.none()}))}),(function(e){return"grouptoolbarbutton"!==e.type||r?LV(e,o,t):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),w.none())}))},FV=function(t,e,n,r){var o=RV(e),i=W(o,(function(o){var i=nt(o.items,(function(o){return 0===o.trim().length?[]:$V(t,e.buttons,o,e.allowToolbarGroups,n,r).toArray()}));return{title:w.from(t.translate(o.name)),items:i}}));return X(i,(function(t){return t.items.length>0}))},VV=12,HV={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},zV={maxHeightFunction:Df(),maxWidthFunction:sR()},UV={onLtr:function(){return[yl,xl,vl,ml,bl,gl,Gx,Yx,Wx,zx,qx,Ux]},onRtl:function(){return[yl,xl,bl,gl,vl,ml,Gx,Yx,qx,Ux,Wx,zx]}},WV={onLtr:function(){return[xl,ml,gl,vl,bl,yl,Gx,Yx,Wx,zx,qx,Ux]},onRtl:function(){return[xl,gl,ml,bl,vl,yl,Gx,Yx,qx,Ux,Wx,zx]}},qV=function(t,e){return"line"===t?{bubble:Pf(VV,0,HV),layouts:{onLtr:function(){return[wl]},onRtl:function(){return[Cl]}},overrides:zV}:{bubble:Pf(0,VV,HV),layouts:e?WV:UV,overrides:zV}},GV=function(t,e,n,r){var o=Gr().deviceType.isTouch,i=ys(VF({sink:n,onEscape:function(){return t.focus(),w.some(!0)}})),a=function(){return TF(t,r.backstage.shared)},u=function(t,e,n,r){return Math.max(t,n)<=Math.min(e,r)},s=function(){var e=p.get().filter((function(t){return Uu(er.fromDom(t))})).map((function(t){return t.getBoundingClientRect()})).getOrThunk((function(){return t.selection.getRng().getBoundingClientRect()})),n=t.inline?Us().top:ic(er.fromDom(t.getBody())).y;return{y:e.top+n,bottom:e.bottom+n}},c=function(){if(o()&&r.backstage.isContextMenuOpen())return!0;var t=s(),e=a();return!u(t.y,t.bottom,e.y,e.bottom)},l=function(){jx.hide(i)},f=function(){d.get().each((function(t){var e=i.element;rs(e,"display"),c()?Xu(e,"display","none"):Bh.positionWithinBounds(n,t,i,w.some(a()))}))},d=Xn(w.none()),p=Xn(w.none()),m=Xn(null),g=function(e){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[e],behaviours:Fl([fy.config({mode:"acyclic"}),Sy("pop-dialog-wrap-events",[Di((function(e){t.shortcuts.add("ctrl+F9","focus statusbar",(function(){return fy.focusIn(e)}))})),Ii((function(e){t.shortcuts.remove("ctrl+F9")}))])])}},v=Kt((function(){return MF(e,(function(t){var e=x([t]);fi(i,jF,{forwardContents:g(e)})}))})),b=function(e,n){return FV(t,{buttons:e,toolbar:n.items,allowToolbarGroups:!1},r,w.some(["form:"]))},y=function(t,e){return _F.buildInitGroups(t,e)},x=function(e){var n=t.ui.registry.getAll().buttons,o=v(),i=h(h({},n),o.formNavigators),a=mk(t)===uC.scrolling?uC.scrolling:uC.default,u=et(W(e,(function(t){return"contexttoolbar"===t.type?b(i,t):y(t,r.backstage.shared.providers)})));return P$({type:a,uid:Aa("context-toolbar"),initGroups:u,onEscape:w.none,cyclicKeying:!0,providers:r.backstage.shared.providers})};t.on(cR,(function(e){var n=v();$t(n.lookupTable,e.toolbarKey).each((function(n){S([n],e.target===t?w.none():w.some(e)),jx.getContent(i).each(fy.focusIn)}))}));var C=function(t,e){var n="node"===t?r.backstage.shared.anchors.node(e):r.backstage.shared.anchors.cursor();return Yt(n,qV(t,o()))},S=function(t,e){if(O(),!o()||!r.backstage.isContextMenuOpen()){var n=x(t),u=e.map(er.fromDom),s=C(t[0].position,u);d.set(w.some(s)),p.set(e);var l=i.element;rs(l,"display"),jx.showWithinBounds(i,s,g(n),(function(){return w.some(a())})),c()&&Xu(l,"display","none")}},k=function(){if(t.hasFocus()){var e=v();PF(e,t).fold((function(){d.set(w.none()),jx.hide(i)}),(function(t){S(t.toolbars,w.some(t.elem.dom))}))}},O=function(){var t=m.get();null!==t&&(Xx.clearTimeout(t),m.set(null))},_=function(t){O(),m.set(t)};t.on("init",(function(){t.on(lR,l),t.on("ScrollContent ScrollWindow longpress",f),t.on("click keyup focus SetContent ObjectResized ResizeEditor",(function(){_(Xx.setEditorTimeout(t,k,0))})),t.on("focusout",(function(e){Xx.setEditorTimeout(t,(function(){tf(n.element).isNone()&&tf(i.element).isNone()&&(d.set(w.none()),jx.hide(i))}),0)})),t.on("SwitchMode",(function(){t.mode.isReadOnly()&&(d.set(w.none()),jx.hide(i))})),t.on("NodeChange",(function(e){tf(i.element).fold((function(){_(Xx.setEditorTimeout(t,k,0))}),(function(t){}))}))}))},YV=function(t,e,n){var r=function(t,r){q([e,n],(function(e){e.broadcastEvent(t,r)}))},o=function(t,r){q([e,n],(function(e){e.broadcastOn([t],r)}))},i=function(t){return o(hp(),{target:t.target})},a=dA(er.fromDom(document),"touchstart",i),u=dA(er.fromDom(document),"touchmove",(function(t){return r(Ko(),t)})),s=dA(er.fromDom(document),"touchend",(function(t){return r(Zo(),t)})),c=dA(er.fromDom(document),"mousedown",i),l=dA(er.fromDom(document),"mouseup",(function(t){0===t.raw.button&&o(mp(),{target:t.target})})),f=function(t){return o(hp(),{target:er.fromDom(t.target)})},d=function(t){0===t.button&&o(mp(),{target:er.fromDom(t.target)})},h=function(t){return r(Jo(),pA(t))},p=function(t){o(pp(),{}),r(Qo(),pA(t))},m=function(){return o(pp(),{})};t.on("PostRender",(function(){t.on("click",f),t.on("tap",f),t.on("mouseup",d),t.on("ScrollWindow",h),t.on("ResizeWindow",p),t.on("ResizeEditor",m)})),t.on("remove",(function(){t.off("click",f),t.off("tap",f),t.off("mouseup",d),t.off("ScrollWindow",h),t.off("ResizeWindow",p),t.off("ResizeEditor",m),c.unbind(),a.unbind(),u.unbind(),s.unbind(),l.unbind()})),t.on("detach",(function(){qh(e),qh(n),e.destroy(),n.destroy()}))},XV=Km,KV=Bm,ZV=i([Rn("shell",!1),yn("makeItem"),Rn("setupItem",e),Jp.field("listBehaviours",[wy])]),JV=function(){return{behaviours:Fl([wy.config({})])}},QV=Tm({name:"items",overrides:JV}),tH=i([QV]),eH=i("CustomList"),nH=function(t,e,n,r){var o=function(e,n){a(e).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var o=wy.contents(r),i=n.length,a=i-o.length,u=a>0?z(a,(function(){return t.makeItem()})):[],s=o.slice(i);q(s,(function(t){return wy.remove(r,t)})),q(u,(function(t){return wy.append(r,t)}));var c=wy.contents(r);q(c,(function(r,o){t.setupItem(e,r,n[o],o)}))}))},i=t.shell?{behaviours:[wy.config({})],components:[]}:{behaviours:[],components:e},a=function(e){return t.shell?w.some(e):Hm(e,t,"items")};return{uid:t.uid,dom:t.dom,components:i.components,behaviours:Zp(t.listBehaviours,i.behaviours),apis:{setItems:o}}},rH=sg({name:eH(),configFields:ZV(),partFields:tH(),factory:nH,apis:{setItems:function(t,e,n){t.setItems(e,n)}}}),oH=e,iH=l,aH=i([]),uH=Object.freeze({__proto__:null,setup:oH,isDocked:iH,getBehaviours:aH}),sH=function(t){var e=ts(t,"position").is("fixed"),n=e?w.none():Gi(t);return n.orThunk((function(){var e=er.fromTag("span");return Wi(t).bind((function(t){ea(t,e);var n=Gi(e);return aa(e),n}))}))},cH=function(t){return sH(t).map(Ds).getOrThunk((function(){return As(0,0)}))},lH=zt.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),fH=function(t,e){var n=t.element;Au(n,e.transitionClass),Tu(n,e.fadeOutClass),Au(n,e.fadeInClass),e.onShow(t)},dH=function(t,e){var n=t.element;Au(n,e.transitionClass),Tu(n,e.fadeInClass),Au(n,e.fadeOutClass),e.onHide(t)},hH=function(t,e){return t.y<e.bottom&&t.bottom>e.y},pH=function(t,e){return t.y>=e.y},mH=function(t,e){return t.bottom<=e.bottom},gH=function(t,e,n){return rt(t,(function(t){switch(t){case"bottom":return mH(e,n);case"top":return pH(e,n)}}))},vH=function(t,e){return e.getInitialPosition().map((function(e){return rc(e.bounds.x,e.bounds.y,Ns(t),Ss(t))}))},bH=function(t,e,n){n.setInitialPosition(w.some({style:es(t),position:Ju(t,"position")||"static",bounds:e}))},yH=function(t,e,n){return n.getInitialPosition().bind((function(r){switch(n.setInitialPosition(w.none()),r.position){case"static":return w.some(lH.static());case"absolute":var o=sH(t).map(oc).getOrThunk((function(){return oc(Wu())}));return w.some(lH.absolute(nf("absolute",$t(r.style,"left").map((function(t){return e.x-o.x})),$t(r.style,"top").map((function(t){return e.y-o.y})),$t(r.style,"right").map((function(t){return o.right-e.right})),$t(r.style,"bottom").map((function(t){return o.bottom-e.bottom})))));default:return w.none()}}))},xH=function(t,e,n){return vH(t,n).filter((function(t){return gH(n.getModes(),t,e)})).bind((function(e){return yH(t,e,n)}))},wH=function(t,e,n){var r=oc(t);if(gH(n.getModes(),r,e))return w.none();bH(t,r,n);var o=ac(),i=r.x-o.x,a=e.y-o.y,u=o.bottom-e.bottom,s=r.y<=e.y;return w.some(lH.fixed(nf("fixed",w.some(i),s?w.some(a):w.none(),w.none(),s?w.none():w.some(u))))},CH=function(t,e,n){var r=t.element,o=ts(r,"position").is("fixed");return o?xH(r,e,n):wH(r,e,n)},SH=function(t,e){var n=t.element;return vH(n,e).bind((function(t){return yH(n,t,e)}))},kH=function(t,e){q(["left","right","top","bottom","position"],(function(e){return rs(t.element,e)})),e.onUndocked(t)},OH=function(t,e,n){rf(t.element,n);var r="fixed"===n.position?e.onDocked:e.onUndocked;r(t)},_H=function(t,e,n,r,o){void 0===o&&(o=!1),e.contextual.each((function(e){e.lazyContext(t).each((function(i){var a=hH(i,r);if(a!==n.isVisible())if(n.setVisible(a),o&&!a)Iu(t.element,[e.fadeOutClass]),e.onHide(t);else{var u=a?fH:dH;u(t,e)}}))}))},AH=function(t,e,n){var r=e.lazyViewport(t),o=n.isDocked();o&&_H(t,e,n,r),CH(t,r,n).each((function(i){n.setDocked(!o),i.fold((function(){return kH(t,e)}),(function(n){return OH(t,e,n)}),(function(o){_H(t,e,n,r,!0),OH(t,e,o)}))}))},EH=function(t,n,r){var o=t.element;r.setDocked(!1),SH(t,r).each((function(r){r.fold((function(){return kH(t,n)}),(function(e){return OH(t,n,e)}),e)})),r.setVisible(!0),n.contextual.each((function(e){Bu(o,[e.fadeInClass,e.fadeOutClass,e.transitionClass]),e.onShow(t)})),TH(t,n,r)},TH=function(t,e,n){t.getSystem().isConnected()&&AH(t,e,n)},DH=function(t,e,n){n.isDocked()&&EH(t,e,n)},IH=function(t,e,n){return n.isDocked()},BH=function(t,e,n,r){return n.setModes(r)},LH=function(t,e,n){return n.getModes()},NH=Object.freeze({__proto__:null,refresh:TH,reset:DH,isDocked:IH,getModes:LH,setModes:BH}),PH=function(t,e){return gi([Ti(Po(),(function(n,r){t.contextual.each((function(t){if(Du(n.element,t.transitionClass)){Bu(n.element,[t.transitionClass,t.fadeInClass]);var o=e.isVisible()?t.onShown:t.onHidden;o(n)}r.stop()}))})),xi(Jo(),(function(n,r){TH(n,t,e)})),xi(Qo(),(function(n,r){DH(n,t,e)}))])},MH=Object.freeze({__proto__:null,events:PH}),jH=[Mn("contextual",[Cn("fadeInClass"),Cn("fadeOutClass"),Cn("transitionClass"),On("lazyContext"),Rc("onShow"),Rc("onShown"),Rc("onHide"),Rc("onHidden")]),Un("lazyViewport",ac),qn("modes",["top","bottom"],hn),Rc("onDocked"),Rc("onUndocked")],RH=function(t){var e=Xn(!1),n=Xn(!0),r=Xn(w.none()),o=Xn(t.modes),i=function(){return"docked: "+e.get()+", visible: "+n.get()+", modes: "+o.get().join(",")};return Ya({isDocked:e.get,setDocked:e.set,getInitialPosition:r.get,setInitialPosition:r.set,isVisible:n.get,setVisible:n.set,getModes:o.get,setModes:o.set,readState:i})},$H=Object.freeze({__proto__:null,init:RH}),FH=Hl({fields:jH,name:"docking",active:MH,apis:NH,state:$H}),VH={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},HH="tox-tinymce--toolbar-sticky-on",zH="tox-tinymce--toolbar-sticky-off",UH=function(t,e){var n=Vi(e),r=n.dom.defaultView.innerHeight,o=Us(n),i=er.fromDom(t.elm),a=ic(i),u=Ss(i),s=a.y,c=s+u,l=Ds(e),f=Ss(e),d=l.top,h=d+f,p=Math.abs(d-o.top)<2,m=Math.abs(h-(o.top+r))<2;if(p&&s<h)Ws(o.left,s-f,n);else if(m&&c>d){var g=s-r+u+f;Ws(o.left,g,n)}},WH=function(t,e){return V(FH.getModes(t),e)},qH=function(t){var e=function(t){return ks(t)+(parseInt(Ju(t,"margin-top"),10)||0)+(parseInt(Ju(t,"margin-bottom"),10)||0)},n=t.element;Wi(n).each((function(r){var o="padding-"+FH.getModes(t)[0];if(FH.isDocked(t)){var i=Ns(r);Xu(n,"width",i+"px"),Xu(r,o,e(n)+"px")}else rs(n,"width"),rs(r,o)}))},GH=function(t,e){e?(Tu(t,VH.fadeOutClass),Iu(t,[VH.transitionClass,VH.fadeInClass])):(Tu(t,VH.fadeInClass),Iu(t,[VH.fadeOutClass,VH.transitionClass]))},YH=function(t,e){var n=er.fromDom(t.getContainer());e?(Au(n,HH),Tu(n,zH)):(Au(n,zH),Tu(n,HH))},XH=function(t,e){var n=Vi(e);Ql(n).filter((function(t){return!oo(e,t)})).filter((function(e){return oo(e,er.fromDom(n.dom.body))||uo(t,e)})).each((function(){return Kl(e)}))},KH=function(t,e){return tf(t).orThunk((function(){return e().toOptional().bind((function(t){return tf(t.element)}))}))},ZH=function(t,e,n){t.inline||(e.header.isPositionedAtTop()||t.on("ResizeEditor",(function(){n().each(FH.reset)})),t.on("ResizeWindow ResizeEditor",(function(){n().each(qH)})),t.on("SkinLoaded",(function(){n().each((function(t){FH.isDocked(t)?FH.reset(t):FH.refresh(t)}))})),t.on("FullscreenStateChanged",(function(){n().each(FH.reset)}))),t.on("AfterScrollIntoView",(function(t){n().each((function(e){FH.refresh(e);var n=e.element;Lv(n)&&UH(t,n)}))})),t.on("PostRender",(function(){YH(t,!1)}))},JH=function(t){return t().map(FH.isDocked).getOr(!1)},QH=function(){var t;return[ql.config({channels:(t={},t[E$()]={onReceive:qH},t)})]},tz=function(t,e){var n=Xn(w.none()),r=e.getSink,o=function(t){r().each((function(e){return t(e.element)}))},i=function(e){t.inline||qH(e),YH(t,FH.isDocked(e)),e.getSystem().broadcastOn([pp()],{}),r().each((function(t){return t.getSystem().broadcastOn([pp()],{})}))},a=t.inline?[]:QH();return m([By.config({}),FH.config({contextual:h({lazyContext:function(e){var n=ks(e.element),r=t.inline?t.getContentAreaContainer():t.getContainer(),o=oc(er.fromDom(r)),i=o.height-n,a=o.y+(WH(e,"top")?0:n);return w.some(rc(o.x,a,o.width,i))},onShow:function(){o((function(t){return GH(t,!0)}))},onShown:function(t){o((function(t){return Bu(t,[VH.transitionClass,VH.fadeInClass])})),n.get().each((function(e){XH(t.element,e),n.set(w.none())}))},onHide:function(t){n.set(KH(t.element,r)),o((function(t){return GH(t,!1)}))},onHidden:function(){o((function(t){return Bu(t,[VH.transitionClass])}))}},VH),modes:[e.header.getDockingMode()],onDocked:i,onUndocked:i})],a)},ez=Object.freeze({__proto__:null,setup:ZH,isDocked:JH,getBehaviours:tz}),nz=function(t){var e=t.editor,n=t.sticky?tz:aH;return{uid:t.uid,dom:t.dom,components:t.components,behaviours:Fl(n(e,t.sharedBackstage))}},rz=function(t,e){var n=function(t,n){var r=W(n,(function(t){var n={type:"menubutton",text:t.text,fetch:function(e){e(t.getItems())}},r=F$(n).mapError((function(t){return an(t)})).getOrDie();return IN(r,"tox-mbtn",e.backstage,w.some("menuitem"))}));wy.set(t,r)},r={focus:fy.focusIn,setMenus:n};return{uid:t.uid,dom:t.dom,components:[],behaviours:Fl([wy.config({}),Sy("menubar-events",[Di((function(e){t.onSetup(e)})),xi(Ao(),(function(t,e){pc(t.element,".tox-mbtn--active").each((function(n){mc(e.event.target,".tox-mbtn").each((function(e){oo(n,e)||t.getSystem().getByDom(n).each((function(n){t.getSystem().getByDom(e).each((function(t){gT.expand(t),gT.close(n),By.focus(t)}))}))}))}))})),xi(oi(),(function(t,e){e.event.prevFocus.bind((function(e){return t.getSystem().getByDom(e).toOptional()})).each((function(n){e.event.newFocus.bind((function(e){return t.getSystem().getByDom(e).toOptional()})).each((function(t){gT.isOpen(n)&&(gT.expand(t),gT.close(n))}))}))}))]),fy.config({mode:"flow",selector:".tox-mbtn",onEscape:function(e){return t.onEscape(e),w.some(!0)}}),QA.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},oz=ug({factory:rz,name:"silver.Menubar",configFields:[yn("dom"),yn("uid"),yn("onEscape"),yn("backstage"),Rn("onSetup",e)],apis:{focus:function(t,e){t.focus(e)},setMenus:function(t,e,n){t.setMenus(e,n)}}}),iz="container",az=[Xp("slotBehaviours",[])],uz=function(t){return"<alloy.field."+t+">"},sz=function(t){var e=function(){var t=[],e=function(e,n){return t.push(e),jm(iz,uz(e),n)};return{slot:e,record:function(){return t}}}(),n=t(e),r=e.record(),o=W(r,(function(t){return Am({name:t,pname:uz(t)})}));return tg(iz,az,o,cz,n)},cz=function(t,e){var n=function(e){return qm(t)},r=function(e,n){return Hm(e,t,n)},o=function(e,n){return function(r,o){return Hm(r,t,o).map((function(t){return e(t,o)})).getOr(n)}},i=function(t){return function(e,n){q(n,(function(n){return t(e,n)}))}},a=function(t,e){return"true"!==ma(t.element,"aria-hidden")},u=function(t,e){if(!a(t)){var n=t.element;rs(n,"display"),ba(n,"aria-hidden"),fi(t,ii(),{name:e,visible:!0})}},s=function(t,e){if(a(t)){var n=t.element;Xu(n,"display","none"),ha(n,"aria-hidden","true"),fi(t,ii(),{name:e,visible:!1})}},c=o(a,!1),l=o(s),f=i(l),d=function(t){return f(t,n())},h=o(u),p={getSlotNames:n,getSlot:r,isShowing:c,hideSlot:l,hideAllSlots:d,showSlot:h};return{uid:t.uid,dom:t.dom,components:e,behaviours:Kp(t.slotBehaviours),apis:p}},lz=It({getSlotNames:function(t,e){return t.getSlotNames(e)},getSlot:function(t,e,n){return t.getSlot(e,n)},isShowing:function(t,e,n){return t.isShowing(e,n)},hideSlot:function(t,e,n){return t.hideSlot(e,n)},hideAllSlots:function(t,e){return t.hideAllSlots(e)},showSlot:function(t,e,n){return t.showSlot(e,n)}},(function(t){return qa(t)})),fz=h(h({},lz),{sketch:sz}),dz=Re([Ln("icon"),Ln("tooltip"),Un("onShow",e),Un("onHide",e),Un("onSetup",(function(){return e}))]),hz=function(t){return nn("sidebar",dz,t)},pz=function(t){var e=t.ui.registry.getAll().sidebars;q(Et(e),(function(n){var r=e[n],o=function(){return w.from(t.queryCommandValue("ToggleSidebar")).is(n)};t.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(e){t.execCommand("ToggleSidebar",!1,n),e.setActive(o())},onSetup:function(e){var n=function(){return e.setActive(o())};return t.on("ToggleSidebar",n),function(){t.off("ToggleSidebar",n)}}})}))},mz=function(t){return{element:function(){return t.element.dom}}},gz=function(t,n){var r=W(Et(n),(function(t){var e=n[t],r=rn(hz(e));return{name:t,getApi:mz,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return W(r,(function(n){var o=Xn(e);return t.slot(n.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:gS.unnamedEvents([Xk(n,o),Kk(n,o),xi(ii(),(function(t,e){var n=e.event,o=Q(r,(function(t){return t.name===n.name}));o.each((function(e){var r=n.visible?e.onShow:e.onHide;r(e.getApi(t))}))}))])})}))},vz=function(t){return fz.sketch((function(e){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:gz(e,t),slotBehaviours:gS.unnamedEvents([Di((function(t){return fz.hideAllSlots(t)}))])}}))},bz=function(t,e){var n=yg.getCurrent(t);n.each((function(t){return wy.set(t,[vz(e)])}))},yz=function(t,e){var n=yg.getCurrent(t);n.each((function(t){var n=yg.getCurrent(t);n.each((function(n){x$.hasGrown(t)?fz.isShowing(n,e)?x$.shrink(t):(fz.hideAllSlots(n),fz.showSlot(n,e)):(fz.hideAllSlots(n),fz.showSlot(n,e),x$.grow(t))}))}))},xz=function(t){var e=yg.getCurrent(t);return e.bind((function(t){var e=x$.isGrowing(t)||x$.hasGrown(t);if(e){var n=yg.getCurrent(t);return n.bind((function(t){return Q(fz.getSlotNames(t),(function(e){return fz.isShowing(t,e)}))}))}return w.none()}))},wz=Aa("FixSizeEvent"),Cz=Aa("AutoSizeEvent"),Sz=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Fl([QA.config({}),By.config({}),x$.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(t){var e=yg.getCurrent(t);e.each(fz.hideAllSlots),li(t,Cz)},onGrown:function(t){li(t,Cz)},onStartGrow:function(t){fi(t,wz,{width:ts(t.element,"width").getOr("")})},onStartShrink:function(t){fi(t,wz,{width:Ns(t.element)+"px"})}}),wy.config({}),yg.config({find:function(t){var e=wy.contents(t);return ct(e)}})])}],behaviours:Fl([_B.childAt(0),Sy("sidebar-sliding-events",[xi(wz,(function(t,e){Xu(t.element,"width",e.event.width)})),xi(Cz,(function(t,e){rs(t.element,"width")}))])])}},kz=function(t){var e=void 0!==t.dom.attributes?t.dom.attributes:[];return Z(e,(function(t,e){var n;return"class"===e.name?t:h(h({},t),(n={},n[e.name]=e.value,n))}),{})},Oz=function(t){return Array.prototype.slice.call(t.dom.classList,0)},_z=function(t){var e=er.fromHtml(t),n=Xi(e),r=kz(e),o=Oz(e),i=0===n.length?{}:{innerHtml:ca(e)};return h({tag:Ni(e),classes:o,attributes:r},i)},Az=function(t){return{dom:{tag:"div",attributes:{"aria-label":t.translate("Loading...")},classes:["tox-throbber__busy-spinner"]},components:[{dom:_z('<div class="tox-spinner"><div></div><div></div><div></div></div>')}],behaviours:Fl([fy.config({mode:"special",onTab:function(){return w.some(!0)},onShiftTab:function(){return w.some(!0)}}),By.config({})])}},Ez=function(t,e,n){var r=t.element;!0===e?(wy.set(t,[Az(n)]),rs(r,"display"),ba(r,"aria-hidden")):(wy.set(t,[]),Xu(r,"display","none"),ha(r,"aria-hidden","true"))},Tz=function(t){return{uid:t.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Fl([wy.config({})]),components:[]}},Dz=function(t,e,n){var r=Xn(!1),o=Xn(w.none()),i=function(t){t!==r.get()&&(Ez(e(),t,n.providers),r.set(t))};t.on("ProgressState",(function(e){if(o.get().each(Xx.clearTimeout),N(e.time)){var n=Xx.setEditorTimeout(t,(function(){return i(e.state)}),e.time);o.set(w.some(n))}else i(e.state),o.set(w.none())}))},Iz=function(t,e,n){var r={getSocket:function(e){return XV.getPart(e,t,"socket")},setSidebar:function(e,n){XV.getPart(e,t,"sidebar").each((function(t){return bz(t,n)}))},toggleSidebar:function(e,n){XV.getPart(e,t,"sidebar").each((function(t){return yz(t,n)}))},whichSidebar:function(e){return XV.getPart(e,t,"sidebar").bind(xz).getOrNull()},getHeader:function(e){return XV.getPart(e,t,"header")},getToolbar:function(e){return XV.getPart(e,t,"toolbar")},setToolbar:function(e,n){XV.getPart(e,t,"toolbar").each((function(t){t.getApis().setGroups(t,n)}))},setToolbars:function(e,n){XV.getPart(e,t,"multiple-toolbar").each((function(t){rH.setItems(t,n)}))},refreshToolbar:function(e){var n=XV.getPart(e,t,"toolbar");n.each((function(t){return t.getApis().refresh(t)}))},toggleToolbarDrawer:function(e){XV.getPart(e,t,"toolbar").each((function(t){hg(t.getApis().toggle,(function(e){return e(t)}))}))},isToolbarDrawerToggled:function(e){return XV.getPart(e,t,"toolbar").bind((function(t){return w.from(t.getApis().isOpen).map((function(e){return e(t)}))})).getOr(!1)},getThrobber:function(e){return XV.getPart(e,t,"throbber")},focusToolbar:function(e){var n=XV.getPart(e,t,"toolbar").orThunk((function(){return XV.getPart(e,t,"multiple-toolbar")}));n.each((function(t){fy.focusIn(t)}))},setMenubar:function(e,n){XV.getPart(e,t,"menubar").each((function(t){oz.setMenus(t,n)}))},focusMenubar:function(e){XV.getPart(e,t,"menubar").each((function(t){oz.focus(t)}))}};return{uid:t.uid,dom:t.dom,components:e,apis:r,behaviours:t.behaviours}},Bz=KV.optional({factory:oz,name:"menubar",schema:[yn("backstage")]}),Lz=function(t){return t.type===uC.sliding?N$:t.type===uC.floating?L$:P$},Nz=KV.optional({factory:{sketch:function(t){return rH.sketch({uid:t.uid,dom:t.dom,listBehaviours:Fl([fy.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return P$({type:t.type,uid:Aa("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:t.providers,onEscape:function(){return t.onEscape(),w.some(!0)}})},setupItem:function(t,e,n,r){mR.setGroups(e,n)},shell:!0})}},name:"multiple-toolbar",schema:[yn("dom"),yn("onEscape")]}),Pz=KV.optional({factory:{sketch:function(t){var e=Lz(t),n={type:t.type,uid:t.uid,onEscape:function(){return t.onEscape(),w.some(!0)},cyclicKeying:!1,initGroups:[],getSink:t.getSink,providers:t.providers,moreDrawerData:{lazyToolbar:t.lazyToolbar,lazyMoreButton:t.lazyMoreButton,lazyHeader:t.lazyHeader},attributes:t.attributes};return e(n)}},name:"toolbar",schema:[yn("dom"),yn("onEscape"),yn("getSink")]}),Mz=KV.optional({factory:{sketch:nz},name:"header",schema:[yn("dom")]}),jz=KV.optional({name:"socket",schema:[yn("dom")]}),Rz=KV.optional({factory:{sketch:Sz},name:"sidebar",schema:[yn("dom")]}),$z=KV.optional({factory:{sketch:Tz},name:"throbber",schema:[yn("dom")]}),Fz=sg({name:"OuterContainer",factory:Iz,configFields:[yn("dom"),yn("behaviours")],partFields:[Mz,Bz,Pz,Nz,jz,Rz,$z],apis:{getSocket:function(t,e){return t.getSocket(e)},setSidebar:function(t,e,n){t.setSidebar(e,n)},toggleSidebar:function(t,e,n){t.toggleSidebar(e,n)},whichSidebar:function(t,e){return t.whichSidebar(e)},getHeader:function(t,e){return t.getHeader(e)},getToolbar:function(t,e){return t.getToolbar(e)},setToolbar:function(t,e,n){var r=W(n,(function(t){return D$(t)}));t.setToolbar(e,r)},setToolbars:function(t,e,n){var r=W(n,(function(t){return W(t,D$)}));t.setToolbars(e,r)},refreshToolbar:function(t,e){return t.refreshToolbar(e)},toggleToolbarDrawer:function(t,e){t.toggleToolbarDrawer(e)},isToolbarDrawerToggled:function(t,e){return t.isToolbarDrawerToggled(e)},getThrobber:function(t,e){return t.getThrobber(e)},setMenubar:function(t,e,n){t.setMenubar(e,n)},focusMenubar:function(t,e){t.focusMenubar(e)},focusToolbar:function(t,e){t.focusToolbar(e)}}}),Vz="file edit view insert format tools table help",Hz={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},zz=function(t,e,n){var r=ck(n).split(/[ ,]/);return{text:t.title,getItems:function(){return nt(t.items,(function(t){var n=t.toLowerCase();return 0===n.trim().length||H(r,(function(t){return t===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:e.menuItems[n]?[e.menuItems[n]]:[]}))}}},Uz=function(t){return"string"===typeof t?t.split(" "):t},Wz=function(t,e){var n=h(h({},Hz),e.menus),r=Et(e.menus).length>0,o=void 0===e.menubar||!0===e.menubar?Uz(Vz):Uz(!1===e.menubar?"":e.menubar),i=X(o,(function(t){return r&&e.menus.hasOwnProperty(t)&&e.menus[t].hasOwnProperty("items")||Hz.hasOwnProperty(t)})),a=W(i,(function(r){var o=n[r];return zz({title:o.title,items:Uz(o.items)},e,t)}));return X(a,(function(t){var e=function(t){return"separator"!==t.type};return t.getItems().length>0&&H(t.getItems(),e)}))},qz=function(t){var e=function(){t._skinLoaded=!0,YO(t)};return function(){t.initialized?e():t.on("init",e)}},Gz=function(t,e){return function(){return XO(t,{message:e})}},Yz=function(t,e,n){return new Ow((function(r,o){n.load(e,r,o),t.on("remove",(function(){return n.unload(e)}))}))},Xz=function(t,e){var n=e+"/skin.min.css";return Yz(t,n,t.ui.styleSheetLoader)},Kz=function(t,e){var n=$u(er.fromDom(t.getElement()));if(n){var r=e+"/skin.shadowdom.min.css";return Yz(t,r,TS.DOM.styleSheetLoader)}return Ow.resolve()},Zz=function(t,e){var n=ZS(e);n&&e.contentCSS.push(n+(t?"/content.inline":"/content")+".min.css"),!1===QS(e)&&_(n)?Ow.all([Xz(e,n),Kz(e,n)]).then(qz(e),Gz(e,"Skin could not be loaded")):qz(e)()},Jz=u(Zz,!1),Qz=u(Zz,!0),tU=function(t,e,n,r){var o=e.outerContainer,i=n.toolbar,a=n.buttons;if(P(i,_)){var u=i.map((function(e){var o={toolbar:e,buttons:a,allowToolbarGroups:n.allowToolbarGroups};return FV(t,o,{backstage:r},w.none())}));Fz.setToolbars(o,u)}else Fz.setToolbar(o,FV(t,n,{backstage:r},w.none()))},eU=Gr(),nU=eU.os.isiOS()&&eU.os.version.major<=12,rU=function(t,e){var n=t.dom,r=t.getWin(),o=t.getDoc().documentElement,i=Xn(As(r.innerWidth,r.innerHeight)),a=Xn(As(o.offsetWidth,o.offsetHeight)),u=function(){var e=i.get();e.left===r.innerWidth&&e.top===r.innerHeight||(i.set(As(r.innerWidth,r.innerHeight)),ZO(t))},s=function(){var e=t.getDoc().documentElement,n=a.get();n.left===e.offsetWidth&&n.top===e.offsetHeight||(a.set(As(e.offsetWidth,e.offsetHeight)),ZO(t))},c=function(e){return JO(t,e)};n.bind(r,"resize",u),n.bind(r,"scroll",c);var l=hA(er.fromDom(t.getBody()),"load",s),f=e.uiMothership.element;t.on("hide",(function(){Xu(f,"display","none")})),t.on("show",(function(){rs(f,"display")})),t.on("NodeChange",s),t.on("remove",(function(){l.unbind(),n.unbind(r,"resize",u),n.unbind(r,"scroll",c),r=null}))},oU=function(t,e,n,r,o){var i=Xn(0),a=e.outerContainer;Jz(t);var u=er.fromDom(o.targetNode),s=Ru(ju(u));Uh(u,e.mothership),zh(s,e.uiMothership),t.on("PostRender",(function(){tU(t,e,n,r),i.set(t.getWin().innerWidth),Fz.setMenubar(a,Wz(t,n)),Fz.setSidebar(a,n.sidebar),rU(t,e)}));var c=Fz.getSocket(a).getOrDie("Could not find expected socket element");if(nU){Ku(c.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var l=sw((function(){t.fire("ScrollContent")}),20),f=dA(c.element,"scroll",l.throttle);t.on("remove",f.unbind)}Vk(t,e),t.addCommand("ToggleSidebar",(function(e,n){Fz.toggleSidebar(a,n),t.fire("ToggleSidebar")})),t.addQueryValueHandler("ToggleSidebar",(function(){return Fz.whichSidebar(a)}));var d=mk(t),h=function(){Fz.refreshToolbar(e.outerContainer)};d!==uC.sliding&&d!==uC.floating||t.on("ResizeWindow ResizeEditor ResizeContent",(function(){var e=t.getWin().innerWidth;e!==i.get()&&(h(),i.set(e))}));var p={enable:function(){Fk(e,!1)},disable:function(){Fk(e,!0)},isDisabled:function(){return XS.isDisabled(a)}};return{iframeContainer:c.element.dom,editorContainer:a.element.dom,api:p}},iU=Object.freeze({__proto__:null,render:oU}),aU=function(t){var e=/^[0-9\.]+(|px)$/i;return e.test(""+t)?w.some(parseInt(""+t,10)):w.none()},uU=function(t){return N(t)?t+"px":t},sU=function(t,e,n){var r=e.filter((function(e){return t<e})),o=n.filter((function(e){return t>e}));return r.or(o).getOr(t)},cU=function(t){var e=tk(t),n=rk(t),r=ik(t);return aU(e).map((function(t){return sU(t,n,r)}))},lU=function(t){var e=cU(t);return e.getOr(tk(t))},fU=function(t){var e=ek(t),n=nk(t),r=ok(t);return aU(e).map((function(t){return sU(t,n,r)}))},dU=function(t){var e=fU(t);return e.getOr(ek(t))},hU=function(t,e,n,r,o){var i=n.uiMothership,a=n.outerContainer,u=TS.DOM,s=Sk(t),c=_k(t),l=ok(t).or(fU(t)),f=r.shared.header,d=f.isPositionedAtTop,h=mk(t),p=h===uC.sliding||h===uC.floating,m=Xn(!1),g=function(){return m.get()&&!t.removed},v=function(t){return p?t.fold((function(){return 0}),(function(t){return t.components().length>1?Ss(t.components()[1].element):0})):0},b=function(n){switch(bk(t)){case pk.auto:var r=Fz.getToolbar(a),o=v(r),i=Ss(n.element)-o,u=oc(e),s=u.y>i;if(s)return"top";var c=zi(e),l=Math.max(c.dom.scrollHeight,Ss(c)),f=u.bottom<l-i;if(f)return"bottom";var d=ac(),h=d.bottom<u.bottom-i;return h?"bottom":"top";case pk.bottom:return"bottom";case pk.top:default:return"top"}},y=function(t){var e=o.get();FH.setModes(e,[t]),f.setDockingMode(t);var n=d()?wc.TopToBottom:wc.BottomToTop;ha(e.element,Ff,n)},x=function(){var t=l.getOrThunk((function(){var t=aU(Ju(Wu(),"margin-left")).getOr(0);return Ns(Wu())-Ds(e).left+t}));Xu(o.get().element,"max-width",t+"px")},w=function(){var t=Fz.getToolbar(a),n=v(t),r=oc(e),i=d()?Math.max(r.y-Ss(o.get().element)+n,0):r.bottom;Ku(a.element,{position:"absolute",top:Math.round(i)+"px",left:Math.round(r.x)+"px"})},C=function(){i.broadcastOn([pp()],{})},S=function(t){if(void 0===t&&(t=!1),g()){if(s||x(),p&&Fz.refreshToolbar(a),s||w(),c){var e=o.get();t?FH.reset(e):FH.refresh(e)}C()}},k=function(t){if(void 0===t&&(t=!0),!s&&c&&g()){var e=f.getDockingMode(),n=b(o.get());n!==e&&(y(n),t&&S(!0))}},O=function(){m.set(!0),Xu(a.element,"display","flex"),u.addClass(t.getBody(),"mce-edit-focus"),rs(i.element,"display"),k(!1),S()},_=function(){m.set(!1),n.outerContainer&&(Xu(a.element,"display","none"),u.removeClass(t.getBody(),"mce-edit-focus")),Xu(i.element,"display","none")};return{isVisible:g,isPositionedAtTop:d,show:O,hide:_,update:S,updateMode:k,repositionPopups:C}},pU=function(t,e){var n=oc(t);return{pos:e?n.y:n.bottom,bounds:n}},mU=function(t,e,n,r){var o=Xn(pU(e,n.isPositionedAtTop())),i=function(r){var i=pU(e,n.isPositionedAtTop()),a=i.pos,u=i.bounds,s=o.get(),c=s.pos,l=s.bounds,f=u.height!==l.height||u.width!==l.width;o.set({pos:a,bounds:u}),f&&ZO(t,r),n.isVisible()&&(c!==a?n.update(!0):f&&(n.updateMode(),n.repositionPopups()))};r||(t.on("activate",n.show),t.on("deactivate",n.hide)),t.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),t.on("NodeChange keydown",(function(t){Xx.requestAnimationFrame((function(){return i(t)}))})),t.on("ScrollWindow",(function(){return n.updateMode()}));var a=yV();a.set(hA(er.fromDom(t.getBody()),"load",i)),t.on("remove",(function(){a.clear()}))},gU=function(t,e,n,r,o){var i=e.mothership,a=e.uiMothership,u=e.outerContainer,s=Xn(null),c=er.fromDom(o.targetNode),l=hU(t,c,e,r,s),f=wk(t);Qz(t);var d=function(){if(s.get())l.show();else{s.set(Fz.getHeader(u).getOrDie());var o=kk(t);zh(o,i),zh(o,a),tU(t,e,n,r),Fz.setMenubar(u,Wz(t,n)),l.show(),mU(t,c,l,f),t.nodeChanged()}};t.on("show",d),t.on("hide",l.hide),f||(t.on("focus",d),t.on("blur",l.hide)),t.on("init",(function(){(t.hasFocus()||f)&&d()})),Vk(t,e);var h={show:function(){l.show()},hide:function(){l.hide()},enable:function(){Fk(e,!1)},disable:function(){Fk(e,!0)},isDisabled:function(){return XS.isDisabled(u)}};return{editorContainer:u.element.dom,api:h}},vU=Object.freeze({__proto__:null,render:gU}),bU=function(t){var e=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];NB.each(e,(function(e){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,onAction:function(){return t.execCommand(e.cmd)},icon:e.icon,onSetup:wV(t,e.name)})}));var n={name:"alignnone",text:"No alignment",cmd:"JustifyNone",icon:"align-none"};t.ui.registry.addButton(n.name,{tooltip:n.text,onAction:function(){return t.execCommand(n.cmd)},icon:n.icon})},yU=function(t,e){QF(t,e),aV(t,e),TV(t,e),_V(t,e),mV(t,e)},xU=function(t,e){t.setDisabled(!e.queryCommandState("outdent"));var n=function(){t.setDisabled(!e.queryCommandState("outdent"))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}},wU=function(t){t.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:function(e){return xU(e,t)},onAction:function(){return t.execCommand("outdent")}}),t.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:function(){return t.execCommand("indent")}})},CU=function(t){wU(t)},SU=function(t,e){return function(){t.execCommand("mceToggleFormat",!1,e)}},kU=function(t){NB.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(e,n){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onSetup:wV(t,e.name),onAction:SU(t,e.name)})}));for(var e=1;e<=6;e++){var n="h"+e;t.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+e,onSetup:wV(t,n),onAction:SU(t,n)})}},OU=function(t){NB.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(e){t.ui.registry.addButton(e.name,{tooltip:e.text,icon:e.icon,onAction:function(){return t.execCommand(e.action)}})}))},_U=function(t){NB.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(e){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:function(){return t.execCommand(e.action)},onSetup:wV(t,e.name)})}))},AU=function(t){kU(t),OU(t),_U(t)},EU=function(t){NB.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(e){t.ui.registry.addMenuItem(e.name,{text:e.text,icon:e.icon,shortcut:e.shortcut,onAction:function(){return t.execCommand(e.action)}})})),t.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:SU(t,"code")})},TU=function(t){AU(t),EU(t)},DU=function(t,e,n){var r=function(){return!!e.undoManager&&e.undoManager[n]()},o=function(){t.setDisabled(e.mode.isReadOnly()||!r())};return t.setDisabled(!r()),e.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",o),function(){return e.off("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",o)}},IU=function(t){t.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:function(e){return DU(e,t,"hasUndo")},onAction:function(){return t.execCommand("undo")}}),t.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:function(e){return DU(e,t,"hasRedo")},onAction:function(){return t.execCommand("redo")}})},BU=function(t){t.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",onSetup:function(e){return DU(e,t,"hasUndo")},onAction:function(){return t.execCommand("undo")}}),t.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",onSetup:function(e){return DU(e,t,"hasRedo")},onAction:function(){return t.execCommand("redo")}})},LU=function(t){IU(t),BU(t)},NU=function(t,e){t.setActive(e.hasVisual);var n=function(e){t.setActive(e.hasVisual)};return e.on("VisualAid",n),function(){return e.off("VisualAid",n)}},PU=function(t){t.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:function(e){return NU(e,t)},onAction:function(){t.execCommand("mceToggleVisualAid")}})},MU=function(t){t.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:function(){return t.execCommand("mceToggleVisualAid")}})},jU=function(t){MU(t),PU(t)},RU={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},$U=function(){var t="[0-9]+",e="[+-]?"+t,n="[eE]"+e,r="\\.",o=function(t){return"(?:"+t+")?"},i=["Infinity",t+r+o(t)+o(n),r+t+o(n),t+o(n)].join("|"),a="[+-]?(?:"+i+")";return new RegExp("^("+a+")(.*)$")}(),FU=function(t,e){return H(e,(function(e){return H(RU[e],(function(e){return t===e}))}))},VU=function(t,e){var n=w.from($U.exec(t));return n.bind((function(t){var n=Number(t[1]),r=t[2];return FU(r,e)?w.some({value:n,unit:r}):w.none()}))},HU=function(t,e){return VU(t,e).map((function(t){var e=t.value,n=t.unit;return e+n}))},zU=function(t){return HU(t,["fixed","relative","empty"]).getOr(t)},UU=function(t){var e=sk(t),n=new Map,r=bV(),o=function(){var e=zU(t.queryCommandValue("LineHeight"));w.from(n.get(e)).fold((function(){return r.clear()}),(function(t){r.set({destroy:function(){t.setActive(!1)}}),t.setActive(!0)}))};return t.on("nodeChange",o),W(e,(function(i,a){return{type:"togglemenuitem",text:i,onSetup:function(u){return n.set(zU(i),u),a+1===e.length&&o(),function(){0===a&&(t.off("nodeChange",o),r.clear())}},onAction:function(){return t.execCommand("LineHeight",!1,i)}}}))},WU=function(t){t.ui.registry.addNestedMenuItem("lineheight",{type:"nestedmenuitem",text:"Line height",getSubmenuItems:function(){return UU(t)}})},qU=function(t){t.ui.registry.addMenuButton("lineheight",{tooltip:"Line height",icon:"line-height",fetch:function(e){return e(UU(t))}})},GU=function(t){WU(t),qU(t)},YU=function(t,e){bU(t),TU(t),yU(t,e),LU(t),A_(t),jU(t),CU(t),GU(t)},XU=function(t,e){return{anchor:"makeshift",x:t,y:e}},KU=function(t,e,n){return XU(t.x+e,t.y+n)},ZU=function(t){return"longpress"===t.type||0===t.type.indexOf("touch")},JU=function(t){if(ZU(t)){var e=t.touches[0];return XU(e.pageX,e.pageY)}return XU(t.pageX,t.pageY)},QU=function(t){if(ZU(t)){var e=t.touches[0];return XU(e.clientX,e.clientY)}return XU(t.clientX,t.clientY)},tW=function(t,e){var n=TS.DOM.getPos(t);return KU(e,n.x,n.y)},eW=function(t,e){return"contextmenu"===e.type||"longpress"===e.type?t.inline?JU(e):tW(t.getContentAreaContainer(),QU(e)):nW(t)},nW=function(t){return{anchor:"selection",root:er.fromDom(t.selection.getNode())}},rW=function(t){return{anchor:"node",node:w.some(er.fromDom(t.selection.getNode())),root:er.fromDom(t.getBody())}},oW=function(t,e,n,r,o,i){var a=n(),u=i?rW(t):eW(t,e);TN(a,sC.CLOSE_ON_EXECUTE,r,!1).map((function(t){e.preventDefault(),jx.showMenuAt(o,u,{menu:{markers:LC("normal")},data:t})}))},iW={onLtr:function(){return[xl,ml,gl,vl,bl,yl,Gx,Yx,Wx,zx,qx,Ux]},onRtl:function(){return[xl,gl,ml,bl,vl,yl,Gx,Yx,qx,Ux,Wx,zx]}},aW=12,uW={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},sW=function(t,e){var n=t.selection;if(n.isCollapsed()||e.touches.length<1)return!1;var r=e.touches[0],o=n.getRng(),i=zd(t.getWin(),hd.domRange(o));return i.exists((function(t){return t.left<=r.clientX&&t.right>=r.clientX&&t.top<=r.clientY&&t.bottom>=r.clientY}))},cW=function(t,e){return h({bubble:Pf(0,aW,uW),layouts:iW,overrides:{maxWidthFunction:sR(),maxHeightFunction:Df()}},eW(t,e))},lW=function(t){var e=t.selection.getRng(),n=function(){Xx.setEditorTimeout(t,(function(){t.selection.setRng(e)}),10),i()};t.once("touchend",n);var r=function(t){t.preventDefault(),t.stopImmediatePropagation()};t.on("mousedown",r,!0);var o=function(){return i()};t.once("longpresscancel",o);var i=function(){t.off("touchend",n),t.off("longpresscancel",o),t.off("mousedown",r)}},fW=function(t,e,n,r,o,i,a){var u=i?rW(t):cW(t,e);TN(n,sC.CLOSE_ON_EXECUTE,r,!0).map((function(n){e.preventDefault(),jx.showMenuWithinBounds(o,u,{menu:{markers:LC("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return w.some(TF(t,r.shared))})),t.fire(lR)}))},dW=function(t,e,n,r,o,i){var a=Gr(),u=a.os.isiOS(),s=a.os.isOSX(),c=a.os.isAndroid(),l=a.deviceType.isTouch(),f=function(){return!(c||u||s&&l)},d=function(){var a=n();fW(t,e,a,r,o,i,f())};if(!s&&!u||i)c&&!i&&t.selection.setCursorLocation(e.target,0),d();else{var h=function(){lW(t),d()};sW(t,e)?h():(t.once("selectionchange",h),t.once("touchend",(function(){return t.off("selectionchange",h)})))}},hW=function(t){return"string"===typeof t?t.split(/[ ,]/):t},pW=function(t){return t.getParam("contextmenu_never_use_native",!1,"boolean")},mW=function(t,e,n){var r=t.ui.registry.getAll().contextMenus;return w.from(t.getParam(e)).map(hW).getOrThunk((function(){return X(hW(n),(function(t){return Ft(r,t)}))}))},gW=function(t){return!1===t.getParam("contextmenu")},vW=function(t){return mW(t,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},bW=function(t){return t.getParam("contextmenu_avoid_overlap","","string")},yW=function(t){return _(t)?"|"===t:"separator"===t.type},xW={type:"separator"},wW=function(t){if(_(t))return t;switch(t.type){case"separator":return xW;case"submenu":return{type:"nestedmenuitem",text:t.text,icon:t.icon,getSubmenuItems:function(){var e=t.getSubmenuItems();return _(e)?e:W(e,wW)}};default:return{type:"menuitem",text:t.text,icon:t.icon,onAction:n(t.onAction)}}},CW=function(t,e){if(0===e.length)return t;var n=lt(t).filter((function(t){return!yW(t)})),r=n.fold((function(){return[]}),(function(t){return[xW]}));return t.concat(r).concat(e).concat([xW])},SW=function(t,e,n){var r=Z(e,(function(e,r){if(Ft(t,r)){var o=t[r].update(n);if(_(o))return CW(e,o.split(" "));if(o.length>0){var i=W(o,wW);return CW(e,i)}return e}return e.concat([r])}),[]);return r.length>0&&yW(r[r.length-1])&&r.pop(),r},kW=function(t,e){return e.ctrlKey&&!pW(t)},OW=function(t,e){return"longpress"!==e.type&&(2!==e.button||e.target===t.getBody()&&""===e.pointerType)},_W=function(t,e){return OW(t,e)?t.selection.getStart(!0):e.target},AW=function(t,e){var n=bW(t);if(OW(t,e))return!0;if(n){var r=_W(t,e);return mA(er.fromDom(r),n)}return!1},EW=function(t,e,n){var r=Gr(),o=r.deviceType.isTouch,i=ys(jx.sketch({dom:{tag:"div"},lazySink:e,onEscape:function(){return t.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:Fl([Sy("dismissContextMenu",[xi(ni(),(function(e,n){dp.close(e),t.focus()}))])])})),a=function(t){return jx.hide(i)},u=function(e){if(pW(t)&&e.preventDefault(),!kW(t,e)&&!gW(t)){var r=AW(t,e),a=function(){var n=_W(t,e),r=t.ui.registry.getAll(),o=vW(t);return SW(r.contextMenus,o,n)},u=o()?dW:oW;u(t,e,a,n,i,r)}};t.on("init",(function(){var e="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(o()?"":" ResizeWindow");t.on(e,a),t.on("longpress contextmenu",u)}))},TW=zt.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),DW=function(t){return function(e){return e.translate(-t.left,-t.top)}},IW=function(t){return function(e){return e.translate(t.left,t.top)}},BW=function(t){return function(e,n){return Z(t,(function(t,e){return e(t)}),As(e,n))}},LW=function(t,e,n){return t.fold(BW([IW(n),DW(e)]),BW([DW(e)]),BW([]))},NW=function(t,e,n){return t.fold(BW([IW(n)]),BW([]),BW([IW(e)]))},PW=function(t,e,n){return t.fold(BW([]),BW([DW(n)]),BW([IW(e),DW(n)]))},MW=function(t,e,n,r,o,i){var a=NW(t,o,i),u=NW(e,o,i);return Math.abs(a.left-u.left)<=n&&Math.abs(a.top-u.top)<=r},jW=function(t,e,n,r,o,i){var a=NW(t,o,i),u=NW(e,o,i),s=Math.abs(a.left-u.left),c=Math.abs(a.top-u.top);return As(s,c)},RW=function(t,e,n){var r=t.fold((function(t,e){return{position:w.some("absolute"),left:w.some(t+"px"),top:w.some(e+"px")}}),(function(t,e){return{position:w.some("absolute"),left:w.some(t-n.left+"px"),top:w.some(e-n.top+"px")}}),(function(t,e){return{position:w.some("fixed"),left:w.some(t+"px"),top:w.some(e+"px")}}));return h({right:w.none(),bottom:w.none()},r)},$W=function(t,e,n){return t.fold((function(t,r){return VW(t+e,r+n)}),(function(t,r){return HW(t+e,r+n)}),(function(t,r){return zW(t+e,r+n)}))},FW=function(t,e,n,r){var o=function(t,o){return function(i,a){var u=t(e,n,r);return o(i.getOr(u.left),a.getOr(u.top))}};return t.fold(o(PW,VW),o(NW,HW),o(LW,zW))},VW=TW.offset,HW=TW.absolute,zW=TW.fixed,UW=function(t,e){var n=ma(t,e);return D(n)?NaN:parseInt(n,10)},WW=function(t,e){var n=t.element,r=UW(n,e.leftAttr),o=UW(n,e.topAttr);return isNaN(r)||isNaN(o)?w.none():w.some(As(r,o))},qW=function(t,e,n){var r=t.element;ha(r,e.leftAttr,n.left+"px"),ha(r,e.topAttr,n.top+"px")},GW=function(t,e){var n=t.element;ba(n,e.leftAttr),ba(n,e.topAttr)},YW=function(t,e,n,r){return WW(t,e).fold((function(){return n}),(function(t){return zW(t.left+r.left,t.top+r.top)}))},XW=function(t,e,n,r,o,i){var a=YW(t,e,n,r),u=e.mustSnap?JW(t,e,a,o,i):QW(t,e,a,o,i),s=LW(a,o,i);return qW(t,e,s),u.fold((function(){return{coord:zW(s.left,s.top),extra:w.none()}}),(function(t){return{coord:t.output,extra:t.extra}}))},KW=function(t,e){GW(t,e)},ZW=function(t,e,n,r){return dt(t,(function(t){var o=t.sensor,i=MW(e,o,t.range.left,t.range.top,n,r);return i?w.some({output:FW(t.output,e,n,r),extra:t.extra}):w.none()}))},JW=function(t,e,n,r,o){var i=e.getSnapPoints(t),a=ZW(i,n,r,o);return a.orThunk((function(){var t=Z(i,(function(t,e){var i=e.sensor,a=jW(n,i,e.range.left,e.range.top,r,o);return t.deltas.fold((function(){return{deltas:w.some(a),snap:w.some(e)}}),(function(n){var r=(a.left+a.top)/2,o=(n.left+n.top)/2;return r<=o?{deltas:w.some(a),snap:w.some(e)}:t}))}),{deltas:w.none(),snap:w.none()});return t.snap.map((function(t){return{output:FW(t.output,n,r,o),extra:t.extra}}))}))},QW=function(t,e,n,r,o){var i=e.getSnapPoints(t);return ZW(i,n,r,o)},tq=function(t,e,n){return{coord:FW(t.output,t.output,e,n),extra:t.extra}},eq=function(t,e,n,r){var o=e.getTarget(t.element);if(e.repositionTarget){var i=Vi(t.element),a=Us(i),u=cH(o),s=tq(r,a,u),c=RW(s.coord,a,u);Zu(o,c)}},nq=Object.freeze({__proto__:null,snapTo:eq}),rq="data-initial-z-index",oq=function(t){Wi(t.element).filter(ji).each((function(t){ga(t,rq).fold((function(){return rs(t,"z-index")}),(function(e){return Xu(t,"z-index",e)})),ba(t,rq)}))},iq=function(t){Wi(t.element).filter(ji).each((function(e){ts(e,"z-index").each((function(t){ha(e,rq,t)})),Xu(e,"z-index",Ju(t.element,"z-index"))}))},aq=function(t,e){t.getSystem().addToGui(e),iq(e)},uq=function(t){oq(t),t.getSystem().removeFromGui(t)},sq=function(t,e,n){return t.getSystem().build(zA.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[e]},events:n}))},cq=Mn("snaps",[yn("getSnapPoints"),Rc("onSensor"),yn("leftAttr"),yn("topAttr"),Rn("lazyViewport",ac),Rn("mustSnap",!1)]),lq=[Rn("useFixed",l),yn("blockerClass"),Rn("getTarget",a),Rn("onDrag",e),Rn("repositionTarget",!0),Rn("onDrop",e),Un("getBounds",ac),cq],fq=function(t){return dg(ts(t,"left"),ts(t,"top"),ts(t,"position"),(function(t,e,n){var r="fixed"===n?zW:VW;return r(parseInt(t,10),parseInt(e,10))})).getOrThunk((function(){var e=Ds(t);return HW(e.left,e.top)}))},dq=function(t,e,n,r,o){var i=o.bounds,a=NW(e,n,r),u=vf(a.left,i.x,i.x+i.width-o.width),s=vf(a.top,i.y,i.y+i.height-o.height),c=HW(u,s);return e.fold((function(){var t=PW(c,n,r);return VW(t.left,t.top)}),(function(){return c}),(function(){var t=LW(c,n,r);return zW(t.left,t.top)}))},hq=function(t,e,n,r,o,i,a){var u=e.fold((function(){var t=$W(n,i.left,i.top),e=LW(t,r,o);return zW(e.left,e.top)}),(function(e){var a=XW(t,e,n,i,r,o);return a.extra.each((function(n){e.onSensor(t,n)})),a.coord}));return dq(t,u,r,o,a)},pq=function(t,e,n,r){var o=e.getTarget(t.element);if(e.repositionTarget){var i=Vi(t.element),a=Us(i),u=cH(o),s=fq(o),c=hq(t,e.snaps,s,a,u,r,n),l=RW(c,a,u);Zu(o,l)}e.onDrag(t,o,r)},mq=function(t,e){return{bounds:t.getBounds(),height:ks(e.element),width:Ps(e.element)}},gq=function(t,e,n,r,o){var i=n.update(r,o),a=n.getStartData().getOrThunk((function(){return mq(e,t)}));i.each((function(n){pq(t,e,a,n)}))},vq=function(t,e,n,r){e.each(uq),n.snaps.each((function(e){KW(t,e)}));var o=n.getTarget(t.element);r.reset(),n.onDrop(t,o)},bq=function(t){return function(e,n){var r=function(t){n.setStartData(mq(e,t))};return gi(m([xi(Jo(),(function(t){n.getStartData().each((function(){return r(t)}))}))],t(e,n,r)))}},yq=function(t){return gi([xi(So(),t.forceDrop),xi(_o(),t.drop),xi(ko(),(function(e,n){t.move(n.event)})),xi(Oo(),t.delayDrop)])},xq=function(t){return w.from(As(t.x,t.y))},wq=function(t,e){return As(e.left-t.left,e.top-t.top)},Cq=Object.freeze({__proto__:null,getData:xq,getDelta:wq}),Sq=function(t,e,n){return[xi(So(),(function(r,o){var i=o.event.raw;if(0===i.button){o.stop();var a=function(){return vq(r,w.some(c),t,e)},u=gA(a,200),s={drop:a,delayDrop:u.schedule,forceDrop:a,move:function(n){u.cancel(),gq(r,t,e,Cq,n)}},c=sq(r,t.blockerClass,yq(s)),l=function(){n(r),aq(r,c)};l()}}))]},kq=m(lq,[Hc("dragger",{handlers:bq(Sq)})]),Oq=function(t){return gi([xi(yo(),t.forceDrop),xi(wo(),t.drop),xi(Co(),t.drop),xi(xo(),(function(e,n){t.move(n.event)}))])},_q=function(t){var e=t[0];return w.some(As(e.clientX,e.clientY))},Aq=function(t){var e=t.raw,n=e.touches;return 1===n.length?_q(n):w.none()},Eq=function(t,e){return As(e.left-t.left,e.top-t.top)},Tq=Object.freeze({__proto__:null,getData:Aq,getDelta:Eq}),Dq=function(t,e,n){var r=Xn(w.none());return[xi(yo(),(function(o,i){i.stop();var a=function(){vq(o,r.get(),t,e),r.set(w.none())},u={drop:a,delayDrop:function(){},forceDrop:a,move:function(n){gq(o,t,e,Tq,n)}},s=sq(o,t.blockerClass,Oq(u));r.set(w.some(s));var c=function(){n(o),aq(o,s)};c()})),xi(xo(),(function(n,r){r.stop(),gq(n,t,e,Tq,r.event)})),xi(wo(),(function(n,o){o.stop(),vq(n,r.get(),t,e),r.set(w.none())})),xi(Co(),(function(n){vq(n,r.get(),t,e),r.set(w.none())}))]},Iq=m(lq,[Hc("dragger",{handlers:bq(Dq)})]),Bq=function(t,e,n){return m(Sq(t,e,n),Dq(t,e,n))},Lq=m(lq,[Hc("dragger",{handlers:bq(Bq)})]),Nq=kq,Pq=Iq,Mq=Lq,jq=Object.freeze({__proto__:null,mouse:Nq,touch:Pq,mouseOrTouch:Mq}),Rq=function(){var t=w.none(),e=w.none(),n=function(){t=w.none(),e=w.none()},r=function(e,n){var r=t.map((function(t){return e.getDelta(t,n)}));return t=w.some(n),r},o=function(t,e){return t.getData(e).bind((function(e){return r(t,e)}))},a=function(t){e=w.some(t)},u=function(){return e},s=i({});return Ya({readState:s,reset:n,update:o,getStartData:u,setStartData:a})},$q=Object.freeze({__proto__:null,init:Rq}),Fq=Ul({branchKey:"mode",branches:jq,name:"dragging",active:{events:function(t,e){var n=t.dragger;return n.handlers(t,e)}},extra:{snap:function(t){return{sensor:t.sensor,range:t.range,output:t.output,extra:w.from(t.extra)}}},state:$q,apis:nq}),Vq=40,Hq=Vq/2,zq=function(t,e,n,r,o,i){return t.fold((function(){return Fq.snap({sensor:HW(n-Hq,r-Hq),range:As(o,i),output:HW(w.some(n),w.some(r)),extra:{td:e}})}),(function(t){var o=n-Hq,i=r-Hq,a=Vq,u=Vq,s=t.element.dom.getBoundingClientRect();return Fq.snap({sensor:HW(o,i),range:As(a,u),output:HW(w.some(n-s.width/2),w.some(r-s.height/2)),extra:{td:e}})}))},Uq=function(t,e,n){var r=function(t,e){return t.exists((function(t){return oo(t,e)}))};return{getSnapPoints:t,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(t,o){var i=o.td;r(e.get(),i)||(e.set(w.some(i)),n(i))},mustSnap:!0}},Wq=function(t){return Jx(Zx.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Fl([Fq.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:t}),xT.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},qq=function(t,e){var n=Xn([]),r=Xn([]),o=Xn(!1),i=Xn(w.none()),a=Xn(w.none()),u=function(t){var n=ic(t);return zq(h.getOpt(e),t,n.x,n.y,n.width,n.height)},s=function(){return W(n.get(),(function(t){return u(t)}))},c=function(t){var n=ic(t);return zq(p.getOpt(e),t,n.right,n.bottom,n.width,n.height)},l=function(){return W(r.get(),(function(t){return c(t)}))},f=Uq(s,i,(function(e){a.get().each((function(n){t.fire("TableSelectorChange",{start:e,finish:n})}))})),d=Uq(l,a,(function(e){i.get().each((function(n){t.fire("TableSelectorChange",{start:n,finish:e})}))})),h=Wq(f),p=Wq(d),m=ys(h.asSpec()),g=ys(p.asSpec()),v=function(e,n,r,o){var i=n.dom.getBoundingClientRect();rs(e.element,"display");var a=Ui(er.fromDom(t.getBody())).dom.innerHeight,u=r(i),s=o(i,a);(u||s)&&Xu(e.element,"display","none")},b=function(t,e,n,r){var o=n(e);Fq.snapTo(t,o);var i=function(t){return t[r]<0},a=function(t,e){return t[r]>e};v(t,e,i,a)},y=function(t){return b(m,t,u,"top")},x=function(){return i.get().each(y)},C=function(t){return b(g,t,c,"bottom")},S=function(){return a.get().each(C)};Gr().deviceType.isTouch()&&(t.on("TableSelectionChange",(function(t){o.get()||(Rh(e,m),Rh(e,g),o.set(!0)),i.set(w.some(t.start)),a.set(w.some(t.finish)),t.otherCells.each((function(e){n.set(e.upOrLeftCells),r.set(e.downOrRightCells),y(t.start),C(t.finish)}))})),t.on("ResizeEditor ResizeWindow ScrollContent",(function(){x(),S()})),t.on("TableSelectionClear",(function(){o.get()&&(Vh(m),Vh(g),o.set(!1)),i.set(w.none()),a.set(w.none())})))};(function(t){t[t["None"]=0]="None",t[t["Both"]=1]="Both",t[t["Vertical"]=2]="Vertical"})(GF||(GF={}));var Gq=function(t,e,n,r,o){var i={};return i.height=sU(r+e.top,rk(t),ik(t)),n===GF.Both&&(i.width=sU(o+e.left,nk(t),ok(t))),i},Yq=function(t,e,n){var r=er.fromDom(t.getContainer()),o=Gq(t,e,n,Ss(r),Ns(r));Dt(o,(function(t,e){return Xu(r,e,uU(t))})),KO(t)},Xq=function(t){if(1===t.nodeType){if("BR"===t.nodeName||t.getAttribute("data-mce-bogus"))return!0;if("bookmark"===t.getAttribute("data-mce-type"))return!0}return!1},Kq=function(t,e,n){e.delimiter||(e.delimiter="»");var r=function(r){var o=r||[],i=W(o,(function(e,r){return Zx.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:e.name},action:function(n){t.focus(),t.selection.select(e.element),t.nodeChanged()},buttonBehaviours:Fl([Gk.button(n.isDisabled),Hk()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+e.delimiter+" "}};return Z(i.slice(1),(function(t,e){var n=t;return n.push(a),n.push(e),n}),[i[0]])},o=function(e){var n=[],r=e.length;while(r-- >0){var o=e[r];if(1===o.nodeType&&!Xq(o)){var i=t.fire("ResolveName",{name:o.nodeName.toLowerCase(),target:o});if(i.isDefaultPrevented()||n.push({name:i.name,element:o}),i.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Fl([fy.config({mode:"flow",selector:"div[role=button]"}),XS.config({disabled:n.isDisabled}),Hk(),QA.config({}),wy.config({}),Sy("elementPathEvents",[Di((function(e,n){t.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return fy.focusIn(e)})),t.on("NodeChange",(function(t){var n=o(t.parents);n.length>0?wy.set(e,r(n)):wy.set(e,[])}))}))])]),components:[]}},Zq=function(t,e){var n,r=function(t,n,r){return wy.set(t,[gs(e.translate(["{0} "+r,n[r]]))])};return Zx.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Fl([Gk.button(e.isDisabled),Hk(),QA.config({}),wy.config({}),Yp.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Sy("wordcount-events",[Li((function(t){var e=Yp.getValue(t),n="words"===e.mode?"characters":"words";Yp.setValue(t,{mode:n,count:e.count}),r(t,e.count,n)})),Di((function(e){t.on("wordCountUpdate",(function(t){var n=Yp.getValue(e).mode;Yp.setValue(e,{mode:n,count:t.wordCount}),r(e,t.wordCount,n)}))}))])]),eventOrder:(n={},n[zo()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},Jq=function(t,e){var n=function(n){return{dom:{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:e.translate("Resize"),"aria-hidden":"true"},innerHtml:tw("resize-handle",e.icons)},behaviours:Fl([Fq.config({mode:"mouse",repositionTarget:!1,onDrag:function(e,r,o){Yq(t,o,n)},blockerClass:"tox-blocker"})])}},r=function(){var t=DS.translate(["Powered by {0}","Tiny"]),e='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+t+'">'+t+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:e}}},o=function(t){var e=!t.hasPlugin("autoresize"),n=t.getParam("resize",e);return!1===n?GF.None:"both"===n?GF.Both:GF.Vertical},i=function(){var n=[];return t.getParam("elementpath",!0,"boolean")&&n.push(Kq(t,{},e)),t.hasPlugin("wordcount")&&n.push(Zq(t,e)),t.getParam("branding",!0,"boolean")&&n.push(r()),n.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:n}]:[]},a=function(){var e=i(),r=o(t);return r!==GF.None&&e.push(n(r)),e};return{dom:{tag:"div",classes:["tox-statusbar"]},components:a()}},Qq=function(t){var e,n=t.inline,r=n?vU:iU,o=_k(t)?ez:uH,i=w.none(),a=Gr(),u=a.browser.isIE(),s=u?["tox-platform-ie"]:[],c=a.deviceType.isTouch(),l="tox-platform-touch",f=c?[l]:[],d=yk(t),p=kk(t),m=DS.isRtl()?{attributes:{dir:"rtl"}}:{},g={attributes:(e={},e[Ff]=d?wc.BottomToTop:wc.TopToBottom,e)},v=function(){return i.bind(Fz.getHeader)},b=function(){return o.isDocked(v)},y=function(){Xu(Z.element,"width",document.body.clientWidth+"px")},x=function(){var t=oo(Wu(),p)&&"grid"===Ju(p,"display"),e={dom:h({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(s).concat(f)},m),behaviours:Fl([Bh.config({useFixed:function(){return b()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:gi([xi(Qo(),y)])};return Yt(e,t?n:{})},C=ys(x()),S=function(){return gt.value(C)},k=Jx({dom:{tag:"div",classes:["tox-anchorbar"]}}),O=function(){return i.bind((function(t){return k.getOpt(t)})).getOrDie("Could not find a anchor bar element")},_=function(){return i.bind((function(t){return Fz.getToolbar(t)})).getOrDie("Could not find more toolbar element")},A=function(){return i.bind((function(t){return Fz.getThrobber(t)})).getOrDie("Could not find throbber element")},E=uR(C,t,O),T=Fz.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:E,onEscape:function(){t.focus()}}),D=mk(t),I=Fz.parts.toolbar(h({dom:{tag:"div",classes:["tox-toolbar"]},getSink:S,providers:E.shared.providers,onEscape:function(){t.focus()},type:D,lazyToolbar:_,lazyHeader:function(){return v().getOrDie("Could not find header element")}},g)),B=Fz.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:E.shared.providers,onEscape:function(){t.focus()},type:D}),L=Fz.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),N=Fz.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),P=Fz.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:E}),M=t.getParam("statusbar",!0,"boolean"),j=M&&!n?w.some(Jq(t,E.shared.providers)):w.none(),R={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[L,N]},$=hk(t),F=fk(t),V=lk(t),H=function(){return $?[B]:F?[I]:[]},z=Fz.parts.header({dom:h({tag:"div",classes:["tox-editor-header"]},g),components:et([V?[T]:[],H(),Sk(t)?[]:[k.asSpec()]]),sticky:_k(t),editor:t,sharedBackstage:E.shared}),U=et([d?[]:[z],n?[]:[R],d?[z]:[]]),W={dom:{tag:"div",classes:["tox-editor-container"]},components:U},q=et([[W],n?[]:j.toArray(),[P]]),G=Ok(t),Y=h(h({role:"application"},DS.isRtl()?{dir:"rtl"}:{}),G?{"aria-hidden":"true"}:{}),X=ys(Fz.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(d?["tox-tinymce--toolbar-bottom"]:[]).concat(f).concat(s),styles:h({visibility:"hidden"},G?{opacity:"0",border:"0"}:{}),attributes:Y},components:q,behaviours:Fl([Hk(),XS.config({disableClass:"tox-tinymce--disabled"}),fy.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a"})])}));i=w.some(X),t.shortcuts.add("alt+F9","focus menubar",(function(){Fz.focusMenubar(X)})),t.shortcuts.add("alt+F10","focus toolbar",(function(){Fz.focusToolbar(X)})),t.addCommand("ToggleToolbarDrawer",(function(){Fz.toggleToolbarDrawer(X)})),t.addQueryStateHandler("ToggleToolbarDrawer",(function(){return Fz.isToolbarDrawerToggled(X)}));var K=UA(X),Z=UA(C);YV(t,K,Z);var J=function(){var t={broadcastAll:Z.broadcast,broadcastOn:Z.broadcastOn,register:function(){}};return{channels:t}},Q=function(){var e=uU(lU(t)),n=uU(dU(t));return t.inline||(ns("div","width",n)&&Xu(X.element,"width",n),ns("div","height",e)?Xu(X.element,"height",e):Xu(X.element,"height","200px")),e},tt=function(){o.setup(t,E.shared,v),YU(t,E),EW(t,S,E),pz(t),Dz(t,A,E.shared),It(vk(t),(function(e,n){t.ui.registry.addGroupToolbarButton(n,e)}));var e=t.ui.registry.getAll(),n=e.buttons,i=e.menuItems,a=e.contextToolbars,u=e.sidebars,s=dk(t),c={menuItems:i,menus:Ek(t),menubar:Tk(t),toolbar:s.getOrThunk((function(){return Dk(t)})),allowToolbarGroups:D===uC.floating,buttons:n,sidebar:u};GV(t,a,C,{backstage:E}),qq(t,C);var l=t.getElement(),f=Q(),d={mothership:K,uiMothership:Z,outerContainer:X},h={targetNode:l,height:f};return r.render(t,d,c,E,h)};return{mothership:K,uiMothership:Z,backstage:E,renderUI:tt,getUi:J}},tG=function(t,e){var n=w.from(ma(t,"id")).fold((function(){var t=Aa("dialog-describe");return ha(e,"id",t),t}),a);ha(t,"aria-describedby",n)},eG=function(t,e){var n=ga(t,"id").fold((function(){var t=Aa("dialog-label");return ha(e,"id",t),t}),a);ha(t,"aria-labelledby",n)},nG=i([yn("lazySink"),Dn("dragBlockClass"),Un("getBounds",ac),Rn("useTabstopAt",f),Rn("eventOrder",{}),Xp("modalBehaviours",[fy]),$c("onExecute"),Vc("onEscape")]),rG={sketch:a},oG=i([Tm({name:"draghandle",overrides:function(t,e){return{behaviours:Fl([Fq.config({mode:"mouse",getTarget:function(t){return hc(t,'[role="dialog"]').getOr(t)},blockerClass:t.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(e,null,2)).message),getBounds:t.getDragBounds})])}}}),Am({schema:[yn("dom")],name:"title"}),Am({factory:rG,schema:[yn("dom")],name:"close"}),Am({factory:rG,schema:[yn("dom")],name:"body"}),Tm({factory:rG,schema:[yn("dom")],name:"footer"}),Em({factory:{sketch:function(t,e){return h(h({},t),{dom:e.dom,components:e.components})}},schema:[Rn("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Rn("components",[])],name:"blocker"})]),iG=function(t,e,n,r){ha(t.element,"aria-busy",!0);var o=e.getRoot(t).getOr(t),i=Fl([fy.config({mode:"special",onTab:function(){return w.some(!0)},onShiftTab:function(){return w.some(!0)}}),By.config({})]),a=r(o,i),u=o.getSystem().build(a);wy.append(o,xs(u)),u.hasConfigured(fy)&&fy.focusIn(u),n.isBlocked()||e.onBlock(t),n.blockWith((function(){return wy.remove(o,u)}))},aG=function(t,e,n){ba(t.element,"aria-busy"),n.isBlocked()&&e.onUnblock(t),n.clear()},uG=Object.freeze({__proto__:null,block:iG,unblock:aG}),sG=[Un("getRoot",w.none),Rc("onBlock"),Rc("onUnblock")],cG=function(){var t=bV(),e=function(e){t.set({destroy:e})};return Ya({readState:t.isSet,blockWith:e,clear:t.clear,isBlocked:t.isSet})},lG=Object.freeze({__proto__:null,init:cG}),fG=Hl({fields:sG,name:"blocking",apis:uG,state:lG}),dG=function(t,e,n,r){var o,i=Xn(w.none()),a=function(e){i.set(w.some(e));var n=t.lazySink(e).getOrDie(),o=r.blocker(),a=n.getSystem().build(h(h({},o),{components:o.components.concat([xs(e)]),behaviours:Fl([By.config({}),Sy("dialog-blocker-events",[Ti(Eo(),(function(){fy.focusIn(e)}))])])}));Rh(n,a),fy.focusIn(e)},u=function(t){i.set(w.none()),Wi(t.element).each((function(e){t.getSystem().getByDom(e).each((function(t){Vh(t)}))}))},s=function(e){return zm(e,t,"body")},c=function(e){return zm(e,t,"footer")},l=function(t,e){fG.block(t,e)},f=function(t){fG.unblock(t)},d=Aa("modal-events"),p=h(h({},t.eventOrder),(o={},o[ti()]=[d].concat(t.eventOrder["alloy.system.attached"]||[]),o));return{uid:t.uid,dom:t.dom,components:e,apis:{show:a,hide:u,getBody:s,getFooter:c,setIdle:f,setBusy:l},eventOrder:p,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Zp(t.modalBehaviours,[wy.config({}),fy.config({mode:"cyclic",onEnter:t.onExecute,onEscape:t.onEscape,useTabstopAt:t.useTabstopAt}),fG.config({getRoot:i.get}),Sy(d,[Di((function(e){eG(e.element,zm(e,t,"title").element),tG(e.element,zm(e,t,"body").element)}))])])}},hG=sg({name:"ModalDialog",configFields:nG(),partFields:oG(),factory:dG,apis:{show:function(t,e){t.show(e)},hide:function(t,e){t.hide(e)},getBody:function(t,e){return t.getBody(e)},getFooter:function(t,e){return t.getFooter(e)},setBusy:function(t,e,n){t.setBusy(e,n)},setIdle:function(t,e){t.setIdle(e)}}}),pG=Re([Cn("type"),Cn("name")].concat(QC)),mG=pn,gG=[qe("name","name",ne((function(){return Aa("button-name")})),hn),Ln("icon"),Hn("align","end",["start","end"]),zn("primary",!1),zn("disabled",!1)],vG=m(gG,[Cn("text")]),bG=m([Sn("type",["submit","cancel","custom"])],vG),yG=m([Sn("type",["menu"]),Ln("text"),Ln("tooltip"),Ln("icon"),Tn("items",pG)],gG),xG=sn("type",{submit:bG,cancel:bG,custom:bG,menu:yG}),wG=[Cn("type"),Cn("text"),Sn("level",["info","warn","error","success"]),Cn("icon"),Rn("url","")],CG=Re(wG),SG=function(t){return[Cn("type"),t]},kG=[Cn("type"),Cn("text"),zn("disabled",!1),zn("primary",!1),qe("name","name",ne((function(){return Aa("button-name")})),hn),Ln("icon"),zn("borderless",!1)],OG=Re(kG),_G=[Cn("type"),Cn("name"),Cn("label"),zn("disabled",!1)],AG=Re(_G),EG=pn,TG=[Cn("type"),Cn("name")],DG=TG.concat([Ln("label")]),IG=DG.concat([Rn("columns","auto")]),BG=Re(IG),LG=Ke([Cn("value"),Cn("text"),Cn("icon")]),NG=DG,PG=Re(NG),MG=hn,jG=DG,RG=Re(jG),$G=hn,FG=TG.concat([Vn("tag","textarea"),Cn("scriptId"),Cn("scriptUrl"),Wn("settings",void 0)]),VG=TG.concat([Vn("tag","textarea"),On("init")]),HG=Qe((function(t){return nn("customeditor.old",je(VG),t).orThunk((function(){return nn("customeditor.new",je(FG),t)}))})),zG=hn,UG=DG,WG=Re(UG),qG=Ze(),GG=function(t){return[Cn("type"),wn("columns"),t]},YG=[Cn("type"),Cn("html"),Hn("presets","presentation",["presentation","document"])],XG=Re(YG),KG=DG.concat([zn("sandboxed",!0)]),ZG=Re(KG),JG=hn,QG=DG.concat([xn("currentState",Re([yn("blob"),Cn("url")]))]),tY=Re(QG),eY=DG.concat([Ln("inputMode"),Ln("placeholder"),zn("maximized",!1),zn("disabled",!1)]),nY=Re(eY),rY=hn,oY=function(t){return[Cn("type"),Cn("label"),t]},iY=[Cn("text"),Cn("value")],aY=[Cn("text"),Tn("items",cn("items",(function(){return uY})))],uY=Fe([Re(iY),Re(aY)]),sY=DG.concat([Tn("items",uY),zn("disabled",!1)]),cY=Re(sY),lY=hn,fY=DG.concat([En("items",[Cn("text"),Cn("value")]),Fn("size",1),zn("disabled",!1)]),dY=Re(fY),hY=hn,pY=DG.concat([zn("constrain",!0),zn("disabled",!1)]),mY=Re(pY),gY=Re([Cn("width"),Cn("height")]),vY=[Cn("type"),Tn("header",hn),Tn("cells",$e(hn))],bY=Re(vY),yY=DG.concat([Ln("placeholder"),zn("maximized",!1),zn("disabled",!1)]),xY=Re(yY),wY=hn,CY=DG.concat([Hn("filetype","file",["image","media","file"]),Rn("disabled",!1)]),SY=Re(CY),kY=Re([Cn("value"),Rn("meta",{})]),OY=function(t){return qe("items","items",te(),$e(Qe((function(e){return nn("Checking item of "+t,_Y,e).fold((function(t){return gt.error(an(t))}),(function(t){return gt.value(t)}))}))))},_Y=Je((function(){return un("type",{alertbanner:CG,bar:Re(SG(OY("bar"))),button:OG,checkbox:AG,colorinput:PG,colorpicker:RG,dropzone:WG,grid:Re(GG(OY("grid"))),iframe:ZG,input:nY,listbox:cY,selectbox:dY,sizeinput:mY,textarea:xY,urlinput:SY,customeditor:HG,htmlpanel:XG,imagetools:tY,collection:BG,label:Re(oY(OY("label"))),table:bY,panel:EY})})),AY=[Cn("type"),Rn("classes",[]),Tn("items",_Y)],EY=Re(AY),TY=[qe("name","name",ne((function(){return Aa("tab-name")})),hn),Cn("title"),Tn("items",_Y)],DY=[Cn("type"),En("tabs",TY)],IY=Re(DY),BY=vG,LY=xG,NY=Re([Cn("title"),xn("body",un("type",{panel:EY,tabpanel:IY})),Vn("size","normal"),Tn("buttons",LY),Rn("initialData",{}),Un("onAction",e),Un("onChange",e),Un("onSubmit",e),Un("onClose",e),Un("onCancel",e),Rn("onTabChange",e)]),PY=function(t){return nn("dialog",NY,t)},MY=Re(m([Sn("type",["cancel","custom"])],BY)),jY=Re([Cn("title"),Cn("url"),Bn("height"),Bn("width"),Pn("buttons",MY),Un("onAction",e),Un("onCancel",e),Un("onClose",e),Un("onMessage",e)]),RY=function(t){return nn("dialog",jY,t)},$Y=function(t){return A(t)?[t].concat(nt(Rt(t),$Y)):E(t)?nt(t,$Y):[]},FY=function(t){return _(t.type)&&_(t.name)},VY={checkbox:EG,colorinput:MG,colorpicker:$G,dropzone:qG,input:rY,iframe:JG,sizeinput:gY,selectbox:hY,listbox:lY,size:gY,textarea:wY,urlinput:kY,customeditor:zG,collection:LG,togglemenuitem:mG},HY=function(t){return w.from(VY[t.type])},zY=function(t){return X($Y(t),FY)},UY=function(t){var e=zY(t),n=nt(e,(function(t){return HY(t).fold((function(){return[]}),(function(e){return[xn(t.name,e)]}))}));return Re(n)},WY=function(t){var e=rn(PY(t)),n=UY(t),r=t.initialData;return{internalDialog:e,dataValidator:n,initialData:r}},qY={open:function(t,e){var n=WY(e);return t(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(t,e){var n=rn(RY(e));return t(n)},redial:function(t){return WY(t)}},GY=function(t){var e=[],n={};return Dt(t,(function(t,r){t.fold((function(){e.push(r)}),(function(t){n[r]=t}))})),e.length>0?gt.error(e):gt.value(n)},YY=function(t,e){var n=Jx(mB.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:W(t.items,(function(t){return WM(n,t,e)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:Fl([fy.config({mode:"acyclic",useTabstopAt:s(QB)}),_B.memento(n),HB.memento(n,{postprocess:function(t){return GY(t).fold((function(t){return console.error(t),{}}),(function(t){return t}))}})])}},XY=function(t,e){return{uid:t.uid,dom:t.dom,components:t.components,events:Qy(t.action),behaviours:Zp(t.tabButtonBehaviours,[By.config({}),fy.config({mode:"execution",useSpace:!0,useEnter:!0}),Yp.config({store:{mode:"memory",initialValue:t.value}})]),domModification:t.domModification}},KY=ug({name:"TabButton",configFields:[Rn("uid",void 0),yn("value"),qe("dom","dom",re((function(){return{attributes:{role:"tab",id:Aa("aria"),"aria-selected":"false"}}})),ln()),Dn("action"),Rn("domModification",{}),Xp("tabButtonBehaviours",[By,fy,Yp]),yn("view")],factory:XY}),ZY=i([yn("tabs"),yn("dom"),Rn("clickToDismiss",!1),Xp("tabbarBehaviours",[$g,fy]),Mc(["tabClass","selectedClass"])]),JY=Dm({factory:KY,name:"tabs",unit:"tab",overrides:function(t){var n=function(t,e){$g.dehighlight(t,e),fi(t,ui(),{tabbar:t,button:e})},r=function(t,e){$g.highlight(t,e),fi(t,ai(),{tabbar:t,button:e})};return{action:function(o){var i=o.getSystem().getByUid(t.uid).getOrDie(),a=$g.isHighlighted(i,o),u=function(){return a&&t.clickToDismiss?n:a?e:r}();u(i,o)},domModification:{classes:[t.markers.tabClass]}}}}),QY=i([JY]),tX=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Zp(t.tabbarBehaviours,[$g.config({highlightClass:t.markers.selectedClass,itemClass:t.markers.tabClass,onHighlight:function(t,e){ha(e.element,"aria-selected","true")},onDehighlight:function(t,e){ha(e.element,"aria-selected","false")}}),fy.config({mode:"flow",getInitial:function(t){return $g.getHighlighted(t).map((function(t){return t.element}))},selector:"."+t.markers.tabClass,executeOnMove:!0})])}},eX=sg({name:"Tabbar",configFields:ZY(),partFields:QY(),factory:tX}),nX=function(t,e){return{uid:t.uid,dom:t.dom,behaviours:Zp(t.tabviewBehaviours,[wy.config({})]),domModification:{attributes:{role:"tabpanel"}}}},rX=ug({name:"Tabview",configFields:[Xp("tabviewBehaviours",[wy])],factory:nX}),oX=i([Rn("selectFirst",!0),Rc("onChangeTab"),Rc("onDismissTab"),Rn("tabs",[]),Xp("tabSectionBehaviours",[])]),iX=Am({factory:eX,schema:[yn("dom"),An("markers",[yn("tabClass"),yn("selectedClass")])],name:"tabbar",defaults:function(t){return{tabs:t.tabs}}}),aX=Am({factory:rX,name:"tabview"}),uX=i([iX,aX]),sX=function(t,e,n,r){var o=function(e){var n=Yp.getValue(e);Hm(e,t,"tabview").each((function(r){var o=Q(t.tabs,(function(t){return t.value===n}));o.each((function(n){var o=n.view();ga(e.element,"id").each((function(t){ha(r.element,"aria-labelledby",t)})),wy.set(r,o),t.onChangeTab(r,e,o)}))}))},i=function(e,n){Hm(e,t,"tabbar").each((function(t){n(t).each(di)}))};return{uid:t.uid,dom:t.dom,components:e,behaviours:Kp(t.tabSectionBehaviours),events:gi(et([t.selectFirst?[Di((function(t,e){i(t,$g.getFirst)}))]:[],[xi(ai(),(function(t,e){var n=e.event.button;o(n)})),xi(ui(),(function(e,n){var r=n.event.button;t.onDismissTab(e,r)}))]])),apis:{getViewItems:function(e){return Hm(e,t,"tabview").map((function(t){return wy.contents(t)})).getOr([])},showTab:function(t,e){var n=function(t){var n=$g.getCandidates(t),r=Q(n,(function(t){return Yp.getValue(t)===e}));return r.filter((function(e){return!$g.isHighlighted(t,e)}))};i(t,n)}}}},cX=sg({name:"TabSection",configFields:oX(),partFields:uX(),factory:sX,apis:{getViewItems:function(t,e){return t.getViewItems(e)},showTab:function(t,e,n){t.showTab(e,n)}}}),lX=function(t,e,n){return W(t,(function(r,o){wy.set(n,t[o].view());var i=e.dom.getBoundingClientRect();return wy.set(n,[]),i.height}))},fX=function(t){return ct(ut(t,(function(t,e){return t>e?-1:t<e?1:0})))},dX=function(t,e,n){var r,o=zi(t).dom,i=hc(t,".tox-dialog-wrap").getOr(t),a="fixed"===Ju(i,"position");r=a?Math.max(o.clientHeight,window.innerHeight):Math.max(o.offsetHeight,o.scrollHeight);var u=Ss(e),s=e.dom.offsetLeft>=n.dom.offsetLeft+Ns(n),c=s?Math.max(Ss(n),u):u,l=parseInt(Ju(t,"margin-top"),10)||0,f=parseInt(Ju(t,"margin-bottom"),10)||0,d=Ss(t)+l+f,h=d-c;return r-h},hX=function(t,e){ct(t).each((function(t){return cX.showTab(e,t.value)}))},pX=function(t,e){Xu(t,"height",e+"px"),Gr().browser.isIE()?rs(t,"flex-basis"):Xu(t,"flex-basis",e+"px")},mX=function(t,e,n){hc(t,'[role="dialog"]').each((function(t){pc(t,'[role="tablist"]').each((function(r){n.get().map((function(n){return Xu(e,"height","0"),Xu(e,"flex-basis","0"),Math.min(n,dX(t,e,r))})).each((function(t){pX(e,t)}))}))}))},gX=function(t){return pc(t,'[role="tabpanel"]')},vX=function(t){var e=function(){var e=Xn(w.none()),n=[Di((function(n){var r=n.element;gX(r).each((function(o){Xu(o,"visibility","hidden"),n.getSystem().getByDom(o).toOptional().each((function(n){var r=lX(t,o,n),i=fX(r);e.set(i)})),mX(r,o,e),rs(o,"visibility"),hX(t,n),Xx.requestAnimationFrame((function(){mX(r,o,e)}))}))})),xi(Qo(),(function(t){var n=t.element;gX(n).each((function(t){mX(n,t,e)}))})),xi(mE,(function(t,n){var r=t.element;gX(r).each((function(t){var n=Ql();Xu(t,"visibility","hidden");var o=ts(t,"height").map((function(t){return parseInt(t,10)}));rs(t,"height"),rs(t,"flex-basis");var i=t.dom.getBoundingClientRect().height,a=o.forall((function(t){return i>t}));a?(e.set(w.from(i)),mX(r,t,e)):o.each((function(e){pX(t,e)})),rs(t,"visibility"),n.each(Kl)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var t=[],e=!0;return{extraEvents:t,selectFirst:e}}();return{smartTabHeight:e,naiveTabHeight:n}},bX="send-data-to-section",yX="send-data-to-view",xX=function(t,e){var n=Xn({}),r=function(t){var e=Yp.getValue(t),r=GY(e).getOr({}),o=n.get(),i=Yt(o,r);n.set(i)},o=function(t){var e=n.get();Yp.setValue(t,e)},i=Xn(null),a=W(t.tabs,(function(t){return{value:t.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:e.shared.providers.translate(t.title)},view:function(){return[mB.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:W(t.items,(function(t){return WM(n,t,e)})),formBehaviours:Fl([fy.config({mode:"acyclic",useTabstopAt:s(QB)}),Sy("TabView.form.events",[Di(o),Ii(r)]),ql.config({channels:le([{key:bX,value:{onReceive:r}},{key:yX,value:{onReceive:o}}])})])}}))]}}})),u=vX(a).smartTabHeight;return cX.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(t,e,n){var r=Yp.getValue(e);fi(t,pE,{name:r,oldName:i.get()}),i.set(r)},tabs:a,components:[cX.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[eX.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Fl([QA.config({})])}),cX.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:u.selectFirst,tabSectionBehaviours:Fl([Sy("tabpanel",u.extraEvents),fy.config({mode:"acyclic"}),yg.config({find:function(t){return ct(cX.getViewItems(t))}}),Yp.config({store:{mode:"manual",getValue:function(t){return t.getSystem().broadcastOn([bX],{}),n.get()},setValue:function(t,e){n.set(e),t.getSystem().broadcastOn([yX],{})}}})])})},wX=Aa("update-dialog"),CX=Aa("update-title"),SX=Aa("update-body"),kX=Aa("update-footer"),OX=Aa("body-send-message"),_X=function(t,e,n,r){var o=function(t){switch(t.body.type){case"tabpanel":return[xX(t.body,n)];default:return[YY(t.body,n)]}},i=function(t,e){return w.some({isTabPanel:function(){return"tabpanel"===e.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:h(h({},e.map((function(t){return{id:t}})).getOr({})),r?a:{})},components:[],behaviours:Fl([_B.childAt(0),K$.config({channel:SX,updateState:i,renderComponents:o,initialData:t})])}},AX=function(t,e,n,r){return _X(t,w.some(e),n,r)},EX=function(t,e){var n=_X(t,w.none(),e,!1);return hG.parts.body(n)},TX=function(t){var e={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[KB({dom:{tag:"iframe",attributes:{src:t.url}},behaviours:Fl([QA.config({}),By.config({})])})]}],behaviours:Fl([fy.config({mode:"acyclic",useTabstopAt:s(QB)})])};return hG.parts.body(e)},DX=nO.deviceType.isTouch(),IX=function(t,e){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[t,e]}},BX=function(t,e){return hG.parts.close(Zx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close")}},action:t,buttonBehaviours:Fl([QA.config({})])}))},LX=function(){return hG.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},NX=function(t,e){return hG.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:_z("<p>"+e.translate(t)+"</p>")}]}]})},PX=function(t){return hG.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:t})},MX=function(t,e){return[zA.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:t}),zA.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:e})]},jX=function(t){var e,n="tox-dialog",r=n+"-wrap",o=r+"__backdrop",i=n+"__disable-scroll";return hG.sketch({lazySink:t.lazySink,onEscape:function(e){return t.onEscape(e),w.some(!0)},useTabstopAt:function(t){return!QB(t)},dom:{tag:"div",classes:[n].concat(t.extraClasses),styles:h({position:"relative"},t.extraStyles)},components:m([t.header,t.body],t.footer.toArray()),parts:{blocker:{dom:_z('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:DX?[o,o+"--opaque"]:[o]}}]}},dragBlockClass:r,modalBehaviours:Fl(m([By.config({}),Sy("dialog-events",t.dialogEvents.concat([Ti(Eo(),(function(t,e){fy.focusIn(t)}))])),Sy("scroll-lock",[Di((function(){Au(Wu(),i)})),Ii((function(){Tu(Wu(),i)}))])],t.extraBehaviours)),eventOrder:h((e={},e[zo()]=["dialog-events"],e[ti()]=["scroll-lock","dialog-events","alloy.base.behaviour"],e[ei()]=["alloy.base.behaviour","dialog-events","scroll-lock"],e),t.eventOrder)})},RX=function(t){return Zx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close"),title:t.translate("Close")}},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:tw("close",t.icons)}}],action:function(t){li(t,cE)}})},$X=function(t,e,n){var r=function(t){return[gs(n.translate(t.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:h({},e.map((function(t){return{id:t}})).getOr({}))},components:r(t),behaviours:Fl([K$.config({channel:CX,renderComponents:r})])}},FX=function(){return{dom:_z('<div class="tox-dialog__draghandle"></div>')}},VX=function(t,e,n){return zA.sketch({dom:_z('<div class="tox-dialog__header"></div>'),components:[$X(t,w.some(e),n),FX(),RX(n)],containerBehaviours:Fl([Fq.config({mode:"mouse",blockerClass:"blocker",getTarget:function(t){return mc(t,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},HX=function(t,e){var n=hG.parts.title($X(t,w.none(),e)),r=hG.parts.draghandle(FX()),o=hG.parts.close(RX(e)),i=[n].concat(t.draggable?[r]:[]).concat([o]);return zA.sketch({dom:_z('<div class="tox-dialog__header"></div>'),components:i})},zX=function(t,e){return HX({title:e.shared.providers.translate(t),draggable:e.dialog.isDraggableModal()},e.shared.providers)},UX=function(t,e){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":t},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:e,components:[{dom:_z('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},WX=function(t,e){return{onClose:function(){return e.closeWindow()},onBlock:function(e){hG.setBusy(t(),(function(t,n){return UX(e.message,n)}))},onUnblock:function(){hG.setIdle(t())}}},qX=function(t,e,n,r){var o,i=function(t,e){return w.some(e)};return ys(jX(h(h({},t),{lazySink:r.shared.getSink,extraBehaviours:m([K$.config({channel:wX,updateState:i,initialData:e}),HB.memory({})],t.extraBehaviours),onEscape:function(t){li(t,cE)},dialogEvents:n,eventOrder:(o={},o[Ho()]=[K$.name(),ql.name()],o[ti()]=["scroll-lock",K$.name(),"messages","dialog-events","alloy.base.behaviour"],o[ei()]=["alloy.base.behaviour","dialog-events","messages",K$.name(),"scroll-lock"],o)})))},GX=function(t){var e=function(t){var e=W(t.items,(function(t){var e=Xn(!1);return h(h({},t),{storage:e})}));return h(h({},t),{items:e})};return W(t,(function(t){return"menu"===t.type?e(t):t}))},YX=function(t){return Z(t,(function(t,e){if("menu"===e.type){var n=e;return Z(n.items,(function(t,e){return t[e.name]=e.storage,t}),t)}return t}),{})},XX=function(t,e){return[_i(Eo(),JB),t(sE,(function(t,n){e.onClose(),n.onClose()})),t(cE,(function(t,e,n,r){e.onCancel(t),li(r,sE)})),xi(hE,(function(t,n){return e.onUnblock()})),xi(dE,(function(t,n){return e.onBlock(n.event)}))]},KX=function(t,e){var n=function(e,n){return xi(e,(function(e,o){r(e,(function(r,i){n(t(),r,o.event,e)}))}))},r=function(t,e){K$.getState(t).get().each((function(n){e(n,t)}))};return m(XX(n,e),[n(lE,(function(t,e,n){e.onAction(t,{name:n.name})}))])},ZX=function(t,e,n){var r=function(e,n){return xi(e,(function(e,r){o(e,(function(o,i){n(t(),o,r.event,e)}))}))},o=function(t,e){K$.getState(t).get().each((function(n){e(n.internalDialog,t)}))};return m(XX(r,e),[r(fE,(function(t,e){return e.onSubmit(t)})),r(uE,(function(t,e,n){e.onChange(t,{name:n.name})})),r(lE,(function(t,e,r,o){var i=function(){return fy.focusIn(o)},a=function(t){return va(t,"disabled")||ga(t,"aria-disabled").exists((function(t){return"true"===t}))},u=ju(o.element),s=Ql(u);e.onAction(t,{name:r.name,value:r.value}),Ql(u).fold(i,(function(t){a(t)||s.exists((function(e){return uo(t,e)&&a(e)}))?i():n().toOptional().filter((function(e){return!uo(e.element,t)})).each(i)}))})),r(pE,(function(t,e,n){e.onTabChange(t,{newTabName:n.name,oldTabName:n.oldName})})),Ii((function(e){var n=t();Yp.setValue(e,n.getData())}))])},JX={initUrlDialog:KX,initDialog:ZX},QX=function(t,e){return VN(t,t.type,e)},tK=function(t,e,n){return Q(e,(function(t){return t.name===n})).bind((function(e){return e.memento.getOpt(t)}))},eK=function(t,e){var n=e.map((function(t){return t.footerButtons})).getOr([]),r=Y(n,(function(t){return"start"===t.align})),o=function(t,e){return zA.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+t]},components:W(e,(function(t){return t.memento.asSpec()}))})},i=o("start",r.pass),a=o("end",r.fail);return[i,a]},nK=function(t,e){var n=function(t,n){var r=W(n.buttons,(function(t){var n=Jx(QX(t,e));return{name:t.name,align:t.align,memento:n}})),o=function(t,e){return tK(t,r,e)};return w.some({lookupByName:o,footerButtons:r})};return{dom:_z('<div class="tox-dialog__footer"></div>'),components:[],behaviours:Fl([K$.config({channel:kX,initialData:t,updateState:n,renderComponents:eK})])}},rK=function(t,e){return nK(t,e)},oK=function(t,e){return hG.parts.footer(nK(t,e))},iK=function(t,e){var n=t.getRoot();if(n.getSystem().isConnected()){var r=yg.getCurrent(t.getFormWrapper()).getOr(t.getFormWrapper());return mB.getField(r,e).fold((function(){var n=t.getFooter(),o=K$.getState(n);return o.get().bind((function(t){return t.lookupByName(r,e)}))}),(function(t){return w.some(t)}))}return w.none()},aK=function(t,e){var n=t.getRoot();return K$.getState(n).get().map((function(t){return rn(nn("data",t.dataValidator,e))})).getOr(e)},uK=function(t,e,n){var r=function(e){var n=t.getRoot();n.getSystem().isConnected()&&e(n)},o=function(){var e=t.getRoot(),r=e.getSystem().isConnected()?t.getFormWrapper():e,o=Yp.getValue(r),i=It(n,(function(t){return t.get()}));return h(h({},o),i)},i=function(e){r((function(r){var o=m.getData(),i=h(h({},o),e),a=aK(t,i),u=t.getFormWrapper();Yp.setValue(u,a),Dt(n,(function(t,e){Ft(i,e)&&t.set(i[e])}))}))},a=function(e){iK(t,e).each(XS.disable)},u=function(e){iK(t,e).each(XS.enable)},s=function(e){iK(t,e).each(By.focus)},c=function(t){if(!_(t))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(e){fi(e,dE,{message:t})}))},l=function(){r((function(t){li(t,hE)}))},f=function(e){r((function(n){var r=t.getBody(),o=K$.getState(r);o.get().exists((function(t){return t.isTabPanel()}))&&yg.getCurrent(r).each((function(t){cX.showTab(t,e)}))}))},d=function(t){r((function(n){var r=e(t);n.getSystem().broadcastOn([wX],r),n.getSystem().broadcastOn([CX],r.internalDialog),n.getSystem().broadcastOn([SX],r.internalDialog),n.getSystem().broadcastOn([kX],r.internalDialog),m.setData(r.initialData)}))},p=function(){r((function(t){li(t,sE)}))},m={getData:o,setData:i,disable:a,enable:u,focus:s,block:c,unblock:l,showTab:f,redial:d,close:p};return m},sK=function(t){switch(t){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},cK=function(t,e,n){var r=zX(t.internalDialog.title,n),o=EX({body:t.internalDialog.body},n),i=GX(t.internalDialog.buttons),a=YX(i),u=oK({buttons:i},n),s=JX.initDialog((function(){return h}),WX((function(){return f}),e),n.shared.getSink),c=sK(t.internalDialog.size),l={header:r,body:o,footer:w.some(u),extraClasses:c,extraBehaviours:[],extraStyles:{}},f=qX(l,t,s,n),d=function(){var t=function(){var t=hG.getBody(f);return yg.getCurrent(t).getOr(t)};return{getRoot:function(){return f},getBody:function(){return hG.getBody(f)},getFooter:function(){return hG.getFooter(f)},getFormWrapper:t}}(),h=uK(d,e.redial,a);return{dialog:f,instanceApi:h}},lK=function(t,e,n,r){var o,i,a=Aa("dialog-label"),u=Aa("dialog-content"),s=function(t,e){return w.some(e)},c=Jx(VX({title:t.internalDialog.title,draggable:!0},a,n.shared.providers)),l=Jx(AX({body:t.internalDialog.body},u,n,r)),f=GX(t.internalDialog.buttons),d=YX(f),h=Jx(rK({buttons:f},n)),p=JX.initDialog((function(){return g}),{onBlock:function(t){fG.block(m,(function(e,n){return UX(t.message,n)}))},onUnblock:function(){fG.unblock(m)},onClose:function(){return e.closeWindow()}},n.shared.getSink),m=ys({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(o={role:"dialog"},o["aria-labelledby"]=a,o["aria-describedby"]=""+u,o)},eventOrder:(i={},i[Ho()]=[K$.name(),ql.name()],i[zo()]=["execute-on-form"],i[ti()]=["reflecting","execute-on-form"],i),behaviours:Fl([fy.config({mode:"cyclic",onEscape:function(t){return li(t,sE),w.some(!0)},useTabstopAt:function(t){return!QB(t)&&("button"!==Ni(t)||"disabled"!==ma(t,"disabled"))}}),K$.config({channel:wX,updateState:s,initialData:t}),By.config({}),Sy("execute-on-form",p.concat([Ti(Eo(),(function(t,e){fy.focusIn(t)}))])),fG.config({getRoot:function(){return w.some(m)}}),wy.config({}),HB.memory({})]),components:[c.asSpec(),l.asSpec(),h.asSpec()]}),g=uK({getRoot:function(){return m},getFooter:function(){return h.get(m)},getBody:function(){return l.get(m)},getFormWrapper:function(){var t=l.get(m);return yg.getCurrent(t).getOr(t)}},e.redial,d);return{dialog:m,instanceApi:g}},fK=tinymce.util.Tools.resolve("tinymce.util.URI"),dK=function(t){var e=function(e){t.getSystem().isConnected()&&e(t)},n=function(t){if(!_(t))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");e((function(e){fi(e,dE,{message:t})}))},r=function(){e((function(t){li(t,hE)}))},o=function(){e((function(t){li(t,sE)}))},i=function(t){e((function(e){e.getSystem().broadcastOn([OX],t)}))};return{block:n,unblock:r,close:o,sendMessage:i}},hK=["insertContent","setContent","execCommand","close","block","unblock"],pK=function(t){return A(t)&&-1!==hK.indexOf(t.mceAction)},mK=function(t){return!pK(t)&&A(t)&&Ft(t,"mceAction")},gK=function(t,e,n){switch(n.mceAction){case"insertContent":t.insertContent(n.content);break;case"setContent":t.setContent(n.content);break;case"execCommand":var r=!!T(n.ui)&&n.ui;t.execCommand(n.cmd,r,n.value);break;case"close":e.close();break;case"block":e.block(n.message);break;case"unblock":e.unblock();break}},vK=function(t,e,n,r){var o,i=zX(t.title,r),a=TX(t),u=t.buttons.bind((function(t){return 0===t.length?w.none():w.some(oK({buttons:t},r))})),s=JX.initUrlDialog((function(){return b}),WX((function(){return v}),e)),c=h(h({},t.height.fold((function(){return{}}),(function(t){return{height:t+"px","max-height":t+"px"}}))),t.width.fold((function(){return{}}),(function(t){return{width:t+"px","max-width":t+"px"}}))),l=t.width.isNone()&&t.height.isNone()?["tox-dialog--width-lg"]:[],f=new fK(t.url,{base_uri:new fK(window.location.href)}),d=f.protocol+"://"+f.host+(f.port?":"+f.port:""),p=Xn(w.none()),m=[Sy("messages",[Di((function(){var e=dA(er.fromDom(window),"message",(function(e){if(f.isSameOrigin(new fK(e.raw.origin))){var r=e.raw.data;pK(r)?gK(n,b,r):mK(r)&&t.onMessage(b,r)}}));p.set(w.some(e))})),Ii((function(){p.get().each((function(t){return t.unbind()}))}))]),ql.config({channels:(o={},o[OX]={onReceive:function(t,e){pc(t.element,"iframe").each((function(t){var n=t.dom.contentWindow;n.postMessage(e,d)}))}},o)})],g={header:i,body:a,footer:u,extraClasses:l,extraBehaviours:m,extraStyles:c},v=qX(g,t,s,r),b=dK(v);return{dialog:v,instanceApi:b}},bK=function(t){var e=t.backstage.shared,n=function(n,r){var o=function(){hG.hide(s),r()},i=Jx(VN({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:w.none()},"cancel",t.backstage)),a=LX(),u=BX(o,e.providers),s=ys(jX({lazySink:function(){return e.getSink()},header:IX(a,u),body:NX(n,e.providers),footer:w.some(PX(MX([],[i.asSpec()]))),onEscape:o,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[xi(cE,o)],eventOrder:{}}));hG.show(s);var c=i.get(s);By.focus(c)};return{open:n}},yK=function(t){var e=t.backstage.shared,n=function(n,r){var o=function(t){hG.hide(c),r(t)},i=Jx(VN({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:w.none()},"submit",t.backstage)),a=VN({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:w.none()},"cancel",t.backstage),u=LX(),s=BX((function(){return o(!1)}),e.providers),c=ys(jX({lazySink:function(){return e.getSink()},header:IX(u,s),body:NX(n,e.providers),footer:w.some(PX(MX([],[a,i.asSpec()]))),onEscape:function(){return o(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[xi(cE,(function(){return o(!1)})),xi(fE,(function(){return o(!0)}))],eventOrder:{}}));hG.show(c);var l=i.get(c);By.focus(l)};return{open:n}},xK=function(t,e){return rn(nn("data",e,t))},wK=function(t){return mA(t,".tox-alert-dialog")||mA(t,".tox-confirm-dialog")},CK=function(t,e,n){return e&&n?[]:[FH.config({contextual:{lazyContext:function(){return w.some(oc(er.fromDom(t.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},SK=function(t){var e=t.backstage,n=t.editor,r=_k(n),o=bK(t),i=yK(t),a=function(t,n,r){return void 0!==n&&"toolbar"===n.inline?l(t,e.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?l(t,e.shared.anchors.cursor(),r,n.ariaAttrs):c(t,r)},u=function(t,e){return s(t,e)},s=function(t,r){var o=function(t){var o=vK(t,{closeWindow:function(){hG.hide(o.dialog),r(o.instanceApi)}},n,e);return hG.show(o.dialog),o.instanceApi};return qY.openUrl(o,t)},c=function(t,n){var r=function(t,r,o){var i=r,a={dataValidator:o,initialData:i,internalDialog:t},u=cK(a,{redial:qY.redial,closeWindow:function(){hG.hide(u.dialog),n(u.instanceApi)}},e);return hG.show(u.dialog),u.instanceApi.setData(i),u.instanceApi};return qY.open(r,t)},l=function(t,o,i,a){var u=function(t,u,s){var c=xK(u,s),l=xV(),f=e.shared.header.isPositionedAtTop(),d={dataValidator:s,initialData:c,internalDialog:t},p=function(){return l.on((function(t){jx.reposition(t),FH.refresh(t)}))},g=lK(d,{redial:qY.redial,closeWindow:function(){l.on(jx.hide),n.off("ResizeEditor",p),l.clear(),i(g.instanceApi)}},e,a),v=ys(jx.sketch(h(h({lazySink:e.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},f?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:Fl(m([Sy("window-manager-inline-events",[xi(ni(),(function(t,e){li(g.dialog,cE)}))])],CK(n,r,f))),isExtraPart:function(t,e){return wK(e)}})));return l.set(v),jx.showWithin(v,o,xs(g.dialog),w.some(Wu())),r&&f||(FH.refresh(v),n.on("ResizeEditor",p)),g.instanceApi.setData(c),fy.focusIn(g.dialog),g.instanceApi};return qY.open(u,t)},f=function(t,e){i.open(t,(function(t){e(t)}))},d=function(t,e){o.open(t,(function(){e()}))},p=function(t){t.close()};return{open:a,openUrl:u,alert:d,close:p,confirm:f}};function kK(){d.add("silver",(function(t){var e=Qq(t),n=e.uiMothership,r=e.backstage,o=e.renderUI,a=e.getUi;lA.register(t,r.shared);var u=SK({editor:t,backstage:r});return{renderUI:o,getWindowManagerImpl:i(u),getNotificationManagerImpl:function(){return aw(t,{backstage:r},n)},ui:a()}}))}kK()})()}).call(this,n("c8ba"))},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"0393":function(t,e,n){"use strict";n("0481"),n("4069");var r=n("5530"),o=(n("210b"),n("604c")),i=n("d9bd");e["a"]=o["a"].extend({name:"v-expansion-panels",provide:function(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes:function(){return Object(r["a"])({},o["a"].options.computed.classes.call(this),{"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile})}},created:function(){this.$attrs.hasOwnProperty("expand")&&Object(i["a"])("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&"boolean"===typeof this.value[0]&&Object(i["a"])(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem:function(t,e){var n=this.getValue(t,e),r=this.getValue(t,e+1);t.isActive=this.toggleMethod(n),t.nextIsActive=this.toggleMethod(r)}}})},"03a4":function(t,e,n){"use strict";n("0481"),n("caad"),n("4069"),n("a9e3"),n("b64b"),n("2532");var r=n("5530"),o=(n("bb18"),n("8dd9")),i=(n("99af"),n("7863"),n("ba0d")),a=n("7bc6"),u=n("2b0e"),s=(n("a623"),n("15fd")),c=n("53ca");function l(t){t=Object(r["a"])({},t);var e=Object(a["c"])(t),n=Object(a["b"])(t),o=Object(a["d"])(t);return{alpha:t.a,hex:e.substr(0,7),hexa:e,hsla:n,hsva:t,hue:t.h,rgba:o}}function f(t){var e=Object(a["a"])(t),n=Object(a["c"])(e),r=Object(a["d"])(e);return{alpha:e.a,hex:n.substr(0,7),hexa:n,hsla:t,hsva:e,hue:e.h,rgba:r}}function d(t){var e=Object(a["g"])(t),n=Object(a["h"])(t),r=Object(a["b"])(e);return{alpha:e.a,hex:n.substr(0,7),hexa:n,hsla:r,hsva:e,hue:e.h,rgba:t}}function h(t){var e=Object(a["e"])(t),n=Object(a["b"])(e),r=Object(a["d"])(e);return{alpha:e.a,hex:t.substr(0,7),hexa:t,hsla:n,hsva:e,hue:e.h,rgba:r}}function p(t){return h(Object(a["o"])(t))}function m(t,e){return e.every((function(e){return t.hasOwnProperty(e)}))}function g(t,e){if(!t)return d({r:255,g:0,b:0,a:1});if("string"===typeof t){if("transparent"===t)return h("#00000000");var n=Object(a["o"])(t);return e&&n===e.hexa?e:h(n)}if("object"===Object(c["a"])(t)){if(t.hasOwnProperty("alpha"))return t;var o=t.hasOwnProperty("a")?parseFloat(t.a):1;if(m(t,["r","g","b"]))return e&&t===e.rgba?e:d(Object(r["a"])({},t,{a:o}));if(m(t,["h","s","l"]))return e&&t===e.hsla?e:f(Object(r["a"])({},t,{a:o}));if(m(t,["h","s","v"]))return e&&t===e.hsva?e:l(Object(r["a"])({},t,{a:o}))}return d({r:255,g:0,b:0,a:1})}function v(t,e){if(e){t.a;var n=Object(s["a"])(t,["a"]);return n}return t}function b(t,e){if(null==e)return t;if("string"===typeof e)return 7===e.length?t.hex:t.hexa;if("object"===Object(c["a"])(e)){var n="number"===typeof e.a&&0===e.a?!!e.a:!e.a;if(m(e,["r","g","b"]))return v(t.rgba,n);if(m(e,["h","s","l"]))return v(t.hsla,n);if(m(e,["h","s","v"]))return v(t.hsva,n)}return t}function y(t){return!!t&&("string"===typeof t?t.length>7:"object"===Object(c["a"])(t)&&(m(t,["a"])||m(t,["alpha"])))}var x=u["a"].extend({name:"v-color-picker-preview",props:{color:Object,disabled:Boolean,hideAlpha:Boolean},methods:{genAlpha:function(){var t=this;return this.genTrack({staticClass:"v-color-picker__alpha",props:{thumbColor:"grey lighten-2",hideDetails:!0,value:this.color.alpha,step:0,min:0,max:1},style:{backgroundImage:this.disabled?void 0:"linear-gradient(to ".concat(this.$vuetify.rtl?"left":"right",", transparent, ").concat(Object(a["i"])(this.color.rgba),")")},on:{input:function(e){return t.color.alpha!==e&&t.$emit("update:color",l(Object(r["a"])({},t.color.hsva,{a:e})))}}})},genSliders:function(){return this.$createElement("div",{staticClass:"v-color-picker__sliders"},[this.genHue(),!this.hideAlpha&&this.genAlpha()])},genDot:function(){return this.$createElement("div",{staticClass:"v-color-picker__dot"},[this.$createElement("div",{style:{background:Object(a["f"])(this.color.rgba)}})])},genHue:function(){var t=this;return this.genTrack({staticClass:"v-color-picker__hue",props:{thumbColor:"grey lighten-2",hideDetails:!0,value:this.color.hue,step:0,min:0,max:360},on:{input:function(e){return t.color.hue!==e&&t.$emit("update:color",l(Object(r["a"])({},t.color.hsva,{h:e})))}}})},genTrack:function(t){return this.$createElement(i["a"],Object(r["a"])({class:"v-color-picker__track"},t,{props:Object(r["a"])({disabled:this.disabled},t.props)}))}},render:function(t){return t("div",{staticClass:"v-color-picker__preview",class:{"v-color-picker__preview--hide-alpha":this.hideAlpha}},[this.genDot(),this.genSliders()])}}),w=(n("d59f"),n("80d2")),C=u["a"].extend({name:"v-color-picker-canvas",props:{color:{type:Object,default:function(){return d({r:255,g:0,b:0,a:1})}},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300}},data:function(){return{boundingRect:{width:0,height:0,left:0,top:0}}},computed:{dot:function(){return this.color?{x:this.color.hsva.s*parseInt(this.width,10),y:(1-this.color.hsva.v)*parseInt(this.height,10)}:{x:0,y:0}}},watch:{"color.hue":"updateCanvas"},mounted:function(){this.updateCanvas()},methods:{emitColor:function(t,e){var n=this.boundingRect,r=n.left,o=n.top,i=n.width,a=n.height;this.$emit("update:color",l({h:this.color.hue,s:Object(w["f"])(t-r,0,i)/i,v:1-Object(w["f"])(e-o,0,a)/a,a:this.color.alpha}))},updateCanvas:function(){if(this.color){var t=this.$refs.canvas,e=t.getContext("2d");if(e){var n=e.createLinearGradient(0,0,t.width,0);n.addColorStop(0,"hsla(0, 0%, 100%, 1)"),n.addColorStop(1,"hsla(".concat(this.color.hue,", 100%, 50%, 1)")),e.fillStyle=n,e.fillRect(0,0,t.width,t.height);var r=e.createLinearGradient(0,0,0,t.height);r.addColorStop(0,"hsla(0, 0%, 100%, 0)"),r.addColorStop(1,"hsla(0, 0%, 0%, 1)"),e.fillStyle=r,e.fillRect(0,0,t.width,t.height)}}},handleClick:function(t){this.disabled||(this.boundingRect=this.$el.getBoundingClientRect(),this.emitColor(t.clientX,t.clientY))},handleMouseDown:function(t){t.preventDefault(),this.disabled||(this.boundingRect=this.$el.getBoundingClientRect(),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp))},handleMouseMove:function(t){this.disabled||this.emitColor(t.clientX,t.clientY)},handleMouseUp:function(){window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp)},genCanvas:function(){return this.$createElement("canvas",{ref:"canvas",attrs:{width:this.width,height:this.height}})},genDot:function(){var t=parseInt(this.dotSize,10)/2,e=Object(w["g"])(this.dot.x-t),n=Object(w["g"])(this.dot.y-t);return this.$createElement("div",{staticClass:"v-color-picker__canvas-dot",class:{"v-color-picker__canvas-dot--disabled":this.disabled},style:{width:Object(w["g"])(this.dotSize),height:Object(w["g"])(this.dotSize),transform:"translate(".concat(e,", ").concat(n,")")}})}},render:function(t){return t("div",{staticClass:"v-color-picker__canvas",style:{width:Object(w["g"])(this.width),height:Object(w["g"])(this.height)},on:{click:this.handleClick,mousedown:this.handleMouseDown}},[this.genCanvas(),this.genDot()])}}),S=(n("c975"),n("d81d"),n("fb6a"),n("8a79"),n("ade3")),k=n("3835"),O=(n("9f7f1"),n("afdd")),_=n("9d26"),A={rgba:{inputs:[["r",255,"int"],["g",255,"int"],["b",255,"int"],["a",1,"float"]],from:d},hsla:{inputs:[["h",360,"int"],["s",1,"float"],["l",1,"float"],["a",1,"float"]],from:f},hexa:{from:h}},E=u["a"].extend({name:"v-color-picker-edit",props:{color:Object,disabled:Boolean,hideAlpha:Boolean,hideModeSwitch:Boolean,mode:{type:String,default:"rgba",validator:function(t){return Object.keys(A).includes(t)}}},data:function(){return{modes:A,internalMode:this.mode}},computed:{currentMode:function(){return this.modes[this.internalMode]}},watch:{mode:function(t){this.internalMode=t}},created:function(){this.internalMode=this.mode},methods:{getValue:function(t,e){return"float"===e?Math.round(100*t)/100:"int"===e?Math.round(t):0},parseValue:function(t,e){return"float"===e?parseFloat(t):"int"===e&&parseInt(t,10)||0},changeMode:function(){var t=Object.keys(this.modes),e=t.indexOf(this.internalMode),n=t[(e+1)%t.length];this.internalMode=n,this.$emit("update:mode",n)},genInput:function(t,e,n,r){return this.$createElement("div",{staticClass:"v-color-picker__input"},[this.$createElement("input",{key:t,attrs:e,domProps:{value:n},on:r}),this.$createElement("span",t.toUpperCase())])},genInputs:function(){var t=this;if("hexa"===this.internalMode){var e=this.color.hexa,n=this.hideAlpha&&e.endsWith("FF")?e.substr(0,7):e;return this.genInput("hex",{maxlength:this.hideAlpha?7:9,disabled:this.disabled},n,{change:function(e){var n=e.target;t.$emit("update:color",t.currentMode.from(Object(a["o"])(n.value)))}})}var r=this.hideAlpha?this.currentMode.inputs.slice(0,-1):this.currentMode.inputs;return r.map((function(e){var n=Object(k["a"])(e,3),r=n[0],o=n[1],i=n[2],a=t.color[t.internalMode];return t.genInput(r,{type:"number",min:0,max:o,step:"float"===i?"0.01":"int"===i?"1":void 0,disabled:t.disabled},t.getValue(a[r],i),{input:function(e){var n=e.target,o=t.parseValue(n.value||"0",i);t.$emit("update:color",t.currentMode.from(Object.assign({},a,Object(S["a"])({},r,o)),t.color.alpha))}})}))},genSwitch:function(){return this.$createElement(O["a"],{props:{small:!0,icon:!0,disabled:this.disabled},on:{click:this.changeMode}},[this.$createElement(_["a"],"$unfold")])}},render:function(t){return t("div",{staticClass:"v-color-picker__edit"},[this.genInputs(),!this.hideModeSwitch&&this.genSwitch()])}}),T=(n("31ce"),n("dca8"),Object.freeze({base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"})),D=Object.freeze({base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"}),I=Object.freeze({base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"}),B=Object.freeze({base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"}),L=Object.freeze({base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"}),N=Object.freeze({base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"}),P=Object.freeze({base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"}),M=Object.freeze({base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"}),j=Object.freeze({base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"}),R=Object.freeze({base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"}),$=Object.freeze({base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"}),F=Object.freeze({base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"}),V=Object.freeze({base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"}),H=Object.freeze({base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"}),z=Object.freeze({base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"}),U=Object.freeze({base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"}),W=Object.freeze({base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"}),q=Object.freeze({base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"}),G=Object.freeze({base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"}),Y=Object.freeze({black:"#000000",white:"#ffffff",transparent:"transparent"}),X=Object.freeze({red:T,pink:D,purple:I,deepPurple:B,indigo:L,blue:N,lightBlue:P,cyan:M,teal:j,green:R,lightGreen:$,lime:F,yellow:V,amber:H,orange:z,deepOrange:U,brown:W,blueGrey:q,grey:G,shades:Y}),K=n("58df"),Z=n("7560");function J(t){return Object.keys(t).map((function(e){var n=t[e];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]}))}var Q=p("#FFFFFF").rgba,tt=p("#000000").rgba,et=Object(K["a"])(Z["a"]).extend({name:"v-color-picker-swatches",props:{swatches:{type:Array,default:function(){return J(X)}},color:Object,maxWidth:[Number,String],maxHeight:[Number,String]},methods:{genColor:function(t){var e=this,n=this.$createElement("div",{style:{background:t}},[Object(w["j"])(this.color,g(t,null))&&this.$createElement(_["a"],{props:{small:!0,dark:Object(a["l"])(this.color.rgba,Q)>2&&this.color.alpha>.5,light:Object(a["l"])(this.color.rgba,tt)>2&&this.color.alpha>.5}},"$success")]);return this.$createElement("div",{staticClass:"v-color-picker__color",on:{click:function(){return e.$emit("update:color",p("transparent"===t?"#00000000":t))}}},[n])},genSwatches:function(){var t=this;return this.swatches.map((function(e){var n=e.map(t.genColor);return t.$createElement("div",{staticClass:"v-color-picker__swatch"},n)}))}},render:function(t){return t("div",{staticClass:"v-color-picker__swatches",style:{maxWidth:Object(w["g"])(this.maxWidth),maxHeight:Object(w["g"])(this.maxHeight)}},[this.$createElement("div",this.genSwatches())])}}),nt=n("c995");e["a"]=Object(K["a"])(nt["a"],Z["a"]).extend({name:"v-color-picker",props:{canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},flat:Boolean,hideCanvas:Boolean,hideInputs:Boolean,hideModeSwitch:Boolean,mode:{type:String,default:"rgba",validator:function(t){return Object.keys(A).includes(t)}},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},value:{type:[Object,String]},width:{type:[Number,String],default:300}},data:function(){return{internalValue:d({r:255,g:0,b:0,a:1})}},computed:{hideAlpha:function(){return!!this.value&&!y(this.value)}},watch:{value:{handler:function(t){this.updateColor(g(t,this.internalValue))},immediate:!0}},methods:{updateColor:function(t){this.internalValue=t;var e=b(this.internalValue,this.value);Object(w["j"])(e,this.value)||(this.$emit("input",e),this.$emit("update:color",this.internalValue))},genCanvas:function(){return this.$createElement(C,{props:{color:this.internalValue,disabled:this.disabled,dotSize:this.dotSize,width:this.width,height:this.canvasHeight},on:{"update:color":this.updateColor}})},genControls:function(){return this.$createElement("div",{staticClass:"v-color-picker__controls"},[this.genPreview(),!this.hideInputs&&this.genEdit()])},genEdit:function(){var t=this;return this.$createElement(E,{props:{color:this.internalValue,disabled:this.disabled,hideAlpha:this.hideAlpha,hideModeSwitch:this.hideModeSwitch,mode:this.mode},on:{"update:color":this.updateColor,"update:mode":function(e){return t.$emit("update:mode",e)}}})},genPreview:function(){return this.$createElement(x,{props:{color:this.internalValue,disabled:this.disabled,hideAlpha:this.hideAlpha},on:{"update:color":this.updateColor}})},genSwatches:function(){return this.$createElement(et,{props:{dark:this.dark,light:this.light,swatches:this.swatches,color:this.internalValue,maxHeight:this.swatchesMaxHeight},on:{"update:color":this.updateColor}})}},render:function(t){return t(o["a"],{staticClass:"v-color-picker",class:Object(r["a"])({"v-color-picker--flat":this.flat},this.themeClasses,{},this.elevationClasses),props:{maxWidth:this.width}},[!this.hideCanvas&&this.genCanvas(),this.genControls(),this.showSwatches&&this.genSwatches()])}})},"0481":function(t,e,n){"use strict";var r=n("23e7"),o=n("a2bf"),i=n("7b0b"),a=n("50c4"),u=n("a691"),s=n("65f0");r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e.length),r=s(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:u(t)),r}})},"0538":function(t,e,n){"use strict";var r=n("1c0b"),o=n("861d"),i=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?u(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(a.prototype=e.prototype),a}},"057f":function(t,e,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},"06c5":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("25f0"),n("3ca3");var r=n("6b75");function o(t,e){if(t){if("string"===typeof t)return Object(r["a"])(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(t,e):void 0}}},"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),a=n("fc6a"),u=n("c04e"),s=n("5135"),c=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=u(e,!0),c)try{return l(t,e)}catch(n){}if(s(t,e))return i(!o.f.call(t,e),t[e])}},"0789":function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return h})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return m}));n("99af");var r=n("d9f7");function o(){for(var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=Array()).concat.apply(t,[e].concat(r))}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top center 0",n=arguments.length>2?arguments[2]:void 0;return{name:t,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:e}},render:function(e,n){var i="transition".concat(n.props.group?"-group":""),a={props:{name:t,mode:n.props.mode},on:{beforeEnter:function(t){t.style.transformOrigin=n.props.origin,t.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(a.on.leave=o(a.on.leave,(function(t){return t.style.position="absolute"}))),n.props.hideOnLeave&&(a.on.leave=o(a.on.leave,(function(t){return t.style.display="none"}))),e(i,Object(r["a"])(n.data,a),n.children)}}}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return{name:t,functional:!0,props:{mode:{type:String,default:n}},render:function(n,o){return n("transition",Object(r["a"])(o.data,{props:{name:t},on:e}),o.children)}}}var u=n("ade3"),s=n("80d2"),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?"width":"height",r="offset".concat(Object(s["H"])(n));return{beforeEnter:function(t){t._parent=t.parentNode,t._initialStyle=Object(u["a"])({transition:t.style.transition,overflow:t.style.overflow},n,t.style[n])},enter:function(e){var o=e._initialStyle;e.style.setProperty("transition","none","important"),e.style.overflow="hidden";var i="".concat(e[r],"px");e.style[n]="0",e.offsetHeight,e.style.transition=o.transition,t&&e._parent&&e._parent.classList.add(t),requestAnimationFrame((function(){e.style[n]=i}))},afterEnter:i,enterCancelled:i,leave:function(t){t._initialStyle=Object(u["a"])({transition:"",overflow:t.style.overflow},n,t.style[n]),t.style.overflow="hidden",t.style[n]="".concat(t[r],"px"),t.offsetHeight,requestAnimationFrame((function(){return t.style[n]="0"}))},afterLeave:o,leaveCancelled:o};function o(e){t&&e._parent&&e._parent.classList.remove(t),i(e)}function i(t){var e=t._initialStyle[n];t.style.overflow=t._initialStyle.overflow,null!=e&&(t.style[n]=e),delete t._initialStyle}},l=(i("carousel-transition"),i("carousel-reverse-transition"),i("tab-transition"),i("tab-reverse-transition"),i("menu-transition"),i("fab-transition","center center","out-in")),f=(i("dialog-transition"),i("dialog-bottom-transition"),i("fade-transition")),d=i("scale-transition"),h=(i("scroll-x-transition"),i("scroll-x-reverse-transition"),i("scroll-y-transition"),i("scroll-y-reverse-transition"),i("slide-x-transition")),p=(i("slide-x-reverse-transition"),i("slide-y-transition"),i("slide-y-reverse-transition"),a("expand-transition",c())),m=a("expand-x-transition",c("",!0))},"0798":function(t,e,n){"use strict";n("caad");var r=n("5530"),o=n("ade3"),i=(n("0c18"),n("10d2")),a=n("afdd"),u=n("9d26"),s=n("f2e7"),c=n("7560"),l=n("2b0e"),f=l["a"].extend({name:"transitionable",props:{mode:String,origin:String,transition:String}}),d=n("58df"),h=n("d9bd");e["a"]=Object(d["a"])(i["a"],s["a"],f).extend({name:"v-alert",props:{border:{type:String,validator:function(t){return["top","right","bottom","left"].includes(t)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator:function(t){return"string"===typeof t||!1===t}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator:function(t){return["info","error","success","warning"].includes(t)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder:function(){if(!this.border)return null;var t={staticClass:"v-alert__border",class:Object(o["a"])({},"v-alert__border--".concat(this.border),!0)};return this.coloredBorder&&(t=this.setBackgroundColor(this.computedColor,t),t.class["v-alert__border--has-color"]=!0),this.$createElement("div",t)},__cachedDismissible:function(){var t=this;if(!this.dismissible)return null;var e=this.iconColor;return this.$createElement(a["a"],{staticClass:"v-alert__dismissible",props:{color:e,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:function(){return t.isActive=!1}}},[this.$createElement(u["a"],{props:{color:e}},this.closeIcon)])},__cachedIcon:function(){return this.computedIcon?this.$createElement(u["a"],{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes:function(){var t=Object(r["a"])({},i["a"].options.computed.classes.call(this),{"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text});return this.border&&(t["v-alert--border-".concat(this.border)]=!0),t},computedColor:function(){return this.color||this.type},computedIcon:function(){return!1!==this.icon&&("string"===typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&"$".concat(this.type))},hasColoredIcon:function(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText:function(){return this.text||this.outlined},iconColor:function(){return this.hasColoredIcon?this.computedColor:void 0},isDark:function(){return!(!this.type||this.coloredBorder||this.outlined)||c["a"].options.computed.isDark.call(this)}},created:function(){this.$attrs.hasOwnProperty("outline")&&Object(h["a"])("outline","outlined",this)},methods:{genWrapper:function(){var t=[this.$slots.prepend||this.__cachedIcon,this.genContent(),this.__cachedBorder,this.$slots.append,this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],e={staticClass:"v-alert__wrapper"};return this.$createElement("div",e,t)},genContent:function(){return this.$createElement("div",{staticClass:"v-alert__content"},this.$slots.default)},genAlert:function(){var t={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};if(!this.coloredBorder){var e=this.hasText?this.setTextColor:this.setBackgroundColor;t=e(this.computedColor,t)}return this.$createElement("div",t,[this.genWrapper()])},toggle:function(){this.isActive=!this.isActive}},render:function(t){var e=this.genAlert();return this.transition?t("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[e]):e}})},"07ac":function(t,e,n){var r=n("23e7"),o=n("6f53").values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},"0902":function(t,e,n){n("88b6")},"0a06":function(t,e,n){"use strict";var r=n("c532"),o=n("30b5"),i=n("f6b4"),a=n("5270"),u=n("4a7b");function s(t){this.defaults=t,this.interceptors={request:new i,response:new i}}s.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=u(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},s.prototype.getUri=function(t){return t=u(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,o){return this.request(r.merge(o||{},{method:t,url:e,data:n}))}})),t.exports=s},"0b25":function(t,e,n){var r=n("a691"),o=n("50c4");t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length or index");return n}},"0bc6":function(t,e,n){},"0c18":function(t,e,n){},"0ccb":function(t,e,n){var r=n("50c4"),o=n("1148"),i=n("1d80"),a=Math.ceil,u=function(t){return function(e,n,u){var s,c,l=String(i(e)),f=l.length,d=void 0===u?" ":String(u),h=r(n);return h<=f||""==d?l:(s=h-f,c=o.call(d,a(s/d.length)),c.length>s&&(c=c.slice(0,s)),t?l+c:c+l)}};t.exports={start:u(!1),end:u(!0)}},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(t,e,n){var r=n("d039"),o=n("b622"),i=n("c430"),a=o("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),n+=r+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e8f":function(t,e,n){"use strict";n("20f6");var r=n("e8f2");e["a"]=Object(r["a"])("flex")},"0fd9":function(t,e,n){"use strict";n("99af"),n("4160"),n("caad"),n("13d5"),n("4ec9"),n("b64b"),n("d3b7"),n("ac1f"),n("2532"),n("3ca3"),n("5319"),n("159b"),n("ddb0");var r=n("ade3"),o=n("5530"),i=(n("4b85"),n("2b0e")),a=n("d9f7"),u=n("80d2"),s=["sm","md","lg","xl"],c=["start","end","center"];function l(t,e){return s.reduce((function(n,r){return n[t+Object(u["H"])(r)]=e(),n}),{})}var f=function(t){return[].concat(c,["baseline","stretch"]).includes(t)},d=l("align",(function(){return{type:String,default:null,validator:f}})),h=function(t){return[].concat(c,["space-between","space-around"]).includes(t)},p=l("justify",(function(){return{type:String,default:null,validator:h}})),m=function(t){return[].concat(c,["space-between","space-around","stretch"]).includes(t)},g=l("alignContent",(function(){return{type:String,default:null,validator:m}})),v={align:Object.keys(d),justify:Object.keys(p),alignContent:Object.keys(g)},b={align:"align",justify:"justify",alignContent:"align-content"};function y(t,e,n){var r=b[t];if(null!=n){if(e){var o=e.replace(t,"");r+="-".concat(o)}return r+="-".concat(n),r.toLowerCase()}}var x=new Map;e["a"]=i["a"].extend({name:"v-row",functional:!0,props:Object(o["a"])({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:f}},d,{justify:{type:String,default:null,validator:h}},p,{alignContent:{type:String,default:null,validator:m}},g),render:function(t,e){var n=e.props,o=e.data,i=e.children,u="";for(var s in n)u+=String(n[s]);var c=x.get(u);return c||function(){var t,e;for(e in c=[],v)v[e].forEach((function(t){var r=n[t],o=y(e,t,r);o&&c.push(o)}));c.push((t={"no-gutters":n.noGutters,"row--dense":n.dense},Object(r["a"])(t,"align-".concat(n.align),n.align),Object(r["a"])(t,"justify-".concat(n.justify),n.justify),Object(r["a"])(t,"align-content-".concat(n.alignContent),n.alignContent),t)),x.set(u,c)}(),t(n.tag,Object(a["a"])(o,{staticClass:"row",class:c}),i)}})},"10d2":function(t,e,n){"use strict";var r=n("8dd9");e["a"]=r["a"]},1148:function(t,e,n){"use strict";var r=n("a691"),o=n("1d80");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},1276:function(t,e,n){"use strict";var r=n("d784"),o=n("44e7"),i=n("825a"),a=n("1d80"),u=n("4840"),s=n("8aa5"),c=n("50c4"),l=n("14c3"),f=n("9263"),d=n("d039"),h=[].push,p=Math.min,m=4294967295,g=!d((function(){return!RegExp(m,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),i=void 0===n?m:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);var u,s,c,l=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,g=new RegExp(t.source,d+"g");while(u=f.call(g,r)){if(s=g.lastIndex,s>p&&(l.push(r.slice(p,u.index)),u.length>1&&u.index<r.length&&h.apply(l,u.slice(1)),c=u[0].length,p=s,l.length>=i))break;g.lastIndex===u.index&&g.lastIndex++}return p===r.length?!c&&g.test("")||l.push(""):l.push(r.slice(p)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var f=i(t),d=String(this),h=u(f,RegExp),v=f.unicode,b=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(g?"y":"g"),y=new h(g?f:"^(?:"+f.source+")",b),x=void 0===o?m:o>>>0;if(0===x)return[];if(0===d.length)return null===l(y,d)?[d]:[];var w=0,C=0,S=[];while(C<d.length){y.lastIndex=g?C:0;var k,O=l(y,g?d:d.slice(C));if(null===O||(k=p(c(y.lastIndex+(g?0:C)),d.length))===w)C=s(d,C,v);else{if(S.push(d.slice(w,C)),S.length===x)return S;for(var _=1;_<=O.length-1;_++)if(S.push(O[_]),S.length===x)return S;C=w=k}}return S.push(d.slice(w)),S}]}),!g)},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"132d":function(t,e,n){"use strict";n("7db0"),n("caad"),n("c975"),n("fb6a"),n("45fc"),n("a9e3"),n("2532"),n("498a"),n("c96a");var r,o=n("5530"),i=(n("4804"),n("7e2b")),a=n("a9ad"),u=n("af2b"),s=n("7560"),c=n("80d2"),l=n("2b0e"),f=n("58df");function d(t){return["fas","far","fal","fab","fad"].some((function(e){return t.includes(e)}))}function h(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(r||(r={}));var p=Object(f["a"])(i["a"],a["a"],u["a"],s["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium:function(){return!1},hasClickListener:function(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon:function(){var t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),Object(c["D"])(this,t)},getSize:function(){var t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Object(c["z"])(t).find((function(e){return t[e]}));return e&&r[e]||Object(c["g"])(this.size)},getDefaultData:function(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:Object(o["a"])({"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0},this.attrs$),on:this.listeners$}},getSvgWrapperData:function(){var t=this.getSize(),e=Object(o["a"])({},this.getDefaultData(),{style:t?{fontSize:t,height:t,width:t}:void 0});return this.applyColors(e),e},applyColors:function(t){t.class=Object(o["a"])({},t.class,{},this.themeClasses),this.setTextColor(this.color,t)},renderFontIcon:function(t,e){var n=[],r=this.getDefaultData(),o="material-icons",i=t.indexOf("-"),a=i<=-1;a?n.push(t):(o=t.slice(0,i),d(o)&&(o="")),r.class[o]=!0,r.class[t]=!a;var u=this.getSize();return u&&(r.style={fontSize:u}),this.applyColors(r),e(this.hasClickListener?"button":this.tag,r,n)},renderSvgIcon:function(t,e){var n={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},r=this.getSize();return r&&(n.style={fontSize:r,height:r,width:r}),e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",n,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent:function(t,e){var n={class:{"v-icon__component":!0}},r=this.getSize();r&&(n.style={fontSize:r,height:r,width:r}),this.applyColors(n);var o=t.component;return n.props=t.props,n.nativeOn=n.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(o,n)])}},render:function(t){var e=this.getIcon();return"string"===typeof e?h(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}});e["a"]=l["a"].extend({name:"v-icon",$_wrapperFor:p,functional:!0,render:function(t,e){var n=e.data,r=e.children,o="";return n.domProps&&(o=n.domProps.textContent||n.domProps.innerHTML||o,delete n.domProps.textContent,delete n.domProps.innerHTML),t(p,n,o?[o]:r)}})},"13b3":function(t,e,n){},"13d5":function(t,e,n){"use strict";var r=n("23e7"),o=n("d58f").left,i=n("a640"),a=n("ae40"),u=n("2d00"),s=n("605d"),c=i("reduce"),l=a("reduce",{1:0}),f=!s&&u>79&&u<83;r({target:"Array",proto:!0,forced:!c||!l||f},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"145e":function(t,e,n){"use strict";var r=n("7b0b"),o=n("23cb"),i=n("50c4"),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),u=i(n.length),s=o(t,u),c=o(e,u),l=arguments.length>2?arguments[2]:void 0,f=a((void 0===l?u:o(l,u))-c,u-s),d=1;c<s&&s<c+f&&(d=-1,c+=f-1,s+=f-1);while(f-- >0)c in n?n[s]=n[c]:delete n[s],s+=d,c+=d;return n}},"14c3":function(t,e,n){var r=n("c6b6"),o=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var i=n.call(t,e);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"159b":function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),a=n("9112");for(var u in o){var s=r[u],c=s&&s.prototype;if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(l){c.forEach=i}}},"15fd":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("a4d3"),n("c975"),n("b64b");function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}function o(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},"166a":function(t,e,n){},1681:function(t,e,n){},"169a":function(t,e,n){"use strict";n("7db0"),n("caad"),n("45fc"),n("a9e3"),n("2532"),n("498a");var r=n("5530"),o=n("2909"),i=n("ade3"),a=(n("368e"),n("480e")),u=n("4ad4"),s=n("b848"),c=n("75eb"),l=n("e707"),f=n("e4d3"),d=n("21be"),h=n("f2e7"),p=n("a293"),m=n("58df"),g=n("d9bd"),v=n("80d2"),b=Object(m["a"])(u["a"],s["a"],c["a"],l["a"],f["a"],d["a"],h["a"]);e["a"]=b.extend({name:"v-dialog",directives:{ClickOutside:p["a"]},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:{type:[String,Number],default:"none"},noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:{type:[String,Number],default:"auto"}},data:function(){return{activatedBy:null,animate:!1,animateTimeout:-1,isActive:!!this.value,stackMinZIndex:200,previousActiveElement:null}},computed:{classes:function(){var t;return t={},Object(i["a"])(t,"v-dialog ".concat(this.contentClass).trim(),!0),Object(i["a"])(t,"v-dialog--active",this.isActive),Object(i["a"])(t,"v-dialog--persistent",this.persistent),Object(i["a"])(t,"v-dialog--fullscreen",this.fullscreen),Object(i["a"])(t,"v-dialog--scrollable",this.scrollable),Object(i["a"])(t,"v-dialog--animated",this.animate),t},contentClasses:function(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator:function(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive:function(t){var e;t?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null==(e=this.previousActiveElement)||e.focus())},fullscreen:function(t){this.isActive&&(t?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(g["e"])("full-width",this)},beforeMount:function(){var t=this;this.$nextTick((function(){t.isBooted=t.isActive,t.isActive&&t.show()}))},beforeDestroy:function(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick:function(){var t=this;this.animate=!1,this.$nextTick((function(){t.animate=!0,window.clearTimeout(t.animateTimeout),t.animateTimeout=window.setTimeout((function(){return t.animate=!1}),150)}))},closeConditional:function(t){var e=t.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll:function(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):l["a"].options.methods.hideScroll.call(this)},show:function(){var t=this;!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick((function(){t.$nextTick((function(){t.previousActiveElement=document.activeElement,t.$refs.content.focus(),t.bind()}))}))},bind:function(){window.addEventListener("focusin",this.onFocusin)},unbind:function(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside:function(t){this.$emit("click:outside",t),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown:function(t){if(t.keyCode===v["y"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var e=this.getActivator();this.$nextTick((function(){return e&&e.focus()}))}this.$emit("keydown",t)},onFocusin:function(t){if(t&&this.retainFocus){var e=t.target;if(e&&![document,this.$refs.content].includes(e)&&!this.$refs.content.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some((function(t){return t.contains(e)}))){var n=this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),r=Object(o["a"])(n).find((function(t){return!t.hasAttribute("disabled")}));r&&r.focus()}}},genContent:function(){var t=this;return this.showLazyContent((function(){return[t.$createElement(a["a"],{props:{root:!0,light:t.light,dark:t.dark}},[t.$createElement("div",{class:t.contentClasses,attrs:Object(r["a"])({role:"document",tabindex:t.isActive?0:void 0},t.getScopeIdAttrs()),on:{keydown:t.onKeydown},style:{zIndex:t.activeZIndex},ref:"content"},[t.genTransition()])])]}))},genTransition:function(){var t=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[t]):t},genInnerContent:function(){var t={class:this.classes,ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(t.style=Object(r["a"])({},t.style,{maxWidth:"none"===this.maxWidth?void 0:Object(v["g"])(this.maxWidth),width:"auto"===this.width?void 0:Object(v["g"])(this.width)})),this.$createElement("div",t,this.getContentSlot())}},render:function(t){return t("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach},attrs:{role:"dialog"}},[this.genActivator(),this.genContent()])}})},"16b7":function(t,e,n){"use strict";n("a9e3");var r=n("2b0e");e["a"]=r["a"].extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:function(){return{openTimeout:void 0,closeTimeout:void 0}},methods:{clearDelay:function(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay:function(t,e){var n=this;this.clearDelay();var r=parseInt(this["".concat(t,"Delay")],10);this["".concat(t,"Timeout")]=setTimeout(e||function(){n.isActive={open:!0,close:!1}[t]},r)}}})},"170b":function(t,e,n){"use strict";var r=n("ebb5"),o=n("50c4"),i=n("23cb"),a=n("4840"),u=r.aTypedArray,s=r.exportTypedArrayMethod;s("subarray",(function(t,e){var n=u(this),r=n.length,s=i(t,r);return new(a(n,n.constructor))(n.buffer,n.byteOffset+s*n.BYTES_PER_ELEMENT,o((void 0===e?r:i(e,r))-s))}))},1758:function(t,e){tinymce.addI18n("fr_FR",{Redo:"Rétablir",Undo:"Annuler",Cut:"Couper",Copy:"Copier",Paste:"Coller","Select all":"Sélectionner tout","New document":"Nouveau document",Ok:"OK",Cancel:"Annuler","Visual aids":"Aides visuelles",Bold:"Gras",Italic:"Italique",Underline:"Souligné",Strikethrough:"Barré",Superscript:"Exposant",Subscript:"Indice","Clear formatting":"Effacer la mise en forme","Align left":"Aligner à gauche","Align center":"Centrer","Align right":"Aligner à droite",Justify:"Justifier","Bullet list":"Liste à puces","Numbered list":"Liste numérotée","Decrease indent":"Réduire le retrait","Increase indent":"Augmenter le retrait",Close:"Fermer",Formats:"Formats","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"Votre navigateur ne supporte pas l’accès direct au presse-papiers. Merci d'utiliser les raccourcis clavier Ctrl+X/C/V.",Headers:"En-têtes","Header 1":"En-tête 1","Header 2":"En-tête 2","Header 3":"En-tête 3","Header 4":"En-tête 4","Header 5":"En-tête 5","Header 6":"En-tête 6",Headings:"Titres","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6",Preformatted:"Préformaté",Div:"Div",Pre:"Pre",Code:"Code",Paragraph:"Paragraphe",Blockquote:"Blockquote",Inline:"En ligne",Blocks:"Blocs","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":'Le presse-papiers est maintenant en mode "texte plein". Les contenus seront collés sans retenir les formatages jusqu\'à ce que vous désactiviez cette option.',Fonts:"Polices","Font Sizes":"Tailles de police",Class:"Classe","Browse for an image":"Rechercher une image",OR:"OU","Drop an image here":"Déposer une image ici",Upload:"Télécharger",Block:"Bloc",Align:"Aligner",Default:"Par défaut",Circle:"Cercle",Disc:"Disque",Square:"Carré","Lower Alpha":"Alpha minuscule","Lower Greek":"Grec minuscule","Lower Roman":"Romain minuscule","Upper Alpha":"Alpha majuscule","Upper Roman":"Romain majuscule","Anchor...":"Ancre...",Name:"Nom",Id:"Id","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"L'Id doit commencer par une lettre suivi par des lettres, nombres, tirets, points, deux-points ou underscores","You have unsaved changes are you sure you want to navigate away?":"Vous avez des modifications non enregistrées, êtes-vous sûr de quitter la page?","Restore last draft":"Restaurer le dernier brouillon","Special character...":"Caractère spécial...","Source code":"Code source","Insert/Edit code sample":"Insérer / modifier une exemple de code",Language:"Langue","Code sample...":"Exemple de code...","Color Picker":"Sélecteur de couleurs",R:"R",G:"V",B:"B","Left to right":"Gauche à droite","Right to left":"Droite à gauche","Emoticons...":"Émoticônes...","Metadata and Document Properties":"Métadonnées et propriétés du document",Title:"Titre",Keywords:"Mots-clés",Description:"Description",Robots:"Robots",Author:"Auteur",Encoding:"Encodage",Fullscreen:"Plein écran",Action:"Action",Shortcut:"Raccourci",Help:"Aide",Address:"Adresse","Focus to menubar":"Cibler la barre de menu","Focus to toolbar":"Cibler la barre d'outils","Focus to element path":"Cibler le chemin vers l'élément","Focus to contextual toolbar":"Cibler la barre d'outils contextuelle","Insert link (if link plugin activated)":"Insérer un lien (si le module link est activé)","Save (if save plugin activated)":"Enregistrer (si le module save est activé)","Find (if searchreplace plugin activated)":"Rechercher (si le module searchreplace est activé)","Plugins installed ({0}):":"Modules installés ({0}) : ","Premium plugins:":"Modules premium :","Learn more...":"En savoir plus...","You are using {0}":"Vous utilisez {0}",Plugins:"Plugins","Handy Shortcuts":"Raccourcis utiles","Horizontal line":"Ligne horizontale","Insert/edit image":"Insérer/modifier une image","Image description":"Description de l'image",Source:"Source",Dimensions:"Dimensions","Constrain proportions":"Conserver les proportions",General:"Général",Advanced:"Avancé",Style:"Style","Vertical space":"Espacement vertical","Horizontal space":"Espacement horizontal",Border:"Bordure","Insert image":"Insérer une image","Image...":"Image...","Image list":"Liste d'images","Rotate counterclockwise":"Rotation anti-horaire","Rotate clockwise":"Rotation horaire","Flip vertically":"Retournement vertical","Flip horizontally":"Retournement horizontal","Edit image":"Modifier l'image","Image options":"Options de l'image","Zoom in":"Zoomer","Zoom out":"Dézoomer",Crop:"Rogner",Resize:"Redimensionner",Orientation:"Orientation",Brightness:"Luminosité",Sharpen:"Affiner",Contrast:"Contraste","Color levels":"Niveaux de couleur",Gamma:"Gamma",Invert:"Inverser",Apply:"Appliquer",Back:"Retour","Insert date/time":"Insérer date/heure","Date/time":"Date/heure","Insert/Edit Link":"Insérer/Modifier lien","Insert/edit link":"Insérer/modifier un lien","Text to display":"Texte à afficher",Url:"Url","Open link in...":"Ouvrir le lien dans...","Current window":"Fenêtre active",None:"n/a","New window":"Nouvelle fenêtre","Remove link":"Enlever le lien",Anchors:"Ancres","Link...":"Lien...","Paste or type a link":"Coller ou taper un lien","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"L'URL que vous avez entrée semble être une adresse e-mail. Voulez-vous ajouter le préfixe mailto: nécessaire?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"L'URL que vous avez entrée semble être un lien externe. Voulez-vous ajouter le préfixe http:// nécessaire?","Link list":"Liste de liens","Insert video":"Insérer une vidéo","Insert/edit video":"Insérer/modifier une vidéo","Insert/edit media":"Insérer/modifier un média","Alternative source":"Source alternative","Alternative source URL":"URL de la source alternative","Media poster (Image URL)":"Affiche de média (URL de l'image)","Paste your embed code below:":"Collez votre code d'intégration ci-dessous :",Embed:"Intégrer","Media...":"Média...","Nonbreaking space":"Espace insécable","Page break":"Saut de page","Paste as text":"Coller comme texte",Preview:"Prévisualiser","Print...":"Imprimer...",Save:"Enregistrer",Find:"Chercher","Replace with":"Remplacer par",Replace:"Remplacer","Replace all":"Tout remplacer",Previous:"Précédente",Next:"Suiv","Find and replace...":"Trouver et remplacer...","Could not find the specified string.":"Impossible de trouver la chaîne spécifiée.","Match case":"Respecter la casse","Find whole words only":"Mot entier","Spell check":"Vérification de l'orthographe",Ignore:"Ignorer","Ignore all":"Tout ignorer",Finish:"Finie","Add to Dictionary":"Ajouter au dictionnaire","Insert table":"Insérer un tableau","Table properties":"Propriétés du tableau","Delete table":"Supprimer le tableau",Cell:"Cellule",Row:"Ligne",Column:"Colonne","Cell properties":"Propriétés de la cellule","Merge cells":"Fusionner les cellules","Split cell":"Diviser la cellule","Insert row before":"Insérer une ligne avant","Insert row after":"Insérer une ligne après","Delete row":"Effacer la ligne","Row properties":"Propriétés de la ligne","Cut row":"Couper la ligne","Copy row":"Copier la ligne","Paste row before":"Coller la ligne avant","Paste row after":"Coller la ligne après","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Delete column":"Effacer la colonne",Cols:"Colonnes",Rows:"Lignes",Width:"Largeur",Height:"Hauteur","Cell spacing":"Espacement inter-cellulles","Cell padding":"Espacement interne cellule","Show caption":"Afficher le sous-titrage",Left:"Gauche",Center:"Centré",Right:"Droite","Cell type":"Type de cellule",Scope:"Etendue",Alignment:"Alignement","H Align":"Alignement H","V Align":"Alignement V",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Header cell":"Cellule d'en-tête","Row group":"Groupe de lignes","Column group":"Groupe de colonnes","Row type":"Type de ligne",Header:"En-tête",Body:"Corps",Footer:"Pied","Border color":"Couleur de la bordure","Insert template...":"Insérer un modèle...",Templates:"Thèmes",Template:"Modèle","Text color":"Couleur du texte","Background color":"Couleur d'arrière-plan","Custom...":"Personnalisé...","Custom color":"Couleur personnalisée","No color":"Aucune couleur","Remove color":"Supprimer la couleur","Table of Contents":"Table des matières","Show blocks":"Afficher les blocs","Show invisible characters":"Afficher les caractères invisibles","Word count":"Nombre de mots",Count:"Total",Document:"Document",Selection:"Sélection",Words:"Mots","Words: {0}":"Mots : {0}","{0} words":"{0} mots",File:"Fichier",Edit:"Editer",Insert:"Insérer",View:"Voir",Format:"Format",Table:"Tableau",Tools:"Outils","Powered by {0}":"Propulsé par {0}","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"Zone Texte Riche. Appuyer sur ALT-F9 pour le menu. Appuyer sur ALT-F10 pour la barre d'outils. Appuyer sur ALT-0 pour de l'aide.","Image title":"Titre d'image","Border width":"Épaisseur de la bordure","Border style":"Style de la bordure",Error:"Erreur",Warn:"Avertir",Valid:"Valide","To open the popup, press Shift+Enter":"Pour ouvrir la popup, appuyez sur Maj+Entrée","Rich Text Area. Press ALT-0 for help.":"Zone de texte riche. Appuyez sur ALT-0 pour l'aide.","System Font":"Police système","Failed to upload image: {0}":"Échec d'envoi de l'image : {0}","Failed to load plugin: {0} from url {1}":"Échec de chargement du plug-in : {0} à partir de l’URL {1}","Failed to load plugin url: {0}":"Échec de chargement de l'URL du plug-in : {0}","Failed to initialize plugin: {0}":"Échec d'initialisation du plug-in : {0}",example:"exemple",Search:"Rechercher",All:"Tout",Currency:"Devise",Text:"Texte",Quotations:"Citations",Mathematical:"Opérateurs mathématiques","Extended Latin":"Latin étendu",Symbols:"Symboles",Arrows:"Flèches","User Defined":"Défini par l'utilisateur","dollar sign":"Symbole dollar","currency sign":"Symbole devise","euro-currency sign":"Symbole euro","colon sign":"Symbole colón","cruzeiro sign":"Symbole cruzeiro","french franc sign":"Symbole franc français","lira sign":"Symbole lire","mill sign":"Symbole millième","naira sign":"Symbole naira","peseta sign":"Symbole peseta","rupee sign":"Symbole roupie","won sign":"Symbole won","new sheqel sign":"Symbole nouveau chékel","dong sign":"Symbole dong","kip sign":"Symbole kip","tugrik sign":"Symbole tougrik","drachma sign":"Symbole drachme","german penny symbol":"Symbole pfennig","peso sign":"Symbole peso","guarani sign":"Symbole guarani","austral sign":"Symbole austral","hryvnia sign":"Symbole hryvnia","cedi sign":"Symbole cedi","livre tournois sign":"Symbole livre tournois","spesmilo sign":"Symbole spesmilo","tenge sign":"Symbole tenge","indian rupee sign":"Symbole roupie indienne","turkish lira sign":"Symbole lire turque","nordic mark sign":"Symbole du mark nordique","manat sign":"Symbole manat","ruble sign":"Symbole rouble","yen character":"Sinogramme Yen","yuan character":"Sinogramme Yuan","yuan character, in hong kong and taiwan":"Sinogramme Yuan, Hong Kong et Taiwan","yen/yuan character variant one":"Sinogramme Yen/Yuan, première variante","Loading emoticons...":"Chargement des émoticônes en cours...","Could not load emoticons":"Échec de chargement des émoticônes",People:"Personnes","Animals and Nature":"Animaux & nature","Food and Drink":"Nourriture & boissons",Activity:"Activité","Travel and Places":"Voyages & lieux",Objects:"Objets",Flags:"Drapeaux",Characters:"Caractères","Characters (no spaces)":"Caractères (espaces non compris)","{0} characters":"{0} caractères","Error: Form submit field collision.":"Erreur : conflit de champs lors de la soumission du formulaire.","Error: No form element found.":"Erreur : aucun élément de formulaire trouvé.",Update:"Mettre à jour","Color swatch":"Échantillon de couleurs",Turquoise:"Turquoise",Green:"Vert",Blue:"Bleu",Purple:"Violet","Navy Blue":"Bleu marine","Dark Turquoise":"Turquoise foncé","Dark Green":"Vert foncé","Medium Blue":"Bleu moyen","Medium Purple":"Violet moyen","Midnight Blue":"Bleu de minuit",Yellow:"Jaune",Orange:"Orange",Red:"Rouge","Light Gray":"Gris clair",Gray:"Gris","Dark Yellow":"Jaune foncé","Dark Orange":"Orange foncé","Dark Red":"Rouge foncé","Medium Gray":"Gris moyen","Dark Gray":"Gris foncé","Light Green":"Vert clair","Light Yellow":"Jaune clair","Light Red":"Rouge clair","Light Purple":"Violet clair","Light Blue":"Bleu clair","Dark Purple":"Violet foncé","Dark Blue":"Bleu foncé",Black:"Noir",White:"Blanc","Switch to or from fullscreen mode":"Passer en ou quitter le mode plein écran","Open help dialog":"Ouvrir la boîte de dialogue d'aide",history:"historique",styles:"styles",formatting:"mise en forme",alignment:"alignement",indentation:"retrait","permanent pen":"feutre indélébile",comments:"commentaires","Format Painter":"Reproduire la mise en forme","Insert/edit iframe":"Insérer/modifier iframe",Capitalization:"Mise en majuscules",lowercase:"minuscule",UPPERCASE:"MAJUSCULE","Title Case":"Casse du titre","Permanent Pen Properties":"Propriétés du feutre indélébile","Permanent pen properties...":"Propriétés du feutre indélébile...",Font:"Police",Size:"Taille","More...":"Plus...","Spellcheck Language":"Langue du correcteur orthographique","Select...":"Sélectionner...",Preferences:"Préférences",Yes:"Oui",No:"Non","Keyboard Navigation":"Navigation au clavier",Version:"Version",Anchor:"Ancre","Special character":"Caractères spéciaux","Code sample":"Extrait de code",Color:"Couleur",Emoticons:"Emoticônes","Document properties":"Propriété du document",Image:"Image","Insert link":"Insérer un lien",Target:"Cible",Link:"Lien",Poster:"Publier",Media:"Média",Print:"Imprimer",Prev:"Préc ","Find and replace":"Trouver et remplacer","Whole words":"Mots entiers",Spellcheck:"Vérification orthographique",Caption:"Titre","Insert template":"Ajouter un thème"})},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=n("ae40"),a=o("forEach"),u=i("forEach");t.exports=a&&u?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1800:function(t,e,n){"use strict";n("4de4");var r=n("2b0e");e["a"]=r["a"].extend({name:"v-list-item-action",functional:!0,render:function(t,e){var n=e.data,r=e.children,o=void 0===r?[]:r;n.staticClass=n.staticClass?"v-list-item__action ".concat(n.staticClass):"v-list-item__action";var i=o.filter((function(t){return!1===t.isComment&&" "!==t.text}));return i.length>1&&(n.staticClass+=" v-list-item__action--stack"),t("div",n,o)}})},"182d":function(t,e,n){var r=n("f8cd");t.exports=function(t,e){var n=r(t);if(n%e)throw RangeError("Wrong offset");return n}},"18a5":function(t,e,n){"use strict";var r=n("23e7"),o=n("857a"),i=n("af03");r({target:"String",proto:!0,forced:i("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1b2c":function(t,e,n){},"1baa":function(t,e,n){"use strict";var r=n("5530"),o=(n("899c"),n("604c")),i=n("a9ad"),a=n("58df");e["a"]=Object(a["a"])(o["a"],i["a"]).extend({name:"v-list-item-group",provide:function(){return{isInGroup:!0,listItemGroup:this}},computed:{classes:function(){return Object(r["a"])({},o["a"].options.computed.classes.call(this),{"v-list-item-group":!0})}},methods:{genData:function(){return this.setTextColor(this.color,Object(r["a"])({},o["a"].options.methods.genData.call(this),{attrs:{role:"listbox"}}))}}})},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1bfb":function(t,e,n){},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),o=r("iterator"),i=!1;try{var a=0,u={next:function(){return{done:!!a++}},return:function(){i=!0}};u[o]=function(){return this},Array.from(u,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(s){}return n}},"1c87":function(t,e,n){"use strict";n("99af"),n("ac1f"),n("5319"),n("498a"),n("9911");var r=n("ade3"),o=n("5530"),i=n("2b0e"),a=n("5607"),u=n("80d2");e["a"]=i["a"].extend({name:"routable",directives:{Ripple:a["a"]},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:function(){return{isActive:!1,proxyClass:""}},computed:{classes:function(){var t={};return this.to||(this.activeClass&&(t[this.activeClass]=this.isActive),this.proxyClass&&(t[this.proxyClass]=this.isActive)),t},computedRipple:function(){var t;return null!=(t=this.ripple)?t:!this.disabled&&this.isClickable},isClickable:function(){return!this.disabled&&Boolean(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink:function(){return this.to||this.href||this.link},styles:function(){return{}}},watch:{$route:"onRouteChange"},methods:{click:function(t){this.$emit("click",t)},generateRouteLink:function(){var t,e,n=this.exact,i=(t={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}]},Object(r["a"])(t,this.to?"nativeOn":"on",Object(o["a"])({},this.$listeners,{click:this.click})),Object(r["a"])(t,"ref","link"),t);if("undefined"===typeof this.exact&&(n="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){var a=this.activeClass,u=this.exactActiveClass||a;this.proxyClass&&(a="".concat(a," ").concat(this.proxyClass).trim(),u="".concat(u," ").concat(this.proxyClass).trim()),e=this.nuxt?"nuxt-link":"router-link",Object.assign(i.props,{to:this.to,exact:n,activeClass:a,exactActiveClass:u,append:this.append,replace:this.replace})}else e=(this.href?"a":this.tag)||"div","a"===e&&this.href&&(i.attrs.href=this.href);return this.target&&(i.attrs.target=this.target),{tag:e,data:i}},onRouteChange:function(){var t=this;if(this.to&&this.$refs.link&&this.$route){var e="".concat(this.activeClass," ").concat(this.proxyClass||"").trim(),n="_vnode.data.class.".concat(e);this.$nextTick((function(){Object(u["p"])(t.$refs.link,n)&&t.toggle()}))}},toggle:function(){}}})},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"1d4d":function(t,e,n){"use strict";n("d81d"),n("a9e3"),n("c96a"),n("696f");var r=n("9d26"),o=n("a9ad"),i=n("16b7"),a=n("af2b"),u=n("5311"),s=n("7560"),c=n("80d2"),l=n("58df");e["a"]=Object(l["a"])(o["a"],i["a"],u["a"],a["a"],s["a"]).extend({name:"v-rating",props:{backgroundColor:{type:String,default:"accent"},color:{type:String,default:"primary"},clearable:Boolean,dense:Boolean,emptyIcon:{type:String,default:"$ratingEmpty"},fullIcon:{type:String,default:"$ratingFull"},halfIcon:{type:String,default:"$ratingHalf"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,size:[Number,String],value:{type:Number,default:0},iconLabel:{type:String,default:"$vuetify.rating.ariaLabel.icon"}},data:function(){return{hoverIndex:-1,internalValue:this.value}},computed:{directives:function(){return this.readonly||!this.ripple?[]:[{name:"ripple",value:{circle:!0}}]},iconProps:function(){var t=this.$props,e=t.dark,n=t.large,r=t.light,o=t.medium,i=t.small,a=t.size,u=t.xLarge,s=t.xSmall;return{dark:e,large:n,light:r,medium:o,size:a,small:i,xLarge:u,xSmall:s}},isHovering:function(){return this.hover&&this.hoverIndex>=0}},watch:{internalValue:function(t){t!==this.value&&this.$emit("input",t)},value:function(t){this.internalValue=t}},methods:{createClickFn:function(t){var e=this;return function(n){if(!e.readonly){var r=e.genHoverIndex(n,t);e.clearable&&e.internalValue===r?e.internalValue=0:e.internalValue=r}}},createProps:function(t){var e={index:t,value:this.internalValue,click:this.createClickFn(t),isFilled:Math.floor(this.internalValue)>t,isHovered:Math.floor(this.hoverIndex)>t};return this.halfIncrements&&(e.isHalfHovered=!e.isHovered&&(this.hoverIndex-t)%1>0,e.isHalfFilled=!e.isFilled&&(this.internalValue-t)%1>0),e},genHoverIndex:function(t,e){var n=this.isHalfEvent(t);return this.halfIncrements&&this.$vuetify.rtl&&(n=!n),e+(n?.5:1)},getIconName:function(t){var e=this.isHovering?t.isHovered:t.isFilled,n=this.isHovering?t.isHalfHovered:t.isHalfFilled;return e?this.fullIcon:n?this.halfIcon:this.emptyIcon},getColor:function(t){if(this.isHovering){if(t.isHovered||t.isHalfHovered)return this.color}else if(t.isFilled||t.isHalfFilled)return this.color;return this.backgroundColor},isHalfEvent:function(t){if(this.halfIncrements){var e=t.target&&t.target.getBoundingClientRect();if(e&&t.pageX-e.left<e.width/2)return!0}return!1},onMouseEnter:function(t,e){var n=this;this.runDelay("open",(function(){n.hoverIndex=n.genHoverIndex(t,e)}))},onMouseLeave:function(){var t=this;this.runDelay("close",(function(){return t.hoverIndex=-1}))},genItem:function(t){var e=this,n=this.createProps(t);if(this.$scopedSlots.item)return this.$scopedSlots.item(n);var o={click:n.click};return this.hover&&(o.mouseenter=function(n){return e.onMouseEnter(n,t)},o.mouseleave=this.onMouseLeave,this.halfIncrements&&(o.mousemove=function(n){return e.onMouseEnter(n,t)})),this.$createElement(r["a"],this.setTextColor(this.getColor(n),{attrs:{tabindex:-1,"aria-label":this.$vuetify.lang.t(this.iconLabel,t+1,Number(this.length))},directives:this.directives,props:this.iconProps,on:o}),[this.getIconName(n)])}},render:function(t){var e=this,n=Object(c["h"])(Number(this.length)).map((function(t){return e.genItem(t)}));return t("div",{staticClass:"v-rating",class:{"v-rating--readonly":this.readonly,"v-rating--dense":this.dense}},n)}})},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("d3b7"),n("e6cf");function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(c){return void n(c)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,s,"next",t)}function s(t){r(a,o,i,u,s,"throw",t)}u(void 0)}))}}},"1dde":function(t,e,n){var r=n("d039"),o=n("b622"),i=n("2d00"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1f09":function(t,e,n){},"20f6":function(t,e,n){},2102:function(t,e,n){},"210b":function(t,e,n){},"219c":function(t,e,n){"use strict";var r=n("ebb5"),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].sort;i("sort",(function(t){return a.call(o(this),t)}))},"21be":function(t,e,n){"use strict";n("99af"),n("caad"),n("2532");var r=n("2909"),o=n("2b0e"),i=n("80d2");e["a"]=o["a"].extend().extend({name:"stackable",data:function(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex:function(){if("undefined"===typeof window)return 0;var t=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[t])+2:Object(i["u"])(t);return null==e?e:parseInt(e)}},methods:{getMaxZIndex:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.$el,n=[this.stackMinZIndex,Object(i["u"])(e)],o=[].concat(Object(r["a"])(document.getElementsByClassName("v-menu__content--active")),Object(r["a"])(document.getElementsByClassName("v-dialog__content--active"))),a=0;a<o.length;a++)t.includes(o[a])||n.push(Object(i["u"])(o[a]));return Math.max.apply(Math,n)}}})},2266:function(t,e,n){var r=n("825a"),o=n("e95a"),i=n("50c4"),a=n("0366"),u=n("35a1"),s=n("2a62"),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,f,d,h,p,m,g,v=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),w=a(e,v,1+b+x),C=function(t){return l&&s(l),new c(!0,t)},S=function(t){return b?(r(t),x?w(t[0],t[1],C):w(t[0],t[1])):x?w(t,C):w(t)};if(y)l=t;else{if(f=u(t),"function"!=typeof f)throw TypeError("Target is not iterable");if(o(f)){for(d=0,h=i(t.length);h>d;d++)if(p=S(t[d]),p&&p instanceof c)return p;return new c(!1)}l=f.call(t)}m=l.next;while(!(g=m.call(l)).done){try{p=S(g.value)}catch(k){throw s(l),k}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},"23a7":function(t,e,n){"use strict";n("99af"),n("a623"),n("4160"),n("caad"),n("d81d"),n("13d5"),n("fb6a"),n("a434"),n("b0c0"),n("a9e3"),n("159b");var r=n("2909"),o=n("5530"),i=n("53ca"),a=(n("5803"),n("2677")),u=n("cc20"),s=n("80d2"),c=n("d9bd"),l=n("d9f7");e["a"]=a["a"].extend({name:"v-file-input",model:{prop:"value",event:"change"},props:{chips:Boolean,clearable:{type:Boolean,default:!0},counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,placeholder:String,prependIcon:{type:String,default:"$file"},readonly:{type:Boolean,default:!1},showSize:{type:[Boolean,Number],default:!1,validator:function(t){return"boolean"===typeof t||[1e3,1024].includes(t)}},smallChips:Boolean,truncateLength:{type:[Number,String],default:22},type:{type:String,default:"file"},value:{default:void 0,validator:function(t){return Object(s["I"])(t).every((function(t){return null!=t&&"object"===Object(i["a"])(t)}))}}},computed:{classes:function(){return Object(o["a"])({},a["a"].options.computed.classes.call(this),{"v-file-input":!0})},computedCounterValue:function(){var t=this.isMultiple&&this.lazyValue?this.lazyValue.length:this.lazyValue instanceof File?1:0;if(!this.showSize)return this.$vuetify.lang.t(this.counterString,t);var e=this.internalArrayValue.reduce((function(t,e){var n=e.size,r=void 0===n?0:n;return t+r}),0);return this.$vuetify.lang.t(this.counterSizeString,t,Object(s["w"])(e,1024===this.base))},internalArrayValue:function(){return Object(s["I"])(this.internalValue)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("change",this.lazyValue)}},isDirty:function(){return this.internalArrayValue.length>0},isLabelActive:function(){return this.isDirty},isMultiple:function(){return this.$attrs.hasOwnProperty("multiple")},text:function(){var t=this;return this.isDirty?this.internalArrayValue.map((function(e){var n=e.name,r=void 0===n?"":n,o=e.size,i=void 0===o?0:o,a=t.truncateText(r);return t.showSize?"".concat(a," (").concat(Object(s["w"])(i,1024===t.base),")"):a})):[this.placeholder]},base:function(){return"boolean"!==typeof this.showSize?this.showSize:void 0},hasChips:function(){return this.chips||this.smallChips}},watch:{readonly:{handler:function(t){!0===t&&Object(c["b"])("readonly is not supported on <v-file-input>",this)},immediate:!0},value:function(t){var e=this.isMultiple?t:t?[t]:[];Object(s["j"])(e,this.$refs.input.files)||(this.$refs.input.value="")}},methods:{clearableCallback:function(){this.internalValue=this.isMultiple?[]:void 0,this.$refs.input.value=""},genChips:function(){var t=this;return this.isDirty?this.text.map((function(e,n){return t.$createElement(u["a"],{props:{small:t.smallChips},on:{"click:close":function(){var e=t.internalValue;e.splice(n,1),t.internalValue=e}}},[e])})):[]},genControl:function(){var t=a["a"].options.methods.genControl.call(this);return this.hideInput&&(t.data.style=Object(l["d"])(t.data.style,{display:"none"})),t},genInput:function(){var t=a["a"].options.methods.genInput.call(this);return delete t.data.domProps.value,delete t.data.on.input,t.data.on.change=this.onInput,[this.genSelections(),t]},genPrependSlot:function(){var t=this;if(!this.prependIcon)return null;var e=this.genIcon("prepend",(function(){t.$refs.input.click()}));return this.genSlot("prepend","outer",[e])},genSelectionText:function(){var t=this.text.length;return t<2?this.text:this.showSize&&!this.counter?[this.computedCounterValue]:[this.$vuetify.lang.t(this.counterString,t)]},genSelections:function(){var t=this,e=[];return this.isDirty&&this.$scopedSlots.selection?this.internalArrayValue.forEach((function(n,r){t.$scopedSlots.selection&&e.push(t.$scopedSlots.selection({text:t.text[r],file:n,index:r}))})):e.push(this.hasChips&&this.isDirty?this.genChips():this.genSelectionText()),this.$createElement("div",{staticClass:"v-file-input__text",class:{"v-file-input__text--placeholder":this.placeholder&&!this.isDirty,"v-file-input__text--chips":this.hasChips&&!this.$scopedSlots.selection}},e)},genTextFieldSlot:function(){var t=this,e=a["a"].options.methods.genTextFieldSlot.call(this);return e.data.on=Object(o["a"])({},e.data.on||{},{click:function(){return t.$refs.input.click()}}),e},onInput:function(t){var e=Object(r["a"])(t.target.files||[]);this.internalValue=this.isMultiple?e:e[0],this.initialValue=this.internalValue},onKeyDown:function(t){this.$emit("keydown",t)},truncateText:function(t){if(t.length<Number(this.truncateLength))return t;var e=Math.floor((Number(this.truncateLength)-1)/2);return"".concat(t.slice(0,e),"…").concat(t.slice(t.length-e))}}})},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),a=n("6eeb"),u=n("ce4e"),s=n("e893"),c=n("94ca");t.exports=function(t,e){var n,l,f,d,h,p,m=t.target,g=t.global,v=t.stat;if(l=g?r:v?r[m]||u(m,{}):(r[m]||{}).prototype,l)for(f in e){if(h=e[f],t.noTargetGet?(p=o(l,f),d=p&&p.value):d=l[f],n=c(g?f:m+(v?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;s(h,d)}(t.sham||d&&d.sham)&&i(h,"sham",!0),a(l,f,h,t)}}},2401:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){},n=function(t){return function(){return t}},r=function(t){return function(e){return!t(e)}},o=n(!1),i=n(!0),a=function(){return u},u=function(){var t=function(t){return t.isNone()},r=function(t){return t()},u=function(t){return t},s={fold:function(t,e){return t()},is:o,isSome:o,isNone:i,getOr:u,getOrThunk:r,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:n(null),getOrUndefined:n(void 0),or:u,orThunk:r,map:a,each:e,bind:a,exists:o,forall:i,filter:a,equals:t,equals_:t,toArray:function(){return[]},toString:n("none()")};return s}(),s=function(t){var e=n(t),r=function(){return c},a=function(e){return e(t)},c={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:i,isNone:o,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:r,orThunk:r,map:function(e){return s(e(t))},each:function(e){e(t)},bind:a,exists:a,forall:a,filter:function(e){return e(t)?c:u},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(o,(function(e){return n(t,e)}))}};return c},c=function(t){return null===t||void 0===t?u:s(t)},l={some:s,none:a,from:c},f=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},d=function(t){return function(e){return f(e)===t}},h=function(t){return function(e){return typeof e===t}},p=d("string"),m=d("array"),g=h("boolean"),v=h("function"),b=h("number"),y=Array.prototype.slice,x=Array.prototype.push,w=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},C=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},S=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},k=function(t,e){if(0===t.length)return[];for(var n=e(t[0]),r=[],o=[],i=0,a=t.length;i<a;i++){var u=t[i],s=e(u);s!==n&&(r.push(o),o=[]),n=s,o.push(u)}return 0!==o.length&&r.push(o),r},O=function(t,e,n){return C(t,(function(t){n=e(n,t)})),n},_=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return l.some(i);if(n(i,r))break}return l.none()},A=function(t,e){return _(t,e,o)},E=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!m(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);x.apply(e,t[n])}return e},T=function(t,e){return E(w(t,e))},D=function(t){var e=y.call(t,0);return e.reverse(),e},I=function(t,e){return e>=0&&e<t.length?l.some(t[e]):l.none()},B=function(t){return I(t,0)},L=function(t){return I(t,t.length-1)},N=function(){return N=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},N.apply(this,arguments)},P=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}},M=function(t,e,r,o){var i=t.isiOS()&&!0===/ipad/i.test(r),a=t.isiOS()&&!i,u=t.isiOS()||t.isAndroid(),s=u||o("(pointer:coarse)"),c=i||!a&&u&&o("(min-device-width:768px)"),l=a||u&&!c,f=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(r),d=!l&&!c&&!f;return{isiPad:n(i),isiPhone:n(a),isTablet:n(c),isPhone:n(l),isTouch:n(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:n(f),isDesktop:n(d)}},j=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},R=function(t,e){var n=j(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return V(r(1),r(2))},$=function(t,e){var n=String(e).toLowerCase();return 0===t.length?F():R(t,n)},F=function(){return V(0,0)},V=function(t,e){return{major:t,minor:e}},H={nu:V,detect:$,unknown:F},z=function(t,e){var n=String(e).toLowerCase();return A(t,(function(t){return t.search(n)}))},U=function(t,e){return z(t,e).map((function(t){var n=H.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},W=function(t,e){return z(t,e).map((function(t){var n=H.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},q={detectBrowser:U,detectOs:W},G=function(t,e){return-1!==t.indexOf(e)},Y=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,X=function(t){return function(e){return G(e,t)}},K=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return G(t,"edge/")&&G(t,"chrome")&&G(t,"safari")&&G(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Y],search:function(t){return G(t,"chrome")&&!G(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return G(t,"msie")||G(t,"trident")}},{name:"Opera",versionRegexes:[Y,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:X("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:X("firefox")},{name:"Safari",versionRegexes:[Y,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(G(t,"safari")||G(t,"mobile/"))&&G(t,"applewebkit")}}],Z=[{name:"Windows",search:X("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return G(t,"iphone")||G(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:X("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:X("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:X("linux"),versionRegexes:[]},{name:"Solaris",search:X("sunos"),versionRegexes:[]},{name:"FreeBSD",search:X("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:X("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],J={browsers:n(K),oses:n(Z)},Q="Edge",tt="Chrome",et="IE",nt="Opera",rt="Firefox",ot="Safari",it=function(){return at({current:void 0,version:H.unknown()})},at=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Q),isChrome:r(tt),isIE:r(et),isOpera:r(nt),isFirefox:r(rt),isSafari:r(ot)}},ut={unknown:it,nu:at,edge:n(Q),chrome:n(tt),ie:n(et),opera:n(nt),firefox:n(rt),safari:n(ot)},st="Windows",ct="iOS",lt="Android",ft="Linux",dt="OSX",ht="Solaris",pt="FreeBSD",mt="ChromeOS",gt=function(){return vt({current:void 0,version:H.unknown()})},vt=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(st),isiOS:r(ct),isAndroid:r(lt),isOSX:r(dt),isLinux:r(ft),isSolaris:r(ht),isFreeBSD:r(pt),isChromeOS:r(mt)}},bt={unknown:gt,nu:vt,windows:n(st),ios:n(ct),android:n(lt),linux:n(ft),osx:n(dt),solaris:n(ht),freebsd:n(pt),chromeos:n(mt)},yt=function(t,e){var n=J.browsers(),r=J.oses(),o=q.detectBrowser(n,t).fold(ut.unknown,ut.nu),i=q.detectOs(r,t).fold(bt.unknown,bt.nu),a=M(i,o,t,e);return{browser:o,os:i,deviceType:a}},xt={detect:yt},wt=function(t){return window.matchMedia(t).matches},Ct=P((function(){return xt.detect(navigator.userAgent,wt)})),St=function(){return Ct()},kt=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},Ot=function(t,e){return kt(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},_t=1,At=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Dt(r.childNodes[0])},Et=function(t,e){var n=e||document,r=n.createElement(t);return Dt(r)},Tt=function(t,e){var n=e||document,r=n.createTextNode(t);return Dt(r)},Dt=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},It=function(t,e,n){return l.from(t.dom.elementFromPoint(e,n)).map(Dt)},Bt={fromHtml:At,fromTag:Et,fromText:Tt,fromDom:Dt,fromPoint:It},Lt=function(t,e){var n=t.dom;if(n.nodeType!==_t)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},Nt=function(t,e){return t.dom===e.dom},Pt=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},Mt=function(t,e){return Ot(t.dom,e.dom)},jt=function(t,e){return St().browser.isIE()?Mt(t,e):Pt(t,e)},Rt=Lt,$t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ft=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Vt=tinymce.util.Tools.resolve("tinymce.util.VK"),Ht=Object.keys,zt=function(t,e){for(var n=Ht(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},Ut=function(t){return function(e,n){t[n]=e}},Wt=function(t,e,n,r){var o={};return zt(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},qt=function(t,n){var r={};return Wt(t,n,Ut(r),e),r},Gt=("undefined"!==typeof window?window:Function("return this;")(),function(t){var e=t.dom.nodeName;return e.toLowerCase()}),Yt=function(t){return t.dom.nodeType},Xt=function(t){return function(e){return Yt(e)===t}},Kt=Xt(_t),Zt=function(t,e,n){if(!(p(n)||g(n)||b(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},Jt=function(t,e){var n=t.dom;zt(e,(function(t,e){Zt(n,e,t)}))},Qt=function(t){return O(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},te=function(t){return l.from(t.dom.parentNode).map(Bt.fromDom)},ee=function(t){return w(t.dom.childNodes,Bt.fromDom)},ne=function(t,e){var n=t.dom.childNodes;return l.from(n[e]).map(Bt.fromDom)},re=function(t){return ne(t,0)},oe=function(t){return ne(t,t.dom.childNodes.length-1)},ie=function(t,e){var n=te(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},ae=function(t,e){t.dom.appendChild(e.dom)},ue=function(t,e){C(e,(function(e){ie(t,e)}))},se=function(t,e){C(e,(function(e){ae(t,e)}))},ce=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},le=function(t,e){return Bt.fromDom(t.dom.cloneNode(e))},fe=function(t){return le(t,!0)},de=function(t,e){var n=Bt.fromTag(e),r=Qt(t);return Jt(n,r),n},he=function(t,e){var n=de(t,e);ie(t,n);var r=ee(t);return se(n,r),ce(t),n},pe=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),me=tinymce.util.Tools.resolve("tinymce.util.Tools"),ge=function(t){return function(e){return e&&e.nodeName.toLowerCase()===t}},ve=function(t){return function(e){return e&&t.test(e.nodeName)}},be=function(t){return t&&3===t.nodeType},ye=ve(/^(OL|UL|DL)$/),xe=ve(/^(OL|UL)$/),we=ge("ol"),Ce=ve(/^(LI|DT|DD)$/),Se=ve(/^(DT|DD)$/),ke=ve(/^(TH|TD)$/),Oe=ge("br"),_e=function(t){return t.parentNode.firstChild===t},Ae=function(t,e){return e&&!!t.schema.getTextBlockElements()[e.nodeName]},Ee=function(t,e){return t&&t.nodeName in e},Te=function(t,e){return!!Oe(e)&&(t.isBlock(e.nextSibling)&&!Oe(e.previousSibling))},De=function(t,e,n){var r=t.isEmpty(e);return!(n&&t.select("span[data-mce-type=bookmark]",e).length>0)&&r},Ie=function(t,e){return t.isChildOf(e,t.getRoot())},Be=function(t){return t.getParam("lists_indent_on_tab",!0)},Le=function(t){var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e},Ne=function(t){return t.getParam("forced_root_block_attrs",{})},Pe=function(t,e){var n,r,o,i=t.dom,a=t.schema.getBlockElements(),u=i.createFragment(),s=Le(t);if(s&&(r=i.create(s),r.tagName===s.toUpperCase()&&i.setAttribs(r,Ne(t)),Ee(e.firstChild,a)||u.appendChild(r)),e)while(n=e.firstChild){var c=n.nodeName;o||"SPAN"===c&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),Ee(n,a)?(u.appendChild(n),r=null):s?(r||(r=i.create(s),u.appendChild(r)),r.appendChild(n)):u.appendChild(n)}return s?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):u.appendChild(i.create("br")),u},Me=pe.DOM,je=function(t,e,n){var r=function(t){me.each(o,(function(e){t.parentNode.insertBefore(e,n.parentNode)})),Me.remove(t)},o=Me.select('span[data-mce-type="bookmark"]',e),i=Pe(t,n),a=Me.createRng();a.setStartAfter(n),a.setEndAfter(e);for(var u=a.extractContents(),s=u.firstChild;s;s=s.firstChild)if("LI"===s.nodeName&&t.dom.isEmpty(s)){Me.remove(s);break}t.dom.isEmpty(u)||Me.insertAfter(u,e),Me.insertAfter(i,e),De(t.dom,n.parentNode)&&r(n.parentNode),Me.remove(n),De(t.dom,e)&&Me.remove(e)},Re=function(t,e){Rt(e,"dd")?he(e,"dt"):Rt(e,"dt")&&te(e).each((function(n){return je(t,n.dom,e.dom)}))},$e=function(t){Rt(t,"dt")&&he(t,"dd")},Fe=function(t,e,n){C(n,"Indent"===e?$e:function(e){return Re(t,e)})},Ve=function(t,e){if(be(t))return{container:t,offset:e};var n=$t.getNode(t,e);return be(n)?{container:n,offset:e>=t.childNodes.length?n.data.length:0}:n.previousSibling&&be(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&be(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:t,offset:e}},He=function(t){var e=t.cloneRange(),n=Ve(t.startContainer,t.startOffset);e.setStart(n.container,n.offset);var r=Ve(t.endContainer,t.endOffset);return e.setEnd(r.container,r.offset),e},ze=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),Ue=function(t,e){var n=e||t.selection.getStart(!0);return t.dom.getParent(n,"OL,UL,DL",Ze(t,n))},We=function(t,e){return t&&1===e.length&&e[0]===t},qe=function(t){return me.grep(t.querySelectorAll("ol,ul,dl"),(function(t){return ye(t)}))},Ge=function(t){var e=Ue(t),n=t.selection.getSelectedBlocks();return We(e,n)?qe(e):me.grep(n,(function(t){return ye(t)&&e!==t}))},Ye=function(t,e){var n=me.map(e,(function(e){var n=t.dom.getParent(e,"li,dd,dt",Ze(t,e));return n||e}));return ze.unique(n)},Xe=function(t){var e=t.selection.getSelectedBlocks();return me.grep(Ye(t,e),(function(t){return Ce(t)}))},Ke=function(t){return S(Xe(t),Se)},Ze=function(t,e){var n=t.dom.getParents(e,"TD,TH"),r=n.length>0?n[0]:t.getBody();return r},Je=function(t,e){var n=t.dom.getParents(e,"ol,ul",Ze(t,e));return L(n)},Qe=function(t){var e=Je(t,t.selection.getStart()),n=S(t.selection.getSelectedBlocks(),xe);return e.toArray().concat(n)},tn=function(t){var e=Qe(t);return en(t,e)},en=function(t,e){var n=w(e,(function(e){return Je(t,e).getOr(e)}));return ze.unique(n)},nn=function(t,e,n){return t.isSome()&&e.isSome()?l.some(n(t.getOrDie(),e.getOrDie())):l.none()},rn=function(t,e){var n=e||document,r=n.createDocumentFragment();return C(t,(function(t){r.appendChild(t.dom)})),Bt.fromDom(r)},on=function(t,e,n){return t.fire("ListMutation",{action:e,element:n})},an=function(t){return void 0!==t.style&&v(t.style.getPropertyValue)},un=function(t,e,n){if(!p(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);an(t)&&t.style.setProperty(e,n)},sn=function(t,e,n){var r=t.dom;un(r,e,n)},cn=function(t,e){ae(t.item,e.list)},ln=function(t){for(var e=1;e<t.length;e++)cn(t[e-1],t[e])},fn=function(t,e){nn(L(t),B(e),cn)},dn=function(t,e){var n={list:Bt.fromTag(e,t),item:Bt.fromTag("li",t)};return ae(n.list,n.item),n},hn=function(t,e,n){for(var r=[],o=0;o<n;o++)r.push(dn(t,e.listType));return r},pn=function(t,e){for(var n=0;n<t.length-1;n++)sn(t[n].item,"list-style-type","none");L(t).each((function(t){Jt(t.list,e.listAttributes),Jt(t.item,e.itemAttributes),se(t.item,e.content)}))},mn=function(t,e){Gt(t.list)!==e.listType&&(t.list=he(t.list,e.listType)),Jt(t.list,e.listAttributes)},gn=function(t,e,n){var r=Bt.fromTag("li",t);return Jt(r,e),se(r,n),r},vn=function(t,e){ae(t.list,e),t.item=e},bn=function(t,e,n){var r=e.slice(0,n.depth);return L(r).each((function(e){var r=gn(t,n.itemAttributes,n.content);vn(e,r),mn(e,n)})),r},yn=function(t,e,n){var r=hn(t,n,n.depth-e.length);return ln(r),pn(r,n),fn(e,r),e.concat(r)},xn=function(t,e){var n=O(e,(function(e,n){return n.depth>e.length?yn(t,e,n):bn(t,e,n)}),[]);return B(n).map((function(t){return t.list}))},wn=function(t){return Rt(t,"OL,UL")},Cn=function(t){return re(t).map(wn).getOr(!1)},Sn=function(t){return oe(t).map(wn).getOr(!1)},kn=function(t){return t.depth>0},On=function(t){return t.isSelected},_n=function(t){var e=ee(t),n=Sn(t)?e.slice(0,-1):e;return w(n,fe)},An=function(t,e,n){return te(t).filter(Kt).map((function(r){return{depth:e,dirty:!1,isSelected:n,content:_n(t),itemAttributes:Qt(t),listAttributes:Qt(r),listType:Gt(r)}}))},En=function(t,e){switch(t){case"Indent":e.depth++;break;case"Outdent":e.depth--;break;case"Flatten":e.depth=0}e.dirty=!0},Tn=function(t,e){t.listType=e.listType,t.listAttributes=N({},e.listAttributes)},Dn=function(t){t.listAttributes=qt(t.listAttributes,(function(t,e){return"start"!==e}))},In=function(t,e){var n=t[e].depth,r=function(t){return t.depth===n&&!t.dirty},o=function(t){return t.depth<n};return _(D(t.slice(0,e)),r,o).orThunk((function(){return _(t.slice(e+1),r,o)}))},Bn=function(t){return C(t,(function(e,n){In(t,n).fold((function(){e.dirty&&Dn(e)}),(function(t){return Tn(e,t)}))})),t},Ln=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},Nn=function(t,e,n,r){return re(r).filter(wn).fold((function(){e.each((function(t){Nt(t.start,r)&&n.set(!0)}));var o=An(r,t,n.get());e.each((function(t){Nt(t.end,r)&&n.set(!1)}));var i=oe(r).filter(wn).map((function(r){return Pn(t,e,n,r)})).getOr([]);return o.toArray().concat(i)}),(function(r){return Pn(t,e,n,r)}))},Pn=function(t,e,n,r){return T(ee(r),(function(r){var o=wn(r)?Pn:Nn,i=t+1;return o(i,e,n,r)}))},Mn=function(t,e){var n=Ln(!1),r=0;return w(t,(function(t){return{sourceList:t,entries:Pn(r,e,n,t)}}))},jn=function(t,e){var n=Bn(e);return w(n,(function(e){var n=rn(e.content);return Bt.fromDom(Pe(t,n.dom))}))},Rn=function(t,e){var n=Bn(e);return xn(t.contentDocument,n).toArray()},$n=function(t,e){return T(k(e,kn),(function(e){var n=B(e).map(kn).getOr(!1);return n?Rn(t,e):jn(t,e)}))},Fn=function(t,e){C(S(t,On),(function(t){return En(e,t)}))},Vn=function(t){var e=w(Xe(t),Bt.fromDom);return nn(A(e,r(Cn)),A(D(e),r(Cn)),(function(t,e){return{start:t,end:e}}))},Hn=function(t,e,n){var r=Mn(e,Vn(t));C(r,(function(e){Fn(e.entries,n);var r=$n(t,e.entries);C(r,(function(e){on(t,"Indent"===n?"IndentList":"OutdentList",e.dom)})),ue(e.sourceList,r),ce(e.sourceList)}))},zn=function(t,e){var n=w(tn(t),Bt.fromDom),r=w(Ke(t),Bt.fromDom),o=!1;if(n.length||r.length){var i=t.selection.getBookmark();Hn(t,n,e),Fe(t,e,r),t.selection.moveToBookmark(i),t.selection.setRng(He(t.selection.getRng())),t.nodeChanged(),o=!0}return o},Un=function(t){return zn(t,"Indent")},Wn=function(t){return zn(t,"Outdent")},qn=function(t){return zn(t,"Flatten")},Gn=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),Yn=pe.DOM,Xn=function(t){var e={},n=function(n){var r,o,i;o=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"],1===o.nodeType&&(r=Yn.create("span",{"data-mce-type":"bookmark"}),o.hasChildNodes()?(i=Math.min(i,o.childNodes.length-1),n?o.insertBefore(r,o.childNodes[i]):Yn.insertAfter(r,o.childNodes[i])):o.appendChild(r),o=r,i=0),e[n?"startContainer":"endContainer"]=o,e[n?"startOffset":"endOffset"]=i};return n(!0),t.collapsed||n(),e},Kn=function(t){function e(e){var n,r,o,i=function(t){var e=t.parentNode.firstChild,n=0;while(e){if(e===t)return n;1===e.nodeType&&"bookmark"===e.getAttribute("data-mce-type")||n++,e=e.nextSibling}return-1};n=o=t[e?"startContainer":"endContainer"],r=t[e?"startOffset":"endOffset"],n&&(1===n.nodeType&&(r=i(n),n=n.parentNode,Yn.remove(o),!n.hasChildNodes()&&Yn.isBlock(n)&&n.appendChild(Yn.create("br"))),t[e?"startContainer":"endContainer"]=n,t[e?"startOffset":"endOffset"]=r)}e(!0),e();var n=Yn.createRng();return n.setStart(t.startContainer,t.startOffset),t.endContainer&&n.setEnd(t.endContainer,t.endOffset),He(n)},Zn=function(t){switch(t){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},Jn=function(t){return/\btox\-/.test(t.className)},Qn=function(t,e,n){var r=function(t){var r=_(t.parents,ye,ke).filter((function(t){return t.nodeName===e&&!Jn(t)})).isSome();n(r)},o=t.dom.getParents(t.selection.getNode());return r({parents:o}),t.on("NodeChange",r),function(){return t.off("NodeChange",r)}},tr=function(t,e,n){var r=n["list-style-type"]?n["list-style-type"]:null;t.setStyle(e,"list-style-type",r)},er=function(t,e){me.each(e,(function(e,n){t.setAttribute(n,e)}))},nr=function(t,e,n){er(e,n["list-attributes"]),me.each(t.select("li",e),(function(t){er(t,n["list-item-attributes"])}))},rr=function(t,e,n){tr(t,e,n),nr(t,e,n)},or=function(t,e,n){me.each(n,(function(n){var r;return t.setStyle(e,(r={},r[n]="",r))}))},ir=function(t,e,n,r){var o=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!n&&Oe(o.nextSibling)&&(o=o.nextSibling);while(o.parentNode!==r){if(Ae(t,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},ar=function(t,e,n){for(var r,o=[],i=t.dom,a=ir(t,e,!0,n),u=ir(t,e,!1,n),s=[],c=a;c;c=c.nextSibling)if(s.push(c),c===u)break;return me.each(s,(function(e){if(Ae(t,e))return o.push(e),void(r=null);if(i.isBlock(e)||Oe(e))return Oe(e)&&i.remove(e),void(r=null);var a=e.nextSibling;Gn.isBookmarkNode(e)&&(Ae(t,a)||!a&&e.parentNode===n)?r=null:(r||(r=i.create("p"),e.parentNode.insertBefore(r,e),o.push(r)),r.appendChild(e))})),o},ur=function(t,e,n){var r=t.getStyle(e,"list-style-type"),o=n?n["list-style-type"]:"";return o=null===o?"":o,r===o},sr=function(t,e,n){void 0===n&&(n={});var r=t.selection.getRng(),o="LI",i=Ze(t,t.selection.getStart(!0)),a=t.dom;if("false"!==a.getContentEditable(t.selection.getNode())){e=e.toUpperCase(),"DL"===e&&(o="DT");var u=Xn(r);me.each(ar(t,r,i),(function(r){var i,u=r.previousSibling;u&&ye(u)&&u.nodeName===e&&ur(a,u,n)?(i=u,r=a.rename(r,o),u.appendChild(r)):(i=a.create(e),r.parentNode.insertBefore(i,r),i.appendChild(r),r=a.rename(r,o)),or(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),rr(a,i,n),hr(t.dom,i)})),t.selection.setRng(Kn(u))}},cr=function(t,e){return t&&e&&ye(t)&&t.nodeName===e.nodeName},lr=function(t,e,n){var r=t.getStyle(e,"list-style-type",!0),o=t.getStyle(n,"list-style-type",!0);return r===o},fr=function(t,e){return t.className===e.className},dr=function(t,e,n){return cr(e,n)&&lr(t,e,n)&&fr(e,n)},hr=function(t,e){var n,r;if(n=e.nextSibling,dr(t,e,n)){while(r=n.firstChild)e.appendChild(r);t.remove(n)}if(n=e.previousSibling,dr(t,e,n)){while(r=n.lastChild)e.insertBefore(r,e.firstChild);t.remove(n)}},pr=function(t,e,n,r){if(e.nodeName!==n){var o=t.dom.rename(e,n);rr(t.dom,o,r),on(t,Zn(n),o)}else rr(t.dom,e,r),on(t,Zn(n),e)},mr=function(t,e,n,r,o){if(e.nodeName!==r||gr(o)){var i=Xn(t.selection.getRng(!0));me.each([e].concat(n),(function(e){pr(t,e,r,o)})),t.selection.setRng(Kn(i))}else qn(t)},gr=function(t){return"list-style-type"in t},vr=function(t,e,n,r){if(e!==t.getBody())if(e)if(e.nodeName!==n||gr(r)||Jn(e)){var o=Xn(t.selection.getRng(!0));rr(t.dom,e,r);var i=t.dom.rename(e,n);hr(t.dom,i),t.selection.setRng(Kn(o)),on(t,Zn(n),i)}else qn(t);else sr(t,n,r),on(t,Zn(n),e)},br=function(t,e,n){var r=Ue(t),o=Ge(t);n=n||{},r&&o.length>0?mr(t,r,o,e,n):vr(t,r,e,n)},yr=pe.DOM,xr=function(t,e){var n,r=e.parentNode;"LI"===r.nodeName&&r.firstChild===e&&(n=r.previousSibling,n&&"LI"===n.nodeName?(n.appendChild(e),De(t,r)&&yr.remove(r)):yr.setStyle(r,"listStyleType","none")),ye(r)&&(n=r.previousSibling,n&&"LI"===n.nodeName&&n.appendChild(e))},wr=function(t,e){me.each(me.grep(t.select("ol,ul",e)),(function(e){xr(t,e)}))},Cr=function(t,e,n,r){var o=e.startContainer,i=e.startOffset;if(be(o)&&(n?i<o.data.length:i>0))return o;var a=t.schema.getNonEmptyElements();1===o.nodeType&&(o=$t.getNode(o,i));var u=new Ft(o,r);n&&Te(t.dom,o)&&u.next();while(o=u[n?"next":"prev2"]()){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(a[o.nodeName])return o;if(be(o)&&o.data.length>0)return o}},Sr=function(t,e){var n=e.childNodes;return 1===n.length&&!ye(n[0])&&t.isBlock(n[0])},kr=function(t,e){Sr(t,e)&&t.remove(e.firstChild,!0)},Or=function(t,e,n){var r,o=Sr(t,n)?n.firstChild:n;if(kr(t,e),!De(t,e,!0))while(r=e.firstChild)o.appendChild(r)},_r=function(t,e,n){var r,o=e.parentNode;if(Ie(t,e)&&Ie(t,n)){ye(n.lastChild)&&(r=n.lastChild),o===n.lastChild&&Oe(o.previousSibling)&&t.remove(o.previousSibling);var i=n.lastChild;i&&Oe(i)&&e.hasChildNodes()&&t.remove(i),De(t,n,!0)&&t.$(n).empty(),Or(t,e,n),r&&n.appendChild(r);var a=jt(Bt.fromDom(n),Bt.fromDom(e)),u=a?t.getParents(e,ye,n):[];t.remove(e),C(u,(function(e){De(t,e)&&e!==t.getRoot()&&t.remove(e)}))}},Ar=function(t,e,n){t.dom.$(n).empty(),_r(t.dom,e,n),t.selection.setCursorLocation(n)},Er=function(t,e,n,r){var o=t.dom;if(o.isEmpty(r))Ar(t,n,r);else{var i=Xn(e);_r(o,n,r),t.selection.setRng(Kn(i))}},Tr=function(t,e,n,r){var o=Xn(e);_r(t.dom,n,r);var i=Kn(o);t.selection.setRng(i)},Dr=function(t,e){var n=t.dom,r=t.selection,o=r.getStart(),i=Ze(t,o),a=n.getParent(r.getStart(),"LI",i);if(a){var u=a.parentNode;if(u===t.getBody()&&De(n,u))return!0;var s=He(r.getRng()),c=n.getParent(Cr(t,s,e,i),"LI",i);if(c&&c!==a)return t.undoManager.transact((function(){e?Er(t,s,c,a):_e(a)?Wn(t):Tr(t,s,a,c)})),!0;if(!c&&!e&&0===s.startOffset&&0===s.endOffset)return t.undoManager.transact((function(){qn(t)})),!0}return!1},Ir=function(t,e,n){var r=t.getParent(e.parentNode,t.isBlock,n);t.remove(e),r&&t.isEmpty(r)&&t.remove(r)},Br=function(t,e){var n=t.dom,r=t.selection.getStart(),o=Ze(t,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var a=He(t.selection.getRng()),u=n.getParent(Cr(t,a,e,o),"LI",o);if(u)return t.undoManager.transact((function(){Ir(n,i,o),hr(n,u.parentNode),t.selection.select(u,!0),t.selection.collapse(e)})),!0}return!1},Lr=function(t,e){return Dr(t,e)||Br(t,e)},Nr=function(t){var e=t.selection.getStart(),n=Ze(t,e),r=t.dom.getParent(e,"LI,DT,DD",n);return!!(r||Xe(t).length>0)&&(t.undoManager.transact((function(){t.execCommand("Delete"),wr(t.dom,t.getBody())})),!0)},Pr=function(t,e){return t.selection.isCollapsed()?Lr(t,e):Nr(t)},Mr=function(t){t.on("keydown",(function(e){e.keyCode===Vt.BACKSPACE?Pr(t,!1)&&e.preventDefault():e.keyCode===Vt.DELETE&&Pr(t,!0)&&e.preventDefault()}))},jr=function(t){return{backspaceDelete:function(e){Pr(t,e)}}},Rr=function(t){var e=t.dom,n=Ue(t);we(n)&&t.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:e.getAttrib(n,"start")||"1"},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(n){var r=n.getData();t.undoManager.transact((function(){e.setAttrib(Ue(t),"start","1"===r.start?"":r.start)})),n.close()}})},$r=function(t,e){return function(){var n=t.dom.getParent(t.selection.getStart(),"UL,OL,DL");return n&&n.nodeName===e}},Fr=function(t){t.on("BeforeExecCommand",(function(e){var n=e.command.toLowerCase();"indent"===n?Un(t):"outdent"===n&&Wn(t)})),t.addCommand("InsertUnorderedList",(function(e,n){br(t,"UL",n)})),t.addCommand("InsertOrderedList",(function(e,n){br(t,"OL",n)})),t.addCommand("InsertDefinitionList",(function(e,n){br(t,"DL",n)})),t.addCommand("RemoveList",(function(){qn(t)})),t.addCommand("mceListProps",(function(){Rr(t)})),t.addQueryStateHandler("InsertUnorderedList",$r(t,"UL")),t.addQueryStateHandler("InsertOrderedList",$r(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",$r(t,"DL"))},Vr=function(t){t.on("keydown",(function(e){e.keyCode!==Vt.TAB||Vt.metaKeyPressed(e)||t.undoManager.transact((function(){(e.shiftKey?Wn(t):Un(t))&&e.preventDefault()}))}))},Hr=function(t){Be(t)&&Vr(t),Mr(t)},zr=function(t){var e=function(e){return function(){return t.execCommand(e)}};t.hasPlugin("advlist")||(t.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:e("InsertOrderedList"),onSetup:function(e){return Qn(t,"OL",e.setActive)}}),t.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:e("InsertUnorderedList"),onSetup:function(e){return Qn(t,"UL",e.setActive)}}))},Ur=function(t){var e={text:"List properties...",icon:"ordered-list",onAction:function(){return Rr(t)},onSetup:function(e){return Qn(t,"OL",(function(t){return e.setDisabled(!t)}))}};t.ui.registry.addMenuItem("listprops",e),t.ui.registry.addContextMenu("lists",{update:function(e){var n=Ue(t,e);return we(n)?["listprops"]:[]}})};function Wr(){t.add("lists",(function(t){return!1===t.hasPlugin("rtc",!0)&&(Hr(t),Fr(t)),zr(t),Ur(t),jr(t)}))}Wr()})()},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),o=n("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function u(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}var s={adapter:u(),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){s.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){s.headers[t]=r.merge(i)})),t.exports=s}).call(this,n("4362"))},"24b2":function(t,e,n){"use strict";n("a9e3");var r=n("80d2"),o=n("2b0e");e["a"]=o["a"].extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles:function(){var t={},e=Object(r["g"])(this.height),n=Object(r["g"])(this.minHeight),o=Object(r["g"])(this.minWidth),i=Object(r["g"])(this.maxHeight),a=Object(r["g"])(this.maxWidth),u=Object(r["g"])(this.width);return e&&(t.height=e),n&&(t.minHeight=n),o&&(t.minWidth=o),i&&(t.maxHeight=i),a&&(t.maxWidth=a),u&&(t.width=u),t}}})},"24e2":function(t,e,n){"use strict";var r=n("e0c7");e["a"]=r["a"]},2532:function(t,e,n){"use strict";var r=n("23e7"),o=n("5a34"),i=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(t,e,n){"use strict";var r=n("ebb5"),o=n("d58f").right,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25a8":function(t,e,n){},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),a=n("ad6d"),u="toString",s=RegExp.prototype,c=s[u],l=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=u;(l||f)&&r(RegExp.prototype,u,(function(){var t=o(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in s)?a.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),o=n("9bf2"),i=n("b622"),a=n("83ab"),u=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[u]&&n(e,u,{configurable:!0,get:function(){return this}})}},"262e":function(t,e,n){"use strict";function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",(function(){return o}))},2677:function(t,e,n){"use strict";var r=n("8654");e["a"]=r["a"]},2877:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){var s,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):o&&(s=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(t,e){return s.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},2909:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("6b75");function o(t){if(Array.isArray(t))return Object(r["a"])(t)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function i(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}var a=n("06c5");function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t){return o(t)||i(t)||Object(a["a"])(t)||u()}},2954:function(t,e,n){"use strict";var r=n("ebb5"),o=n("4840"),i=n("d039"),a=r.aTypedArray,u=r.aTypedArrayConstructor,s=r.exportTypedArrayMethod,c=[].slice,l=i((function(){new Int8Array(1).slice()}));s("slice",(function(t,e){var n=c.call(a(this),t,e),r=o(this,this.constructor),i=0,s=n.length,l=new(u(r))(s);while(s>i)l[i]=n[i++];return l}),l)},"297c":function(t,e,n){"use strict";n("a9e3");var r=n("2b0e"),o=n("37c6");e["a"]=r["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(o["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"2a62":function(t,e,n){var r=n("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}},"2a7f":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i}));var r=n("71d9"),o=n("80d2"),i=Object(o["i"])("v-toolbar__title"),a=Object(o["i"])("v-toolbar__items");r["a"]},"2af1":function(t,e,n){var r=n("23e7"),o=n("f748");r({target:"Math",stat:!0},{sign:o})},"2b0e":function(t,e,n){"use strict";(function(t){ 2 /*! 3 * Vue.js v2.6.12 4 * (c) 2014-2020 Evan You 5 * Released under the MIT License. 6 */ 7 var n=Object.freeze({});function r(t){return void 0===t||null===t}function o(t){return void 0!==t&&null!==t}function i(t){return!0===t}function a(t){return!1===t}function u(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function s(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function l(t){return"[object Object]"===c.call(t)}function f(t){return"[object RegExp]"===c.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return o(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function b(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function x(t,e){return y.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var C=/-(\w)/g,S=w((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),k=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),O=/\B([A-Z])/g,_=w((function(t){return t.replace(O,"-$1").toLowerCase()}));function A(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function E(t,e){return t.bind(e)}var T=Function.prototype.bind?E:A;function D(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function I(t,e){for(var n in e)t[n]=e[n];return t}function B(t){for(var e={},n=0;n<t.length;n++)t[n]&&I(e,t[n]);return e}function L(t,e,n){}var N=function(t,e,n){return!1},P=function(t){return t};function M(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var o=Array.isArray(t),i=Array.isArray(e);if(o&&i)return t.length===e.length&&t.every((function(t,n){return M(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(o||i)return!1;var a=Object.keys(t),u=Object.keys(e);return a.length===u.length&&a.every((function(n){return M(t[n],e[n])}))}catch(c){return!1}}function j(t,e){for(var n=0;n<t.length;n++)if(M(t[n],e))return n;return-1}function R(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var $="data-server-rendered",F=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:N,isReservedAttr:N,isUnknownElement:N,getTagNamespace:L,parsePlatformTagName:P,mustUseProp:N,async:!0,_lifecycleHooks:V},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function W(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var q=new RegExp("[^"+z.source+".$_\\d]");function G(t){if(!q.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,X="__proto__"in{},K="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Z&&WXEnvironment.platform.toLowerCase(),Q=K&&window.navigator.userAgent.toLowerCase(),tt=Q&&/msie|trident/.test(Q),et=Q&&Q.indexOf("msie 9.0")>0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),ot=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),it={}.watch,at=!1;if(K)try{var ut={};Object.defineProperty(ut,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,ut)}catch(Sa){}var st=function(){return void 0===Y&&(Y=!K&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ct=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"===typeof t&&/native code/.test(t.toString())}var ft,dt="undefined"!==typeof Symbol&<(Symbol)&&"undefined"!==typeof Reflect&<(Reflect.ownKeys);ft="undefined"!==typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=L,pt=0,mt=function(){this.id=pt++,this.subs=[]};mt.prototype.addSub=function(t){this.subs.push(t)},mt.prototype.removeSub=function(t){b(this.subs,t)},mt.prototype.depend=function(){mt.target&&mt.target.addDep(this)},mt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},mt.target=null;var gt=[];function vt(t){gt.push(t),mt.target=t}function bt(){gt.pop(),mt.target=gt[gt.length-1]}var yt=function(t,e,n,r,o,i,a,u){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.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,this.asyncFactory=u,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},xt={child:{configurable:!0}};xt.child.get=function(){return this.componentInstance},Object.defineProperties(yt.prototype,xt);var wt=function(t){void 0===t&&(t="");var e=new yt;return e.text=t,e.isComment=!0,e};function Ct(t){return new yt(void 0,void 0,void 0,String(t))}function St(t){var e=new yt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var kt=Array.prototype,Ot=Object.create(kt),_t=["push","pop","shift","unshift","splice","sort","reverse"];_t.forEach((function(t){var e=kt[t];W(Ot,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var o,i=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2);break}return o&&a.observeArray(o),a.dep.notify(),i}))}));var At=Object.getOwnPropertyNames(Ot),Et=!0;function Tt(t){Et=t}var Dt=function(t){this.value=t,this.dep=new mt,this.vmCount=0,W(t,"__ob__",this),Array.isArray(t)?(X?It(t,Ot):Bt(t,Ot,At),this.observeArray(t)):this.walk(t)};function It(t,e){t.__proto__=e}function Bt(t,e,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];W(t,i,e[i])}}function Lt(t,e){var n;if(s(t)&&!(t instanceof yt))return x(t,"__ob__")&&t.__ob__ instanceof Dt?n=t.__ob__:Et&&!st()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Dt(t)),e&&n&&n.vmCount++,n}function Nt(t,e,n,r,o){var i=new mt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var u=a&&a.get,s=a&&a.set;u&&!s||2!==arguments.length||(n=t[e]);var c=!o&&Lt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):n;return mt.target&&(i.depend(),c&&(c.dep.depend(),Array.isArray(e)&&jt(e))),e},set:function(e){var r=u?u.call(t):n;e===r||e!==e&&r!==r||u&&!s||(s?s.call(t,e):n=e,c=!o&&Lt(e),i.notify())}})}}function Pt(t,e,n){if(Array.isArray(t)&&d(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Nt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Mt(t,e){if(Array.isArray(t)&&d(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||x(t,e)&&(delete t[e],n&&n.dep.notify())}}function jt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&jt(e)}Dt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Nt(t,e[n])},Dt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Lt(t[e])};var Rt=H.optionMergeStrategies;function $t(t,e){if(!e)return t;for(var n,r,o,i=dt?Reflect.ownKeys(e):Object.keys(e),a=0;a<i.length;a++)n=i[a],"__ob__"!==n&&(r=t[n],o=e[n],x(t,n)?r!==o&&l(r)&&l(o)&&$t(r,o):Pt(t,n,o));return t}function Ft(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,o="function"===typeof t?t.call(n,n):t;return r?$t(r,o):o}:e?t?function(){return $t("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Vt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?Ht(n):n}function Ht(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function zt(t,e,n,r){var o=Object.create(t||null);return e?I(o,e):o}Rt.data=function(t,e,n){return n?Ft(t,e,n):e&&"function"!==typeof e?t:Ft(t,e)},V.forEach((function(t){Rt[t]=Vt})),F.forEach((function(t){Rt[t+"s"]=zt})),Rt.watch=function(t,e,n,r){if(t===it&&(t=void 0),e===it&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};for(var i in I(o,t),e){var a=o[i],u=e[i];a&&!Array.isArray(a)&&(a=[a]),o[i]=a?a.concat(u):Array.isArray(u)?u:[u]}return o},Rt.props=Rt.methods=Rt.inject=Rt.computed=function(t,e,n,r){if(!t)return e;var o=Object.create(null);return I(o,t),e&&I(o,e),o},Rt.provide=Ft;var Ut=function(t,e){return void 0===e?t:e};function Wt(t,e){var n=t.props;if(n){var r,o,i,a={};if(Array.isArray(n)){r=n.length;while(r--)o=n[r],"string"===typeof o&&(i=S(o),a[i]={type:null})}else if(l(n))for(var u in n)o=n[u],i=S(u),a[i]=l(o)?o:{type:o};else 0;t.props=a}}function qt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(l(n))for(var i in n){var a=n[i];r[i]=l(a)?I({from:i},a):{from:a}}else 0}}function Gt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Yt(t,e,n){if("function"===typeof e&&(e=e.options),Wt(e,n),qt(e,n),Gt(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,n)),e.mixins))for(var r=0,o=e.mixins.length;r<o;r++)t=Yt(t,e.mixins[r],n);var i,a={};for(i in t)u(i);for(i in e)x(t,i)||u(i);function u(r){var o=Rt[r]||Ut;a[r]=o(t[r],e[r],n,r)}return a}function Xt(t,e,n,r){if("string"===typeof n){var o=t[e];if(x(o,n))return o[n];var i=S(n);if(x(o,i))return o[i];var a=k(i);if(x(o,a))return o[a];var u=o[n]||o[i]||o[a];return u}}function Kt(t,e,n,r){var o=e[t],i=!x(n,t),a=n[t],u=te(Boolean,o.type);if(u>-1)if(i&&!x(o,"default"))a=!1;else if(""===a||a===_(t)){var s=te(String,o.type);(s<0||u<s)&&(a=!0)}if(void 0===a){a=Zt(r,o,t);var c=Et;Tt(!0),Lt(a),Tt(c)}return a}function Zt(t,e,n){if(x(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Jt(e.type)?r.call(t):r}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Qt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Qt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Qt(e[n],t))return n;return-1}function ee(t,e,n){vt();try{if(e){var r=e;while(r=r.$parent){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{var a=!1===o[i].call(r,t,e,n);if(a)return}catch(Sa){re(Sa,r,"errorCaptured hook")}}}re(t,e,n)}finally{bt()}}function ne(t,e,n,r,o){var i;try{i=n?t.apply(e,n):t.call(e),i&&!i._isVue&&h(i)&&!i._handled&&(i.catch((function(t){return ee(t,r,o+" (Promise/async)")})),i._handled=!0)}catch(Sa){ee(Sa,r,o)}return i}function re(t,e,n){if(H.errorHandler)try{return H.errorHandler.call(null,t,e,n)}catch(Sa){Sa!==t&&oe(Sa,null,"config.errorHandler")}oe(t,e,n)}function oe(t,e,n){if(!K&&!Z||"undefined"===typeof console)throw t;console.error(t)}var ie,ae=!1,ue=[],se=!1;function ce(){se=!1;var t=ue.slice(0);ue.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&<(Promise)){var le=Promise.resolve();ie=function(){le.then(ce),rt&&setTimeout(L)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!lt(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ie="undefined"!==typeof setImmediate&<(setImmediate)?function(){setImmediate(ce)}:function(){setTimeout(ce,0)};else{var fe=1,de=new MutationObserver(ce),he=document.createTextNode(String(fe));de.observe(he,{characterData:!0}),ie=function(){fe=(fe+1)%2,he.data=String(fe)},ae=!0}function pe(t,e){var n;if(ue.push((function(){if(t)try{t.call(e)}catch(Sa){ee(Sa,e,"nextTick")}else n&&n(e)})),se||(se=!0,ie()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var me=new ft;function ge(t){ve(t,me),me.clear()}function ve(t,e){var n,r,o=Array.isArray(t);if(!(!o&&!s(t)||Object.isFrozen(t)||t instanceof yt)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(o){n=t.length;while(n--)ve(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)ve(t[r[n]],e)}}}var be=w((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function ye(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var o=r.slice(),i=0;i<o.length;i++)ne(o[i],null,t,e,"v-on handler")}return n.fns=t,n}function xe(t,e,n,o,a,u){var s,c,l,f;for(s in t)c=t[s],l=e[s],f=be(s),r(c)||(r(l)?(r(c.fns)&&(c=t[s]=ye(c,u)),i(f.once)&&(c=t[s]=a(f.name,c,f.capture)),n(f.name,c,f.capture,f.passive,f.params)):c!==l&&(l.fns=c,t[s]=l));for(s in e)r(t[s])&&(f=be(s),o(f.name,e[s],f.capture))}function we(t,e,n){var a;t instanceof yt&&(t=t.data.hook||(t.data.hook={}));var u=t[e];function s(){n.apply(this,arguments),b(a.fns,s)}r(u)?a=ye([s]):o(u.fns)&&i(u.merged)?(a=u,a.fns.push(s)):a=ye([u,s]),a.merged=!0,t[e]=a}function Ce(t,e,n){var i=e.options.props;if(!r(i)){var a={},u=t.attrs,s=t.props;if(o(u)||o(s))for(var c in i){var l=_(c);Se(a,s,c,l,!0)||Se(a,u,c,l,!1)}return a}}function Se(t,e,n,r,i){if(o(e)){if(x(e,n))return t[n]=e[n],i||delete e[n],!0;if(x(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function ke(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Oe(t){return u(t)?[Ct(t)]:Array.isArray(t)?Ae(t):void 0}function _e(t){return o(t)&&o(t.text)&&a(t.isComment)}function Ae(t,e){var n,a,s,c,l=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(s=l.length-1,c=l[s],Array.isArray(a)?a.length>0&&(a=Ae(a,(e||"")+"_"+n),_e(a[0])&&_e(c)&&(l[s]=Ct(c.text+a[0].text),a.shift()),l.push.apply(l,a)):u(a)?_e(c)?l[s]=Ct(c.text+a):""!==a&&l.push(Ct(a)):_e(a)&&_e(c)?l[s]=Ct(c.text+a.text):(i(t._isVList)&&o(a.tag)&&r(a.key)&&o(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function Ee(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=De(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Nt(t,n,e[n])})),Tt(!0))}function De(t,e){if(t){for(var n=Object.create(null),r=dt?Reflect.ownKeys(t):Object.keys(t),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){var a=t[i].from,u=e;while(u){if(u._provided&&x(u._provided,a)){n[i]=u._provided[a];break}u=u.$parent}if(!u)if("default"in t[i]){var s=t[i].default;n[i]="function"===typeof s?s.call(e):s}else 0}}return n}}function Ie(t,e){if(!t||!t.length)return{};for(var n={},r=0,o=t.length;r<o;r++){var i=t[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==e&&i.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(i);else{var u=a.slot,s=n[u]||(n[u]=[]);"template"===i.tag?s.push.apply(s,i.children||[]):s.push(i)}}for(var c in n)n[c].every(Be)&&delete n[c];return n}function Be(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Le(t,e,r){var o,i=Object.keys(e).length>0,a=t?!!t.$stable:!i,u=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&u===r.$key&&!i&&!r.$hasNormal)return r;for(var s in o={},t)t[s]&&"$"!==s[0]&&(o[s]=Ne(e,s,t[s]))}else o={};for(var c in e)c in o||(o[c]=Pe(e,c));return t&&Object.isExtensible(t)&&(t._normalized=o),W(o,"$stable",a),W(o,"$key",u),W(o,"$hasNormal",i),o}function Ne(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Oe(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Pe(t,e){return function(){return t[e]}}function Me(t,e){var n,r,i,a,u;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(s(t))if(dt&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),l=c.next();while(!l.done)n.push(e(l.value,n.length)),l=c.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,i=a.length;r<i;r++)u=a[r],n[r]=e(t[u],u,r);return o(n)||(n=[]),n._isVList=!0,n}function je(t,e,n,r){var o,i=this.$scopedSlots[t];i?(n=n||{},r&&(n=I(I({},r),n)),o=i(n)||e):o=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},o):o}function Re(t){return Xt(this.$options,"filters",t,!0)||P}function $e(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Fe(t,e,n,r,o){var i=H.keyCodes[e]||n;return o&&r&&!H.keyCodes[e]?$e(o,r):i?$e(i,t):r?_(r)!==e:void 0}function Ve(t,e,n,r,o){if(n)if(s(n)){var i;Array.isArray(n)&&(n=B(n));var a=function(a){if("class"===a||"style"===a||v(a))i=t;else{var u=t.attrs&&t.attrs.type;i=r||H.mustUseProp(e,u,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var s=S(a),c=_(a);if(!(s in i)&&!(c in i)&&(i[a]=n[a],o)){var l=t.on||(t.on={});l["update:"+a]=function(t){n[a]=t}}};for(var u in n)a(u)}else;return t}function He(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Ue(r,"__static__"+t,!1)),r}function ze(t,e,n){return Ue(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ue(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&We(t[r],e+"_"+r,n);else We(t,e,n)}function We(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function qe(t,e){if(e)if(l(e)){var n=t.on=t.on?I({},t.on):{};for(var r in e){var o=n[r],i=e[r];n[r]=o?[].concat(o,i):i}}else;return t}function Ge(t,e,n,r){e=e||{$stable:!n};for(var o=0;o<t.length;o++){var i=t[o];Array.isArray(i)?Ge(i,e,n):i&&(i.proxy&&(i.fn.proxy=!0),e[i.key]=i.fn)}return r&&(e.$key=r),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Xe(t,e){return"string"===typeof t?e+t:t}function Ke(t){t._o=ze,t._n=m,t._s=p,t._l=Me,t._t=je,t._q=M,t._i=j,t._m=He,t._f=Re,t._k=Fe,t._b=Ve,t._v=Ct,t._e=wt,t._u=Ge,t._g=qe,t._d=Ye,t._p=Xe}function Ze(t,e,r,o,a){var u,s=this,c=a.options;x(o,"_uid")?(u=Object.create(o),u._original=o):(u=o,o=o._original);var l=i(c._compiled),f=!l;this.data=t,this.props=e,this.children=r,this.parent=o,this.listeners=t.on||n,this.injections=De(c.inject,o),this.slots=function(){return s.$slots||Le(t.scopedSlots,s.$slots=Ie(r,o)),s.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Le(t.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Le(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,r){var i=fn(u,t,e,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=c._scopeId,i.fnContext=o),i}:this._c=function(t,e,n,r){return fn(u,t,e,n,r,f)}}function Je(t,e,r,i,a){var u=t.options,s={},c=u.props;if(o(c))for(var l in c)s[l]=Kt(l,c,e||n);else o(r.attrs)&&tn(s,r.attrs),o(r.props)&&tn(s,r.props);var f=new Ze(r,s,a,i,t),d=u.render.call(null,f._c,f);if(d instanceof yt)return Qe(d,r,f.parent,u,f);if(Array.isArray(d)){for(var h=Oe(d)||[],p=new Array(h.length),m=0;m<h.length;m++)p[m]=Qe(h[m],r,f.parent,u,f);return p}}function Qe(t,e,n,r,o){var i=St(t);return i.fnContext=n,i.fnOptions=r,e.slot&&((i.data||(i.data={})).slot=e.slot),i}function tn(t,e){for(var n in e)t[S(n)]=e[n]}Ke(Ze.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,Dn);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;Pn(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,$n(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):jn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Rn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,a,u){if(!r(t)){var c=n.$options._base;if(s(t)&&(t=c.extend(t)),"function"===typeof t){var l;if(r(t.cid)&&(l=t,t=wn(l,c),void 0===t))return xn(l,e,n,a,u);e=e||{},wr(t),o(e.model)&&sn(t.options,e);var f=Ce(e,t,u);if(i(t.options.functional))return Je(t,f,e,n,a);var d=e.on;if(e.on=e.nativeOn,i(t.options.abstract)){var h=e.slot;e={},h&&(e.slot=h)}an(e);var p=t.options.name||u,m=new yt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:d,tag:u,children:a},l);return m}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function an(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],o=e[r],i=en[r];o===i||o&&o._merged||(e[r]=o?un(i,o):i)}}function un(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function sn(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),a=i[r],u=e.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(u):a!==u)&&(i[r]=[u].concat(a)):i[r]=u}var cn=1,ln=2;function fn(t,e,n,r,o,a){return(Array.isArray(n)||u(n))&&(o=r,r=n,n=void 0),i(a)&&(o=ln),dn(t,e,n,r,o)}function dn(t,e,n,r,i){if(o(n)&&o(n.__ob__))return wt();if(o(n)&&o(n.is)&&(e=n.is),!e)return wt();var a,u,s;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===ln?r=Oe(r):i===cn&&(r=ke(r)),"string"===typeof e)?(u=t.$vnode&&t.$vnode.ns||H.getTagNamespace(e),a=H.isReservedTag(e)?new yt(H.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!o(s=Xt(t.$options,"components",e))?new yt(e,n,r,void 0,void 0,t):rn(s,n,t,r,e)):a=rn(e,n,t,r);return Array.isArray(a)?a:o(a)?(o(u)&&hn(a,u),o(n)&&pn(n),a):wt()}function hn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),o(t.children))for(var a=0,u=t.children.length;a<u;a++){var s=t.children[a];o(s.tag)&&(r(s.ns)||i(n)&&"svg"!==s.tag)&&hn(s,e,n)}}function pn(t){s(t.style)&&ge(t.style),s(t.class)&&ge(t.class)}function mn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,o=r&&r.context;t.$slots=Ie(e._renderChildren,o),t.$scopedSlots=n,t._c=function(e,n,r,o){return fn(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return fn(t,e,n,r,o,!0)};var i=r&&r.data;Nt(t,"$attrs",i&&i.attrs||n,null,!0),Nt(t,"$listeners",e._parentListeners||n,null,!0)}var gn,vn=null;function bn(t){Ke(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,o=n._parentVnode;o&&(e.$scopedSlots=Le(o.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=o;try{vn=e,t=r.call(e._renderProxy,e.$createElement)}catch(Sa){ee(Sa,e,"render"),t=e._vnode}finally{vn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof yt||(t=wt()),t.parent=o,t}}function yn(t,e){return(t.__esModule||dt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),s(t)?e.extend(t):t}function xn(t,e,n,r,o){var i=wt();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}function wn(t,e){if(i(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=vn;if(n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),i(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var a=t.owners=[n],u=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return b(a,n)}));var f=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},d=R((function(n){t.resolved=yn(n,e),u?a.length=0:f(!0)})),p=R((function(e){o(t.errorComp)&&(t.error=!0,f(!0))})),m=t(d,p);return s(m)&&(h(m)?r(t.resolved)&&m.then(d,p):h(m.component)&&(m.component.then(d,p),o(m.error)&&(t.errorComp=yn(m.error,e)),o(m.loading)&&(t.loadingComp=yn(m.loading,e),0===m.delay?t.loading=!0:c=setTimeout((function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,f(!1))}),m.delay||200)),o(m.timeout)&&(l=setTimeout((function(){l=null,r(t.resolved)&&p(null)}),m.timeout)))),u=!1,t.loading?t.loadingComp:t.resolved}}function Cn(t){return t.isComment&&t.asyncFactory}function Sn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||Cn(n)))return n}}function kn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&En(t,e)}function On(t,e){gn.$on(t,e)}function _n(t,e){gn.$off(t,e)}function An(t,e){var n=gn;return function r(){var o=e.apply(null,arguments);null!==o&&n.$off(t,r)}}function En(t,e,n){gn=t,xe(e,n||{},On,_n,An,t),gn=void 0}function Tn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var o=0,i=t.length;o<i;o++)r.$on(t[o],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,o=t.length;r<o;r++)n.$off(t[r],e);return n}var i,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var u=a.length;while(u--)if(i=a[u],i===e||i.fn===e){a.splice(u,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?D(n):n;for(var r=D(arguments,1),o='event handler for "'+t+'"',i=0,a=n.length;i<a;i++)ne(n[i],e,r,e,o)}return e}}var Dn=null;function In(t){var e=Dn;return Dn=t,function(){Dn=e}}function Bn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Ln(t){t.prototype._update=function(t,e){var n=this,r=n.$el,o=n._vnode,i=In(n);n._vnode=t,n.$el=o?n.__patch__(o,t):n.__patch__(n.$el,t,e,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){$n(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||b(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),$n(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Nn(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=wt),$n(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,L,{before:function(){t._isMounted&&!t._isDestroyed&&$n(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,$n(t,"mounted")),t}function Pn(t,e,r,o,i){var a=o.data.scopedSlots,u=t.$scopedSlots,s=!!(a&&!a.$stable||u!==n&&!u.$stable||a&&t.$scopedSlots.$key!==a.$key),c=!!(i||t.$options._renderChildren||s);if(t.$options._parentVnode=o,t.$vnode=o,t._vnode&&(t._vnode.parent=o),t.$options._renderChildren=i,t.$attrs=o.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){Tt(!1);for(var l=t._props,f=t.$options._propKeys||[],d=0;d<f.length;d++){var h=f[d],p=t.$options.props;l[h]=Kt(h,p,e,t)}Tt(!0),t.$options.propsData=e}r=r||n;var m=t.$options._parentListeners;t.$options._parentListeners=r,En(t,r,m),c&&(t.$slots=Ie(i,o.context),t.$forceUpdate())}function Mn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function jn(t,e){if(e){if(t._directInactive=!1,Mn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)jn(t.$children[n]);$n(t,"activated")}}function Rn(t,e){if((!e||(t._directInactive=!0,!Mn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Rn(t.$children[n]);$n(t,"deactivated")}}function $n(t,e){vt();var n=t.$options[e],r=e+" hook";if(n)for(var o=0,i=n.length;o<i;o++)ne(n[o],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),bt()}var Fn=[],Vn=[],Hn={},zn=!1,Un=!1,Wn=0;function qn(){Wn=Fn.length=Vn.length=0,Hn={},zn=Un=!1}var Gn=0,Yn=Date.now;if(K&&!tt){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function Kn(){var t,e;for(Gn=Yn(),Un=!0,Fn.sort((function(t,e){return t.id-e.id})),Wn=0;Wn<Fn.length;Wn++)t=Fn[Wn],t.before&&t.before(),e=t.id,Hn[e]=null,t.run();var n=Vn.slice(),r=Fn.slice();qn(),Qn(n),Zn(r),ct&&H.devtools&&ct.emit("flush")}function Zn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&$n(r,"updated")}}function Jn(t){t._inactive=!1,Vn.push(t)}function Qn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,jn(t[e],!0)}function tr(t){var e=t.id;if(null==Hn[e]){if(Hn[e]=!0,Un){var n=Fn.length-1;while(n>Wn&&Fn[n].id>t.id)n--;Fn.splice(n+1,0,t)}else Fn.push(t);zn||(zn=!0,pe(Kn))}}var er=0,nr=function(t,e,n,r,o){this.vm=t,o&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ft,this.newDepIds=new ft,this.expression="","function"===typeof e?this.getter=e:(this.getter=G(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;vt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Sa){if(!this.user)throw Sa;ee(Sa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ge(t),bt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Sa){ee(Sa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:L,set:L};function or(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function ir(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?ur(t):Lt(t._data={},!0),e.computed&&lr(t,e.computed),e.watch&&e.watch!==it&&mr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[],i=!t.$parent;i||Tt(!1);var a=function(i){o.push(i);var a=Kt(i,e,n,t);Nt(r,i,a),i in t||or(t,"_props",i)};for(var u in e)a(u);Tt(!0)}function ur(t){var e=t.$options.data;e=t._data="function"===typeof e?sr(e,t):e||{},l(e)||(e={});var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);while(o--){var i=n[o];0,r&&x(r,i)||U(i)||or(t,"_data",i)}Lt(e,!0)}function sr(t,e){vt();try{return t.call(e,e)}catch(Sa){return ee(Sa,e,"data()"),{}}finally{bt()}}var cr={lazy:!0};function lr(t,e){var n=t._computedWatchers=Object.create(null),r=st();for(var o in e){var i=e[o],a="function"===typeof i?i:i.get;0,r||(n[o]=new nr(t,a||L,L,cr)),o in t||fr(t,o,i)}}function fr(t,e,n){var r=!st();"function"===typeof n?(rr.get=r?dr(e):hr(n),rr.set=L):(rr.get=n.get?r&&!1!==n.cache?dr(e):hr(n.get):L,rr.set=n.set||L),Object.defineProperty(t,e,rr)}function dr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function hr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?L:T(e[n],t)}function mr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)gr(t,n,r[o]);else gr(t,n,r)}}function gr(t,e,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function vr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Pt,t.prototype.$delete=Mt,t.prototype.$watch=function(t,e,n){var r=this;if(l(e))return gr(r,t,e,n);n=n||{},n.user=!0;var o=new nr(r,t,e,n);if(n.immediate)try{e.call(r,o.value)}catch(i){ee(i,r,'callback for immediate watcher "'+o.expression+'"')}return function(){o.teardown()}}}var br=0;function yr(t){t.prototype._init=function(t){var e=this;e._uid=br++,e._isVue=!0,t&&t._isComponent?xr(e,t):e.$options=Yt(wr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Bn(e),kn(e),mn(e),$n(e,"beforeCreate"),Te(e),ir(e),Ee(e),$n(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function xr(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function wr(t){var e=t.options;if(t.super){var n=wr(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var o=Cr(t);o&&I(t.extendOptions,o),e=t.options=Yt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Cr(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}function Sr(t){this._init(t)}function kr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=D(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Or(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function _r(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Ar(a),a.options.computed&&Er(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,F.forEach((function(t){a[t]=n[t]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=I({},a.options),o[r]=a,a}}function Ar(t){var e=t.options.props;for(var n in e)or(t.prototype,"_props",n)}function Er(t){var e=t.options.computed;for(var n in e)fr(t.prototype,n,e[n])}function Tr(t){F.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Dr(t){return t&&(t.Ctor.options.name||t.tag)}function Ir(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Br(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var u=Dr(a.componentOptions);u&&!e(u)&&Lr(n,i,r,o)}}}function Lr(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,b(n,e)}yr(Sr),vr(Sr),Tn(Sr),Ln(Sr),bn(Sr);var Nr=[String,RegExp,Array],Pr={name:"keep-alive",abstract:!0,props:{include:Nr,exclude:Nr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Lr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Br(t,(function(t){return Ir(e,t)}))})),this.$watch("exclude",(function(e){Br(t,(function(t){return!Ir(e,t)}))}))},render:function(){var t=this.$slots.default,e=Sn(t),n=e&&e.componentOptions;if(n){var r=Dr(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!Ir(i,r))||a&&r&&Ir(a,r))return e;var u=this,s=u.cache,c=u.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;s[l]?(e.componentInstance=s[l].componentInstance,b(c,l),c.push(l)):(s[l]=e,c.push(l),this.max&&c.length>parseInt(this.max)&&Lr(s,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Mr={KeepAlive:Pr};function jr(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ht,extend:I,mergeOptions:Yt,defineReactive:Nt},t.set=Pt,t.delete=Mt,t.nextTick=pe,t.observable=function(t){return Lt(t),t},t.options=Object.create(null),F.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,I(t.options.components,Mr),kr(t),Or(t),_r(t),Tr(t)}jr(Sr),Object.defineProperty(Sr.prototype,"$isServer",{get:st}),Object.defineProperty(Sr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sr,"FunctionalRenderContext",{value:Ze}),Sr.version="2.6.12";var Rr=g("style,class"),$r=g("input,textarea,option,select,progress"),Fr=function(t,e,n){return"value"===n&&$r(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Vr=g("contenteditable,draggable,spellcheck"),Hr=g("events,caret,typing,plaintext-only"),zr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&Hr(e)?e:"true"},Ur=g("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"),Wr="http://www.w3.org/1999/xlink",qr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gr=function(t){return qr(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(o(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Kr(r.data,e));while(o(n=n.parent))n&&n.data&&(e=Kr(e,n.data));return Zr(e.staticClass,e.class)}function Kr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Zr(t,e){return o(t)||o(e)?Jr(t,Qr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?to(t):s(t)?eo(t):"string"===typeof t?t:""}function to(t){for(var e,n="",r=0,i=t.length;r<i;r++)o(e=Qr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function eo(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var no={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ro=g("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,picture,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,blockquote,iframe,tfoot"),oo=g("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),io=function(t){return ro(t)||oo(t)};function ao(t){return oo(t)?"svg":"math"===t?"math":void 0}var uo=Object.create(null);function so(t){if(!K)return!0;if(io(t))return!1;if(t=t.toLowerCase(),null!=uo[t])return uo[t];var e=document.createElement(t);return t.indexOf("-")>-1?uo[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:uo[t]=/HTMLUnknownElement/.test(e.toString())}var co=g("text,number,password,search,email,tel,url");function lo(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function fo(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function ho(t,e){return document.createElementNS(no[t],e)}function po(t){return document.createTextNode(t)}function mo(t){return document.createComment(t)}function go(t,e,n){t.insertBefore(e,n)}function vo(t,e){t.removeChild(e)}function bo(t,e){t.appendChild(e)}function yo(t){return t.parentNode}function xo(t){return t.nextSibling}function wo(t){return t.tagName}function Co(t,e){t.textContent=e}function So(t,e){t.setAttribute(e,"")}var ko=Object.freeze({createElement:fo,createElementNS:ho,createTextNode:po,createComment:mo,insertBefore:go,removeChild:vo,appendChild:bo,parentNode:yo,nextSibling:xo,tagName:wo,setTextContent:Co,setStyleScope:So}),Oo={create:function(t,e){_o(e)},update:function(t,e){t.data.ref!==e.data.ref&&(_o(t,!0),_o(e))},destroy:function(t){_o(t,!0)}};function _o(t,e){var n=t.data.ref;if(o(n)){var r=t.context,i=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?b(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Ao=new yt("",{},[]),Eo=["create","activate","update","remove","destroy"];function To(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&Do(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Do(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||co(r)&&co(i)}function Io(t,e,n){var r,i,a={};for(r=e;r<=n;++r)i=t[r].key,o(i)&&(a[i]=r);return a}function Bo(t){var e,n,a={},s=t.modules,c=t.nodeOps;for(e=0;e<Eo.length;++e)for(a[Eo[e]]=[],n=0;n<s.length;++n)o(s[n][Eo[e]])&&a[Eo[e]].push(s[n][Eo[e]]);function l(t){return new yt(c.tagName(t).toLowerCase(),{},[],void 0,t)}function f(t,e){function n(){0===--n.listeners&&d(t)}return n.listeners=e,n}function d(t){var e=c.parentNode(t);o(e)&&c.removeChild(e,t)}function h(t,e,n,r,a,u,s){if(o(t.elm)&&o(u)&&(t=u[s]=St(t)),t.isRootInsert=!a,!p(t,e,n,r)){var l=t.data,f=t.children,d=t.tag;o(d)?(t.elm=t.ns?c.createElementNS(t.ns,d):c.createElement(d,t),C(t),y(t,f,e),o(l)&&w(t,e),b(n,t.elm,r)):i(t.isComment)?(t.elm=c.createComment(t.text),b(n,t.elm,r)):(t.elm=c.createTextNode(t.text),b(n,t.elm,r))}}function p(t,e,n,r){var a=t.data;if(o(a)){var u=o(t.componentInstance)&&a.keepAlive;if(o(a=a.hook)&&o(a=a.init)&&a(t,!1),o(t.componentInstance))return m(t,e),b(n,t.elm,r),i(u)&&v(t,e,n,r),!0}}function m(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,x(t)?(w(t,e),C(t)):(_o(t),e.push(t))}function v(t,e,n,r){var i,u=t;while(u.componentInstance)if(u=u.componentInstance._vnode,o(i=u.data)&&o(i=i.transition)){for(i=0;i<a.activate.length;++i)a.activate[i](Ao,u);e.push(u);break}b(n,t.elm,r)}function b(t,e,n){o(t)&&(o(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function y(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r)}else u(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function x(t){while(t.componentInstance)t=t.componentInstance._vnode;return o(t.tag)}function w(t,n){for(var r=0;r<a.create.length;++r)a.create[r](Ao,t);e=t.data.hook,o(e)&&(o(e.create)&&e.create(Ao,t),o(e.insert)&&n.push(t))}function C(t){var e;if(o(e=t.fnScopeId))c.setStyleScope(t.elm,e);else{var n=t;while(n)o(e=n.context)&&o(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent}o(e=Dn)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function S(t,e,n,r,o,i){for(;r<=o;++r)h(n[r],i,t,e,!1,n,r)}function k(t){var e,n,r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)k(t.children[n])}function O(t,e,n){for(;e<=n;++e){var r=t[e];o(r)&&(o(r.tag)?(_(r),k(r)):d(r.elm))}}function _(t,e){if(o(e)||o(t.data)){var n,r=a.remove.length+1;for(o(e)?e.listeners+=r:e=f(t.elm,r),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&_(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else d(t.elm)}function A(t,e,n,i,a){var u,s,l,f,d=0,p=0,m=e.length-1,g=e[0],v=e[m],b=n.length-1,y=n[0],x=n[b],w=!a;while(d<=m&&p<=b)r(g)?g=e[++d]:r(v)?v=e[--m]:To(g,y)?(T(g,y,i,n,p),g=e[++d],y=n[++p]):To(v,x)?(T(v,x,i,n,b),v=e[--m],x=n[--b]):To(g,x)?(T(g,x,i,n,b),w&&c.insertBefore(t,g.elm,c.nextSibling(v.elm)),g=e[++d],x=n[--b]):To(v,y)?(T(v,y,i,n,p),w&&c.insertBefore(t,v.elm,g.elm),v=e[--m],y=n[++p]):(r(u)&&(u=Io(e,d,m)),s=o(y.key)?u[y.key]:E(y,e,d,m),r(s)?h(y,i,t,g.elm,!1,n,p):(l=e[s],To(l,y)?(T(l,y,i,n,p),e[s]=void 0,w&&c.insertBefore(t,l.elm,g.elm)):h(y,i,t,g.elm,!1,n,p)),y=n[++p]);d>m?(f=r(n[b+1])?null:n[b+1].elm,S(t,f,n,p,b,i)):p>b&&O(e,d,m)}function E(t,e,n,r){for(var i=n;i<r;i++){var a=e[i];if(o(a)&&To(t,a))return i}}function T(t,e,n,u,s,l){if(t!==e){o(e.elm)&&o(u)&&(e=u[s]=St(e));var f=e.elm=t.elm;if(i(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?B(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(i(e.isStatic)&&i(t.isStatic)&&e.key===t.key&&(i(e.isCloned)||i(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,h=e.data;o(h)&&o(d=h.hook)&&o(d=d.prepatch)&&d(t,e);var p=t.children,m=e.children;if(o(h)&&x(e)){for(d=0;d<a.update.length;++d)a.update[d](t,e);o(d=h.hook)&&o(d=d.update)&&d(t,e)}r(e.text)?o(p)&&o(m)?p!==m&&A(f,p,m,n,l):o(m)?(o(t.text)&&c.setTextContent(f,""),S(f,null,m,0,m.length-1,n)):o(p)?O(p,0,p.length-1):o(t.text)&&c.setTextContent(f,""):t.text!==e.text&&c.setTextContent(f,e.text),o(h)&&o(d=h.hook)&&o(d=d.postpatch)&&d(t,e)}}}function D(t,e,n){if(i(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var I=g("attrs,class,staticClass,staticStyle,key");function B(t,e,n,r){var a,u=e.tag,s=e.data,c=e.children;if(r=r||s&&s.pre,e.elm=t,i(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(s)&&(o(a=s.hook)&&o(a=a.init)&&a(e,!0),o(a=e.componentInstance)))return m(e,n),!0;if(o(u)){if(o(c))if(t.hasChildNodes())if(o(a=s)&&o(a=a.domProps)&&o(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var l=!0,f=t.firstChild,d=0;d<c.length;d++){if(!f||!B(f,c[d],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else y(e,c,n);if(o(s)){var h=!1;for(var p in s)if(!I(p)){h=!0,w(e,n);break}!h&&s["class"]&&ge(s["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,u){if(!r(e)){var s=!1,f=[];if(r(t))s=!0,h(e,f);else{var d=o(t.nodeType);if(!d&&To(t,e))T(t,e,f,null,null,u);else{if(d){if(1===t.nodeType&&t.hasAttribute($)&&(t.removeAttribute($),n=!0),i(n)&&B(t,e,f))return D(e,f,!0),t;t=l(t)}var p=t.elm,m=c.parentNode(p);if(h(e,f,p._leaveCb?null:m,c.nextSibling(p)),o(e.parent)){var g=e.parent,v=x(e);while(g){for(var b=0;b<a.destroy.length;++b)a.destroy[b](g);if(g.elm=e.elm,v){for(var y=0;y<a.create.length;++y)a.create[y](Ao,g);var w=g.data.hook.insert;if(w.merged)for(var C=1;C<w.fns.length;C++)w.fns[C]()}else _o(g);g=g.parent}}o(m)?O([t],0,0):o(t.tag)&&k(t)}}return D(e,f,s),e.elm}o(t)&&k(t)}}var Lo={create:No,update:No,destroy:function(t){No(t,Ao)}};function No(t,e){(t.data.directives||e.data.directives)&&Po(t,e)}function Po(t,e){var n,r,o,i=t===Ao,a=e===Ao,u=jo(t.data.directives,t.context),s=jo(e.data.directives,e.context),c=[],l=[];for(n in s)r=u[n],o=s[n],r?(o.oldValue=r.value,o.oldArg=r.arg,$o(o,"update",e,t),o.def&&o.def.componentUpdated&&l.push(o)):($o(o,"bind",e,t),o.def&&o.def.inserted&&c.push(o));if(c.length){var f=function(){for(var n=0;n<c.length;n++)$o(c[n],"inserted",e,t)};i?we(e,"insert",f):f()}if(l.length&&we(e,"postpatch",(function(){for(var n=0;n<l.length;n++)$o(l[n],"componentUpdated",e,t)})),!i)for(n in u)s[n]||$o(u[n],"unbind",t,t,a)}var Mo=Object.create(null);function jo(t,e){var n,r,o=Object.create(null);if(!t)return o;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Mo),o[Ro(r)]=r,r.def=Xt(e.$options,"directives",r.name,!0);return o}function Ro(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function $o(t,e,n,r,o){var i=t.def&&t.def[e];if(i)try{i(n.elm,t,n,r,o)}catch(Sa){ee(Sa,n.context,"directive "+t.name+" "+e+" hook")}}var Fo=[Oo,Lo];function Vo(t,e){var n=e.componentOptions;if((!o(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var i,a,u,s=e.elm,c=t.data.attrs||{},l=e.data.attrs||{};for(i in o(l.__ob__)&&(l=e.data.attrs=I({},l)),l)a=l[i],u=c[i],u!==a&&Ho(s,i,a);for(i in(tt||nt)&&l.value!==c.value&&Ho(s,"value",l.value),c)r(l[i])&&(qr(i)?s.removeAttributeNS(Wr,Gr(i)):Vr(i)||s.removeAttribute(i))}}function Ho(t,e,n){t.tagName.indexOf("-")>-1?zo(t,e,n):Ur(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vr(e)?t.setAttribute(e,zr(e,n)):qr(e)?Yr(n)?t.removeAttributeNS(Wr,Gr(e)):t.setAttributeNS(Wr,e,n):zo(t,e,n)}function zo(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Uo={create:Vo,update:Vo};function Wo(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var u=Xr(e),s=n._transitionClasses;o(s)&&(u=Jr(u,Qr(s))),u!==n._prevClass&&(n.setAttribute("class",u),n._prevClass=u)}}var qo,Go={create:Wo,update:Wo},Yo="__r",Xo="__c";function Ko(t){if(o(t[Yo])){var e=tt?"change":"input";t[e]=[].concat(t[Yo],t[e]||[]),delete t[Yo]}o(t[Xo])&&(t.change=[].concat(t[Xo],t.change||[]),delete t[Xo])}function Zo(t,e,n){var r=qo;return function o(){var i=e.apply(null,arguments);null!==i&&ti(t,o,n,r)}}var Jo=ae&&!(ot&&Number(ot[1])<=53);function Qo(t,e,n,r){if(Jo){var o=Gn,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}qo.addEventListener(t,e,at?{capture:n,passive:r}:n)}function ti(t,e,n,r){(r||qo).removeEventListener(t,e._wrapper||e,n)}function ei(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},o=t.data.on||{};qo=e.elm,Ko(n),xe(n,o,Qo,ti,Zo,e.context),qo=void 0}}var ni,ri={create:ei,update:ei};function oi(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,u=t.data.domProps||{},s=e.data.domProps||{};for(n in o(s.__ob__)&&(s=e.data.domProps=I({},s)),u)n in s||(a[n]="");for(n in s){if(i=s[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===u[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var c=r(i)?"":String(i);ii(a,c)&&(a.value=c)}else if("innerHTML"===n&&oo(a.tagName)&&r(a.innerHTML)){ni=ni||document.createElement("div"),ni.innerHTML="<svg>"+i+"</svg>";var l=ni.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(i!==u[n])try{a[n]=i}catch(Sa){}}}}function ii(t,e){return!t.composing&&("OPTION"===t.tagName||ai(t,e)||ui(t,e))}function ai(t,e){var n=!0;try{n=document.activeElement!==t}catch(Sa){}return n&&t.value!==e}function ui(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return m(n)!==m(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var si={create:oi,update:oi},ci=w((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function li(t){var e=fi(t.style);return t.staticStyle?I(t.staticStyle,e):e}function fi(t){return Array.isArray(t)?B(t):"string"===typeof t?ci(t):t}function di(t,e){var n,r={};if(e){var o=t;while(o.componentInstance)o=o.componentInstance._vnode,o&&o.data&&(n=li(o.data))&&I(r,n)}(n=li(t.data))&&I(r,n);var i=t;while(i=i.parent)i.data&&(n=li(i.data))&&I(r,n);return r}var hi,pi=/^--/,mi=/\s*!important$/,gi=function(t,e,n){if(pi.test(e))t.style.setProperty(e,n);else if(mi.test(n))t.style.setProperty(_(e),n.replace(mi,""),"important");else{var r=bi(e);if(Array.isArray(n))for(var o=0,i=n.length;o<i;o++)t.style[r]=n[o];else t.style[r]=n}},vi=["Webkit","Moz","ms"],bi=w((function(t){if(hi=hi||document.createElement("div").style,t=S(t),"filter"!==t&&t in hi)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<vi.length;n++){var r=vi[n]+e;if(r in hi)return r}}));function yi(t,e){var n=e.data,i=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var a,u,s=e.elm,c=i.staticStyle,l=i.normalizedStyle||i.style||{},f=c||l,d=fi(e.data.style)||{};e.data.normalizedStyle=o(d.__ob__)?I({},d):d;var h=di(e,!0);for(u in f)r(h[u])&&gi(s,u,"");for(u in h)a=h[u],a!==f[u]&&gi(s,u,null==a?"":a)}}var xi={create:yi,update:yi},wi=/\s+/;function Ci(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Si(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ki(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&I(e,Oi(t.name||"v")),I(e,t),e}return"string"===typeof t?Oi(t):void 0}}var Oi=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),_i=K&&!et,Ai="transition",Ei="animation",Ti="transition",Di="transitionend",Ii="animation",Bi="animationend";_i&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ti="WebkitTransition",Di="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ii="WebkitAnimation",Bi="webkitAnimationEnd"));var Li=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ni(t){Li((function(){Li(t)}))}function Pi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Ci(t,e))}function Mi(t,e){t._transitionClasses&&b(t._transitionClasses,e),Si(t,e)}function ji(t,e,n){var r=$i(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var u=o===Ai?Di:Bi,s=0,c=function(){t.removeEventListener(u,l),n()},l=function(e){e.target===t&&++s>=a&&c()};setTimeout((function(){s<a&&c()}),i+1),t.addEventListener(u,l)}var Ri=/\b(transform|all)(,|$)/;function $i(t,e){var n,r=window.getComputedStyle(t),o=(r[Ti+"Delay"]||"").split(", "),i=(r[Ti+"Duration"]||"").split(", "),a=Fi(o,i),u=(r[Ii+"Delay"]||"").split(", "),s=(r[Ii+"Duration"]||"").split(", "),c=Fi(u,s),l=0,f=0;e===Ai?a>0&&(n=Ai,l=a,f=i.length):e===Ei?c>0&&(n=Ei,l=c,f=s.length):(l=Math.max(a,c),n=l>0?a>c?Ai:Ei:null,f=n?n===Ai?i.length:s.length:0);var d=n===Ai&&Ri.test(r[Ti+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function Fi(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Vi(e)+Vi(t[n])})))}function Vi(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Hi(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=ki(t.data.transition);if(!r(i)&&!o(n._enterCb)&&1===n.nodeType){var a=i.css,u=i.type,c=i.enterClass,l=i.enterToClass,f=i.enterActiveClass,d=i.appearClass,h=i.appearToClass,p=i.appearActiveClass,g=i.beforeEnter,v=i.enter,b=i.afterEnter,y=i.enterCancelled,x=i.beforeAppear,w=i.appear,C=i.afterAppear,S=i.appearCancelled,k=i.duration,O=Dn,_=Dn.$vnode;while(_&&_.parent)O=_.context,_=_.parent;var A=!O._isMounted||!t.isRootInsert;if(!A||w||""===w){var E=A&&d?d:c,T=A&&p?p:f,D=A&&h?h:l,I=A&&x||g,B=A&&"function"===typeof w?w:v,L=A&&C||b,N=A&&S||y,P=m(s(k)?k.enter:k);0;var M=!1!==a&&!et,j=Wi(B),$=n._enterCb=R((function(){M&&(Mi(n,D),Mi(n,T)),$.cancelled?(M&&Mi(n,E),N&&N(n)):L&&L(n),n._enterCb=null}));t.data.show||we(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),B&&B(n,$)})),I&&I(n),M&&(Pi(n,E),Pi(n,T),Ni((function(){Mi(n,E),$.cancelled||(Pi(n,D),j||(Ui(P)?setTimeout($,P):ji(n,u,$)))}))),t.data.show&&(e&&e(),B&&B(n,$)),M||j||$()}}}function zi(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=ki(t.data.transition);if(r(i)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var a=i.css,u=i.type,c=i.leaveClass,l=i.leaveToClass,f=i.leaveActiveClass,d=i.beforeLeave,h=i.leave,p=i.afterLeave,g=i.leaveCancelled,v=i.delayLeave,b=i.duration,y=!1!==a&&!et,x=Wi(h),w=m(s(b)?b.leave:b);0;var C=n._leaveCb=R((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Mi(n,l),Mi(n,f)),C.cancelled?(y&&Mi(n,c),g&&g(n)):(e(),p&&p(n)),n._leaveCb=null}));v?v(S):S()}function S(){C.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),y&&(Pi(n,c),Pi(n,f),Ni((function(){Mi(n,c),C.cancelled||(Pi(n,l),x||(Ui(w)?setTimeout(C,w):ji(n,u,C)))}))),h&&h(n,C),y||x||C())}}function Ui(t){return"number"===typeof t&&!isNaN(t)}function Wi(t){if(r(t))return!1;var e=t.fns;return o(e)?Wi(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function qi(t,e){!0!==e.data.show&&Hi(e)}var Gi=K?{create:qi,activate:qi,remove:function(t,e){!0!==t.data.show?zi(t,e):e()}}:{},Yi=[Uo,Go,ri,si,xi,Gi],Xi=Yi.concat(Fo),Ki=Bo({nodeOps:ko,modules:Xi});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&oa(t,"input")}));var Zi={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?we(n,"postpatch",(function(){Zi.componentUpdated(t,e,n)})):Ji(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||co(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ji(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,ea);if(o.some((function(t,e){return!M(t,r[e])}))){var i=t.multiple?e.value.some((function(t){return ta(t,o)})):e.value!==e.oldValue&&ta(e.value,o);i&&oa(t,"change")}}}};function Ji(t,e,n){Qi(t,e,n),(tt||nt)&&setTimeout((function(){Qi(t,e,n)}),0)}function Qi(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,u=0,s=t.options.length;u<s;u++)if(a=t.options[u],o)i=j(r,ea(a))>-1,a.selected!==i&&(a.selected=i);else if(M(ea(a),r))return void(t.selectedIndex!==u&&(t.selectedIndex=u));o||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!M(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,oa(t.target,"input"))}function oa(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ia(t){return!t.componentInstance||t.data&&t.data.transition?t:ia(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=ia(n);var o=n.data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Hi(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value,o=e.oldValue;if(!r!==!o){n=ia(n);var i=n.data&&n.data.transition;i?(n.data.show=!0,r?Hi(n,(function(){t.style.display=t.__vOriginalDisplay})):zi(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},ua={model:Zi,show:aa},sa={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]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca(Sn(e.children)):t}function la(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[S(i)]=o[i];return e}function fa(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function da(t){while(t=t.parent)if(t.data.transition)return!0}function ha(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||Cn(t)},ma=function(t){return"show"===t.name},ga={name:"transition",props:sa,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var o=n[0];if(da(this.$vnode))return o;var i=ca(o);if(!i)return o;if(this._leaving)return fa(t,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:u(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var s=(i.data||(i.data={})).transition=la(this),c=this._vnode,l=ca(c);if(i.data.directives&&i.data.directives.some(ma)&&(i.data.show=!0),l&&l.data&&!ha(i,l)&&!Cn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=I({},s);if("out-in"===r)return this._leaving=!0,we(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),fa(t,o);if("in-out"===r){if(Cn(i))return c;var d,h=function(){d()};we(s,"afterEnter",h),we(s,"enterCancelled",h),we(f,"delayLeave",(function(t){d=t}))}}return o}}},va=I({tag:String,moveClass:String},sa);delete va.mode;var ba={props:va,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=In(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=la(this),u=0;u<o.length;u++){var s=o[u];if(s.tag)if(null!=s.key&&0!==String(s.key).indexOf("__vlist"))i.push(s),n[s.key]=s,(s.data||(s.data={})).transition=a;else;}if(r){for(var c=[],l=[],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):l.push(d)}this.kept=t(e,null,c),this.removed=l}return t(e,null,i)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ya),t.forEach(xa),t.forEach(wa),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Pi(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Di,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Di,t),n._moveCb=null,Mi(n,e))})}})))},methods:{hasMove:function(t,e){if(!_i)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Si(n,t)})),Ci(n,e),n.style.display="none",this.$el.appendChild(n);var r=$i(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ya(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function xa(t){t.data.newPos=t.elm.getBoundingClientRect()}function wa(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}var Ca={Transition:ga,TransitionGroup:ba};Sr.config.mustUseProp=Fr,Sr.config.isReservedTag=io,Sr.config.isReservedAttr=Rr,Sr.config.getTagNamespace=ao,Sr.config.isUnknownElement=so,I(Sr.options.directives,ua),I(Sr.options.components,Ca),Sr.prototype.__patch__=K?Ki:L,Sr.prototype.$mount=function(t,e){return t=t&&K?lo(t):void 0,Nn(this,t,e)},K&&setTimeout((function(){H.devtools&&ct&&ct.emit("init",Sr)}),0),e["a"]=Sr}).call(this,n("c8ba"))},"2b19":function(t,e,n){var r=n("23e7"),o=n("129f");r({target:"Object",stat:!0},{is:o})},"2b3d":function(t,e,n){"use strict";n("3ca3");var r,o=n("23e7"),i=n("83ab"),a=n("0d3b"),u=n("da84"),s=n("37e8"),c=n("6eeb"),l=n("19aa"),f=n("5135"),d=n("60da"),h=n("4df4"),p=n("6547").codeAt,m=n("5fb2"),g=n("d44e"),v=n("9861"),b=n("69f3"),y=u.URL,x=v.URLSearchParams,w=v.getState,C=b.set,S=b.getterFor("URL"),k=Math.floor,O=Math.pow,_="Invalid authority",A="Invalid scheme",E="Invalid host",T="Invalid port",D=/[A-Za-z]/,I=/[\d+-.A-Za-z]/,B=/\d/,L=/^(0x|0X)/,N=/^[0-7]+$/,P=/^\d+$/,M=/^[\dA-Fa-f]+$/,j=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,R=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,$=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,F=/[\u0009\u000A\u000D]/g,V=function(t,e){var n,r,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return E;if(n=z(e.slice(1,-1)),!n)return E;t.host=n}else if(J(t)){if(e=m(e),j.test(e))return E;if(n=H(e),null===n)return E;t.host=n}else{if(R.test(e))return E;for(n="",r=h(e),o=0;o<r.length;o++)n+=K(r[o],q);t.host=n}},H=function(t){var e,n,r,o,i,a,u,s=t.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),e=s.length,e>4)return t;for(n=[],r=0;r<e;r++){if(o=s[r],""==o)return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=L.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?P:8==i?N:M).test(o))return t;a=parseInt(o,i)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=O(256,5-e))return null}else if(a>255)return null;for(u=n.pop(),r=0;r<n.length;r++)u+=n[r]*O(256,3-r);return u},z=function(t){var e,n,r,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return t.charAt(f)};if(":"==d()){if(":"!=t.charAt(1))return;f+=2,c++,l=c}while(d()){if(8==c)return;if(":"!=d()){e=n=0;while(n<4&&M.test(d()))e=16*e+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,c>6)return;r=0;while(d()){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!B.test(d()))return;while(B.test(d())){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}s[c]=256*s[c]+o,r++,2!=r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;s[c++]=e}else{if(null!==l)return;f++,c++,l=c}}if(null!==l){a=c-l,c=7;while(0!=c&&a>0)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u}else if(8!=c)return;return s},U=function(t){for(var e=null,n=1,r=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(e=r,n=o),e},W=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=k(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=U(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},q={},G=d({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=d({},G,{"#":1,"?":1,"{":1,"}":1}),X=d({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(t,e){var n=p(t,0);return n>32&&n<127&&!f(e,t)?t:encodeURIComponent(t)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(t){return f(Z,t.scheme)},Q=function(t){return""!=t.username||""!=t.password},tt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},et=function(t,e){var n;return 2==t.length&&D.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},nt=function(t){var e;return t.length>1&&et(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},rt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&et(e[0],!0)||e.pop()},ot=function(t){return"."===t||"%2e"===t.toLowerCase()},it=function(t){return t=t.toLowerCase(),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},at={},ut={},st={},ct={},lt={},ft={},dt={},ht={},pt={},mt={},gt={},vt={},bt={},yt={},xt={},wt={},Ct={},St={},kt={},Ot={},_t={},At=function(t,e,n,o){var i,a,u,s,c=n||at,l=0,d="",p=!1,m=!1,g=!1;n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace($,"")),e=e.replace(F,""),i=h(e);while(l<=i.length){switch(a=i[l],c){case at:if(!a||!D.test(a)){if(n)return A;c=st;continue}d+=a.toLowerCase(),c=ut;break;case ut:if(a&&(I.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(n)return A;d="",c=st,l=0;continue}if(n&&(J(t)!=f(Z,d)||"file"==d&&(Q(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=d,n)return void(J(t)&&Z[t.scheme]==t.port&&(t.port=null));d="","file"==t.scheme?c=yt:J(t)&&o&&o.scheme==t.scheme?c=ct:J(t)?c=ht:"/"==i[l+1]?(c=lt,l++):(t.cannotBeABaseURL=!0,t.path.push(""),c=kt)}break;case st:if(!o||o.cannotBeABaseURL&&"#"!=a)return A;if(o.cannotBeABaseURL&&"#"==a){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,c=_t;break}c="file"==o.scheme?yt:ft;continue;case ct:if("/"!=a||"/"!=i[l+1]){c=ft;continue}c=pt,l++;break;case lt:if("/"==a){c=mt;break}c=St;continue;case ft:if(t.scheme=o.scheme,a==r)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==a||"\\"==a&&J(t))c=dt;else if("?"==a)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",c=Ot;else{if("#"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),c=St;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",c=_t}break;case dt:if(!J(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,c=St;continue}c=mt}else c=pt;break;case ht:if(c=pt,"/"!=a||"/"!=d.charAt(l+1))continue;l++;break;case pt:if("/"!=a&&"\\"!=a){c=mt;continue}break;case mt:if("@"==a){p&&(d="%40"+d),p=!0,u=h(d);for(var v=0;v<u.length;v++){var b=u[v];if(":"!=b||g){var y=K(b,X);g?t.password+=y:t.username+=y}else g=!0}d=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(t)){if(p&&""==d)return _;l-=h(d).length+1,d="",c=gt}else d+=a;break;case gt:case vt:if(n&&"file"==t.scheme){c=wt;continue}if(":"!=a||m){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(t)){if(J(t)&&""==d)return E;if(n&&""==d&&(Q(t)||null!==t.port))return;if(s=V(t,d),s)return s;if(d="",c=Ct,n)return;continue}"["==a?m=!0:"]"==a&&(m=!1),d+=a}else{if(""==d)return E;if(s=V(t,d),s)return s;if(d="",c=bt,n==vt)return}break;case bt:if(!B.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(t)||n){if(""!=d){var x=parseInt(d,10);if(x>65535)return T;t.port=J(t)&&x===Z[t.scheme]?null:x,d=""}if(n)return;c=Ct;continue}return T}d+=a;break;case yt:if(t.scheme="file","/"==a||"\\"==a)c=xt;else{if(!o||"file"!=o.scheme){c=St;continue}if(a==r)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==a)t.host=o.host,t.path=o.path.slice(),t.query="",c=Ot;else{if("#"!=a){nt(i.slice(l).join(""))||(t.host=o.host,t.path=o.path.slice(),rt(t)),c=St;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",c=_t}}break;case xt:if("/"==a||"\\"==a){c=wt;break}o&&"file"==o.scheme&&!nt(i.slice(l).join(""))&&(et(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),c=St;continue;case wt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&et(d))c=St;else if(""==d){if(t.host="",n)return;c=Ct}else{if(s=V(t,d),s)return s;if("localhost"==t.host&&(t.host=""),n)return;d="",c=Ct}continue}d+=a;break;case Ct:if(J(t)){if(c=St,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(c=St,"/"!=a))continue}else t.fragment="",c=_t;else t.query="",c=Ot;break;case St:if(a==r||"/"==a||"\\"==a&&J(t)||!n&&("?"==a||"#"==a)){if(it(d)?(rt(t),"/"==a||"\\"==a&&J(t)||t.path.push("")):ot(d)?"/"==a||"\\"==a&&J(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&et(d)&&(t.host&&(t.host=""),d=d.charAt(0)+":"),t.path.push(d)),d="","file"==t.scheme&&(a==r||"?"==a||"#"==a))while(t.path.length>1&&""===t.path[0])t.path.shift();"?"==a?(t.query="",c=Ot):"#"==a&&(t.fragment="",c=_t)}else d+=K(a,Y);break;case kt:"?"==a?(t.query="",c=Ot):"#"==a?(t.fragment="",c=_t):a!=r&&(t.path[0]+=K(a,q));break;case Ot:n||"#"!=a?a!=r&&("'"==a&&J(t)?t.query+="%27":t.query+="#"==a?"%23":K(a,q)):(t.fragment="",c=_t);break;case _t:a!=r&&(t.fragment+=K(a,G));break}l++}},Et=function(t){var e,n,r=l(this,Et,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(t),u=C(r,{type:"URL"});if(void 0!==o)if(o instanceof Et)e=S(o);else if(n=At(e={},String(o)),n)throw TypeError(n);if(n=At(u,a,null,e),n)throw TypeError(n);var s=u.searchParams=new x,c=w(s);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(s)||null},i||(r.href=Dt.call(r),r.origin=It.call(r),r.protocol=Bt.call(r),r.username=Lt.call(r),r.password=Nt.call(r),r.host=Pt.call(r),r.hostname=Mt.call(r),r.port=jt.call(r),r.pathname=Rt.call(r),r.search=$t.call(r),r.searchParams=Ft.call(r),r.hash=Vt.call(r))},Tt=Et.prototype,Dt=function(){var t=S(this),e=t.scheme,n=t.username,r=t.password,o=t.host,i=t.port,a=t.path,u=t.query,s=t.fragment,c=e+":";return null!==o?(c+="//",Q(t)&&(c+=n+(r?":"+r:"")+"@"),c+=W(o),null!==i&&(c+=":"+i)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},It=function(){var t=S(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&J(t)?e+"://"+W(t.host)+(null!==n?":"+n:""):"null"},Bt=function(){return S(this).scheme+":"},Lt=function(){return S(this).username},Nt=function(){return S(this).password},Pt=function(){var t=S(this),e=t.host,n=t.port;return null===e?"":null===n?W(e):W(e)+":"+n},Mt=function(){var t=S(this).host;return null===t?"":W(t)},jt=function(){var t=S(this).port;return null===t?"":String(t)},Rt=function(){var t=S(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},$t=function(){var t=S(this).query;return t?"?"+t:""},Ft=function(){return S(this).searchParams},Vt=function(){var t=S(this).fragment;return t?"#"+t:""},Ht=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&s(Tt,{href:Ht(Dt,(function(t){var e=S(this),n=String(t),r=At(e,n);if(r)throw TypeError(r);w(e.searchParams).updateSearchParams(e.query)})),origin:Ht(It),protocol:Ht(Bt,(function(t){var e=S(this);At(e,String(t)+":",at)})),username:Ht(Lt,(function(t){var e=S(this),n=h(String(t));if(!tt(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=K(n[r],X)}})),password:Ht(Nt,(function(t){var e=S(this),n=h(String(t));if(!tt(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=K(n[r],X)}})),host:Ht(Pt,(function(t){var e=S(this);e.cannotBeABaseURL||At(e,String(t),gt)})),hostname:Ht(Mt,(function(t){var e=S(this);e.cannotBeABaseURL||At(e,String(t),vt)})),port:Ht(jt,(function(t){var e=S(this);tt(e)||(t=String(t),""==t?e.port=null:At(e,t,bt))})),pathname:Ht(Rt,(function(t){var e=S(this);e.cannotBeABaseURL||(e.path=[],At(e,t+"",Ct))})),search:Ht($t,(function(t){var e=S(this);t=String(t),""==t?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",At(e,t,Ot)),w(e.searchParams).updateSearchParams(e.query)})),searchParams:Ht(Ft),hash:Ht(Vt,(function(t){var e=S(this);t=String(t),""!=t?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",At(e,t,_t)):e.fragment=null}))}),c(Tt,"toJSON",(function(){return Dt.call(this)}),{enumerable:!0}),c(Tt,"toString",(function(){return Dt.call(this)}),{enumerable:!0}),y){var zt=y.createObjectURL,Ut=y.revokeObjectURL;zt&&c(Et,"createObjectURL",(function(t){return zt.apply(y,arguments)})),Ut&&c(Et,"revokeObjectURL",(function(t){return Ut.apply(y,arguments)}))}g(Et,"URL"),o({global:!0,forced:!a,sham:!i},{URL:Et})},"2b5d":function(t,e,n){"use strict";n("7db0"),n("c975"),n("fb6a"),n("a434"),n("b0c0"),n("d3b7"),n("25f0"),n("8a79");var r=n("5530"),o=(n("2bfd"),n("b974")),i=(n("4de4"),n("d81d"),n("45fc"),n("498a"),n("8654")),a=n("d9f7"),u=n("80d2"),s=Object(r["a"])({},o["b"],{offsetY:!0,offsetOverflow:!0,transition:!1}),c=o["a"].extend({name:"v-autocomplete",props:{allowOverflow:{type:Boolean,default:!0},autoSelectFirst:{type:Boolean,default:!1},filter:{type:Function,default:function(t,e,n){return n.toLocaleLowerCase().indexOf(e.toLocaleLowerCase())>-1}},hideNoData:Boolean,menuProps:{type:o["a"].options.props.menuProps.type,default:function(){return s}},noFilter:Boolean,searchInput:{type:String,default:void 0}},data:function(){return{lazySearch:this.searchInput}},computed:{classes:function(){return Object(r["a"])({},o["a"].options.computed.classes.call(this),{"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1})},computedItems:function(){return this.filteredItems},selectedValues:function(){var t=this;return this.selectedItems.map((function(e){return t.getValue(e)}))},hasDisplayedItems:function(){var t=this;return this.hideSelected?this.filteredItems.some((function(e){return!t.hasItem(e)})):this.filteredItems.length>0},currentRange:function(){return null==this.selectedItem?0:String(this.getText(this.selectedItem)).length},filteredItems:function(){var t=this;return!this.isSearching||this.noFilter||null==this.internalSearch?this.allItems:this.allItems.filter((function(e){var n=Object(u["r"])(e,t.itemText),r=null!=n?String(n):"";return t.filter(e,String(t.internalSearch),r)}))},internalSearch:{get:function(){return this.lazySearch},set:function(t){this.lazySearch=t,this.$emit("update:search-input",t)}},isAnyValueAllowed:function(){return!1},isDirty:function(){return this.searchIsDirty||this.selectedItems.length>0},isSearching:function(){return this.multiple&&this.searchIsDirty||this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!this.hideNoData)},$_menuProps:function(){var t=o["a"].options.computed.$_menuProps.call(this);return t.contentClass="v-autocomplete__content ".concat(t.contentClass||"").trim(),Object(r["a"])({},s,{},t)},searchIsDirty:function(){return null!=this.internalSearch},selectedItem:function(){var t=this;return this.multiple?null:this.selectedItems.find((function(e){return t.valueComparator(t.getValue(e),t.getValue(t.internalValue))}))},listData:function(){var t=o["a"].options.computed.listData.call(this);return t.props=Object(r["a"])({},t.props,{items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch}),t}},watch:{filteredItems:"onFilteredItemsChanged",internalValue:"setSearch",isFocused:function(t){t?(document.addEventListener("copy",this.onCopy),this.$refs.input&&this.$refs.input.select()):(document.removeEventListener("copy",this.onCopy),this.updateSelf())},isMenuActive:function(t){!t&&this.hasSlot&&(this.lazySearch=void 0)},items:function(t,e){e&&e.length||!this.hideNoData||!this.isFocused||this.isMenuActive||!t.length||this.activateMenu()},searchInput:function(t){this.lazySearch=t},internalSearch:"onInternalSearchChanged",itemText:"updateSelf"},created:function(){this.setSearch()},destroyed:function(){document.removeEventListener("copy",this.onCopy)},methods:{onFilteredItemsChanged:function(t,e){var n=this;t!==e&&(this.setMenuIndex(-1),this.$nextTick((function(){n.internalSearch&&(1===t.length||n.autoSelectFirst)&&(n.$refs.menu.getTiles(),n.setMenuIndex(0))})))},onInternalSearchChanged:function(){this.updateMenuDimensions()},updateMenuDimensions:function(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex:function(t){this.searchIsDirty||(this.multiple&&t===u["y"].left?-1===this.selectedIndex?this.selectedIndex=this.selectedItems.length-1:this.selectedIndex--:this.multiple&&t===u["y"].right?this.selectedIndex>=this.selectedItems.length-1?this.selectedIndex=-1:this.selectedIndex++:t!==u["y"].backspace&&t!==u["y"].delete||this.deleteCurrentItem())},deleteCurrentItem:function(){var t=this.selectedIndex,e=this.selectedItems[t];if(this.isInteractive&&!this.getDisabled(e)){var n=this.selectedItems.length-1;if(-1!==this.selectedIndex||0===n){var r=this.selectedItems.length,o=t!==r-1?t:t-1,i=this.selectedItems[o];i?this.selectItem(e):this.setValue(this.multiple?[]:void 0),this.selectedIndex=o}else this.selectedIndex=n}},clearableCallback:function(){this.internalSearch=void 0,o["a"].options.methods.clearableCallback.call(this)},genInput:function(){var t=i["a"].options.methods.genInput.call(this);return t.data=Object(a["a"])(t.data,{attrs:{"aria-activedescendant":Object(u["p"])(this.$refs.menu,"activeTile.id"),autocomplete:Object(u["p"])(t.data,"attrs.autocomplete","off")},domProps:{value:this.internalSearch}}),t},genInputSlot:function(){var t=o["a"].options.methods.genInputSlot.call(this);return t.data.attrs.role="combobox",t},genSelections:function(){return this.hasSlot||this.multiple?o["a"].options.methods.genSelections.call(this):[]},onClick:function(t){this.isInteractive&&(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.isAppendInner(t.target)||this.activateMenu())},onInput:function(t){if(!(this.selectedIndex>-1)&&t.target){var e=t.target,n=e.value;e.value&&this.activateMenu(),this.internalSearch=n,this.badInput=e.validity&&e.validity.badInput}},onKeyDown:function(t){var e=t.keyCode;o["a"].options.methods.onKeyDown.call(this,t),this.changeSelectedIndex(e)},onSpaceDown:function(t){},onTabDown:function(t){o["a"].options.methods.onTabDown.call(this,t),this.updateSelf()},onUpDown:function(t){t.preventDefault(),this.activateMenu()},selectItem:function(t){o["a"].options.methods.selectItem.call(this,t),this.setSearch()},setSelectedItems:function(){o["a"].options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch:function(){var t=this;this.$nextTick((function(){t.multiple&&t.internalSearch&&t.isMenuActive||(t.internalSearch=!t.selectedItems.length||t.multiple||t.hasSlot?null:t.getText(t.selectedItem))}))},updateSelf:function(){(this.searchIsDirty||this.internalValue)&&(this.valueComparator(this.internalSearch,this.getValue(this.internalValue))||this.setSearch())},hasItem:function(t){return this.selectedValues.indexOf(this.getValue(t))>-1},onCopy:function(t){var e,n;if(-1!==this.selectedIndex){var r=this.selectedItems[this.selectedIndex],o=this.getText(r);null==(e=t.clipboardData)||e.setData("text/plain",o),null==(n=t.clipboardData)||n.setData("text/vnd.vuetify.autocomplete.item+plain",o),t.preventDefault()}}}});e["a"]=c.extend({name:"v-combobox",props:{delimiters:{type:Array,default:function(){return[]}},returnObject:{type:Boolean,default:!0}},data:function(){return{editingIndex:-1}},computed:{computedCounterValue:function(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot:function(){return o["a"].options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed:function(){return!0},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData)}},methods:{onInternalSearchChanged:function(t){if(t&&this.multiple&&this.delimiters.length){var e=this.delimiters.find((function(e){return t.endsWith(e)}));null!=e&&(this.internalSearch=t.slice(0,t.length-e.length),this.updateTags())}this.updateMenuDimensions()},genInput:function(){var t=c.options.methods.genInput.call(this);return delete t.data.attrs.name,t.data.on.paste=this.onPaste,t},genChipSelection:function(t,e){var n=this,i=o["a"].options.methods.genChipSelection.call(this,t,e);return this.multiple&&(i.componentOptions.listeners=Object(r["a"])({},i.componentOptions.listeners,{dblclick:function(){n.editingIndex=e,n.internalSearch=n.getText(t),n.selectedIndex=-1}})),i},onChipInput:function(t){o["a"].options.methods.onChipInput.call(this,t),this.editingIndex=-1},onEnterDown:function(t){t.preventDefault(),this.getMenuIndex()>-1||this.$nextTick(this.updateSelf)},onFilteredItemsChanged:function(t,e){this.autoSelectFirst&&c.options.methods.onFilteredItemsChanged.call(this,t,e)},onKeyDown:function(t){var e=t.keyCode;o["a"].options.methods.onKeyDown.call(this,t),this.multiple&&e===u["y"].left&&0===this.$refs.input.selectionStart?this.updateSelf():e===u["y"].enter&&this.onEnterDown(t),this.changeSelectedIndex(e)},onTabDown:function(t){if(this.multiple&&this.internalSearch&&-1===this.getMenuIndex())return t.preventDefault(),t.stopPropagation(),this.updateTags();c.options.methods.onTabDown.call(this,t)},selectItem:function(t){this.editingIndex>-1?this.updateEditing():c.options.methods.selectItem.call(this,t)},setSelectedItems:function(){null==this.internalValue||""===this.internalValue?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue:function(t){var e;o["a"].options.methods.setValue.call(this,null!=(e=t)?e:this.internalSearch)},updateEditing:function(){var t=this.internalValue.slice();t[this.editingIndex]=this.internalSearch,this.setValue(t),this.editingIndex=-1},updateCombobox:function(){if(this.searchIsDirty){this.internalSearch!==this.getText(this.internalValue)&&this.setValue();var t=Boolean(this.$scopedSlots.selection)||this.hasChips;t&&(this.internalSearch=void 0)}},updateSelf:function(){this.multiple?this.updateTags():this.updateCombobox()},updateTags:function(){var t=this.getMenuIndex();if(!(t<0)||this.searchIsDirty){if(this.editingIndex>-1)return this.updateEditing();var e=this.selectedItems.indexOf(this.internalSearch);if(e>-1){var n=this.internalValue.slice();n.splice(e,1),this.setValue(n)}if(t>-1)return this.internalSearch=null;this.selectItem(this.internalSearch),this.internalSearch=null}},onPaste:function(t){var e;if(this.multiple&&!this.searchIsDirty){var n=null==(e=t.clipboardData)?void 0:e.getData("text/vnd.vuetify.autocomplete.item+plain");n&&-1===this.findExistingIndex(n)&&(t.preventDefault(),o["a"].options.methods.selectItem.call(this,n))}}}})},"2bfd":function(t,e,n){},"2ca0":function(t,e,n){"use strict";var r=n("23e7"),o=n("06cf").f,i=n("50c4"),a=n("5a34"),u=n("1d80"),s=n("ab13"),c=n("c430"),l="".startsWith,f=Math.min,d=s("startsWith"),h=!c&&!d&&!!function(){var t=o(String.prototype,"startsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!h&&!d},{startsWith:function(t){var e=String(u(this));a(t);var n=i(f(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},"2caf":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("4ae1"),n("3410");function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n("d3b7"),n("25f0");function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var i=n("99de");function a(t){return function(){var e,n=r(t);if(o()){var a=r(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return Object(i["a"])(this,e)}}},"2cf4":function(t,e,n){var r,o,i,a=n("da84"),u=n("d039"),s=n("0366"),c=n("1be4"),l=n("cc12"),f=n("1cdc"),d=n("605d"),h=a.location,p=a.setImmediate,m=a.clearImmediate,g=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,x={},w="onreadystatechange",C=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},S=function(t){return function(){C(t)}},k=function(t){C(t.data)},O=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};p&&m||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return x[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(y),y},m=function(t){delete x[t]},d?r=function(t){g.nextTick(S(t))}:b&&b.now?r=function(t){b.now(S(t))}:v&&!f?(o=new v,i=o.port2,o.port1.onmessage=k,r=s(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&h&&"file:"!==h.protocol&&!u(O)?(r=O,a.addEventListener("message",k,!1)):r=w in l("script")?function(t){c.appendChild(l("script"))[w]=function(){c.removeChild(this),C(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:p,clear:m}},"2d00":function(t,e,n){var r,o,i=n("da84"),a=n("342f"),u=i.process,s=u&&u.versions,c=s&&s.v8;c?(r=c.split("."),o=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},"2db4":function(t,e,n){"use strict";n("caad"),n("a9e3");var r=n("ade3"),o=(n("ca71"),n("8dd9")),i=n("a9ad"),a=n("7560"),u=n("f2e7"),s=n("fe6c"),c=n("58df"),l=n("80d2"),f=n("d9bd");e["a"]=Object(c["a"])(o["a"],i["a"],u["a"],Object(s["b"])(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:function(t){return"string"===typeof t||!1===t}},vertical:Boolean},data:function(){return{activeTimeout:-1}},computed:{classes:function(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground:function(){return!this.text&&!this.outlined},isDark:function(){return this.hasBackground?!this.light:a["a"].options.computed.isDark.call(this)},styles:function(){if(this.absolute)return{};var t=this.$vuetify.application,e=t.bar,n=t.bottom,r=t.footer,o=t.insetFooter,i=t.left,a=t.right,u=t.top;return{paddingBottom:Object(l["g"])(n+r+o),paddingLeft:this.app?Object(l["g"])(i):void 0,paddingRight:this.app?Object(l["g"])(a):void 0,paddingTop:Object(l["g"])(e+u)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted:function(){this.isActive&&this.setTimeout()},created:function(){this.$attrs.hasOwnProperty("auto-height")&&Object(f["e"])("auto-height",this),0==this.timeout&&Object(f["d"])('timeout="0"',"-1",this)},methods:{genActions:function(){return this.$createElement("div",{staticClass:"v-snack__action "},[Object(l["s"])(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent:function(){return this.$createElement("div",{staticClass:"v-snack__content",class:Object(r["a"])({},this.contentClass,!0),attrs:{role:"status","aria-live":"polite"}},[Object(l["s"])(this)])},genWrapper:function(){var t=this.hasBackground?this.setBackgroundColor:this.setTextColor,e=t(this.color,{staticClass:"v-snack__wrapper",class:o["a"].options.computed.classes.call(this),directives:[{name:"show",value:this.isActive}]});return this.$createElement("div",e,[this.genContent(),this.genActions()])},genTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout:function(){var t=this;window.clearTimeout(this.activeTimeout);var e=Number(this.timeout);this.isActive&&![0,-1].includes(e)&&(this.activeTimeout=window.setTimeout((function(){t.isActive=!1}),e))}},render:function(t){return t("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[!1!==this.transition?this.genTransition():this.genWrapper()])}})},"2e4b":function(t,e,n){"use strict";n("99af"),n("4de4"),n("caad"),n("c975"),n("d81d"),n("b0c0"),n("a9e3"),n("ac1f"),n("5319"),n("1276");var r=n("5530"),o=n("3835"),i=(n("d951"),n("9d26")),a=(n("498a"),n("a9ad")),u=n("58df"),s=n("80d2"),c=Object(u["a"])(a["a"]).extend({methods:{genPickerButton:function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=this[t]===e,u=function(n){n.stopPropagation(),r.$emit("update:".concat(Object(s["x"])(t)),e)};return this.$createElement("div",{staticClass:"v-picker__title__btn ".concat(i).trim(),class:{"v-picker__title__btn--active":a,"v-picker__title__btn--readonly":o},on:a||o?void 0:{click:u}},Array.isArray(n)?n:[n])}}}),l=Object(u["a"])(c).extend({name:"v-date-picker-title",props:{date:{type:String,default:""},disabled:Boolean,readonly:Boolean,selectingYear:Boolean,value:{type:String},year:{type:[Number,String],default:""},yearIcon:{type:String}},data:function(){return{isReversing:!1}},computed:{computedTransition:function(){return this.isReversing?"picker-reverse-transition":"picker-transition"}},watch:{value:function(t,e){this.isReversing=t<e}},methods:{genYearIcon:function(){return this.$createElement(i["a"],{props:{dark:!0}},this.yearIcon)},getYearBtn:function(){return this.genPickerButton("selectingYear",!0,[String(this.year),this.yearIcon?this.genYearIcon():null],!1,"v-date-picker-title__year")},genTitleText:function(){return this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("div",{domProps:{innerHTML:this.date||" "},key:this.value})])},genTitleDate:function(){return this.genPickerButton("selectingYear",!1,[this.genTitleText()],!1,"v-date-picker-title__date")}},render:function(t){return t("div",{staticClass:"v-date-picker-title",class:{"v-date-picker-title--disabled":this.disabled}},[this.getYearBtn(),this.genTitleDate()])}}),f=(n("2102"),n("afdd")),d=n("2b0e"),h=d["a"].extend({name:"localable",props:{locale:String},computed:{currentLocale:function(){return this.locale||this.$vuetify.lang.current}}}),p=n("7560"),m=(n("a15b"),n("fb6a"),n("38cf"),function(t,e,n){return e>>=0,t=String(t),n=String(n),t.length>e?String(t):(e-=t.length,e>n.length&&(n+=n.repeat(e/n.length)),n.slice(0,e)+String(t))}),g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return m(t,e,"0")};function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,length:0},r=function(t){var e=t.trim().split(" ")[0].split("-"),n=Object(o["a"])(e,3),r=n[0],i=n[1],a=n[2];return[g(r,4),g(i||1),g(a||1)].join("-")};try{var i=new Intl.DateTimeFormat(t||void 0,e);return function(t){return i.format(new Date("".concat(r(t),"T00:00:00+00:00")))}}catch(a){return n.start||n.length?function(t){return r(t).substr(n.start||0,n.length)}:void 0}}var b=v,y=function(t,e){var n=t.split("-").map(Number),r=Object(o["a"])(n,2),i=r[0],a=r[1];return a+e===0?"".concat(i-1,"-12"):a+e===13?"".concat(i+1,"-01"):"".concat(i,"-").concat(g(a+e))},x=Object(u["a"])(a["a"],h,p["a"]).extend({name:"v-date-picker-header",props:{disabled:Boolean,format:Function,min:String,max:String,nextAriaLabel:String,nextIcon:{type:String,default:"$next"},prevAriaLabel:String,prevIcon:{type:String,default:"$prev"},readonly:Boolean,value:{type:[Number,String],required:!0}},data:function(){return{isReversing:!1}},computed:{formatter:function(){return this.format?this.format:String(this.value).split("-")[1]?b(this.currentLocale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):b(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(t,e){this.isReversing=t<e}},methods:{genBtn:function(t){var e=this,n=t>0?this.nextAriaLabel:this.prevAriaLabel,r=n?this.$vuetify.lang.t(n):void 0,o=this.disabled||t<0&&this.min&&this.calculateChange(t)<this.min||t>0&&this.max&&this.calculateChange(t)>this.max;return this.$createElement(f["a"],{attrs:{"aria-label":r},props:{dark:this.dark,disabled:o,icon:!0,light:this.light},on:{click:function(n){n.stopPropagation(),e.$emit("input",e.calculateChange(t))}}},[this.$createElement(i["a"],t<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(t){var e=String(this.value).split("-").map(Number),n=Object(o["a"])(e,2),r=n[0],i=n[1];return null==i?"".concat(r+t):y(String(this.value),t)},genHeader:function(){var t=this,e=!this.disabled&&(this.color||"accent"),n=this.$createElement("div",this.setTextColor(e,{key:String(this.value)}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return t.$emit("toggle")}}},[this.$slots.default||this.formatter(String(this.value))])]),r=this.$createElement("transition",{props:{name:this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"}},[n]);return this.$createElement("div",{staticClass:"v-date-picker-header__value",class:{"v-date-picker-header__value--disabled":this.disabled}},[r])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:Object(r["a"])({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}}),w=(n("2af1"),n("4d90"),n("2532"),n("2909")),C=(n("c982"),n("c3f0"));n("13d5"),n("b64b"),n("8a79");function S(t,e,n){return Object.keys(t.$listeners).reduce((function(r,o){return o.endsWith(e)&&(r[o.slice(0,-e.length)]=function(e){return t.$emit(o,n,e)}),r}),{})}function k(t,e){return Object.keys(t.$listeners).reduce((function(n,r){return r.endsWith(e)&&(n[r]=t.$listeners[r]),n}),{})}function O(t,e,n,r){return(!r||r(t))&&(!e||t>=e.substr(0,10))&&(!n||t<=n)}var _=n("d9f7"),A=Object(u["a"])(a["a"],h,p["a"]).extend({directives:{Touch:C["a"]},props:{allowedDates:Function,current:String,disabled:Boolean,format:Function,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},min:String,max:String,range:Boolean,readonly:Boolean,scrollable:Boolean,tableDate:{type:String,required:!0},value:[String,Array]},data:function(){return{isReversing:!1,wheelThrottle:null}},computed:{computedTransition:function(){return this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"},displayedMonth:function(){return Number(this.tableDate.split("-")[1])-1},displayedYear:function(){return Number(this.tableDate.split("-")[0])}},watch:{tableDate:function(t,e){this.isReversing=t<e}},mounted:function(){this.wheelThrottle=Object(s["G"])(this.wheel,250)},methods:{genButtonClasses:function(t,e,n,o){return Object(r["a"])({"v-size--default":!e,"v-date-picker-table__current":o,"v-btn--active":n,"v-btn--flat":!t||this.disabled,"v-btn--text":n===o,"v-btn--rounded":e,"v-btn--disabled":!t||this.disabled,"v-btn--outlined":o&&!n},this.themeClasses)},genButtonEvents:function(t,e,n){var r=this;if(!this.disabled)return Object(_["c"])({click:function(){e&&!r.readonly&&r.$emit("input",t)}},S(this,":".concat(n),t))},genButton:function(t,e,n,r){var o=O(t,this.min,this.max,this.allowedDates),i=this.isSelected(t)&&o,a=t===this.current,u=i?this.setBackgroundColor:this.setTextColor,s=(i||a)&&(this.color||"accent");return this.$createElement("button",u(s,{staticClass:"v-btn",class:this.genButtonClasses(o,e,i,a),attrs:{type:"button"},domProps:{disabled:this.disabled||!o},on:this.genButtonEvents(t,o,n)}),[this.$createElement("div",{staticClass:"v-btn__content"},[r(t)]),this.genEvents(t)])},getEventColors:function(t){var e,n=function(t){return Array.isArray(t)?t:[t]},r=[];return e=Array.isArray(this.events)?this.events.includes(t):this.events instanceof Function?this.events(t)||!1:this.events&&this.events[t]||!1,e?(r=!0!==e?n(e):"string"===typeof this.eventColor?[this.eventColor]:"function"===typeof this.eventColor?n(this.eventColor(t)):Array.isArray(this.eventColor)?this.eventColor:n(this.eventColor[t]),r.filter((function(t){return t}))):[]},genEvents:function(t){var e=this,n=this.getEventColors(t);return n.length?this.$createElement("div",{staticClass:"v-date-picker-table__events"},n.map((function(t){return e.$createElement("div",e.setBackgroundColor(t))}))):null},wheel:function(t,e){this.$emit("update:table-date",e(t.deltaY))},touch:function(t,e){this.$emit("update:table-date",e(t))},genTable:function(t,e,n){var o=this,i=this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("table",{key:this.tableDate},e)]),a={name:"touch",value:{left:function(t){return t.offsetX<-15&&o.touch(1,n)},right:function(t){return t.offsetX>15&&o.touch(-1,n)}}};return this.$createElement("div",{staticClass:t,class:Object(r["a"])({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(t){t.preventDefault(),o.wheelThrottle(t,n)}}:void 0,directives:[a]},[i])},isSelected:function(t){if(Array.isArray(this.value)){if(this.range&&2===this.value.length){var e=Object(w["a"])(this.value).sort(),n=Object(o["a"])(e,2),r=n[0],i=n[1];return r<=t&&t<=i}return-1!==this.value.indexOf(t)}return t===this.value}}});function E(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<100&&t>=0?(e=new Date(Date.UTC(t,n,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC(t,n,r)),e}function T(t,e,n){var r=7+e-n,o=(7+E(t,0,r).getUTCDay()-e)%7;return-o+r-1}function D(t,e,n,r){var o=[0,31,59,90,120,151,181,212,243,273,304,334][e];return e>1&&L(t)&&o++,o+n}function I(t,e,n){var r=T(t,e,n),o=T(t+1,e,n),i=L(t)?366:365;return(i-r+o)/7}function B(t,e,n,r,o){var i=T(t,r,o),a=Math.ceil((D(t,e,n,r)-i)/7);return a<1?a+I(t-1,r,o):a>I(t,r,o)?a-I(t,r,o):a}function L(t){return t%4===0&&t%100!==0||t%400===0}var N=Object(u["a"])(A).extend({name:"v-date-picker-date-table",props:{firstDayOfWeek:{type:[String,Number],default:0},localeFirstDayOfYear:{type:[String,Number],default:0},showWeek:Boolean,weekdayFormat:Function},computed:{formatter:function(){return this.format||b(this.currentLocale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||b(this.currentLocale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var t=this,e=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(s["h"])(7).map((function(n){return t.weekdayFormatter("2017-01-".concat(e+n+15))})):Object(s["h"])(7).map((function(t){return["S","M","T","W","T","F","S"][(t+e)%7]}))}},methods:{calculateTableDate:function(t){return y(this.tableDate,Math.sign(t||1))},genTHead:function(){var t=this,e=this.weekDays.map((function(e){return t.$createElement("th",e)}));return this.showWeek&&e.unshift(this.$createElement("th")),this.$createElement("thead",this.genTR(e))},weekDaysBeforeFirstDayOfTheMonth:function(){var t=new Date("".concat(this.displayedYear,"-").concat(g(this.displayedMonth+1),"-01T00:00:00+00:00")),e=t.getUTCDay();return(e-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(t){return B(this.displayedYear,this.displayedMonth,t,parseInt(this.firstDayOfWeek),parseInt(this.localeFirstDayOfYear))},genWeekNumber:function(t){return this.$createElement("td",[this.$createElement("small",{staticClass:"v-date-picker-table--date__week"},String(t).padStart(2,"0"))])},genTBody:function(){var t=[],e=new Date(this.displayedYear,this.displayedMonth+1,0).getDate(),n=[],r=this.weekDaysBeforeFirstDayOfTheMonth();this.showWeek&&n.push(this.genWeekNumber(this.getWeekNumber(1)));while(r--)n.push(this.$createElement("td"));for(r=1;r<=e;r++){var o="".concat(this.displayedYear,"-").concat(g(this.displayedMonth+1),"-").concat(g(r));n.push(this.$createElement("td",[this.genButton(o,!0,"date",this.formatter)])),n.length%(this.showWeek?8:7)===0&&(t.push(this.genTR(n)),n=[],this.showWeek&&r<e&&n.push(this.genWeekNumber(this.getWeekNumber(r+7))))}return n.length&&t.push(this.genTR(n)),this.$createElement("tbody",t)},genTR:function(t){return[this.$createElement("tr",t)]}},render:function(){return this.genTable("v-date-picker-table v-date-picker-table--date",[this.genTHead(),this.genTBody()],this.calculateTableDate)}}),P=(n("cb29"),Object(u["a"])(A).extend({name:"v-date-picker-month-table",computed:{formatter:function(){return this.format||b(this.currentLocale,{month:"short",timeZone:"UTC"},{start:5,length:2})}},methods:{calculateTableDate:function(t){return"".concat(parseInt(this.tableDate,10)+Math.sign(t||1))},genTBody:function(){for(var t=this,e=[],n=Array(3).fill(null),r=12/n.length,o=function(r){var o=n.map((function(e,o){var i=r*n.length+o,a="".concat(t.displayedYear,"-").concat(g(i+1));return t.$createElement("td",{key:i},[t.genButton(a,!1,"month",t.formatter)])}));e.push(t.$createElement("tr",{key:r},o))},i=0;i<r;i++)o(i);return this.$createElement("tbody",e)}},render:function(){return this.genTable("v-date-picker-table v-date-picker-table--month",[this.genTBody()],this.calculateTableDate)}})),M=(n("02f0"),Object(u["a"])(a["a"],h).extend({name:"v-date-picker-years",props:{format:Function,min:[Number,String],max:[Number,String],readonly:Boolean,value:[Number,String]},data:function(){return{defaultColor:"primary"}},computed:{formatter:function(){return this.format||b(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},mounted:function(){var t=this;setTimeout((function(){var e=t.$el.getElementsByClassName("active")[0];e?t.$el.scrollTop=e.offsetTop-t.$el.offsetHeight/2+e.offsetHeight/2:t.min&&!t.max?t.$el.scrollTop=t.$el.scrollHeight:!t.min&&t.max?t.$el.scrollTop=0:t.$el.scrollTop=t.$el.scrollHeight/2-t.$el.offsetHeight/2}))},methods:{genYearItem:function(t){var e=this,n=this.formatter("".concat(t)),r=parseInt(this.value,10)===t,o=r&&(this.color||"primary");return this.$createElement("li",this.setTextColor(o,{key:t,class:{active:r},on:Object(_["c"])({click:function(){return e.$emit("input",t)}},S(this,":year",t))}),n)},genYearItems:function(){for(var t=[],e=this.value?parseInt(this.value,10):(new Date).getFullYear(),n=this.max?parseInt(this.max,10):e+100,r=Math.min(n,this.min?parseInt(this.min,10):e-100),o=n;o>=r;o--)t.push(this.genYearItem(o));return t}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})),j=(n("0481"),n("4069"),n("e53c"),n("615b"),n("c995")),R=Object(u["a"])(a["a"],j["a"],p["a"]).extend({name:"v-picker",props:{flat:Boolean,fullWidth:Boolean,landscape:Boolean,noTitle:Boolean,transition:{type:String,default:"fade-transition"},width:{type:[Number,String],default:290}},computed:{computedTitleColor:function(){var t=!this.isDark&&(this.color||"primary");return this.color||t}},methods:{genTitle:function(){return this.$createElement("div",this.setBackgroundColor(this.computedTitleColor,{staticClass:"v-picker__title",class:{"v-picker__title--landscape":this.landscape}}),this.$slots.title)},genBodyTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},this.$slots.default)},genBody:function(){return this.$createElement("div",{staticClass:"v-picker__body",class:Object(r["a"])({"v-picker__body--no-title":this.noTitle},this.themeClasses),style:this.fullWidth?void 0:{width:Object(s["g"])(this.width)}},[this.genBodyTransition()])},genActions:function(){return this.$createElement("div",{staticClass:"v-picker__actions v-card__actions",class:{"v-picker__actions--no-title":this.noTitle}},this.$slots.actions)}},render:function(t){return t("div",{staticClass:"v-picker v-card",class:Object(r["a"])({"v-picker--flat":this.flat,"v-picker--landscape":this.landscape,"v-picker--full-width":this.fullWidth},this.themeClasses,{},this.elevationClasses)},[this.$slots.title?this.genTitle():null,this.genBody(),this.$slots.actions?this.genActions():null])}}),$=R,F=Object(u["a"])(a["a"],j["a"],p["a"]).extend({name:"picker",props:{flat:Boolean,fullWidth:Boolean,headerColor:String,landscape:Boolean,noTitle:Boolean,width:{type:[Number,String],default:290}},methods:{genPickerTitle:function(){return null},genPickerBody:function(){return null},genPickerActionsSlot:function(){return this.$scopedSlots.default?this.$scopedSlots.default({save:this.save,cancel:this.cancel}):this.$slots.default},genPicker:function(t){var e=[];if(!this.noTitle){var n=this.genPickerTitle();n&&e.push(n)}var r=this.genPickerBody();return r&&e.push(r),e.push(this.$createElement("template",{slot:"actions"},[this.genPickerActionsSlot()])),this.$createElement($,{staticClass:t,props:{color:this.headerColor||this.color,dark:this.dark,elevation:this.elevation,flat:this.flat,fullWidth:this.fullWidth,landscape:this.landscape,light:this.light,width:this.width,noTitle:this.noTitle}},e)}}}),V=(n("53ca"),[0,31,28,31,30,31,30,31,31,30,31,30,31]),H=[0,31,29,31,30,31,30,31,31,30,31,30,31];function z(t,e){return L(t)?H[e]:V[e]}var U=n("d9bd");function W(t,e){var n=t.split("-"),r=Object(o["a"])(n,3),i=r[0],a=r[1],u=void 0===a?1:a,s=r[2],c=void 0===s?1:s;return"".concat(i,"-").concat(g(u),"-").concat(g(c)).substr(0,{date:10,month:7,year:4}[e])}e["a"]=Object(u["a"])(h,F).extend({name:"v-date-picker",props:{allowedDates:Function,dayFormat:Function,disabled:Boolean,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},firstDayOfWeek:{type:[String,Number],default:0},headerDateFormat:Function,localeFirstDayOfYear:{type:[String,Number],default:0},max:String,min:String,monthFormat:Function,multiple:Boolean,nextIcon:{type:String,default:"$next"},nextMonthAriaLabel:{type:String,default:"$vuetify.datePicker.nextMonthAriaLabel"},nextYearAriaLabel:{type:String,default:"$vuetify.datePicker.nextYearAriaLabel"},pickerDate:String,prevIcon:{type:String,default:"$prev"},prevMonthAriaLabel:{type:String,default:"$vuetify.datePicker.prevMonthAriaLabel"},prevYearAriaLabel:{type:String,default:"$vuetify.datePicker.prevYearAriaLabel"},range:Boolean,reactive:Boolean,readonly:Boolean,scrollable:Boolean,showCurrent:{type:[Boolean,String],default:!0},selectedItemsText:{type:String,default:"$vuetify.datePicker.itemsSelected"},showWeek:Boolean,titleDateFormat:Function,type:{type:String,default:"date",validator:function(t){return["date","month"].includes(t)}},value:[Array,String],weekdayFormat:Function,yearFormat:Function,yearIcon:String},data:function(){var t=this,e=new Date;return{activePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:e,tableDate:function(){if(t.pickerDate)return t.pickerDate;var n=Object(s["I"])(t.value),r=n[n.length-1]||("string"===typeof t.showCurrent?t.showCurrent:"".concat(e.getFullYear(),"-").concat(e.getMonth()+1));return W(r,"date"===t.type?"month":"year")}()}},computed:{multipleValue:function(){return Object(s["I"])(this.value)},isMultiple:function(){return this.multiple||this.range},lastValue:function(){return this.isMultiple?this.multipleValue[this.multipleValue.length-1]:this.value},selectedMonths:function(){return this.value&&"month"!==this.type?this.isMultiple?this.multipleValue.map((function(t){return t.substr(0,7)})):this.value.substr(0,7):this.value},current:function(){return!0===this.showCurrent?W("".concat(this.now.getFullYear(),"-").concat(this.now.getMonth()+1,"-").concat(this.now.getDate()),this.type):this.showCurrent||null},inputDate:function(){return"date"===this.type?"".concat(this.inputYear,"-").concat(g(this.inputMonth+1),"-").concat(g(this.inputDay)):"".concat(this.inputYear,"-").concat(g(this.inputMonth+1))},tableMonth:function(){return Number((this.pickerDate||this.tableDate).split("-")[1])-1},tableYear:function(){return Number((this.pickerDate||this.tableDate).split("-")[0])},minMonth:function(){return this.min?W(this.min,"month"):null},maxMonth:function(){return this.max?W(this.max,"month"):null},minYear:function(){return this.min?W(this.min,"year"):null},maxYear:function(){return this.max?W(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||b(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4}),titleDate:this.titleDateFormat||(this.isMultiple?this.defaultTitleMultipleDateFormatter:this.defaultTitleDateFormatter)}},defaultTitleMultipleDateFormatter:function(){var t=this;return function(e){return e.length?1===e.length?t.defaultTitleDateFormatter(e[0]):t.$vuetify.lang.t(t.selectedItemsText,e.length):"-"}},defaultTitleDateFormatter:function(){var t={year:{year:"numeric",timeZone:"UTC"},month:{month:"long",timeZone:"UTC"},date:{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}},e=b(this.currentLocale,t[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),n=function(t){return e(t).replace(/([^\d\s])([\d])/g,(function(t,e,n){return"".concat(e," ").concat(n)})).replace(", ",",<br>")};return this.landscape?n:e}},watch:{tableDate:function(t,e){var n="month"===this.type?"year":"month";this.isReversing=W(t,n)<W(e,n),this.$emit("update:picker-date",t)},pickerDate:function(t){t?this.tableDate=t:this.lastValue&&"date"===this.type?this.tableDate=W(this.lastValue,"month"):this.lastValue&&"month"===this.type&&(this.tableDate=W(this.lastValue,"year"))},value:function(t,e){this.checkMultipleProp(),this.setInputDate(),(this.isMultiple||!this.value||this.pickerDate)&&(!this.isMultiple||!this.multipleValue.length||e&&e.length||this.pickerDate)||(this.tableDate=W(this.inputDate,"month"===this.type?"year":"month"))},type:function(t){if(this.activePicker=t.toUpperCase(),this.value&&this.value.length){var e=this.multipleValue.map((function(e){return W(e,t)})).filter(this.isDateAllowed);this.$emit("input",this.isMultiple?e:e[0])}}},created:function(){this.checkMultipleProp(),this.pickerDate!==this.tableDate&&this.$emit("update:picker-date",this.tableDate),this.setInputDate()},methods:{emitInput:function(t){if(this.range)if(1!==this.multipleValue.length)this.$emit("input",[t]);else{var e=[this.multipleValue[0],t];this.$emit("input",e),this.$emit("change",e)}else{var n=this.multiple?-1===this.multipleValue.indexOf(t)?this.multipleValue.concat([t]):this.multipleValue.filter((function(e){return e!==t})):t;this.$emit("input",n),this.multiple||this.$emit("change",t)}},checkMultipleProp:function(){if(null!=this.value){var t=this.value.constructor.name,e=this.isMultiple?"Array":"String";t!==e&&Object(U["c"])("Value must be ".concat(this.isMultiple?"an":"a"," ").concat(e,", got ").concat(t),this)}},isDateAllowed:function(t){return O(t,this.min,this.max,this.allowedDates)},yearClick:function(t){this.inputYear=t,"month"===this.type?this.tableDate="".concat(t):this.tableDate="".concat(t,"-").concat(g((this.tableMonth||0)+1)),this.activePicker="MONTH",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)},monthClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,"date"===this.type?(this.inputDay&&(this.inputDay=Math.min(this.inputDay,z(this.inputYear,this.inputMonth+1))),this.tableDate=t,this.activePicker="DATE",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)):this.emitInput(this.inputDate)},dateClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,this.inputDay=parseInt(t.split("-")[2],10),this.emitInput(this.inputDate)},genPickerTitle:function(){var t=this;return this.$createElement(l,{props:{date:this.value?this.formatters.titleDate(this.isMultiple?this.multipleValue:this.value):"",disabled:this.disabled,readonly:this.readonly,selectingYear:"YEAR"===this.activePicker,year:this.formatters.year(this.multipleValue.length?"".concat(this.inputYear):this.tableDate),yearIcon:this.yearIcon,value:this.multipleValue[0]},slot:"title",on:{"update:selecting-year":function(e){return t.activePicker=e?"YEAR":t.type.toUpperCase()}}})},genTableHeader:function(){var t=this;return this.$createElement(x,{props:{nextIcon:this.nextIcon,color:this.color,dark:this.dark,disabled:this.disabled,format:this.headerDateFormat,light:this.light,locale:this.locale,min:"DATE"===this.activePicker?this.minMonth:this.minYear,max:"DATE"===this.activePicker?this.maxMonth:this.maxYear,nextAriaLabel:"DATE"===this.activePicker?this.nextMonthAriaLabel:this.nextYearAriaLabel,prevAriaLabel:"DATE"===this.activePicker?this.prevMonthAriaLabel:this.prevYearAriaLabel,prevIcon:this.prevIcon,readonly:this.readonly,value:"DATE"===this.activePicker?"".concat(g(this.tableYear,4),"-").concat(g(this.tableMonth+1)):"".concat(g(this.tableYear,4))},on:{toggle:function(){return t.activePicker="DATE"===t.activePicker?"MONTH":"YEAR"},input:function(e){return t.tableDate=e}}})},genDateTable:function(){var t=this;return this.$createElement(N,{props:{allowedDates:this.allowedDates,color:this.color,current:this.current,dark:this.dark,disabled:this.disabled,events:this.events,eventColor:this.eventColor,firstDayOfWeek:this.firstDayOfWeek,format:this.dayFormat,light:this.light,locale:this.locale,localeFirstDayOfYear:this.localeFirstDayOfYear,min:this.min,max:this.max,range:this.range,readonly:this.readonly,scrollable:this.scrollable,showWeek:this.showWeek,tableDate:"".concat(g(this.tableYear,4),"-").concat(g(this.tableMonth+1)),value:this.value,weekdayFormat:this.weekdayFormat},ref:"table",on:Object(r["a"])({input:this.dateClick,"update:table-date":function(e){return t.tableDate=e}},k(this,":date"))})},genMonthTable:function(){var t=this;return this.$createElement(P,{props:{allowedDates:"month"===this.type?this.allowedDates:null,color:this.color,current:this.current?W(this.current,"month"):null,dark:this.dark,disabled:this.disabled,events:"month"===this.type?this.events:null,eventColor:"month"===this.type?this.eventColor:null,format:this.monthFormat,light:this.light,locale:this.locale,min:this.minMonth,max:this.maxMonth,range:this.range,readonly:this.readonly&&"month"===this.type,scrollable:this.scrollable,value:this.selectedMonths,tableDate:"".concat(g(this.tableYear,4))},ref:"table",on:Object(r["a"])({input:this.monthClick,"update:table-date":function(e){return t.tableDate=e}},k(this,":month"))})},genYears:function(){return this.$createElement(M,{props:{color:this.color,format:this.yearFormat,locale:this.locale,min:this.minYear,max:this.maxYear,value:this.tableYear},on:Object(r["a"])({input:this.yearClick},k(this,":year"))})},genPickerBody:function(){var t="YEAR"===this.activePicker?[this.genYears()]:[this.genTableHeader(),"DATE"===this.activePicker?this.genDateTable():this.genMonthTable()];return this.$createElement("div",{key:this.activePicker},t)},setInputDate:function(){if(this.lastValue){var t=this.lastValue.split("-");this.inputYear=parseInt(t[0],10),this.inputMonth=parseInt(t[1],10)-1,"date"===this.type&&(this.inputDay=parseInt(t[2],10))}else this.inputYear=this.inputYear||this.now.getFullYear(),this.inputMonth=null==this.inputMonth?this.inputMonth:this.now.getMonth(),this.inputDay=this.inputDay||this.now.getDate()}},render:function(){return this.genPicker("v-picker--date")}})},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2fa4":function(t,e,n){"use strict";n("20f6");var r=n("80d2");e["a"]=Object(r["i"])("spacer","div","v-spacer")},"2fe1":function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n("2b0e"); 8 /** 9 * vue-class-component v7.2.6 10 * (c) 2015-present Evan You 11 * @license MIT 12 */function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return u(t)||s(t)||c()}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function l(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function f(t,e){d(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){d(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){d(t,e,n)}))}function d(t,e,n){var r=n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e);r.forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var h={__proto__:[]},p=h instanceof Array;function m(t){return function(e,n,r){var o="function"===typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof r&&(r=void 0),o.__decorators__.push((function(e){return t(e,n,r)}))}}function g(t){var e=o(t);return null==t||"object"!==e&&"function"!==e}function v(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var b=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(b.indexOf(t)>-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){return i({},t,r.value)}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return v(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(e)})),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),u=a instanceof r["a"]?a.constructor:r["a"],s=u.extend(e);return w(s,t,u),l()&&f(s,t),s}var x={prototype:!0,arguments:!0,callee:!0,caller:!0};function w(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!x[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var i=Object.getOwnPropertyDescriptor(e,r);if(!p){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!g(i.value)&&a&&a.value===i.value)return}0,Object.defineProperty(t,r,i)}}}))}function C(t){return"function"===typeof t?y(t):function(e){return y(e,t)}}C.registerHooks=function(t){b.push.apply(b,a(t))},e["b"]=C},"30b5":function(t,e,n){"use strict";var r=n("c532");function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},3129:function(t,e,n){"use strict";n("a630"),n("c975"),n("d81d"),n("ac1f"),n("3ca3"),n("5319"),n("1276");var r=n("3835"),o=n("5530"),i=(n("1f09"),n("c995")),a=n("24b2"),u=n("7560"),s=n("58df"),c=n("80d2");e["a"]=Object(s["a"])(i["a"],a["a"],u["a"]).extend({name:"VSkeletonLoader",props:{boilerplate:Boolean,loading:Boolean,tile:Boolean,transition:String,type:String,types:{type:Object,default:function(){return{}}}},computed:{attrs:function(){return this.isLoading?this.boilerplate?{}:Object(o["a"])({"aria-busy":!0,"aria-live":"polite",role:"alert"},this.$attrs):this.$attrs},classes:function(){return Object(o["a"])({"v-skeleton-loader--boilerplate":this.boilerplate,"v-skeleton-loader--is-loading":this.isLoading,"v-skeleton-loader--tile":this.tile},this.themeClasses,{},this.elevationClasses)},isLoading:function(){return!("default"in this.$scopedSlots)||this.loading},rootTypes:function(){return Object(o["a"])({actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, card-heading","card-avatar":"image, list-item-avatar","card-heading":"heading",chip:"chip","date-picker":"list-item, card-heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",paragraph:"text@3",sentences:"text@2",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"heading, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"table-cell@6","table-cell":"text","table-tfoot":"text@2, avatar@2",text:"text"},this.types)}},methods:{genBone:function(t,e){return this.$createElement("div",{staticClass:"v-skeleton-loader__".concat(t," v-skeleton-loader__bone")},e)},genBones:function(t){var e=this,n=t.split("@"),o=Object(r["a"])(n,2),i=o[0],a=o[1],u=function(){return e.genStructure(i)};return Array.from({length:a}).map(u)},genStructure:function(t){var e=[];t=t||this.type||"";var n=this.rootTypes[t]||"";if(t===n);else{if(t.indexOf(",")>-1)return this.mapBones(t);if(t.indexOf("@")>-1)return this.genBones(t);n.indexOf(",")>-1?e=this.mapBones(n):n.indexOf("@")>-1?e=this.genBones(n):n&&e.push(this.genStructure(n))}return[this.genBone(t,e)]},genSkeleton:function(){var t=[];return this.isLoading?t.push(this.genStructure()):t.push(Object(c["s"])(this)),this.transition?this.$createElement("transition",{props:{name:this.transition},on:{afterEnter:this.resetStyles,beforeEnter:this.onBeforeEnter,beforeLeave:this.onBeforeLeave,leaveCancelled:this.resetStyles}},t):t},mapBones:function(t){return t.replace(/\s/g,"").split(",").map(this.genStructure)},onBeforeEnter:function(t){this.resetStyles(t),this.isLoading&&(t._initialStyle={display:t.style.display,transition:t.style.transition},t.style.setProperty("transition","none","important"))},onBeforeLeave:function(t){t.style.setProperty("display","none","important")},resetStyles:function(t){t._initialStyle&&(t.style.display=t._initialStyle.display||"",t.style.transition=t._initialStyle.transition,delete t._initialStyle)}},render:function(t){return t("div",{staticClass:"v-skeleton-loader",attrs:this.attrs,on:this.$listeners,class:this.classes,style:this.isLoading?this.measurableStyles:void 0},[this.genSkeleton()])}})},"31ce":function(t,e,n){},"31d5":function(t,e,n){"use strict";t.exports=function(){function t(t,e,n,r,o){return t<e||n<e?t>n?n+1:t+1:r===o?e:e+1}return function(e,n){if(e===n)return 0;if(e.length>n.length){var r=e;e=n,n=r}var o=e.length,i=n.length;while(o>0&&e.charCodeAt(o-1)===n.charCodeAt(i-1))o--,i--;var a=0;while(a<o&&e.charCodeAt(a)===n.charCodeAt(a))a++;if(o-=a,i-=a,0===o||i<3)return i;var u,s,c,l,f,d,h,p,m,g,v,b,y=0,x=[];for(u=0;u<o;u++)x.push(u+1),x.push(e.charCodeAt(a+u));for(var w=x.length-1;y<i-3;)for(m=n.charCodeAt(a+(s=y)),g=n.charCodeAt(a+(c=y+1)),v=n.charCodeAt(a+(l=y+2)),b=n.charCodeAt(a+(f=y+3)),d=y+=4,u=0;u<w;u+=2)h=x[u],p=x[u+1],s=t(h,s,c,m,p),c=t(s,c,l,g,p),l=t(c,l,f,v,p),d=t(l,f,d,b,p),x[u]=d,f=l,l=c,c=s,s=h;for(;y<i;)for(m=n.charCodeAt(a+(s=y)),d=++y,u=0;u<w;u+=2)h=x[u],x[u]=d=t(h,s,d,m,x[u+1]),s=h;return d}}()},3206:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s}));n("99af");var r=n("ade3"),o=n("2b0e"),i=n("d9bd");function a(t,e){return function(){return Object(i["c"])("The ".concat(t," component must be used inside a ").concat(e))}}function u(t,e,n){var i=e&&n?{register:a(e,n),unregister:a(e,n)}:null;return o["a"].extend({name:"registrable-inject",inject:Object(r["a"])({},t,{default:i})})}function s(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o["a"].extend({name:"registrable-provide",provide:function(){return Object(r["a"])({},t,e?this:{register:this.register,unregister:this.unregister})}})}},"326d":function(t,e,n){"use strict";var r=n("e449");e["a"]=r["a"]},3280:function(t,e,n){"use strict";var r=n("ebb5"),o=n("e58c"),i=r.aTypedArray,a=r.exportTypedArrayMethod;a("lastIndexOf",(function(t){return o.apply(i(this),arguments)}))},"33e9":function(t,e,n){},3408:function(t,e,n){},3410:function(t,e,n){var r=n("23e7"),o=n("d039"),i=n("7b0b"),a=n("e163"),u=n("e177"),s=o((function(){a(1)}));r({target:"Object",stat:!0,forced:s,sham:!u},{getPrototypeOf:function(t){return a(i(t))}})},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"34c3":function(t,e,n){"use strict";n("498a");var r=n("2b0e");e["a"]=r["a"].extend({name:"v-list-item-icon",functional:!0,render:function(t,e){var n=e.data,r=e.children;return n.staticClass="v-list-item__icon ".concat(n.staticClass||"").trim(),t("div",n,r)}})},"34ef":function(t,e,n){"use strict";var r=n("cc20");e["a"]=r["a"]},"35a1":function(t,e,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),a=i("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||o[r(t)]}},"368e":function(t,e,n){},"36a7":function(t,e,n){},"37c6":function(t,e,n){"use strict";var r=n("8e36");e["a"]=r["a"]},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){i(t);var n,r=a(e),u=r.length,s=0;while(u>s)o.f(t,n=r[s++],e[n]);return t}},3835:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return u}));n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(s){o=!0,i=s}finally{try{r||null==u["return"]||u["return"]()}finally{if(o)throw i}}return n}}var i=n("06c5");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){return r(t)||o(t,e)||Object(i["a"])(t,e)||a()}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38cb":function(t,e,n){"use strict";n("fb6a"),n("a9e3");var r=n("53ca"),o=n("a9ad"),i=n("7560"),a=n("3206"),u=n("80d2"),s=n("d9bd"),c=n("58df"),l=Object(c["a"])(o["a"],Object(a["a"])("form"),i["a"]);e["a"]=l.extend({name:"validatable",props:{disabled:Boolean,error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:function(){return[]}},messages:{type:[String,Array],default:function(){return[]}},readonly:Boolean,rules:{type:Array,default:function(){return[]}},success:Boolean,successMessages:{type:[String,Array],default:function(){return[]}},validateOnBlur:Boolean,value:{required:!1}},data:function(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor:function(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError:function(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",t)}},isDisabled:function(){return this.disabled||!!this.form&&this.form.disabled},isInteractive:function(){return!this.isDisabled&&!this.isReadonly},isReadonly:function(){return this.readonly||!!this.form&&this.form.readonly},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(t,e){Object(u["j"])(t,e)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(t){t||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting:function(){var t=this;setTimeout((function(){t.hasInput=!1,t.hasFocused=!1,t.isResetting=!1,t.validate()}),0)},hasError:function(t){this.shouldValidate&&this.$emit("update:error",t)},value:function(t){this.lazyValue=t}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(t){return t?Array.isArray(t)?t:[t]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:void 0},resetValidation:function(){this.isResetting=!0},validate:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0,n=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(var o=0;o<this.rules.length;o++){var i=this.rules[o],a="function"===typeof i?i(e):i;!1===a||"string"===typeof a?n.push(a||""):"boolean"!==typeof a&&Object(s["b"])("Rules should return a string or boolean, received '".concat(Object(r["a"])(a),"' instead"),this)}return this.errorBucket=n,this.valid=0===n.length,this.valid}}})},"38cf":function(t,e,n){var r=n("23e7"),o=n("1148");r({target:"String",proto:!0},{repeat:o})},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"3a2f":function(t,e,n){"use strict";n("a9e3");var r=n("ade3"),o=(n("9734"),n("4ad4")),i=n("a9ad"),a=n("16b7"),u=n("b848"),s=n("75eb"),c=n("f573"),l=n("f2e7"),f=n("80d2"),d=n("d9bd"),h=n("58df");e["a"]=Object(h["a"])(i["a"],a["a"],u["a"],s["a"],c["a"],l["a"]).extend({name:"v-tooltip",props:{closeDelay:{type:[Number,String],default:0},disabled:Boolean,fixed:{type:Boolean,default:!0},openDelay:{type:[Number,String],default:0},openOnHover:{type:Boolean,default:!0},tag:{type:String,default:"span"},transition:String},data:function(){return{calculatedMinWidth:0,closeDependents:!1}},computed:{calculatedLeft:function(){var t=this.dimensions,e=t.activator,n=t.content,r=!this.bottom&&!this.left&&!this.top&&!this.right,o=!1!==this.attach?e.offsetLeft:e.left,i=0;return this.top||this.bottom||r?i=o+e.width/2-n.width/2:(this.left||this.right)&&(i=o+(this.right?e.width:-n.width)+(this.right?10:-10)),this.nudgeLeft&&(i-=parseInt(this.nudgeLeft)),this.nudgeRight&&(i+=parseInt(this.nudgeRight)),"".concat(this.calcXOverflow(i,this.dimensions.content.width),"px")},calculatedTop:function(){var t=this.dimensions,e=t.activator,n=t.content,r=!1!==this.attach?e.offsetTop:e.top,o=0;return this.top||this.bottom?o=r+(this.bottom?e.height:-n.height)+(this.bottom?10:-10):(this.left||this.right)&&(o=r+e.height/2-n.height/2),this.nudgeTop&&(o-=parseInt(this.nudgeTop)),this.nudgeBottom&&(o+=parseInt(this.nudgeBottom)),"".concat(this.calcYOverflow(o+this.pageYOffset),"px")},classes:function(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left,"v-tooltip--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},computedTransition:function(){return this.transition?this.transition:this.isActive?"scale-transition":"fade-transition"},offsetY:function(){return this.top||this.bottom},offsetX:function(){return this.left||this.right},styles:function(){return{left:this.calculatedLeft,maxWidth:Object(f["g"])(this.maxWidth),minWidth:Object(f["g"])(this.minWidth),opacity:this.isActive?.9:0,top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount:function(){var t=this;this.$nextTick((function(){t.value&&t.callActivate()}))},mounted:function(){"v-slot"===Object(f["t"])(this,"activator",!0)&&Object(d["b"])("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'",this)},methods:{activate:function(){this.updateDimensions(),requestAnimationFrame(this.startTransition)},deactivate:function(){this.runDelay("close")},genActivatorListeners:function(){var t=this,e=o["a"].options.methods.genActivatorListeners.call(this);return e.focus=function(e){t.getActivator(e),t.runDelay("open")},e.blur=function(e){t.getActivator(e),t.runDelay("close")},e.keydown=function(e){e.keyCode===f["y"].esc&&(t.getActivator(e),t.runDelay("close"))},e},genActivatorAttributes:function(){return{"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genTransition:function(){var t=this.genContent();return this.computedTransition?this.$createElement("transition",{props:{name:this.computedTransition}},[t]):t},genContent:function(){var t;return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-tooltip__content",class:(t={},Object(r["a"])(t,this.contentClass,!0),Object(r["a"])(t,"menuable__content__active",this.isActive),Object(r["a"])(t,"v-tooltip__content--fixed",this.activatorFixed),t),style:this.styles,attrs:this.getScopeIdAttrs(),directives:[{name:"show",value:this.isContentActive}],ref:"content"}),this.getContentSlot())}},render:function(t){var e=this;return t(this.tag,{staticClass:"v-tooltip",class:this.classes},[this.showLazyContent((function(){return[e.genTransition()]})),this.genActivator()])}})},"3a66":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("fe6c"),o=n("58df");function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(o["a"])(Object(r["b"])(["absolute","fixed"])).extend({name:"applicationable",props:{app:Boolean},computed:{applicationProperty:function(){return t}},watch:{app:function(t,e){e?this.removeApplication(!0):this.callUpdate()},applicationProperty:function(t,e){this.$vuetify.application.unregister(this._uid,e)}},activated:function(){this.callUpdate()},created:function(){for(var t=0,n=e.length;t<n;t++)this.$watch(e[t],this.callUpdate);this.callUpdate()},mounted:function(){this.callUpdate()},deactivated:function(){this.removeApplication()},destroyed:function(){this.removeApplication()},methods:{callUpdate:function(){this.app&&this.$vuetify.application.register(this._uid,this.applicationProperty,this.updateApplication())},removeApplication:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(t||this.app)&&this.$vuetify.application.unregister(this._uid,this.applicationProperty)},updateApplication:function(){return 0}}})}},"3a7b":function(t,e,n){"use strict";var r=n("ebb5"),o=n("b727").findIndex,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},"3ad0":function(t,e,n){},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3c5d":function(t,e,n){"use strict";var r=n("ebb5"),o=n("50c4"),i=n("182d"),a=n("7b0b"),u=n("d039"),s=r.aTypedArray,c=r.exportTypedArrayMethod,l=u((function(){new Int8Array(1).set({})}));c("set",(function(t){s(this);var e=i(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(t),u=o(r.length),c=0;if(u+e>n)throw RangeError("Wrong length");while(c<u)this[e+c]=r[c++]}),l)},"3c93":function(t,e,n){},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),a="String Iterator",u=o.set,s=o.getterFor(a);i(String,"String",(function(t){u(this,{type:a,string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},"3ea3":function(t,e,n){var r=n("23e7"),o=n("f748"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},"3f8c":function(t,e){t.exports={}},"3fcc":function(t,e,n){"use strict";var r=n("ebb5"),o=n("b727").map,i=n("4840"),a=r.aTypedArray,u=r.aTypedArrayConstructor,s=r.exportTypedArrayMethod;s("map",(function(t){return o(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(u(i(t,t.constructor)))(e)}))}))},4069:function(t,e,n){var r=n("44d2");r("flat")},"408a":function(t,e,n){var r=n("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},"40dc":function(t,e,n){"use strict";n("a9e3"),n("b680"),n("c7cd");var r=n("5530"),o=(n("8b0d"),n("71d9")),i=n("53ca");function a(t,e){var n=e.modifiers||{},r=n.self,o=void 0!==r&&r,a=e.value,u="object"===Object(i["a"])(a)&&a.options||{passive:!0},s="function"===typeof a||"handleEvent"in a?a:a.handler,c=o?t:e.arg?document.querySelector(e.arg):window;c&&(c.addEventListener("scroll",s,u),t._onScroll={handler:s,options:u,target:o?void 0:c})}function u(t){if(t._onScroll){var e=t._onScroll,n=e.handler,r=e.options,o=e.target,i=void 0===o?t:o;i.removeEventListener("scroll",n,r),delete t._onScroll}}var s={inserted:a,unbind:u},c=s,l=n("3a66"),f=n("d9bd"),d=n("2b0e"),h=d["a"].extend({name:"scrollable",directives:{Scroll:s},props:{scrollTarget:String,scrollThreshold:[String,Number]},data:function(){return{currentScroll:0,currentThreshold:0,isActive:!1,isScrollingUp:!1,previousScroll:0,savedScroll:0,target:null}},computed:{canScroll:function(){return"undefined"!==typeof window},computedScrollThreshold:function(){return this.scrollThreshold?Number(this.scrollThreshold):300}},watch:{isScrollingUp:function(){this.savedScroll=this.savedScroll||this.currentScroll},isActive:function(){this.savedScroll=0}},mounted:function(){this.scrollTarget&&(this.target=document.querySelector(this.scrollTarget),this.target||Object(f["c"])("Unable to locate element with identifier ".concat(this.scrollTarget),this))},methods:{onScroll:function(){var t=this;this.canScroll&&(this.previousScroll=this.currentScroll,this.currentScroll=this.target?this.target.scrollTop:window.pageYOffset,this.isScrollingUp=this.currentScroll<this.previousScroll,this.currentThreshold=Math.abs(this.currentScroll-this.computedScrollThreshold),this.$nextTick((function(){Math.abs(t.currentScroll-t.savedScroll)>t.computedScrollThreshold&&t.thresholdMet()})))},thresholdMet:function(){}}}),p=n("d10f"),m=n("f2e7"),g=n("80d2"),v=n("58df"),b=Object(v["a"])(o["a"],h,p["a"],m["a"],Object(l["a"])("top",["clippedLeft","clippedRight","computedHeight","invertedScroll","isExtended","isProminent","value"]));e["a"]=b.extend({name:"v-app-bar",directives:{Scroll:c},props:{clippedLeft:Boolean,clippedRight:Boolean,collapseOnScroll:Boolean,elevateOnScroll:Boolean,fadeImgOnScroll:Boolean,hideOnScroll:Boolean,invertedScroll:Boolean,scrollOffScreen:Boolean,shrinkOnScroll:Boolean,value:{type:Boolean,default:!0}},data:function(){return{isActive:this.value}},computed:{applicationProperty:function(){return this.bottom?"bottom":"top"},canScroll:function(){return h.options.computed.canScroll.call(this)&&(this.invertedScroll||this.elevateOnScroll||this.hideOnScroll||this.collapseOnScroll||this.isBooted||!this.value)},classes:function(){return Object(r["a"])({},o["a"].options.computed.classes.call(this),{"v-toolbar--collapse":this.collapse||this.collapseOnScroll,"v-app-bar":!0,"v-app-bar--clipped":this.clippedLeft||this.clippedRight,"v-app-bar--fade-img-on-scroll":this.fadeImgOnScroll,"v-app-bar--elevate-on-scroll":this.elevateOnScroll,"v-app-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-app-bar--hide-shadow":this.hideShadow,"v-app-bar--is-scrolled":this.currentScroll>0,"v-app-bar--shrink-on-scroll":this.shrinkOnScroll})},computedContentHeight:function(){if(!this.shrinkOnScroll)return o["a"].options.computed.computedContentHeight.call(this);var t=this.computedOriginalHeight,e=this.dense?48:56,n=t,r=n-e,i=r/this.computedScrollThreshold,a=this.currentScroll*i;return Math.max(e,n-a)},computedFontSize:function(){if(this.isProminent){var t=this.dense?96:128,e=t-this.computedContentHeight,n=.00347;return Number((1.5-e*n).toFixed(2))}},computedLeft:function(){return!this.app||this.clippedLeft?0:this.$vuetify.application.left},computedMarginTop:function(){return this.app?this.$vuetify.application.bar:0},computedOpacity:function(){if(this.fadeImgOnScroll){var t=Math.max((this.computedScrollThreshold-this.currentScroll)/this.computedScrollThreshold,0);return Number(parseFloat(t).toFixed(2))}},computedOriginalHeight:function(){var t=o["a"].options.computed.computedContentHeight.call(this);return this.isExtended&&(t+=parseInt(this.extensionHeight)),t},computedRight:function(){return!this.app||this.clippedRight?0:this.$vuetify.application.right},computedScrollThreshold:function(){return this.scrollThreshold?Number(this.scrollThreshold):this.computedOriginalHeight-(this.dense?48:56)},computedTransform:function(){if(!this.canScroll||this.elevateOnScroll&&0===this.currentScroll&&this.isActive)return 0;if(this.isActive)return 0;var t=this.scrollOffScreen?this.computedHeight:this.computedContentHeight;return this.bottom?t:-t},hideShadow:function(){return this.elevateOnScroll&&this.isExtended?this.currentScroll<this.computedScrollThreshold:this.elevateOnScroll?0===this.currentScroll||this.computedTransform<0:(!this.isExtended||this.scrollOffScreen)&&0!==this.computedTransform},isCollapsed:function(){return this.collapseOnScroll?this.currentScroll>0:o["a"].options.computed.isCollapsed.call(this)},isProminent:function(){return o["a"].options.computed.isProminent.call(this)||this.shrinkOnScroll},styles:function(){return Object(r["a"])({},o["a"].options.computed.styles.call(this),{fontSize:Object(g["g"])(this.computedFontSize,"rem"),marginTop:Object(g["g"])(this.computedMarginTop),transform:"translateY(".concat(Object(g["g"])(this.computedTransform),")"),left:Object(g["g"])(this.computedLeft),right:Object(g["g"])(this.computedRight)})}},watch:{canScroll:"onScroll",computedTransform:function(){this.canScroll&&(this.clippedLeft||this.clippedRight)&&this.callUpdate()},invertedScroll:function(t){this.isActive=!t||0!==this.currentScroll}},created:function(){this.invertedScroll&&(this.isActive=!1)},methods:{genBackground:function(){var t=o["a"].options.methods.genBackground.call(this);return t.data=this._b(t.data||{},t.tag,{style:{opacity:this.computedOpacity}}),t},updateApplication:function(){return this.invertedScroll?0:this.computedHeight+this.computedTransform},thresholdMet:function(){this.invertedScroll?this.isActive=this.currentScroll>this.computedScrollThreshold:(this.hideOnScroll&&(this.isActive=this.isScrollingUp||this.currentScroll<this.computedScrollThreshold),this.currentThreshold<this.computedScrollThreshold||(this.savedScroll=this.currentScroll))}},render:function(t){var e=o["a"].options.render.call(this,t);return e.data=e.data||{},this.canScroll&&(e.data.directives=e.data.directives||[],e.data.directives.push({arg:this.scrollTarget,name:"scroll",value:this.onScroll})),e}})},4160:function(t,e,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},4237:function(t,e,n){n("be7f")},"428f":function(t,e,n){var r=n("da84");t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),a=r("unscopables"),u=Array.prototype;void 0==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),o=n("c6b6"),i=n("b622"),a=i("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},"45fc":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").some,i=n("a640"),a=n("ae40"),u=i("some"),s=a("some");r({target:"Array",proto:!0,forced:!u||!s},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"466d":function(t,e,n){"use strict";var r=n("d784"),o=n("825a"),i=n("50c4"),a=n("1d80"),u=n("8aa5"),s=n("14c3");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),c=String(this);if(!a.global)return s(a,c);var l=a.unicode;a.lastIndex=0;var f,d=[],h=0;while(null!==(f=s(a,c))){var p=String(f[0]);d[h]=p,""===p&&(a.lastIndex=u(c,i(a.lastIndex),l)),h++}return 0===h?null:d}]}))},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},4804:function(t,e,n){},"480e":function(t,e,n){"use strict";n("7db0");var r=n("7560");e["a"]=r["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:r["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},4840:function(t,e,n){var r=n("825a"),o=n("1c0b"),i=n("b622"),a=i("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||void 0==(n=r(i)[a])?e:o(n)}},"490a":function(t,e,n){"use strict";n("99af"),n("a9e3"),n("8d4f");var r=n("a9ad"),o=n("80d2");e["a"]=r["a"].extend({name:"v-progress-circular",props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:function(){return{radius:20}},computed:{calculatedSize:function(){return Number(this.size)+(this.button?8:0)},circumference:function(){return 2*Math.PI*this.radius},classes:function(){return{"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue:function(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray:function(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset:function(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth:function(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles:function(){return{height:Object(o["g"])(this.calculatedSize),width:Object(o["g"])(this.calculatedSize)}},svgStyles:function(){return{transform:"rotate(".concat(Number(this.rotate),"deg)")}},viewBoxSize:function(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle:function(t,e){return this.$createElement("circle",{class:"v-progress-circular__".concat(t),attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":e}})},genSvg:function(){var t=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"".concat(this.viewBoxSize," ").concat(this.viewBoxSize," ").concat(2*this.viewBoxSize," ").concat(2*this.viewBoxSize)}},t)},genInfo:function(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},this.$slots.default)}},render:function(t){return t("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}})},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"495d":function(t,e,n){},"498a":function(t,e,n){"use strict";var r=n("23e7"),o=n("58a8").trim,i=n("c8d2");r({target:"String",proto:!0,forced:i("trim")},{trim:function(){return o(this)}})},"49e2":function(t,e,n){"use strict";var r=n("0789"),o=n("9d65"),i=n("a9ad"),a=n("3206"),u=n("80d2"),s=n("58df"),c=Object(s["a"])(o["a"],i["a"],Object(a["a"])("expansionPanel","v-expansion-panel-content","v-expansion-panel"));e["a"]=c.extend().extend({name:"v-expansion-panel-content",computed:{isActive:function(){return this.expansionPanel.isActive}},created:function(){this.expansionPanel.registerContent(this)},beforeDestroy:function(){this.expansionPanel.unregisterContent()},render:function(t){var e=this;return t(r["a"],this.showLazyContent((function(){return[t("div",e.setBackgroundColor(e.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:e.isActive}]}),[t("div",{class:"v-expansion-panel-content__wrap"},Object(u["s"])(e))])]})))}})},"4a7b":function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){e=e||{};var n={},o=["url","method","params","data"],i=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,(function(t){"undefined"!==typeof e[t]&&(n[t]=e[t])})),r.forEach(i,(function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):"undefined"!==typeof e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):"undefined"!==typeof t[o]&&(n[o]=t[o])})),r.forEach(a,(function(r){"undefined"!==typeof e[r]?n[r]=e[r]:"undefined"!==typeof t[r]&&(n[r]=t[r])}));var u=o.concat(i).concat(a),s=Object.keys(e).filter((function(t){return-1===u.indexOf(t)}));return r.forEach(s,(function(r){"undefined"!==typeof e[r]?n[r]=e[r]:"undefined"!==typeof t[r]&&(n[r]=t[r])})),n}},"4ad4":function(t,e,n){"use strict";n("caad"),n("45fc"),n("b0c0"),n("b64b");var r=n("53ca"),o=n("16b7"),i=n("f2e7"),a=n("58df"),u=n("80d2"),s=n("d9bd"),c=Object(a["a"])(o["a"],i["a"]);e["a"]=c.extend({name:"activatable",props:{activator:{default:null,validator:function(t){return["string","object"].includes(Object(r["a"])(t))}},disabled:Boolean,internalActivator:Boolean,openOnHover:Boolean,openOnFocus:Boolean},data:function(){return{activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}},watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted:function(){var t=Object(u["t"])(this,"activator",!0);t&&["v-slot","normal"].includes(t)&&Object(s["b"])('The activator slot must be bound, try \'<template v-slot:activator="{ on }"><v-btn v-on="on">\'',this),this.addActivatorEvents()},beforeDestroy:function(){this.removeActivatorEvents()},methods:{addActivatorEvents:function(){if(this.activator&&!this.disabled&&this.getActivator()){this.listeners=this.genActivatorListeners();for(var t=Object.keys(this.listeners),e=0,n=t;e<n.length;e++){var r=n[e];this.getActivator().addEventListener(r,this.listeners[r])}}},genActivator:function(){var t=Object(u["s"])(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=t,t},genActivatorAttributes:function(){return{role:"button","aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners:function(){var t=this;if(this.disabled)return{};var e={};return this.openOnHover?(e.mouseenter=function(e){t.getActivator(e),t.runDelay("open")},e.mouseleave=function(e){t.getActivator(e),t.runDelay("close")}):e.click=function(e){var n=t.getActivator(e);n&&n.focus(),e.stopPropagation(),t.isActive=!t.isActive},this.openOnFocus&&(e.focus=function(e){t.getActivator(e),e.stopPropagation(),t.isActive=!t.isActive}),e},getActivator:function(t){if(this.activatorElement)return this.activatorElement;var e=null;if(this.activator){var n=this.internalActivator?this.$el:document;e="string"===typeof this.activator?n.querySelector(this.activator):this.activator.$el?this.activator.$el:this.activator}else if(1===this.activatorNode.length||this.activatorNode.length&&!t){var r=this.activatorNode[0].componentInstance;e=r&&r.$options.mixins&&r.$options.mixins.some((function(t){return t.options&&["activatable","menuable"].includes(t.options.name)}))?r.getActivator():this.activatorNode[0].elm}else t&&(e=t.currentTarget||t.target);return this.activatorElement=e,this.activatorElement},getContentSlot:function(){return Object(u["s"])(this,"default",this.getValueProxy(),!0)},getValueProxy:function(){var t=this;return{get value(){return t.isActive},set value(e){t.isActive=e}}},removeActivatorEvents:function(){if(this.activator&&this.activatorElement){for(var t=Object.keys(this.listeners),e=0,n=t;e<n.length;e++){var r=n[e];this.activatorElement.removeEventListener(r,this.listeners[r])}this.listeners={}}},resetActivator:function(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}})},"4ae1":function(t,e,n){var r=n("23e7"),o=n("d066"),i=n("1c0b"),a=n("825a"),u=n("861d"),s=n("7c73"),c=n("0538"),l=n("d039"),f=o("Reflect","construct"),d=l((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),h=!l((function(){f((function(){}))})),p=d||h;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(h&&!d)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var o=n.prototype,l=s(u(o)?o:Object.prototype),p=Function.apply.call(t,l,e);return u(p)?p:l}})},"4b85":function(t,e,n){},"4bd4":function(t,e,n){"use strict";n("4de4"),n("7db0"),n("4160"),n("caad"),n("07ac"),n("2532"),n("159b");var r=n("5530"),o=n("58df"),i=n("7e2b"),a=n("3206");e["a"]=Object(o["a"])(i["a"],Object(a["b"])("form")).extend({name:"v-form",provide:function(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:function(){return{inputs:[],watchers:[],errorBag:{}}},watch:{errorBag:{handler:function(t){var e=Object.values(t).includes(!0);this.$emit("input",!e)},deep:!0,immediate:!0}},methods:{watchInput:function(t){var e=this,n=function(t){return t.$watch("hasError",(function(n){e.$set(e.errorBag,t._uid,n)}),{immediate:!0})},r={_uid:t._uid,valid:function(){},shouldValidate:function(){}};return this.lazyValidation?r.shouldValidate=t.$watch("shouldValidate",(function(o){o&&(e.errorBag.hasOwnProperty(t._uid)||(r.valid=n(t)))})):r.valid=n(t),r},validate:function(){return 0===this.inputs.filter((function(t){return!t.validate(!0)})).length},reset:function(){this.inputs.forEach((function(t){return t.reset()})),this.resetErrorBag()},resetErrorBag:function(){var t=this;this.lazyValidation&&setTimeout((function(){t.errorBag={}}),0)},resetValidation:function(){this.inputs.forEach((function(t){return t.resetValidation()})),this.resetErrorBag()},register:function(t){this.inputs.push(t),this.watchers.push(this.watchInput(t))},unregister:function(t){var e=this.inputs.find((function(e){return e._uid===t._uid}));if(e){var n=this.watchers.find((function(t){return t._uid===e._uid}));n&&(n.valid(),n.shouldValidate()),this.watchers=this.watchers.filter((function(t){return t._uid!==e._uid})),this.inputs=this.inputs.filter((function(t){return t._uid!==e._uid})),this.$delete(this.errorBag,e._uid)}}},render:function(t){var e=this;return t("form",{staticClass:"v-form",attrs:Object(r["a"])({novalidate:!0},this.attrs$),on:{submit:function(t){return e.$emit("submit",t)}}},this.$slots.default)}})},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),a=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),l=i(a,c);if(t&&n!=n){while(c>l)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d90":function(t,e,n){"use strict";var r=n("23e7"),o=n("0ccb").start,i=n("9a0c");r({target:"String",proto:!0,forced:i},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=n("ae40"),u=i("filter"),s=a("filter");r({target:"Array",proto:!0,forced:!u||!s},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),o=n("7b0b"),i=n("9bdd"),a=n("e95a"),u=n("50c4"),s=n("8418"),c=n("35a1");t.exports=function(t){var e,n,l,f,d,h,p=o(t),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,b=void 0!==v,y=c(p),x=0;if(b&&(v=r(v,g>2?arguments[2]:void 0,2)),void 0==y||m==Array&&a(y))for(e=u(p.length),n=new m(e);e>x;x++)h=b?v(p[x],x):p[x],s(n,x,h);else for(f=y.call(p),d=f.next,n=new m;!(l=d.call(f)).done;x++)h=b?i(f,v,[l.value,x],!0):l.value,s(n,x,h);return n.length=x,n}},"4e82":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("ade3"),o=n("3206");function i(t,e,n){return Object(o["a"])(t,e,n).extend({name:"groupable",props:{activeClass:{type:String,default:function(){if(this[t])return this[t].activeClass}},disabled:Boolean},data:function(){return{isActive:!1}},computed:{groupClasses:function(){return this.activeClass?Object(r["a"])({},this.activeClass,this.isActive):{}}},created:function(){this[t]&&this[t].register(this)},beforeDestroy:function(){this[t]&&this[t].unregister(this)},methods:{toggle:function(){this.$emit("change")}}})}i("itemGroup")},"4ea8":function(t,e,n){n("cdd9")},"4ec9":function(t,e,n){"use strict";var r=n("6d61"),o=n("6566");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},"4ff9":function(t,e,n){},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5270:function(t,e,n){"use strict";var r=n("c532"),o=n("c401"),i=n("2e67"),a=n("2444");function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){u(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return u(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5311:function(t,e,n){"use strict";var r=n("5607"),o=n("2b0e");e["a"]=o["a"].extend({name:"rippleable",directives:{ripple:r["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}})},5319:function(t,e,n){"use strict";var r=n("d784"),o=n("825a"),i=n("7b0b"),a=n("50c4"),u=n("a691"),s=n("1d80"),c=n("8aa5"),l=n("14c3"),f=Math.max,d=Math.min,h=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g,g=function(t){return void 0===t?t:String(t)};r("replace",2,(function(t,e,n,r){var v=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=r.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(n,r){var o=s(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!v&&b||"string"===typeof r&&-1===r.indexOf(y)){var i=n(e,t,this,r);if(i.done)return i.value}var s=o(t),h=String(this),p="function"===typeof r;p||(r=String(r));var m=s.global;if(m){var w=s.unicode;s.lastIndex=0}var C=[];while(1){var S=l(s,h);if(null===S)break;if(C.push(S),!m)break;var k=String(S[0]);""===k&&(s.lastIndex=c(h,a(s.lastIndex),w))}for(var O="",_=0,A=0;A<C.length;A++){S=C[A];for(var E=String(S[0]),T=f(d(u(S.index),h.length),0),D=[],I=1;I<S.length;I++)D.push(g(S[I]));var B=S.groups;if(p){var L=[E].concat(D,T,h);void 0!==B&&L.push(B);var N=String(r.apply(void 0,L))}else N=x(E,h,T,D,B,r);T>=_&&(O+=h.slice(_,T)+N,_=T+E.length)}return O+h.slice(_)}];function x(t,n,r,o,a,u){var s=r+t.length,c=o.length,l=m;return void 0!==a&&(a=i(a),l=p),e.call(u,l,(function(e,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":u=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return e;if(l>c){var f=h(l/10);return 0===f?e:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):e}u=o[l-1]}return void 0===u?"":u}))}}))},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");var r=n("ade3");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"553a":function(t,e,n){"use strict";n("a9e3"),n("c7cd");var r=n("5530"),o=(n("b5b6"),n("8dd9")),i=n("3a66"),a=n("d10f"),u=n("58df"),s=n("80d2");e["a"]=Object(u["a"])(o["a"],Object(i["a"])("footer",["height","inset"]),a["a"]).extend({name:"v-footer",props:{height:{default:"auto",type:[Number,String]},inset:Boolean,padless:Boolean,tag:{type:String,default:"footer"}},computed:{applicationProperty:function(){return this.inset?"insetFooter":"footer"},classes:function(){return Object(r["a"])({},o["a"].options.computed.classes.call(this),{"v-footer--absolute":this.absolute,"v-footer--fixed":!this.absolute&&(this.app||this.fixed),"v-footer--padless":this.padless,"v-footer--inset":this.inset})},computedBottom:function(){if(this.isPositioned)return this.app?this.$vuetify.application.bottom:0},computedLeft:function(){if(this.isPositioned)return this.app&&this.inset?this.$vuetify.application.left:0},computedRight:function(){if(this.isPositioned)return this.app&&this.inset?this.$vuetify.application.right:0},isPositioned:function(){return Boolean(this.absolute||this.fixed||this.app)},styles:function(){var t=parseInt(this.height);return Object(r["a"])({},o["a"].options.computed.styles.call(this),{height:isNaN(t)?t:Object(s["g"])(t),left:Object(s["g"])(this.computedLeft),right:Object(s["g"])(this.computedRight),bottom:Object(s["g"])(this.computedBottom)})}},methods:{updateApplication:function(){var t=parseInt(this.height);return isNaN(t)?this.$el?this.$el.clientHeight:0:t}},render:function(t){var e=this.setBackgroundColor(this.color,{staticClass:"v-footer",class:this.classes,style:this.styles});return t(this.tag,e,this.$slots.default)}})},5607:function(t,e,n){"use strict";n("99af"),n("b0c0"),n("a9e3"),n("d3b7"),n("25f0"),n("7435");var r=n("80d2"),o=80;function i(t,e){t.style.transform=e,t.style.webkitTransform=e}function a(t,e){t.style.opacity=e.toString()}function u(t){return"TouchEvent"===t.constructor.name}function s(t){return"KeyboardEvent"===t.constructor.name}var c=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,o=0;if(!s(t)){var i=e.getBoundingClientRect(),a=u(t)?t.touches[t.touches.length-1]:t;r=a.clientX-i.left,o=a.clientY-i.top}var c=0,l=.3;e._ripple&&e._ripple.circle?(l=.15,c=e.clientWidth/2,c=n.center?c:c+Math.sqrt(Math.pow(r-c,2)+Math.pow(o-c,2))/4):c=Math.sqrt(Math.pow(e.clientWidth,2)+Math.pow(e.clientHeight,2))/2;var f="".concat((e.clientWidth-2*c)/2,"px"),d="".concat((e.clientHeight-2*c)/2,"px"),h=n.center?f:"".concat(r-c,"px"),p=n.center?d:"".concat(o-c,"px");return{radius:c,scale:l,x:h,y:p,centerX:f,centerY:d}},l={show:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e._ripple&&e._ripple.enabled){var r=document.createElement("span"),o=document.createElement("span");r.appendChild(o),r.className="v-ripple__container",n.class&&(r.className+=" ".concat(n.class));var u=c(t,e,n),s=u.radius,l=u.scale,f=u.x,d=u.y,h=u.centerX,p=u.centerY,m="".concat(2*s,"px");o.className="v-ripple__animation",o.style.width=m,o.style.height=m,e.appendChild(r);var g=window.getComputedStyle(e);g&&"static"===g.position&&(e.style.position="relative",e.dataset.previousPosition="static"),o.classList.add("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--visible"),i(o,"translate(".concat(f,", ").concat(d,") scale3d(").concat(l,",").concat(l,",").concat(l,")")),a(o,0),o.dataset.activated=String(performance.now()),setTimeout((function(){o.classList.remove("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--in"),i(o,"translate(".concat(h,", ").concat(p,") scale3d(1,1,1)")),a(o,.25)}),0)}},hide:function(t){if(t&&t._ripple&&t._ripple.enabled){var e=t.getElementsByClassName("v-ripple__animation");if(0!==e.length){var n=e[e.length-1];if(!n.dataset.isHiding){n.dataset.isHiding="true";var r=performance.now()-Number(n.dataset.activated),o=Math.max(250-r,0);setTimeout((function(){n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),a(n,0),setTimeout((function(){var e=t.getElementsByClassName("v-ripple__animation");1===e.length&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),n.parentNode&&t.removeChild(n.parentNode)}),300)}),o)}}}}};function f(t){return"undefined"===typeof t||!!t}function d(t){var e={},n=t.currentTarget;if(n&&n._ripple&&!n._ripple.touched){if(u(t))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(e.center=n._ripple.centered||s(t),n._ripple.class&&(e.class=n._ripple.class),u(t)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=function(){l.show(t,n,e)},n._ripple.showTimer=window.setTimeout((function(){n&&n._ripple&&n._ripple.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)}),o)}else l.show(t,n,e)}}function h(t){var e=t.currentTarget;if(e&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),"touchend"===t.type&&e._ripple.showTimerCommit)return e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,void(e._ripple.showTimer=setTimeout((function(){h(t)})));window.setTimeout((function(){e._ripple&&(e._ripple.touched=!1)})),l.hide(e)}}function p(t){var e=t.currentTarget;e&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}var m=!1;function g(t){m||t.keyCode!==r["y"].enter&&t.keyCode!==r["y"].space||(m=!0,d(t))}function v(t){m=!1,h(t)}function b(t,e,n){var r=f(e.value);r||l.hide(t),t._ripple=t._ripple||{},t._ripple.enabled=r;var o=e.value||{};o.center&&(t._ripple.centered=!0),o.class&&(t._ripple.class=e.value.class),o.circle&&(t._ripple.circle=o.circle),r&&!n?(t.addEventListener("touchstart",d,{passive:!0}),t.addEventListener("touchend",h,{passive:!0}),t.addEventListener("touchmove",p,{passive:!0}),t.addEventListener("touchcancel",h),t.addEventListener("mousedown",d),t.addEventListener("mouseup",h),t.addEventListener("mouseleave",h),t.addEventListener("keydown",g),t.addEventListener("keyup",v),t.addEventListener("dragstart",h,{passive:!0})):!r&&n&&y(t)}function y(t){t.removeEventListener("mousedown",d),t.removeEventListener("touchstart",d),t.removeEventListener("touchend",h),t.removeEventListener("touchmove",p),t.removeEventListener("touchcancel",h),t.removeEventListener("mouseup",h),t.removeEventListener("mouseleave",h),t.removeEventListener("keydown",g),t.removeEventListener("keyup",v),t.removeEventListener("dragstart",h)}function x(t,e,n){b(t,e,!1)}function w(t){delete t._ripple,y(t)}function C(t,e){if(e.value!==e.oldValue){var n=f(e.oldValue);b(t,e,n)}}var S={bind:x,unbind:w,update:C};e["a"]=S},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.1",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},5803:function(t,e,n){},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),o=n("5899"),i="["+o+"]",a=RegExp("^"+i+i+"*"),u=RegExp(i+i+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"58df":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("2b0e");function o(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r["a"].extend({mixins:e})}},5963:function(t,e,n){"use strict";n("99af"),n("d81d"),n("a9e3");var r=n("2909"),o=n("ade3"),i=n("5530"),a=(n("33e9"),n("ba0d")),u=a["a"],s=n("80d2");e["a"]=u.extend({name:"v-range-slider",props:{value:{type:Array,default:function(){return[0,0]}}},data:function(){return{activeThumb:null,lazyValue:this.value}},computed:{classes:function(){return Object(i["a"])({},u.options.computed.classes.call(this),{"v-input--range-slider":!0})},internalValue:{get:function(){return this.lazyValue},set:function(t){var e=this,n=t.map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e.roundValue(Math.min(Math.max(t,e.minValue),e.maxValue))}));if(n[0]>n[1]||n[1]<n[0]){if(null!==this.activeThumb){var r=1===this.activeThumb?0:1,o=this.$refs["thumb_".concat(r)];o.focus()}n=[n[1],n[0]]}this.lazyValue=n,Object(s["j"])(n,this.value)||this.$emit("input",n),this.validate()}},inputWidth:function(){var t=this;return this.internalValue.map((function(e){return(t.roundValue(e)-t.minValue)/(t.maxValue-t.minValue)*100}))}},methods:{getTrackStyle:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=this.vertical?this.$vuetify.rtl?"top":"bottom":this.$vuetify.rtl?"right":"left",u=this.vertical?"height":"width",s="calc(".concat(t,"% + ").concat(r,"px)"),c="calc(".concat(e,"% + ").concat(i,"px)");return n={transition:this.trackTransition},Object(o["a"])(n,a,s),Object(o["a"])(n,u,c),n},getIndexOfClosestValue:function(t,e){return Math.abs(t[0]-e)<Math.abs(t[1]-e)?0:1},genInput:function(){var t=this;return Object(s["h"])(2).map((function(e){var n=u.options.methods.genInput.call(t);return n.data=n.data||{},n.data.attrs=n.data.attrs||{},n.data.attrs.value=t.internalValue[e],n.data.attrs.id="input-".concat(e?"max":"min","-").concat(t._uid),n}))},genTrackContainer:function(){var t=this,e=[],n=this.isDisabled?10:0,o=[{class:"v-slider__track-background",color:this.computedTrackColor,styles:[0,this.inputWidth[0],0,-n]},{class:this.isDisabled?"v-slider__track-background":"v-slider__track-fill",color:this.isDisabled?this.computedTrackColor:this.computedColor,styles:[this.inputWidth[0],Math.abs(this.inputWidth[1]-this.inputWidth[0]),n,-2*n]},{class:"v-slider__track-background",color:this.computedTrackColor,styles:[this.inputWidth[1],Math.abs(100-this.inputWidth[1]),n,-n]}];return this.$vuetify.rtl&&o.reverse(),e.push.apply(e,Object(r["a"])(o.map((function(e){return t.$createElement("div",t.setBackgroundColor(e.color,{staticClass:e.class,style:t.getTrackStyle.apply(t,Object(r["a"])(e.styles))}))})))),this.$createElement("div",{staticClass:"v-slider__track-container",ref:"track"},e)},genChildren:function(){var t=this;return[this.genInput(),this.genTrackContainer(),this.genSteps(),Object(s["h"])(2).map((function(e){var n=t.internalValue[e],r=function(n){t.isActive=!0,t.activeThumb=e,t.onThumbMouseDown(n)},o=function(n){t.isFocused=!0,t.activeThumb=e,t.$emit("focus",n)},i=function(e){t.isFocused=!1,t.activeThumb=null,t.$emit("blur",e)},a=t.inputWidth[e],u=t.isActive&&t.activeThumb===e,s=t.isFocused&&t.activeThumb===e;return t.genThumbContainer(n,a,u,s,r,o,i,"thumb_".concat(e))}))]},onSliderClick:function(t){if(!this.isActive){if(this.noClick)return void(this.noClick=!1);var e=this.parseMouseMove(t),n=e.value,r=e.isInsideTrack;if(r){this.activeThumb=this.getIndexOfClosestValue(this.internalValue,n);var o="thumb_".concat(this.activeThumb),i=this.$refs[o];i.focus()}this.setInternalValue(n),this.$emit("change",this.internalValue)}},onMouseMove:function(t){var e=this.parseMouseMove(t),n=e.value,r=e.isInsideTrack;r&&null===this.activeThumb&&(this.activeThumb=this.getIndexOfClosestValue(this.internalValue,n)),this.setInternalValue(n)},onKeyDown:function(t){if(null!==this.activeThumb){var e=this.parseKeyDown(t,this.internalValue[this.activeThumb]);null!=e&&(this.setInternalValue(e),this.$emit("change",this.internalValue))}},setInternalValue:function(t){var e=this;this.internalValue=this.internalValue.map((function(n,r){return r===e.activeThumb?t:Number(n)}))}}})},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5bc1":function(t,e,n){"use strict";n("498a");var r=n("5530"),o=n("9d26"),i=n("8336"),a=n("2b0e");e["a"]=a["a"].extend({name:"v-app-bar-nav-icon",functional:!0,render:function(t,e){var n=e.slots,a=e.listeners,u=e.props,s=e.data,c=Object.assign(s,{staticClass:"v-app-bar__nav-icon ".concat(s.staticClass||"").trim(),props:Object(r["a"])({},u,{icon:!0}),on:a}),l=n().default;return t(i["a"],c,l||[t(o["a"],"$menu")])}})},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5cc6":function(t,e,n){var r=n("74e8");r("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},"5d23":function(t,e,n){"use strict";n.d(e,"a",(function(){return k})),n.d(e,"c",(function(){return O})),n.d(e,"b",(function(){return _}));var r=n("80d2"),o=n("8860"),i=(n("ac1f"),n("466d"),n("5530")),a=n("ade3"),u=(n("db42"),n("9d26")),s=n("da13"),c=n("34c3"),l=n("7e2b"),f=n("9d65"),d=n("a9ad"),h=n("f2e7"),p=n("3206"),m=n("5607"),g=n("0789"),v=n("58df"),b=Object(v["a"])(l["a"],f["a"],d["a"],Object(p["a"])("list"),h["a"]),y=b.extend().extend({name:"v-list-group",directives:{ripple:m["a"]},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:String,noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes:function(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive:function(t){!this.subGroup&&t&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created:function(){this.list&&this.list.register(this),this.group&&this.$route&&null==this.value&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy:function(){this.list&&this.list.unregister(this)},methods:{click:function(t){var e=this;this.disabled||(this.isBooted=!0,this.$emit("click",t),this.$nextTick((function(){return e.isActive=!e.isActive})))},genIcon:function(t){return this.$createElement(u["a"],t)},genAppendIcon:function(){var t=!this.subGroup&&this.appendIcon;return t||this.$slots.appendIcon?this.$createElement(c["a"],{staticClass:"v-list-group__header__append-icon"},[this.$slots.appendIcon||this.genIcon(t)]):null},genHeader:function(){return this.$createElement(s["a"],{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:Object(a["a"])({},this.activeClass,this.isActive),props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:Object(i["a"])({},this.listeners$,{click:this.click})},[this.genPrependIcon(),this.$slots.activator,this.genAppendIcon()])},genItems:function(){var t=this;return this.showLazyContent((function(){return[t.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:t.isActive}]},Object(r["s"])(t))]}))},genPrependIcon:function(){var t=this.subGroup&&null==this.prependIcon?"$subgroup":this.prependIcon;return t||this.$slots.prependIcon?this.$createElement(c["a"],{staticClass:"v-list-group__header__prepend-icon"},[this.$slots.prependIcon||this.genIcon(t)]):null},onRouteChange:function(t){if(this.group){var e=this.matchRoute(t.path);e&&this.isActive!==e&&this.list&&this.list.listClick(this._uid),this.isActive=e}},toggle:function(t){var e=this,n=this._uid===t;n&&(this.isBooted=!0),this.$nextTick((function(){return e.isActive=n}))},matchRoute:function(t){return null!==t.match(this.group)}},render:function(t){return t("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),t(g["a"],this.genItems())])}}),x=n("1baa"),w=n("1800"),C=n("8270"),S=Object(r["i"])("v-list-item__action-text","span"),k=Object(r["i"])("v-list-item__content","div"),O=Object(r["i"])("v-list-item__title","div"),_=Object(r["i"])("v-list-item__subtitle","div");o["a"],s["a"],w["a"],C["a"],x["a"],c["a"]},"5e23":function(t,e,n){},"5f96":function(t,e,n){"use strict";var r=n("ebb5"),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(t){return a.apply(o(this),arguments)}))},"5fb2":function(t,e,n){"use strict";var r=2147483647,o=36,i=1,a=26,u=38,s=700,c=72,l=128,f="-",d=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",m=o-i,g=Math.floor,v=String.fromCharCode,b=function(t){var e=[],n=0,r=t.length;while(n<r){var o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=t.charCodeAt(n++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),n--)}else e.push(o)}return e},y=function(t){return t+22+75*(t<26)},x=function(t,e,n){var r=0;for(t=n?g(t/s):t>>1,t+=g(t/e);t>m*a>>1;r+=o)t=g(t/m);return g(r+(m+1)*t/(t+u))},w=function(t){var e=[];t=b(t);var n,u,s=t.length,d=l,h=0,m=c;for(n=0;n<t.length;n++)u=t[n],u<128&&e.push(v(u));var w=e.length,C=w;w&&e.push(f);while(C<s){var S=r;for(n=0;n<t.length;n++)u=t[n],u>=d&&u<S&&(S=u);var k=C+1;if(S-d>g((r-h)/k))throw RangeError(p);for(h+=(S-d)*k,d=S,n=0;n<t.length;n++){if(u=t[n],u<d&&++h>r)throw RangeError(p);if(u==d){for(var O=h,_=o;;_+=o){var A=_<=m?i:_>=m+a?a:_-m;if(O<A)break;var E=O-A,T=o-A;e.push(v(y(A+E%T))),O=g(E/T)}e.push(v(y(O))),m=x(h,k,C==w),h=0,++C}}++h,++d}return e.join("")};t.exports=function(t){var e,n,r=[],o=t.toLowerCase().replace(h,".").split(".");for(e=0;e<o.length;e++)n=o[e],r.push(d.test(n)?"xn--"+w(n):n);return r.join(".")}},"604c":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));n("4de4"),n("7db0"),n("c740"),n("4160"),n("caad"),n("c975"),n("fb6a"),n("a434"),n("a9e3"),n("2532"),n("159b");var r=n("5530"),o=(n("166a"),n("a452")),i=n("7560"),a=n("58df"),u=n("d9bd"),s=Object(a["a"])(o["a"],i["a"]).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean},data:function(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes:function(){return Object(r["a"])({"v-item-group":!0},this.themeClasses)},selectedIndex:function(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem:function(){if(!this.multiple)return this.selectedItems[0]},selectedItems:function(){var t=this;return this.items.filter((function(e,n){return t.toggleMethod(t.getValue(e,n))}))},selectedValues:function(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod:function(){var t=this;if(!this.multiple)return function(e){return t.internalValue===e};var e=this.internalValue;return Array.isArray(e)?function(t){return e.includes(t)}:function(){return!1}}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created:function(){this.multiple&&!Array.isArray(this.internalValue)&&Object(u["c"])("Model must be bound to an array if the multiple property is true.",this)},methods:{genData:function(){return{class:this.classes}},getValue:function(t,e){return null==t.value||""===t.value?e:t.value},onClick:function(t){this.updateInternalValue(this.getValue(t,this.items.indexOf(t)))},register:function(t){var e=this,n=this.items.push(t)-1;t.$on("change",(function(){return e.onClick(t)})),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(t,n)},unregister:function(t){if(!this._isDestroyed){var e=this.items.indexOf(t),n=this.getValue(t,e);this.items.splice(e,1);var r=this.selectedValues.indexOf(n);if(!(r<0)){if(!this.mandatory)return this.updateInternalValue(n);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter((function(t){return t!==n})):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}}},updateItem:function(t,e){var n=this.getValue(t,e);t.isActive=this.toggleMethod(n)},updateItemsState:function(){var t=this;this.$nextTick((function(){if(t.mandatory&&!t.selectedItems.length)return t.updateMandatory();t.items.forEach(t.updateItem)}))},updateInternalValue:function(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory:function(t){if(this.items.length){var e=this.items.slice();t&&e.reverse();var n=e.find((function(t){return!t.disabled}));if(n){var r=this.items.indexOf(n);this.updateInternalValue(this.getValue(n,r))}}},updateMultiple:function(t){var e=Array.isArray(this.internalValue)?this.internalValue:[],n=e.slice(),r=n.findIndex((function(e){return e===t}));this.mandatory&&r>-1&&n.length-1<1||null!=this.max&&r<0&&n.length+1>this.max||(r>-1?n.splice(r,1):n.push(t),this.internalValue=n)},updateSingle:function(t){var e=t===this.internalValue;this.mandatory&&e||(this.internalValue=e?void 0:t)}},render:function(t){return t("div",this.genData(),this.$slots.default)}});s.extend({name:"v-item-group",provide:function(){return{itemGroup:this}}})},"605d":function(t,e,n){var r=n("c6b6"),o=n("da84");t.exports="process"==r(o.process)},"608c":function(t,e,n){},"60a3":function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n("2fe1");n.d(e,"a",(function(){return r["b"]}));"undefined"!==typeof Reflect&&Reflect.getMetadata;function o(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,i=e.immediate,a=void 0!==i&&i;return Object(r["a"])((function(e,n){"object"!==typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!==typeof r[t]||Array.isArray(r[t])?"undefined"===typeof r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:o,immediate:a})}))}},"60bd":function(t,e,n){"use strict";var r=n("da84"),o=n("ebb5"),i=n("e260"),a=n("b622"),u=a("iterator"),s=r.Uint8Array,c=i.values,l=i.keys,f=i.entries,d=o.aTypedArray,h=o.exportTypedArrayMethod,p=s&&s.prototype[u],m=!!p&&("values"==p.name||void 0==p.name),g=function(){return c.call(d(this))};h("entries",(function(){return f.call(d(this))})),h("keys",(function(){return l.call(d(this))})),h("values",g,!m),h(u,g,!m)},"60da":function(t,e,n){"use strict";var r=n("83ab"),o=n("d039"),i=n("df75"),a=n("7418"),u=n("d1e7"),s=n("7b0b"),c=n("44ad"),l=Object.assign,f=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||i(l({},e)).join("")!=o}))?function(t,e){var n=s(t),o=arguments.length,l=1,f=a.f,d=u.f;while(o>l){var h,p=c(arguments[l++]),m=f?i(p).concat(f(p)):i(p),g=m.length,v=0;while(g>v)h=m[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:l},"615b":function(t,e,n){},"61d2":function(t,e,n){},"621a":function(t,e,n){"use strict";var r=n("da84"),o=n("83ab"),i=n("a981"),a=n("9112"),u=n("e2cc"),s=n("d039"),c=n("19aa"),l=n("a691"),f=n("50c4"),d=n("0b25"),h=n("77a7"),p=n("e163"),m=n("d2bb"),g=n("241c").f,v=n("9bf2").f,b=n("81d5"),y=n("d44e"),x=n("69f3"),w=x.get,C=x.set,S="ArrayBuffer",k="DataView",O="prototype",_="Wrong length",A="Wrong index",E=r[S],T=E,D=r[k],I=D&&D[O],B=Object.prototype,L=r.RangeError,N=h.pack,P=h.unpack,M=function(t){return[255&t]},j=function(t){return[255&t,t>>8&255]},R=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},$=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},F=function(t){return N(t,23,4)},V=function(t){return N(t,52,8)},H=function(t,e){v(t[O],e,{get:function(){return w(this)[e]}})},z=function(t,e,n,r){var o=d(n),i=w(t);if(o+e>i.byteLength)throw L(A);var a=w(i.buffer).bytes,u=o+i.byteOffset,s=a.slice(u,u+e);return r?s:s.reverse()},U=function(t,e,n,r,o,i){var a=d(n),u=w(t);if(a+e>u.byteLength)throw L(A);for(var s=w(u.buffer).bytes,c=a+u.byteOffset,l=r(+o),f=0;f<e;f++)s[c+f]=l[i?f:e-f-1]};if(i){if(!s((function(){E(1)}))||!s((function(){new E(-1)}))||s((function(){return new E,new E(1.5),new E(NaN),E.name!=S}))){T=function(t){return c(this,T),new E(d(t))};for(var W,q=T[O]=E[O],G=g(E),Y=0;G.length>Y;)(W=G[Y++])in T||a(T,W,E[W]);q.constructor=T}m&&p(I)!==B&&m(I,B);var X=new D(new T(2)),K=I.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(I,{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},{unsafe:!0})}else T=function(t){c(this,T,S);var e=d(t);C(this,{bytes:b.call(new Array(e),0),byteLength:e}),o||(this.byteLength=e)},D=function(t,e,n){c(this,D,k),c(t,T,k);var r=w(t).byteLength,i=l(e);if(i<0||i>r)throw L("Wrong offset");if(n=void 0===n?r-i:f(n),i+n>r)throw L(_);C(this,{buffer:t,byteLength:n,byteOffset:i}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=i)},o&&(H(T,"byteLength"),H(D,"buffer"),H(D,"byteLength"),H(D,"byteOffset")),u(D[O],{getInt8:function(t){return z(this,1,t)[0]<<24>>24},getUint8:function(t){return z(this,1,t)[0]},getInt16:function(t){var e=z(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=z(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return $(z(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return $(z(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return P(z(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return P(z(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){U(this,1,t,M,e)},setUint8:function(t,e){U(this,1,t,M,e)},setInt16:function(t,e){U(this,2,t,j,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){U(this,2,t,j,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){U(this,4,t,R,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){U(this,4,t,R,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){U(this,4,t,F,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){U(this,8,t,V,e,arguments.length>2?arguments[2]:void 0)}});y(T,S),y(D,k),t.exports={ArrayBuffer:T,DataView:D}},"62ad":function(t,e,n){"use strict";n("4160"),n("caad"),n("13d5"),n("45fc"),n("4ec9"),n("a9e3"),n("b64b"),n("d3b7"),n("ac1f"),n("3ca3"),n("5319"),n("2ca0"),n("159b"),n("ddb0");var r=n("ade3"),o=n("5530"),i=(n("4b85"),n("2b0e")),a=n("d9f7"),u=n("80d2"),s=["sm","md","lg","xl"],c=function(){return s.reduce((function(t,e){return t[e]={type:[Boolean,String,Number],default:!1},t}),{})}(),l=function(){return s.reduce((function(t,e){return t["offset"+Object(u["H"])(e)]={type:[String,Number],default:null},t}),{})}(),f=function(){return s.reduce((function(t,e){return t["order"+Object(u["H"])(e)]={type:[String,Number],default:null},t}),{})}(),d={col:Object.keys(c),offset:Object.keys(l),order:Object.keys(f)};function h(t,e,n){var r=t;if(null!=n&&!1!==n){if(e){var o=e.replace(t,"");r+="-".concat(o)}return"col"!==t||""!==n&&!0!==n?(r+="-".concat(n),r.toLowerCase()):r.toLowerCase()}}var p=new Map;e["a"]=i["a"].extend({name:"v-col",functional:!0,props:Object(o["a"])({cols:{type:[Boolean,String,Number],default:!1}},c,{offset:{type:[String,Number],default:null}},l,{order:{type:[String,Number],default:null}},f,{alignSelf:{type:String,default:null,validator:function(t){return["auto","start","end","center","baseline","stretch"].includes(t)}},tag:{type:String,default:"div"}}),render:function(t,e){var n=e.props,o=e.data,i=e.children,u=(e.parent,"");for(var s in n)u+=String(n[s]);var c=p.get(u);return c||function(){var t,e;for(e in c=[],d)d[e].forEach((function(t){var r=n[t],o=h(e,t,r);o&&c.push(o)}));var o=c.some((function(t){return t.startsWith("col-")}));c.push((t={col:!o||!n.cols},Object(r["a"])(t,"col-".concat(n.cols),n.cols),Object(r["a"])(t,"offset-".concat(n.offset),n.offset),Object(r["a"])(t,"order-".concat(n.order),n.order),Object(r["a"])(t,"align-self-".concat(n.alignSelf),n.alignSelf),t)),p.set(u,c)}(),t(n.tag,Object(a["a"])(o,{class:c}),i)}})},"649e":function(t,e,n){"use strict";var r=n("ebb5"),o=n("b727").some,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},"64d8":function(t,e,n){n("ef1f")},6544:function(t,e){t.exports=function(t,e){var n="function"===typeof t.exports?t.exports.extendOptions:t.options;for(var r in"function"===typeof t.exports&&(n.components=t.exports.options.components),n.components=n.components||{},e)n.components[r]=n.components[r]||e[r]}},6547:function(t,e,n){var r=n("a691"),o=n("1d80"),i=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}};t.exports={codeAt:i(!1),charAt:i(!0)}},6566:function(t,e,n){"use strict";var r=n("9bf2").f,o=n("7c73"),i=n("e2cc"),a=n("0366"),u=n("19aa"),s=n("2266"),c=n("7dd0"),l=n("2626"),f=n("83ab"),d=n("f183").fastKey,h=n("69f3"),p=h.set,m=h.getterFor;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){u(t,l,e),p(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),f||(t.size=0),void 0!=r&&s(r,t[c],{that:t,AS_ENTRIES:n})})),h=m(e),g=function(t,e,n){var r,o,i=h(t),a=v(t,e);return a?a.value=n:(i.last=a={index:o=d(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},v=function(t,e){var n,r=h(t),o=d(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(l.prototype,{clear:function(){var t=this,e=h(t),n=e.index,r=e.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;e.first=e.last=void 0,f?e.size=0:t.size=0},delete:function(t){var e=this,n=h(e),r=v(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:e.size--}return!!r},forEach:function(t){var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:n.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!v(this,t)}}),i(l.prototype,n?{get:function(t){var e=v(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",o=m(e),i=m(r);c(t,e,(function(t,e){p(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){var t=i(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},"65f0":function(t,e,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),a=i("species");t.exports=function(t,e){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"68dd":function(t,e,n){},"696f":function(t,e,n){},"69f3":function(t,e,n){var r,o,i,a=n("7f9a"),u=n("da84"),s=n("861d"),c=n("9112"),l=n("5135"),f=n("c6cd"),d=n("f772"),h=n("d012"),p=u.WeakMap,m=function(t){return i(t)?o(t):r(t,{})},g=function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var v=f.state||(f.state=new p),b=v.get,y=v.has,x=v.set;r=function(t,e){return e.facade=t,x.call(v,t,e),e},o=function(t){return b.call(v,t)||{}},i=function(t){return y.call(v,t)}}else{var w=d("state");h[w]=!0,r=function(t,e){return e.facade=t,c(t,w,e),e},o=function(t){return l(t,w)?t[w]:{}},i=function(t){return l(t,w)}}t.exports={set:r,get:o,has:i,enforce:m,getterFor:g}},"6b75":function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},"6ca7":function(t,e,n){},"6d61":function(t,e,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("94ca"),a=n("6eeb"),u=n("f183"),s=n("2266"),c=n("19aa"),l=n("861d"),f=n("d039"),d=n("1c7e"),h=n("d44e"),p=n("7156");t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),v=m?"set":"add",b=o[t],y=b&&b.prototype,x=b,w={},C=function(t){var e=y[t];a(y,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof b||!(g||y.forEach&&!f((function(){(new b).entries().next()})))))x=n.getConstructor(e,t,m,v),u.REQUIRED=!0;else if(i(t,!0)){var S=new x,k=S[v](g?{}:-0,1)!=S,O=f((function(){S.has(1)})),_=d((function(t){new b(t)})),A=!g&&f((function(){var t=new b,e=5;while(e--)t[v](e,e);return!t.has(-0)}));_||(x=e((function(e,n){c(e,x,t);var r=p(new b,e,x);return void 0!=n&&s(n,r[v],{that:r,AS_ENTRIES:m}),r})),x.prototype=y,y.constructor=x),(O||A)&&(C("delete"),C("has"),m&&C("get")),(A||k)&&C(v),g&&y.clear&&delete y.clear}return w[t]=x,r({global:!0,forced:x!=b},w),h(x,t),g||n.setStrong(x,t,m),x}},"6ece":function(t,e,n){},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),i=n("5135"),a=n("ce4e"),u=n("8925"),s=n("69f3"),c=s.get,l=s.enforce,f=String(String).split("String");(t.exports=function(t,e,n,u){var s,c=!!u&&!!u.unsafe,d=!!u&&!!u.enumerable,h=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),s=l(n),s.source||(s.source=f.join("string"==typeof e?e:""))),t!==r?(c?!h&&t[e]&&(d=!0):delete t[e],d?t[e]=n:o(t,e,n)):d?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u(this)}))},"6f53":function(t,e,n){var r=n("83ab"),o=n("df75"),i=n("fc6a"),a=n("d1e7").f,u=function(t){return function(e){var n,u=i(e),s=o(u),c=s.length,l=0,f=[];while(c>l)n=s[l++],r&&!a.call(u,n)||f.push(t?[n,u[n]]:u[n]);return f}};t.exports={entries:u(!0),values:u(!1)}},"713a":function(t,e,n){"use strict";var r=n("8212");e["a"]=r["a"]},7156:function(t,e,n){var r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},"71a3":function(t,e,n){"use strict";n("c975"),n("ac1f"),n("5319");var r=n("5530"),o=n("4e82"),i=n("1c87"),a=n("7560"),u=n("80d2"),s=n("58df"),c=Object(s["a"])(i["a"],Object(o["a"])("tabsBar"),a["a"]);e["a"]=c.extend().extend().extend({name:"v-tab",props:{ripple:{type:[Boolean,Object],default:!0}},data:function(){return{proxyClass:"v-tab--active"}},computed:{classes:function(){return Object(r["a"])({"v-tab":!0},i["a"].options.computed.classes.call(this),{"v-tab--disabled":this.disabled},this.groupClasses)},value:function(){var t=this.to||this.href||"";if(this.$router&&this.to===Object(this.to)){var e=this.$router.resolve(this.to,this.$route,this.append);t=e.href}return t.replace("#","")}},mounted:function(){this.onRouteChange()},methods:{click:function(t){this.href&&this.href.indexOf("#")>-1&&t.preventDefault(),t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle()}},render:function(t){var e=this,n=this.generateRouteLink(),o=n.tag,i=n.data;return i.attrs=Object(r["a"])({},i.attrs,{"aria-selected":String(this.isActive),role:"tab",tabindex:0}),i.on=Object(r["a"])({},i.on,{keydown:function(t){t.keyCode===u["y"].enter&&e.click(t),e.$emit("keydown",t)}}),t(o,i,this.$slots.default)}})},"71d9":function(t,e,n){"use strict";n("0481"),n("4160"),n("4069"),n("a9e3");var r=n("3835"),o=n("5530"),i=(n("5e23"),n("8dd9")),a=n("adda"),u=n("80d2"),s=n("d9bd");e["a"]=i["a"].extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:function(){return{isExtended:!1}},computed:{computedHeight:function(){var t=this.computedContentHeight;if(!this.isExtended)return t;var e=parseInt(this.extensionHeight);return this.isCollapsed?t:t+(isNaN(e)?0:e)},computedContentHeight:function(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes:function(){return Object(o["a"])({},i["a"].options.computed.classes.call(this),{"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent})},isCollapsed:function(){return this.collapse},isProminent:function(){return this.prominent},styles:function(){return Object(o["a"])({},this.measurableStyles,{height:Object(u["g"])(this.computedHeight)})}},created:function(){var t=this,e=[["app","<v-app-bar app>"],["manual-scroll",'<v-app-bar :value="false">'],["clipped-left","<v-app-bar clipped-left>"],["clipped-right","<v-app-bar clipped-right>"],["inverted-scroll","<v-app-bar inverted-scroll>"],["scroll-off-screen","<v-app-bar scroll-off-screen>"],["scroll-target","<v-app-bar scroll-target>"],["scroll-threshold","<v-app-bar scroll-threshold>"],["card","<v-app-bar flat>"]];e.forEach((function(e){var n=Object(r["a"])(e,2),o=n[0],i=n[1];t.$attrs.hasOwnProperty(o)&&Object(s["a"])(o,i,t)}))},methods:{genBackground:function(){var t={height:Object(u["g"])(this.computedHeight),src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img({props:t}):this.$createElement(a["a"],{props:t});return this.$createElement("div",{staticClass:"v-toolbar__image"},[e])},genContent:function(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:Object(u["g"])(this.computedContentHeight)}},Object(u["s"])(this))},genExtension:function(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:Object(u["g"])(this.extensionHeight)}},Object(u["s"])(this,"extension"))}},render:function(t){this.isExtended=this.extended||!!this.$scopedSlots.extension;var e=[this.genContent()],n=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&e.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&e.unshift(this.genBackground()),t(this.tag,n,e)}})},"72f7":function(t,e,n){"use strict";var r=n("ebb5").exportTypedArrayMethod,o=n("d039"),i=n("da84"),a=i.Uint8Array,u=a&&a.prototype||{},s=[].toString,c=[].join;o((function(){s.call({})}))&&(s=function(){return c.call(this)});var l=u.toString!=s;r("toString",s,l)},"735e":function(t,e,n){"use strict";var r=n("ebb5"),o=n("81d5"),i=r.aTypedArray,a=r.exportTypedArrayMethod;a("fill",(function(t){return o.apply(i(this),arguments)}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7435:function(t,e,n){},"746f":function(t,e,n){var r=n("428f"),o=n("5135"),i=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},7496:function(t,e,n){"use strict";var r=n("5530"),o=(n("df86"),n("7560")),i=n("58df");e["a"]=Object(i["a"])(o["a"]).extend({name:"v-app",props:{dark:{type:Boolean,default:void 0},id:{type:String,default:"app"},light:{type:Boolean,default:void 0}},computed:{isDark:function(){return this.$vuetify.theme.dark}},beforeCreate:function(){if(!this.$vuetify||this.$vuetify===this.$root)throw new Error("Vuetify is not properly initialized, see https://vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object")},render:function(t){var e=t("div",{staticClass:"v-application--wrap"},this.$slots.default);return t("div",{staticClass:"v-application",class:Object(r["a"])({"v-application--is-rtl":this.$vuetify.rtl,"v-application--is-ltr":!this.$vuetify.rtl},this.themeClasses),attrs:{"data-app":!0},domProps:{id:this.id}},[e])}})},"74e8":function(t,e,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("83ab"),a=n("8aa7"),u=n("ebb5"),s=n("621a"),c=n("19aa"),l=n("5c6c"),f=n("9112"),d=n("50c4"),h=n("0b25"),p=n("182d"),m=n("c04e"),g=n("5135"),v=n("f5df"),b=n("861d"),y=n("7c73"),x=n("d2bb"),w=n("241c").f,C=n("a078"),S=n("b727").forEach,k=n("2626"),O=n("9bf2"),_=n("06cf"),A=n("69f3"),E=n("7156"),T=A.get,D=A.set,I=O.f,B=_.f,L=Math.round,N=o.RangeError,P=s.ArrayBuffer,M=s.DataView,j=u.NATIVE_ARRAY_BUFFER_VIEWS,R=u.TYPED_ARRAY_TAG,$=u.TypedArray,F=u.TypedArrayPrototype,V=u.aTypedArrayConstructor,H=u.isTypedArray,z="BYTES_PER_ELEMENT",U="Wrong length",W=function(t,e){var n=0,r=e.length,o=new(V(t))(r);while(r>n)o[n]=e[n++];return o},q=function(t,e){I(t,e,{get:function(){return T(this)[e]}})},G=function(t){var e;return t instanceof P||"ArrayBuffer"==(e=v(t))||"SharedArrayBuffer"==e},Y=function(t,e){return H(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},X=function(t,e){return Y(t,e=m(e,!0))?l(2,t[e]):B(t,e)},K=function(t,e,n){return!(Y(t,e=m(e,!0))&&b(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?I(t,e,n):(t[e]=n.value,t)};i?(j||(_.f=X,O.f=K,q(F,"buffer"),q(F,"byteOffset"),q(F,"byteLength"),q(F,"length")),r({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:X,defineProperty:K}),t.exports=function(t,e,n){var i=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",s="get"+t,l="set"+t,m=o[u],g=m,v=g&&g.prototype,O={},_=function(t,e){var n=T(t);return n.view[s](e*i+n.byteOffset,!0)},A=function(t,e,r){var o=T(t);n&&(r=(r=L(r))<0?0:r>255?255:255&r),o.view[l](e*i+o.byteOffset,r,!0)},B=function(t,e){I(t,e,{get:function(){return _(this,e)},set:function(t){return A(this,e,t)},enumerable:!0})};j?a&&(g=e((function(t,e,n,r){return c(t,g,u),E(function(){return b(e)?G(e)?void 0!==r?new m(e,p(n,i),r):void 0!==n?new m(e,p(n,i)):new m(e):H(e)?W(g,e):C.call(g,e):new m(h(e))}(),t,g)})),x&&x(g,$),S(w(m),(function(t){t in g||f(g,t,m[t])})),g.prototype=v):(g=e((function(t,e,n,r){c(t,g,u);var o,a,s,l=0,f=0;if(b(e)){if(!G(e))return H(e)?W(g,e):C.call(g,e);o=e,f=p(n,i);var m=e.byteLength;if(void 0===r){if(m%i)throw N(U);if(a=m-f,a<0)throw N(U)}else if(a=d(r)*i,a+f>m)throw N(U);s=a/i}else s=h(e),a=s*i,o=new P(a);D(t,{buffer:o,byteOffset:f,byteLength:a,length:s,view:new M(o)});while(l<s)B(t,l++)})),x&&x(g,$),v=g.prototype=y(F)),v.constructor!==g&&f(v,"constructor",g),R&&f(v,R,u),O[u]=g,r({global:!0,forced:g!=m,sham:!j},O),z in g||f(g,z,i),z in v||f(v,z,i),k(u)}):t.exports=function(){}},7560:function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n("5530"),o=n("2b0e"),i=o["a"].extend().extend({name:"themeable",provide:function(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data:function(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark:function(){return this.$vuetify.theme.dark||!1},isDark:function(){return!0===this.dark||!0!==this.light&&this.theme.isDark},themeClasses:function(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark:function(){return!0===this.dark||!0!==this.light&&this.appIsDark},rootThemeClasses:function(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler:function(t,e){t!==e&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});function a(t){var e=Object(r["a"])({},t.props,{},t.injections),n=i.options.computed.isDark.call(e);return i.options.computed.themeClasses.call({isDark:n})}e["a"]=i},"75eb":function(t,e,n){"use strict";n("4160"),n("159b");var r=n("ade3"),o=n("53ca"),i=n("9d65"),a=n("80d2"),u=n("58df"),s=n("d9bd");function c(t){var e=Object(o["a"])(t);return"boolean"===e||"string"===e||t.nodeType===Node.ELEMENT_NODE}e["a"]=Object(u["a"])(i["a"]).extend({name:"detachable",props:{attach:{default:!1,validator:c},contentClass:{type:String,default:""}},data:function(){return{activatorNode:null,hasDetached:!1}},watch:{attach:function(){this.hasDetached=!1,this.initDetach()},hasContent:function(){this.$nextTick(this.initDetach)}},beforeMount:function(){var t=this;this.$nextTick((function(){if(t.activatorNode){var e=Array.isArray(t.activatorNode)?t.activatorNode:[t.activatorNode];e.forEach((function(e){if(e.elm&&t.$el.parentNode){var n=t.$el===t.$el.parentNode.firstChild?t.$el:t.$el.nextSibling;t.$el.parentNode.insertBefore(e.elm,n)}}))}}))},mounted:function(){this.hasContent&&this.initDetach()},deactivated:function(){this.isActive=!1},beforeDestroy:function(){try{if(this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content),this.activatorNode){var t=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];t.forEach((function(t){t.elm&&t.elm.parentNode&&t.elm.parentNode.removeChild(t.elm)}))}}catch(e){console.log(e)}},methods:{getScopeIdAttrs:function(){var t=Object(a["p"])(this.$vnode,"context.$options._scopeId");return t&&Object(r["a"])({},t,"")},initDetach:function(){var t;this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||"attach"===this.attach||(t=!1===this.attach?document.querySelector("[data-app]"):"string"===typeof this.attach?document.querySelector(this.attach):this.attach,t?(t.appendChild(this.$refs.content),this.hasDetached=!0):Object(s["c"])("Unable to locate target ".concat(this.attach||"[data-app]"),this))}}})},"77a7":function(t,e){var n=1/0,r=Math.abs,o=Math.pow,i=Math.floor,a=Math.log,u=Math.LN2,s=function(t,e,s){var c,l,f,d=new Array(s),h=8*s-e-1,p=(1<<h)-1,m=p>>1,g=23===e?o(2,-24)-o(2,-77):0,v=t<0||0===t&&1/t<0?1:0,b=0;for(t=r(t),t!=t||t===n?(l=t!=t?1:0,c=p):(c=i(a(t)/u),t*(f=o(2,-c))<1&&(c--,f*=2),t+=c+m>=1?g/f:g*o(2,1-m),t*f>=2&&(c++,f/=2),c+m>=p?(l=0,c=p):c+m>=1?(l=(t*f-1)*o(2,e),c+=m):(l=t*o(2,m-1)*o(2,e),c=0));e>=8;d[b++]=255&l,l/=256,e-=8);for(c=c<<e|l,h+=e;h>0;d[b++]=255&c,c/=256,h-=8);return d[--b]|=128*v,d},c=function(t,e){var r,i=t.length,a=8*i-e-1,u=(1<<a)-1,s=u>>1,c=a-7,l=i-1,f=t[l--],d=127&f;for(f>>=7;c>0;d=256*d+t[l],l--,c-=8);for(r=d&(1<<-c)-1,d>>=-c,c+=e;c>0;r=256*r+t[l],l--,c-=8);if(0===d)d=1-s;else{if(d===u)return r?NaN:f?-n:n;r+=o(2,e),d-=s}return(f?-1:1)*r*o(2,d-e)};t.exports={pack:s,unpack:c}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7863:function(t,e,n){},7958:function(t,e,n){},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7bc6":function(t,e,n){"use strict";n.d(e,"n",(function(){return s})),n.d(e,"k",(function(){return c})),n.d(e,"m",(function(){return l})),n.d(e,"j",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"g",(function(){return h})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return m})),n.d(e,"f",(function(){return g})),n.d(e,"i",(function(){return v})),n.d(e,"h",(function(){return b})),n.d(e,"e",(function(){return x})),n.d(e,"c",(function(){return w})),n.d(e,"o",(function(){return C})),n.d(e,"l",(function(){return k}));n("99af"),n("a15b"),n("d81d"),n("fb6a"),n("b0c0"),n("d3b7"),n("07ac"),n("ac1f"),n("25f0"),n("466d"),n("38cf"),n("5319"),n("1276"),n("2ca0"),n("498a");var r=n("5530"),o=n("3835"),i=n("d9bd"),a=n("80d2"),u=n("8da5");function s(t){return!!t&&!!t.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function c(t){var e;if("number"===typeof t)e=t;else{if("string"!==typeof t)throw new TypeError("Colors can only be numbers or strings, recieved ".concat(null==t?t:t.constructor.name," instead"));var n="#"===t[0]?t.substring(1):t;3===n.length&&(n=n.split("").map((function(t){return t+t})).join("")),6!==n.length&&Object(i["c"])("'".concat(t,"' is not a valid rgb color")),e=parseInt(n,16)}return e<0?(Object(i["c"])("Colors cannot be negative: '".concat(t,"'")),e=0):(e>16777215||isNaN(e))&&(Object(i["c"])("'".concat(t,"' is not a valid rgb color")),e=16777215),e}function l(t){var e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function f(t){return l(c(t))}function d(t){var e=t.h,n=t.s,r=t.v,o=t.a,i=function(t){var o=(t+e/60)%6;return r-r*n*Math.max(Math.min(o,4-o,1),0)},a=[i(5),i(3),i(1)].map((function(t){return Math.round(255*t)}));return{r:a[0],g:a[1],b:a[2],a:o}}function h(t){if(!t)return{h:0,s:1,v:1,a:1};var e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r),a=0;o!==i&&(o===e?a=60*(0+(n-r)/(o-i)):o===n?a=60*(2+(r-e)/(o-i)):o===r&&(a=60*(4+(e-n)/(o-i)))),a<0&&(a+=360);var u=0===o?0:(o-i)/o,s=[a,u,o];return{h:s[0],s:s[1],v:s[2],a:t.a}}function p(t){var e=t.h,n=t.s,r=t.v,o=t.a,i=r-r*n/2,a=1===i||0===i?0:(r-i)/Math.min(i,1-i);return{h:e,s:a,l:i,a:o}}function m(t){var e=t.h,n=t.s,r=t.l,o=t.a,i=r+n*Math.min(r,1-r),a=0===i?0:2-2*r/i;return{h:e,s:a,v:i,a:o}}function g(t){return"rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(t.a,")")}function v(t){return g(Object(r["a"])({},t,{a:1}))}function b(t){var e=function(t){var e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()};return"#".concat([e(t.r),e(t.g),e(t.b),e(Math.round(255*t.a))].join(""))}function y(t){var e=Object(a["e"])(t.slice(1),2).map((function(t){return parseInt(t,16)}));return{r:e[0],g:e[1],b:e[2],a:Math.round(e[3]/255*100)/100}}function x(t){var e=y(t);return h(e)}function w(t){return b(d(t))}function C(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),3!==t.length&&4!==t.length||(t=t.split("").map((function(t){return t+t})).join("")),t=6===t.length?Object(a["B"])(t,8,"F"):Object(a["B"])(Object(a["B"])(t,6),8,"F"),"#".concat(t).toUpperCase().substr(0,9)}function S(t){return(t.r<<16)+(t.g<<8)+t.b}function k(t,e){var n=Object(u["b"])(S(t)),r=Object(o["a"])(n,2),i=r[1],a=Object(u["b"])(S(e)),s=Object(o["a"])(a,2),c=s[1];return(Math.max(i,c)+.05)/(Math.min(i,c)+.05)}},"7c4f":function(t,e){(function(){"use strict";var t=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(t){return!!t.hasPlugin("powerpaste",!0)&&("undefined"!==typeof window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)},r=function(t,e){return{clipboard:t,quirks:e}},o=function(){},i=function(t){return function(){return t}},a=i(!1),u=i(!0),s=function(){return c},c=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:a,isSome:a,isNone:u,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:n,orThunk:e,map:s,each:o,bind:s,exists:a,forall:u,filter:s,equals:t,equals_:t,toArray:function(){return[]},toString:i("none()")};return r}(),l=function(t){var e=i(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:u,isNone:a,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return l(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:c},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(a,(function(e){return n(t,e)}))}};return o},f=function(t){return null===t||void 0===t?c:l(t)},d={some:l,none:s,from:f},h=function(t){return function(e){return typeof e===t}},p=function(t){return null===t||void 0===t},m=function(t){return!p(t)},g=h("function"),v=Array.prototype.slice,b=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return!0}return!1},y=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},x=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},w=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},C=function(t,e,n){return x(t,(function(t){n=e(n,t)})),n},S=g(Array.from)?Array.from:function(t){return v.call(t)},k=function(){var e=t(d.none()),n=function(){return e.set(d.none())},r=function(t){return e.set(d.some(t))},o=function(){return e.get().isSome()},i=function(t){return e.get().each(t)};return{clear:n,set:r,isSet:o,on:i}},O=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},_=function(t,e){return O(t,e,0)},A=function(t,e){return O(t,e,t.length-e.length)},E=function(t,e){return e<=0?"":new Array(e+1).join(t)},T=tinymce.util.Tools.resolve("tinymce.Env"),D=tinymce.util.Tools.resolve("tinymce.util.Delay"),I=tinymce.util.Tools.resolve("tinymce.util.Promise"),B=tinymce.util.Tools.resolve("tinymce.util.VK"),L=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},N=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},P=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},M=function(t,e){return t.fire("paste",{ieFake:e})},j=tinymce.util.Tools.resolve("tinymce.util.Tools"),R=function(t){return t.getParam("paste_block_drop",!1)},$=function(t){return t.getParam("paste_data_images",!1)},F=function(t){return t.getParam("paste_filter_drop",!0)},V=function(t){return t.getParam("paste_preprocess")},H=function(t){return t.getParam("paste_postprocess")},z=function(t){return t.getParam("paste_webkit_styles")},U=function(t){return t.getParam("paste_remove_styles_if_webkit",!0)},W=function(t){return t.getParam("paste_merge_formats",!0)},q=function(t){return t.getParam("smart_paste",!0)},G=function(t){return t.getParam("paste_as_text",!1)},Y=function(t){return t.getParam("paste_retain_style_properties")},X=function(t){var e="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody";return t.getParam("paste_word_valid_elements",e)},K=function(t){return t.getParam("paste_convert_word_fake_lists",!0)},Z=function(t){return t.getParam("paste_enable_default_filters",!0)},J=function(t){return t.getParam("validate")},Q=function(t){return t.getParam("allow_html_data_urls",!1,"boolean")},tt=function(t){return t.getParam("paste_data_images",!1,"boolean")},et=function(t){return t.getParam("images_dataimg_filter")},nt=function(t){return t.getParam("images_reuse_filename")},rt=function(t){return t.getParam("forced_root_block")},ot=function(t){return t.getParam("forced_root_block_attrs")},it=function(t){return t.getParam("paste_tab_spaces",4,"number")},at=function(t){var e="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp";return j.explode(t.getParam("images_file_types",e,"string"))},ut="x-tinymce/html",st="\x3c!-- "+ut+" --\x3e",ct=function(t){return st+t},lt=function(t){return t.replace(st,"")},ft=function(t){return-1!==t.indexOf(st)},dt=function(){return ut},ht=tinymce.util.Tools.resolve("tinymce.html.Entities"),pt=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},mt=function(t){return t.replace(/\r?\n/g,"<br>")},gt=function(t,e){var n,r=[],o="<"+t;if("object"===typeof e){for(n in e)e.hasOwnProperty(n)&&r.push(n+'="'+ht.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}return o+">"},vt=function(t,e,n){var r=t.split(/\n\n/),o=gt(e,n),i="</"+e+">",a=j.map(r,(function(t){return t.split(/\n/).join("<br />")})),u=function(t){return o+t+i};return 1===a.length?a[0]:j.map(a,u).join("")},bt=function(t,e,n){return e?vt(t,!0===e?"p":e,n):mt(t)},yt=tinymce.util.Tools.resolve("tinymce.html.DomParser"),xt=tinymce.util.Tools.resolve("tinymce.html.Serializer"),wt=" ",Ct=tinymce.util.Tools.resolve("tinymce.html.Node"),St=tinymce.util.Tools.resolve("tinymce.html.Schema");function kt(t,e){return j.each(e,(function(e){t=e.constructor===RegExp?t.replace(e,""):t.replace(e[0],e[1])})),t}function Ot(t){var e=St(),n=yt({},e),r="",o=e.getShortEndedElements(),i=j.makeMap("script noscript style textarea video audio iframe object"," "),a=e.getBlockElements();function u(t){var e=t.name,n=t;if("br"!==e){if("wbr"!==e)if(o[e]&&(r+=" "),i[e])r+=" ";else{if(3===t.type&&(r+=t.value),!t.shortEnded&&(t=t.firstChild))do{u(t)}while(t=t.next);a[e]&&n.next&&(r+="\n","p"===e&&(r+="\n"))}}else r+="\n"}return t=kt(t,[/<!\[[^\]]+\]>/g]),u(n.parse(t)),r}function _t(t){function e(t,e,n){return e||n?wt:" "}return t=kt(t,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,e],/<br class="Apple-interchange-newline">/g,/<br>$/i]),t}function At(t){var e=0;return function(){return t+e++}}var Et=function(t){var e={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return j.hasOwn(e,t)?"image/"+e[t]:"image/"+t};function Tt(t){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(t)||/class="OutlineElement/.test(t)||/id="?docs\-internal\-guid\-/.test(t)}function Dt(t){var e,n=[/^[IVXLMCD]{1,2}\.[ \u00a0]/,/^[ivxlmcd]{1,2}\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/];return t=t.replace(/^[\u00a0 ]+/,""),j.each(n,(function(n){if(n.test(t))return e=!0,!1})),e}function It(t){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(t)}function Bt(t){var e,n,r=1;function o(t){var e="";if(3===t.type)return t.value;if(t=t.firstChild)do{e+=o(t)}while(t=t.next);return e}function i(t,e){if(3===t.type&&e.test(t.value))return t.value=t.value.replace(e,""),!1;if(t=t.firstChild)do{if(!i(t,e))return!1}while(t=t.next);return!0}function a(t){if(t._listIgnore)t.remove();else if(t=t.firstChild)do{a(t)}while(t=t.next)}function u(t,o,u){var s=t._listLevel||r;s!==r&&(s<r?e&&(e=e.parent.parent):(n=e,e=null)),e&&e.name===o?e.append(t):(n=n||e,e=new Ct(o,1),u>1&&e.attr("start",""+u),t.wrap(e)),t.name="li",s>r&&n&&n.lastChild.append(e),r=s,a(t),i(t,/^\u00a0+/),i(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(t,/^\u00a0+/)}var s=[],c=t.firstChild;while("undefined"!==typeof c&&null!==c)if(s.push(c),c=c.walk(),null!==c)while("undefined"!==typeof c&&c.parent!==t)c=c.walk();for(var l=0;l<s.length;l++)if(t=s[l],"p"===t.name&&t.firstChild){var f=o(t);if(It(f)){u(t,"ul");continue}if(Dt(f)){var d=/([0-9]+)\./.exec(f),h=1;d&&(h=parseInt(d[1],10)),u(t,"ol",h);continue}if(t._listLevel){u(t,"ul",1);continue}e=null}else n=e,e=null}function Lt(t,e,n,r){var o,i={},a=t.dom.parseStyle(r);return j.each(a,(function(a,u){switch(u){case"mso-list":o=/\w+ \w+([0-9]+)/i.exec(r),o&&(n._listLevel=parseInt(o[1],10)),/Ignore/i.test(a)&&n.firstChild&&(n._listIgnore=!0,n.firstChild._listIgnore=!0);break;case"horiz-align":u="text-align";break;case"vert-align":u="vertical-align";break;case"font-color":case"mso-foreground":u="color";break;case"mso-background":case"mso-highlight":u="background";break;case"font-weight":case"font-style":return void("normal"!==a&&(i[u]=a));case"mso-element":if(/^(comment|comment-list)$/i.test(a))return void n.remove();break}0!==u.indexOf("mso-comment")?0!==u.indexOf("mso-")&&("all"===Y(t)||e&&e[u])&&(i[u]=a):n.remove()})),/(bold)/i.test(i["font-weight"])&&(delete i["font-weight"],n.wrap(new Ct("b",1))),/(italic)/i.test(i["font-style"])&&(delete i["font-style"],n.wrap(new Ct("i",1))),i=t.dom.serializeStyle(i,n.name),i||null}var Nt=function(t,e){var n,r=Y(t);r&&(n=j.makeMap(r.split(/[, ]/))),e=kt(e,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,wt],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(t,e){return e.length>0?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join(wt):""}]]);var o=X(t),i=St({valid_elements:o,valid_children:"-li[p]"});j.each(i.elements,(function(t){t.attributes.class||(t.attributes.class={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))}));var a=yt({},i);a.addAttributeFilter("style",(function(e){var r,o=e.length;while(o--)r=e[o],r.attr("style",Lt(t,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(t){var e,n,r=t.length;while(r--)e=t[r],n=e.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)})),a.addNodeFilter("del",(function(t){var e=t.length;while(e--)t[e].remove()})),a.addNodeFilter("a",(function(t){var e,n,r,o=t.length;while(o--)if(e=t[o],n=e.attr("href"),r=e.attr("name"),n&&-1!==n.indexOf("#_msocom_"))e.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1],n&&(n="#"+n)),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){e.unwrap();continue}e.attr({href:n,name:r})}else e.unwrap()}));var u=a.parse(e);return K(t)&&Bt(u),e=xt({validate:J(t)},i).serialize(u),e},Pt=function(t,e){return Z(t)?Nt(t,e):e},Mt=function(t,e){var n=yt({},t.schema);n.addNodeFilter("meta",(function(t){j.each(t,(function(t){t.remove()}))}));var r=n.parse(e,{forced_root_block:!1,isRootContent:!0});return xt({validate:J(t)},t.schema).serialize(r)},jt=function(t,e){return{content:t,cancelled:e}},Rt=function(t,e,n,r){var o=t.dom.create("div",{style:"display:none"},e),i=N(t,o,n,r);return jt(i.node.innerHTML,i.isDefaultPrevented())},$t=function(t,e,n,r){var o=L(t,e,n,r),i=Mt(t,o.content);return t.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?Rt(t,i,n,r):jt(i,o.isDefaultPrevented())},Ft=function(t,e,n){var r=Tt(e),o=r?Pt(t,e):e;return $t(t,o,n,r)},Vt=function(t,e){return t.insertContent(e,{merge:W(t),paste:!0}),!0},Ht=function(t){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(t)},zt=function(t,e){return Ht(e)&&b(at(t),(function(t){return A(e,"."+t)}))},Ut=function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.insertContent('<img src="'+e+'">')})),!0},Wt=function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.execCommand("mceInsertLink",!1,e)})),!0},qt=function(t,e,n){return!(!1!==t.selection.isCollapsed()||!Ht(e))&&Wt(t,e,n)},Gt=function(t,e,n){return!!zt(t,e)&&Ut(t,e,n)},Yt=function(t,e){j.each([qt,Gt,Vt],(function(n){return!0!==n(t,e,Vt)}))},Xt=function(t,e,n){n||!1===q(t)?Vt(t,e):Yt(t,e)},Kt=function(t){return-1!==" \f\t\v".indexOf(t)},Zt=function(t){return"\n"===t||"\r"===t},Jt=function(t,e){return e<t.length&&e>=0&&Zt(t[e])},Qt=function(t,e){var n=E(" ",it(t)),r=e.replace(/\t/g,n),o=C(r,(function(t,e){return Kt(e)||e===wt?t.pcIsSpace||""===t.str||t.str.length===r.length-1||Jt(r,t.str.length+1)?{pcIsSpace:!1,str:t.str+wt}:{pcIsSpace:!0,str:t.str+" "}:{pcIsSpace:Zt(e),str:t.str+e}}),{pcIsSpace:!1,str:""});return o.str},te=function(t,e,n,r){var o=Ft(t,e,n);!1===o.cancelled&&Xt(t,o.content,r)},ee=function(t,e,n){var r=n||ft(e);te(t,lt(e),r,!1)},ne=function(t,e){var n=t.dom.encode(e).replace(/\r\n/g,"\n"),r=Qt(t,n),o=bt(r,rt(t),ot(t));te(t,o,!1,!0)},re=function(t){var e={},n="data:text/mce-internal,";if(t){if(t.getData){var r=t.getData("Text");r&&r.length>0&&-1===r.indexOf(n)&&(e["text/plain"]=r)}if(t.types)for(var o=0;o<t.types.length;o++){var i=t.types[o];try{e[i]=t.getData(i)}catch(a){e[i]=""}}}return e},oe=function(t,e){return re(e.clipboardData||t.getDoc().dataTransfer)},ie=function(t,e){return e in t&&t[e].length>0},ae=function(t){return ie(t,"text/html")||ie(t,"text/plain")},ue=function(t){var e=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(t);return e?{type:e[1],data:decodeURIComponent(e[2])}:{type:null,data:null}},se=function(t,e){var n=et(t);return!n||n(e)},ce=function(t,e){var n=e.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return m(n)?t.dom.encode(n[1]):null},le=At("mceclip"),fe=function(t,e){var n=ue(e.uri),r=n.data,o=n.type,i=le(),a=e.blob,u=new Image;if(u.src=e.uri,se(t,u)){var s=t.editorUpload.blobCache,c=void 0,l=s.getByData(r,o);if(l)c=l;else{var f=nt(t)&&m(a.name),d=f?ce(t,a.name):i,h=f?a.name:void 0;c=s.create(i,a,r,d,h),s.add(c)}ee(t,'<img src="'+c.blobUri()+'">',!1)}else ee(t,'<img src="'+e.uri+'">',!1)},de=function(t){return"paste"===t.type},he=function(t){return m(t.getAsFile)},pe=function(t){return I.all(y(t,(function(t){return new I((function(e){var n=he(t)?t.getAsFile():t,r=new window.FileReader;r.onload=function(){e({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))},me=function(t){var e=at(t);return function(t){return _(t.type,"image/")&&b(e,(function(e){return Et(e)===t.type}))}},ge=function(t,e){var n=e.items?y(S(e.items),(function(t){return t.getAsFile()})):[],r=e.files?S(e.files):[];return w(n.length>0?n:r,me(t))},ve=function(t,e,n){var r=de(e)?e.clipboardData:e.dataTransfer;if(tt(t)&&r){var o=ge(t,r);if(o.length>0)return e.preventDefault(),pe(o).then((function(e){n&&t.selection.setRng(n),x(e,(function(e){fe(t,e)}))})),!0}return!1},be=function(t){var e=t.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&e&&e.items&&0===e.items.length},ye=function(t){return B.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},xe=function(t,e,n){var r,o=k(),i=k();function a(t,n,r,o,i){var a;ie(n,"text/html")?a=n["text/html"]:(a=e.getHtml(),i=i||ft(a),e.isDefaultContent(a)&&(o=!0)),a=_t(a),e.remove();var u=!1===i&&pt(a),s=zt(t,a);(!a.length||u&&!s)&&(o=!0),(o||s)&&(a=ie(n,"text/plain")&&u?n["text/plain"]:Ot(a)),e.isDefaultContent(a)?r||t.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):o?ne(t,a):ee(t,a,i)}t.on("keyup",i.clear),t.on("keydown",(function(n){var a=function(t){ye(t)&&!t.isDefaultPrevented()&&e.remove()};if(ye(n)&&!n.isDefaultPrevented()){if(r=n.shiftKey&&86===n.keyCode,r&&T.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),o.set(n),i.set(!0),T.ie&&r)return n.preventDefault(),void M(t,!0);e.remove(),e.create(),t.once("keyup",a),t.once("paste",(function(){t.off("keyup",a)}))}}));var u=function(){return e.getLastRng()||t.selection.getRng()};t.on("paste",(function(s){var c=o.isSet()||i.isSet();c&&o.clear();var l=oe(t,s),f="text"===n.get()||r,d=ie(l,dt());r=!1,s.isDefaultPrevented()||be(s)?e.remove():ae(l)||!ve(t,s,u())?(c||s.preventDefault(),!T.ie||c&&!s.ieFake||ie(l,"text/html")||(e.create(),t.dom.bind(e.getEl(),"paste",(function(t){t.stopPropagation()})),t.getDoc().execCommand("Paste",!1,null),l["text/html"]=e.getHtml()),ie(l,"text/html")?(s.preventDefault(),d||(d=ft(l["text/html"])),a(t,l,c,f,d)):D.setEditorTimeout(t,(function(){a(t,l,c,f,d)}),0)):e.remove()}))},we=function(t,e,n){var r;xe(t,e,n),t.parser.addNodeFilter("img",(function(e,n,o){var i=function(t){return t.data&&!0===t.data.paste},a=function(t){t.attr("data-mce-object")||r===T.transparentSrc||t.remove()},u=function(t){return 0===t.indexOf("webkit-fake-url")},s=function(t){return 0===t.indexOf("data:")};if(!tt(t)&&i(o)){var c=e.length;while(c--)r=e[c].attr("src"),r&&(u(r)||!Q(t)&&s(r))&&a(e[c])}}))},Ce=function(t){return T.ie&&t.inline?document.body:t.getBody()},Se=function(t){return Ce(t)!==t.getBody()},ke=function(t,e,n){Se(t)&&t.dom.bind(e,"paste keyup",(function(e){Be(t,n)||t.fire("paste")}))},Oe=function(t,e,n){var r=t.dom,o=t.getBody();e.set(t.selection.getRng());var i=t.dom.add(Ce(t),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(T.ie||T.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",(function(t){t.stopPropagation()})),ke(t,i,n),i.focus(),t.selection.select(i,!0)},_e=function(t,e){if(Ae(t)){var n=void 0,r=e.get();while(n=t.dom.get("mcepastebin"))t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)},Ae=function(t){return t.dom.get("mcepastebin")},Ee=function(t){var e=function(e,n){e.appendChild(n),t.dom.remove(n,!0)},n=j.grep(Ce(t).childNodes,(function(t){return"mcepastebin"===t.id})),r=n.shift();j.each(n,(function(t){e(r,t)}));for(var o=t.dom.select("div[id=mcepastebin]",r),i=o.length-1;i>=0;i--){var a=t.dom.create("div");r.insertBefore(a,o[i]),e(a,o[i])}return r?r.innerHTML:""},Te=function(t){return t.get()},De=function(t,e){return e===t},Ie=function(t){return t&&"mcepastebin"===t.id},Be=function(t,e){var n=Ae(t);return Ie(n)&&De(e,n.innerHTML)},Le=function(e){var n=t(null),r="%MCEPASTEBIN%";return{create:function(){return Oe(e,n,r)},remove:function(){return _e(e,n)},getEl:function(){return Ae(e)},getHtml:function(){return Ee(e)},getLastRng:function(){return Te(n)},isDefault:function(){return Be(e,r)},isDefaultContent:function(t){return De(r,t)}}},Ne=function(t,e){var n=Le(t);return t.on("PreInit",(function(){return we(t,n,e)})),{pasteFormat:e,pasteHtml:function(e,n){return ee(t,e,n)},pasteText:function(e){return ne(t,e)},pasteImageData:function(e,n){return ve(t,e,n)},getDataTransferItems:re,hasHtmlOrText:ae,hasContentType:ie}},Pe=function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),P(t,!1)):(e.pasteFormat.set("text"),P(t,!0)),t.focus()},Me=function(t,e){t.addCommand("mceTogglePlainTextPaste",(function(){Pe(t,e)})),t.addCommand("mceInsertClipboardContent",(function(t,n){n.content&&e.pasteHtml(n.content,n.internal),n.text&&e.pasteText(n.text)}))},je=function(t){return!1===T.iOS&&"function"===typeof(null===t||void 0===t?void 0:t.setData)},Re=function(t,e,n){if(!je(t))return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(dt(),e),!0}catch(r){return!1}},$e=function(t,e,n,r){Re(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},Fe=function(t){return function(e,n){var r=ct(e),o=t.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=t.dom.create("div",{contenteditable:"true"},r);t.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),t.dom.add(t.getBody(),o);var a=t.selection.getRng();i.focus();var u=t.dom.createRng();u.selectNodeContents(i),t.selection.setRng(u),D.setTimeout((function(){t.selection.setRng(a),o.parentNode.removeChild(o),n()}),0)}},Ve=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},He=function(t){return!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody())},ze=function(t){return!t.selection.isCollapsed()||He(t)},Ue=function(t){return function(e){ze(t)&&$e(e,Ve(t),Fe(t),(function(){if(T.browser.isChrome()||T.browser.isFirefox()){var e=t.selection.getRng();D.setEditorTimeout(t,(function(){t.selection.setRng(e),t.execCommand("Delete")}),0)}else t.execCommand("Delete")}))}},We=function(t){return function(e){ze(t)&&$e(e,Ve(t),Fe(t),(function(){}))}},qe=function(t){t.on("cut",Ue(t)),t.on("copy",We(t))},Ge=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ye=function(t,e){return Ge.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},Xe=function(t){var e=t["text/plain"];return!!e&&0===e.indexOf("file://")},Ke=function(t,e){t.focus(),t.selection.setRng(e)},Ze=function(t,e,n){R(t)&&t.on("dragend dragover draggesture dragdrop drop drag",(function(t){t.preventDefault(),t.stopPropagation()})),$(t)||t.on("drop",(function(t){var e=t.dataTransfer;e&&e.files&&e.files.length>0&&t.preventDefault()})),t.on("drop",(function(r){var o=Ye(t,r);if(!r.isDefaultPrevented()&&!n.get()){var i=e.getDataTransferItems(r.dataTransfer),a=e.hasContentType(i,dt());if((e.hasHtmlOrText(i)&&!Xe(i)||!e.pasteImageData(r,o))&&o&&F(t)){var u=i["mce-internal"]||i["text/html"]||i["text/plain"];u&&(r.preventDefault(),D.setEditorTimeout(t,(function(){t.undoManager.transact((function(){i["mce-internal"]&&t.execCommand("Delete"),Ke(t,o),u=_t(u),i["text/html"]?e.pasteHtml(u,a):e.pasteText(u)}))})))}}})),t.on("dragstart",(function(t){n.set(!0)})),t.on("dragover dragend",(function(e){$(t)&&!1===n.get()&&(e.preventDefault(),Ke(t,Ye(t,e))),"dragend"===e.type&&n.set(!1)}))},Je=function(t){var e=t.plugins.paste,n=V(t);n&&t.on("PastePreProcess",(function(t){n.call(e,e,t)}));var r=H(t);r&&t.on("PastePostProcess",(function(t){r.call(e,e,t)}))};function Qe(t,e){t.on("PastePreProcess",(function(n){n.content=e(t,n.content,n.internal,n.wordContent)}))}function tn(t,e){t.on("PastePostProcess",(function(n){e(t,n.node)}))}function en(t,e){if(!Tt(e))return e;var n=[];j.each(t.schema.getBlockElements(),(function(t,e){n.push(e)}));var r=new RegExp("(?:<br> [\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br> [\\s\\r\\n]+|<br>)*","g");return e=kt(e,[[r,"$1"]]),e=kt(e,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]]),e}function nn(t,e,n,r){if(r||n)return e;var o,i=z(t);if(!1===U(t)||"all"===i)return e;if(i&&(o=i.split(/[, ]/)),o){var a=t.dom,u=t.selection.getNode();e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(t,e,n,r){var i=a.parseStyle(a.decode(n)),s={};if("none"===o)return e+r;for(var c=0;c<o.length;c++){var l=i[o[c]],f=a.getStyle(u,o[c],!0);/color/.test(o[c])&&(l=a.toHex(l),f=a.toHex(f)),f!==l&&(s[o[c]]=l)}return s=a.serializeStyle(s,"span"),s?e+' style="'+s+'"'+r:e+r}))}else e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(t,e,n,r){return e+' style="'+n+'"'+r})),e}function rn(t,e){t.$("a",e).find("font,u").each((function(e,n){t.dom.remove(n,!0)}))}var on=function(t){T.webkit&&Qe(t,nn),T.ie&&(Qe(t,en),tn(t,rn))},an=function(t,e){return function(n){n.setActive("text"===e.pasteFormat.get());var r=function(t){return n.setActive(t.state)};return t.on("PastePlainTextToggle",r),function(){return t.off("PastePlainTextToggle",r)}}},un=function(t,e){t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:an(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:an(t,e)})};function sn(){e.add("paste",(function(e){if(!1===n(e)){var o=t(!1),i=t(G(e)?"text":"html"),a=Ne(e,i),u=on(e);return un(e,a),Me(e,a),Je(e),qe(e),Ze(e,a,o),r(a,u)}}))}sn()})()},"7c73":function(t,e,n){var r,o=n("825a"),i=n("37e8"),a=n("7839"),u=n("d012"),s=n("1be4"),c=n("cc12"),l=n("f772"),f=">",d="<",h="prototype",p="script",m=l("IE_PROTO"),g=function(){},v=function(t){return d+p+f+t+d+"/"+p+f},b=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=c("iframe"),n="java"+p+":";return e.style.display="none",s.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?b(r):y();var t=a.length;while(t--)delete x[h][a[t]];return x()};u[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[h]=o(t),n=new g,g[h]=null,n[m]=t):n=x(),void 0===e?n:i(n,e)}},"7db0":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").find,i=n("44d2"),a=n("ae40"),u="find",s=!0,c=a(u);u in[]&&Array(1)[u]((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!c},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(u)},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),a=n("d2bb"),u=n("d44e"),s=n("9112"),c=n("6eeb"),l=n("b622"),f=n("c430"),d=n("3f8c"),h=n("ae93"),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),v="keys",b="values",y="entries",x=function(){return this};t.exports=function(t,e,n,l,h,w,C){o(n,e,l);var S,k,O,_=function(t){if(t===h&&I)return I;if(!m&&t in T)return T[t];switch(t){case v:return function(){return new n(this,t)};case b:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this)}},A=e+" Iterator",E=!1,T=t.prototype,D=T[g]||T["@@iterator"]||h&&T[h],I=!m&&D||_(h),B="Array"==e&&T.entries||D;if(B&&(S=i(B.call(new t)),p!==Object.prototype&&S.next&&(f||i(S)===p||(a?a(S,p):"function"!=typeof S[g]&&s(S,g,x)),u(S,A,!0,!0),f&&(d[A]=x))),h==b&&D&&D.name!==b&&(E=!0,I=function(){return D.call(this)}),f&&!C||T[g]===I||s(T,g,I),d[e]=I,h)if(k={values:_(b),keys:w?I:_(v),entries:_(y)},C)for(O in k)(m||E||!(O in T))&&c(T,O,k[O]);else r({target:e,proto:!0,forced:m||E},k);return k}},"7e2b":function(t,e,n){"use strict";var r=n("2b0e");function o(t){return function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(e,r)||this.$delete(this.$data[t],r);for(var o in e)this.$set(this.$data[t],o,e[o])}}e["a"]=r["a"].extend({data:function(){return{attrs$:{},listeners$:{}}},created:function(){this.$watch("$attrs",o("attrs$"),{immediate:!0}),this.$watch("$listeners",o("listeners$"),{immediate:!0})}})},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"80d2":function(t,e,n){"use strict";n.d(e,"i",(function(){return a})),n.d(e,"a",(function(){return u})),n.d(e,"C",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"o",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"p",(function(){return h})),n.d(e,"r",(function(){return p})),n.d(e,"h",(function(){return m})),n.d(e,"u",(function(){return g})),n.d(e,"l",(function(){return b})),n.d(e,"n",(function(){return y})),n.d(e,"g",(function(){return x})),n.d(e,"x",(function(){return w})),n.d(e,"y",(function(){return S})),n.d(e,"D",(function(){return k})),n.d(e,"z",(function(){return O})),n.d(e,"c",(function(){return A})),n.d(e,"H",(function(){return E})),n.d(e,"v",(function(){return T})),n.d(e,"I",(function(){return D})),n.d(e,"F",(function(){return I})),n.d(e,"k",(function(){return B})),n.d(e,"E",(function(){return L})),n.d(e,"t",(function(){return N})),n.d(e,"G",(function(){return P})),n.d(e,"q",(function(){return M})),n.d(e,"s",(function(){return j})),n.d(e,"f",(function(){return R})),n.d(e,"B",(function(){return $})),n.d(e,"e",(function(){return F})),n.d(e,"w",(function(){return V})),n.d(e,"d",(function(){return H})),n.d(e,"A",(function(){return z})),n.d(e,"m",(function(){return U}));n("99af"),n("a623"),n("cb29"),n("4de4"),n("a630"),n("c975"),n("d81d"),n("13d5"),n("fb6a"),n("45fc"),n("b0c0"),n("a9e3"),n("b680"),n("dca8"),n("b64b"),n("d3b7"),n("ac1f"),n("25f0"),n("3ca3"),n("38cf"),n("5319"),n("1276"),n("2ca0"),n("498a");var r=n("3835"),o=n("53ca"),i=(n("5530"),n("2b0e"));function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return i["a"].extend({name:n||t.replace(/__/g,"-"),functional:!0,render:function(n,r){var o=r.data,i=r.children;return o.staticClass="".concat(t," ").concat(o.staticClass||"").trim(),n(e,o,i)}})}function u(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=function o(i){n(i),t.removeEventListener(e,o,r)};t.addEventListener(e,o,r)}var s=!1;try{if("undefined"!==typeof window){var c=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testListener",c,c),window.removeEventListener("testListener",c,c)}}catch(W){console.warn(W)}function l(t,e,n,r){t.addEventListener(e,n,!!s&&r)}function f(t,e,n){var r=e.length-1;if(r<0)return void 0===t?n:t;for(var o=0;o<r;o++){if(null==t)return n;t=t[e[o]]}return null==t||void 0===t[e[r]]?n:t[e[r]]}function d(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date&&t.getTime()!==e.getTime())return!1;if(t!==Object(t)||e!==Object(e))return!1;var n=Object.keys(t);return n.length===Object.keys(e).length&&n.every((function(n){return d(t[n],e[n])}))}function h(t,e,n){return null!=t&&e&&"string"===typeof e?void 0!==t[e]?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),f(t,e.split("."),n)):n}function p(t,e,n){if(null==e)return void 0===t?n:t;if(t!==Object(t))return void 0===n?t:n;if("string"===typeof e)return h(t,e,n);if(Array.isArray(e))return f(t,e,n);if("function"!==typeof e)return n;var r=e(t,n);return"undefined"===typeof r?n:r}function m(t){return Array.from({length:t},(function(t,e){return e}))}function g(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return 0;var e=+window.getComputedStyle(t).getPropertyValue("z-index");return e||g(t.parentNode)}var v={"&":"&","<":"<",">":">"};function b(t){return t.replace(/[&<>]/g,(function(t){return v[t]||t}))}function y(t,e){for(var n={},r=0;r<e.length;r++){var o=e[r];"undefined"!==typeof t[o]&&(n[o]=t[o])}return n}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return null==t||""===t?void 0:isNaN(+t)?String(t):"".concat(Number(t)).concat(e)}function w(t){return(t||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function C(t){return null!==t&&"object"===Object(o["a"])(t)}var S=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34});function k(t,e){if(!e.startsWith("$"))return e;var n="$vuetify.icons.values.".concat(e.split("$").pop().split(".").pop());return h(t,n,e)}function O(t){return Object.keys(t)}var _=/-(\w)/g,A=function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))};function E(t){return t.charAt(0).toUpperCase()+t.slice(1)}function T(t,e,n){for(var r=e[0],o=[],i=null,a=0;a<t.length;a++){var u=t[a],s=h(u,r);i!==s&&(i=s,o.push({name:s,items:[]})),o[o.length-1].items.push(u)}return o}function D(t){return null!=t?Array.isArray(t)?t:[t]:[]}function I(t,e,n,o,i){if(null===e||!e.length)return t;var a=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.sort((function(t,o){for(var u=0;u<e.length;u++){var s=e[u],c=h(t,s),l=h(o,s);if(n[u]){var f=[l,c];c=f[0],l=f[1]}if(i&&i[s]){var d=i[s](c,l);if(!d)continue;return d}if(null!==c||null!==l){var p=[c,l].map((function(t){return(t||"").toString().toLocaleLowerCase()})),m=Object(r["a"])(p,2);if(c=m[0],l=m[1],c!==l)return isNaN(c)||isNaN(l)?a.compare(c,l):Number(c)-Number(l)}}return 0}))}function B(t,e,n){return null!=t&&null!=e&&"boolean"!==typeof t&&-1!==t.toString().toLocaleLowerCase().indexOf(e.toLocaleLowerCase())}function L(t,e){return e?(e=e.toString().toLowerCase(),""===e.trim()?t:t.filter((function(t){return Object.keys(t).some((function(n){return B(h(t,n),e,t)}))}))):t}function N(t,e,n){return t.$slots[e]&&t.$scopedSlots[e]&&t.$scopedSlots[e].name?n?"v-slot":"scoped":t.$slots[e]?"normal":t.$scopedSlots[e]?"scoped":void 0}function P(t,e){var n=!1;return function(){if(!n)return n=!0,setTimeout((function(){return n=!1}),e),t.apply(void 0,arguments)}}function M(t,e){return Object.keys(e).filter((function(e){return e.startsWith(t)})).reduce((function(n,r){return n[r.replace(t,"")]=e[r],n}),{})}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.$scopedSlots[e]?t.$scopedSlots[e](n instanceof Function?n():n):!t.$slots[e]||n&&!r?void 0:t.$slots[e]}function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(e,Math.min(n,t))}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";return t+n.repeat(Math.max(0,e-t.length))}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=0;while(r<t.length)n.push(t.substr(r,e)),r+=e;return n}function V(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?1024:1e3;if(t<n)return"".concat(t," B");var r=e?["Ki","Mi","Gi"]:["k","M","G"],o=-1;while(Math.abs(t)>=n&&o<r.length-1)t/=n,++o;return"".concat(t.toFixed(1)," ").concat(r[o],"B")}function H(t){return t?Object.keys(t).reduce((function(e,n){return e[A(n)]=t[n],e}),{}):{}}function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e){var r=t[n],o=e[n];C(r)&&C(o)?t[n]=z(r,o):t[n]=o}return t}function U(t,e){return Array(t).fill(e)}},"81d5":function(t,e,n){"use strict";var r=n("7b0b"),o=n("23cb"),i=n("50c4");t.exports=function(t){var e=r(this),n=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);while(c>u)e[u++]=t;return e}},8212:function(t,e,n){"use strict";n("a9e3");var r=n("5530"),o=(n("3408"),n("a9ad")),i=n("24b2"),a=n("a236"),u=n("80d2"),s=n("58df");e["a"]=Object(s["a"])(o["a"],i["a"],a["a"]).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes:function(){return Object(r["a"])({"v-avatar--left":this.left,"v-avatar--right":this.right},this.roundedClasses)},styles:function(){return Object(r["a"])({height:Object(u["g"])(this.size),minWidth:Object(u["g"])(this.size),width:Object(u["g"])(this.size)},this.measurableStyles)}},render:function(t){var e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),this.$slots.default)}})},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},8270:function(t,e,n){"use strict";n("a9e3");var r=n("5530"),o=n("713a");e["a"]=o["a"].extend({name:"v-list-item-avatar",props:{horizontal:Boolean,size:{type:[Number,String],default:40}},computed:{classes:function(){return Object(r["a"])({"v-list-item__avatar--horizontal":this.horizontal},o["a"].options.computed.classes.call(this),{"v-avatar--tile":this.tile||this.horizontal})}},render:function(t){var e=o["a"].options.render.call(this,t);return e.data=e.data||{},e.data.staticClass+=" v-list-item__avatar",e}})},"82f8":function(t,e,n){"use strict";var r=n("ebb5"),o=n("4d64").includes,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("includes",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},8336:function(t,e,n){"use strict";n("4160"),n("caad"),n("c7cd");var r=n("53ca"),o=n("3835"),i=n("5530"),a=(n("86cc"),n("10d2")),u=n("490a"),s=u["a"],c=n("4e82"),l=n("f2e7"),f=n("fe6c"),d=n("1c87"),h=n("af2b"),p=n("58df"),m=n("d9bd"),g=Object(p["a"])(a["a"],d["a"],f["a"],h["a"],Object(c["a"])("btnToggle"),Object(l["b"])("inputValue"));e["a"]=g.extend().extend({name:"v-btn",props:{activeClass:{type:String,default:function(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:function(){return{proxyClass:"v-btn--active"}},computed:{classes:function(){return Object(i["a"])({"v-btn":!0},d["a"].options.computed.classes.call(this),{"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--contained":this.contained,"v-btn--depressed":this.depressed||this.outlined,"v-btn--disabled":this.disabled,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--flat":this.isFlat,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top},this.themeClasses,{},this.groupClasses,{},this.elevationClasses,{},this.sizeableClasses)},contained:function(){return Boolean(!this.isFlat&&!this.depressed&&!this.elevation)},computedRipple:function(){var t,e=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!=(t=this.ripple)?t:e)},isFlat:function(){return Boolean(this.icon||this.text||this.outlined)},isRound:function(){return Boolean(this.icon||this.fab)},styles:function(){return Object(i["a"])({},this.measurableStyles)}},created:function(){var t=this,e=[["flat","text"],["outline","outlined"],["round","rounded"]];e.forEach((function(e){var n=Object(o["a"])(e,2),r=n[0],i=n[1];t.$attrs.hasOwnProperty(r)&&Object(m["a"])(r,i,t)}))},methods:{click:function(t){!this.retainFocusOnClick&&!this.fab&&t.detail&&this.$el.blur(),this.$emit("click",t),this.btnToggle&&this.toggle()},genContent:function(){return this.$createElement("span",{staticClass:"v-btn__content"},this.$slots.default)},genLoader:function(){return this.$createElement("span",{class:"v-btn__loader"},this.$slots.loader||[this.$createElement(s,{props:{indeterminate:!0,size:23,width:2}})])}},render:function(t){var e=[this.genContent(),this.loading&&this.genLoader()],n=this.isFlat?this.setTextColor:this.setBackgroundColor,o=this.generateRouteLink(),i=o.tag,a=o.data;return"button"===i&&(a.attrs.type=this.type,a.attrs.disabled=this.disabled),a.attrs.value=["string","number"].includes(Object(r["a"])(this.value))?this.value:JSON.stringify(this.value),t(i,this.disabled?a:n(this.color,a),e)}})},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var r=n("d925"),o=n("e683");t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},8418:function(t,e,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},"841c":function(t,e,n){"use strict";var r=n("d784"),o=n("825a"),i=n("1d80"),a=n("129f"),u=n("14c3");r("search",1,(function(t,e,n){return[function(e){var n=i(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=o(t),s=String(this),c=i.lastIndex;a(c,0)||(i.lastIndex=0);var l=u(i,s);return a(i.lastIndex,c)||(i.lastIndex=c),null===l?-1:l.index}]}))},"84ec":function(t,e,n){n("2401")},8547:function(t,e,n){"use strict";var r=n("2b0e"),o=n("80d2");e["a"]=r["a"].extend({name:"comparable",props:{valueComparator:{type:Function,default:o["j"]}}})},"857a":function(t,e,n){var r=n("1d80"),o=/"/g;t.exports=function(t,e,n,i){var a=String(r(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+String(i).replace(o,""")+'"'),u+">"+a+"</"+e+">"}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8654:function(t,e,n){"use strict";n("0481"),n("caad"),n("4069"),n("a9e3"),n("2b19"),n("d3b7"),n("25f0");var r=n("2909"),o=n("5530"),i=(n("4ff9"),n("c37a")),a=(n("99af"),n("e9b1"),n("7560")),u=n("58df"),s=Object(u["a"])(a["a"]).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render:function(t,e){var n=e.props,r=parseInt(n.max,10),i=parseInt(n.value,10),u=r?"".concat(i," / ").concat(r):String(n.value),s=r&&i>r;return t("div",{staticClass:"v-counter",class:Object(o["a"])({"error--text":s},Object(a["b"])(e))},u)}}),c=s,l=n("ba87"),f=n("90a2"),d=n("d9bd"),h=n("2b0e");function p(t){return"undefined"!==typeof window&&"IntersectionObserver"in window?h["a"].extend({name:"intersectable",mounted:function(){f["a"].inserted(this.$el,{name:"intersect",value:this.onObserve})},destroyed:function(){f["a"].unbind(this.$el)},methods:{onObserve:function(e,n,r){if(r)for(var o=0,i=t.onVisible.length;o<i;o++){var a=this[t.onVisible[o]];"function"!==typeof a?Object(d["c"])(t.onVisible[o]+" method is not available on the instance but referenced in intersectable mixin options"):a()}}}}):h["a"].extend({name:"intersectable"})}var m=n("297c"),g=n("38cb"),v=n("dc22"),b=n("5607"),y=n("80d2"),x=Object(u["a"])(i["a"],p({onVisible:["onResize","tryAutofocus"]}),m["a"]),w=["color","file","time","date","datetime-local","week","month"];e["a"]=x.extend().extend({name:"v-text-field",directives:{resize:v["a"],ripple:b["a"]},inheritAttrs:!1,props:{appendOuterIcon:String,autofocus:Boolean,clearable:Boolean,clearIcon:{type:String,default:"$clear"},counter:[Boolean,Number,String],counterValue:Function,filled:Boolean,flat:Boolean,fullWidth:Boolean,label:String,outlined:Boolean,placeholder:String,prefix:String,prependInnerIcon:String,reverse:Boolean,rounded:Boolean,shaped:Boolean,singleLine:Boolean,solo:Boolean,soloInverted:Boolean,suffix:String,type:{type:String,default:"text"}},data:function(){return{badInput:!1,labelWidth:0,prefixWidth:0,prependWidth:0,initialValue:null,isBooted:!1,isClearing:!1}},computed:{classes:function(){return Object(o["a"])({},i["a"].options.computed.classes.call(this),{"v-text-field":!0,"v-text-field--full-width":this.fullWidth,"v-text-field--prefix":this.prefix,"v-text-field--single-line":this.isSingle,"v-text-field--solo":this.isSolo,"v-text-field--solo-inverted":this.soloInverted,"v-text-field--solo-flat":this.flat,"v-text-field--filled":this.filled,"v-text-field--is-booted":this.isBooted,"v-text-field--enclosed":this.isEnclosed,"v-text-field--reverse":this.reverse,"v-text-field--outlined":this.outlined,"v-text-field--placeholder":this.placeholder,"v-text-field--rounded":this.rounded,"v-text-field--shaped":this.shaped})},computedColor:function(){var t=g["a"].options.computed.computedColor.call(this);return this.soloInverted&&this.isFocused?this.color||"primary":t},computedCounterValue:function(){return"function"===typeof this.counterValue?this.counterValue(this.internalValue):Object(r["a"])((this.internalValue||"").toString()).length},hasCounter:function(){return!1!==this.counter&&null!=this.counter},hasDetails:function(){return i["a"].options.computed.hasDetails.call(this)||this.hasCounter},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",this.lazyValue)}},isDirty:function(){var t;return(null==(t=this.lazyValue)?void 0:t.toString().length)>0||this.badInput},isEnclosed:function(){return this.filled||this.isSolo||this.outlined},isLabelActive:function(){return this.isDirty||w.includes(this.type)},isSingle:function(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo:function(){return this.solo||this.soloInverted},labelPosition:function(){var t=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(t-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:t,right:"auto"}:{left:"auto",right:t}},showLabel:function(){return this.hasLabel&&(!this.isSingle||!this.isLabelActive&&!this.placeholder)},labelValue:function(){return!this.isSingle&&Boolean(this.isFocused||this.isLabelActive||this.placeholder)}},watch:{outlined:"setLabelWidth",label:function(){this.$nextTick(this.setLabelWidth)},prefix:function(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value:function(t){this.lazyValue=t}},created:function(){this.$attrs.hasOwnProperty("box")&&Object(d["a"])("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&Object(d["a"])("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&Object(d["c"])("shaped should be used with either filled or outlined",this)},mounted:function(){var t=this;this.$watch((function(){return t.labelValue}),this.setLabelWidth),this.autofocus&&this.tryAutofocus(),requestAnimationFrame((function(){return t.isBooted=!0}))},methods:{focus:function(){this.onFocus()},blur:function(t){var e=this;window.requestAnimationFrame((function(){e.$refs.input&&e.$refs.input.blur()}))},clearableCallback:function(){var t=this;this.$refs.input&&this.$refs.input.focus(),this.$nextTick((function(){return t.internalValue=null}))},genAppendSlot:function(){var t=[];return this.$slots["append-outer"]?t.push(this.$slots["append-outer"]):this.appendOuterIcon&&t.push(this.genIcon("appendOuter")),this.genSlot("append","outer",t)},genPrependInnerSlot:function(){var t=[];return this.$slots["prepend-inner"]?t.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&t.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",t)},genIconSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","inner",t)},genInputSlot:function(){var t=i["a"].options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(t.children=t.children||[],t.children.unshift(e)),t},genClearIcon:function(){if(!this.clearable)return null;var t=this.isDirty?void 0:{attrs:{disabled:!0}};return this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback,t)])},genCounter:function(){if(!this.hasCounter)return null;var t=!0===this.counter?this.attrs$.maxlength:this.counter;return this.$createElement(c,{props:{dark:this.dark,light:this.light,max:t,value:this.computedCounterValue}})},genControl:function(){return i["a"].options.methods.genControl.call(this)},genDefaultSlot:function(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset:function(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel:function(){if(!this.showLabel)return null;var t={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(l["a"],t,this.$slots.label||this.label)},genLegend:function(){var t=this.singleLine||!this.labelValue&&!this.isDirty?0:this.labelWidth,e=this.$createElement("span",{domProps:{innerHTML:"​"}});return this.$createElement("legend",{style:{width:this.isSingle?void 0:Object(y["g"])(t)}},[e])},genInput:function(){var t=Object.assign({},this.listeners$);return delete t.change,this.$createElement("input",{style:{},domProps:{value:"number"===this.type&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:Object(o["a"])({},this.attrs$,{autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.placeholder,readonly:this.isReadonly,type:this.type}),on:Object.assign(t,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]})},genMessages:function(){if(!this.showDetails)return null;var t=i["a"].options.methods.genMessages.call(this),e=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[t,e])},genTextFieldSlot:function(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix:function(t){return this.$createElement("div",{class:"v-text-field__".concat(t),ref:t},this[t])},onBlur:function(t){var e=this;this.isFocused=!1,t&&this.$nextTick((function(){return e.$emit("blur",t)}))},onClick:function(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus:function(t){if(this.$refs.input)return document.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,t&&this.$emit("focus",t)))},onInput:function(t){var e=t.target;this.internalValue=e.value,this.badInput=e.validity&&e.validity.badInput},onKeyDown:function(t){t.keyCode===y["y"].enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown:function(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),i["a"].options.methods.onMouseDown.call(this,t)},onMouseUp:function(t){this.hasMouseDown&&this.focus(),i["a"].options.methods.onMouseUp.call(this,t)},setLabelWidth:function(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(.75*this.$refs.label.scrollWidth+6,this.$el.offsetWidth-24):0)},setPrefixWidth:function(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth:function(){this.outlined&&this.$refs["prepend-inner"]&&(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus:function(){return!(!this.autofocus||"undefined"===typeof document||!this.$refs.input||document.activeElement===this.$refs.input)&&(this.$refs.input.focus(),!0)},updateValue:function(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize:function(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}})},"86cc":function(t,e,n){},8860:function(t,e,n){"use strict";n("c740"),n("0481"),n("a434"),n("4069");var r=n("b85c"),o=n("5530"),i=(n("3ad0"),n("8dd9"));e["a"]=i["a"].extend().extend({name:"v-list",provide:function(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:function(){return{groups:[]}},computed:{classes:function(){return Object(o["a"])({},i["a"].options.computed.classes.call(this),{"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine})}},methods:{register:function(t){this.groups.push(t)},unregister:function(t){var e=this.groups.findIndex((function(e){return e._uid===t._uid}));e>-1&&this.groups.splice(e,1)},listClick:function(t){if(!this.expand){var e,n=Object(r["a"])(this.groups);try{for(n.s();!(e=n.n()).done;){var o=e.value;o.toggle(t)}}catch(i){n.e(i)}finally{n.f()}}}},render:function(t){var e={staticClass:"v-list",class:this.classes,style:this.styles,attrs:Object(o["a"])({role:this.isInNav||this.isInMenu?void 0:"list"},this.attrs$)};return t(this.tag,this.setBackgroundColor(this.color,e),[this.$slots.default])}})},"88b6":function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t,e,n){var r="UL"===e?"InsertUnorderedList":"InsertOrderedList";t.execCommand(r,!1,!1===n?null:{"list-style-type":n})},n=function(t){t.addCommand("ApplyUnorderedListStyle",(function(n,r){e(t,"UL",r["list-style-type"])})),t.addCommand("ApplyOrderedListStyle",(function(n,r){e(t,"OL",r["list-style-type"])}))},r=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=function(t){var e=t.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return e?e.split(/[ ,]/):[]},i=function(t){var e=t.getParam("advlist_bullet_styles","default,circle,square");return e?e.split(/[ ,]/):[]},a=function(){},u=function(t){return function(){return t}},s=u(!1),c=u(!0),l=function(){return f},f=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:s,isSome:s,isNone:c,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(void 0),or:n,orThunk:e,map:l,each:a,bind:l,exists:s,forall:c,filter:l,equals:t,equals_:t,toArray:function(){return[]},toString:u("none()")};return r}(),d=function(t){var e=u(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:c,isNone:s,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return d(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:f},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(s,(function(e){return n(t,e)}))}};return o},h=function(t){return null===t||void 0===t?f:d(t)},p={some:d,none:l,from:h},m=function(t,e){return t.$.contains(t.getBody(),e)},g=function(t){return t&&/^(TH|TD)$/.test(t.nodeName)},v=function(t){return function(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)&&m(t,e)}},b=function(t){var e=t.dom.getParent(t.selection.getNode(),"ol,ul"),n=t.dom.getStyle(e,"listStyleType");return p.from(n)},y=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(e(r))return n}return-1},x=function(t){return t.replace(/\-/g," ").replace(/\b\w/g,(function(t){return t.toUpperCase()}))},w=function(t,e,n){var o=y(e.parents,g),i=-1!==o?e.parents.slice(0,o):e.parents,a=r.grep(i,v(t));return a.length>0&&a[0].nodeName===n},C=function(t,n,o,i,a,u){t.ui.registry.addSplitButton(n,{tooltip:o,icon:"OL"===a?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(t){var e=r.map(u,(function(t){var e="OL"===a?"num":"bull",n="disc"===t||"decimal"===t?"default":t,r="default"===t?"":t,o=x(t);return{type:"choiceitem",value:r,icon:"list-"+e+"-"+n,text:o}}));t(e)},onAction:function(){return t.execCommand(i)},onItemAction:function(n,r){e(t,a,r)},select:function(e){var n=b(t);return n.map((function(t){return e===t})).getOr(!1)},onSetup:function(e){var n=function(n){e.setActive(w(t,n,a))};return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}}})},S=function(t,e,n,r,o,i){t.ui.registry.addToggleButton(e,{active:!1,tooltip:n,icon:"OL"===o?"ordered-list":"unordered-list",onSetup:function(e){var n=function(n){e.setActive(w(t,n,o))};return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}},onAction:function(){return t.execCommand(r)}})},k=function(t,e,n,r,o,i){i.length>1?C(t,e,n,r,o,i):S(t,e,n,r,o)},O=function(t){k(t,"numlist","Numbered list","InsertOrderedList","OL",o(t)),k(t,"bullist","Bullet list","InsertUnorderedList","UL",i(t))};function _(){t.add("advlist",(function(t){t.hasPlugin("lists")&&(O(t),n(t))}))}_()})()},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"899c":function(t,e,n){},"8a79":function(t,e,n){"use strict";var r=n("23e7"),o=n("06cf").f,i=n("50c4"),a=n("5a34"),u=n("1d80"),s=n("ab13"),c=n("c430"),l="".endsWith,f=Math.min,d=s("endsWith"),h=!c&&!d&&!!function(){var t=o(String.prototype,"endsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!h&&!d},{endsWith:function(t){var e=String(u(this));a(t);var n=arguments.length>1?arguments[1]:void 0,r=i(e.length),o=void 0===n?r:f(i(n),r),s=String(t);return l?l.call(e,s,o):e.slice(o-s.length,o)===s}})},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8aa7":function(t,e,n){var r=n("da84"),o=n("d039"),i=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,u=r.ArrayBuffer,s=r.Int8Array;t.exports=!a||!o((function(){s(1)}))||!o((function(){new s(-1)}))||!i((function(t){new s,new s(null),new s(1.5),new s(t)}),!0)||o((function(){return 1!==new s(new u(2),1,void 0).length}))},"8adc":function(t,e,n){},"8b0d":function(t,e,n){},"8b37":function(t,e,n){},"8c4f":function(t,e,n){"use strict"; 13 /*! 14 * vue-router v3.4.9 15 * (c) 2020 Evan You 16 * @license MIT 17 */function r(t,e){0}function o(t,e){for(var n in e)t[n]=e[n];return t}var i=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},u=/%2C/g,s=function(t){return encodeURIComponent(t).replace(i,a).replace(u,",")};function c(t){try{return decodeURIComponent(t)}catch(e){0}return t}function l(t,e,n){void 0===e&&(e={});var r,o=n||d;try{r=o(t||"")}catch(u){r={}}for(var i in e){var a=e[i];r[i]=Array.isArray(a)?a.map(f):f(a)}return r}var f=function(t){return null==t||"object"===typeof t?t:String(t)};function d(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),o=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]})),e):e}function h(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return s(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(s(e)):r.push(s(e)+"="+s(t)))})),r.join("&")}return s(e)+"="+s(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function m(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=g(i)}catch(u){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:y(e,o),matched:t?b(t):[]};return n&&(a.redirectedFrom=y(n,o)),Object.freeze(a)}function g(t){if(Array.isArray(t))return t.map(g);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=g(t[n]);return e}return t}var v=m(null,{path:"/"});function b(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function y(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;void 0===o&&(o="");var i=e||h;return(n||"/")+i(r)+o}function x(t,e){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&t.hash===e.hash&&w(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&w(t.query,e.query)&&w(t.params,e.params)))}function w(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,o){var i=t[n],a=r[o];if(a!==n)return!1;var u=e[n];return null==i||null==u?i===u:"object"===typeof i&&"object"===typeof u?w(i,u):String(i)===String(u)}))}function C(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&S(t.query,e.query)}function S(t,e){for(var n in e)if(!(n in t))return!1;return!0}function k(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var o=n.instances[r],i=n.enteredCbs[r];if(o&&i){delete n.enteredCbs[r];for(var a=0;a<i.length;a++)o._isBeingDestroyed||i[a](o)}}}}var O={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,a=e.data;a.routerView=!0;var u=i.$createElement,s=n.name,c=i.$route,l=i._routerViewCache||(i._routerViewCache={}),f=0,d=!1;while(i&&i._routerRoot!==i){var h=i.$vnode?i.$vnode.data:{};h.routerView&&f++,h.keepAlive&&i._directInactive&&i._inactive&&(d=!0),i=i.$parent}if(a.routerViewDepth=f,d){var p=l[s],m=p&&p.component;return m?(p.configProps&&_(m,a,p.route,p.configProps),u(m,a,r)):u()}var g=c.matched[f],v=g&&g.components[s];if(!g||!v)return l[s]=null,u();l[s]={component:v},a.registerRouteInstance=function(t,e){var n=g.instances[s];(e&&n!==t||!e&&n===t)&&(g.instances[s]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){g.instances[s]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[s]&&(g.instances[s]=t.componentInstance),k(c)};var b=g.props&&g.props[s];return b&&(o(l[s],{route:c,configProps:b}),_(v,a,c,b)),u(v,a,r)}};function _(t,e,n,r){var i=e.props=A(n,r);if(i){i=e.props=o({},i);var a=e.attrs=e.attrs||{};for(var u in i)t.props&&u in t.props||(a[u]=i[u],delete i[u])}}function A(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}function E(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var o=e.split("/");n&&o[o.length-1]||o.pop();for(var i=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var u=i[a];".."===u?o.pop():"."!==u&&o.push(u)}return""!==o[0]&&o.unshift(""),o.join("/")}function T(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}function D(t){return t.replace(/\/\//g,"/")}var I=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},B=Z,L=R,N=$,P=H,M=K,j=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function R(t,e){var n,r=[],o=0,i=0,a="",u=e&&e.delimiter||"/";while(null!=(n=j.exec(t))){var s=n[0],c=n[1],l=n.index;if(a+=t.slice(i,l),i=l+s.length,c)a+=c[1];else{var f=t[i],d=n[2],h=n[3],p=n[4],m=n[5],g=n[6],v=n[7];a&&(r.push(a),a="");var b=null!=d&&null!=f&&f!==d,y="+"===g||"*"===g,x="?"===g||"*"===g,w=n[2]||u,C=p||m;r.push({name:h||o++,prefix:d||"",delimiter:w,optional:x,repeat:y,partial:b,asterisk:!!v,pattern:C?U(C):v?".*":"[^"+z(w)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function $(t,e){return H(R(t,e),e)}function F(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function V(t){return encodeURI(t).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function H(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"===typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",q(e)));return function(e,r){for(var o="",i=e||{},a=r||{},u=a.pretty?F:encodeURIComponent,s=0;s<t.length;s++){var c=t[s];if("string"!==typeof c){var l,f=i[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(I(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(l=u(f[d]),!n[s].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");o+=(0===d?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?V(f):u(f),!n[s].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');o+=c.prefix+l}}else o+=c}return o}}function z(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function U(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function W(t,e){return t.keys=e,t}function q(t){return t&&t.sensitive?"":"i"}function G(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return W(t,e)}function Y(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(Z(t[o],e,n).source);var i=new RegExp("(?:"+r.join("|")+")",q(n));return W(i,e)}function X(t,e,n){return K(R(t,n),e,n)}function K(t,e,n){I(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var u=t[a];if("string"===typeof u)i+=z(u);else{var s=z(u.prefix),c="(?:"+u.pattern+")";e.push(u),u.repeat&&(c+="(?:"+s+c+")*"),c=u.optional?u.partial?s+"("+c+")?":"(?:"+s+"("+c+"))?":s+"("+c+")",i+=c}}var l=z(n.delimiter||"/"),f=i.slice(-l.length)===l;return r||(i=(f?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&f?"":"(?="+l+"|$)",W(new RegExp("^"+i,q(n)),e)}function Z(t,e,n){return I(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?G(t,e):I(t)?Y(t,e,n):X(t,e,n)}B.parse=L,B.compile=N,B.tokensToFunction=P,B.tokensToRegExp=M;var J=Object.create(null);function Q(t,e,n){e=e||{};try{var r=J[t]||(J[t]=B.compile(t));return"string"===typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(o){return""}finally{delete e[0]}}function tt(t,e,n,r){var i="string"===typeof t?{path:t}:t;if(i._normalized)return i;if(i.name){i=o({},t);var a=i.params;return a&&"object"===typeof a&&(i.params=o({},a)),i}if(!i.path&&i.params&&e){i=o({},i),i._normalized=!0;var u=o(o({},e.params),i.params);if(e.name)i.name=e.name,i.params=u;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;i.path=Q(s,u,"path "+e.path)}else 0;return i}var c=T(i.path||""),f=e&&e.path||"/",d=c.path?E(c.path,f,n||i.append):f,h=l(c.query,i.query,r&&r.options.parseQuery),p=i.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:h,hash:p}}var et,nt=[String,Object],rt=[String,Array],ot=function(){},it={name:"RouterLink",props:{to:{type:nt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:rt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.location,u=i.route,s=i.href,c={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,d=null==l?"router-link-active":l,h=null==f?"router-link-exact-active":f,p=null==this.activeClass?d:this.activeClass,g=null==this.exactActiveClass?h:this.exactActiveClass,v=u.redirectedFrom?m(null,tt(u.redirectedFrom),null,n):u;c[g]=x(r,v),c[p]=this.exact?c[g]:C(r,v);var b=c[g]?this.ariaCurrentValue:null,y=function(t){at(t)&&(e.replace?n.replace(a,ot):n.push(a,ot))},w={click:at};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=y})):w[this.event]=y;var S={class:c},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:u,navigate:y,isActive:c[p],isExactActive:c[g]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?t():t("span",{},k)}if("a"===this.tag)S.on=w,S.attrs={href:s,"aria-current":b};else{var O=ut(this.$slots.default);if(O){O.isStatic=!1;var _=O.data=o({},O.data);for(var A in _.on=_.on||{},_.on){var E=_.on[A];A in w&&(_.on[A]=Array.isArray(E)?E:[E])}for(var T in w)T in _.on?_.on[T].push(w[T]):_.on[T]=y;var D=O.data.attrs=o({},O.data.attrs);D.href=s,D["aria-current"]=b}else S.on=w}return t(this.tag,S,this.$slots.default)}};function at(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function ut(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=ut(e.children)))return e}}function st(t){if(!st.installed||et!==t){st.installed=!0,et=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",O),t.component("RouterLink",it);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ct="undefined"!==typeof window;function lt(t,e,n,r){var o=e||[],i=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){ft(o,i,a,t)}));for(var u=0,s=o.length;u<s;u++)"*"===o[u]&&(o.push(o.splice(u,1)[0]),s--,u--);return{pathList:o,pathMap:i,nameMap:a}}function ft(t,e,n,r,o,i){var a=r.path,u=r.name;var s=r.pathToRegexpOptions||{},c=ht(a,o,s.strict);"boolean"===typeof r.caseSensitive&&(s.sensitive=r.caseSensitive);var l={path:c,regex:dt(c,s),components:r.components||{default:r.component},instances:{},enteredCbs:{},name:u,parent:o,matchAs:i,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var o=i?D(i+"/"+r.path):void 0;ft(t,e,n,r,l,o)})),e[l.path]||(t.push(l.path),e[l.path]=l),void 0!==r.alias)for(var f=Array.isArray(r.alias)?r.alias:[r.alias],d=0;d<f.length;++d){var h=f[d];0;var p={path:h,children:r.children};ft(t,e,n,p,o,l.path||"/")}u&&(n[u]||(n[u]=l))}function dt(t,e){var n=B(t,[],e);return n}function ht(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:D(e.path+"/"+t)}function pt(t,e){var n=lt(t),r=n.pathList,o=n.pathMap,i=n.nameMap;function a(t){lt(t,r,o,i)}function u(t,n,a){var u=tt(t,n,!1,e),s=u.name;if(s){var c=i[s];if(!c)return l(null,u);var f=c.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!==typeof u.params&&(u.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in u.params)&&f.indexOf(d)>-1&&(u.params[d]=n.params[d]);return u.path=Q(c.path,u.params,'named route "'+s+'"'),l(c,u,a)}if(u.path){u.params={};for(var h=0;h<r.length;h++){var p=r[h],m=o[p];if(mt(m.regex,u.path,u.params))return l(m,u,a)}}return l(null,u)}function s(t,n){var r=t.redirect,o="function"===typeof r?r(m(t,n,null,e)):r;if("string"===typeof o&&(o={path:o}),!o||"object"!==typeof o)return l(null,n);var a=o,s=a.name,c=a.path,f=n.query,d=n.hash,h=n.params;if(f=a.hasOwnProperty("query")?a.query:f,d=a.hasOwnProperty("hash")?a.hash:d,h=a.hasOwnProperty("params")?a.params:h,s){i[s];return u({_normalized:!0,name:s,query:f,hash:d,params:h},void 0,n)}if(c){var p=gt(c,t),g=Q(p,h,'redirect route with path "'+p+'"');return u({_normalized:!0,path:g,query:f,hash:d},void 0,n)}return l(null,n)}function c(t,e,n){var r=Q(n,e.params,'aliased route with path "'+n+'"'),o=u({_normalized:!0,path:r});if(o){var i=o.matched,a=i[i.length-1];return e.params=o.params,l(a,e)}return l(null,e)}function l(t,n,r){return t&&t.redirect?s(t,r||n):t&&t.matchAs?c(t,n,t.matchAs):m(t,n,r,e)}return{match:u,addRoutes:a}}function mt(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=t.keys[o-1];a&&(n[a.name||"pathMatch"]="string"===typeof r[o]?c(r[o]):r[o])}return!0}function gt(t,e){return E(t,e.parent?e.parent.path:"/",!0)}var vt=ct&&window.performance&&window.performance.now?window.performance:Date;function bt(){return vt.now().toFixed(3)}var yt=bt();function xt(){return yt}function wt(t){return yt=t}var Ct=Object.create(null);function St(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=o({},window.history.state);return n.key=xt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",_t),function(){window.removeEventListener("popstate",_t)}}function kt(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick((function(){var i=At(),a=o.call(t,e,n,r?i:null);a&&("function"===typeof a.then?a.then((function(t){Nt(t,i)})).catch((function(t){0})):Nt(a,i))}))}}function Ot(){var t=xt();t&&(Ct[t]={x:window.pageXOffset,y:window.pageYOffset})}function _t(t){Ot(),t.state&&t.state.key&&wt(t.state.key)}function At(){var t=xt();if(t)return Ct[t]}function Et(t,e){var n=document.documentElement,r=n.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:o.left-r.left-e.x,y:o.top-r.top-e.y}}function Tt(t){return Bt(t.x)||Bt(t.y)}function Dt(t){return{x:Bt(t.x)?t.x:window.pageXOffset,y:Bt(t.y)?t.y:window.pageYOffset}}function It(t){return{x:Bt(t.x)?t.x:0,y:Bt(t.y)?t.y:0}}function Bt(t){return"number"===typeof t}var Lt=/^#\d/;function Nt(t,e){var n="object"===typeof t;if(n&&"string"===typeof t.selector){var r=Lt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(r){var o=t.offset&&"object"===typeof t.offset?t.offset:{};o=It(o),e=Et(r,o)}else Tt(t)&&(e=Dt(t))}else n&&Tt(t)&&(e=Dt(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var Pt=ct&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Mt(t,e){Ot();var n=window.history;try{if(e){var r=o({},n.state);r.key=xt(),n.replaceState(r,"",t)}else n.pushState({key:wt(bt())},"",t)}catch(i){window.location[e?"replace":"assign"](t)}}function jt(t){Mt(t,!0)}function Rt(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}var $t={redirected:2,aborted:4,cancelled:8,duplicated:16};function Ft(t,e){return Ut(t,e,$t.redirected,'Redirected when going from "'+t.fullPath+'" to "'+qt(e)+'" via a navigation guard.')}function Vt(t,e){var n=Ut(t,e,$t.duplicated,'Avoided redundant navigation to current location: "'+t.fullPath+'".');return n.name="NavigationDuplicated",n}function Ht(t,e){return Ut(t,e,$t.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function zt(t,e){return Ut(t,e,$t.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function Ut(t,e,n,r){var o=new Error(r);return o._isRouter=!0,o.from=t,o.to=e,o.type=n,o}var Wt=["params","query","hash"];function qt(t){if("string"===typeof t)return t;if("path"in t)return t.path;var e={};return Wt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}function Gt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Yt(t,e){return Gt(t)&&t._isRouter&&(null==e||t.type===e)}function Xt(t){return function(e,n,r){var o=!1,i=0,a=null;Kt(t,(function(t,e,n,u){if("function"===typeof t&&void 0===t.cid){o=!0,i++;var s,c=te((function(e){Qt(e)&&(e=e.default),t.resolved="function"===typeof e?e:et.extend(e),n.components[u]=e,i--,i<=0&&r()})),l=te((function(t){var e="Failed to resolve async component "+u+": "+t;a||(a=Gt(t)?t:new Error(e),r(a))}));try{s=t(c,l)}catch(d){l(d)}if(s)if("function"===typeof s.then)s.then(c,l);else{var f=s.component;f&&"function"===typeof f.then&&f.then(c,l)}}})),o||r()}}function Kt(t,e){return Zt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Zt(t){return Array.prototype.concat.apply([],t)}var Jt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Qt(t){return t.__esModule||Jt&&"Module"===t[Symbol.toStringTag]}function te(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var ee=function(t,e){this.router=t,this.base=ne(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function ne(t){if(!t)if(ct){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function re(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r;n++)if(t[n]!==e[n])break;return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function oe(t,e,n,r){var o=Kt(t,(function(t,r,o,i){var a=ie(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,o,i)})):n(a,r,o,i)}));return Zt(r?o.reverse():o)}function ie(t,e){return"function"!==typeof t&&(t=et.extend(t)),t.options[e]}function ae(t){return oe(t,"beforeRouteLeave",se,!0)}function ue(t){return oe(t,"beforeRouteUpdate",se)}function se(t,e){if(e)return function(){return t.apply(e,arguments)}}function ce(t){return oe(t,"beforeRouteEnter",(function(t,e,n,r){return le(t,n,r)}))}function le(t,e,n){return function(r,o,i){return t(r,o,(function(t){"function"===typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),i(t)}))}}ee.prototype.listen=function(t){this.cb=t},ee.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},ee.prototype.onError=function(t){this.errorCbs.push(t)},ee.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(a){throw this.errorCbs.forEach((function(t){t(a)})),a}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(t){t&&t(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&(Yt(t,$t.redirected)&&i===v||(o.ready=!0,o.readyErrorCbs.forEach((function(e){e(t)}))))}))},ee.prototype.confirmTransition=function(t,e,n){var o=this,i=this.current;this.pending=t;var a=function(t){!Yt(t)&&Gt(t)&&(o.errorCbs.length?o.errorCbs.forEach((function(e){e(t)})):(r(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)},u=t.matched.length-1,s=i.matched.length-1;if(x(t,i)&&u===s&&t.matched[u]===i.matched[s])return this.ensureURL(),a(Vt(i,t));var c=re(this.current.matched,t.matched),l=c.updated,f=c.deactivated,d=c.activated,h=[].concat(ae(f),this.router.beforeHooks,ue(l),d.map((function(t){return t.beforeEnter})),Xt(d)),p=function(e,n){if(o.pending!==t)return a(Ht(i,t));try{e(t,i,(function(e){!1===e?(o.ensureURL(!0),a(zt(i,t))):Gt(e)?(o.ensureURL(!0),a(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(a(Ft(i,t)),"object"===typeof e&&e.replace?o.replace(e):o.push(e)):n(e)}))}catch(r){a(r)}};Rt(h,p,(function(){var n=ce(d),r=n.concat(o.router.resolveHooks);Rt(r,p,(function(){if(o.pending!==t)return a(Ht(i,t));o.pending=null,e(t),o.router.app&&o.router.app.$nextTick((function(){k(t)}))}))}))},ee.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},ee.prototype.setupListeners=function(){},ee.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=v,this.pending=null};var fe=function(t){function e(e,n){t.call(this,e,n),this._startLocation=de(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=Pt&&n;r&&this.listeners.push(St());var o=function(){var n=t.current,o=de(t.base);t.current===v&&o===t._startLocation||t.transitionTo(o,(function(t){r&&kt(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,(function(t){Mt(D(r.base+t.fullPath)),kt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,(function(t){jt(D(r.base+t.fullPath)),kt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(de(this.base)!==this.current.fullPath){var e=D(this.base+this.current.fullPath);t?Mt(e):jt(e)}},e.prototype.getCurrentLocation=function(){return de(this.base)},e}(ee);function de(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var he=function(t){function e(e,n,r){t.call(this,e,n),r&&pe(this.base)||me()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=Pt&&n;r&&this.listeners.push(St());var o=function(){var e=t.current;me()&&t.transitionTo(ge(),(function(n){r&&kt(t.router,n,e,!0),Pt||ye(n.fullPath)}))},i=Pt?"popstate":"hashchange";window.addEventListener(i,o),this.listeners.push((function(){window.removeEventListener(i,o)}))}},e.prototype.push=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,(function(t){be(t.fullPath),kt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,(function(t){ye(t.fullPath),kt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ge()!==e&&(t?be(e):ye(e))},e.prototype.getCurrentLocation=function(){return ge()},e}(ee);function pe(t){var e=de(t);if(!/^\/#/.test(e))return window.location.replace(D(t+"/#"+e)),!0}function me(){var t=ge();return"/"===t.charAt(0)||(ye("/"+t),!1)}function ge(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function ve(t){var e=window.location.href,n=e.indexOf("#"),r=n>=0?e.slice(0,n):e;return r+"#"+t}function be(t){Pt?Mt(ve(t)):window.location.hash=t}function ye(t){Pt?jt(ve(t)):window.location.replace(ve(t))}var xe=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Yt(t,$t.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ee),we=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Pt&&!1!==t.fallback,this.fallback&&(e="hash"),ct||(e="abstract"),this.mode=e,e){case"history":this.history=new fe(this,t.base);break;case"hash":this.history=new he(this,t.base,this.fallback);break;case"abstract":this.history=new xe(this,t.base);break;default:0}},Ce={currentRoute:{configurable:!0}};function Se(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function ke(t,e,n){var r="hash"===n?"#"+e:e;return t?D(t+"/"+r):r}we.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Ce.currentRoute.get=function(){return this.history&&this.history.current},we.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof fe||n instanceof he){var r=function(t){var r=n.current,o=e.options.scrollBehavior,i=Pt&&o;i&&"fullPath"in t&&kt(e,t,r,!1)},o=function(t){n.setupListeners(),r(t)};n.transitionTo(n.getCurrentLocation(),o,o)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},we.prototype.beforeEach=function(t){return Se(this.beforeHooks,t)},we.prototype.beforeResolve=function(t){return Se(this.resolveHooks,t)},we.prototype.afterEach=function(t){return Se(this.afterHooks,t)},we.prototype.onReady=function(t,e){this.history.onReady(t,e)},we.prototype.onError=function(t){this.history.onError(t)},we.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},we.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},we.prototype.go=function(t){this.history.go(t)},we.prototype.back=function(){this.go(-1)},we.prototype.forward=function(){this.go(1)},we.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},we.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=tt(t,e,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath,a=this.history.base,u=ke(a,i,this.mode);return{location:r,route:o,href:u,normalizedTo:r,resolved:o}},we.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(we.prototype,Ce),we.install=st,we.version="3.4.9",we.isNavigationFailure=Yt,we.NavigationFailureType=$t,ct&&window.Vue&&window.Vue.use(we),e["a"]=we},"8ce9":function(t,e,n){},"8d4f":function(t,e,n){},"8da5":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return c}));var r=n("80d2"),o=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],i=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},a=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],u=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function s(t){for(var e=Array(3),n=i,a=o,u=0;u<3;++u)e[u]=Math.round(255*Object(r["f"])(n(a[u][0]*t[0]+a[u][1]*t[1]+a[u][2]*t[2])));return(e[0]<<16)+(e[1]<<8)+(e[2]<<0)}function c(t){for(var e=[0,0,0],n=u,r=a,o=n((t>>16&255)/255),i=n((t>>8&255)/255),s=n((t>>0&255)/255),c=0;c<3;++c)e[c]=r[c][0]*o+r[c][1]*i+r[c][2]*s;return e}},"8dd9":function(t,e,n){"use strict";var r=n("5530"),o=(n("25a8"),n("7e2b")),i=n("a9ad"),a=n("c995"),u=n("24b2"),s=n("a236"),c=n("7560"),l=n("58df");e["a"]=Object(l["a"])(o["a"],i["a"],a["a"],u["a"],s["a"],c["a"]).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes:function(){return Object(r["a"])({"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped},this.themeClasses,{},this.elevationClasses,{},this.roundedClasses)},styles:function(){return this.measurableStyles}},render:function(t){var e={class:this.classes,style:this.styles,on:this.listeners$};return t(this.tag,this.setBackgroundColor(this.color,e),this.$slots.default)}})},"8df4":function(t,e,n){"use strict";var r=n("7a77");function o(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t,e=new o((function(e){t=e}));return{token:e,cancel:t}},t.exports=o},"8e36":function(t,e,n){"use strict";n("a9e3"),n("c7cd");var r=n("5530"),o=n("ade3"),i=(n("6ece"),n("0789")),a=n("a9ad"),u=n("fe6c"),s=n("a452"),c=n("7560"),l=n("80d2"),f=n("58df"),d=Object(f["a"])(a["a"],Object(u["b"])(["absolute","fixed","top","bottom"]),s["a"],c["a"]);e["a"]=d.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(l["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(l["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var t,e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return t={opacity:e},Object(o["a"])(t,this.isReversed?"right":"left",Object(l["g"])(this.normalizedValue,"%")),Object(o["a"])(t,"width",Object(l["g"])(this.normalizedBuffer-this.normalizedValue,"%")),t},classes:function(){return Object(r["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?i["d"]:i["f"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(l["g"])(this.normalizedBuffer,"%")),t}},methods:{genContent:function(){var t=Object(l["s"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners:function(){var t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar:function(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(o["a"])({},t,!0)}))},onClick:function(t){if(this.reactive){var e=this.$el.getBoundingClientRect(),n=e.width;this.internalValue=t.offsetX/n*100}},normalize:function(t){return t<0?0:t>100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(l["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"8efc":function(t,e,n){},"8fea":function(t,e,n){"use strict";n("99af"),n("a623"),n("4de4"),n("7db0"),n("c740"),n("4160"),n("a630"),n("d81d"),n("13d5"),n("45fc"),n("a434"),n("b0c0"),n("a9e3"),n("3ca3"),n("498a");var r=n("3835"),o=n("53ca"),i=n("5530"),a=(n("91f4"),n("fb6a"),n("ac1f"),n("841c"),n("2909")),u=n("80d2"),s=n("2b0e"),c=s["a"].extend({name:"v-data",inheritAttrs:!1,props:{items:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},sortBy:{type:[String,Array],default:function(){return[]}},sortDesc:{type:[Boolean,Array],default:function(){return[]}},customSort:{type:Function,default:u["F"]},mustSort:Boolean,multiSort:Boolean,page:{type:Number,default:1},itemsPerPage:{type:Number,default:10},groupBy:{type:[String,Array],default:function(){return[]}},groupDesc:{type:[Boolean,Array],default:function(){return[]}},customGroup:{type:Function,default:u["v"]},locale:{type:String,default:"en-US"},disableSort:Boolean,disablePagination:Boolean,disableFiltering:Boolean,search:String,customFilter:{type:Function,default:u["E"]},serverItemsLength:{type:Number,default:-1}},data:function(){var t={page:this.page,itemsPerPage:this.itemsPerPage,sortBy:Object(u["I"])(this.sortBy),sortDesc:Object(u["I"])(this.sortDesc),groupBy:Object(u["I"])(this.groupBy),groupDesc:Object(u["I"])(this.groupDesc),mustSort:this.mustSort,multiSort:this.multiSort};this.options&&(t=Object.assign(t,this.options));var e,n,r=t,o=r.sortBy,i=r.sortDesc,s=r.groupBy,c=r.groupDesc,l=o.length-i.length,f=s.length-c.length;l>0&&(e=t.sortDesc).push.apply(e,Object(a["a"])(Object(u["m"])(l,!1)));f>0&&(n=t.groupDesc).push.apply(n,Object(a["a"])(Object(u["m"])(f,!1)));return{internalOptions:t}},computed:{itemsLength:function(){return this.serverItemsLength>=0?this.serverItemsLength:this.filteredItems.length},pageCount:function(){return this.internalOptions.itemsPerPage<=0?1:Math.ceil(this.itemsLength/this.internalOptions.itemsPerPage)},pageStart:function(){return-1!==this.internalOptions.itemsPerPage&&this.items.length?(this.internalOptions.page-1)*this.internalOptions.itemsPerPage:0},pageStop:function(){return-1===this.internalOptions.itemsPerPage?this.itemsLength:this.items.length?Math.min(this.itemsLength,this.internalOptions.page*this.internalOptions.itemsPerPage):0},isGrouped:function(){return!!this.internalOptions.groupBy.length},pagination:function(){return{page:this.internalOptions.page,itemsPerPage:this.internalOptions.itemsPerPage,pageStart:this.pageStart,pageStop:this.pageStop,pageCount:this.pageCount,itemsLength:this.itemsLength}},filteredItems:function(){var t=this.items.slice();return!this.disableFiltering&&this.serverItemsLength<=0&&(t=this.customFilter(t,this.search)),t},computedItems:function(){var t=this.filteredItems.slice();return!this.disableSort&&this.serverItemsLength<=0&&(t=this.sortItems(t)),!this.disablePagination&&this.serverItemsLength<=0&&(t=this.paginateItems(t)),t},groupedItems:function(){return this.isGrouped?this.groupItems(this.computedItems):null},scopedProps:function(){return{sort:this.sort,sortArray:this.sortArray,group:this.group,items:this.computedItems,options:this.internalOptions,updateOptions:this.updateOptions,pagination:this.pagination,groupedItems:this.groupedItems,originalItemsLength:this.items.length}},computedOptions:function(){return Object(i["a"])({},this.options)}},watch:{computedOptions:{handler:function(t,e){Object(u["j"])(t,e)||this.updateOptions(t)},deep:!0,immediate:!0},internalOptions:{handler:function(t,e){Object(u["j"])(t,e)||this.$emit("update:options",t)},deep:!0,immediate:!0},page:function(t){this.updateOptions({page:t})},"internalOptions.page":function(t){this.$emit("update:page",t)},itemsPerPage:function(t){this.updateOptions({itemsPerPage:t})},"internalOptions.itemsPerPage":function(t){this.$emit("update:items-per-page",t)},sortBy:function(t){this.updateOptions({sortBy:Object(u["I"])(t)})},"internalOptions.sortBy":function(t,e){!Object(u["j"])(t,e)&&this.$emit("update:sort-by",Array.isArray(this.sortBy)?t:t[0])},sortDesc:function(t){this.updateOptions({sortDesc:Object(u["I"])(t)})},"internalOptions.sortDesc":function(t,e){!Object(u["j"])(t,e)&&this.$emit("update:sort-desc",Array.isArray(this.sortDesc)?t:t[0])},groupBy:function(t){this.updateOptions({groupBy:Object(u["I"])(t)})},"internalOptions.groupBy":function(t,e){!Object(u["j"])(t,e)&&this.$emit("update:group-by",Array.isArray(this.groupBy)?t:t[0])},groupDesc:function(t){this.updateOptions({groupDesc:Object(u["I"])(t)})},"internalOptions.groupDesc":function(t,e){!Object(u["j"])(t,e)&&this.$emit("update:group-desc",Array.isArray(this.groupDesc)?t:t[0])},multiSort:function(t){this.updateOptions({multiSort:t})},"internalOptions.multiSort":function(t){this.$emit("update:multi-sort",t)},mustSort:function(t){this.updateOptions({mustSort:t})},"internalOptions.mustSort":function(t){this.$emit("update:must-sort",t)},pageCount:{handler:function(t){this.$emit("page-count",t)},immediate:!0},computedItems:{handler:function(t){this.$emit("current-items",t)},immediate:!0},pagination:{handler:function(t,e){Object(u["j"])(t,e)||this.$emit("pagination",this.pagination)},immediate:!0}},methods:{toggle:function(t,e,n,r,o,i){var a=e.slice(),s=n.slice(),c=a.findIndex((function(e){return e===t}));return c<0?(i||(a=[],s=[]),a.push(t),s.push(!1)):c>=0&&!s[c]?s[c]=!0:o?s[c]=!1:(a.splice(c,1),s.splice(c,1)),Object(u["j"])(a,e)&&Object(u["j"])(s,n)||(r=1),{by:a,desc:s,page:r}},group:function(t){var e=this.toggle(t,this.internalOptions.groupBy,this.internalOptions.groupDesc,this.internalOptions.page,!0,!1),n=e.by,r=e.desc,o=e.page;this.updateOptions({groupBy:n,groupDesc:r,page:o})},sort:function(t){if(Array.isArray(t))return this.sortArray(t);var e=this.toggle(t,this.internalOptions.sortBy,this.internalOptions.sortDesc,this.internalOptions.page,this.internalOptions.mustSort,this.internalOptions.multiSort),n=e.by,r=e.desc,o=e.page;this.updateOptions({sortBy:n,sortDesc:r,page:o})},sortArray:function(t){var e=this,n=t.map((function(t){var n=e.internalOptions.sortBy.findIndex((function(e){return e===t}));return n>-1&&e.internalOptions.sortDesc[n]}));this.updateOptions({sortBy:t,sortDesc:n})},updateOptions:function(t){this.internalOptions=Object(i["a"])({},this.internalOptions,{},t,{page:this.serverItemsLength<0?Math.max(1,Math.min(t.page||this.internalOptions.page,this.pageCount)):t.page||this.internalOptions.page})},sortItems:function(t){var e=this.internalOptions.sortBy,n=this.internalOptions.sortDesc;return this.internalOptions.groupBy.length&&(e=[].concat(Object(a["a"])(this.internalOptions.groupBy),Object(a["a"])(e)),n=[].concat(Object(a["a"])(this.internalOptions.groupDesc),Object(a["a"])(n))),this.customSort(t,e,n,this.locale)},groupItems:function(t){return this.customGroup(t,this.internalOptions.groupBy,this.internalOptions.groupDesc)},paginateItems:function(t){return-1===this.serverItemsLength&&t.length<=this.pageStart&&(this.internalOptions.page=Math.max(1,this.internalOptions.page-1)),t.slice(this.pageStart,this.pageStop)}},render:function(){return this.$scopedSlots.default&&this.$scopedSlots.default(this.scopedProps)}}),l=(n("caad"),n("b64b"),n("07ac"),n("2532"),n("d3b7"),n("25f0"),n("495d"),n("b974")),f=n("9d26"),d=n("afdd"),h=s["a"].extend({name:"v-data-footer",props:{options:{type:Object,required:!0},pagination:{type:Object,required:!0},itemsPerPageOptions:{type:Array,default:function(){return[5,10,15,-1]}},prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},itemsPerPageAllText:{type:String,default:"$vuetify.dataFooter.itemsPerPageAll"},showFirstLastPage:Boolean,showCurrentPage:Boolean,disablePagination:Boolean,disableItemsPerPage:Boolean,pageText:{type:String,default:"$vuetify.dataFooter.pageText"}},computed:{disableNextPageIcon:function(){return this.options.itemsPerPage<=0||this.options.page*this.options.itemsPerPage>=this.pagination.itemsLength||this.pagination.pageStop<0},computedDataItemsPerPageOptions:function(){var t=this;return this.itemsPerPageOptions.map((function(e){return"object"===Object(o["a"])(e)?e:t.genDataItemsPerPageOption(e)}))}},methods:{updateOptions:function(t){this.$emit("update:options",Object.assign({},this.options,t))},onFirstPage:function(){this.updateOptions({page:1})},onPreviousPage:function(){this.updateOptions({page:this.options.page-1})},onNextPage:function(){this.updateOptions({page:this.options.page+1})},onLastPage:function(){this.updateOptions({page:this.pagination.pageCount})},onChangeItemsPerPage:function(t){this.updateOptions({itemsPerPage:t,page:1})},genDataItemsPerPageOption:function(t){return{text:-1===t?this.$vuetify.lang.t(this.itemsPerPageAllText):String(t),value:t}},genItemsPerPageSelect:function(){var t=this.options.itemsPerPage,e=this.computedDataItemsPerPageOptions;return e.length<=1?null:(e.find((function(e){return e.value===t}))||(t=e[0]),this.$createElement("div",{staticClass:"v-data-footer__select"},[this.$vuetify.lang.t(this.itemsPerPageText),this.$createElement(l["a"],{attrs:{"aria-label":this.$vuetify.lang.t(this.itemsPerPageText)},props:{disabled:this.disableItemsPerPage,items:e,value:t,hideDetails:!0,auto:!0,minWidth:"75px"},on:{input:this.onChangeItemsPerPage}})]))},genPaginationInfo:function(){var t=["–"],e=this.pagination.itemsLength,n=this.pagination.pageStart,r=this.pagination.pageStop;return this.pagination.itemsLength&&this.pagination.itemsPerPage?(n=this.pagination.pageStart+1,r=e<this.pagination.pageStop||this.pagination.pageStop<0?e:this.pagination.pageStop,t=this.$scopedSlots["page-text"]?[this.$scopedSlots["page-text"]({pageStart:n,pageStop:r,itemsLength:e})]:[this.$vuetify.lang.t(this.pageText,n,r,e)]):this.$scopedSlots["page-text"]&&(t=[this.$scopedSlots["page-text"]({pageStart:n,pageStop:r,itemsLength:e})]),this.$createElement("div",{class:"v-data-footer__pagination"},t)},genIcon:function(t,e,n,r){return this.$createElement(d["a"],{props:{disabled:e||this.disablePagination,icon:!0,text:!0},on:{click:t},attrs:{"aria-label":n}},[this.$createElement(f["a"],r)])},genIcons:function(){var t=[],e=[];return t.push(this.genIcon(this.onPreviousPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.prevPage"),this.$vuetify.rtl?this.nextIcon:this.prevIcon)),e.push(this.genIcon(this.onNextPage,this.disableNextPageIcon,this.$vuetify.lang.t("$vuetify.dataFooter.nextPage"),this.$vuetify.rtl?this.prevIcon:this.nextIcon)),this.showFirstLastPage&&(t.unshift(this.genIcon(this.onFirstPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.firstPage"),this.$vuetify.rtl?this.lastIcon:this.firstIcon)),e.push(this.genIcon(this.onLastPage,this.options.page>=this.pagination.pageCount||-1===this.options.itemsPerPage,this.$vuetify.lang.t("$vuetify.dataFooter.lastPage"),this.$vuetify.rtl?this.firstIcon:this.lastIcon))),[this.$createElement("div",{staticClass:"v-data-footer__icons-before"},t),this.showCurrentPage&&this.$createElement("span",[this.options.page.toString()]),this.$createElement("div",{staticClass:"v-data-footer__icons-after"},e)]}},render:function(){return this.$createElement("div",{staticClass:"v-data-footer"},[this.genItemsPerPageSelect(),this.genPaginationInfo(),this.genIcons()])}}),p=n("e4cd"),m=n("7560"),g=n("58df"),v=n("d9bd"),b=Object(g["a"])(p["a"],m["a"]).extend({name:"v-data-iterator",props:Object(i["a"])({},c.options.props,{itemKey:{type:String,default:"id"},value:{type:Array,default:function(){return[]}},singleSelect:Boolean,expanded:{type:Array,default:function(){return[]}},mobileBreakpoint:Object(i["a"])({},p["a"].options.props.mobileBreakpoint,{default:600}),singleExpand:Boolean,loading:[Boolean,String],noResultsText:{type:String,default:"$vuetify.dataIterator.noResultsText"},noDataText:{type:String,default:"$vuetify.noDataText"},loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideDefaultFooter:Boolean,footerProps:Object,selectableKey:{type:String,default:"isSelectable"}}),data:function(){return{selection:{},expansion:{},internalCurrentItems:[]}},computed:{everyItem:function(){var t=this;return!!this.selectableItems.length&&this.selectableItems.every((function(e){return t.isSelected(e)}))},someItems:function(){var t=this;return this.selectableItems.some((function(e){return t.isSelected(e)}))},sanitizedFooterProps:function(){return Object(u["d"])(this.footerProps)},selectableItems:function(){var t=this;return this.internalCurrentItems.filter((function(e){return t.isSelectable(e)}))}},watch:{value:{handler:function(t){var e=this;this.selection=t.reduce((function(t,n){return t[Object(u["p"])(n,e.itemKey)]=n,t}),{})},immediate:!0},selection:function(t,e){Object(u["j"])(Object.keys(t),Object.keys(e))||this.$emit("input",Object.values(t))},expanded:{handler:function(t){var e=this;this.expansion=t.reduce((function(t,n){return t[Object(u["p"])(n,e.itemKey)]=!0,t}),{})},immediate:!0},expansion:function(t,e){var n=this;if(!Object(u["j"])(t,e)){var r=Object.keys(t).filter((function(e){return t[e]})),o=r.length?this.items.filter((function(t){return r.includes(String(Object(u["p"])(t,n.itemKey)))})):[];this.$emit("update:expanded",o)}}},created:function(){var t=this,e=[["disable-initial-sort","sort-by"],["filter","custom-filter"],["pagination","options"],["total-items","server-items-length"],["hide-actions","hide-default-footer"],["rows-per-page-items","footer-props.items-per-page-options"],["rows-per-page-text","footer-props.items-per-page-text"],["prev-icon","footer-props.prev-icon"],["next-icon","footer-props.next-icon"]];e.forEach((function(e){var n=Object(r["a"])(e,2),o=n[0],i=n[1];t.$attrs.hasOwnProperty(o)&&Object(v["a"])(o,i,t)}));var n=["expand","content-class","content-props","content-tag"];n.forEach((function(e){t.$attrs.hasOwnProperty(e)&&Object(v["e"])(e)}))},methods:{toggleSelectAll:function(t){for(var e=Object.assign({},this.selection),n=0;n<this.selectableItems.length;n++){var r=this.selectableItems[n];if(this.isSelectable(r)){var o=Object(u["p"])(r,this.itemKey);t?e[o]=r:delete e[o]}}this.selection=e,this.$emit("toggle-select-all",{items:this.internalCurrentItems,value:t})},isSelectable:function(t){return!1!==Object(u["p"])(t,this.selectableKey)},isSelected:function(t){return!!this.selection[Object(u["p"])(t,this.itemKey)]||!1},select:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.isSelectable(t)){var r=this.singleSelect?{}:Object.assign({},this.selection),o=Object(u["p"])(t,this.itemKey);if(e?r[o]=t:delete r[o],this.singleSelect&&n){var i=Object.keys(this.selection),a=i.length&&Object(u["p"])(this.selection[i[0]],this.itemKey);a&&a!==o&&this.$emit("item-selected",{item:this.selection[a],value:!1})}this.selection=r,n&&this.$emit("item-selected",{item:t,value:e})}},isExpanded:function(t){return this.expansion[Object(u["p"])(t,this.itemKey)]||!1},expand:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.singleExpand?{}:Object.assign({},this.expansion),r=Object(u["p"])(t,this.itemKey);e?n[r]=!0:delete n[r],this.expansion=n,this.$emit("item-expanded",{item:t,value:e})},createItemProps:function(t){var e=this;return{item:t,select:function(n){return e.select(t,n)},isSelected:this.isSelected(t),expand:function(n){return e.expand(t,n)},isExpanded:this.isExpanded(t),isMobile:this.isMobile}},genEmptyWrapper:function(t){return this.$createElement("div",t)},genEmpty:function(t,e){if(0===t&&this.loading){var n=this.$slots.loading||this.$vuetify.lang.t(this.loadingText);return this.genEmptyWrapper(n)}if(0===t){var r=this.$slots["no-data"]||this.$vuetify.lang.t(this.noDataText);return this.genEmptyWrapper(r)}if(0===e){var o=this.$slots["no-results"]||this.$vuetify.lang.t(this.noResultsText);return this.genEmptyWrapper(o)}return null},genItems:function(t){var e=this,n=this.genEmpty(t.originalItemsLength,t.pagination.itemsLength);return n?[n]:this.$scopedSlots.default?this.$scopedSlots.default(Object(i["a"])({},t,{isSelected:this.isSelected,select:this.select,isExpanded:this.isExpanded,expand:this.expand})):this.$scopedSlots.item?t.items.map((function(t){return e.$scopedSlots.item(e.createItemProps(t))})):[]},genFooter:function(t){if(this.hideDefaultFooter)return null;var e={props:Object(i["a"])({},this.sanitizedFooterProps,{options:t.options,pagination:t.pagination}),on:{"update:options":function(e){return t.updateOptions(e)}}},n=Object(u["q"])("footer.",this.$scopedSlots);return this.$createElement(h,Object(i["a"])({scopedSlots:n},e))},genDefaultScopedSlot:function(t){var e=Object(i["a"])({},t,{someItems:this.someItems,everyItem:this.everyItem,toggleSelectAll:this.toggleSelectAll});return this.$createElement("div",{staticClass:"v-data-iterator"},[Object(u["s"])(this,"header",e,!0),this.genItems(t),this.genFooter(t),Object(u["s"])(this,"footer",e,!0)])}},render:function(){var t=this;return this.$createElement(c,{props:this.$props,on:{"update:options":function(e,n){return!Object(u["j"])(e,n)&&t.$emit("update:options",e)},"update:page":function(e){return t.$emit("update:page",e)},"update:items-per-page":function(e){return t.$emit("update:items-per-page",e)},"update:sort-by":function(e){return t.$emit("update:sort-by",e)},"update:sort-desc":function(e){return t.$emit("update:sort-desc",e)},"update:group-by":function(e){return t.$emit("update:group-by",e)},"update:group-desc":function(e){return t.$emit("update:group-desc",e)},pagination:function(e,n){return!Object(u["j"])(e,n)&&t.$emit("pagination",e)},"current-items":function(e){t.internalCurrentItems=e,t.$emit("current-items",e)},"page-count":function(e){return t.$emit("page-count",e)}},scopedSlots:{default:this.genDefaultScopedSlot}})}}),y=(n("f823"),n("34ef")),x=n("9e88"),w=n("5607"),C=Object(g["a"])().extend({directives:{ripple:w["a"]},props:{headers:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{page:1,itemsPerPage:10,sortBy:[],sortDesc:[],groupBy:[],groupDesc:[],multiSort:!1,mustSort:!1}}},sortIcon:{type:String,default:"$sort"},everyItem:Boolean,someItems:Boolean,showGroupBy:Boolean,singleSelect:Boolean,disableSort:Boolean},methods:{genSelectAll:function(){var t=this,e={props:{value:this.everyItem,indeterminate:!this.everyItem&&this.someItems},on:{input:function(e){return t.$emit("toggle-select-all",e)}}};return this.$scopedSlots["data-table-select"]?this.$scopedSlots["data-table-select"](e):this.$createElement(x["a"],Object(i["a"])({staticClass:"v-data-table__checkbox"},e))},genSortIcon:function(){return this.$createElement(f["a"],{staticClass:"v-data-table-header__icon",props:{size:18}},[this.sortIcon])}}}),S=Object(g["a"])(C).extend({name:"v-data-table-header-mobile",props:{sortByText:{type:String,default:"$vuetify.dataTable.sortBy"}},methods:{genSortChip:function(t){var e=this,n=[t.item.text],r=this.options.sortBy.findIndex((function(e){return e===t.item.value})),o=r>=0,i=this.options.sortDesc[r];return n.push(this.$createElement("div",{staticClass:"v-chip__close",class:{sortable:!0,active:o,asc:o&&!i,desc:o&&i}},[this.genSortIcon()])),this.$createElement(y["a"],{staticClass:"sortable",on:{click:function(n){n.stopPropagation(),e.$emit("sort",t.item.value)}}},n)},genSortSelect:function(t){var e=this;return this.$createElement(l["a"],{props:{label:this.$vuetify.lang.t(this.sortByText),items:t,hideDetails:!0,multiple:this.options.multiSort,value:this.options.multiSort?this.options.sortBy:this.options.sortBy[0],menuProps:{closeOnContentClick:!0}},on:{change:function(t){return e.$emit("sort",t)}},scopedSlots:{selection:function(t){return e.genSortChip(t)}}})}},render:function(t){var e=[],n=this.headers.find((function(t){return"data-table-select"===t.value}));n&&!this.singleSelect&&e.push(this.$createElement("div",{class:["v-data-table-header-mobile__select"].concat(Object(a["a"])(Object(u["I"])(n.class))),attrs:{width:n.width}},[this.genSelectAll()]));var r=this.headers.filter((function(t){return!1!==t.sortable&&"data-table-select"!==t.value})).map((function(t){return{text:t.text,value:t.value}}));!this.disableSort&&r.length&&e.push(this.genSortSelect(r));var o=t("th",[t("div",{staticClass:"v-data-table-header-mobile__wrapper"},e)]),i=t("tr",[o]);return t("thead",{staticClass:"v-data-table-header v-data-table-header-mobile"},[i])}}),k=(n("a15b"),Object(g["a"])(C).extend({name:"v-data-table-header-desktop",methods:{genGroupByToggle:function(t){var e=this;return this.$createElement("span",{on:{click:function(n){n.stopPropagation(),e.$emit("group",t.value)}}},["group"])},getAria:function(t,e){var n=this,r=function(t){return n.$vuetify.lang.t("$vuetify.dataTable.ariaLabel.".concat(t))},o="none",i=[r("sortNone"),r("activateAscending")];return t?(e?(o="descending",i=[r("sortDescending"),r(this.options.mustSort?"activateAscending":"activateNone")]):(o="ascending",i=[r("sortAscending"),r("activateDescending")]),{ariaSort:o,ariaLabel:i.join(" ")}):{ariaSort:o,ariaLabel:i.join(" ")}},genHeader:function(t){var e=this,n={attrs:{role:"columnheader",scope:"col","aria-label":t.text||""},style:{width:Object(u["g"])(t.width),minWidth:Object(u["g"])(t.width)},class:["text-".concat(t.align||"start")].concat(Object(a["a"])(Object(u["I"])(t.class)),[t.divider&&"v-data-table__divider"]),on:{}},r=[];if("data-table-select"===t.value&&!this.singleSelect)return this.$createElement("th",n,[this.genSelectAll()]);if(r.push(this.$scopedSlots[t.value]?this.$scopedSlots[t.value]({header:t}):this.$createElement("span",[t.text])),!this.disableSort&&(t.sortable||!t.hasOwnProperty("sortable"))){n.on.click=function(){return e.$emit("sort",t.value)};var o=this.options.sortBy.findIndex((function(e){return e===t.value})),i=o>=0,s=this.options.sortDesc[o];n.class.push("sortable");var c=this.getAria(i,s),l=c.ariaLabel,f=c.ariaSort;n.attrs["aria-label"]+="".concat(t.text?": ":"").concat(l),n.attrs["aria-sort"]=f,i&&(n.class.push("active"),n.class.push(s?"desc":"asc")),"end"===t.align?r.unshift(this.genSortIcon()):r.push(this.genSortIcon()),this.options.multiSort&&i&&r.push(this.$createElement("span",{class:"v-data-table-header__sort-badge"},[String(o+1)]))}return this.showGroupBy&&!1!==t.groupable&&r.push(this.genGroupByToggle(t)),this.$createElement("th",n,r)}},render:function(){var t=this;return this.$createElement("thead",{staticClass:"v-data-table-header"},[this.$createElement("tr",this.headers.map((function(e){return t.genHeader(e)})))])}}));n("c975");function O(t){if(t.model&&t.on&&t.on.input)if(Array.isArray(t.on.input)){var e=t.on.input.indexOf(t.model.callback);e>-1&&t.on.input.splice(e,1)}else delete t.on.input}var _=n("d9f7");function A(t,e){var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(e("template",{slot:r},t[r]));return n}var E=s["a"].extend({name:"v-data-table-header",functional:!0,props:Object(i["a"])({},C.options.props,{mobile:Boolean}),render:function(t,e){var n=e.props,r=e.data,o=e.slots;O(r);var i=A(o(),t);return r=Object(_["a"])(r,{props:n}),n.mobile?t(S,r,i):t(k,r,i)}}),T=n("ade3"),D=s["a"].extend({name:"row",functional:!0,props:{headers:Array,item:Object,rtl:Boolean},render:function(t,e){var n=e.props,r=e.slots,o=e.data,i=r(),a=n.headers.map((function(e){var r,a=[],s=Object(u["p"])(n.item,e.value),c=e.value,l=o.scopedSlots&&o.scopedSlots[c],f=i[c];l?a.push(l({item:n.item,header:e,value:s})):f?a.push(f):a.push(null==s?s:String(s));var d="text-".concat(e.align||"start");return t("td",{class:(r={},Object(T["a"])(r,d,!0),Object(T["a"])(r,"v-data-table__divider",e.divider),r)},a)}));return t("tr",o,a)}}),I=s["a"].extend({name:"row-group",functional:!0,props:{value:{type:Boolean,default:!0},headerClass:{type:String,default:"v-row-group__header"},contentClass:String,summaryClass:{type:String,default:"v-row-group__summary"}},render:function(t,e){var n=e.slots,r=e.props,o=n(),i=[];return o["column.header"]?i.push(t("tr",{staticClass:r.headerClass},o["column.header"])):o["row.header"]&&i.push.apply(i,Object(a["a"])(o["row.header"])),o["row.content"]&&r.value&&i.push.apply(i,Object(a["a"])(o["row.content"])),o["column.summary"]?i.push(t("tr",{staticClass:r.summaryClass},o["column.summary"])):o["row.summary"]&&i.push.apply(i,Object(a["a"])(o["row.summary"])),i}}),B=(n("8b37"),Object(g["a"])(m["a"]).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes:function(){return Object(i["a"])({"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader,"v-data-table--has-top":!!this.$slots.top,"v-data-table--has-bottom":!!this.$slots.bottom},this.themeClasses)}},methods:{genWrapper:function(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:Object(u["g"])(this.height)}},[this.$createElement("table",this.$slots.default)])}},render:function(t){return t("div",{staticClass:"v-data-table",class:this.classes},[this.$slots.top,this.genWrapper(),this.$slots.bottom])}})),L=s["a"].extend({name:"row",functional:!0,props:{headers:Array,hideDefaultHeader:Boolean,item:Object,rtl:Boolean},render:function(t,e){var n=e.props,r=e.slots,o=e.data,a=r(),s=n.headers.map((function(e){var r={"v-data-table__mobile-row":!0},i=[],s=Object(u["p"])(n.item,e.value),c=e.value,l=o.scopedSlots&&o.scopedSlots[c],f=a[c];l?i.push(l({item:n.item,header:e,value:s})):f?i.push(f):i.push(null==s?s:String(s));var d=[t("div",{staticClass:"v-data-table__mobile-row__cell"},i)];return"dataTableSelect"===e.value||n.hideDefaultHeader||d.unshift(t("div",{staticClass:"v-data-table__mobile-row__header"},[e.text])),t("td",{class:r},d)}));return t("tr",Object(i["a"])({},o,{staticClass:"v-data-table__mobile-table-row"}),s)}}),N=n("297c");function P(t,e,n){return function(r){var o=Object(u["p"])(t,r.value);return r.filter?r.filter(o,e,t):n(o,e,t)}}function M(t,e,n,r,o){return e="string"===typeof e?e.trim():null,t.filter((function(t){var i=n.every(P(t,e,u["k"])),a=!e||r.some(P(t,e,o));return i&&a}))}e["a"]=Object(g["a"])(b,N["a"]).extend({name:"v-data-table",directives:{ripple:w["a"]},props:{headers:{type:Array,default:function(){return[]}},showSelect:Boolean,showExpand:Boolean,showGroupBy:Boolean,height:[Number,String],hideDefaultHeader:Boolean,caption:String,dense:Boolean,headerProps:Object,calculateWidths:Boolean,fixedHeader:Boolean,headersLength:Number,expandIcon:{type:String,default:"$expand"},customFilter:{type:Function,default:u["k"]},itemClass:{type:[String,Function],default:function(){return""}},loaderHeight:{type:[Number,String],default:4}},data:function(){return{internalGroupBy:[],openCache:{},widths:[]}},computed:{computedHeaders:function(){var t=this;if(!this.headers)return[];var e=this.headers.filter((function(e){return void 0===e.value||!t.internalGroupBy.find((function(t){return t===e.value}))})),n={text:"",sortable:!1,width:"1px"};if(this.showSelect){var r=e.findIndex((function(t){return"data-table-select"===t.value}));r<0?e.unshift(Object(i["a"])({},n,{value:"data-table-select"})):e.splice(r,1,Object(i["a"])({},n,{},e[r]))}if(this.showExpand){var o=e.findIndex((function(t){return"data-table-expand"===t.value}));o<0?e.unshift(Object(i["a"])({},n,{value:"data-table-expand"})):e.splice(o,1,Object(i["a"])({},n,{},e[o]))}return e},colspanAttrs:function(){return this.isMobile?void 0:{colspan:this.headersLength||this.computedHeaders.length}},columnSorters:function(){return this.computedHeaders.reduce((function(t,e){return e.sort&&(t[e.value]=e.sort),t}),{})},headersWithCustomFilters:function(){return this.headers.filter((function(t){return t.filter&&(!t.hasOwnProperty("filterable")||!0===t.filterable)}))},headersWithoutCustomFilters:function(){return this.headers.filter((function(t){return!t.filter&&(!t.hasOwnProperty("filterable")||!0===t.filterable)}))},sanitizedHeaderProps:function(){return Object(u["d"])(this.headerProps)},computedItemsPerPage:function(){var t=this.options&&this.options.itemsPerPage?this.options.itemsPerPage:this.itemsPerPage,e=this.sanitizedFooterProps.itemsPerPageOptions;if(e&&!e.find((function(e){return"number"===typeof e?e===t:e.value===t}))){var n=e[0];return"object"===Object(o["a"])(n)?n.value:n}return t}},created:function(){var t=this,e=[["sort-icon","header-props.sort-icon"],["hide-headers","hide-default-header"],["select-all","show-select"]];e.forEach((function(e){var n=Object(r["a"])(e,2),o=n[0],i=n[1];t.$attrs.hasOwnProperty(o)&&Object(v["a"])(o,i,t)}))},mounted:function(){this.calculateWidths&&(window.addEventListener("resize",this.calcWidths),this.calcWidths())},beforeDestroy:function(){this.calculateWidths&&window.removeEventListener("resize",this.calcWidths)},methods:{calcWidths:function(){this.widths=Array.from(this.$el.querySelectorAll("th")).map((function(t){return t.clientWidth}))},customFilterWithColumns:function(t,e){return M(t,e,this.headersWithCustomFilters,this.headersWithoutCustomFilters,this.customFilter)},customSortWithHeaders:function(t,e,n,r){return this.customSort(t,e,n,r,this.columnSorters)},createItemProps:function(t){var e=b.options.methods.createItemProps.call(this,t);return Object.assign(e,{headers:this.computedHeaders})},genCaption:function(t){return this.caption?[this.$createElement("caption",[this.caption])]:Object(u["s"])(this,"caption",t,!0)},genColgroup:function(t){var e=this;return this.$createElement("colgroup",this.computedHeaders.map((function(t){return e.$createElement("col",{class:{divider:t.divider}})})))},genLoading:function(){var t=this.$createElement("th",{staticClass:"column",attrs:this.colspanAttrs},[this.genProgress()]),e=this.$createElement("tr",{staticClass:"v-data-table__progress"},[t]);return this.$createElement("thead",[e])},genHeaders:function(t){var e={props:Object(i["a"])({},this.sanitizedHeaderProps,{headers:this.computedHeaders,options:t.options,mobile:this.isMobile,showGroupBy:this.showGroupBy,someItems:this.someItems,everyItem:this.everyItem,singleSelect:this.singleSelect,disableSort:this.disableSort}),on:{sort:t.sort,group:t.group,"toggle-select-all":this.toggleSelectAll}},n=[Object(u["s"])(this,"header",e)];if(!this.hideDefaultHeader){var r=Object(u["q"])("header.",this.$scopedSlots);n.push(this.$createElement(E,Object(i["a"])({},e,{scopedSlots:r})))}return this.loading&&n.push(this.genLoading()),n},genEmptyWrapper:function(t){return this.$createElement("tr",{staticClass:"v-data-table__empty-wrapper"},[this.$createElement("td",{attrs:this.colspanAttrs},t)])},genItems:function(t,e){var n=this.genEmpty(e.originalItemsLength,e.pagination.itemsLength);return n?[n]:e.groupedItems?this.genGroupedRows(e.groupedItems,e):this.genRows(t,e)},genGroupedRows:function(t,e){var n=this;return t.map((function(t){return n.openCache.hasOwnProperty(t.name)||n.$set(n.openCache,t.name,!0),n.$scopedSlots.group?n.$scopedSlots.group({group:t.name,options:e.options,items:t.items,headers:n.computedHeaders}):n.genDefaultGroupedRow(t.name,t.items,e)}))},genDefaultGroupedRow:function(t,e,n){var r=this,o=!!this.openCache[t],i=[this.$createElement("template",{slot:"row.content"},this.genRows(e,n))],a=function(){return r.$set(r.openCache,t,!r.openCache[t])},u=function(){return n.updateOptions({groupBy:[],groupDesc:[]})};if(this.$scopedSlots["group.header"])i.unshift(this.$createElement("template",{slot:"column.header"},[this.$scopedSlots["group.header"]({group:t,groupBy:n.options.groupBy,items:e,headers:this.computedHeaders,isOpen:o,toggle:a,remove:u})]));else{var s=this.$createElement(d["a"],{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:a}},[this.$createElement(f["a"],[o?"$minus":"$plus"])]),c=this.$createElement(d["a"],{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:u}},[this.$createElement(f["a"],["$close"])]),l=this.$createElement("td",{staticClass:"text-start",attrs:this.colspanAttrs},[s,"".concat(n.options.groupBy[0],": ").concat(t),c]);i.unshift(this.$createElement("template",{slot:"column.header"},[l]))}return this.$scopedSlots["group.summary"]&&i.push(this.$createElement("template",{slot:"column.summary"},[this.$scopedSlots["group.summary"]({group:t,groupBy:n.options.groupBy,items:e,headers:this.computedHeaders,isOpen:o,toggle:a})])),this.$createElement(I,{key:t,props:{value:o}},i)},genRows:function(t,e){return this.$scopedSlots.item?this.genScopedRows(t,e):this.genDefaultRows(t,e)},genScopedRows:function(t,e){for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(this.$scopedSlots.item(Object(i["a"])({},this.createItemProps(o),{index:r}))),this.isExpanded(o)&&n.push(this.$scopedSlots["expanded-item"]({item:o,headers:this.computedHeaders}))}return n},genDefaultRows:function(t,e){var n=this;return this.$scopedSlots["expanded-item"]?t.map((function(t){return n.genDefaultExpandedRow(t)})):t.map((function(t){return n.genDefaultSimpleRow(t)}))},genDefaultExpandedRow:function(t){var e=this.isExpanded(t),n={"v-data-table__expanded v-data-table__expanded__row":e},r=this.genDefaultSimpleRow(t,n),o=this.$createElement("tr",{staticClass:"v-data-table__expanded v-data-table__expanded__content"},[this.$scopedSlots["expanded-item"]({item:t,headers:this.computedHeaders})]);return this.$createElement(I,{props:{value:e}},[this.$createElement("template",{slot:"row.header"},[r]),this.$createElement("template",{slot:"row.content"},[o])])},genDefaultSimpleRow:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(u["q"])("item.",this.$scopedSlots),o=this.createItemProps(t);if(this.showSelect){var a=r["data-table-select"];r["data-table-select"]=a?function(){return a(o)}:function(){return e.$createElement(x["a"],{staticClass:"v-data-table__checkbox",props:{value:o.isSelected,disabled:!e.isSelectable(t)},on:{input:function(t){return o.select(t)}}})}}if(this.showExpand){var s=r["data-table-expand"];r["data-table-expand"]=s?function(){return s(o)}:function(){return e.$createElement(f["a"],{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":o.isExpanded},on:{click:function(t){t.stopPropagation(),o.expand(!o.isExpanded)}}},[e.expandIcon])}}return this.$createElement(this.isMobile?L:D,{key:Object(u["p"])(t,this.itemKey),class:Object(_["b"])(Object(i["a"])({},n,{"v-data-table__selected":o.isSelected}),Object(u["r"])(t,this.itemClass)),props:{headers:this.computedHeaders,hideDefaultHeader:this.hideDefaultHeader,item:t,rtl:this.$vuetify.rtl},scopedSlots:r,on:{click:function(){return e.$emit("click:row",t,o)},contextmenu:function(t){return e.$emit("contextmenu:row",t,o)},dblclick:function(t){return e.$emit("dblclick:row",t,o)}}})},genBody:function(t){var e=Object(i["a"])({},t,{expand:this.expand,headers:this.computedHeaders,isExpanded:this.isExpanded,isMobile:this.isMobile,isSelected:this.isSelected,select:this.select});return this.$scopedSlots.body?this.$scopedSlots.body(e):this.$createElement("tbody",[Object(u["s"])(this,"body.prepend",e,!0),this.genItems(t.items,t),Object(u["s"])(this,"body.append",e,!0)])},genFooters:function(t){var e={props:Object(i["a"])({options:t.options,pagination:t.pagination,itemsPerPageText:"$vuetify.dataTable.itemsPerPageText"},this.sanitizedFooterProps),on:{"update:options":function(e){return t.updateOptions(e)}},widths:this.widths,headers:this.computedHeaders},n=[Object(u["s"])(this,"footer",e,!0)];return this.hideDefaultFooter||n.push(this.$createElement(h,Object(i["a"])({},e,{scopedSlots:Object(u["q"])("footer.",this.$scopedSlots)}))),n},genDefaultScopedSlot:function(t){var e={height:this.height,fixedHeader:this.fixedHeader,dense:this.dense};return this.$createElement(B,{props:e},[this.proxySlot("top",Object(u["s"])(this,"top",t,!0)),this.genCaption(t),this.genColgroup(t),this.genHeaders(t),this.genBody(t),this.proxySlot("bottom",this.genFooters(t))])},proxySlot:function(t,e){return this.$createElement("template",{slot:t},e)}},render:function(){var t=this;return this.$createElement(c,{props:Object(i["a"])({},this.$props,{customFilter:this.customFilterWithColumns,customSort:this.customSortWithHeaders,itemsPerPage:this.computedItemsPerPage}),on:{"update:options":function(e,n){t.internalGroupBy=e.groupBy||[],!Object(u["j"])(e,n)&&t.$emit("update:options",e)},"update:page":function(e){return t.$emit("update:page",e)},"update:items-per-page":function(e){return t.$emit("update:items-per-page",e)},"update:sort-by":function(e){return t.$emit("update:sort-by",e)},"update:sort-desc":function(e){return t.$emit("update:sort-desc",e)},"update:group-by":function(e){return t.$emit("update:group-by",e)},"update:group-desc":function(e){return t.$emit("update:group-desc",e)},pagination:function(e,n){return!Object(u["j"])(e,n)&&t.$emit("pagination",e)},"current-items":function(e){t.internalCurrentItems=e,t.$emit("current-items",e)},"page-count":function(e){return t.$emit("page-count",e)}},scopedSlots:{default:this.genDefaultScopedSlot}})}})},"8ff2":function(t,e,n){},"90a2":function(t,e,n){"use strict";n("7db0");var r=n("53ca");function o(t,e){var n=e.modifiers||{},o=e.value,a="object"===Object(r["a"])(o)?o:{handler:o,options:{}},u=a.handler,s=a.options,c=new IntersectionObserver((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;if(t._observe){if(u&&(!n.quiet||t._observe.init)){var o=Boolean(e.find((function(t){return t.isIntersecting})));u(e,r,o)}t._observe.init&&n.once?i(t):t._observe.init=!0}}),s);t._observe={init:!1,observer:c},c.observe(t)}function i(t){t._observe&&(t._observe.observer.unobserve(t),delete t._observe)}var a={inserted:o,unbind:i};e["a"]=a},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"91f4":function(t,e,n){},9263:function(t,e,n){"use strict";var r=n("ad6d"),o=n("9f7f"),i=RegExp.prototype.exec,a=String.prototype.replace,u=i,s=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),c=o.UNSUPPORTED_Y||o.BROKEN_CARET,l=void 0!==/()??/.exec("")[1],f=s||l||c;f&&(u=function(t){var e,n,o,u,f=this,d=c&&f.sticky,h=r.call(f),p=f.source,m=0,g=t;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),g=String(t).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==t[f.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,m++),n=new RegExp("^(?:"+p+")",h)),l&&(n=new RegExp("^"+p+"$(?!\\s)",h)),s&&(e=f.lastIndex),o=i.call(d?n:f,g),d?o?(o.input=o.input.slice(m),o[0]=o[0].slice(m),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:s&&o&&(f.lastIndex=f.global?o.index+o[0].length:e),l&&o&&o.length>1&&a.call(o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o}),t.exports=u},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,i=function(t,e){var n=u[a(t)];return n==c||n!=s&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},"94ed":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return p})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return v})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return y})),n.d(e,"r",(function(){return x})),n.d(e,"s",(function(){return w})),n.d(e,"t",(function(){return C})),n.d(e,"u",(function(){return S})),n.d(e,"v",(function(){return k})),n.d(e,"w",(function(){return O})),n.d(e,"x",(function(){return _})),n.d(e,"y",(function(){return A})),n.d(e,"z",(function(){return E})),n.d(e,"A",(function(){return T})),n.d(e,"B",(function(){return D})),n.d(e,"C",(function(){return I})),n.d(e,"D",(function(){return B})),n.d(e,"E",(function(){return L})),n.d(e,"F",(function(){return N})),n.d(e,"G",(function(){return P})),n.d(e,"H",(function(){return M})),n.d(e,"I",(function(){return j})),n.d(e,"J",(function(){return R})),n.d(e,"K",(function(){return $})),n.d(e,"L",(function(){return F}));var r="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",o="M11 9C11 10.66 9.66 12 8 12C6.34 12 5 10.66 5 9C5 7.34 6.34 6 8 6C9.66 6 11 7.34 11 9M14 20H2V18C2 15.79 4.69 14 8 14C11.31 14 14 15.79 14 18M22 12V14H13V12M22 8V10H13V8M22 4V6H13V4Z",i="M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z",a="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",u="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z",s="M15,13H16.5V15.82L18.94,17.23L18.19,18.53L15,16.69V13M19,8H5V19H9.67C9.24,18.09 9,17.07 9,16A7,7 0 0,1 16,9C17.07,9 18.09,9.24 19,9.67V8M5,21C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H6V1H8V3H16V1H18V3H19A2,2 0 0,1 21,5V11.1C22.24,12.36 23,14.09 23,16A7,7 0 0,1 16,23C14.09,23 12.36,22.24 11.1,21H5M16,11.15A4.85,4.85 0 0,0 11.15,16C11.15,18.68 13.32,20.85 16,20.85A4.85,4.85 0 0,0 20.85,16C20.85,13.32 18.68,11.15 16,11.15Z",c="M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",l="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",f="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",d="M20 2H4C2.9 2 2 2.9 2 4V16C2 17.1 2.9 18 4 18H8V21C8 21.6 8.4 22 9 22H9.5C9.7 22 10 21.9 10.2 21.7L13.9 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2M11 13H7V8.8L8.3 6H10.3L8.9 9H11V13M17 13H13V8.8L14.3 6H16.3L14.9 9H17V13Z",h="M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M5,5V7H19V5H5M5,9V11H13V9H5M5,13V15H15V13H5Z",p="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",m="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",g="M7,15H9C9,16.08 10.37,17 12,17C13.63,17 15,16.08 15,15C15,13.9 13.96,13.5 11.76,12.97C9.64,12.44 7,11.78 7,9C7,7.21 8.47,5.69 10.5,5.18V3H13.5V5.18C15.53,5.69 17,7.21 17,9H15C15,7.92 13.63,7 12,7C10.37,7 9,7.92 9,9C9,10.1 10.04,10.5 12.24,11.03C14.36,11.56 17,12.22 17,15C17,16.79 15.53,18.31 13.5,18.82V21H10.5V18.82C8.47,18.31 7,16.79 7,15Z",v="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",b="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",y="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",x="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",w="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",C="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M10.5,11C8,11 6,13 6,15.5C6,18 8,20 10.5,20C13,20 15,18 15,15.5C15,13 13,11 10.5,11M10.5,12.5A3,3 0 0,1 13.5,15.5C13.5,16.06 13.35,16.58 13.08,17L9,12.92C9.42,12.65 9.94,12.5 10.5,12.5M7.5,15.5C7.5,14.94 7.65,14.42 7.92,14L12,18.08C11.58,18.35 11.06,18.5 10.5,18.5A3,3 0 0,1 7.5,15.5Z",S="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",k="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",O="M18 14H14V18H10V14H6V10H10V6H14V10H18M20 2H4C2.9 2 2 2.9 2 4V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V4C22 2.9 21.1 2 20 2M20 20H4V4H20V20Z",_="M6,19L9,15.14L11.14,17.72L14.14,13.86L18,19H6M6,4H11V12L8.5,10.5L6,12M18,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V4A2,2 0 0,0 18,2Z",A="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z",E="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",T="M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",D="M16,17V14H9V10H16V7L21,12L16,17M14,2A2,2 0 0,1 16,4V6H14V4H5V20H14V18H16V20A2,2 0 0,1 14,22H5A2,2 0 0,1 3,20V4A2,2 0 0,1 5,2H14Z",I="M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z",B="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",L="M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",N="M3,22V8H7V22H3M10,22V2H14V22H10M17,22V14H21V22H17Z",P="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",M="M2,21L23,12L2,3V10L17,12L2,14V21Z",j="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",R="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",$="M9,5V9H21V5M9,19H21V15H9M9,14H21V10H9M4,9H8V5H4M4,19H8V15H4M4,14H8V10H4V14Z",F="M14.83,11.17C16.39,12.73 16.39,15.27 14.83,16.83C13.27,18.39 10.73,18.39 9.17,16.83L14.83,11.17M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M7,4A1,1 0 0,0 6,5A1,1 0 0,0 7,6A1,1 0 0,0 8,5A1,1 0 0,0 7,4M10,4A1,1 0 0,0 9,5A1,1 0 0,0 10,6A1,1 0 0,0 11,5A1,1 0 0,0 10,4M12,8A6,6 0 0,0 6,14A6,6 0 0,0 12,20A6,6 0 0,0 18,14A6,6 0 0,0 12,8Z"},"95ed":function(t,e,n){},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=k(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=s;var l="suspendedStart",f="suspendedYield",d="executing",h="completed",p={};function m(){}function g(){}function v(){}var b={};b[i]=function(){return this};var y=Object.getPrototypeOf,x=y&&y(y(T([])));x&&x!==n&&r.call(x,i)&&(b=x);var w=v.prototype=m.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t,e){function n(o,i,a,u){var s=c(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var o;function i(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function k(t,e,n){var r=l;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return D()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var u=O(a,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=c(t,e,n);if("normal"===s.type){if(r=n.done?h:f,s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=c(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(t){if(t){var n=t[i];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){while(++o<t.length)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:e,done:!0}}return g.prototype=w.constructor=v,v.constructor=g,v[u]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},C(S.prototype),S.prototype[a]=function(){return this},t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(w),w[u]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},9734:function(t,e,n){},9861:function(t,e,n){"use strict";n("e260");var r=n("23e7"),o=n("d066"),i=n("0d3b"),a=n("6eeb"),u=n("e2cc"),s=n("d44e"),c=n("9ed3"),l=n("69f3"),f=n("19aa"),d=n("5135"),h=n("0366"),p=n("f5df"),m=n("825a"),g=n("861d"),v=n("7c73"),b=n("5c6c"),y=n("9a1f"),x=n("35a1"),w=n("b622"),C=o("fetch"),S=o("Headers"),k=w("iterator"),O="URLSearchParams",_=O+"Iterator",A=l.set,E=l.getterFor(O),T=l.getterFor(_),D=/\+/g,I=Array(4),B=function(t){return I[t-1]||(I[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},L=function(t){try{return decodeURIComponent(t)}catch(e){return t}},N=function(t){var e=t.replace(D," "),n=4;try{return decodeURIComponent(e)}catch(r){while(n)e=e.replace(B(n--),L);return e}},P=/[!'()~]|%20/g,M={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},j=function(t){return M[t]},R=function(t){return encodeURIComponent(t).replace(P,j)},$=function(t,e){if(e){var n,r,o=e.split("&"),i=0;while(i<o.length)n=o[i++],n.length&&(r=n.split("="),t.push({key:N(r.shift()),value:N(r.join("="))}))}},F=function(t){this.entries.length=0,$(this.entries,t)},V=function(t,e){if(t<e)throw TypeError("Not enough arguments")},H=c((function(t,e){A(this,{type:_,iterator:y(E(t).entries),kind:e})}),"Iterator",(function(){var t=T(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),z=function(){f(this,z,O);var t,e,n,r,o,i,a,u,s,c=arguments.length>0?arguments[0]:void 0,l=this,h=[];if(A(l,{type:O,entries:h,updateURL:function(){},updateSearchParams:F}),void 0!==c)if(g(c))if(t=x(c),"function"===typeof t){e=t.call(c),n=e.next;while(!(r=n.call(e)).done){if(o=y(m(r.value)),i=o.next,(a=i.call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");h.push({key:a.value+"",value:u.value+""})}}else for(s in c)d(c,s)&&h.push({key:s,value:c[s]+""});else $(h,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},U=z.prototype;u(U,{append:function(t,e){V(arguments.length,2);var n=E(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){V(arguments.length,1);var e=E(this),n=e.entries,r=t+"",o=0;while(o<n.length)n[o].key===r?n.splice(o,1):o++;e.updateURL()},get:function(t){V(arguments.length,1);for(var e=E(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){V(arguments.length,1);for(var e=E(this).entries,n=t+"",r=[],o=0;o<e.length;o++)e[o].key===n&&r.push(e[o].value);return r},has:function(t){V(arguments.length,1);var e=E(this).entries,n=t+"",r=0;while(r<e.length)if(e[r++].key===n)return!0;return!1},set:function(t,e){V(arguments.length,1);for(var n,r=E(this),o=r.entries,i=!1,a=t+"",u=e+"",s=0;s<o.length;s++)n=o[s],n.key===a&&(i?o.splice(s--,1):(i=!0,n.value=u));i||o.push({key:a,value:u}),r.updateURL()},sort:function(){var t,e,n,r=E(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(t=i[n],e=0;e<n;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===n&&o.push(t)}r.updateURL()},forEach:function(t){var e,n=E(this).entries,r=h(t,arguments.length>1?arguments[1]:void 0,3),o=0;while(o<n.length)e=n[o++],r(e.value,e.key,this)},keys:function(){return new H(this,"keys")},values:function(){return new H(this,"values")},entries:function(){return new H(this,"entries")}},{enumerable:!0}),a(U,k,U.entries),a(U,"toString",(function(){var t,e=E(this).entries,n=[],r=0;while(r<e.length)t=e[r++],n.push(R(t.key)+"="+R(t.value));return n.join("&")}),{enumerable:!0}),s(z,O),r({global:!0,forced:!i},{URLSearchParams:z}),i||"function"!=typeof C||"function"!=typeof S||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,o=[t];return arguments.length>1&&(e=arguments[1],g(e)&&(n=e.body,p(n)===O&&(r=e.headers?new S(e.headers):new S,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=v(e,{body:b(0,String(n)),headers:b(0,r)}))),o.push(e)),C.apply(this,o)}}),t.exports={URLSearchParams:z,getState:E}},9911:function(t,e,n){"use strict";var r=n("23e7"),o=n("857a"),i=n("af03");r({target:"String",proto:!0,forced:i("link")},{link:function(t){return o(this,"a","href",t)}})},"99af":function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("e8b5"),a=n("861d"),u=n("7b0b"),s=n("50c4"),c=n("8418"),l=n("65f0"),f=n("1dde"),d=n("b622"),h=n("2d00"),p=d("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=h>=51||!o((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),b=f("concat"),y=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:i(t)},x=!v||!b;r({target:"Array",proto:!0,forced:x},{concat:function(t){var e,n,r,o,i,a=u(this),f=l(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],y(i)){if(o=s(i.length),d+o>m)throw TypeError(g);for(n=0;n<o;n++,d++)n in i&&c(f,d,i[n])}else{if(d>=m)throw TypeError(g);c(f,d++,i)}return f.length=d,f}})},"99d9":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return s}));var r=n("b0af"),o=n("80d2"),i=Object(o["i"])("v-card__actions"),a=Object(o["i"])("v-card__subtitle"),u=Object(o["i"])("v-card__text"),s=Object(o["i"])("v-card__title");r["a"]},"99de":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("53ca");function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){return!e||"object"!==Object(r["a"])(e)&&"function"!==typeof e?o(t):e}},"9a0c":function(t,e,n){var r=n("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},"9a1f":function(t,e,n){var r=n("825a"),o=n("35a1");t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},"9a8c":function(t,e,n){"use strict";var r=n("ebb5"),o=n("145e"),i=r.aTypedArray,a=r.exportTypedArrayMethod;a("copyWithin",(function(t,e){return o.call(i(this),t,e,arguments.length>2?arguments[2]:void 0)}))},"9ab4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));function r(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}},"9bdd":function(t,e,n){var r=n("825a"),o=n("2a62");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){throw o(t),a}}},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),a=n("c04e"),u=Object.defineProperty;e.f=r?u:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9d01":function(t,e,n){},"9d26":function(t,e,n){"use strict";var r=n("132d");e["a"]=r["a"]},"9d65":function(t,e,n){"use strict";var r=n("d9bd"),o=n("2b0e");e["a"]=o["a"].extend().extend({name:"bootable",props:{eager:Boolean},data:function(){return{isBooted:!1}},computed:{hasContent:function(){return this.isBooted||this.eager||this.isActive}},watch:{isActive:function(){this.isBooted=!0}},created:function(){"lazy"in this.$attrs&&Object(r["e"])("lazy",this)},methods:{showLazyContent:function(t){return this.hasContent&&t?t():[this.$createElement()]}}})},"9e29":function(t,e,n){},"9e88":function(t,e,n){"use strict";n("4160"),n("159b");var r=n("5530"),o=(n("cf36"),n("5607")),i=n("2b0e"),a=n("132d"),u=n("a9ad"),s=n("7560"),c=n("d9f7"),l=n("80d2");e["a"]=i["a"].extend({name:"v-simple-checkbox",functional:!0,directives:{ripple:o["a"]},props:Object(r["a"])({},u["a"].options.props,{},s["a"].options.props,{disabled:Boolean,ripple:{type:Boolean,default:!0},value:Boolean,indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},onIcon:{type:String,default:"$checkboxOn"},offIcon:{type:String,default:"$checkboxOff"}}),render:function(t,e){var n=e.props,r=e.data,o=(e.listeners,[]);if(n.ripple&&!n.disabled){var i=t("div",u["a"].options.methods.setTextColor(n.color,{staticClass:"v-input--selection-controls__ripple",directives:[{name:"ripple",value:{center:!0}}]}));o.push(i)}var s=n.offIcon;n.indeterminate?s=n.indeterminateIcon:n.value&&(s=n.onIcon),o.push(t(a["a"],u["a"].options.methods.setTextColor(n.value&&n.color,{props:{disabled:n.disabled,dark:n.dark,light:n.light}}),s));var f={"v-simple-checkbox":!0,"v-simple-checkbox--disabled":n.disabled};return t("div",Object(c["a"])(r,{class:f,on:{click:function(t){t.stopPropagation(),r.on&&r.on.input&&!n.disabled&&Object(l["I"])(r.on.input).forEach((function(t){return t(!n.value)}))}}}),o)}})},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),a=n("d44e"),u=n("3f8c"),s=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,c,!1,!0),u[c]=s,t}},"9f7f":function(t,e,n){"use strict";var r=n("d039");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"9f7f1":function(t,e,n){},a078:function(t,e,n){var r=n("7b0b"),o=n("50c4"),i=n("35a1"),a=n("e95a"),u=n("0366"),s=n("ebb5").aTypedArrayConstructor;t.exports=function(t){var e,n,c,l,f,d,h=r(t),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=i(h);if(void 0!=v&&!a(v)){f=v.call(h),d=f.next,h=[];while(!(l=d.call(f)).done)h.push(l.value)}for(g&&p>2&&(m=u(m,arguments[2],2)),n=o(h.length),c=new(s(this))(n),e=0;n>e;e++)c[e]=g?m(h[e],e):h[e];return c}},a15b:function(t,e,n){"use strict";var r=n("23e7"),o=n("44ad"),i=n("fc6a"),a=n("a640"),u=[].join,s=o!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:s||!c},{join:function(t){return u.call(i(this),void 0===t?",":t)}})},a236:function(t,e,n){"use strict";n("a15b"),n("ac1f"),n("1276");var r=n("ade3"),o=n("b85c"),i=n("2b0e");e["a"]=i["a"].extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses:function(){var t=[],e="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)t.push("rounded-0");else if("string"===typeof e){var n,i=e.split(" "),a=Object(o["a"])(i);try{for(a.s();!(n=a.n()).done;){var u=n.value;t.push("rounded-".concat(u))}}catch(s){a.e(s)}finally{a.f()}}else e&&t.push("rounded");return t.length>0?Object(r["a"])({},t.join(" "),!0):{}}}})},a293:function(t,e,n){"use strict";n("45fc");var r=n("53ca");function o(){return!0}function i(t,e,n){var i="function"===typeof n.value?n.value:n.value.handler,a="object"===Object(r["a"])(n.value)&&n.value.closeConditional||o;if(t&&!1!==a(t)){var u=("object"===Object(r["a"])(n.value)&&n.value.include||function(){return[]})();u.push(e),!u.some((function(e){return e.contains(t.target)}))&&setTimeout((function(){a(t)&&i&&i(t)}),0)}}var a={inserted:function(t,e){var n=function(n){return i(n,t,e)},r=document.querySelector("[data-app]")||document.body;r.addEventListener("click",n,!0),t._clickOutside=n},unbind:function(t){if(t._clickOutside){var e=document.querySelector("[data-app]")||document.body;e&&e.removeEventListener("click",t._clickOutside,!0),delete t._clickOutside}}};e["a"]=a},a2bf:function(t,e,n){"use strict";var r=n("e8b5"),o=n("50c4"),i=n("0366"),a=function(t,e,n,u,s,c,l,f){var d,h=s,p=0,m=!!l&&i(l,f,3);while(p<u){if(p in n){if(d=m?m(n[p],p,e):n[p],c>0&&r(d))h=a(t,e,d,o(d.length),h,c-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[h]=d}h++}p++}return h};t.exports=a},a434:function(t,e,n){"use strict";var r=n("23e7"),o=n("23cb"),i=n("a691"),a=n("50c4"),u=n("7b0b"),s=n("65f0"),c=n("8418"),l=n("1dde"),f=n("ae40"),d=l("splice"),h=f("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,m=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!h},{splice:function(t,e){var n,r,l,f,d,h,b=u(this),y=a(b.length),x=o(t,y),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=y-x):(n=w-2,r=m(p(i(e),0),y-x)),y+n-r>g)throw TypeError(v);for(l=s(b,r),f=0;f<r;f++)d=x+f,d in b&&c(l,f,b[d]);if(l.length=r,n<r){for(f=x;f<y-r;f++)d=f+r,h=f+n,d in b?b[h]=b[d]:delete b[h];for(f=y;f>y-r+n;f--)delete b[f-1]}else if(n>r)for(f=y-r;f>x;f--)d=f+r-1,h=f+n-1,d in b?b[h]=b[d]:delete b[h];for(f=0;f<n;f++)b[f+x]=arguments[f+2];return b.length=y-r+n,l}})},a452:function(t,e,n){"use strict";var r=n("ade3"),o=n("2b0e");function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"change";return o["a"].extend({name:"proxyable",model:{prop:t,event:e},props:Object(r["a"])({},t,{required:!1}),data:function(){return{internalLazyValue:this[t]}},computed:{internalValue:{get:function(){return this.internalLazyValue},set:function(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:Object(r["a"])({},t,(function(t){this.internalLazyValue=t}))})}var a=i();e["a"]=a},a4d3:function(t,e,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("d066"),a=n("c430"),u=n("83ab"),s=n("4930"),c=n("fdbf"),l=n("d039"),f=n("5135"),d=n("e8b5"),h=n("861d"),p=n("825a"),m=n("7b0b"),g=n("fc6a"),v=n("c04e"),b=n("5c6c"),y=n("7c73"),x=n("df75"),w=n("241c"),C=n("057f"),S=n("7418"),k=n("06cf"),O=n("9bf2"),_=n("d1e7"),A=n("9112"),E=n("6eeb"),T=n("5692"),D=n("f772"),I=n("d012"),B=n("90e3"),L=n("b622"),N=n("e538"),P=n("746f"),M=n("d44e"),j=n("69f3"),R=n("b727").forEach,$=D("hidden"),F="Symbol",V="prototype",H=L("toPrimitive"),z=j.set,U=j.getterFor(F),W=Object[V],q=o.Symbol,G=i("JSON","stringify"),Y=k.f,X=O.f,K=C.f,Z=_.f,J=T("symbols"),Q=T("op-symbols"),tt=T("string-to-symbol-registry"),et=T("symbol-to-string-registry"),nt=T("wks"),rt=o.QObject,ot=!rt||!rt[V]||!rt[V].findChild,it=u&&l((function(){return 7!=y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=J[t]=y(q[V]);return z(n,{type:F,tag:t,description:e}),u||(n.description=e),n},ut=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},st=function(t,e,n){t===W&&st(Q,e,n),p(t);var r=v(e,!0);return p(n),f(J,r)?(n.enumerable?(f(t,$)&&t[$][r]&&(t[$][r]=!1),n=y(n,{enumerable:b(0,!1)})):(f(t,$)||X(t,$,b(1,{})),t[$][r]=!0),it(t,r,n)):X(t,r,n)},ct=function(t,e){p(t);var n=g(e),r=x(n).concat(pt(n));return R(r,(function(e){u&&!ft.call(n,e)||st(t,e,n[e])})),t},lt=function(t,e){return void 0===e?y(t):ct(y(t),e)},ft=function(t){var e=v(t,!0),n=Z.call(this,e);return!(this===W&&f(J,e)&&!f(Q,e))&&(!(n||!f(this,e)||!f(J,e)||f(this,$)&&this[$][e])||n)},dt=function(t,e){var n=g(t),r=v(e,!0);if(n!==W||!f(J,r)||f(Q,r)){var o=Y(n,r);return!o||!f(J,r)||f(n,$)&&n[$][r]||(o.enumerable=!0),o}},ht=function(t){var e=K(g(t)),n=[];return R(e,(function(t){f(J,t)||f(I,t)||n.push(t)})),n},pt=function(t){var e=t===W,n=K(e?Q:g(t)),r=[];return R(n,(function(t){!f(J,t)||e&&!f(W,t)||r.push(J[t])})),r};if(s||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=B(t),n=function(t){this===W&&n.call(Q,t),f(this,$)&&f(this[$],e)&&(this[$][e]=!1),it(this,e,b(1,t))};return u&&ot&&it(W,e,{configurable:!0,set:n}),at(e,t)},E(q[V],"toString",(function(){return U(this).tag})),E(q,"withoutSetter",(function(t){return at(B(t),t)})),_.f=ft,O.f=st,k.f=dt,w.f=C.f=ht,S.f=pt,N.f=function(t){return at(L(t),t)},u&&(X(q[V],"description",{configurable:!0,get:function(){return U(this).description}}),a||E(W,"propertyIsEnumerable",ft,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:q}),R(x(nt),(function(t){P(t)})),r({target:F,stat:!0,forced:!s},{for:function(t){var e=String(t);if(f(tt,e))return tt[e];var n=q(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!ut(t))throw TypeError(t+" is not a symbol");if(f(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!u},{create:lt,defineProperty:st,defineProperties:ct,getOwnPropertyDescriptor:dt}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:ht,getOwnPropertySymbols:pt}),r({target:"Object",stat:!0,forced:l((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(m(t))}}),G){var mt=!s||l((function(){var t=q();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))}));r({target:"JSON",stat:!0,forced:mt},{stringify:function(t,e,n){var r,o=[t],i=1;while(arguments.length>i)o.push(arguments[i++]);if(r=e,(h(e)||void 0!==t)&&!ut(t))return d(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ut(e))return e}),o[1]=e,G.apply(null,o)}})}q[V][H]||A(q[V],H,q[V].valueOf),M(q,F),I[$]=!0},a523:function(t,e,n){"use strict";n("99af"),n("4de4"),n("b64b"),n("2ca0"),n("20f6"),n("4b85");var r=n("e8f2"),o=n("d9f7");e["a"]=Object(r["a"])("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render:function(t,e){var n,r=e.props,i=e.data,a=e.children,u=i.attrs;return u&&(i.attrs={},n=Object.keys(u).filter((function(t){if("slot"===t)return!1;var e=u[t];return t.startsWith("data-")?(i.attrs[t]=e,!1):e||"string"===typeof e}))),r.id&&(i.domProps=i.domProps||{},i.domProps.id=r.id),t(r.tag,Object(o["a"])(i,{staticClass:"container",class:Array({"container--fluid":r.fluid}).concat(n||[])}),a)}})},a623:function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").every,i=n("a640"),a=n("ae40"),u=i("every"),s=a("every");r({target:"Array",proto:!0,forced:!u||!s},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},a630:function(t,e,n){var r=n("23e7"),o=n("4df4"),i=n("1c7e"),a=!i((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:o})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a722:function(t,e,n){"use strict";n("20f6");var r=n("e8f2");e["a"]=Object(r["a"])("layout")},a78e:function(t,e,n){var r,o; 18 /*! 19 * JavaScript Cookie v2.2.1 20 * https://github.com/js-cookie/js-cookie 21 * 22 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack 23 * Released under the MIT license 24 */(function(i){var a;if(r=i,o="function"===typeof r?r.call(e,n,e,t):r,void 0===o||(t.exports=o),a=!0,t.exports=i(),a=!0,!a){var u=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=u,s}}})((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function o(){}function i(e,n,i){if("undefined"!==typeof document){i=t({path:"/"},o.defaults,i),"number"===typeof i.expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(c){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var u="";for(var s in i)i[s]&&(u+="; "+s,!0!==i[s]&&(u+="="+i[s].split(";")[0]));return document.cookie=e+"="+n+u}}function a(t,n){if("undefined"!==typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var u=i[a].split("="),s=u.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var c=e(u[0]);if(s=(r.read||r)(s,c)||e(s),n)try{s=JSON.parse(s)}catch(l){}if(o[c]=s,t===c)break}catch(l){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return a(t,!1)},o.getJSON=function(t){return a(t,!0)},o.remove=function(e,n){i(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}return n((function(){}))}))},a79d:function(t,e,n){"use strict";var r=n("23e7"),o=n("c430"),i=n("fea9"),a=n("d039"),u=n("d066"),s=n("4840"),c=n("cdf9"),l=n("6eeb"),f=!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(t){var e=s(this,u("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),o||"function"!=typeof i||i.prototype["finally"]||l(i.prototype,"finally",u("Promise").prototype["finally"])},a844:function(t,e,n){"use strict";n("a9e3");var r=n("5530"),o=(n("1681"),n("8654")),i=n("58df"),a=Object(i["a"])(o["a"]);e["a"]=a.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:function(t){return!isNaN(parseFloat(t))}},rows:{type:[Number,String],default:5,validator:function(t){return!isNaN(parseInt(t,10))}}},computed:{classes:function(){return Object(r["a"])({"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle},o["a"].options.computed.classes.call(this))},noResizeHandle:function(){return this.noResize||this.autoGrow}},watch:{lazyValue:function(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight:function(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted:function(){var t=this;setTimeout((function(){t.autoGrow&&t.calculateInputHeight()}),0)},methods:{calculateInputHeight:function(){var t=this.$refs.input;if(t){t.style.height="0";var e=t.scrollHeight,n=parseInt(this.rows,10)*parseFloat(this.rowHeight);t.style.height=Math.max(n,e)+"px"}},genInput:function(){var t=o["a"].options.methods.genInput.call(this);return t.tag="textarea",delete t.data.attrs.type,t.data.attrs.rows=this.rows,t},onInput:function(t){o["a"].options.methods.onInput.call(this,t),this.autoGrow&&this.calculateInputHeight()},onKeyDown:function(t){this.isFocused&&13===t.keyCode&&t.stopPropagation(),this.$emit("keydown",t)}}})},a975:function(t,e,n){"use strict";var r=n("ebb5"),o=n("b727").every,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},a981:function(t,e){t.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9ad:function(t,e,n){"use strict";n("d3b7"),n("ac1f"),n("25f0"),n("1276"),n("498a");var r=n("3835"),o=n("ade3"),i=n("5530"),a=n("2b0e"),u=n("d9bd"),s=n("7bc6");e["a"]=a["a"].extend({name:"colorable",props:{color:String},methods:{setBackgroundColor:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e.style?(Object(u["b"])("style must be an object",this),e):"string"===typeof e.class?(Object(u["b"])("class must be an object",this),e):(Object(s["n"])(t)?e.style=Object(i["a"])({},e.style,{"background-color":"".concat(t),"border-color":"".concat(t)}):t&&(e.class=Object(i["a"])({},e.class,Object(o["a"])({},t,!0))),e)},setTextColor:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"===typeof e.style)return Object(u["b"])("style must be an object",this),e;if("string"===typeof e.class)return Object(u["b"])("class must be an object",this),e;if(Object(s["n"])(t))e.style=Object(i["a"])({},e.style,{color:"".concat(t),"caret-color":"".concat(t)});else if(t){var n=t.toString().trim().split(" ",2),a=Object(r["a"])(n,2),c=a[0],l=a[1];e.class=Object(i["a"])({},e.class,Object(o["a"])({},c+"--text",!0)),l&&(e.class["text--"+l]=!0)}return e}}})},a9e3:function(t,e,n){"use strict";var r=n("83ab"),o=n("da84"),i=n("94ca"),a=n("6eeb"),u=n("5135"),s=n("c6b6"),c=n("7156"),l=n("c04e"),f=n("d039"),d=n("7c73"),h=n("241c").f,p=n("06cf").f,m=n("9bf2").f,g=n("58a8").trim,v="Number",b=o[v],y=b.prototype,x=s(d(y))==v,w=function(t){var e,n,r,o,i,a,u,s,c=l(t,!1);if("string"==typeof c&&c.length>2)if(c=g(c),e=c.charCodeAt(0),43===e||45===e){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(i=c.slice(2),a=i.length,u=0;u<a;u++)if(s=i.charCodeAt(u),s<48||s>o)return NaN;return parseInt(i,r)}return+c};if(i(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var C,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(x?f((function(){y.valueOf.call(n)})):s(n)!=v)?c(new b(w(e)),n,S):w(e)},k=r?h(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),O=0;k.length>O;O++)u(b,C=k[O])&&!u(S,C)&&m(S,C,p(b,C));S.prototype=y,y.constructor=S,a(o,v,S)}},aac8:function(t,e,n){"use strict";var r=n("5530"),o=(n("99af"),n("7db0"),n("c740"),n("13b3"),n("c3f0")),i=n("afdd"),a=n("9d26"),u=n("604c"),s=u["a"].extend({name:"v-window",directives:{Touch:o["a"]},provide:function(){return{windowGroup:this}},props:{activeClass:{type:String,default:"v-window-item--active"},continuous:Boolean,mandatory:{type:Boolean,default:!0},nextIcon:{type:[Boolean,String],default:"$next"},prevIcon:{type:[Boolean,String],default:"$prev"},reverse:Boolean,showArrows:Boolean,showArrowsOnHover:Boolean,touch:Object,touchless:Boolean,value:{required:!1},vertical:Boolean},data:function(){return{internalHeight:void 0,transitionHeight:void 0,transitionCount:0,isBooted:!1,isReverse:!1}},computed:{isActive:function(){return this.transitionCount>0},classes:function(){return Object(r["a"])({},u["a"].options.computed.classes.call(this),{"v-window--show-arrows-on-hover":this.showArrowsOnHover})},computedTransition:function(){if(!this.isBooted)return"";var t=this.vertical?"y":"x",e=this.internalReverse?!this.isReverse:this.isReverse,n=e?"-reverse":"";return"v-window-".concat(t).concat(n,"-transition")},hasActiveItems:function(){return Boolean(this.items.find((function(t){return!t.disabled})))},hasNext:function(){return this.continuous||this.internalIndex<this.items.length-1},hasPrev:function(){return this.continuous||this.internalIndex>0},internalIndex:function(){var t=this;return this.items.findIndex((function(e,n){return t.internalValue===t.getValue(e,n)}))},internalReverse:function(){return this.$vuetify.rtl?!this.reverse:this.reverse}},watch:{internalIndex:function(t,e){this.isReverse=this.updateReverse(t,e)}},mounted:function(){var t=this;window.requestAnimationFrame((function(){return t.isBooted=!0}))},methods:{genContainer:function(){var t=[this.$slots.default];return this.showArrows&&t.push(this.genControlIcons()),this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight||this.transitionHeight}},t)},genIcon:function(t,e,n){return this.$createElement("div",{staticClass:"v-window__".concat(t)},[this.$createElement(i["a"],{props:{icon:!0},attrs:{"aria-label":this.$vuetify.lang.t("$vuetify.carousel.".concat(t))},on:{click:function(t){t.stopPropagation(),n()}}},[this.$createElement(a["a"],{props:{large:!0}},e)])])},genControlIcons:function(){var t=[],e=this.$vuetify.rtl?this.nextIcon:this.prevIcon;if(this.hasPrev&&e&&"string"===typeof e){var n=this.genIcon("prev",e,this.prev);n&&t.push(n)}var r=this.$vuetify.rtl?this.prevIcon:this.nextIcon;if(this.hasNext&&r&&"string"===typeof r){var o=this.genIcon("next",r,this.next);o&&t.push(o)}return t},getNextIndex:function(t){var e=(t+1)%this.items.length,n=this.items[e];return n.disabled?this.getNextIndex(e):e},getPrevIndex:function(t){var e=(t+this.items.length-1)%this.items.length,n=this.items[e];return n.disabled?this.getPrevIndex(e):e},next:function(){if(this.hasActiveItems&&this.hasNext){var t=this.getNextIndex(this.internalIndex),e=this.items[t];this.internalValue=this.getValue(e,t)}},prev:function(){if(this.hasActiveItems&&this.hasPrev){var t=this.getPrevIndex(this.internalIndex),e=this.items[t];this.internalValue=this.getValue(e,t)}},updateReverse:function(t,e){var n=this.items.length,r=n-1;return n<=2?t<e:t===r&&0===e||(0!==t||e!==r)&&t<e}},render:function(t){var e=this,n={staticClass:"v-window",class:this.classes,directives:[]};if(!this.touchless){var r=this.touch||{left:function(){e.$vuetify.rtl?e.prev():e.next()},right:function(){e.$vuetify.rtl?e.next():e.prev()},end:function(t){t.stopPropagation()},start:function(t){t.stopPropagation()}};n.directives.push({name:"touch",value:r})}return t("div",n,[this.genContainer()])}});e["a"]=s.extend({name:"v-tabs-items",props:{mandatory:{type:Boolean,default:!1}},computed:{classes:function(){return Object(r["a"])({},s.options.computed.classes.call(this),{"v-tabs-items":!0})},isDark:function(){return this.rootIsDark}},methods:{getValue:function(t,e){return t.id||u["a"].options.methods.getValue.call(this,t,e)}}})},ab13:function(t,e,n){var r=n("b622"),o=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,"/./"[t](e)}catch(r){}}return!1}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ac7c:function(t,e,n){"use strict";n("d3b7"),n("25f0");var r=n("5530"),o=(n("6ca7"),n("ec29"),n("9d26")),i=n("c37a"),a=n("fe09");e["a"]=a["a"].extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data:function(){return{inputIndeterminate:this.indeterminate}},computed:{classes:function(){return Object(r["a"])({},i["a"].options.computed.classes.call(this),{"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate})},computedIcon:function(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState:function(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate:function(t){var e=this;this.$nextTick((function(){return e.inputIndeterminate=t}))},inputIndeterminate:function(t){this.$emit("update:indeterminate",t)},isActive:function(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox:function(){return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(o["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",Object(r["a"])({},this.attrs$,{"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()})),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot:function(){return[this.genCheckbox(),this.genLabel()]}}})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},adda:function(t,e,n){"use strict";n("a15b"),n("a9e3");var r=n("53ca"),o=(n("8efc"),n("90a2")),i=(n("36a7"),n("24b2")),a=n("58df"),u=Object(a["a"])(i["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number]},computed:{computedAspectRatio:function(){return Number(this.aspectRatio)},aspectStyle:function(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer:function(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-responsive__content"},this.$slots.default)}},render:function(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),s=u,c=n("7560"),l=n("d9f7"),f=n("d9bd"),d="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(a["a"])(s,c["a"]).extend({name:"v-img",directives:{intersect:o["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:function(){return{root:void 0,rootMargin:void 0,threshold:void 0}}},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data:function(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio:function(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc:function(){return this.src&&"object"===Object(r["a"])(this.src)?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage:function(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];var t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push("linear-gradient(".concat(this.gradient,")")),e&&t.push('url("'.concat(e,'")'));var n=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[n]):n}},watch:{src:function(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted:function(){this.init()},methods:{init:function(t,e,n){if(!d||n||this.eager){if(this.normalisedSrc.lazySrc){var r=new Image;r.src=this.normalisedSrc.lazySrc,this.pollForSize(r,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad:function(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src)},onError:function(){this.hasError=!0,this.$emit("error",this.src)},getSrc:function(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage:function(){var t=this,e=new Image;this.image=e,e.onload=function(){e.decode?e.decode().catch((function(e){Object(f["c"])("Failed to decode image, trying to render anyway\n\n"+"src: ".concat(t.normalisedSrc.src)+(e.message?"\nOriginal error: ".concat(e.message):""),t)})).then(t.onLoad):t.onLoad()},e.onerror=this.onError,this.hasError=!1,e.src=this.normalisedSrc.src,this.sizes&&(e.sizes=this.sizes),this.normalisedSrc.srcset&&(e.srcset=this.normalisedSrc.srcset),this.aspectRatio||this.pollForSize(e),this.getSrc()},pollForSize:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=function r(){var o=t.naturalHeight,i=t.naturalWidth;o||i?(e.naturalWidth=i,e.calculatedAspectRatio=i/o):null!=n&&!e.hasError&&setTimeout(r,n)};r()},genContent:function(){var t=s.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:"".concat(this.naturalWidth,"px")}}),t},__genPlaceholder:function(){if(this.$slots.placeholder){var t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render:function(t){var e=s.options.render.call(this,t),n=Object(l["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:d?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,n,e.children)}})},ade3:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},ae40:function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("5135"),a=Object.defineProperty,u={},s=function(t){throw t};t.exports=function(t,e){if(i(u,t))return u[t];e||(e={});var n=[][t],c=!!i(e,"ACCESSORS")&&e.ACCESSORS,l=i(e,0)?e[0]:s,f=i(e,1)?e[1]:void 0;return u[t]=!!n&&!o((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:s}):t[1]=1,n.call(t,l,f)}))}},ae93:function(t,e,n){"use strict";var r,o,i,a=n("e163"),u=n("9112"),s=n("5135"),c=n("b622"),l=n("c430"),f=c("iterator"),d=!1,h=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=a(a(i)),o!==Object.prototype&&(r=o)):d=!0),void 0==r&&(r={}),l||s(r,f)||u(r,f,h),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},af03:function(t,e,n){var r=n("d039");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},af2b:function(t,e,n){"use strict";n("c96a");var r=n("2b0e");e["a"]=r["a"].extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium:function(){return Boolean(!this.xSmall&&!this.small&&!this.large&&!this.xLarge)},sizeableClasses:function(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}})},afdd:function(t,e,n){"use strict";var r=n("8336");e["a"]=r["a"]},b041:function(t,e,n){"use strict";var r=n("00ee"),o=n("f5df");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0af:function(t,e,n){"use strict";n("0481"),n("4069"),n("a9e3");var r=n("5530"),o=(n("615b"),n("10d2")),i=n("297c"),a=n("1c87"),u=n("58df");e["a"]=Object(u["a"])(i["a"],a["a"],o["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return Object(r["a"])({"v-card":!0},a["a"].options.computed.classes.call(this),{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},o["a"].options.computed.classes.call(this))},styles:function(){var t=Object(r["a"])({},o["a"].options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=i["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),n=e.tag,r=e.data;return r.style=this.styles,this.isClickable&&(r.attrs=r.attrs||{},r.attrs.tabindex=0),t(n,this.setBackgroundColor(this.color,r),[this.genProgress(),this.$slots.default])}})},b0c0:function(t,e,n){var r=n("83ab"),o=n("9bf2").f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/,s="name";r&&!(s in i)&&o(i,s,{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(t){return""}}})},b39a:function(t,e,n){"use strict";var r=n("da84"),o=n("ebb5"),i=n("d039"),a=r.Int8Array,u=o.aTypedArray,s=o.exportTypedArrayMethod,c=[].toLocaleString,l=[].slice,f=!!a&&i((function(){c.call(new a(1))})),d=i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])}));s("toLocaleString",(function(){return c.apply(f?l.call(u(this)):u(this),arguments)}),d)},b50d:function(t,e,n){"use strict";var r=n("c532"),o=n("467f"),i=n("30b5"),a=n("83b9"),u=n("c345"),s=n("3934"),c=n("2d83");t.exports=function(t){return new Promise((function(e,l){var f=t.data,d=t.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+m)}var g=a(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),i(g,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?h.response:h.responseText,i={data:r,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,l,i),h=null}},h.onabort=function(){h&&(l(c("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){l(c("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(c(e,t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var v=n("7aac"),b=(t.withCredentials||s(g))&&t.xsrfCookieName?v.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(d,(function(t,e){"undefined"===typeof f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"===typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),l(t),h=null)})),void 0===f&&(f=null),h.send(f)}))}},b575:function(t,e,n){var r,o,i,a,u,s,c,l,f=n("da84"),d=n("06cf").f,h=n("2cf4").set,p=n("1cdc"),m=n("605d"),g=f.MutationObserver||f.WebKitMutationObserver,v=f.document,b=f.process,y=f.Promise,x=d(f,"queueMicrotask"),w=x&&x.value;w||(r=function(){var t,e;m&&(t=b.domain)&&t.exit();while(o){e=o.fn,o=o.next;try{e()}catch(n){throw o?a():i=void 0,n}}i=void 0,t&&t.enter()},!p&&!m&&g&&v?(u=!0,s=v.createTextNode(""),new g(r).observe(s,{characterData:!0}),a=function(){s.data=u=!u}):y&&y.resolve?(c=y.resolve(void 0),l=c.then,a=function(){l.call(c,r)}):a=m?function(){b.nextTick(r)}:function(){h.call(f,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},b5b6:function(t,e,n){},b622:function(t,e,n){var r=n("da84"),o=n("5692"),i=n("5135"),a=n("90e3"),u=n("4930"),s=n("fdbf"),c=o("wks"),l=r.Symbol,f=s?l:l&&l.withoutSetter||a;t.exports=function(t){return i(c,t)||(u&&i(l,t)?c[t]=l[t]:c[t]=f("Symbol."+t)),c[t]}},b64b:function(t,e,n){var r=n("23e7"),o=n("7b0b"),i=n("df75"),a=n("d039"),u=a((function(){i(1)}));r({target:"Object",stat:!0,forced:u},{keys:function(t){return i(o(t))}})},b680:function(t,e,n){"use strict";var r=n("23e7"),o=n("a691"),i=n("408a"),a=n("1148"),u=n("d039"),s=1..toFixed,c=Math.floor,l=function(t,e,n){return 0===e?n:e%2===1?l(t,e-1,n*t):l(t*t,e/2,n)},f=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},d=s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!u((function(){s.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(t){var e,n,r,u,s=i(this),d=o(t),h=[0,0,0,0,0,0],p="",m="0",g=function(t,e){var n=-1,r=e;while(++n<6)r+=t*h[n],h[n]=r%1e7,r=c(r/1e7)},v=function(t){var e=6,n=0;while(--e>=0)n+=h[e],h[e]=c(n/t),n=n%t*1e7},b=function(){var t=6,e="";while(--t>=0)if(""!==e||0===t||0!==h[t]){var n=String(h[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(p="-",s=-s),s>1e-21)if(e=f(s*l(2,69,1))-69,n=e<0?s*l(2,-e,1):s/l(2,e,1),n*=4503599627370496,e=52-e,e>0){g(0,n),r=d;while(r>=7)g(1e7,0),r-=7;g(l(10,r,1),0),r=e-1;while(r>=23)v(1<<23),r-=23;v(1<<r),g(1,1),v(2),m=b()}else g(0,n),g(1<<-e,0),m=b()+a.call("0",d);return d>0?(u=m.length,m=p+(u<=d?"0."+a.call("0",d-u)+m:m.slice(0,u-d)+"."+m.slice(u-d))):m=p+m,m}})},b727:function(t,e,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),a=n("50c4"),u=n("65f0"),s=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,f=6==t,d=7==t,h=5==t||f;return function(p,m,g,v){for(var b,y,x=i(p),w=o(x),C=r(m,g,3),S=a(w.length),k=0,O=v||u,_=e?O(p,S):n||d?O(p,0):void 0;S>k;k++)if((h||k in w)&&(b=w[k],y=C(b,k,x),t))if(e)_[k]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return k;case 2:s.call(_,b)}else switch(t){case 4:return!1;case 7:s.call(_,b)}return f?-1:c||l?l:_}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},b73d:function(t,e,n){"use strict";n("0481"),n("4069");var r=n("5530"),o=(n("ec29"),n("9d01"),n("fe09")),i=n("c37a"),a=n("c3f0"),u=n("0789"),s=n("490a"),c=n("80d2");e["a"]=o["a"].extend({name:"v-switch",directives:{Touch:a["a"]},props:{inset:Boolean,loading:{type:[Boolean,String],default:!1},flat:{type:Boolean,default:!1}},computed:{classes:function(){return Object(r["a"])({},i["a"].options.computed.classes.call(this),{"v-input--selection-controls v-input--switch":!0,"v-input--switch--flat":this.flat,"v-input--switch--inset":this.inset})},attrs:function(){return{"aria-checked":String(this.isActive),"aria-disabled":String(this.isDisabled),role:"switch"}},validationState:function(){return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0},switchData:function(){return this.setTextColor(this.loading?void 0:this.validationState,{class:this.themeClasses})}},methods:{genDefaultSlot:function(){return[this.genSwitch(),this.genLabel()]},genSwitch:function(){return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",Object(r["a"])({},this.attrs,{},this.attrs$)),this.genRipple(this.setTextColor(this.validationState,{directives:[{name:"touch",value:{left:this.onSwipeLeft,right:this.onSwipeRight}}]})),this.$createElement("div",Object(r["a"])({staticClass:"v-input--switch__track"},this.switchData)),this.$createElement("div",Object(r["a"])({staticClass:"v-input--switch__thumb"},this.switchData),[this.genProgress()])])},genProgress:function(){return this.$createElement(u["c"],{},[!1===this.loading?null:this.$slots.progress||this.$createElement(s["a"],{props:{color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,size:16,width:2,indeterminate:!0}})])},onSwipeLeft:function(){this.isActive&&this.onChange()},onSwipeRight:function(){this.isActive||this.onChange()},onKeydown:function(t){(t.keyCode===c["y"].left&&this.isActive||t.keyCode===c["y"].right&&!this.isActive)&&this.onChange()}}})},b810:function(t,e,n){"use strict";var r=n("ce7e");e["a"]=r["a"]},b848:function(t,e,n){"use strict";var r=n("2909"),o=n("58df");function i(t){for(var e=[],n=0;n<t.length;n++){var o=t[n];o.isActive&&o.isDependent?e.push(o):e.push.apply(e,Object(r["a"])(i(o.$children)))}return e}e["a"]=Object(o["a"])().extend({name:"dependent",data:function(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive:function(t){if(!t)for(var e=this.getOpenDependents(),n=0;n<e.length;n++)e[n].isActive=!1}},methods:{getOpenDependents:function(){return this.closeDependents?i(this.$children):[]},getOpenDependentElements:function(){for(var t=[],e=this.getOpenDependents(),n=0;n<e.length;n++)t.push.apply(t,Object(r["a"])(e[n].getClickableDependentElements()));return t},getClickableDependentElements:function(){var t=[this.$el];return this.$refs.content&&t.push(this.$refs.content),this.overlay&&t.push(this.overlay.$el),t.push.apply(t,Object(r["a"])(this.getOpenDependentElements())),t}}})},b85c:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");var r=n("06c5");function o(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=Object(r["a"])(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,a=!0,u=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==o["return"]||o["return"]()}finally{if(u)throw i}}}}},b974:function(t,e,n){"use strict";n.d(e,"b",(function(){return D}));n("99af"),n("4de4"),n("c740"),n("a630"),n("caad"),n("d81d"),n("13d5"),n("fb6a"),n("a434"),n("b0c0"),n("4ec9"),n("d3b7"),n("ac1f"),n("25f0"),n("2532"),n("3ca3"),n("1276"),n("2ca0"),n("498a"),n("ddb0");var r=n("b85c"),o=n("ade3"),i=n("5530"),a=(n("4ff9"),n("68dd"),n("34ef")),u=n("326d"),s=(n("c975"),n("a15b"),n("b64b"),n("9e88")),c=n("b810"),l=n("24e2"),f=n("da13"),d=n("1800"),h=n("5d23"),p=n("8860"),m=n("5607"),g=n("a9ad"),v=n("7560"),b=n("80d2"),y=n("58df"),x=Object(y["a"])(g["a"],v["a"]).extend({name:"v-select-list",directives:{ripple:m["a"]},props:{action:Boolean,dense:Boolean,hideSelected:Boolean,items:{type:Array,default:function(){return[]}},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},noDataText:String,noFilter:Boolean,searchInput:null,selectedItems:{type:Array,default:function(){return[]}}},computed:{parsedItems:function(){var t=this;return this.selectedItems.map((function(e){return t.getValue(e)}))},tileActiveClass:function(){return Object.keys(this.setTextColor(this.color).class||{}).join(" ")},staticNoDataTile:function(){var t={attrs:{role:void 0},on:{mousedown:function(t){return t.preventDefault()}}};return this.$createElement(f["a"],t,[this.genTileContent(this.noDataText)])}},methods:{genAction:function(t,e){var n=this;return this.$createElement(d["a"],[this.$createElement(s["a"],{props:{color:this.color,value:e},on:{input:function(){return n.$emit("select",t)}}})])},genDivider:function(t){return this.$createElement(c["a"],{props:t})},genFilteredText:function(t){if(t=t||"",!this.searchInput||this.noFilter)return Object(b["l"])(t);var e=this.getMaskedCharacters(t),n=e.start,r=e.middle,o=e.end;return"".concat(Object(b["l"])(n)).concat(this.genHighlight(r)).concat(Object(b["l"])(o))},genHeader:function(t){return this.$createElement(l["a"],{props:t},t.header)},genHighlight:function(t){return'<span class="v-list-item__mask">'.concat(Object(b["l"])(t),"</span>")},getMaskedCharacters:function(t){var e=(this.searchInput||"").toString().toLocaleLowerCase(),n=t.toLocaleLowerCase().indexOf(e);if(n<0)return{start:t,middle:"",end:""};var r=t.slice(0,n),o=t.slice(n,n+e.length),i=t.slice(n+e.length);return{start:r,middle:o,end:i}},genTile:function(t){var e=this,n=t.item,r=t.index,o=t.disabled,a=void 0===o?null:o,u=t.value,s=void 0!==u&&u;s||(s=this.hasItem(n)),n===Object(n)&&(a=null!==a?a:this.getDisabled(n));var c={attrs:{"aria-selected":String(s),id:"list-item-".concat(this._uid,"-").concat(r),role:"option"},on:{mousedown:function(t){t.preventDefault()},click:function(){return a||e.$emit("select",n)}},props:{activeClass:this.tileActiveClass,disabled:a,ripple:!0,inputValue:s}};if(!this.$scopedSlots.item)return this.$createElement(f["a"],c,[this.action&&!this.hideSelected&&this.items.length>0?this.genAction(n,s):null,this.genTileContent(n,r)]);var l=this,d=this.$scopedSlots.item({parent:l,item:n,attrs:Object(i["a"])({},c.attrs,{},c.props),on:c.on});return this.needsTile(d)?this.$createElement(f["a"],c,d):d},genTileContent:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var e=this.genFilteredText(this.getText(t));return this.$createElement(h["a"],[this.$createElement(h["c"],{domProps:{innerHTML:e}})])},hasItem:function(t){return this.parsedItems.indexOf(this.getValue(t))>-1},needsTile:function(t){return 1!==t.length||null==t[0].componentOptions||"v-list-item"!==t[0].componentOptions.Ctor.options.name},getDisabled:function(t){return Boolean(Object(b["r"])(t,this.itemDisabled,!1))},getText:function(t){return String(Object(b["r"])(t,this.itemText,t))},getValue:function(t){return Object(b["r"])(t,this.itemValue,this.getText(t))}},render:function(){for(var t=[],e=this.items.length,n=0;n<e;n++){var r=this.items[n];this.hideSelected&&this.hasItem(r)||(null==r?t.push(this.genTile({item:r,index:n})):r.header?t.push(this.genHeader(r)):r.divider?t.push(this.genDivider(r)):t.push(this.genTile({item:r,index:n})))}return t.length||t.push(this.$slots["no-data"]||this.staticNoDataTile),this.$slots["prepend-item"]&&t.unshift(this.$slots["prepend-item"]),this.$slots["append-item"]&&t.push(this.$slots["append-item"]),this.$createElement(p["a"],{staticClass:"v-select-list",class:this.themeClasses,attrs:{role:"listbox",tabindex:-1},props:{dense:this.dense}},t)}}),w=n("c37a"),C=n("8654"),S=n("8547"),k=n("b848"),O=n("2b0e"),_=O["a"].extend({name:"filterable",props:{noDataText:{type:String,default:"$vuetify.noDataText"}}}),A=n("a293"),E=n("d9f7"),T=n("d9bd"),D={closeOnClick:!1,closeOnContentClick:!1,disableKeys:!0,openOnClick:!1,maxHeight:304},I=Object(y["a"])(C["a"],S["a"],k["a"],_);e["a"]=I.extend().extend({name:"v-select",directives:{ClickOutside:A["a"]},props:{appendIcon:{type:String,default:"$dropdown"},attach:{type:null,default:!1},cacheItems:Boolean,chips:Boolean,clearable:Boolean,deletableChips:Boolean,disableLookup:Boolean,eager:Boolean,hideSelected:Boolean,items:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"primary"},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},menuProps:{type:[String,Array,Object],default:function(){return D}},multiple:Boolean,openOnClear:Boolean,returnObject:Boolean,smallChips:Boolean},data:function(){return{cachedItems:this.cacheItems?this.items:[],menuIsBooted:!1,isMenuActive:!1,lastItem:20,lazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,selectedIndex:-1,selectedItems:[],keyboardLookupPrefix:"",keyboardLookupLastTime:0}},computed:{allItems:function(){return this.filterDuplicates(this.cachedItems.concat(this.items))},classes:function(){return Object(i["a"])({},C["a"].options.computed.classes.call(this),{"v-select":!0,"v-select--chips":this.hasChips,"v-select--chips--small":this.smallChips,"v-select--is-menu-active":this.isMenuActive,"v-select--is-multi":this.multiple})},computedItems:function(){return this.allItems},computedOwns:function(){return"list-".concat(this._uid)},computedCounterValue:function(){return this.multiple?this.selectedItems.length:(this.getText(this.selectedItems[0])||"").toString().length},directives:function(){var t=this;return this.isFocused?[{name:"click-outside",value:{handler:this.blur,closeConditional:this.closeConditional,include:function(){return t.getOpenDependentElements()}}}]:void 0},dynamicHeight:function(){return"auto"},hasChips:function(){return this.chips||this.smallChips},hasSlot:function(){return Boolean(this.hasChips||this.$scopedSlots.selection)},isDirty:function(){return this.selectedItems.length>0},listData:function(){var t=this.$vnode&&this.$vnode.context.$options._scopeId,e=t?Object(o["a"])({},t,!0):{};return{attrs:Object(i["a"])({},e,{id:this.computedOwns}),props:{action:this.multiple,color:this.itemColor,dense:this.dense,hideSelected:this.hideSelected,items:this.virtualizedItems,itemDisabled:this.itemDisabled,itemText:this.itemText,itemValue:this.itemValue,noDataText:this.$vuetify.lang.t(this.noDataText),selectedItems:this.selectedItems},on:{select:this.selectItem},scopedSlots:{item:this.$scopedSlots.item}}},staticList:function(){return(this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"])&&Object(T["b"])("assert: staticList should not be called if slots are used"),this.$createElement(x,this.listData)},virtualizedItems:function(){return this.$_menuProps.auto?this.computedItems:this.computedItems.slice(0,this.lastItem)},menuCanShow:function(){return!0},$_menuProps:function(){var t="string"===typeof this.menuProps?this.menuProps.split(","):this.menuProps;return Array.isArray(t)&&(t=t.reduce((function(t,e){return t[e.trim()]=!0,t}),{})),Object(i["a"])({},D,{eager:this.eager,value:this.menuCanShow&&this.isMenuActive,nudgeBottom:t.offsetY?1:0},t)}},watch:{internalValue:function(t){this.initialValue=t,this.setSelectedItems()},isMenuActive:function(t){var e=this;window.setTimeout((function(){return e.onMenuActiveChange(t)}))},items:{immediate:!0,handler:function(t){var e=this;this.cacheItems&&this.$nextTick((function(){e.cachedItems=e.filterDuplicates(e.cachedItems.concat(t))})),this.setSelectedItems()}}},methods:{blur:function(t){C["a"].options.methods.blur.call(this,t),this.isMenuActive=!1,this.isFocused=!1,this.selectedIndex=-1},activateMenu:function(){this.isInteractive&&!this.isMenuActive&&(this.isMenuActive=!0)},clearableCallback:function(){var t=this;this.setValue(this.multiple?[]:void 0),this.setMenuIndex(-1),this.$nextTick((function(){return t.$refs.input&&t.$refs.input.focus()})),this.openOnClear&&(this.isMenuActive=!0)},closeConditional:function(t){return!this.isMenuActive||!this._isDestroyed&&(!this.getContent()||!this.getContent().contains(t.target))&&this.$el&&!this.$el.contains(t.target)&&t.target!==this.$el},filterDuplicates:function(t){for(var e=new Map,n=0;n<t.length;++n){var r=t[n];if(r.header||r.divider)e.set(r,r);else{var o=this.getValue(r);!e.has(o)&&e.set(o,r)}}return Array.from(e.values())},findExistingIndex:function(t){var e=this,n=this.getValue(t);return(this.internalValue||[]).findIndex((function(t){return e.valueComparator(e.getValue(t),n)}))},getContent:function(){return this.$refs.menu&&this.$refs.menu.$refs.content},genChipSelection:function(t,e){var n=this,r=!this.isInteractive||this.getDisabled(t);return this.$createElement(a["a"],{staticClass:"v-chip--select",attrs:{tabindex:-1},props:{close:this.deletableChips&&!r,disabled:r,inputValue:e===this.selectedIndex,small:this.smallChips},on:{click:function(t){r||(t.stopPropagation(),n.selectedIndex=e)},"click:close":function(){return n.onChipInput(t)}},key:JSON.stringify(this.getValue(t))},this.getText(t))},genCommaSelection:function(t,e,n){var r=e===this.selectedIndex&&this.computedColor,o=!this.isInteractive||this.getDisabled(t);return this.$createElement("div",this.setTextColor(r,{staticClass:"v-select__selection v-select__selection--comma",class:{"v-select__selection--disabled":o},key:JSON.stringify(this.getValue(t))}),"".concat(this.getText(t)).concat(n?"":", "))},genDefaultSlot:function(){var t=this.genSelections(),e=this.genInput();return Array.isArray(t)?t.push(e):(t.children=t.children||[],t.children.push(e)),[this.genFieldset(),this.$createElement("div",{staticClass:"v-select__slot",directives:this.directives},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,t,this.suffix?this.genAffix("suffix"):null,this.genClearIcon(),this.genIconSlot(),this.genHiddenInput()]),this.genMenu(),this.genProgress()]},genIcon:function(t,e,n){var r=w["a"].options.methods.genIcon.call(this,t,e,n);return"append"===t&&(r.children[0].data=Object(E["a"])(r.children[0].data,{attrs:{tabindex:r.children[0].componentOptions.listeners&&"-1","aria-hidden":"true","aria-label":void 0}})),r},genInput:function(){var t=C["a"].options.methods.genInput.call(this);return delete t.data.attrs.name,t.data=Object(E["a"])(t.data,{domProps:{value:null},attrs:{readonly:!0,type:"text","aria-readonly":String(this.isReadonly),"aria-activedescendant":Object(b["p"])(this.$refs.menu,"activeTile.id"),autocomplete:Object(b["p"])(t.data,"attrs.autocomplete","off")},on:{keypress:this.onKeyPress}}),t},genHiddenInput:function(){return this.$createElement("input",{domProps:{value:this.lazyValue},attrs:{type:"hidden",name:this.attrs$.name}})},genInputSlot:function(){var t=C["a"].options.methods.genInputSlot.call(this);return t.data.attrs=Object(i["a"])({},t.data.attrs,{role:"button","aria-haspopup":"listbox","aria-expanded":String(this.isMenuActive),"aria-owns":this.computedOwns}),t},genList:function(){return this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"]?this.genListWithSlot():this.staticList},genListWithSlot:function(){var t=this,e=["prepend-item","no-data","append-item"].filter((function(e){return t.$slots[e]})).map((function(e){return t.$createElement("template",{slot:e},t.$slots[e])}));return this.$createElement(x,Object(i["a"])({},this.listData),e)},genMenu:function(){var t=this,e=this.$_menuProps;return e.activator=this.$refs["input-slot"],""===this.attach||!0===this.attach||"attach"===this.attach?e.attach=this.$el:e.attach=this.attach,this.$createElement(u["a"],{attrs:{role:void 0},props:e,on:{input:function(e){t.isMenuActive=e,t.isFocused=e},scroll:this.onScroll},ref:"menu"},[this.genList()])},genSelections:function(){var t,e=this.selectedItems.length,n=new Array(e);t=this.$scopedSlots.selection?this.genSlotSelection:this.hasChips?this.genChipSelection:this.genCommaSelection;while(e--)n[e]=t(this.selectedItems[e],e,e===n.length-1);return this.$createElement("div",{staticClass:"v-select__selections"},n)},genSlotSelection:function(t,e){var n=this;return this.$scopedSlots.selection({attrs:{class:"v-chip--select"},parent:this,item:t,index:e,select:function(t){t.stopPropagation(),n.selectedIndex=e},selected:e===this.selectedIndex,disabled:!this.isInteractive})},getMenuIndex:function(){return this.$refs.menu?this.$refs.menu.listIndex:-1},getDisabled:function(t){return Object(b["r"])(t,this.itemDisabled,!1)},getText:function(t){return Object(b["r"])(t,this.itemText,t)},getValue:function(t){return Object(b["r"])(t,this.itemValue,this.getText(t))},onBlur:function(t){t&&this.$emit("blur",t)},onChipInput:function(t){this.multiple?this.selectItem(t):this.setValue(null),0===this.selectedItems.length?this.isMenuActive=!0:this.isMenuActive=!1,this.selectedIndex=-1},onClick:function(t){this.isInteractive&&(this.isAppendInner(t.target)||(this.isMenuActive=!0),this.isFocused||(this.isFocused=!0,this.$emit("focus")),this.$emit("click",t))},onEscDown:function(t){t.preventDefault(),this.isMenuActive&&(t.stopPropagation(),this.isMenuActive=!1)},onKeyPress:function(t){var e=this;if(!this.multiple&&this.isInteractive&&!this.disableLookup){var n=1e3,r=performance.now();r-this.keyboardLookupLastTime>n&&(this.keyboardLookupPrefix=""),this.keyboardLookupPrefix+=t.key.toLowerCase(),this.keyboardLookupLastTime=r;var o=this.allItems.findIndex((function(t){var n=(e.getText(t)||"").toString();return n.toLowerCase().startsWith(e.keyboardLookupPrefix)})),i=this.allItems[o];-1!==o&&(this.lastItem=Math.max(this.lastItem,o+5),this.setValue(this.returnObject?i:this.getValue(i)),this.$nextTick((function(){return e.$refs.menu.getTiles()})),setTimeout((function(){return e.setMenuIndex(o)})))}},onKeyDown:function(t){var e=this;if(!this.isReadonly||t.keyCode===b["y"].tab){var n=t.keyCode,r=this.$refs.menu;if([b["y"].enter,b["y"].space].includes(n)&&this.activateMenu(),this.$emit("keydown",t),r)return this.isMenuActive&&n!==b["y"].tab&&this.$nextTick((function(){r.changeListIndex(t),e.$emit("update:list-index",r.listIndex)})),!this.isMenuActive&&[b["y"].up,b["y"].down].includes(n)?this.onUpDown(t):n===b["y"].esc?this.onEscDown(t):n===b["y"].tab?this.onTabDown(t):n===b["y"].space?this.onSpaceDown(t):void 0}},onMenuActiveChange:function(t){if(!(this.multiple&&!t||this.getMenuIndex()>-1)){var e=this.$refs.menu;if(e&&this.isDirty)for(var n=0;n<e.tiles.length;n++)if("true"===e.tiles[n].getAttribute("aria-selected")){this.setMenuIndex(n);break}}},onMouseUp:function(t){var e=this;this.hasMouseDown&&3!==t.which&&this.isInteractive&&this.isAppendInner(t.target)&&this.$nextTick((function(){return e.isMenuActive=!e.isMenuActive})),C["a"].options.methods.onMouseUp.call(this,t)},onScroll:function(){var t=this;if(this.isMenuActive){if(this.lastItem>this.computedItems.length)return;var e=this.getContent().scrollHeight-(this.getContent().scrollTop+this.getContent().clientHeight)<200;e&&(this.lastItem+=20)}else requestAnimationFrame((function(){return t.getContent().scrollTop=0}))},onSpaceDown:function(t){t.preventDefault()},onTabDown:function(t){var e=this.$refs.menu;if(e){var n=e.activeTile;!this.multiple&&n&&this.isMenuActive?(t.preventDefault(),t.stopPropagation(),n.click()):this.blur(t)}},onUpDown:function(t){var e=this.$refs.menu;if(e){if(t.preventDefault(),this.multiple)return this.activateMenu();var n=t.keyCode;e.isBooted=!0,window.requestAnimationFrame((function(){e.getTiles(),b["y"].up===n?e.prevTile():e.nextTile(),e.activeTile&&e.activeTile.click()}))}},selectItem:function(t){var e=this;if(this.multiple){var n=(this.internalValue||[]).slice(),r=this.findExistingIndex(t);if(-1!==r?n.splice(r,1):n.push(t),this.setValue(n.map((function(t){return e.returnObject?t:e.getValue(t)}))),this.$nextTick((function(){e.$refs.menu&&e.$refs.menu.updateDimensions()})),!this.multiple)return;var o=this.getMenuIndex();if(this.setMenuIndex(-1),this.hideSelected)return;this.$nextTick((function(){return e.setMenuIndex(o)}))}else this.setValue(this.returnObject?t:this.getValue(t)),this.isMenuActive=!1},setMenuIndex:function(t){this.$refs.menu&&(this.$refs.menu.listIndex=t)},setSelectedItems:function(){var t,e=this,n=[],o=this.multiple&&Array.isArray(this.internalValue)?this.internalValue:[this.internalValue],i=Object(r["a"])(o);try{var a=function(){var r=t.value,o=e.allItems.findIndex((function(t){return e.valueComparator(e.getValue(t),e.getValue(r))}));o>-1&&n.push(e.allItems[o])};for(i.s();!(t=i.n()).done;)a()}catch(u){i.e(u)}finally{i.f()}this.selectedItems=n},setValue:function(t){var e=this.internalValue;this.internalValue=t,t!==e&&this.$emit("change",t)},isAppendInner:function(t){var e=this.$refs["append-inner"];return e&&(e===t||e.contains(t))}}})},ba0d:function(t,e,n){"use strict";n("99af"),n("caad"),n("c975"),n("d81d"),n("a9e3"),n("b680"),n("d3b7"),n("25f0"),n("2532"),n("498a");var r=n("ade3"),o=n("5530"),i=(n("9e29"),n("c37a")),a=n("0789"),u=n("58df"),s=n("297c"),c=n("a293"),l=n("80d2"),f=n("d9bd");e["a"]=Object(u["a"])(i["a"],s["a"]).extend({name:"v-slider",directives:{ClickOutside:c["a"]},mixins:[s["a"]],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:function(){return[]}},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:function(){return{app:null,oldValue:null,keyPressed:0,isFocused:!1,isActive:!1,noClick:!1}},computed:{classes:function(){return Object(o["a"])({},i["a"].options.computed.classes.call(this),{"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel})},internalValue:{get:function(){return this.lazyValue},set:function(t){t=isNaN(t)?this.minValue:t;var e=this.roundValue(Math.min(Math.max(t,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition:function(){return this.keyPressed>=2?"none":""},minValue:function(){return parseFloat(this.min)},maxValue:function(){return parseFloat(this.max)},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,e=this.vertical?"bottom":"left",n=this.vertical?"top":"right",o=this.vertical?"height":"width",i=this.$vuetify.rtl?"auto":"0",a=this.$vuetify.rtl?"0":"auto",u=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(r["a"])(t,e,i),Object(r["a"])(t,n,a),Object(r["a"])(t,o,u),t},trackStyles:function(){var t,e=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",n=this.vertical?"height":"width",o="0px",i=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(r["a"])(t,e,o),Object(r["a"])(t,n,i),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var e=parseFloat(t);e>this.internalValue&&this.$emit("input",e)},max:function(t){var e=parseFloat(t);e<this.internalValue&&this.$emit("input",e)},value:{handler:function(t){this.internalValue=t}}},beforeMount:function(){this.internalValue=this.value},mounted:function(){this.app=document.querySelector("[data-app]")||Object(f["c"])("Missing v-app or a non-body wrapping element with the [data-app] attribute",this)},methods:{genDefaultSlot:function(){var t=[this.genLabel()],e=this.genSlider();return this.inverseLabel?t.unshift(e):t.push(e),t.push(this.genProgress()),t},genSlider:function(){return this.$createElement("div",{class:Object(o["a"])({"v-slider":!0,"v-slider--horizontal":!this.vertical,"v-slider--vertical":this.vertical,"v-slider--focused":this.isFocused,"v-slider--active":this.isActive,"v-slider--disabled":this.isDisabled,"v-slider--readonly":this.isReadonly},this.themeClasses),directives:[{name:"click-outside",value:this.onBlur}],on:{click:this.onSliderClick}},this.genChildren())},genChildren:function(){return[this.genInput(),this.genTrackContainer(),this.genSteps(),this.genThumbContainer(this.internalValue,this.inputWidth,this.isActive,this.isFocused,this.onThumbMouseDown,this.onFocus,this.onBlur)]},genInput:function(){return this.$createElement("input",{attrs:Object(o["a"])({value:this.internalValue,id:this.computedId,disabled:!0,readonly:!0,tabindex:-1},this.$attrs)})},genTrackContainer:function(){var t=[this.$createElement("div",this.setBackgroundColor(this.computedTrackColor,{staticClass:"v-slider__track-background",style:this.trackStyles})),this.$createElement("div",this.setBackgroundColor(this.computedTrackFillColor,{staticClass:"v-slider__track-fill",style:this.trackFillStyles}))];return this.$createElement("div",{staticClass:"v-slider__track-container",ref:"track"},t)},genSteps:function(){var t=this;if(!this.step||!this.showTicks)return null;var e=parseFloat(this.tickSize),n=Object(l["h"])(this.numTicks+1),o=this.vertical?"bottom":this.$vuetify.rtl?"right":"left",i=this.vertical?this.$vuetify.rtl?"left":"right":"top";this.vertical&&n.reverse();var a=n.map((function(n){var a,u=[];t.tickLabels[n]&&u.push(t.$createElement("div",{staticClass:"v-slider__tick-label"},t.tickLabels[n]));var s=n*(100/t.numTicks),c=t.$vuetify.rtl?100-t.inputWidth<s:s<t.inputWidth;return t.$createElement("span",{key:n,staticClass:"v-slider__tick",class:{"v-slider__tick--filled":c},style:(a={width:"".concat(e,"px"),height:"".concat(e,"px")},Object(r["a"])(a,o,"calc(".concat(s,"% - ").concat(e/2,"px)")),Object(r["a"])(a,i,"calc(50% - ".concat(e/2,"px)")),a)},u)}));return this.$createElement("div",{staticClass:"v-slider__ticks-container",class:{"v-slider__ticks-container--always-show":"always"===this.ticks||this.tickLabels.length>0}},a)},genThumbContainer:function(t,e,n,r,i,a,u){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"thumb",c=[this.genThumb()],l=this.genThumbLabelContent(t);return this.showThumbLabel&&c.push(this.genThumbLabel(l)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:s,key:s,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":n,"v-slider__thumb-container--focused":r,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:Object(o["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:a,blur:u,keydown:this.onKeyDown,keyup:this.onKeyUp,touchstart:i,mousedown:i}}),c)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var e=Object(l["g"])(this.thumbSize),n=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(a["e"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:n}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var e=this.vertical?"top":"left",n=this.$vuetify.rtl?100-t:t;return n=this.vertical?100-n:n,Object(r["a"])({transition:this.trackTransition},e,"".concat(n,"%"))},onThumbMouseDown:function(t){t.preventDefault(),this.oldValue=this.internalValue,this.keyPressed=2,this.isActive=!0;var e=!l["C"]||{passive:!0,capture:!0},n=!!l["C"]&&{passive:!0};"touches"in t?(this.app.addEventListener("touchmove",this.onMouseMove,n),Object(l["a"])(this.app,"touchend",this.onSliderMouseUp,e)):(this.app.addEventListener("mousemove",this.onMouseMove,n),Object(l["a"])(this.app,"mouseup",this.onSliderMouseUp,e)),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),this.keyPressed=0;var e=!!l["C"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(l["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){var e=this.parseMouseMove(t),n=e.value;this.internalValue=n},onKeyDown:function(t){if(this.isInteractive){var e=this.parseKeyDown(t,this.internalValue);null==e||e<this.minValue||e>this.maxValue||(this.internalValue=e,this.$emit("change",e))}},onKeyUp:function(){this.keyPressed=0},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var e=this.$refs.thumb;e.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var e=this.vertical?"top":"left",n=this.vertical?"height":"width",r=this.vertical?"clientY":"clientX",o=this.$refs.track.getBoundingClientRect(),i=o[e],a=o[n],u="touches"in t?t.touches[0][r]:t[r],s=Math.min(Math.max((u-i)/a,0),1)||0;this.vertical&&(s=1-s),this.$vuetify.rtl&&(s=1-s);var c=u>=i&&u<=i+a,l=parseFloat(this.min)+s*(this.maxValue-this.minValue);return{value:l,isInsideTrack:c}},parseKeyDown:function(t,e){if(this.isInteractive){var n=l["y"].pageup,r=l["y"].pagedown,o=l["y"].end,i=l["y"].home,a=l["y"].left,u=l["y"].right,s=l["y"].down,c=l["y"].up;if([n,r,o,i,a,u,s,c].includes(t.keyCode)){t.preventDefault();var f=this.stepNumeric||1,d=(this.maxValue-this.minValue)/f;if([a,u,s,c].includes(t.keyCode)){this.keyPressed+=1;var h=this.$vuetify.rtl?[a,c]:[u,c],p=h.includes(t.keyCode)?1:-1,m=t.shiftKey?3:t.ctrlKey?2:1;e+=p*f*m}else if(t.keyCode===i)e=this.minValue;else if(t.keyCode===o)e=this.maxValue;else{var g=t.keyCode===r?1:-1;e-=g*f*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),n=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,r=this.minValue%this.stepNumeric,o=Math.round((t-r)/this.stepNumeric)*this.stepNumeric+r;return parseFloat(Math.min(o,this.maxValue).toFixed(n))}}})},ba87:function(t,e,n){"use strict";n("a9e3");var r=n("5530"),o=(n("1b2c"),n("a9ad")),i=n("7560"),a=n("58df"),u=n("80d2"),s=Object(a["a"])(i["a"]).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render:function(t,e){var n=e.children,a=e.listeners,s=e.props,c={staticClass:"v-label",class:Object(r["a"])({"v-label--active":s.value,"v-label--is-disabled":s.disabled},Object(i["b"])(e)),attrs:{for:s.for,"aria-hidden":!s.for},on:a,style:{left:Object(u["g"])(s.left),right:Object(u["g"])(s.right),position:s.absolute?"absolute":"relative"},ref:"label"};return t("label",o["a"].options.methods.setTextColor(s.focused&&s.color,c),n)}});e["a"]=s},bb18:function(t,e,n){},bb2f:function(t,e,n){var r=n("d039");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc3a:function(t,e,n){t.exports=n("cee4")},bc54:function(t,e,n){n("7c4f")},bd0c:function(t,e,n){},be7f:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return function(e){return n(e)===t}},o=function(t){return function(e){return typeof e===t}},i=function(t){return function(e){return t===e}},a=r("string"),u=r("array"),s=i(null),c=o("boolean"),l=o("function"),f=function(t){var e=t.getParam("link_assume_external_targets",!1);return c(e)&&e?1:!a(e)||"http"!==e&&"https"!==e?0:e},d=function(t){return t.getParam("link_context_toolbar",!1,"boolean")},h=function(t){return t.getParam("link_list")},p=function(t){return t.getParam("default_link_target")},m=function(t){return t.getParam("target_list",!0)},g=function(t){return t.getParam("rel_list",[],"array")},v=function(t){return t.getParam("link_class_list",[],"array")},b=function(t){return t.getParam("link_title",!0,"boolean")},y=function(t){return t.getParam("allow_unsafe_link_target",!1,"boolean")},x=function(t){return t.getParam("link_quicklink",!1,"boolean")},w=function(t){return t.getParam("link_default_protocol","http","string")},C=function(){},S=function(t){return function(){return t}},k=S(!1),O=S(!0),_=function(){return A},A=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:k,isSome:k,isNone:O,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:S(null),getOrUndefined:S(void 0),or:n,orThunk:e,map:_,each:C,bind:_,exists:k,forall:O,filter:_,equals:t,equals_:t,toArray:function(){return[]},toString:S("none()")};return r}(),E=function(t){var e=S(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:O,isNone:k,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return E(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:A},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(k,(function(e){return n(t,e)}))}};return o},T=function(t){return null===t||void 0===t?A:E(t)},D={some:E,none:_,from:T},I=Array.prototype.indexOf,B=Array.prototype.push,L=function(t,e){return I.call(t,e)},N=function(t,e){return L(t,e)>-1},P=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},M=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},j=function(t,e,n){return M(t,(function(t){n=e(n,t)})),n},R=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);B.apply(e,t[n])}return e},$=function(t,e){return R(P(t,e))},F=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return D.none()},V=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},H=function(t,e){return t?D.some(e):D.none()},z=tinymce.util.Tools.resolve("tinymce.util.Tools"),U=function(t){return a(t.value)?t.value:""},W=function(t){return a(t.text)?t.text:a(t.title)?t.title:""},q=function(t,e){var n=[];return z.each(t,(function(t){var r=W(t);if(void 0!==t.menu){var o=q(t.menu,e);n.push({text:r,items:o})}else{var i=e(t);n.push({text:r,value:i})}})),n},G=function(t){return void 0===t&&(t=U),function(e){return D.from(e).map((function(e){return q(e,t)}))}},Y=function(t){return G(U)(t)},X=function(t,e){return function(n){return{name:t,type:"listbox",label:e,items:n}}},K={sanitize:Y,sanitizeWith:G,createUi:X,getValue:U},Z=function(){return Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Z.apply(this,arguments)},J=Object.keys,Q=Object.hasOwnProperty,tt=function(t,e){for(var n=J(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},et=function(t){return function(e,n){t[n]=e}},nt=function(t,e,n,r){var o={};return tt(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},rt=function(t,e){var n={};return nt(t,e,et(n),C),n},ot=function(t,e){return Q.call(t,e)},it=function(t,e){return ot(t,e)&&void 0!==t[e]&&null!==t[e]},at=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),ut=function(t){return t&&"a"===t.nodeName.toLowerCase()},st=function(t){return ut(t)&&!!ft(t)},ct=function(t,e){if(t.collapsed)return[];var n=t.cloneContents(),r=new at(n.firstChild,n),o=[],i=n.firstChild;do{e(i)&&o.push(i)}while(i=r.next());return o},lt=function(t){return/^\w+:/i.test(t)},ft=function(t){var e=t.getAttribute("data-mce-href");return e||t.getAttribute("href")},dt=function(t,e){var n=["noopener"],r=t?t.split(/\s+/):[],o=function(t){return z.trim(t.sort().join(" "))},i=function(t){return t=a(t),t.length>0?t.concat(n):n},a=function(t){return t.filter((function(t){return-1===z.inArray(n,t)}))},u=e?i(r):a(r);return u.length>0?o(u):""},ht=function(t){return t.replace(/\uFEFF/g,"")},pt=function(t,e){return e=e||t.selection.getNode(),yt(e)?t.dom.select("a[href]",e)[0]:t.dom.getParent(e,"a[href]")},mt=function(t,e){var n=e?e.innerText||e.textContent:t.getContent({format:"text"});return ht(n)},gt=function(t){return z.grep(t,st).length>0},vt=function(t){return ct(t,st).length>0},bt=function(t){var e=t.schema.getTextInlineElements(),n=function(t){return 1===t.nodeType&&!ut(t)&&!ot(e,t.nodeName.toLowerCase())},r=ct(t.selection.getRng(),n);return 0===r.length},yt=function(t){return t&&"FIGURE"===t.nodeName&&/\bimage\b/i.test(t.className)},xt=function(t){return j(["title","rel","class","target"],(function(e,n){return t[n].each((function(t){e[n]=t.length>0?t:null})),e}),{href:t.href})},wt=function(t,e){return"http"!==e&&"https"!==e||lt(t)?t:e+"://"+t},Ct=function(t,e){var n=Z({},e);if(!(g(t).length>0)&&!1===y(t)){var r=dt(n.rel,"_blank"===n.target);n.rel=r||null}return D.from(n.target).isNone()&&!1===m(t)&&(n.target=p(t)),n.href=wt(n.href,f(t)),n},St=function(t,e,n,r){n.each((function(t){e.hasOwnProperty("innerText")?e.innerText=t:e.textContent=t})),t.dom.setAttribs(e,r),t.selection.select(e)},kt=function(t,e,n,r){yt(e)?Bt(t,e,r):n.fold((function(){t.execCommand("mceInsertLink",!1,r)}),(function(e){t.insertContent(t.dom.createHTML("a",r,t.dom.encode(e)))}))},Ot=function(t,e,n){var r=t.selection.getNode(),o=pt(t,r),i=Ct(t,xt(n));t.undoManager.transact((function(){n.href===e.href&&e.attach(),o?(t.focus(),St(t,o,n.text,i)):kt(t,r,n.text,i)}))},_t=function(t){var e=t.dom,n=t.selection,r=n.getBookmark(),o=n.getRng().cloneRange(),i=e.getParent(o.startContainer,"a[href]",t.getBody()),a=e.getParent(o.endContainer,"a[href]",t.getBody());i&&o.setStartBefore(i),a&&o.setEndAfter(a),n.setRng(o),t.execCommand("unlink"),n.moveToBookmark(r)},At=function(t){t.undoManager.transact((function(){var e=t.selection.getNode();yt(e)?It(t,e):_t(t),t.focus()}))},Et=function(t){var e=t.class,n=t.href,r=t.rel,o=t.target,i=t.text,a=t.title;return rt({class:e.getOrNull(),href:n,rel:r.getOrNull(),target:o.getOrNull(),text:i.getOrNull(),title:a.getOrNull()},(function(t,e){return!1===s(t)}))},Tt=function(t,e,n){t.hasPlugin("rtc",!0)?t.execCommand("createlink",!1,Et(n)):Ot(t,e,n)},Dt=function(t){t.hasPlugin("rtc",!0)?t.execCommand("unlink"):At(t)},It=function(t,e){var n=t.dom.select("img",e)[0];if(n){var r=t.dom.getParents(n,"a[href]",e)[0];r&&(r.parentNode.insertBefore(n,r),t.dom.remove(r))}},Bt=function(t,e,n){var r=t.dom.select("img",e)[0];if(r){var o=t.dom.create("a",n);r.parentNode.insertBefore(o,r),o.appendChild(r)}},Lt=function(t){return it(t,"items")},Nt=function(t,e){return F(e,(function(e){return Lt(e)?Nt(t,e.items):H(e.value===t,e)}))},Pt=function(t,e,n,r){var o=r[e],i=t.length>0;return void 0!==o?Nt(o,n).map((function(e){return{url:{value:e.value,meta:{text:i?t:e.text,attach:C}},text:i?t:e.text}})):D.none()},Mt=function(t,e){return"link"===e?t.link:"anchor"===e?t.anchor:D.none()},jt=function(t,e){var n={text:t.text,title:t.title},r=function(t){return H(n.title.length<=0,D.from(t.meta.title).getOr(""))},o=function(t){return H(n.text.length<=0,D.from(t.meta.text).getOr(t.value))},i=function(t){var e=o(t.url),n=r(t.url);return e.isSome()||n.isSome()?D.some(Z(Z({},e.map((function(t){return{text:t}})).getOr({})),n.map((function(t){return{title:t}})).getOr({}))):D.none()},a=function(t,r){var o=Mt(e,r.name).getOr([]);return Pt(n.text,r.name,o,t)},u=function(t,e){var r=e.name;return"url"===r?i(t()):N(["anchor","link"],r)?a(t(),e):"text"===r||"title"===r?(n[r]=t()[r],D.none()):D.none()};return{onChange:u}},Rt={init:jt,getDelta:Pt},$t=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ft=tinymce.util.Tools.resolve("tinymce.util.Promise"),Vt=function(t,e,n){var r=t.selection.getRng();$t.setEditorTimeout(t,(function(){t.windowManager.confirm(e,(function(e){t.selection.setRng(r),n(e)}))}))},Ht=function(t){var e=t.href,n=e.indexOf("@")>0&&-1===e.indexOf("/")&&-1===e.indexOf("mailto:");return n?D.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(t){return Z(Z({},t),{href:"mailto:"+e})}}):D.none()},zt=function(t,e){return function(n){var r=n.href,o=1===t&&!lt(r)||0===t&&/^\s*www(\.|\d\.)/i.test(r);return o?D.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+e+":// prefix?",preprocess:function(t){return Z(Z({},t),{href:e+"://"+r})}}):D.none()}},Ut=function(t,e){return F([Ht,zt(f(t),w(t))],(function(t){return t(e)})).fold((function(){return Ft.resolve(e)}),(function(n){return new Ft((function(r){Vt(t,n.message,(function(t){r(t?n.preprocess(e):e)}))}))}))},Wt={preprocess:Ut},qt=function(t){var e=t.dom.select("a:not([href])"),n=$(e,(function(t){var e=t.name||t.id;return e?[{text:e,value:"#"+e}]:[]}));return n.length>0?D.some([{text:"None",value:""}].concat(n)):D.none()},Gt={getAnchors:qt},Yt=function(t){var e=v(t);return e.length>0?K.sanitize(e):D.none()},Xt={getClasses:Yt},Kt=tinymce.util.Tools.resolve("tinymce.util.XHR"),Zt=function(t){try{return D.some(JSON.parse(t))}catch(e){return D.none()}},Jt=function(t){var e=function(e){return t.convertURL(e.value||e.url,"href")},n=h(t);return new Ft((function(t){a(n)?Kt.send({url:n,success:function(e){return t(Zt(e))},error:function(e){return t(D.none())}}):l(n)?n((function(e){return t(D.some(e))})):t(D.from(n))})).then((function(t){return t.bind(K.sanitizeWith(e)).map((function(t){if(t.length>0){var e=[{text:"None",value:""}];return e.concat(t)}return t}))}))},Qt={getLinks:Jt},te=function(t,e){var n=g(t);if(n.length>0){var r=e.is("_blank"),o=!1===y(t),i=function(t){return dt(K.getValue(t),r)},a=o?K.sanitizeWith(i):K.sanitize;return a(n)}return D.none()},ee={getRels:te},ne=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],re=function(t){var e=m(t);return u(e)?K.sanitize(e).orThunk((function(){return D.some(ne)})):!1===e?D.none():D.some(ne)},oe={getTargets:re},ie=function(t,e,n){var r=t.getAttrib(e,n);return null!==r&&r.length>0?D.some(r):D.none()},ae=function(t,e){var n=t.dom,r=bt(t),o=r?D.some(mt(t.selection,e)):D.none(),i=e?D.some(n.getAttrib(e,"href")):D.none(),a=e?D.from(n.getAttrib(e,"target")):D.none(),u=ie(n,e,"rel"),s=ie(n,e,"class"),c=ie(n,e,"title");return{url:i,text:o,title:c,target:a,rel:u,linkClass:s}},ue=function(t,e){return Qt.getLinks(t).then((function(n){var r=ae(t,e);return{anchor:r,catalogs:{targets:oe.getTargets(t),rels:ee.getRels(t,r.target),classes:Xt.getClasses(t),anchor:Gt.getAnchors(t),link:n},optNode:D.from(e),flags:{titleEnabled:b(t)}}}))},se={collect:ue},ce=function(t,e){return function(n){var r=n.getData();if(!r.url.value)return Dt(t),void n.close();var o=function(t){return D.from(r[t]).filter((function(n){return!e.anchor[t].is(n)}))},i={href:r.url.value,text:o("text"),target:o("target"),rel:o("rel"),class:o("linkClass"),title:o("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:function(){}};Wt.preprocess(t,i).then((function(e){Tt(t,a,e)})),n.close()}},le=function(t){var e=pt(t);return se.collect(t,e)},fe=function(t,e){var n=t.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(e).getOr(""),linkClass:n.linkClass.getOr("")}},de=function(t,e,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],o=t.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),i=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=D.from(p(n)),u=fe(t,a),s=t.catalogs,c=Rt.init(u,s),l={type:"panel",items:R([r,o,i,V([s.anchor.map(K.createUi("anchor","Anchors")),s.rels.map(K.createUi("rel","Rel")),s.targets.map(K.createUi("target","Open link in...")),s.link.map(K.createUi("link","Link list")),s.classes.map(K.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:l,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:u,onChange:function(t,e){var n=e.name;c.onChange(t.getData,{name:n}).each((function(e){t.setData(e)}))},onSubmit:e}},he=function(t){var e=le(t);e.then((function(e){var n=ce(t,e);return de(e,n,t)})).then((function(e){t.windowManager.open(e)}))},pe=function(t,e){document.body.appendChild(t),t.dispatchEvent(e),document.body.removeChild(t)},me=function(t){var e=document.createElement("a");e.target="_blank",e.href=t,e.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),pe(e,n)},ge=function(t,e){return t.dom.getParent(e,"a[href]")},ve=function(t){return ge(t,t.selection.getStart())},be=function(t){return!0===t.altKey&&!1===t.shiftKey&&!1===t.ctrlKey&&!1===t.metaKey},ye=function(t,e){if(e){var n=ft(e);if(/^#/.test(n)){var r=t.$(n);r.length&&t.selection.scrollIntoView(r[0],!0)}else me(e.href)}},xe=function(t){return function(){he(t)}},we=function(t){return function(){ye(t,ve(t))}},Ce=function(t){t.on("click",(function(n){var r=ge(t,n.target);r&&e.metaKeyPressed(n)&&(n.preventDefault(),ye(t,r))})),t.on("keydown",(function(e){var n=ve(t);n&&13===e.keyCode&&be(e)&&(e.preventDefault(),ye(t,n))}))},Se=function(t,e){return t.on("NodeChange",e),function(){return t.off("NodeChange",e)}},ke=function(t){return function(e){return Se(t,(function(){e.setActive(!t.mode.isReadOnly()&&null!==pt(t,t.selection.getNode()))}))}},Oe=function(t){return function(e){var n=function(){return e.setDisabled(null===pt(t,t.selection.getNode()))};return n(),Se(t,n)}},_e=function(t){return function(e){var n=function(e){return gt(e)||vt(t.selection.getRng())},r=t.dom.getParents(t.selection.getStart());return e.setDisabled(!n(r)),Se(t,(function(t){return e.setDisabled(!n(t.parents))}))}},Ae=function(t){t.addCommand("mceLink",(function(){x(t)?t.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):xe(t)()}))},Ee=function(t){t.addShortcut("Meta+K","",(function(){t.execCommand("mceLink")}))},Te=function(t){t.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:xe(t),onSetup:ke(t)}),t.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:we(t),onSetup:Oe(t)}),t.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Dt(t)},onSetup:_e(t)})},De=function(t){t.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:we(t),onSetup:Oe(t)}),t.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:xe(t)}),t.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Dt(t)},onSetup:_e(t)})},Ie=function(t){var e="link unlink openlink",n="link";t.ui.registry.addContextMenu("link",{update:function(r){return gt(t.dom.getParents(r,"a"))?e:n}})},Be=function(t){var e=function(t){t.selection.collapse(!1)},n=function(e){var n=t.selection.getNode();return e.setDisabled(!pt(t,n)),function(){}};t.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:ke(t)},label:"Link",predicate:function(e){return!!pt(t,e)&&d(t)},initValue:function(){var e=pt(t);return e?ft(e):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(e){var n=t.selection.getNode();return e.setActive(!!pt(t,n)),ke(t)(e)},onAction:function(n){var r=pt(t),o=n.getValue();if(r)t.undoManager.transact((function(){t.dom.setAttrib(r,"href",o),e(t),n.hide()}));else{var i={href:o,attach:function(){}},a=bt(t),u=a?D.some(mt(t.selection,r)).filter((function(t){return t.length>0})).or(D.from(o)):D.none();Tt(t,i,{href:o,text:u,title:D.none(),rel:D.none(),target:D.none(),class:D.none()}),n.hide()}}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(e){Dt(t),e.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(e){we(t)(),e.hide()}}]})};function Le(){t.add("link",(function(t){Te(t),De(t),Ie(t),Be(t),Ce(t),Ae(t),Ee(t)}))}Le()})()},bee2:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return o}))},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c19f:function(t,e,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("621a"),a=n("2626"),u="ArrayBuffer",s=i[u],c=o[u];r({global:!0,forced:c!==s},{ArrayBuffer:s}),a(u)},c1ac:function(t,e,n){"use strict";var r=n("ebb5"),o=n("b727").filter,i=n("4840"),a=r.aTypedArray,u=r.aTypedArrayConstructor,s=r.exportTypedArrayMethod;s("filter",(function(t){var e=o(a(this),t,arguments.length>1?arguments[1]:void 0),n=i(this,this.constructor),r=0,s=e.length,c=new(u(n))(s);while(s>r)c[r]=e[r++];return c}))},c345:function(t,e,n){"use strict";var r=n("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c37a:function(t,e,n){"use strict";n("99af"),n("4de4"),n("d81d"),n("a9e3"),n("ac1f"),n("1276");var r=n("5530"),o=(n("d191"),n("9d26")),i=n("ba87"),a=(n("8ff2"),n("a9ad")),u=n("7560"),s=n("58df"),c=n("80d2"),l=Object(s["a"])(a["a"],u["a"]).extend({name:"v-messages",props:{value:{type:Array,default:function(){return[]}}},methods:{genChildren:function(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage:function(t,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},Object(c["s"])(this,"default",{message:t,key:e})||[t])}},render:function(t){return t("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),f=l,d=n("7e2b"),h=n("38cb"),p=n("d9f7"),m=Object(s["a"])(d["a"],h["a"]),g=m.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data:function(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes:function(){return Object(r["a"])({"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":!1!==this.loading&&null!=this.loading,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense},this.themeClasses)},computedId:function(){return this.id||"input-".concat(this._uid)},hasDetails:function(){return this.messagesToDisplay.length>0},hasHint:function(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel:function(){return!(!this.$slots.label&&!this.label)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit(this.$_modelEvent,t)}},isDirty:function(){return!!this.lazyValue},isLabelActive:function(){return this.isDirty},messagesToDisplay:function(){var t=this;return this.hasHint?[this.hint]:this.hasMessages?this.validations.map((function(e){if("string"===typeof e)return e;var n=e(t.internalValue);return"string"===typeof n?n:""})).filter((function(t){return""!==t})):[]},showDetails:function(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value:function(t){this.lazyValue=t}},beforeCreate:function(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent:function(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl:function(){return this.$createElement("div",{staticClass:"v-input__control"},[this.genInputSlot(),this.genMessages()])},genDefaultSlot:function(){return[this.genLabel(),this.$slots.default]},genIcon:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this["".concat(t,"Icon")],a="click:".concat(Object(c["x"])(t)),u=!(!this.listeners$[a]&&!e),s=Object(p["a"])({attrs:{"aria-label":u?Object(c["x"])(t).split("-")[0]+" icon":void 0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light},on:u?{click:function(t){t.preventDefault(),t.stopPropagation(),n.$emit(a,t),e&&e(t)},mouseup:function(t){t.preventDefault(),t.stopPropagation()}}:void 0},r);return this.$createElement("div",{staticClass:"v-input__icon",class:t?"v-input__icon--".concat(Object(c["x"])(t)):void 0},[this.$createElement(o["a"],s,i)])},genInputSlot:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(c["g"])(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel:function(){return this.hasLabel?this.$createElement(i["a"],{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},this.$slots.label||this.label):null},genMessages:function(){var t=this;return this.showDetails?this.$createElement(f,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:function(e){return Object(c["s"])(t,"message",e)}}}):null},genSlot:function(t,e,n){if(!n.length)return null;var r="".concat(t,"-").concat(e);return this.$createElement("div",{staticClass:"v-input__".concat(r),ref:r},n)},genPrependSlot:function(){var t=[];return this.$slots.prepend?t.push(this.$slots.prepend):this.prependIcon&&t.push(this.genIcon("prepend")),this.genSlot("prepend","outer",t)},genAppendSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","outer",t)},onClick:function(t){this.$emit("click",t)},onMouseDown:function(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp:function(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render:function(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}});e["a"]=g},c3f0:function(t,e,n){"use strict";n("4160"),n("159b");var r=n("80d2"),o=function(t){var e=t.touchstartX,n=t.touchendX,r=t.touchstartY,o=t.touchendY,i=.5,a=16;t.offsetX=n-e,t.offsetY=o-r,Math.abs(t.offsetY)<i*Math.abs(t.offsetX)&&(t.left&&n<e-a&&t.left(t),t.right&&n>e+a&&t.right(t)),Math.abs(t.offsetX)<i*Math.abs(t.offsetY)&&(t.up&&o<r-a&&t.up(t),t.down&&o>r+a&&t.down(t))};function i(t,e){var n=t.changedTouches[0];e.touchstartX=n.clientX,e.touchstartY=n.clientY,e.start&&e.start(Object.assign(t,e))}function a(t,e){var n=t.changedTouches[0];e.touchendX=n.clientX,e.touchendY=n.clientY,e.end&&e.end(Object.assign(t,e)),o(e)}function u(t,e){var n=t.changedTouches[0];e.touchmoveX=n.clientX,e.touchmoveY=n.clientY,e.move&&e.move(Object.assign(t,e))}function s(t){var e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:function(t){return i(t,e)},touchend:function(t){return a(t,e)},touchmove:function(t){return u(t,e)}}}function c(t,e,n){var o=e.value,i=o.parent?t.parentElement:t,a=o.options||{passive:!0};if(i){var u=s(e.value);i._touchHandlers=Object(i._touchHandlers),i._touchHandlers[n.context._uid]=u,Object(r["z"])(u).forEach((function(t){i.addEventListener(t,u[t],a)}))}}function l(t,e,n){var o=e.value.parent?t.parentElement:t;if(o&&o._touchHandlers){var i=o._touchHandlers[n.context._uid];Object(r["z"])(i).forEach((function(t){o.removeEventListener(t,i[t])})),delete o._touchHandlers[n.context._uid]}}var f={inserted:c,unbind:l};e["a"]=f},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e){t.exports=!1},c4a9:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=function(){return"undefined"!==typeof window?window:t},o=function(){var t=r();return t&&t.tinymce?t.tinymce:null}}).call(this,n("c8ba"))},c532:function(t,e,n){"use strict";var r=n("1d2b"),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return"undefined"===typeof t}function u(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function s(t){return"[object ArrayBuffer]"===o.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function l(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function f(t){return"string"===typeof t}function d(t){return"number"===typeof t}function h(t){return null!==t&&"object"===typeof t}function p(t){return"[object Date]"===o.call(t)}function m(t){return"[object File]"===o.call(t)}function g(t){return"[object Blob]"===o.call(t)}function v(t){return"[object Function]"===o.call(t)}function b(t){return h(t)&&v(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function S(){var t={};function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=S(t[n],e):t[n]=e}for(var n=0,r=arguments.length;n<r;n++)C(arguments[n],e);return t}function k(){var t={};function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=k(t[n],e):t[n]="object"===typeof e?k({},e):e}for(var n=0,r=arguments.length;n<r;n++)C(arguments[n],e);return t}function O(t,e,n){return C(e,(function(e,o){t[o]=n&&"function"===typeof e?r(e,n):e})),t}t.exports={isArray:i,isArrayBuffer:s,isBuffer:u,isFormData:c,isArrayBufferView:l,isString:f,isNumber:d,isObject:h,isUndefined:a,isDate:p,isFile:m,isBlob:g,isFunction:v,isStream:b,isURLSearchParams:y,isStandardBrowserEnv:w,forEach:C,merge:S,deepMerge:k,extend:O,trim:x}},c671:function(t,e,n){"use strict";var r=n("9d65"),o=n("4e82"),i=n("c3f0"),a=n("80d2"),u=n("58df"),s=Object(u["a"])(r["a"],Object(o["a"])("windowGroup","v-window-item","v-window")),c=s.extend().extend().extend({name:"v-window-item",directives:{Touch:i["a"]},props:{disabled:Boolean,reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},value:{required:!1}},data:function(){return{isActive:!1,inTransition:!1}},computed:{classes:function(){return this.groupClasses},computedTransition:function(){return this.windowGroup.internalReverse?"undefined"!==typeof this.reverseTransition?this.reverseTransition||"":this.windowGroup.computedTransition:"undefined"!==typeof this.transition?this.transition||"":this.windowGroup.computedTransition}},methods:{genDefaultSlot:function(){return this.$slots.default},genWindowItem:function(){return this.$createElement("div",{staticClass:"v-window-item",class:this.classes,directives:[{name:"show",value:this.isActive}],on:this.$listeners},this.genDefaultSlot())},onAfterTransition:function(){this.inTransition&&(this.inTransition=!1,this.windowGroup.transitionCount>0&&(this.windowGroup.transitionCount--,0===this.windowGroup.transitionCount&&(this.windowGroup.transitionHeight=void 0)))},onBeforeTransition:function(){this.inTransition||(this.inTransition=!0,0===this.windowGroup.transitionCount&&(this.windowGroup.transitionHeight=Object(a["g"])(this.windowGroup.$el.clientHeight)),this.windowGroup.transitionCount++)},onTransitionCancelled:function(){this.onAfterTransition()},onEnter:function(t){var e=this;this.inTransition&&this.$nextTick((function(){e.computedTransition&&e.inTransition&&(e.windowGroup.transitionHeight=Object(a["g"])(t.clientHeight))}))}},render:function(t){var e=this;return t("transition",{props:{name:this.computedTransition},on:{beforeEnter:this.onBeforeTransition,afterEnter:this.onAfterTransition,enterCancelled:this.onTransitionCancelled,beforeLeave:this.onBeforeTransition,afterLeave:this.onAfterTransition,leaveCancelled:this.onTransitionCancelled,enter:this.onEnter}},this.showLazyContent((function(){return[e.genWindowItem()]})))}});e["a"]=c.extend({name:"v-tab-item",props:{id:String},methods:{genWindowItem:function(){var t=c.options.methods.genWindowItem.call(this);return t.data.domProps=t.data.domProps||{},t.data.domProps.id=this.id||this.value,t}}})},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},c740:function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),a=n("ae40"),u="findIndex",s=!0,c=a(u);u in[]&&Array(1)[u]((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!c},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(u)},c7cd:function(t,e,n){"use strict";var r=n("23e7"),o=n("857a"),i=n("af03");r({target:"String",proto:!0,forced:i("fixed")},{fixed:function(){return o(this,"tt","","")}})},c865:function(t,e,n){"use strict";var r=n("5530"),o=n("0789"),i=n("9d26"),a=n("a9ad"),u=n("3206"),s=n("5607"),c=n("80d2"),l=n("58df"),f=Object(l["a"])(a["a"],Object(u["a"])("expansionPanel","v-expansion-panel-header","v-expansion-panel"));e["a"]=f.extend().extend({name:"v-expansion-panel-header",directives:{ripple:s["a"]},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:function(){return{hasMousedown:!1}},computed:{classes:function(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive:function(){return this.expansionPanel.isActive},isDisabled:function(){return this.expansionPanel.isDisabled},isReadonly:function(){return this.expansionPanel.isReadonly}},created:function(){this.expansionPanel.registerHeader(this)},beforeDestroy:function(){this.expansionPanel.unregisterHeader()},methods:{onClick:function(t){this.$emit("click",t)},genIcon:function(){var t=Object(c["s"])(this,"actions")||[this.$createElement(i["a"],this.expandIcon)];return this.$createElement(o["d"],[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},t)])}},render:function(t){var e=this;return t("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button"},directives:[{name:"ripple",value:this.ripple}],on:Object(r["a"])({},this.$listeners,{click:this.onClick,mousedown:function(){return e.hasMousedown=!0},mouseup:function(){return e.hasMousedown=!1}})}),[Object(c["s"])(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}})},c8af:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8d2:function(t,e,n){var r=n("d039"),o=n("5899"),i=" ";t.exports=function(t){return r((function(){return!!o[t]()||i[t]()!=i||o[t].name!==t}))}},c96a:function(t,e,n){"use strict";var r=n("23e7"),o=n("857a"),i=n("af03");r({target:"String",proto:!0,forced:i("small")},{small:function(){return o(this,"small","","")}})},c975:function(t,e,n){"use strict";var r=n("23e7"),o=n("4d64").indexOf,i=n("a640"),a=n("ae40"),u=[].indexOf,s=!!u&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:s||!c||!l},{indexOf:function(t){return s?u.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},c982:function(t,e,n){},c995:function(t,e,n){"use strict";n("a9e3");var r=n("ade3"),o=n("2b0e");e["a"]=o["a"].extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation:function(){return this.elevation},elevationClasses:function(){var t=this.computedElevation;return null==t||isNaN(parseInt(t))?{}:Object(r["a"])({},"elevation-".concat(this.elevation),!0)}}})},ca71:function(t,e,n){},ca72:function(t,e,n){"use strict";var r=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],o=function(t){return-1!==r.map((function(t){return t.toLowerCase()})).indexOf(t.toLowerCase())},i=function(t,e,n){Object.keys(e).filter(o).forEach((function(r){var o=e[r];"function"===typeof o&&("onInit"===r?o(t,n):n.on(r.substring(2),(function(t){return o(t,n)})))}))},a=function(t,e){var n=t.$props.modelEvents?t.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;t.$watch("value",(function(n,r){e&&"string"===typeof n&&n!==r&&n!==e.getContent({format:t.$props.outputFormat})&&e.setContent(n)})),e.on(r||"change input undo redo",(function(){t.$emit("input",e.getContent({format:t.$props.outputFormat}))}))},u=function(t,e,n){var r=e.$props.value?e.$props.value:"",o=e.$props.initialValue?e.$props.initialValue:"";n.setContent(r||(e.initialized?e.cache:o)),e.$listeners.input&&a(e,n),i(t,e.$listeners,n),e.initialized=!0},s=0,c=function(t){var e=Date.now(),n=Math.floor(1e9*Math.random());return s++,t+"_"+n+s+String(e)},l=function(t){return null!==t&&"textarea"===t.tagName.toLowerCase()},f=function(t){return"undefined"===typeof t||""===t?[]:Array.isArray(t)?t:t.split(" ")},d=function(t,e){return f(t).concat(f(e))},h=function(t){return null===t||void 0===t},p=function(){return{listeners:[],scriptId:c("tiny-script"),scriptLoaded:!1}},m=function(){var t=p(),e=function(t,e,n,r){var o=e.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=t,o.src=n;var i=function(){o.removeEventListener("load",i),r()};o.addEventListener("load",i),e.head&&e.head.appendChild(o)},n=function(n,r,o){t.scriptLoaded?o():(t.listeners.push(o),n.getElementById(t.scriptId)||e(t.scriptId,n,r,(function(){t.listeners.forEach((function(t){return t()})),t.scriptLoaded=!0})))},r=function(){t=p()};return{load:n,reinitialize:r}},g=m(),v=n("c4a9"),b={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return"html"===t||"text"===t}}},y=function(){return y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},y.apply(this,arguments)},x=function(t,e,n){return t(n||"div",{attrs:{id:e}})},w=function(t,e){return t("textarea",{attrs:{id:e},style:{visibility:"hidden"}})},C=function(t){return function(){var e=y(y({},t.$props.init),{readonly:t.$props.disabled,selector:"#"+t.elementId,plugins:d(t.$props.init&&t.$props.init.plugins,t.$props.plugins),toolbar:t.$props.toolbar||t.$props.init&&t.$props.init.toolbar,inline:t.inlineEditor,setup:function(e){t.editor=e,e.on("init",(function(n){return u(n,t,e)})),t.$props.init&&"function"===typeof t.$props.init.setup&&t.$props.init.setup(e)}});l(t.element)&&(t.element.style.visibility=""),Object(v["a"])().init(e)}},S={props:b,created:function(){this.elementId=this.$props.id||c("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline,this.initialized=!1},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(v["a"])())C(this)();else if(this.element&&this.element.ownerDocument){var t=this.$props.cloudChannel?this.$props.cloudChannel:"5",e=this.$props.apiKey?this.$props.apiKey:"no-api-key",n=h(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+e+"/tinymce/"+t+"/tinymce.min.js":this.$props.tinymceScriptSrc;g.load(this.element.ownerDocument,n,C(this))}},beforeDestroy:function(){null!==Object(v["a"])()&&Object(v["a"])().remove(this.editor)},deactivated:function(){var t;this.inlineEditor||(this.cache=this.editor.getContent(),null===(t=Object(v["a"])())||void 0===t||t.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&C(this)()},render:function(t){return this.inlineEditor?x(t,this.elementId,this.$props.tagName):w(t,this.elementId)}};e["a"]=S},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)!r(a,n)&&r(u,n)&&c.push(n);while(e.length>s)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},ca91:function(t,e,n){"use strict";var r=n("ebb5"),o=n("d58f").left,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduce",(function(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(t,e,n){"use strict";var r=n("23e7"),o=n("4d64").includes,i=n("44d2"),a=n("ae40"),u=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!u},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cb29:function(t,e,n){var r=n("23e7"),o=n("81d5"),i=n("44d2");r({target:"Array",proto:!0},{fill:o}),i("fill")},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},cc20:function(t,e,n){"use strict";n("4de4"),n("4160");var r=n("3835"),o=n("5530"),i=(n("8adc"),n("58df")),a=n("0789"),u=n("9d26"),s=n("a9ad"),c=n("4e82"),l=n("7560"),f=n("f2e7"),d=n("1c87"),h=n("af2b"),p=n("d9bd");e["a"]=Object(i["a"])(s["a"],h["a"],d["a"],l["a"],Object(c["a"])("chipGroup"),Object(f["b"])("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default:function(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:function(){return{proxyClass:"v-chip--active"}},computed:{classes:function(){return Object(o["a"])({"v-chip":!0},d["a"].options.computed.classes.call(this),{"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose},this.themeClasses,{},this.sizeableClasses,{},this.groupClasses)},hasClose:function(){return Boolean(this.close)},isClickable:function(){return Boolean(d["a"].options.computed.isClickable.call(this)||this.chipGroup)}},created:function(){var t=this,e=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];e.forEach((function(e){var n=Object(r["a"])(e,2),o=n[0],i=n[1];t.$attrs.hasOwnProperty(o)&&Object(p["a"])(o,i,t)}))},methods:{click:function(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter:function(){var t=[];return this.isActive&&t.push(this.$createElement(u["a"],{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(a["b"],t)},genClose:function(){var t=this;return this.$createElement(u["a"],{staticClass:"v-chip__close",props:{right:!0,size:18},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.$emit("click:close"),t.$emit("update:active",!1)}}},this.closeIcon)},genContent:function(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render:function(t){var e=[this.genContent()],n=this.generateRouteLink(),r=n.tag,i=n.data;i.attrs=Object(o["a"])({},i.attrs,{draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:i.attrs.tabindex}),i.directives.push({name:"show",value:this.active}),i=this.setBackgroundColor(this.color,i);var a=this.textColor||this.outlined&&this.color;return t(r,this.setTextColor(a,i),e)}})},cca6:function(t,e,n){var r=n("23e7"),o=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},cd26:function(t,e,n){"use strict";var r=n("ebb5"),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){var t,e=this,n=o(e).length,r=a(n/2),i=0;while(i<r)t=e[i],e[i++]=e[--n],e[n]=t;return e}))},cd55:function(t,e,n){"use strict";var r=n("5530"),o=n("4e82"),i=n("3206"),a=n("80d2"),u=n("58df");e["a"]=Object(u["a"])(Object(o["a"])("expansionPanels","v-expansion-panel","v-expansion-panels"),Object(i["b"])("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data:function(){return{content:null,header:null,nextIsActive:!1}},computed:{classes:function(){return Object(r["a"])({"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled},this.groupClasses)},isDisabled:function(){return this.expansionPanels.disabled||this.disabled},isReadonly:function(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent:function(t){this.content=t},unregisterContent:function(){this.content=null},registerHeader:function(t){this.header=t,t.$on("click",this.onClick)},unregisterHeader:function(){this.header=null},onClick:function(t){t.detail&&this.header.$el.blur(),this.$emit("click",t),this.isReadonly||this.isDisabled||this.toggle()},toggle:function(){var t=this;this.content&&(this.content.isBooted=!0),this.$nextTick((function(){return t.$emit("change")}))}},render:function(t){return t("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},Object(a["s"])(this))}})},cdd9:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)},n=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return function(e){return n(e)===t}},o=function(t){return function(e){return typeof e===t}},i=function(t){return function(e){return t===e}},a=r("string"),u=r("object"),s=r("array"),c=i(null),l=o("boolean"),f=o("number"),d=function(){},h=function(t){return function(){return t}},p=h(!1),m=h(!0),g=function(){return v},v=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:p,isSome:p,isNone:m,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:n,orThunk:e,map:g,each:d,bind:g,exists:p,forall:m,filter:g,equals:t,equals_:t,toArray:function(){return[]},toString:h("none()")};return r}(),b=function(t){var e=h(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:m,isNone:p,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return b(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:v},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(p,(function(e){return n(t,e)}))}};return o},y=function(t){return null===t||void 0===t?v:b(t)},x={some:b,none:g,from:y},w=Array.prototype.push,C=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!s(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);w.apply(e,t[n])}return e},S=function(t,e){return e>=0&&e<t.length?x.some(t[e]):x.none()},k=function(t){return S(t,0)},O=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return x.none()},_=("undefined"!==typeof window?window:Function("return this;")(),function(t,e,n){if(!(a(n)||l(n)||f(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")}),A=function(t,e,n){_(t.dom,e,n)},E=function(t,e){t.dom.removeAttribute(e)},T=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return B(r.childNodes[0])},D=function(t,e){var n=e||document,r=n.createElement(t);return B(r)},I=function(t,e){var n=e||document,r=n.createTextNode(t);return B(r)},B=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},L=function(t,e,n){return x.from(t.dom.elementFromPoint(e,n)).map(B)},N={fromHtml:T,fromTag:D,fromText:I,fromDom:B,fromPoint:L},P=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),M=tinymce.util.Tools.resolve("tinymce.util.Promise"),j=tinymce.util.Tools.resolve("tinymce.util.XHR"),R=function(t){return t.getParam("image_dimensions",!0,"boolean")},$=function(t){return t.getParam("image_advtab",!1,"boolean")},F=function(t){return t.getParam("image_uploadtab",!0,"boolean")},V=function(t){return t.getParam("image_prepend_url","","string")},H=function(t){return t.getParam("image_class_list")},z=function(t){return t.getParam("image_description",!0,"boolean")},U=function(t){return t.getParam("image_title",!1,"boolean")},W=function(t){return t.getParam("image_caption",!1,"boolean")},q=function(t){return t.getParam("image_list",!1)},G=function(t){return!!X(t)},Y=function(t){return!!K(t)},X=function(t){return t.getParam("images_upload_url","","string")},K=function(t){return t.getParam("images_upload_handler",void 0,"function")},Z=function(t){return t.getParam("images_upload_base_path",void 0,"string")},J=function(t){return t.getParam("images_upload_credentials",!1,"boolean")},Q=function(t){return t.getParam("a11y_advanced_options",!1,"boolean")},tt=function(t){return t.getParam("automatic_uploads",!0,"boolean")},et=function(t,e){return Math.max(parseInt(t,10),parseInt(e,10))},nt=function(t){return new M((function(e){var n=document.createElement("img"),r=function(t){n.parentNode&&n.parentNode.removeChild(n),e(t)};n.onload=function(){var t=et(n.width,n.clientWidth),e=et(n.height,n.clientHeight),o={width:t,height:e};r(M.resolve(o))},n.onerror=function(){r(M.reject("Failed to get image dimensions for: "+t))};var o=n.style;o.visibility="hidden",o.position="fixed",o.bottom=o.left="0px",o.width=o.height="auto",document.body.appendChild(n),n.src=t}))},rt=function(t){return t&&(t=t.replace(/px$/,"")),t},ot=function(t){return t.length>0&&/^[0-9]+$/.test(t)&&(t+="px"),t},it=function(t){if(t.margin){var e=String(t.margin).split(" ");switch(e.length){case 1:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[0],t["margin-bottom"]=t["margin-bottom"]||e[0],t["margin-left"]=t["margin-left"]||e[0];break;case 2:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[0],t["margin-left"]=t["margin-left"]||e[1];break;case 3:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[2],t["margin-left"]=t["margin-left"]||e[1];break;case 4:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[2],t["margin-left"]=t["margin-left"]||e[3]}delete t.margin}return t},at=function(t,e){var n=q(t);"string"===typeof n?j.send({url:n,success:function(t){e(JSON.parse(t))}}):"function"===typeof n?n(e):e(n)},ut=function(t,e,n){var r=function(){n.onload=n.onerror=null,t.selection&&(t.selection.select(n),t.nodeChanged())};n.onload=function(){e.width||e.height||!R(t)||t.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},st=function(t){return new M((function(e,n){var r=new FileReader;r.onload=function(){e(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(t)}))},ct=function(t){return"IMG"===t.nodeName&&(t.hasAttribute("data-mce-object")||t.hasAttribute("data-mce-placeholder"))},lt=P.DOM,ft=function(t){return t.style.marginLeft&&t.style.marginRight&&t.style.marginLeft===t.style.marginRight?rt(t.style.marginLeft):""},dt=function(t){return t.style.marginTop&&t.style.marginBottom&&t.style.marginTop===t.style.marginBottom?rt(t.style.marginTop):""},ht=function(t){return t.style.borderWidth?rt(t.style.borderWidth):""},pt=function(t,e){return t.hasAttribute(e)?t.getAttribute(e):""},mt=function(t,e){return t.style[e]?t.style[e]:""},gt=function(t){return null!==t.parentNode&&"FIGURE"===t.parentNode.nodeName},vt=function(t,e,n){""===n?t.removeAttribute(e):t.setAttribute(e,n)},bt=function(t){var e=lt.create("figure",{class:"image"});lt.insertAfter(e,t),e.appendChild(t),e.appendChild(lt.create("figcaption",{contentEditable:"true"},"Caption")),e.contentEditable="false"},yt=function(t){var e=t.parentNode;lt.insertAfter(t,e),lt.remove(e)},xt=function(t){gt(t)?yt(t):bt(t)},wt=function(t,e){var n=t.getAttribute("style"),r=e(null!==n?n:"");r.length>0?(t.setAttribute("style",r),t.setAttribute("data-mce-style",r)):t.removeAttribute("style")},Ct=function(t,e){return function(t,n,r){t.style[n]?(t.style[n]=ot(r),wt(t,e)):vt(t,n,r)}},St=function(t,e){return t.style[e]?rt(t.style[e]):pt(t,e)},kt=function(t,e){var n=ot(e);t.style.marginLeft=n,t.style.marginRight=n},Ot=function(t,e){var n=ot(e);t.style.marginTop=n,t.style.marginBottom=n},_t=function(t,e){var n=ot(e);t.style.borderWidth=n},At=function(t,e){t.style.borderStyle=e},Et=function(t){return mt(t,"borderStyle")},Tt=function(t){return"FIGURE"===t.nodeName},Dt=function(t){return"IMG"===t.nodeName},It=function(t){return 0===lt.getAttrib(t,"alt").length&&"presentation"===lt.getAttrib(t,"role")},Bt=function(t){return It(t)?"":pt(t,"alt")},Lt=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},Nt=function(t,e){var n=document.createElement("img");return vt(n,"style",e.style),(ft(n)||""!==e.hspace)&&kt(n,e.hspace),(dt(n)||""!==e.vspace)&&Ot(n,e.vspace),(ht(n)||""!==e.border)&&_t(n,e.border),(Et(n)||""!==e.borderStyle)&&At(n,e.borderStyle),t(n.getAttribute("style"))},Pt=function(t,n){var r=document.createElement("img");if(Vt(t,e(e({},n),{caption:!1}),r),Rt(r,n.alt,n.isDecorative),n.caption){var o=lt.create("figure",{class:"image"});return o.appendChild(r),o.appendChild(lt.create("figcaption",{contentEditable:"true"},"Caption")),o.contentEditable="false",o}return r},Mt=function(t,e){return{src:pt(e,"src"),alt:Bt(e),title:pt(e,"title"),width:St(e,"width"),height:St(e,"height"),class:pt(e,"class"),style:t(pt(e,"style")),caption:gt(e),hspace:ft(e),vspace:dt(e),border:ht(e),borderStyle:mt(e,"borderStyle"),isDecorative:It(e)}},jt=function(t,e,n,r,o){n[r]!==e[r]&&o(t,r,n[r])},Rt=function(t,e,n){if(n){lt.setAttrib(t,"role","presentation");var r=N.fromDom(t);A(r,"alt","")}else{if(c(e)){r=N.fromDom(t);E(r,"alt")}else{r=N.fromDom(t);A(r,"alt",e)}"presentation"===lt.getAttrib(t,"role")&<.setAttrib(t,"role","")}},$t=function(t,e,n){n.alt===e.alt&&n.isDecorative===e.isDecorative||Rt(t,n.alt,n.isDecorative)},Ft=function(t,e){return function(n,r,o){t(n,o),wt(n,e)}},Vt=function(t,e,n){var r=Mt(t,n);jt(n,r,e,"caption",(function(t,e,n){return xt(t)})),jt(n,r,e,"src",vt),jt(n,r,e,"title",vt),jt(n,r,e,"width",Ct("width",t)),jt(n,r,e,"height",Ct("height",t)),jt(n,r,e,"class",vt),jt(n,r,e,"style",Ft((function(t,e){return vt(t,"style",e)}),t)),jt(n,r,e,"hspace",Ft(kt,t)),jt(n,r,e,"vspace",Ft(Ot,t)),jt(n,r,e,"border",Ft(_t,t)),jt(n,r,e,"borderStyle",Ft(At,t)),$t(n,r,e)},Ht=function(t,e){var n=t.dom.styles.parse(e),r=it(n),o=t.dom.styles.parse(t.dom.styles.serialize(r));return t.dom.styles.serialize(o)},zt=function(t){var e=t.selection.getNode(),n=t.dom.getParent(e,"figure.image");return n?t.dom.select("img",n)[0]:e&&("IMG"!==e.nodeName||ct(e))?null:e},Ut=function(t,e){var n=t.dom,r=n.getParent(e.parentNode,(function(e){return!!t.schema.getTextBlockElements()[e.nodeName]}),t.getBody());return r?n.split(r,e):e},Wt=function(t){var e=zt(t);return e?Mt((function(e){return Ht(t,e)}),e):Lt()},qt=function(t,e){var n=Pt((function(e){return Ht(t,e)}),e);t.dom.setAttrib(n,"data-mce-id","__mcenew"),t.focus(),t.selection.setContent(n.outerHTML);var r=t.dom.select('*[data-mce-id="__mcenew"]')[0];if(t.dom.setAttrib(r,"data-mce-id",null),Tt(r)){var o=Ut(t,r);t.selection.select(o)}else t.selection.select(r)},Gt=function(t,e){t.dom.setAttrib(e,"src",e.getAttribute("src"))},Yt=function(t,e){if(e){var n=t.dom.is(e.parentNode,"figure.image")?e.parentNode:e;t.dom.remove(n),t.focus(),t.nodeChanged(),t.dom.isEmpty(t.getBody())&&(t.setContent(""),t.selection.setCursorLocation())}},Xt=function(t,e){var n=zt(t);if(Vt((function(e){return Ht(t,e)}),e,n),Gt(t,n),Tt(n.parentNode)){var r=n.parentNode;Ut(t,r),t.selection.select(n.parentNode)}else t.selection.select(n),ut(t,e,n)},Kt=function(t,n){var r=zt(t);if(r){var o=Mt((function(e){return Ht(t,e)}),r),i=e(e({},o),n);i.src?Xt(t,i):Yt(t,r)}else n.src&&qt(t,e(e({},Lt()),n))},Zt=Object.prototype.hasOwnProperty,Jt=function(t,e){var n=u(t)&&u(e);return n?te(t,e):e},Qt=function(t){return function(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<e.length;o++){var i=e[o];for(var a in i)Zt.call(i,a)&&(r[a]=t(r[a],i[a]))}return r}},te=Qt(Jt),ee=tinymce.util.Tools.resolve("tinymce.util.Tools"),ne=function(t){return a(t.value)?t.value:""},re=function(t){return a(t.text)?t.text:a(t.title)?t.title:""},oe=function(t,e){var n=[];return ee.each(t,(function(t){var r=re(t);if(void 0!==t.menu){var o=oe(t.menu,e);n.push({text:r,items:o})}else{var i=e(t);n.push({text:r,value:i})}})),n},ie=function(t){return void 0===t&&(t=ne),function(e){return e?x.from(e).map((function(e){return oe(e,t)})):x.none()}},ae=function(t){return ie(ne)(t)},ue=function(t){return Object.prototype.hasOwnProperty.call(t,"items")},se=function(t,e){return O(t,(function(t){return ue(t)?se(t.items,e):t.value===e?x.some(t):x.none()}))},ce=function(t,e){return t.bind((function(t){return se(t,e)}))},le={sanitizer:ie,sanitize:ae,findEntry:ce},fe=function(t,e){return t?t.replace(/\/$/,"")+"/"+e.replace(/^\//,""):e};function de(t){var e=function(e,n,r,o){var i=new XMLHttpRequest;i.open("POST",t.url),i.withCredentials=t.credentials,i.upload.onprogress=function(t){o(t.loaded/t.total*100)},i.onerror=function(){r("Image upload failed due to a XHR Transport error. Code: "+i.status)},i.onload=function(){if(i.status<200||i.status>=300)r("HTTP Error: "+i.status);else{var e=JSON.parse(i.responseText);e&&"string"===typeof e.location?n(fe(t.basePath,e.location)):r("Invalid JSON: "+i.responseText)}};var a=new FormData;a.append("file",e.blob(),e.filename()),i.send(a)},n=function(t,e){return new M((function(n,r){try{e(t,n,r,d)}catch(o){r(o.message)}}))},r=function(t){return t===e},o=function(e){return!t.url&&r(t.handler)?M.reject("Upload url missing from the settings."):n(e,t.handler)};return t=ee.extend({credentials:!1,handler:e},t),{upload:o}}var he=function(t){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},pe={makeTab:he},me=function(t){var e=le.sanitizer((function(e){return t.convertURL(e.value||e.url,"src")})),n=new M((function(n){at(t,(function(t){n(e(t).map((function(t){return C([[{text:"None",value:""}],t])})))}))})),r=le.sanitize(H(t)),o=$(t),i=F(t),u=G(t),s=Y(t),c=Wt(t),l=z(t),f=U(t),d=R(t),h=W(t),p=Q(t),m=X(t),g=Z(t),v=J(t),b=K(t),y=tt(t),w=x.some(V(t)).filter((function(t){return a(t)&&t.length>0}));return n.then((function(t){return{image:c,imageList:t,classList:r,hasAdvTab:o,hasUploadTab:i,hasUploadUrl:u,hasUploadHandler:s,hasDescription:l,hasImageTitle:f,hasDimensions:d,hasImageCaption:h,url:m,basePath:g,credentials:v,handler:b,prependURL:w,hasAccessibilityOptions:p,automaticUploads:y}}))},ge=function(t){var e={name:"src",type:"urlinput",filetype:"image",label:"Source"},n=t.imageList.map((function(t){return{name:"images",type:"listbox",label:"Image list",items:t}})),r={name:"alt",type:"input",label:"Alternative description",disabled:t.hasAccessibilityOptions&&t.image.isDecorative},o={name:"title",type:"input",label:"Image title"},i={name:"dimensions",type:"sizeinput"},a={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},u=t.classList.map((function(t){return{name:"classes",type:"listbox",label:"Class",items:t}})),s={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]};return C([[e],n.toArray(),t.hasAccessibilityOptions&&t.hasDescription?[a]:[],t.hasDescription?[r]:[],t.hasImageTitle?[o]:[],t.hasDimensions?[i]:[],[{type:"grid",columns:2,items:C([u.toArray(),t.hasImageCaption?[s]:[]])}]])},ve=function(t){return{title:"General",name:"general",items:ge(t)}},be={makeTab:ve,makeItems:ge},ye=function(t){var e=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:e}},xe={makeTab:ye},we=function(t){return{prevImage:le.findEntry(t.imageList,t.image.src),prevAlt:t.image.alt,open:!0}},Ce=function(t){return{src:{value:t.src,meta:{}},images:t.src,alt:t.alt,title:t.title,dimensions:{width:t.width,height:t.height},classes:t.class,caption:t.caption,style:t.style,vspace:t.vspace,border:t.border,hspace:t.hspace,borderstyle:t.borderStyle,fileinput:[],isDecorative:t.isDecorative}},Se=function(t,e){return{src:t.src.value,alt:0===t.alt.length&&e?null:t.alt,title:t.title,width:t.dimensions.width,height:t.dimensions.height,class:t.classes,style:t.style,caption:t.caption,hspace:t.hspace,vspace:t.vspace,border:t.border,borderStyle:t.borderstyle,isDecorative:t.isDecorative}},ke=function(t,e){return/^(?:[a-zA-Z]+:)?\/\//.test(e)?x.none():t.prependURL.bind((function(t){return e.substring(0,t.length)!==t?x.some(t+e):x.none()}))},Oe=function(t,e){var n=e.getData();ke(t,n.src.value).each((function(t){e.setData({src:{value:t,meta:n.src.meta}})}))},_e=function(t,e,n){t.hasDescription&&a(n.alt)&&(e.alt=n.alt),t.hasAccessibilityOptions&&(e.isDecorative=n.isDecorative||e.isDecorative||!1),t.hasImageTitle&&a(n.title)&&(e.title=n.title),t.hasDimensions&&(a(n.width)&&(e.dimensions.width=n.width),a(n.height)&&(e.dimensions.height=n.height)),a(n.class)&&le.findEntry(t.classList,n.class).each((function(t){e.classes=t.value})),t.hasImageCaption&&l(n.caption)&&(e.caption=n.caption),t.hasAdvTab&&(a(n.style)&&(e.style=n.style),a(n.vspace)&&(e.vspace=n.vspace),a(n.border)&&(e.border=n.border),a(n.hspace)&&(e.hspace=n.hspace),a(n.borderstyle)&&(e.borderstyle=n.borderstyle))},Ae=function(t,e){var n=e.getData(),r=n.src.meta;if(void 0!==r){var o=te({},n);_e(t,o,r),e.setData(o)}},Ee=function(t,e,n,r){var o=r.getData(),i=o.src.value,a=o.src.meta||{};a.width||a.height||!e.hasDimensions||t.imageSize(i).then((function(t){n.open&&r.setData({dimensions:t})}))},Te=function(t,e,n){var r=n.getData(),o=le.findEntry(t.imageList,r.src.value);e.prevImage=o,n.setData({images:o.map((function(t){return t.value})).getOr("")})},De=function(t,e,n,r){Oe(e,r),Ae(e,r),Ee(t,e,n,r),Te(e,n,r)},Ie=function(t,e,n,r){var o=r.getData(),i=le.findEntry(e.imageList,o.images);i.each((function(t){var e=""===o.alt||n.prevImage.map((function(t){return t.text===o.alt})).getOr(!1);e?""===t.value?r.setData({src:t,alt:n.prevAlt}):r.setData({src:t,alt:t.text}):r.setData({src:t})})),n.prevImage=i,De(t,e,n,r)},Be=function(t){var e=t["margin-top"]&&t["margin-bottom"]&&t["margin-top"]===t["margin-bottom"];return e?rt(String(t["margin-top"])):""},Le=function(t){var e=t["margin-right"]&&t["margin-left"]&&t["margin-right"]===t["margin-left"];return e?rt(String(t["margin-right"])):""},Ne=function(t){return t["border-width"]?rt(String(t["border-width"])):""},Pe=function(t){return t["border-style"]?String(t["border-style"]):""},Me=function(t,e,n){return e(t(e(n)))},je=function(t,e,n){var r=it(t(n.style)),o=te({},n);return o.vspace=Be(r),o.hspace=Le(r),o.border=Ne(r),o.borderstyle=Pe(r),o.style=Me(t,e,r),o},Re=function(t,e){var n=e.getData(),r=je(t.parseStyle,t.serializeStyle,n);e.setData(r)},$e=function(t,e,n){var r=te(Ce(e.image),n.getData()),o=Nt(t.normalizeCss,Se(r,!1));n.setData({style:o})},Fe=function(t,e,n,r){var o=r.getData();r.block("Uploading image"),k(o.fileinput).fold((function(){r.unblock()}),(function(o){var i=URL.createObjectURL(o),a=de({url:e.url,basePath:e.basePath,credentials:e.credentials,handler:e.handler}),u=function(){r.unblock(),URL.revokeObjectURL(i)},s=function(o){r.setData({src:{value:o,meta:{}}}),r.showTab("general"),De(t,e,n,r)};st(o).then((function(n){var c=t.createBlobCache(o,i,n);e.automaticUploads?a.upload(c).then((function(t){s(t),u()})).catch((function(e){u(),t.alertErr(e)})):(t.addToBlobCache(c),s(c.blobUri()),r.unblock())}))}))},Ve=function(t,e,n){return function(r,o){"src"===o.name?De(t,e,n,r):"images"===o.name?Ie(t,e,n,r):"alt"===o.name?n.prevAlt=r.getData().alt:"style"===o.name?Re(t,r):"vspace"===o.name||"hspace"===o.name||"border"===o.name||"borderstyle"===o.name?$e(t,e,r):"fileinput"===o.name?Fe(t,e,n,r):"isDecorative"===o.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},He=function(t){return function(){t.open=!1}},ze=function(t){if(t.hasAdvTab||t.hasUploadUrl||t.hasUploadHandler){var e={type:"tabpanel",tabs:C([[be.makeTab(t)],t.hasAdvTab?[pe.makeTab(t)]:[],t.hasUploadTab&&(t.hasUploadUrl||t.hasUploadHandler)?[xe.makeTab(t)]:[]])};return e}var n={type:"panel",items:be.makeItems(t)};return n},Ue=function(t){return function(e){var n=we(e);return{title:"Insert/Edit Image",size:"normal",body:ze(e),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Ce(e.image),onSubmit:t.onSubmit(e),onChange:Ve(t,e,n),onClose:He(n)}}},We=function(t){return function(e){return function(n){var r=te(Ce(e.image),n.getData());t.execCommand("mceUpdateImage",!1,Se(r,e.hasAccessibilityOptions)),t.editorUpload.uploadImagesAuto(),n.close()}}},qe=function(t){return function(e){return nt(t.documentBaseURI.toAbsolute(e)).then((function(t){return{width:String(t.width),height:String(t.height)}}))}},Ge=function(t){return function(e,n,r){return t.editorUpload.blobCache.create({blob:e,blobUri:n,name:e.name?e.name.replace(/\.[^\.]+$/,""):null,filename:e.name,base64:r.split(",")[1]})}},Ye=function(t){return function(e){t.editorUpload.blobCache.add(e)}},Xe=function(t){return function(e){t.windowManager.alert(e)}},Ke=function(t){return function(e){return Ht(t,e)}},Ze=function(t){return function(e){return t.dom.parseStyle(e)}},Je=function(t){return function(e,n){return t.dom.serializeStyle(e,n)}},Qe=function(t){var e={onSubmit:We(t),imageSize:qe(t),addToBlobCache:Ye(t),createBlobCache:Ge(t),alertErr:Xe(t),normalizeCss:Ke(t),parseStyle:Ze(t),serializeStyle:Je(t)},n=function(){me(t).then(Ue(e)).then(t.windowManager.open)};return{open:n}},tn=function(t){t.addCommand("mceImage",Qe(t).open),t.addCommand("mceUpdateImage",(function(e,n){t.undoManager.transact((function(){return Kt(t,n)}))}))},en=function(t){var e=t.attr("class");return e&&/\bimage\b/.test(e)},nn=function(t){return function(e){var n=e.length,r=function(e){e.attr("contenteditable",t?"true":null)};while(n--){var o=e[n];en(o)&&(o.attr("contenteditable",t?"false":null),ee.each(o.getAll("figcaption"),r))}}},rn=function(t){t.on("PreInit",(function(){t.parser.addNodeFilter("figure",nn(!0)),t.serializer.addNodeFilter("figure",nn(!1))}))},on=function(t){t.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Qe(t).open,onSetup:function(e){return t.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",e.setActive).unbind}}),t.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Qe(t).open}),t.ui.registry.addContextMenu("image",{update:function(t){return Tt(t)||Dt(t)&&!ct(t)?["image"]:[]}})};function an(){t.add("image",(function(t){rn(t),on(t),tn(t)}))}an()})()},cdf9:function(t,e,n){var r=n("825a"),o=n("861d"),i=n("f069");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),o=n("9112");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},ce7e:function(t,e,n){"use strict";var r=n("5530"),o=(n("8ce9"),n("7560"));e["a"]=o["a"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render:function(t){var e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:Object(r["a"])({"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical},this.themeClasses),attrs:Object(r["a"])({role:"separator","aria-orientation":e},this.$attrs),on:this.$listeners})}})},cee4:function(t,e,n){"use strict";var r=n("c532"),o=n("1d2b"),i=n("0a06"),a=n("4a7b"),u=n("2444");function s(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var c=s(u);c.Axios=i,c.create=function(t){return s(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},cf36:function(t,e,n){},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),o=n("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},d10f:function(t,e,n){"use strict";var r=n("2b0e");e["a"]=r["a"].extend({name:"ssr-bootable",data:function(){return{isBooted:!1}},mounted:function(){var t=this;window.requestAnimationFrame((function(){t.$el.setAttribute("data-booted","true"),t.isBooted=!0}))}})},d139:function(t,e,n){"use strict";var r=n("ebb5"),o=n("b727").find,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},d191:function(t,e,n){},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,o=n("5135"),i=n("b622"),a=i("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d4ec:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},d58f:function(t,e,n){var r=n("1c0b"),o=n("7b0b"),i=n("44ad"),a=n("50c4"),u=function(t){return function(e,n,u,s){r(n);var c=o(e),l=i(c),f=a(c.length),d=t?f-1:0,h=t?-1:1;if(u<2)while(1){if(d in l){s=l[d],d+=h;break}if(d+=h,t?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=h)d in l&&(s=n(s,l[d],d,c));return s}};t.exports={left:u(!1),right:u(!0)}},d59f:function(t,e,n){},d5d6:function(t,e,n){"use strict";var r=n("ebb5"),o=n("b727").forEach,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("forEach",(function(t){o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},d784:function(t,e,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("d039"),i=n("b622"),a=n("9263"),u=n("9112"),s=i("species"),c=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){return"$0"==="a".replace(/./,"$0")}(),f=i("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),h=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,f){var p=i(t),m=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),g=m&&!o((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!m||!g||"replace"===t&&(!c||!l||d)||"split"===t&&!h){var v=/./[p],b=n(p,""[t],(function(t,e,n,r,o){return e.exec===a?m&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=b[0],x=b[1];r(String.prototype,t,y),r(RegExp.prototype,p,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}f&&u(RegExp.prototype[p],"sham",!0)}},d81d:function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").map,i=n("1dde"),a=n("ae40"),u=i("map"),s=a("map");r({target:"Array",proto:!0,forced:!u||!s},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d951:function(t,e,n){},d9bd:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return c}));n("99af"),n("caad"),n("a15b"),n("d81d"),n("b0c0"),n("ac1f"),n("2532"),n("466d"),n("38cf"),n("5319");var r=n("f309");function o(t,e,n){if(!r["a"].config.silent){if(n&&(e={_isVue:!0,$parent:n,$options:e}),e){if(e.$_alreadyWarned=e.$_alreadyWarned||[],e.$_alreadyWarned.includes(t))return;e.$_alreadyWarned.push(t)}return"[Vuetify] ".concat(t)+(e?h(e):"")}}function i(t,e,n){var r=o(t,e,n);null!=r&&console.warn(r)}function a(t,e,n){var r=o(t,e,n);null!=r&&console.error(r)}function u(t,e,n,r){i("[UPGRADE] '".concat(t,"' is deprecated, use '").concat(e,"' instead."),n,r)}function s(t,e,n,r){a("[BREAKING] '".concat(t,"' has been removed, use '").concat(e,"' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide"),n,r)}function c(t,e,n){i("[REMOVED] '".concat(t,"' has been removed. You can safely omit it."),e,n)}var l=/(?:^|[-_])(\w)/g,f=function(t){return t.replace(l,(function(t){return t.toUpperCase()})).replace(/[-_]/g,"")};function d(t,e){if(t.$root===t)return"<Root>";var n="function"===typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t||{},r=n.name||n._componentTag,o=n.__file;if(!r&&o){var i=o.match(/([^/\\]+)\.vue$/);r=i&&i[1]}return(r?"<".concat(f(r),">"):"<Anonymous>")+(o&&!1!==e?" at ".concat(o):"")}function h(t){if(t._isVue&&t.$parent){var e=[],n=0;while(t){if(e.length>0){var r=e[e.length-1];if(r.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[r,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((function(t,e){return"".concat(0===e?"---\x3e ":" ".repeat(5+2*e)).concat(Array.isArray(t)?"".concat(d(t[0]),"... (").concat(t[1]," recursive calls)"):d(t))})).join("\n")}return"\n\n(found in ".concat(d(t),")")}},d9f7:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return d}));n("99af"),n("b64b"),n("ac1f"),n("1276"),n("498a");var r=n("5530"),o=n("3835"),i=n("b85c"),a=n("80d2"),u={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function s(t){var e,n={},r=Object(i["a"])(t.split(u.styleList));try{for(r.s();!(e=r.n()).done;){var s=e.value,c=s.split(u.styleProp),l=Object(o["a"])(c,2),f=l[0],d=l[1];f=f.trim(),f&&("string"===typeof d&&(d=d.trim()),n[Object(a["c"])(f)]=d)}}catch(h){r.e(h)}finally{r.f()}return n}function c(){var t,e={},n=arguments.length;while(n--)for(var o=0,i=Object.keys(arguments[n]);o<i.length;o++)switch(t=i[o],t){case"class":case"directives":arguments[n][t]&&(e[t]=f(e[t],arguments[n][t]));break;case"style":arguments[n][t]&&(e[t]=l(e[t],arguments[n][t]));break;case"staticClass":if(!arguments[n][t])break;void 0===e[t]&&(e[t]=""),e[t]&&(e[t]+=" "),e[t]+=arguments[n][t].trim();break;case"on":case"nativeOn":arguments[n][t]&&(e[t]=d(e[t],arguments[n][t]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[n][t])break;e[t]||(e[t]={}),e[t]=Object(r["a"])({},arguments[n][t],{},e[t]);break;default:e[t]||(e[t]=arguments[n][t])}return e}function l(t,e){return t?e?(t=Object(a["I"])("string"===typeof t?s(t):t),t.concat("string"===typeof e?s(e):e)):t:e}function f(t,e){return e?t&&t?Object(a["I"])(t).concat(e):e:t}function d(){if(!(arguments.length<=0?void 0:arguments[0]))return arguments.length<=1?void 0:arguments[1];if(!(arguments.length<=1?void 0:arguments[1]))return arguments.length<=0?void 0:arguments[0];for(var t={},e=2;e--;){var n=e<0||arguments.length<=e?void 0:arguments[e];for(var r in n)n[r]&&(t[r]?t[r]=[].concat(n[r],t[r]):t[r]=n[r])}return t}},da13:function(t,e,n){"use strict";var r=n("5530"),o=(n("61d2"),n("a9ad")),i=n("1c87"),a=n("4e82"),u=n("7560"),s=n("f2e7"),c=n("5607"),l=n("80d2"),f=n("d9bd"),d=n("58df"),h=Object(d["a"])(o["a"],i["a"],u["a"],Object(a["a"])("listItemGroup"),Object(s["b"])("inputValue"));e["a"]=h.extend().extend({name:"v-list-item",directives:{Ripple:c["a"]},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default:function(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:function(){return{proxyClass:"v-list-item--active"}},computed:{classes:function(){return Object(r["a"])({"v-list-item":!0},i["a"].options.computed.classes.call(this),{"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine},this.themeClasses)},isClickable:function(){return Boolean(i["a"].options.computed.isClickable.call(this)||this.listItemGroup)}},created:function(){this.$attrs.hasOwnProperty("avatar")&&Object(f["e"])("avatar",this)},methods:{click:function(t){t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle()},genAttrs:function(){var t=Object(r["a"])({"aria-disabled":!!this.disabled||void 0,tabindex:this.isClickable&&!this.disabled?0:-1},this.$attrs);return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(t.role="listitem",t["aria-selected"]=String(this.isActive)):this.isInMenu?(t.role=this.isClickable?"menuitem":void 0,t.id=t.id||"list-item-".concat(this._uid)):this.isInList&&(t.role="listitem")),t}},render:function(t){var e=this,n=this.generateRouteLink(),o=n.tag,i=n.data;i.attrs=Object(r["a"])({},i.attrs,{},this.genAttrs()),i[this.to?"nativeOn":"on"]=Object(r["a"])({},i[this.to?"nativeOn":"on"],{keydown:function(t){t.keyCode===l["y"].enter&&e.click(t),e.$emit("keydown",t)}}),this.inactive&&(o="div"),this.inactive&&this.to&&(i.on=i.nativeOn,delete i.nativeOn);var a=this.$scopedSlots.default?this.$scopedSlots.default({active:this.isActive,toggle:this.toggle}):this.$slots.default;return t(o,this.setTextColor(this.color,i),a)}})},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db42:function(t,e,n){},dbb4:function(t,e,n){var r=n("23e7"),o=n("83ab"),i=n("56ef"),a=n("fc6a"),u=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),o=u.f,c=i(r),l={},f=0;while(c.length>f)n=o(r,e=c[f++]),void 0!==n&&s(l,e,n);return l}})},dc22:function(t,e,n){"use strict";function r(t,e){var n=e.value,r=e.options||{passive:!0};window.addEventListener("resize",n,r),t._onResize={callback:n,options:r},e.modifiers&&e.modifiers.quiet||n()}function o(t){if(t._onResize){var e=t._onResize,n=e.callback,r=e.options;window.removeEventListener("resize",n,r),delete t._onResize}}var i={inserted:r,unbind:o};e["a"]=i},dca8:function(t,e,n){var r=n("23e7"),o=n("bb2f"),i=n("d039"),a=n("861d"),u=n("f183").onFreeze,s=Object.freeze,c=i((function(){s(1)}));r({target:"Object",stat:!0,forced:c,sham:!o},{freeze:function(t){return s&&a(t)?s(u(t)):t}})},ddb0:function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),a=n("9112"),u=n("b622"),s=u("iterator"),c=u("toStringTag"),l=i.values;for(var f in o){var d=r[f],h=d&&d.prototype;if(h){if(h[s]!==l)try{a(h,s,l)}catch(m){h[s]=l}if(h[c]||a(h,c,f),o[f])for(var p in i)if(h[p]!==i[p])try{a(h,p,i[p])}catch(m){h[p]=i[p]}}}},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,o=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!o){n=e+1;break}}else-1===r&&(o=!1,r=e+1);return-1===r?"":t.slice(n,r)}function o(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(o(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===i(t,-1);return t=n(o(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(o(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var o=r(t.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),u=a,s=0;s<a;s++)if(o[s]!==i[s]){u=s;break}var c=[];for(s=u;s<o.length;s++)c.push("..");return c=c.concat(i.slice(u)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,o=!0,i=t.length-1;i>=1;--i)if(e=t.charCodeAt(i),47===e){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,o=!0,i=0,a=t.length-1;a>=0;--a){var u=t.charCodeAt(a);if(47!==u)-1===r&&(o=!1,r=a+1),46===u?-1===e?e=a:1!==i&&(i=1):-1!==e&&(i=-1);else if(!o){n=a+1;break}}return-1===e||-1===r||0===i||1===i&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},df86:function(t,e,n){},e01a:function(t,e,n){"use strict";var r=n("23e7"),o=n("83ab"),i=n("da84"),a=n("5135"),u=n("861d"),s=n("9bf2").f,c=n("e893"),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new l(t):void 0===t?l():l(t);return""===t&&(f[e]=!0),e};c(d,l);var h=d.prototype=l.prototype;h.constructor=d;var p=h.toString,m="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;s(h,"description",{configurable:!0,get:function(){var t=u(this)?this.valueOf():this,e=p.call(t);if(a(f,t))return"";var n=m?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e0c7:function(t,e,n){"use strict";var r=n("5530"),o=(n("0bc6"),n("7560")),i=n("58df");e["a"]=Object(i["a"])(o["a"]).extend({name:"v-subheader",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"v-subheader",class:Object(r["a"])({"v-subheader--inset":this.inset},this.themeClasses),attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})},e163:function(t,e,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),a=n("e177"),u=i("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),a=n("69f3"),u=n("7dd0"),s="Array Iterator",c=a.set,l=a.getterFor(s);t.exports=u(Array,"Array",(function(t,e){c(this,{type:s,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},e439:function(t,e,n){var r=n("23e7"),o=n("d039"),i=n("fc6a"),a=n("06cf").f,u=n("83ab"),s=o((function(){a(1)})),c=!u||s;r({target:"Object",stat:!0,forced:c,sham:!u},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},e449:function(t,e,n){"use strict";n("99af"),n("7db0"),n("a630"),n("caad"),n("c975"),n("a9e3"),n("2532"),n("3ca3"),n("498a");var r=n("ade3"),o=n("2909"),i=n("5530"),a=(n("ee6f"),n("480e")),u=n("4ad4"),s=n("16b7"),c=n("b848"),l=n("75eb"),f=n("f573"),d=n("e4d3"),h=n("a236"),p=n("f2e7"),m=n("7560"),g=n("a293"),v=n("dc22"),b=n("58df"),y=n("d9bd"),x=n("80d2"),w=Object(b["a"])(c["a"],s["a"],l["a"],f["a"],d["a"],h["a"],p["a"],m["a"]);e["a"]=w.extend({name:"v-menu",directives:{ClickOutside:g["a"],Resize:v["a"]},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object(x["g"])(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":Object(x["g"])(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return Object(x["g"])(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object(x["g"])(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Object(x["g"])(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?Object(x["g"])(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var n=this.tiles[t];n.classList.add("v-list-item--highlighted"),this.$refs.content.scrollTop=n.offsetTop-n.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(y["e"])("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var t=this;this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active"),n=t.scrollHeight-t.offsetHeight;return e?Math.min(n,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var n=e.offsetTop-this.calcScrollPosition(),r=t.querySelector(".v-list-item").offsetTop;return this.computedTop-n-r-1},changeListIndex:function(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==x["y"].tab){if(t.keyCode===x["y"].down)this.nextTile();else if(t.keyCode===x["y"].up)this.prevTile();else{if(t.keyCode!==x["y"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional:function(t){var e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes:function(){var t=u["a"].options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?Object(i["a"])({},t,{"aria-activedescendant":this.activeTile.id}):t},genActivatorListeners:function(){var t=f["a"].options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition:function(){var t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives:function(){var t=this,e=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&e.push({name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:function(){return[t.$el].concat(Object(o["a"])(t.getOpenDependentElements()))}}}),e},genContent:function(){var t=this,e={attrs:Object(i["a"])({},this.getScopeIdAttrs(),{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:Object(i["a"])({},this.rootThemeClasses,{},this.roundedClasses,Object(r["a"])({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(e){var n=e.target;n.getAttribute("disabled")||t.closeOnContentClick&&(t.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(e.on=e.on||{},e.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(e.on=e.on||{},e.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(e.on=e.on||{},e.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",e,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item")))},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},nextTile:function(){var t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile:function(){var t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},onKeyDown:function(t){var e=this;if(t.keyCode===x["y"].esc){setTimeout((function(){e.isActive=!1}));var n=this.getActivator();this.$nextTick((function(){return n&&n.focus()}))}else!this.isActive&&[x["y"].up,x["y"].down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return e.changeListIndex(t)}))},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(t){var e=this,n={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",n,[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[e.$createElement(a["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.genTransition()])]}))])}})},e4cd:function(t,e,n){"use strict";n("caad"),n("b0c0"),n("a9e3");var r=n("d9bd"),o=n("2b0e");e["a"]=o["a"].extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default:function(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:function(t){return!isNaN(Number(t))||["xs","sm","md","lg","xl"].includes(String(t))}}},computed:{isMobile:function(){var t=this.$vuetify.breakpoint,e=t.mobile,n=t.width,r=t.name,o=t.mobileBreakpoint;if(o===this.mobileBreakpoint)return e;var i=parseInt(this.mobileBreakpoint,10),a=!isNaN(i);return a?n<i:r===this.mobileBreakpoint}},created:function(){this.$attrs.hasOwnProperty("mobile-break-point")&&Object(r["d"])("mobile-break-point","mobile-breakpoint",this)}})},e4d3:function(t,e,n){"use strict";var r=n("2b0e");e["a"]=r["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},e538:function(t,e,n){var r=n("b622");e.f=r},e53c:function(t,e,n){},e562:function(t,e,n){(function(e){(function(){"use strict";var n=function(t){if(null===t)return"null";if(void 0===t)return"undefined";var e=typeof t;return"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(t)},o=function(t,e){var n=Array.prototype.slice.call(t);return n.sort(e)},i=function(t,e){return a((function(n,r){return t.eq(e(n),e(r))}))},a=function(t){return{eq:t}},u=a((function(t,e){return t===e})),s=u,c=function(t){return a((function(e,n){if(e.length!==n.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!t.eq(e[o],n[o]))return!1;return!0}))},l=function(t,e){return i(c(t),(function(t){return o(t,e)}))},f=function(t){return a((function(e,n){var r=Object.keys(e),o=Object.keys(n);if(!l(s).eq(r,o))return!1;for(var i=r.length,a=0;a<i;a++){var u=r[a];if(!t.eq(e[u],n[u]))return!1}return!0}))},d=a((function(t,e){if(t===e)return!0;var o=n(t),i=n(e);return o===i&&(r(o)?t===e:"array"===o?c(d).eq(t,e):"object"===o&&f(d).eq(t,e))})),h=function(){},p=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))}},m=function(t,e){return function(n){return t(e(n))}},g=function(t){return function(){return t}},v=function(t){return t};function b(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.concat(n);return t.apply(null,o)}}var y=function(t){return function(e){return!t(e)}},x=function(t){return function(){throw new Error(t)}},w=function(t){t()},C=g(!1),S=g(!0),k=function(){return O},O=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:C,isSome:C,isNone:S,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:n,orThunk:e,map:k,each:h,bind:k,exists:C,forall:S,filter:k,equals:t,equals_:t,toArray:function(){return[]},toString:g("none()")};return r}(),_=function(t){var e=g(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:S,isNone:C,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return _(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:O},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(C,(function(e){return n(t,e)}))}};return o},A=function(t){return null===t||void 0===t?O:_(t)},E={some:_,none:k,from:A},T=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},D=function(t){return function(e){return T(e)===t}},I=function(t){return function(e){return typeof e===t}},B=function(t){return function(e){return t===e}},L=D("string"),N=D("object"),P=D("array"),M=B(null),j=I("boolean"),R=B(void 0),$=function(t){return null===t||void 0===t},F=function(t){return!$(t)},V=I("function"),H=I("number"),z=Array.prototype.slice,U=Array.prototype.indexOf,W=Array.prototype.push,q=function(t,e){return U.call(t,e)},G=function(t,e){var n=q(t,e);return-1===n?E.none():E.some(n)},Y=function(t,e){return q(t,e)>-1},X=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return!0}return!1},K=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},Z=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},J=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];e(r,n)}},Q=function(t,e){for(var n=[],r=[],o=0,i=t.length;o<i;o++){var a=t[o],u=e(a,o)?n:r;u.push(a)}return{pass:n,fail:r}},tt=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},et=function(t,e,n){return J(t,(function(t){n=e(n,t)})),n},nt=function(t,e,n){return Z(t,(function(t){n=e(n,t)})),n},rt=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return E.some(i);if(n(i,r))break}return E.none()},ot=function(t,e){return rt(t,e,C)},it=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return E.some(n)}return E.none()},at=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!P(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);W.apply(e,t[n])}return e},ut=function(t,e){return at(K(t,e))},st=function(t,e){for(var n=0,r=t.length;n<r;++n){var o=t[n];if(!0!==e(o,n))return!1}return!0},ct=function(t){var e=z.call(t,0);return e.reverse(),e},lt=function(t,e){return tt(t,(function(t){return!Y(e,t)}))},ft=function(t,e){for(var n={},r=0,o=t.length;r<o;r++){var i=t[r];n[String(i)]=e(i,r)}return n},dt=function(t,e){var n=z.call(t,0);return n.sort(e),n},ht=function(t,e){return e>=0&&e<t.length?E.some(t[e]):E.none()},pt=function(t){return ht(t,0)},mt=function(t){return ht(t,t.length-1)},gt=V(Array.from)?Array.from:function(t){return z.call(t)},vt=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return E.none()},bt=Object.keys,yt=Object.hasOwnProperty,xt=function(t,e){for(var n=bt(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},wt=function(t,e){return Ct(t,(function(t,n){return{k:n,v:e(t,n)}}))},Ct=function(t,e){var n={};return xt(t,(function(t,r){var o=e(t,r);n[o.k]=o.v})),n},St=function(t){return function(e,n){t[n]=e}},kt=function(t,e,n,r){var o={};return xt(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},Ot=function(t,e){var n={},r={};return kt(t,e,St(n),St(r)),{t:n,f:r}},_t=function(t,e){var n={};return kt(t,e,St(n),h),n},At=function(t,e){var n=[];return xt(t,(function(t,r){n.push(e(t,r))})),n},Et=function(t){return At(t,(function(t){return t}))},Tt=function(t,e){return Dt(t,e)?E.from(t[e]):E.none()},Dt=function(t,e){return yt.call(t,e)},It=function(t,e){return Dt(t,e)&&void 0!==t[e]&&null!==t[e]},Bt=function(t,e,n){return void 0===n&&(n=d),f(n).eq(t,e)},Lt=Array.isArray,Nt=function(t){if(Lt(t))return t;for(var e=[],n=0,r=t.length;n<r;n++)e[n]=t[n];return e},Pt=function(t,e,n){var r,o;if(!t)return!1;if(n=n||t,void 0!==t.length){for(r=0,o=t.length;r<o;r++)if(!1===e.call(n,t[r],r,t))return!1}else for(r in t)if(t.hasOwnProperty(r)&&!1===e.call(n,t[r],r,t))return!1;return!0},Mt=function(t,e){var n=[];return Pt(t,(function(r,o){n.push(e(r,o,t))})),n},jt=function(t,e){var n=[];return Pt(t,(function(r,o){e&&!e(r,o,t)||n.push(r)})),n},Rt=function(t,e){if(t)for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},$t=function(t,e,n,r){for(var o=R(n)?t[0]:n,i=0;i<t.length;i++)o=e.call(r,o,t[i],i);return o},Ft=function(t,e,n){var r,o;for(r=0,o=t.length;r<o;r++)if(e.call(n,t[r],r,t))return r;return-1},Vt=function(t){return t[t.length-1]},Ht=function(){return Ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ht.apply(this,arguments)};function zt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function Ut(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}var Wt=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}},qt=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),u=a||r("(pointer:coarse)"),s=o||!i&&a&&r("(min-device-width:768px)"),c=i||a&&!s,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!c&&!s&&!l;return{isiPad:g(o),isiPhone:g(i),isTablet:g(s),isPhone:g(c),isTouch:g(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:g(l),isDesktop:g(f)}},Gt=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},Yt=function(t,e){var n=Gt(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return Zt(r(1),r(2))},Xt=function(t,e){var n=String(e).toLowerCase();return 0===t.length?Kt():Yt(t,n)},Kt=function(){return Zt(0,0)},Zt=function(t,e){return{major:t,minor:e}},Jt={nu:Zt,detect:Xt,unknown:Kt},Qt=function(t,e){var n=String(e).toLowerCase();return ot(t,(function(t){return t.search(n)}))},te=function(t,e){return Qt(t,e).map((function(t){var n=Jt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},ee=function(t,e){return Qt(t,e).map((function(t){var n=Jt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},ne={detectBrowser:te,detectOs:ee},re=function(t,e){return t.substring(e)},oe=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},ie=function(t,e){return ue(t,e)?re(t,e.length):t},ae=function(t,e){return-1!==t.indexOf(e)},ue=function(t,e){return oe(t,e,0)},se=function(t){return function(e){return e.replace(t,"")}},ce=se(/^\s+|\s+$/g),le=se(/^\s+/g),fe=se(/\s+$/g),de=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,he=function(t){return function(e){return ae(e,t)}},pe=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return ae(t,"edge/")&&ae(t,"chrome")&&ae(t,"safari")&&ae(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,de],search:function(t){return ae(t,"chrome")&&!ae(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return ae(t,"msie")||ae(t,"trident")}},{name:"Opera",versionRegexes:[de,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:he("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:he("firefox")},{name:"Safari",versionRegexes:[de,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(ae(t,"safari")||ae(t,"mobile/"))&&ae(t,"applewebkit")}}],me=[{name:"Windows",search:he("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return ae(t,"iphone")||ae(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:he("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:he("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:he("linux"),versionRegexes:[]},{name:"Solaris",search:he("sunos"),versionRegexes:[]},{name:"FreeBSD",search:he("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:he("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ge={browsers:g(pe),oses:g(me)},ve="Edge",be="Chrome",ye="IE",xe="Opera",we="Firefox",Ce="Safari",Se=function(){return ke({current:void 0,version:Jt.unknown()})},ke=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(ve),isChrome:r(be),isIE:r(ye),isOpera:r(xe),isFirefox:r(we),isSafari:r(Ce)}},Oe={unknown:Se,nu:ke,edge:g(ve),chrome:g(be),ie:g(ye),opera:g(xe),firefox:g(we),safari:g(Ce)},_e="Windows",Ae="iOS",Ee="Android",Te="Linux",De="OSX",Ie="Solaris",Be="FreeBSD",Le="ChromeOS",Ne=function(){return Pe({current:void 0,version:Jt.unknown()})},Pe=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(_e),isiOS:r(Ae),isAndroid:r(Ee),isOSX:r(De),isLinux:r(Te),isSolaris:r(Ie),isFreeBSD:r(Be),isChromeOS:r(Le)}},Me={unknown:Ne,nu:Pe,windows:g(_e),ios:g(Ae),android:g(Ee),linux:g(Te),osx:g(De),solaris:g(Ie),freebsd:g(Be),chromeos:g(Le)},je=function(t,e){var n=ge.browsers(),r=ge.oses(),o=ne.detectBrowser(n,t).fold(Oe.unknown,Oe.nu),i=ne.detectOs(r,t).fold(Me.unknown,Me.nu),a=qt(i,o,t,e);return{browser:o,os:i,deviceType:a}},Re={detect:je},$e=function(t){return window.matchMedia(t).matches},Fe=Wt((function(){return Re.detect(navigator.userAgent,$e)})),Ve=function(){return Fe()},He=navigator.userAgent,ze=Ve(),Ue=ze.browser,We=ze.os,qe=ze.deviceType,Ge=/WebKit/.test(He)&&!Ue.isEdge(),Ye="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Xe=-1!==He.indexOf("Windows Phone"),Ke={opera:Ue.isOpera(),webkit:Ge,ie:!(!Ue.isIE()&&!Ue.isEdge())&&Ue.version.major,gecko:Ue.isFirefox(),mac:We.isOSX()||We.isiOS(),iOS:qe.isiPad()||qe.isiPhone(),android:We.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ue.isIE()?document.documentMode||7:10,fileApi:Ye,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ue.isIE(),desktop:qe.isDesktop(),windowsPhone:Xe,browser:{current:Ue.current,version:Ue.version,isChrome:Ue.isChrome,isEdge:Ue.isEdge,isFirefox:Ue.isFirefox,isIE:Ue.isIE,isOpera:Ue.isOpera,isSafari:Ue.isSafari},os:{current:We.current,version:We.version,isAndroid:We.isAndroid,isChromeOS:We.isChromeOS,isFreeBSD:We.isFreeBSD,isiOS:We.isiOS,isLinux:We.isLinux,isOSX:We.isOSX,isSolaris:We.isSolaris,isWindows:We.isWindows},deviceType:{isDesktop:qe.isDesktop,isiPad:qe.isiPad,isiPhone:qe.isiPhone,isPhone:qe.isPhone,isTablet:qe.isTablet,isTouch:qe.isTouch,isWebView:qe.isWebView}},Ze=/^\s*|\s*$/g,Je=function(t){return null===t||void 0===t?"":(""+t).replace(Ze,"")},Qe=function(t,e){return e?!("array"!==e||!Lt(t))||typeof t===e:void 0!==t},tn=function(t,e,n){var r;t=t||[],e=e||",","string"===typeof t&&(t=t.split(e)),n=n||{},r=t.length;while(r--)n[t[r]]={};return n},en=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},nn=function(t,e,n){var r,o,i,a=this,u=0;t=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(t);var s=t[3].match(/(^|\.)(\w+)$/i)[2],c=a.createNS(t[3].replace(/\.\w+$/,""),n);if(!c[s]){if("static"===t[2])return c[s]=e,void(this.onCreate&&this.onCreate(t[2],t[3],c[s]));e[s]||(e[s]=function(){},u=1),c[s]=e[s],a.extend(c[s].prototype,e),t[5]&&(r=a.resolve(t[5]).prototype,o=t[5].match(/\.(\w+)$/i)[1],i=c[s],c[s]=u?function(){return r[o].apply(this,arguments)}:function(){return this.parent=r[o],i.apply(this,arguments)},c[s].prototype[s]=c[s],a.each(r,(function(t,e){c[s].prototype[e]=r[e]})),a.each(e,(function(t,e){r[e]?c[s].prototype[e]=function(){return this.parent=r[e],t.apply(this,arguments)}:e!==s&&(c[s].prototype[e]=t)}))),a.each(e.static,(function(t,e){c[s][e]=t}))}},rn=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var o=e[r];for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];void 0!==a&&(t[i]=a)}}return t},on=function(t,e,n,r){r=r||this,t&&(n&&(t=t[n]),Pt(t,(function(t,o){if(!1===e.call(r,t,o,n))return!1;on(t,e,n,r)})))},an=function(t,e){var n,r;for(e=e||window,t=t.split("."),n=0;n<t.length;n++)r=t[n],e[r]||(e[r]={}),e=e[r];return e},un=function(t,e){var n,r;for(e=e||window,t=t.split("."),n=0,r=t.length;n<r;n++)if(e=e[t[n]],!e)break;return e},sn=function(t,e){return!t||Qe(t,"array")?t:Mt(t.split(e||","),Je)},cn=function(t){var e=Ke.cacheSuffix;return e&&(t+=(-1===t.indexOf("?")?"?":"&")+e),t},ln={trim:Je,isArray:Lt,is:Qe,toArray:Nt,makeMap:tn,each:Pt,map:Mt,grep:jt,inArray:Rt,hasOwn:en,extend:rn,create:nn,walk:on,createNS:an,resolve:un,explode:sn,_addCacheSuffix:cn},fn=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return pn(r.childNodes[0])},dn=function(t,e){var n=e||document,r=n.createElement(t);return pn(r)},hn=function(t,e){var n=e||document,r=n.createTextNode(t);return pn(r)},pn=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},mn=function(t,e,n){return E.from(t.dom.elementFromPoint(e,n)).map(pn)},gn={fromHtml:fn,fromTag:dn,fromText:hn,fromDom:pn,fromPoint:mn},vn=function(t,e){var n=[],r=function(t){return n.push(t),e(t)},o=e(t);do{o=o.bind(r)}while(o.isSome());return n},bn=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},yn=function(t,e){return bn(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},xn=8,wn=9,Cn=11,Sn=1,kn=3,On=function(t,e){var n=t.dom;if(n.nodeType!==Sn)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},_n=function(t){return t.nodeType!==Sn&&t.nodeType!==wn&&t.nodeType!==Cn||0===t.childElementCount},An=function(t,e){var n=void 0===e?document:e.dom;return _n(n)?[]:K(n.querySelectorAll(t),gn.fromDom)},En=function(t,e){var n=void 0===e?document:e.dom;return _n(n)?E.none():E.from(n.querySelector(t)).map(gn.fromDom)},Tn=function(t,e){return t.dom===e.dom},Dn=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},In=function(t,e){return yn(t.dom,e.dom)},Bn=function(t,e){return Ve().browser.isIE()?In(t,e):Dn(t,e)},Ln=("undefined"!==typeof window?window:Function("return this;")(),function(t){var e=t.dom.nodeName;return e.toLowerCase()}),Nn=function(t){return t.dom.nodeType},Pn=function(t){return function(e){return Nn(e)===t}},Mn=function(t){return Nn(t)===xn||"#comment"===Ln(t)},jn=Pn(Sn),Rn=Pn(kn),$n=Pn(wn),Fn=Pn(Cn),Vn=function(t){return gn.fromDom(t.dom.ownerDocument)},Hn=function(t){return $n(t)?t:Vn(t)},zn=function(t){return gn.fromDom(Hn(t).dom.documentElement)},Un=function(t){return gn.fromDom(Hn(t).dom.defaultView)},Wn=function(t){return E.from(t.dom.parentNode).map(gn.fromDom)},qn=function(t,e){var n=V(e)?e:C,r=t.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=gn.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},Gn=function(t){var e=function(e){return tt(e,(function(e){return!Tn(t,e)}))};return Wn(t).map(Jn).map(e).getOr([])},Yn=function(t){return E.from(t.dom.previousSibling).map(gn.fromDom)},Xn=function(t){return E.from(t.dom.nextSibling).map(gn.fromDom)},Kn=function(t){return ct(vn(t,Yn))},Zn=function(t){return vn(t,Xn)},Jn=function(t){return K(t.dom.childNodes,gn.fromDom)},Qn=function(t,e){var n=t.dom.childNodes;return E.from(n[e]).map(gn.fromDom)},tr=function(t){return Qn(t,0)},er=function(t){return Qn(t,t.dom.childNodes.length-1)},nr=function(t){return t.dom.childNodes.length},rr=function(t){var e=t.dom.head;if(null===e||void 0===e)throw new Error("Head is not available yet");return gn.fromDom(e)},or=function(t){return Fn(t)},ir=V(Element.prototype.attachShadow)&&V(Node.prototype.getRootNode),ar=g(ir),ur=ir?function(t){return gn.fromDom(t.dom.getRootNode())}:Hn,sr=function(t){return or(t)?t:rr(Hn(t))},cr=function(t){var e=ur(t);return or(e)?E.some(e):E.none()},lr=function(t){return gn.fromDom(t.dom.host)},fr=function(t){if(ar()&&F(t.target)){var e=gn.fromDom(t.target);if(jn(e)&&dr(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return pt(n)}}return E.from(t.target)},dr=function(t){return F(t.dom.shadowRoot)},hr=function(t,e){var n=Wn(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},pr=function(t,e){var n=Xn(t);n.fold((function(){var n=Wn(t);n.each((function(t){gr(t,e)}))}),(function(t){hr(t,e)}))},mr=function(t,e){var n=tr(t);n.fold((function(){gr(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},gr=function(t,e){t.dom.appendChild(e.dom)},vr=function(t,e){hr(t,e),gr(e,t)},br=function(t,e){Z(e,(function(e){hr(t,e)}))},yr=function(t,e){Z(e,(function(e){gr(t,e)}))},xr=function(t){t.dom.textContent="",Z(Jn(t),(function(t){wr(t)}))},wr=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},Cr=function(t){var e=Jn(t);e.length>0&&br(t,e),wr(t)},Sr=function(t){var e=Rn(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return cr(gn.fromDom(e)).fold((function(){return n.body.contains(e)}),m(Sr,lr))},kr=function(t,e){var n=function(n,r){return kr(t+n,e+r)};return{left:t,top:e,translate:n}},Or=kr,_r=function(t){var e=t.getBoundingClientRect();return Or(e.left,e.top)},Ar=function(t,e){return void 0!==t?t:void 0!==e?e:0},Er=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,o=e.documentElement;if(n===t.dom)return Or(n.offsetLeft,n.offsetTop);var i=Ar(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=Ar(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),u=Ar(o.clientTop,n.clientTop),s=Ar(o.clientLeft,n.clientLeft);return Tr(t).translate(a-s,i-u)},Tr=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?Or(r.offsetLeft,r.offsetTop):Sr(t)?_r(e):Or(0,0)},Dr=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return Or(n,r)},Ir=function(t,e,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(t,e)},Br=function(t,e){var n=Ve().browser.isSafari();n&&V(t.dom.scrollIntoViewIfNeeded)?t.dom.scrollIntoViewIfNeeded(!1):t.dom.scrollIntoView(e)},Lr=function(t){var e=void 0===t?window:t;return E.from(e["visualViewport"])},Nr=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Pr=function(t){var e=void 0===t?window:t,n=e.document,r=Dr(gn.fromDom(n));return Lr(e).fold((function(){var t=e.document.documentElement,n=t.clientWidth,o=t.clientHeight;return Nr(r.left,r.top,n,o)}),(function(t){return Nr(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)}))},Mr=function(t){return function(e){return!!e&&e.nodeType===t}},jr=function(t){return!!t&&!Object.getPrototypeOf(t)},Rr=Mr(1),$r=function(t){var e=t.map((function(t){return t.toLowerCase()}));return function(t){if(t&&t.nodeName){var n=t.nodeName.toLowerCase();return Y(e,n)}return!1}},Fr=function(t,e){var n=e.toLowerCase().split(" ");return function(e){var r,o;if(Rr(e))for(r=0;r<n.length;r++){var i=e.ownerDocument.defaultView.getComputedStyle(e,null);if(o=i?i.getPropertyValue(t):null,o===n[r])return!0}return!1}},Vr=function(t){return function(e){return Rr(e)&&e.hasAttribute(t)}},Hr=function(t,e){return function(n){return Rr(n)&&n.getAttribute(t)===e}},zr=function(t){return Rr(t)&&t.hasAttribute("data-mce-bogus")},Ur=function(t){return Rr(t)&&"all"===t.getAttribute("data-mce-bogus")},Wr=function(t){return Rr(t)&&"TABLE"===t.tagName},qr=function(t){return function(e){if(Rr(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},Gr=$r(["textarea","input"]),Yr=Mr(3),Xr=Mr(8),Kr=Mr(9),Zr=Mr(11),Jr=$r(["br"]),Qr=$r(["img"]),to=qr("true"),eo=qr("false"),no=$r(["td","th"]),ro=$r(["video","audio","object","embed"]),oo=function(t){return void 0!==t.style&&V(t.style.getPropertyValue)},io=function(t,e,n){if(!(L(n)||j(n)||H(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},ao=function(t,e,n){io(t.dom,e,n)},uo=function(t,e){var n=t.dom;xt(e,(function(t,e){io(n,e,t)}))},so=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},co=function(t,e){return E.from(so(t,e))},lo=function(t,e){var n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(e)},fo=function(t,e){t.dom.removeAttribute(e)},ho=function(t){return nt(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},po=function(t,e,n){if(!L(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);oo(t)&&t.style.setProperty(e,n)},mo=function(t,e){var n=t.dom;xt(e,(function(t,e){po(n,e,t)}))},go=function(t,e){var n=t.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(e);return""!==o||Sr(t)?o:vo(n,e)},vo=function(t,e){return oo(t)?t.style.getPropertyValue(e):""},bo=function(t,e){var n=t.dom,r=vo(n,e);return E.from(r).filter((function(t){return t.length>0}))},yo=function(t){var e={},n=t.dom;if(oo(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);e[o]=n.style[o]}return e},xo=function(t){return t.dom.offsetWidth},wo=Ve().browser,Co=function(t){return ot(t,jn)},So=function(t){return wo.isFirefox()&&"table"===Ln(t)?Co(Jn(t)).filter((function(t){return"caption"===Ln(t)})).bind((function(t){return Co(Zn(t)).map((function(e){var n=e.dom.offsetTop,r=t.dom.offsetTop,o=t.dom.offsetHeight;return n<=r?-o:0}))})).getOr(0):0},ko=function(t,e){return t.children&&Y(t.children,e)},Oo=function(t,e,n){var r,o,i=0,a=0,u=t.ownerDocument;if(n=n||t,e){if(n===t&&e.getBoundingClientRect&&"static"===go(gn.fromDom(t),"position"))return o=e.getBoundingClientRect(),i=o.left+(u.documentElement.scrollLeft||t.scrollLeft)-u.documentElement.clientLeft,a=o.top+(u.documentElement.scrollTop||t.scrollTop)-u.documentElement.clientTop,{x:i,y:a};r=e;while(r&&r!==n&&r.nodeType&&!ko(r,n))i+=r.offsetLeft||0,a+=r.offsetTop||0,r=r.offsetParent;r=e.parentNode;while(r&&r!==n&&r.nodeType&&!ko(r,n))i-=r.scrollLeft||0,a-=r.scrollTop||0,r=r.parentNode;a+=So(gn.fromDom(e))}return{x:i,y:a}},_o={},Ao={exports:_o};(function(t,n,r,o){(function(o){if("object"===typeof n&&"undefined"!==typeof r)r.exports=o();else if("function"===typeof t&&t.amd)t([],o);else{var i;i="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:this,i.EphoxContactWrapper=o()}})((function(){return function(){function t(e,n,r){function i(u,s){if(!n[u]){if(!e[u]){var c="function"==typeof o&&o;if(!s&&c)return c(u,!0);if(a)return a(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[u]={exports:{}};e[u][0].call(f.exports,(function(t){var n=e[u][1][t];return i(n||t)}),f,f.exports,t,e,n,r)}return n[u].exports}for(var a="function"==typeof o&&o,u=0;u<r.length;u++)i(r[u]);return i}return t}()({1:[function(t,e,n){var r,o,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function c(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{return o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(t){r=a}try{o="function"===typeof clearTimeout?clearTimeout:u}catch(t){o=u}})();var l,f=[],d=!1,h=-1;function p(){d&&l&&(d=!1,l.length?f=l.concat(f):h=-1,f.length&&m())}function m(){if(!d){var t=s(p);d=!0;var e=f.length;while(e){l=f,f=[];while(++h<e)l&&l[h].run();h=-1,e=f.length}l=null,d=!1,c(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new g(t,e)),1!==f.length||d||s(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(t,e,n){(function(t){(function(n){var r=setTimeout;function o(){}function i(t,e){return function(){t.apply(e,arguments)}}function a(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function u(t,e){while(3===t._state)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(o){return void c(e.promise,o)}s(e.promise,r)}else(1===t._state?s:c)(e.promise,t._value)}))):t._deferreds.push(e)}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,void l(t);if("function"===typeof n)return void d(i(n,e),t)}t._state=1,t._value=e,l(t)}catch(r){c(t,r)}}function c(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&a._immediateFn((function(){t._handled||a._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)u(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t((function(t){n||(n=!0,s(e,t))}),(function(t){n||(n=!0,c(e,t))}))}catch(r){if(n)return;n=!0,c(e,r)}}a.prototype["catch"]=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var n=new this.constructor(o);return u(this,new f(t,e,n)),n},a.all=function(t){var e=Array.prototype.slice.call(t);return new a((function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(t){o(i,t)}),n)}e[i]=a,0===--r&&t(e)}catch(s){n(s)}}for(var i=0;i<e.length;i++)o(i,e[i])}))},a.resolve=function(t){return t&&"object"===typeof t&&t.constructor===a?t:new a((function(e){e(t)}))},a.reject=function(t){return new a((function(e,n){n(t)}))},a.race=function(t){return new a((function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)}))},a._immediateFn="function"===typeof t?function(e){t(e)}:function(t){r(t,0)},a._unhandledRejectionFn=function(t){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},a._setImmediateFn=function(t){a._immediateFn=t},a._setUnhandledRejectionFn=function(t){a._unhandledRejectionFn=t},"undefined"!==typeof e&&e.exports?e.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,t("timers").setImmediate)},{timers:3}],3:[function(t,e,n){(function(e,r){var o=t("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,u={},s=0;function c(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new c(i.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(i.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"===typeof e?e:function(t){var e=s++,r=!(arguments.length<2)&&a.call(arguments,1);return u[e]=!0,o((function(){u[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"===typeof r?r:function(t){delete u[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,e,n){var r=t("promise-polyfill"),o=function(){return"undefined"!==typeof window?window:Function("return this;")()}();e.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,_o,Ao,void 0);var Eo=Ao.exports.boltExport,To=function(t){var e=E.none(),n=[],r=function(t){return To((function(e){o((function(n){e(t(n))}))}))},o=function(t){a()?s(t):n.push(t)},i=function(t){a()||(e=E.some(t),u(n),n=[])},a=function(){return e.isSome()},u=function(t){Z(t,s)},s=function(t){e.each((function(e){setTimeout((function(){t(e)}),0)}))};return t(i),{get:o,map:r,isReady:a}},Do=function(t){return To((function(e){e(t)}))},Io={nu:To,pure:Do},Bo=function(t){setTimeout((function(){throw t}),0)},Lo=function(t){var e=function(e){t().then(e,Bo)},n=function(e){return Lo((function(){return t().then(e)}))},r=function(e){return Lo((function(){return t().then((function(t){return e(t).toPromise()}))}))},o=function(e){return Lo((function(){return t().then((function(){return e.toPromise()}))}))},i=function(){return Io.nu(e)},a=function(){var e=null;return Lo((function(){return null===e&&(e=t()),e}))},u=t;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:e}},No=function(t){return Lo((function(){return new Eo(t)}))},Po=function(t){return Lo((function(){return Eo.resolve(t)}))},Mo={nu:No,pure:Po},jo=function(t,e){return e((function(e){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=t.length&&e(n)}};0===t.length?e([]):Z(t,(function(t,e){t.get(o(e))}))}))},Ro=function(t){return jo(t,Mo.nu)},$o=function(t){var e=function(e){return t===e},n=function(e){return $o(t)},r=function(e){return $o(t)},o=function(e){return $o(e(t))},i=function(e){return $o(t)},a=function(e){e(t)},u=function(e){return e(t)},s=function(e,n){return n(t)},c=function(e){return e(t)},l=function(e){return e(t)},f=function(){return E.some(t)};return{is:e,isValue:S,isError:C,getOr:g(t),getOrThunk:g(t),getOrDie:g(t),or:n,orThunk:r,fold:s,map:o,mapError:i,each:a,bind:u,exists:c,forall:l,toOptional:f}},Fo=function(t){var e=function(t){return t()},n=function(){return x(String(t))()},r=function(t){return t},o=function(t){return t()},i=function(e){return Fo(t)},a=function(e){return Fo(e(t))},u=function(e){return Fo(t)},s=function(e,n){return e(t)};return{is:C,isValue:C,isError:S,getOr:v,getOrThunk:e,getOrDie:n,or:r,orThunk:o,fold:s,map:i,mapError:a,each:h,bind:u,exists:C,forall:S,toOptional:E.none}},Vo=function(t,e){return t.fold((function(){return Fo(e)}),$o)},Ho={value:$o,error:Fo,fromOption:Vo},zo=function(t){if(!P(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return Z(t,(function(r,o){var i=bt(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!P(u))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){var n=arguments.length;if(n!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+n);for(var r=new Array(n),i=0;i<r.length;i++)r[i]=arguments[i];var s=function(t){var n=bt(t);if(e.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+n.join(","));var o=st(e,(function(t){return Y(n,t)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,r)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var e=arguments[o];return e.apply(null,r)},match:s,log:function(t){console.log(t,{constructors:e,constructor:a,params:r})}}}})),n},Uo={generate:zo},Wo=(Uo.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(t){return t.fold(v,v)});function qo(t,e,n,r,o){return t(n,r)?E.some(n):V(o)&&o(n)?E.none():e(n,r,o)}var Go,Yo=function(t,e,n){var r=t.dom,o=V(n)?n:C;while(r.parentNode){r=r.parentNode;var i=gn.fromDom(r);if(e(i))return E.some(i);if(o(i))break}return E.none()},Xo=function(t,e,n){var r=function(t,e){return e(t)};return qo(r,Yo,t,e,n)},Ko=function(t,e){var n=t.dom;return n.parentNode?Zo(gn.fromDom(n.parentNode),(function(n){return!Tn(t,n)&&e(n)})):E.none()},Zo=function(t,e){var n=function(t){return e(gn.fromDom(t))},r=ot(t.dom.childNodes,n);return r.map(gn.fromDom)},Jo=function(t,e,n){return Yo(t,(function(t){return On(t,e)}),n)},Qo=function(t,e){return En(e,t)},ti=function(t,e,n){var r=function(t,e){return On(t,e)};return qo(r,Jo,t,e,n)},ei=function(){function t(t,e){return function(){t.apply(e,arguments)}}var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=function(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(e,t(i,this),t(a,this))},r=n.immediateFn||"function"===typeof setImmediate&&setImmediate||function(t){setTimeout(t,1)};function o(t){var e=this;null!==this._state?r((function(){var n=e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void t.reject(o)}t.resolve(r)}else(e._state?t.resolve:t.reject)(e._value)})):this._deferreds.push(t)}function i(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var n=e.then;if("function"===typeof n)return void c(t(n,e),t(i,this),t(a,this))}this._state=!0,this._value=e,u.call(this)}catch(r){a.call(this,r)}}function a(t){this._state=!1,this._value=t,u.call(this)}function u(){for(var t=0,e=this._deferreds.length;t<e;t++)o.call(this,this._deferreds[t]);this._deferreds=null}function s(t,e,n,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=n,this.reject=r}function c(t,e,n){var r=!1;try{t((function(t){r||(r=!0,e(t))}),(function(t){r||(r=!0,n(t))}))}catch(o){if(r)return;r=!0,n(o)}}return n.prototype.catch=function(t){return this.then(null,t)},n.prototype.then=function(t,e){var r=this;return new n((function(n,i){o.call(r,new s(t,e,n,i))}))},n.all=function(){var t=Array.prototype.slice.call(1===arguments.length&&e(arguments[0])?arguments[0]:arguments);return new n((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(t){o(i,t)}),n)}t[i]=a,0===--r&&e(t)}catch(s){n(s)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},n.resolve=function(t){return t&&"object"===typeof t&&t.constructor===n?t:new n((function(e){e(t)}))},n.reject=function(t){return new n((function(e,n){n(t)}))},n.race=function(t){return new n((function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)}))},n},ni=window.Promise?window.Promise:ei(),ri=function(t,e){var n,r=window.requestAnimationFrame,o=["ms","moz","webkit"],i=function(t){window.setTimeout(t,0)};for(n=0;n<o.length&&!r;n++)r=window[o[n]+"RequestAnimationFrame"];r||(r=i),r(t,e)},oi=function(t,e){return"number"!==typeof e&&(e=0),setTimeout(t,e)},ii=function(t,e){return"number"!==typeof e&&(e=1),setInterval(t,e)},ai=function(t){return clearTimeout(t)},ui=function(t){return clearInterval(t)},si=function(t,e){var n,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(n),n=oi((function(){t.apply(this,r)}),e)};return r.stop=function(){clearTimeout(n)},r},ci={requestAnimationFrame:function(t,e){Go?Go.then(t):Go=new ni((function(t){e||(e=document.body),ri(t,e)})).then(t)},setTimeout:oi,setInterval:ii,setEditorTimeout:function(t,e,n){return oi((function(){t.removed||e()}),n)},setEditorInterval:function(t,e,n){var r=ii((function(){t.removed?clearInterval(r):e()}),n);return r},debounce:si,throttle:si,clearInterval:ui,clearTimeout:ai};function li(t,e){void 0===e&&(e={});var n=0,r={},o=gn.fromDom(t),i=Hn(o),a=e.maxLoadTime||5e3,u=function(t){e.referrerPolicy=t},s=function(t){gr(sr(o),t)},c=function(t){var e=sr(o);Qo(e,"#"+t).each(wr)},l=function(t){return Tt(r,t).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},f=function(n,o,u){var c,f=ln._addCacheSuffix(n),d=l(f);r[f]=d,d.count++;var h=function(t,e){var n=t.length;while(n--)t[n]();d.status=e,d.passed=[],d.failed=[],c&&(c.onload=null,c.onerror=null,c=null)},p=function(){return h(d.passed,2)},m=function(){return h(d.failed,3)},g=function(t,e){t()||(Date.now()-y<a?ci.setTimeout(e):m())},v=function(){g((function(){var e=t.styleSheets,n=e.length;while(n--){var r=e[n],o=r.ownerNode;if(o&&o.id===c.id)return p(),!0}return!1}),v)};if(o&&d.passed.push(o),u&&d.failed.push(u),1!==d.status)if(2!==d.status)if(3!==d.status){d.status=1;var b=gn.fromTag("link",i.dom);uo(b,{rel:"stylesheet",type:"text/css",id:d.id});var y=Date.now();e.contentCssCors&&ao(b,"crossOrigin","anonymous"),e.referrerPolicy&&ao(b,"referrerpolicy",e.referrerPolicy),c=b.dom,c.onload=v,c.onerror=m,s(b),ao(b,"href",f)}else m();else p()},d=function(t){return Mo.nu((function(e){f(t,p(e,g(Ho.value(t))),p(e,g(Ho.error(t))))}))},h=function(t,e,n){Ro(K(t,d)).get((function(t){var r=Q(t,(function(t){return t.isValue()}));r.fail.length>0?n(r.fail.map(Wo)):e(r.pass.map(Wo))}))},m=function(t){var e=ln._addCacheSuffix(t);Tt(r,e).each((function(t){var n=--t.count;0===n&&(delete r[e],c(t.id))}))},v=function(t){Z(t,(function(t){m(t)}))};return{load:f,loadAll:h,unload:m,unloadAll:v,_setReferrerPolicy:u}}var fi=function(){var t=new WeakMap,e=function(e,n){var r=ur(e),o=r.dom;return E.from(t.get(o)).getOrThunk((function(){var e=li(o,n);return t.set(o,e),e}))};return{forElement:e}},di=fi(),hi=function(){function t(t,e){this.node=t,this.rootNode=e,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return t.prototype.current=function(){return this.node},t.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},t.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},t.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},t.prototype.findSibling=function(t,e,n,r){var o,i;if(t){if(!r&&t[e])return t[e];if(t!==this.rootNode){if(o=t[n],o)return o;for(i=t.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n],o)return o}}},t.prototype.findPreviousNode=function(t,e,n,r){var o,i,a;if(t){if(o=t[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[e];a;a=a[e])if(!a[e])return a;return o}if(i=t.parentNode,i&&i!==this.rootNode)return i}},t}(),pi=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],mi=["td","th"],gi=["thead","tbody","tfoot"],vi=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],bi=["h1","h2","h3","h4","h5","h6"],yi=["li","dd","dt"],xi=["ul","ol","dl"],wi=["pre","script","textarea","style"],Ci=function(t){var e;return function(n){return e=e||ft(t,S),e.hasOwnProperty(Ln(n))}},Si=Ci(bi),ki=Ci(pi),Oi=function(t){return"table"===Ln(t)},_i=function(t){return jn(t)&&!ki(t)},Ai=function(t){return jn(t)&&"br"===Ln(t)},Ei=Ci(vi),Ti=Ci(xi),Di=Ci(yi),Ii=Ci(gi),Bi=Ci(mi),Li=Ci(wi),Ni=function(t,e,n){return Jo(t,e,n).isSome()},Pi="\ufeff",Mi=" ",ji=function(t){return t===Pi},Ri=function(t){return t.replace(/\uFEFF/g,"")},$i=Pi,Fi=ji,Vi=Ri,Hi=Rr,zi=Yr,Ui=function(t){return zi(t)&&(t=t.parentNode),Hi(t)&&t.hasAttribute("data-mce-caret")},Wi=function(t){return zi(t)&&Fi(t.data)},qi=function(t){return Ui(t)||Wi(t)},Gi=function(t){return t.firstChild!==t.lastChild||!Jr(t.firstChild)},Yi=function(t,e){var n,r=t.ownerDocument,o=r.createTextNode($i),i=t.parentNode;if(e){if(n=t.previousSibling,zi(n)){if(qi(n))return n;if(ta(n))return n.splitText(n.data.length-1)}i.insertBefore(o,t)}else{if(n=t.nextSibling,zi(n)){if(qi(n))return n;if(Qi(n))return n.splitText(1),n}t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o)}return o},Xi=function(t){var e=t.container();return!!Yr(e)&&(e.data.charAt(t.offset())===$i||t.isAtStart()&&Wi(e.previousSibling))},Ki=function(t){var e=t.container();return!!Yr(e)&&(e.data.charAt(t.offset()-1)===$i||t.isAtEnd()&&Wi(e.nextSibling))},Zi=function(){var t=document.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},Ji=function(t,e,n){var r=e.ownerDocument,o=r.createElement(t);o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(Zi());var i=e.parentNode;return n?i.insertBefore(o,e):e.nextSibling?i.insertBefore(o,e.nextSibling):i.appendChild(o),o},Qi=function(t){return zi(t)&&t.data[0]===$i},ta=function(t){return zi(t)&&t.data[t.data.length-1]===$i},ea=function(t){var e=t.getElementsByTagName("br"),n=e[e.length-1];zr(n)&&n.parentNode.removeChild(n)},na=function(t){return t&&t.hasAttribute("data-mce-caret")?(ea(t),t.removeAttribute("data-mce-caret"),t.removeAttribute("data-mce-bogus"),t.removeAttribute("style"),t.removeAttribute("_moz_abspos"),t):null},ra=function(t){return Ui(t.startContainer)},oa=to,ia=eo,aa=Jr,ua=Yr,sa=$r(["script","style","textarea"]),ca=$r(["img","input","textarea","hr","iframe","video","audio","object","embed"]),la=$r(["table"]),fa=qi,da=function(t){return!fa(t)&&(ua(t)?!sa(t.parentNode):ca(t)||aa(t)||la(t)||pa(t))},ha=function(t){return Rr(t)&&"true"===t.getAttribute("unselectable")},pa=function(t){return!1===ha(t)&&ia(t)},ma=function(t,e){for(t=t.parentNode;t&&t!==e;t=t.parentNode){if(pa(t))return!1;if(oa(t))return!0}return!0},ga=function(t){return!!pa(t)&&!0!==nt(gt(t.getElementsByTagName("*")),(function(t,e){return t||oa(e)}),!1)},va=function(t){return ca(t)||ga(t)},ba=function(t,e){return da(t)&&ma(t,e)},ya=/^[ \t\r\n]*$/,xa=function(t){return ya.test(t)},wa=function(t,e){var n=gn.fromDom(e),r=gn.fromDom(t);return Ni(r,"pre,code",b(Tn,n))},Ca=function(t,e){return Yr(t)&&xa(t.data)&&!1===wa(t,e)},Sa=function(t){return Rr(t)&&"A"===t.nodeName&&!t.hasAttribute("href")&&(t.hasAttribute("name")||t.hasAttribute("id"))},ka=function(t,e){return da(t)&&!1===Ca(t,e)||Sa(t)||Oa(t)},Oa=Vr("data-mce-bookmark"),_a=Vr("data-mce-bogus"),Aa=Hr("data-mce-bogus","all"),Ea=function(t,e){var n,r=0;if(ka(t,t))return!1;if(n=t.firstChild,!n)return!0;var o=new hi(n,t);do{if(e){if(Aa(n)){n=o.next(!0);continue}if(_a(n)){n=o.next();continue}}if(Jr(n))r++,n=o.next();else{if(ka(n,t))return!1;n=o.next()}}while(n);return r<=1},Ta=function(t,e){return void 0===e&&(e=!0),Ea(t.dom,e)},Da=function(t){return"span"===t.nodeName.toLowerCase()},Ia=function(t,e){return F(t)&&(ka(t,e)||_i(gn.fromDom(t)))},Ba=function(t,e){var n=new hi(t,e).prev(!1),r=new hi(t,e).next(!1),o=R(n)||Ia(n,e),i=R(r)||Ia(r,e);return o&&i},La=function(t){return Da(t)&&"bookmark"===t.getAttribute("data-mce-type")},Na=function(t,e){return Yr(t)&&t.data.length>0&&Ba(t,e)},Pa=function(t){return!!Rr(t)&&t.childNodes.length>0},Ma=function(t){return Zr(t)||Kr(t)},ja=function(t,e,n){var r=n||e;if(Rr(e)&&La(e))return e;for(var o=e.childNodes,i=o.length-1;i>=0;i--)ja(t,o[i],r);if(Rr(e)){var a=e.childNodes;1===a.length&&La(a[0])&&e.parentNode.insertBefore(a[0],e)}return Ma(e)||ka(e,r)||Pa(e)||Na(e,r)||t.remove(e),e},Ra=ln.makeMap,$a=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fa=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Va=/[<>&\"\']/g,Ha=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,za={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Ua={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Wa={"<":"<",">":">","&":"&",""":'"',"'":"'"},qa=function(t){var e=gn.fromTag("div").dom;return e.innerHTML=t,e.textContent||e.innerText||t},Ga=function(t,e){var n,r,o,i={};if(t){for(t=t.split(","),e=e||10,n=0;n<t.length;n+=2)r=String.fromCharCode(parseInt(t[n],e)),Ua[r]||(o="&"+t[n+1]+";",i[r]=o,i[o]=r);return i}},Ya=Ga("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),Xa=function(t,e){return t.replace(e?$a:Fa,(function(t){return Ua[t]||t}))},Ka=function(t){return(""+t).replace(Va,(function(t){return Ua[t]||t}))},Za=function(t,e){return t.replace(e?$a:Fa,(function(t){return t.length>1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":Ua[t]||"&#"+t.charCodeAt(0)+";"}))},Ja=function(t,e,n){return n=n||Ya,t.replace(e?$a:Fa,(function(t){return Ua[t]||n[t]||t}))},Qa=function(t,e){var n=Ga(e)||Ya,r=function(t,e){return t.replace(e?$a:Fa,(function(t){return void 0!==Ua[t]?Ua[t]:void 0!==n[t]?n[t]:t.length>1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":"&#"+t.charCodeAt(0)+";"}))},o=function(t,e){return Ja(t,e,n)},i=Ra(t.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?e?o:Ja:i.numeric?Za:Xa},tu=function(t){return t.replace(Ha,(function(t,e){return e?(e="x"===e.charAt(0).toLowerCase()?parseInt(e.substr(1),16):parseInt(e,10),e>65535?(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e))):za[e]||String.fromCharCode(e)):Wa[t]||Ya[t]||qa(t)}))},eu={encodeRaw:Xa,encodeAllRaw:Ka,encodeNumeric:Za,encodeNamed:Ja,getEncodeFunc:Qa,decode:tu},nu={},ru={},ou=ln.makeMap,iu=ln.each,au=ln.extend,uu=ln.explode,su=ln.inArray,cu=function(t,e){return t=ln.trim(t),t?t.split(e||" "):[]},lu=function(t){var e,n,r,o,i,a,u={},s=function(t,n,r){var o,i,a,s=function(t,e){var n,r,o={};for(n=0,r=t.length;n<r;n++)o[t[n]]=e||{};return o};r=r||[],n=n||"","string"===typeof r&&(r=cu(r));var c=cu(t);o=c.length;while(o--)i=cu([e,n].join(" ")),a={attributes:s(i),attributesOrder:i,children:s(r,ru)},u[c[o]]=a},c=function(t,e){var n,r,o,i,a=cu(t);n=a.length;var s=cu(e);while(n--)for(r=u[a[n]],o=0,i=s.length;o<i;o++)r.attributes[s[o]]={},r.attributesOrder.push(s[o])};return nu[t]?nu[t]:(e="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==t&&(e+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==t&&(e+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),iu(cu(a),(function(t){s(t,"",r)})),i="center dir isindex noframes",n=[n,i].join(" "),o=[n,r].join(" "),iu(cu(i),(function(t){s(t,"",o)}))),o=o||[n,r].join(" "),s("html","manifest","head body"),s("head","","base command link meta noscript script style title"),s("title hr noscript br"),s("base","href target"),s("link","href rel media hreflang type sizes hreflang"),s("meta","name http-equiv content charset"),s("style","media type scoped"),s("script","src async defer type charset"),s("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),s("address dt dd div caption","",o),s("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),s("blockquote","cite",o),s("ol","reversed start type","li"),s("ul","","li"),s("li","value",o),s("dl","","dt dd"),s("a","href target rel media hreflang type",r),s("q","cite",r),s("ins del","cite datetime",o),s("img","src sizes srcset alt usemap ismap width height"),s("iframe","src name width height",o),s("embed","src type width height"),s("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),s("param","name value"),s("map","name",[o,"area"].join(" ")),s("area","alt coords shape href target rel media hreflang type"),s("table","border","caption colgroup thead tfoot tbody tr"+("html4"===t?" col":"")),s("colgroup","span","col"),s("col","span"),s("tbody thead tfoot","","tr"),s("tr","","td th"),s("td","colspan rowspan headers",o),s("th","colspan rowspan headers scope abbr",o),s("form","accept-charset action autocomplete enctype method name novalidate target",o),s("fieldset","disabled form name",[o,"legend"].join(" ")),s("label","form for",r),s("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),s("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===t?o:r),s("select","disabled form multiple name required size","option optgroup"),s("optgroup","disabled label","option"),s("option","disabled label selected value"),s("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),s("menu","type label",[o,"li"].join(" ")),s("noscript","",o),"html4"!==t&&(s("wbr"),s("ruby","",[r,"rt rp"].join(" ")),s("figcaption","",o),s("mark rt rp summary bdi","",r),s("canvas","width height",o),s("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),s("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),s("picture","","img source"),s("source","src srcset type media sizes"),s("track","kind src srclang label default"),s("datalist","",[r,"option"].join(" ")),s("article section nav aside main header footer","",o),s("hgroup","","h1 h2 h3 h4 h5 h6"),s("figure","",[o,"figcaption"].join(" ")),s("time","datetime",r),s("dialog","open",o),s("command","type label icon disabled checked radiogroup command"),s("output","for form name",r),s("progress","value max",r),s("meter","value min max low high optimum",r),s("details","open",[o,"summary"].join(" ")),s("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==t&&(c("script","language xml:space"),c("style","xml:space"),c("object","declare classid code codebase codetype archive standby align border hspace vspace"),c("embed","align name hspace vspace"),c("param","valuetype type"),c("a","charset name rev shape coords"),c("br","clear"),c("applet","codebase archive code object alt name width height align hspace vspace"),c("img","name longdesc align border hspace vspace"),c("iframe","longdesc frameborder marginwidth marginheight scrolling align"),c("font basefont","size color face"),c("input","usemap align"),c("select"),c("textarea"),c("h1 h2 h3 h4 h5 h6 div p legend caption","align"),c("ul","type compact"),c("li","type"),c("ol dl menu dir","compact"),c("pre","width xml:space"),c("hr","align noshade size width"),c("isindex","prompt"),c("table","summary width frame rules cellspacing cellpadding align bgcolor"),c("col","width align char charoff valign"),c("colgroup","width align char charoff valign"),c("thead","align char charoff valign"),c("tr","align char charoff valign bgcolor"),c("th","axis align char charoff valign nowrap bgcolor width height"),c("form","accept"),c("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),c("tfoot","align char charoff valign"),c("tbody","align char charoff valign"),c("area","nohref"),c("body","background bgcolor text link vlink alink")),"html4"!==t&&(c("input button select textarea","autofocus"),c("input textarea","placeholder"),c("a","download"),c("link script img","crossorigin"),c("img","loading"),c("iframe","sandbox seamless allowfullscreen loading")),iu(cu("a form meter progress dfn"),(function(t){u[t]&&delete u[t].children[t]})),delete u.caption.children.table,delete u.script,nu[t]=u,u)},fu=function(t,e){var n;return t&&(n={},"string"===typeof t&&(t={"*":t}),iu(t,(function(t,r){n[r]=n[r.toUpperCase()]="map"===e?ou(t,/[, ]/):uu(t,/[, ]/)}))),n};function du(t){var e={},n={},r=[],o={},i={},a=function(e,n,r){var o=t[e];return o?o=ou(o,/[, ]/,ou(o.toUpperCase(),/[, ]/)):(o=nu[e],o||(o=ou(n," ",ou(n.toUpperCase()," ")),o=au(o,r),nu[e]=o)),o};t=t||{};var u=lu(t.schema);!1===t.verify_html&&(t.valid_elements="*[*]");var s=fu(t.valid_styles),c=fu(t.invalid_styles,"map"),l=fu(t.valid_classes,"map"),f=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),d=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),h=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),p=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),m="td th iframe video audio object script code",g=a("non_empty_elements",m+" pre",h),v=a("move_caret_before_on_enter_elements",m+" table",h),b=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),y=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",b),x=a("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");iu((t.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(t){i[t]=new RegExp("</"+t+"[^>]*>","gi")}));var w=function(t){return new RegExp("^"+t.replace(/([?+*])/g,".$1")+"$")},C=function(t){var n,o,i,a,u,s,c,l,f,d,h,p,m,g,v,b,y,x,C=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,S=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,k=/[*?+]/;if(t){var O=cu(t,",");for(e["@"]&&(b=e["@"].attributes,y=e["@"].attributesOrder),n=0,o=O.length;n<o;n++)if(u=C.exec(O[n]),u){if(g=u[1],f=u[2],v=u[3],l=u[5],p={},m=[],s={attributes:p,attributesOrder:m},"#"===g&&(s.paddEmpty=!0),"-"===g&&(s.removeEmpty=!0),"!"===u[4]&&(s.removeEmptyAttrs=!0),b&&(xt(b,(function(t,e){p[e]=t})),m.push.apply(m,y)),l)for(l=cu(l,"|"),i=0,a=l.length;i<a;i++)if(u=S.exec(l[i]),u){if(c={},h=u[1],d=u[2].replace(/[\\:]:/g,":"),g=u[3],x=u[4],"!"===h&&(s.attributesRequired=s.attributesRequired||[],s.attributesRequired.push(d),c.required=!0),"-"===h){delete p[d],m.splice(su(m,d),1);continue}g&&("="===g&&(s.attributesDefault=s.attributesDefault||[],s.attributesDefault.push({name:d,value:x}),c.defaultValue=x),":"===g&&(s.attributesForced=s.attributesForced||[],s.attributesForced.push({name:d,value:x}),c.forcedValue=x),"<"===g&&(c.validValues=ou(x,"?"))),k.test(d)?(s.attributePatterns=s.attributePatterns||[],c.pattern=w(d),s.attributePatterns.push(c)):(p[d]||m.push(d),p[d]=c)}b||"@"!==f||(b=p,y=m),v&&(s.outputName=f,e[v]=s),k.test(f)?(s.pattern=w(f),r.push(s)):e[f]=s}}},S=function(t){e={},r=[],C(t),iu(u,(function(t,e){n[e]=t.children}))},k=function(t){var r=/^(~)?(.+)$/;t&&(nu.text_block_elements=nu.block_elements=null,iu(cu(t,","),(function(t){var i=r.exec(t),a="~"===i[1],u=a?"span":"div",s=i[2];if(n[s]=n[u],o[s]=u,a||(y[s.toUpperCase()]={},y[s]={}),!e[s]){var c=e[u];c=au({},c),delete c.removeEmptyAttrs,delete c.removeEmpty,e[s]=c}iu(n,(function(t,e){t[u]&&(n[e]=t=au({},n[e]),t[s]=t[u])}))})))},O=function(e){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;nu[t.schema]=null,e&&iu(cu(e,","),(function(t){var e,o,i=r.exec(t);i&&(o=i[1],e=o?n[i[2]]:n[i[2]]={"#comment":{}},e=n[i[2]],iu(cu(i[3],"|"),(function(t){"-"===o?delete e[t]:e[t]={}})))}))},_=function(t){var n,o=e[t];if(o)return o;n=r.length;while(n--)if(o=r[n],o.pattern.test(t))return o};t.valid_elements?S(t.valid_elements):(iu(u,(function(t,r){e[r]={attributes:t.attributes,attributesOrder:t.attributesOrder},n[r]=t.children})),"html5"!==t.schema&&iu(cu("strong/b em/i"),(function(t){var n=cu(t,"/");e[n[1]].outputName=n[0]})),iu(cu("ol ul sub sup blockquote span font a table tbody strong em b i"),(function(t){e[t]&&(e[t].removeEmpty=!0)})),iu(cu("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(t){e[t].paddEmpty=!0})),iu(cu("span"),(function(t){e[t].removeEmptyAttrs=!0}))),k(t.custom_elements),O(t.valid_children),C(t.extended_valid_elements),O("+ol[ul|ol],+ul[ul|ol]"),iu({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(t,n){e[n]&&(e[n].parentsRequired=cu(t))})),t.invalid_elements&&iu(uu(t.invalid_elements),(function(t){e[t]&&delete e[t]})),_("span")||C("span[!data-mce-type|*]");var A=function(){return s},E=function(){return c},T=function(){return l},D=function(){return p},I=function(){return y},B=function(){return b},L=function(){return x},N=function(){return h},P=function(){return d},M=function(){return g},j=function(){return v},R=function(){return f},$=function(){return i},F=function(t,e){var r=n[t.toLowerCase()];return!(!r||!r[e.toLowerCase()])},V=function(t,e){var n,r,o=_(t);if(o){if(!e)return!0;if(o.attributes[e])return!0;if(n=o.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(t))return!0}}return!1},H=function(){return o};return{children:n,elements:e,getValidStyles:A,getValidClasses:T,getBlockElements:I,getInvalidStyles:E,getShortEndedElements:N,getTextBlockElements:B,getTextInlineElements:L,getBoolAttrs:D,getElementRule:_,getSelfClosingElements:P,getNonEmptyElements:M,getMoveCaretBeforeOnEnterElements:j,getWhiteSpaceElements:R,getSpecialElements:$,isValidChild:F,isValid:V,getCustomElements:H,addValidElements:C,setValidElements:S,addCustomElements:k,addValidChildren:O}}var hu,pu,mu,gu,vu,bu,yu,xu,wu,Cu,Su,ku,Ou,_u,Au,Eu,Tu,Du,Iu=function(t,e,n,r){var o=function(t){return t=parseInt(t,10).toString(16),t.length>1?t:"0"+t};return"#"+o(e)+o(n)+o(r)},Bu=function(t,e){var n,r,o,i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,a=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,s=/\s+$/,c={},l=Pi;t=t||{},e&&(r=e.getValidStyles(),o=e.getInvalidStyles());var f=("\\\" \\' \\; \\: ; : "+l).split(" ");for(n=0;n<f.length;n++)c[f[n]]=l+n,c[l+n]=f[n];return{toHex:function(t){return t.replace(i,Iu)},parse:function(e){var r,o,f,d,h={},p=t.url_converter,m=t.url_converter_scope||this,g=function(t,e,r){var o=h[t+"-top"+e];if(o){var i=h[t+"-right"+e];if(i){var a=h[t+"-bottom"+e];if(a){var u=h[t+"-left"+e];if(u){var s=[o,i,a,u];n=s.length-1;while(n--)if(s[n]!==s[n+1])break;n>-1&&r||(h[t+e]=-1===n?s[0]:s.join(" "),delete h[t+"-top"+e],delete h[t+"-right"+e],delete h[t+"-bottom"+e],delete h[t+"-left"+e])}}}}},v=function(t){var e,n=h[t];if(n){n=n.split(" "),e=n.length;while(e--)if(n[e]!==n[0])return!1;return h[t]=n[0],!0}},b=function(t,e,n,r){v(e)&&v(n)&&v(r)&&(h[t]=h[e]+" "+h[n]+" "+h[r],delete h[e],delete h[n],delete h[r])},y=function(t){return d=!0,c[t]},x=function(t,e){return d&&(t=t.replace(/\uFEFF[0-9]/g,(function(t){return c[t]}))),e||(t=t.replace(/\\([\'\";:])/g,"$1")),t},w=function(t){return String.fromCharCode(parseInt(t.slice(1),16))},C=function(t){return t.replace(/\\[0-9a-f]+/gi,w)},S=function(e,n,r,o,i,a){if(i=i||a,i)return i=x(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=x(n||r||o),!t.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return"";if(!t.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return p&&(n=p.call(m,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(e){e=e.replace(/[\u0000-\u001F]/g,""),e=e.replace(/\\[\"\';:\uFEFF]/g,y).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(t){return t.replace(/[;:]/g,y)}));while(r=u.exec(e))if(u.lastIndex=r.index+r[0].length,o=r[1].replace(s,"").toLowerCase(),f=r[2].replace(s,""),o&&f){if(o=C(o),f=C(f),-1!==o.indexOf(l)||-1!==o.indexOf('"'))continue;if(!t.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(f)))continue;"font-weight"===o&&"700"===f?f="bold":"color"!==o&&"background-color"!==o||(f=f.toLowerCase()),f=f.replace(i,Iu),f=f.replace(a,S),h[o]=d?x(f,!0):f}g("border","",!0),g("border","-width"),g("border","-color"),g("border","-style"),g("padding",""),g("margin",""),b("border","border-width","border-style","border-color"),"medium none"===h.border&&delete h.border,"none"===h["border-image"]&&delete h["border-image"]}return h},serialize:function(t,e){var n="",i=function(e){var o,i=r[e];if(i)for(var a=0,u=i.length;a<u;a++)e=i[a],o=t[e],o&&(n+=(n.length>0?" ":"")+e+": "+o+";")},a=function(t,e){var n=o["*"];return(!n||!n[t])&&(n=o[e],!(n&&n[t]))};return e&&r?(i("*"),i(e)):xt(t,(function(t,r){!t||o&&!a(r,e)||(n+=(n.length>0?" ":"")+r+": "+t+";")})),n}}},Lu="mce-data-",Nu=/^(?:mouse|contextmenu)|click/,Pu={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1,mozPressure:1},Mu=function(t){return t.isDefaultPrevented===Ru||t.isDefaultPrevented===ju},ju=function(){return!1},Ru=function(){return!0},$u=function(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r||!1):t.attachEvent&&t.attachEvent("on"+e,n)},Fu=function(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r||!1):t.detachEvent&&t.detachEvent("on"+e,n)},Vu=function(t){return Nu.test(t.type)},Hu=function(t,e){var n,r=e||{};for(n in t)Pu[n]||(r[n]=t[n]);if(r.target||(r.target=r.srcElement||document),r.composedPath&&(r.composedPath=function(){return t.composedPath()}),t&&Vu(t)&&void 0===t.pageX&&void 0!==t.clientX){var o=r.target.ownerDocument||document,i=o.documentElement,a=o.body;r.pageX=t.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),r.pageY=t.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.clientTop||0)}return r.preventDefault=function(){r.isDefaultPrevented=Ru,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},r.stopPropagation=function(){r.isPropagationStopped=Ru,t&&(t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=Ru,r.stopPropagation()},!1===Mu(r)&&(r.isDefaultPrevented=ju,r.isPropagationStopped=ju,r.isImmediatePropagationStopped=ju),"undefined"===typeof r.metaKey&&(r.metaKey=!1),r},zu=function(t,e,n){var r=t.document,o={type:"ready"};if(n.domLoaded)e(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Fu(t,"DOMContentLoaded",a),Fu(t,"load",a),n.domLoaded||(n.domLoaded=!0,e(o)),t=null};i()?a():$u(t,"DOMContentLoaded",a),n.domLoaded||$u(t,"load",a)}},Uu=function(){function t(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Lu+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return t.prototype.bind=function(t,e,n,r){var o,i,a,u,s,c,l,f=this,d=window,h=function(t){f.executeHandlers(Hu(t||d.event),o)};if(t&&3!==t.nodeType&&8!==t.nodeType){t[f.expando]?o=t[f.expando]:(o=f.count++,t[f.expando]=o,f.events[o]={}),r=r||t;var p=e.split(" ");a=p.length;while(a--)u=p[a],c=h,s=l=!1,"DOMContentLoaded"===u&&(u="ready"),f.domLoaded&&"ready"===u&&"complete"===t.readyState?n.call(r,Hu({type:u})):(f.hasMouseEnterLeave||(s=f.mouseEnterLeave[u],s&&(c=function(t){var e=t.currentTarget,n=t.relatedTarget;if(n&&e.contains)n=e.contains(n);else while(n&&n!==e)n=n.parentNode;n||(t=Hu(t||d.event),t.type="mouseout"===t.type?"mouseleave":"mouseenter",t.target=e,f.executeHandlers(t,o))})),f.hasFocusIn||"focusin"!==u&&"focusout"!==u||(l=!0,s="focusin"===u?"focus":"blur",c=function(t){t=Hu(t||d.event),t.type="focus"===t.type?"focusin":"focusout",f.executeHandlers(t,o)}),i=f.events[o][u],i?"ready"===u&&f.domLoaded?n(Hu({type:u})):i.push({func:n,scope:r}):(f.events[o][u]=i=[{func:n,scope:r}],i.fakeName=s,i.capture=l,i.nativeHandler=c,"ready"===u?zu(t,c,f):$u(t,s||u,c,l)));return t=i=null,n}},t.prototype.unbind=function(t,e,n){var r,o,i,a,u;if(!t||3===t.nodeType||8===t.nodeType)return this;var s=t[this.expando];if(s){if(u=this.events[s],e){var c=e.split(" ");o=c.length;while(o--)if(a=c[o],r=u[a],r){if(n){i=r.length;while(i--)if(r[i].func===n){var l=r.nativeHandler,f=r.fakeName,d=r.capture;r=r.slice(0,i).concat(r.slice(i+1)),r.nativeHandler=l,r.fakeName=f,r.capture=d,u[a]=r}}n&&0!==r.length||(delete u[a],Fu(t,r.fakeName||a,r.nativeHandler,r.capture))}}else xt(u,(function(e,n){Fu(t,e.fakeName||n,e.nativeHandler,e.capture)})),u={};for(a in u)if(Dt(u,a))return this;delete this.events[s];try{delete t[this.expando]}catch(h){t[this.expando]=null}}return this},t.prototype.fire=function(t,e,n){var r;if(!t||3===t.nodeType||8===t.nodeType)return this;var o=Hu(null,n);o.type=e,o.target=t;do{r=t[this.expando],r&&this.executeHandlers(o,r),t=t.parentNode||t.ownerDocument||t.defaultView||t.parentWindow}while(t&&!o.isPropagationStopped());return this},t.prototype.clean=function(t){var e,n;if(!t||3===t.nodeType||8===t.nodeType)return this;if(t[this.expando]&&this.unbind(t),t.getElementsByTagName||(t=t.document),t&&t.getElementsByTagName){this.unbind(t),n=t.getElementsByTagName("*"),e=n.length;while(e--)t=n[e],t[this.expando]&&this.unbind(t)}return this},t.prototype.destroy=function(){this.events={}},t.prototype.cancel=function(t){return t&&(t.preventDefault(),t.stopImmediatePropagation()),!1},t.prototype.executeHandlers=function(t,e){var n=this.events[e],r=n&&n[t.type];if(r)for(var o=0,i=r.length;o<i;o++){var a=r[o];if(a&&!1===a.func.call(a.scope,t)&&t.preventDefault(),t.isImmediatePropagationStopped())return}},t.Event=new t,t}(),Wu="sizzle"+-new Date,qu=window.document,Gu=0,Yu=0,Xu=Ts(),Ku=Ts(),Zu=Ts(),Ju=function(t,e){return t===e&&(Cu=!0),0},Qu="undefined",ts=1<<31,es={}.hasOwnProperty,ns=[],rs=ns.pop,os=ns.push,is=ns.push,as=ns.slice,us=ns.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},ss="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",cs="[\\x20\\t\\r\\n\\f]",ls="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",fs="\\["+cs+"*("+ls+")(?:"+cs+"*([*^$|!~]?=)"+cs+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ls+"))|)"+cs+"*\\]",ds=":("+ls+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+fs+")*)|.*)\\)|)",hs=new RegExp("^"+cs+"+|((?:^|[^\\\\])(?:\\\\.)*)"+cs+"+$","g"),ps=new RegExp("^"+cs+"*,"+cs+"*"),ms=new RegExp("^"+cs+"*([>+~]|"+cs+")"+cs+"*"),gs=new RegExp("="+cs+"*([^\\]'\"]*?)"+cs+"*\\]","g"),vs=new RegExp(ds),bs=new RegExp("^"+ls+"$"),ys={ID:new RegExp("^#("+ls+")"),CLASS:new RegExp("^\\.("+ls+")"),TAG:new RegExp("^("+ls+"|[*])"),ATTR:new RegExp("^"+fs),PSEUDO:new RegExp("^"+ds),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+cs+"*(even|odd|(([+-]|)(\\d*)n|)"+cs+"*(?:([+-]|)"+cs+"*(\\d+)|))"+cs+"*\\)|)","i"),bool:new RegExp("^(?:"+ss+")$","i"),needsContext:new RegExp("^"+cs+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+cs+"*((?:-\\d)?\\d*)"+cs+"*\\)|)(?=[^-]|$)","i")},xs=/^(?:input|select|textarea|button)$/i,ws=/^h\d$/i,Cs=/^[^{]+\{\s*\[native \w/,Ss=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ks=/[+~]/,Os=/'|\\/g,_s=new RegExp("\\\\([\\da-f]{1,6}"+cs+"?|("+cs+")|.)","ig"),As=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{is.apply(ns=as.call(qu.childNodes),qu.childNodes),ns[qu.childNodes.length].nodeType}catch(gF){is={apply:ns.length?function(t,e){os.apply(t,as.call(e))}:function(t,e){var n=t.length,r=0;while(t[n++]=e[r++]);t.length=n-1}}}var Es=function(t,e,n,r){var o,i,a,u,s,c,l,f,d,h;if((e?e.ownerDocument||e:qu)!==ku&&Su(e),e=e||ku,n=n||[],!t||"string"!==typeof t)return n;if(1!==(u=e.nodeType)&&9!==u)return[];if(_u&&!r){if(o=Ss.exec(t))if(a=o[1]){if(9===u){if(i=e.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(e.ownerDocument&&(i=e.ownerDocument.getElementById(a))&&Du(e,i)&&i.id===a)return n.push(i),n}else{if(o[2])return is.apply(n,e.getElementsByTagName(t)),n;if((a=o[3])&&hu.getElementsByClassName)return is.apply(n,e.getElementsByClassName(a)),n}if(hu.qsa&&(!Au||!Au.test(t))){if(f=l=Wu,d=e,h=9===u&&t,1===u&&"object"!==e.nodeName.toLowerCase()){c=vu(t),(l=e.getAttribute("id"))?f=l.replace(Os,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",s=c.length;while(s--)c[s]=f+js(c[s]);d=ks.test(t)&&Ps(e.parentNode)||e,h=c.join(",")}if(h)try{return is.apply(n,d.querySelectorAll(h)),n}catch(p){}finally{l||e.removeAttribute("id")}}}return yu(t.replace(hs,"$1"),e,n,r)};function Ts(){var t=[];function e(n,r){return t.push(n+" ")>pu.cacheLength&&delete e[t.shift()],e[n+" "]=r}return e}function Ds(t){return t[Wu]=!0,t}function Is(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||ts)-(~t.sourceIndex||ts);if(r)return r;if(n)while(n=n.nextSibling)if(n===e)return-1;return t?1:-1}function Bs(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function Ls(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function Ns(t){return Ds((function(e){return e=+e,Ds((function(n,r){var o,i=t([],n.length,e),a=i.length;while(a--)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function Ps(t){return t&&typeof t.getElementsByTagName!==Qu&&t}function Ms(){}function js(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function Rs(t,e,n){var r=e.dir,o=n&&"parentNode"===r,i=Yu++;return e.first?function(e,n,i){while(e=e[r])if(1===e.nodeType||o)return t(e,n,i)}:function(e,n,a){var u,s,c=[Gu,i];if(a){while(e=e[r])if((1===e.nodeType||o)&&t(e,n,a))return!0}else while(e=e[r])if(1===e.nodeType||o){if(s=e[Wu]||(e[Wu]={}),(u=s[r])&&u[0]===Gu&&u[1]===i)return c[2]=u[2];if(s[r]=c,c[2]=t(e,n,a))return!0}}}function $s(t){return t.length>1?function(e,n,r){var o=t.length;while(o--)if(!t[o](e,n,r))return!1;return!0}:t[0]}function Fs(t,e,n){for(var r=0,o=e.length;r<o;r++)Es(t,e[r],n);return n}function Vs(t,e,n,r,o){for(var i,a=[],u=0,s=t.length,c=null!=e;u<s;u++)(i=t[u])&&(n&&!n(i,r,o)||(a.push(i),c&&e.push(u)));return a}function Hs(t,e,n,r,o,i){return r&&!r[Wu]&&(r=Hs(r)),o&&!o[Wu]&&(o=Hs(o,i)),Ds((function(i,a,u,s){var c,l,f,d=[],h=[],p=a.length,m=i||Fs(e||"*",u.nodeType?[u]:u,[]),g=!t||!i&&e?m:Vs(m,d,t,u,s),v=n?o||(i?t:p||r)?[]:a:g;if(n&&n(g,v,u,s),r){c=Vs(v,h),r(c,[],u,s),l=c.length;while(l--)(f=c[l])&&(v[h[l]]=!(g[h[l]]=f))}if(i){if(o||t){if(o){c=[],l=v.length;while(l--)(f=v[l])&&c.push(g[l]=f);o(null,v=[],c,s)}l=v.length;while(l--)(f=v[l])&&(c=o?us.call(i,f):d[l])>-1&&(i[c]=!(a[c]=f))}}else v=Vs(v===a?v.splice(p,v.length):v),o?o(null,a,v,s):is.apply(a,v)}))}function zs(t){for(var e,n,r,o=t.length,i=pu.relative[t[0].type],a=i||pu.relative[" "],u=i?1:0,s=Rs((function(t){return t===e}),a,!0),c=Rs((function(t){return us.call(e,t)>-1}),a,!0),l=[function(t,n,r){return!i&&(r||n!==xu)||((e=n).nodeType?s(t,n,r):c(t,n,r))}];u<o;u++)if(n=pu.relative[t[u].type])l=[Rs($s(l),n)];else{if(n=pu.filter[t[u].type].apply(null,t[u].matches),n[Wu]){for(r=++u;r<o;r++)if(pu.relative[t[r].type])break;return Hs(u>1&&$s(l),u>1&&js(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(hs,"$1"),n,u<r&&zs(t.slice(u,r)),r<o&&zs(t=t.slice(r)),r<o&&js(t))}l.push(n)}return $s(l)}function Us(t,e){var n=e.length>0,r=t.length>0,o=function(o,i,a,u,s){var c,l,f,d=0,h="0",p=o&&[],m=[],g=xu,v=o||r&&pu.find.TAG("*",s),b=Gu+=null==g?1:Math.random()||.1,y=v.length;for(s&&(xu=i!==ku&&i);h!==y&&null!=(c=v[h]);h++){if(r&&c){l=0;while(f=t[l++])if(f(c,i,a)){u.push(c);break}s&&(Gu=b)}n&&((c=!f&&c)&&d--,o&&p.push(c))}if(d+=h,n&&h!==d){l=0;while(f=e[l++])f(p,m,i,a);if(o){if(d>0)while(h--)p[h]||m[h]||(m[h]=rs.call(u));m=Vs(m)}is.apply(u,m),s&&!o&&m.length>0&&d+e.length>1&&Es.uniqueSort(u)}return s&&(Gu=b,xu=g),p};return n?Ds(o):o}hu=Es.support={},gu=Es.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},Su=Es.setDocument=function(t){var e,n=t?t.ownerDocument||t:qu,r=n.defaultView;function o(t){try{return t.top}catch(e){}return null}return n!==ku&&9===n.nodeType&&n.documentElement?(ku=n,Ou=n.documentElement,_u=!gu(n),r&&r!==o(r)&&(r.addEventListener?r.addEventListener("unload",(function(){Su()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){Su()}))),hu.attributes=!0,hu.getElementsByTagName=!0,hu.getElementsByClassName=Cs.test(n.getElementsByClassName),hu.getById=!0,pu.find.ID=function(t,e){if(typeof e.getElementById!==Qu&&_u){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},pu.filter.ID=function(t){var e=t.replace(_s,As);return function(t){return t.getAttribute("id")===e}},pu.find.TAG=hu.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==Qu)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],o=0,i=e.getElementsByTagName(t);if("*"===t){while(n=i[o++])1===n.nodeType&&r.push(n);return r}return i},pu.find.CLASS=hu.getElementsByClassName&&function(t,e){if(_u)return e.getElementsByClassName(t)},Eu=[],Au=[],hu.disconnectedMatch=!0,Au=Au.length&&new RegExp(Au.join("|")),Eu=Eu.length&&new RegExp(Eu.join("|")),e=Cs.test(Ou.compareDocumentPosition),Du=e||Cs.test(Ou.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},Ju=e?function(t,e){if(t===e)return Cu=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!hu.sortDetached&&e.compareDocumentPosition(t)===r?t===n||t.ownerDocument===qu&&Du(qu,t)?-1:e===n||e.ownerDocument===qu&&Du(qu,e)?1:wu?us.call(wu,t)-us.call(wu,e):0:4&r?-1:1)}:function(t,e){if(t===e)return Cu=!0,0;var r,o=0,i=t.parentNode,a=e.parentNode,u=[t],s=[e];if(!i||!a)return t===n?-1:e===n?1:i?-1:a?1:wu?us.call(wu,t)-us.call(wu,e):0;if(i===a)return Is(t,e);r=t;while(r=r.parentNode)u.unshift(r);r=e;while(r=r.parentNode)s.unshift(r);while(u[o]===s[o])o++;return o?Is(u[o],s[o]):u[o]===qu?-1:s[o]===qu?1:0},n):ku},Es.matches=function(t,e){return Es(t,null,null,e)},Es.matchesSelector=function(t,e){if((t.ownerDocument||t)!==ku&&Su(t),e=e.replace(gs,"='$1']"),hu.matchesSelector&&_u&&(!Eu||!Eu.test(e))&&(!Au||!Au.test(e)))try{var n=Tu.call(t,e);if(n||hu.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(gF){}return Es(e,ku,null,[t]).length>0},Es.contains=function(t,e){return(t.ownerDocument||t)!==ku&&Su(t),Du(t,e)},Es.attr=function(t,e){(t.ownerDocument||t)!==ku&&Su(t);var n=pu.attrHandle[e.toLowerCase()],r=n&&es.call(pu.attrHandle,e.toLowerCase())?n(t,e,!_u):void 0;return void 0!==r?r:hu.attributes||!_u?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},Es.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},Es.uniqueSort=function(t){var e,n=[],r=0,o=0;if(Cu=!hu.detectDuplicates,wu=!hu.sortStable&&t.slice(0),t.sort(Ju),Cu){while(e=t[o++])e===t[o]&&(r=n.push(o));while(r--)t.splice(n[r],1)}return wu=null,t},mu=Es.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=mu(t)}else if(3===o||4===o)return t.nodeValue}else while(e=t[r++])n+=mu(e);return n},pu=Es.selectors={cacheLength:50,createPseudo:Ds,match:ys,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(_s,As),t[3]=(t[3]||t[4]||t[5]||"").replace(_s,As),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Es.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Es.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ys.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&vs.test(n)&&(e=vu(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_s,As).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=Xu[t+" "];return e||(e=new RegExp("(^|"+cs+")"+t+"("+cs+"|$)"))&&Xu(t,(function(t){return e.test("string"===typeof t.className&&t.className||typeof t.getAttribute!==Qu&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var o=Es.attr(r,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,o){var i="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===r&&0===o?function(t){return!!t.parentNode}:function(e,n,s){var c,l,f,d,h,p,m=i!==a?"nextSibling":"previousSibling",g=e.parentNode,v=u&&e.nodeName.toLowerCase(),b=!s&&!u;if(g){if(i){while(m){f=e;while(f=f[m])if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&b){l=g[Wu]||(g[Wu]={}),c=l[t]||[],h=c[0]===Gu&&c[1],d=c[0]===Gu&&c[2],f=h&&g.childNodes[h];while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if(1===f.nodeType&&++d&&f===e){l[t]=[Gu,h,d];break}}else if(b&&(c=(e[Wu]||(e[Wu]={}))[t])&&c[0]===Gu)d=c[1];else while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if((u?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++d&&(b&&((f[Wu]||(f[Wu]={}))[t]=[Gu,d]),f===e))break;return d-=o,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(t,e){var n,r=pu.pseudos[t]||pu.setFilters[t.toLowerCase()]||Es.error("unsupported pseudo: "+t);return r[Wu]?r(e):r.length>1?(n=[t,t,"",e],pu.setFilters.hasOwnProperty(t.toLowerCase())?Ds((function(t,n){var o,i=r(t,e),a=i.length;while(a--)o=us.call(t,i[a]),t[o]=!(n[o]=i[a])})):function(t){return r(t,0,n)}):r}},pseudos:{not:Ds((function(t){var e=[],n=[],r=bu(t.replace(hs,"$1"));return r[Wu]?Ds((function(t,e,n,o){var i,a=r(t,null,o,[]),u=t.length;while(u--)(i=a[u])&&(t[u]=!(e[u]=i))})):function(t,o,i){return e[0]=t,r(e,null,i,n),!n.pop()}})),has:Ds((function(t){return function(e){return Es(t,e).length>0}})),contains:Ds((function(t){return t=t.replace(_s,As),function(e){return(e.textContent||e.innerText||mu(e)).indexOf(t)>-1}})),lang:Ds((function(t){return bs.test(t||"")||Es.error("unsupported lang: "+t),t=t.replace(_s,As).toLowerCase(),function(e){var n;do{if(n=_u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=window.location&&window.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===Ou},focus:function(t){return t===ku.activeElement&&(!ku.hasFocus||ku.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!pu.pseudos.empty(t)},header:function(t){return ws.test(t.nodeName)},input:function(t){return xs.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:Ns((function(){return[0]})),last:Ns((function(t,e){return[e-1]})),eq:Ns((function(t,e,n){return[n<0?n+e:n]})),even:Ns((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:Ns((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:Ns((function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t})),gt:Ns((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},pu.pseudos.nth=pu.pseudos.eq,Z(["radio","checkbox","file","password","image"],(function(t){pu.pseudos[t]=Bs(t)})),Z(["submit","reset"],(function(t){pu.pseudos[t]=Ls(t)})),Ms.prototype=pu.filters=pu.pseudos,pu.setFilters=new Ms,vu=Es.tokenize=function(t,e){var n,r,o,i,a,u,s,c=Ku[t+" "];if(c)return e?0:c.slice(0);a=t,u=[],s=pu.preFilter;while(a){for(i in n&&!(r=ps.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=ms.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(hs," ")}),a=a.slice(n.length)),pu.filter)pu.filter.hasOwnProperty(i)&&(!(r=ys[i].exec(a))||s[i]&&!(r=s[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length)));if(!n)break}return e?a.length:a?Es.error(t):Ku(t,u).slice(0)},bu=Es.compile=function(t,e){var n,r=[],o=[],i=Zu[t+" "];if(!i){e||(e=vu(t)),n=e.length;while(n--)i=zs(e[n]),i[Wu]?r.push(i):o.push(i);i=Zu(t,Us(o,r)),i.selector=t}return i},yu=Es.select=function(t,e,n,r){var o,i,a,u,s,c="function"===typeof t&&t,l=!r&&vu(t=c.selector||t);if(n=n||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&hu.getById&&9===e.nodeType&&_u&&pu.relative[i[1].type]){if(e=(pu.find.ID(a.matches[0].replace(_s,As),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(i.shift().value.length)}o=ys.needsContext.test(t)?0:i.length;while(o--){if(a=i[o],pu.relative[u=a.type])break;if((s=pu.find[u])&&(r=s(a.matches[0].replace(_s,As),ks.test(i[0].type)&&Ps(e.parentNode)||e))){if(i.splice(o,1),t=r.length&&js(i),!t)return is.apply(n,r),n;break}}}return(c||bu(t,l))(r,e,!_u,n,ks.test(t)&&Ps(e.parentNode)||e),n},hu.sortStable=Wu.split("").sort(Ju).join("")===Wu,hu.detectDuplicates=!!Cu,Su(),hu.sortDetached=!0;var Ws=document,qs=Array.prototype.push,Gs=Array.prototype.slice,Ys=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Xs=Uu.Event,Ks=ln.makeMap("children,contents,next,prev"),Zs=function(t){return"undefined"!==typeof t},Js=function(t){return"string"===typeof t},Qs=function(t){return t&&t===t.window},tc=function(t,e){e=e||Ws;var n,r=e.createElement("div"),o=e.createDocumentFragment();r.innerHTML=t;while(n=r.firstChild)o.appendChild(n);return o},ec=function(t,e,n,r){var o;if(Js(e))e=tc(e,gc(t[0]));else if(e.length&&!e.nodeType){if(e=xc.makeArray(e),r)for(o=e.length-1;o>=0;o--)ec(t,e[o],n,r);else for(o=0;o<e.length;o++)ec(t,e[o],n,r);return t}if(e.nodeType){o=t.length;while(o--)n.call(t[o],e)}return t},nc=function(t,e){return t&&e&&-1!==(" "+t.className+" ").indexOf(" "+e+" ")},rc=function(t,e,n){var r,o;return e=xc(e)[0],t.each((function(){var t=this;n&&r===t.parentNode||(r=t.parentNode,o=e.cloneNode(!1),t.parentNode.insertBefore(o,t)),o.appendChild(t)})),t},oc=ln.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),ic=ln.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),ac={for:"htmlFor",class:"className",readonly:"readOnly"},uc={float:"cssFloat"},sc={},cc={},lc=function(t,e){return new xc.fn.init(t,e)},fc=function(t,e){var n;if(e.indexOf)return e.indexOf(t);n=e.length;while(n--)if(e[n]===t)return n;return-1},dc=/^\s*|\s*$/g,hc=function(t){return null===t||void 0===t?"":(""+t).replace(dc,"")},pc=function(t,e){var n,r,o,i;if(t)if(n=t.length,void 0===n){for(r in t)if(t.hasOwnProperty(r)&&(i=t[r],!1===e.call(i,r,i)))break}else for(o=0;o<n;o++)if(i=t[o],!1===e.call(i,o,i))break;return t},mc=function(t,e){var n=[];return pc(t,(function(t,r){e(r,t)&&n.push(r)})),n},gc=function(t){return t?9===t.nodeType?t:t.ownerDocument:Ws};lc.fn=lc.prototype={constructor:lc,selector:"",context:null,length:0,init:function(t,e){var n,r,o=this;if(!t)return o;if(t.nodeType)return o.context=o[0]=t,o.length=1,o;if(e&&e.nodeType)o.context=e;else{if(e)return xc(t).attr(e);o.context=e=document}if(Js(t)){if(o.selector=t,n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:Ys.exec(t),!n)return xc(e).find(t);if(n[1]){r=tc(t,gc(e)).firstChild;while(r)qs.call(o,r),r=r.nextSibling}else{if(r=gc(e).getElementById(n[2]),!r)return o;if(r.id!==n[2])return o.find(t);o.length=1,o[0]=r}}else this.add(t,!1);return o},toArray:function(){return ln.toArray(this)},add:function(t,e){var n,r,o=this;if(Js(t))return o.add(xc(t));if(!1!==e)for(n=xc.unique(o.toArray().concat(xc.makeArray(t))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else qs.apply(o,xc.makeArray(t));return o},attr:function(t,e){var n,r=this;if("object"===typeof t)pc(t,(function(t,e){r.attr(t,e)}));else{if(!Zs(e)){if(r[0]&&1===r[0].nodeType){if(n=sc[t],n&&n.get)return n.get(r[0],t);if(ic[t])return r.prop(t)?t:void 0;e=r[0].getAttribute(t,2),null===e&&(e=void 0)}return e}this.each((function(){var n;if(1===this.nodeType){if(n=sc[t],n&&n.set)return void n.set(this,e);null===e?this.removeAttribute(t,2):this.setAttribute(t,e,2)}}))}return r},removeAttr:function(t){return this.attr(t,null)},prop:function(t,e){var n=this;if(t=ac[t]||t,"object"===typeof t)pc(t,(function(t,e){n.prop(t,e)}));else{if(!Zs(e))return n[0]&&n[0].nodeType&&t in n[0]?n[0][t]:e;this.each((function(){1===this.nodeType&&(this[t]=e)}))}return n},css:function(t,e){var n,r,o=this,i=function(t){return t.replace(/-(\D)/g,(function(t,e){return e.toUpperCase()}))},a=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t}))};if("object"===typeof t)pc(t,(function(t,e){o.css(t,e)}));else if(Zs(e))t=i(t),"number"!==typeof e||oc[t]||(e=e.toString()+"px"),o.each((function(){var n=this.style;if(r=cc[t],r&&r.set)r.set(this,e);else{try{this.style[uc[t]||t]=e}catch(o){}null!==e&&""!==e||(n.removeProperty?n.removeProperty(a(t)):n.removeAttribute(t))}}));else{if(n=o[0],r=cc[t],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[i(t)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(t))}catch(u){return}}return o},remove:function(){var t,e=this,n=this.length;while(n--)t=e[n],Xs.clean(t),t.parentNode&&t.parentNode.removeChild(t);return this},empty:function(){var t,e=this,n=this.length;while(n--){t=e[n];while(t.firstChild)t.removeChild(t.firstChild)}return this},html:function(t){var e,n=this;if(Zs(t)){e=n.length;try{while(e--)n[e].innerHTML=t}catch(r){xc(n[e]).empty().append(t)}return n}return n[0]?n[0].innerHTML:""},text:function(t){var e,n=this;if(Zs(t)){e=n.length;while(e--)"innerText"in n[e]?n[e].innerText=t:n[0].textContent=t;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return ec(this,arguments,(function(t){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(t)}))},prepend:function(){return ec(this,arguments,(function(t){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(t,this.firstChild)}),!0)},before:function(){var t=this;return t[0]&&t[0].parentNode?ec(t,arguments,(function(t){this.parentNode.insertBefore(t,this)})):t},after:function(){var t=this;return t[0]&&t[0].parentNode?ec(t,arguments,(function(t){this.parentNode.insertBefore(t,this.nextSibling)}),!0):t},appendTo:function(t){return xc(t).append(this),this},prependTo:function(t){return xc(t).prepend(this),this},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){return rc(this,t)},wrapAll:function(t){return rc(this,t,!0)},wrapInner:function(t){return this.each((function(){xc(this).contents().wrapAll(t)})),this},unwrap:function(){return this.parent().each((function(){xc(this).replaceWith(this.childNodes)}))},clone:function(){var t=[];return this.each((function(){t.push(this.cloneNode(!0))})),xc(t)},addClass:function(t){return this.toggleClass(t,!0)},removeClass:function(t){return this.toggleClass(t,!1)},toggleClass:function(t,e){var n=this;return"string"!==typeof t||(-1!==t.indexOf(" ")?pc(t.split(" "),(function(){n.toggleClass(this,e)})):n.each((function(n,r){var o=nc(r,t);if(o!==e){var i=r.className;o?r.className=hc((" "+i+" ").replace(" "+t+" "," ")):r.className+=i?" "+t:t}}))),n},hasClass:function(t){return nc(this[0],t)},each:function(t){return pc(this,t)},on:function(t,e){return this.each((function(){Xs.bind(this,t,e)}))},off:function(t,e){return this.each((function(){Xs.unbind(this,t,e)}))},trigger:function(t){return this.each((function(){"object"===typeof t?Xs.fire(this,t.type,t):Xs.fire(this,t)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new xc(Gs.apply(this,arguments))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(t){var e,n,r=[];for(e=0,n=this.length;e<n;e++)xc.find(t,this[e],r);return xc(r)},filter:function(t){return xc("function"===typeof t?mc(this.toArray(),(function(e,n){return t(n,e)})):xc.filter(t,this.toArray()))},closest:function(t){var e=[];return t instanceof xc&&(t=t[0]),this.each((function(n,r){while(r){if("string"===typeof t&&xc(r).is(t)){e.push(r);break}if(r===t){e.push(r);break}r=r.parentNode}})),xc(e)},offset:function(t){var e,n,r,o,i=0,a=0;return t?this.css(t):(e=this[0],e&&(n=e.ownerDocument,r=n.documentElement,e.getBoundingClientRect&&(o=e.getBoundingClientRect(),i=o.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:qs,sort:Array.prototype.sort,splice:Array.prototype.splice},ln.extend(lc,{extend:ln.extend,makeArray:function(t){return Qs(t)||t.nodeType?[t]:ln.toArray(t)},inArray:fc,isArray:ln.isArray,each:pc,trim:hc,grep:mc,find:Es,expr:Es.selectors,unique:Es.uniqueSort,text:Es.getText,contains:Es.contains,filter:function(t,e,n){var r=e.length;n&&(t=":not("+t+")");while(r--)1!==e[r].nodeType&&e.splice(r,1);return e=1===e.length?xc.find.matchesSelector(e[0],t)?[e[0]]:[]:xc.find.matches(t,e),e}});var vc=function(t,e,n){var r=[],o=t[e];"string"!==typeof n&&n instanceof xc&&(n=n[0]);while(o&&9!==o.nodeType){if(void 0!==n){if(o===n)break;if("string"===typeof n&&xc(o).is(n))break}1===o.nodeType&&r.push(o),o=o[e]}return r},bc=function(t,e,n,r){var o=[];for(r instanceof xc&&(r=r[0]);t;t=t[e])if(!n||t.nodeType===n){if(void 0!==r){if(t===r)break;if("string"===typeof r&&xc(t).is(r))break}o.push(t)}return o},yc=function(t,e,n){for(t=t[e];t;t=t[e])if(t.nodeType===n)return t;return null};pc({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return vc(t,"parentNode")},next:function(t){return yc(t,"nextSibling",1)},prev:function(t){return yc(t,"previousSibling",1)},children:function(t){return bc(t.firstChild,"nextSibling",1)},contents:function(t){return ln.toArray(("iframe"===t.nodeName?t.contentDocument||t.contentWindow.document:t).childNodes)}},(function(t,e){lc.fn[t]=function(n){var r=this,o=[];r.each((function(){var t=e.call(o,this,n,o);t&&(xc.isArray(t)?o.push.apply(o,t):o.push(t))})),this.length>1&&(Ks[t]||(o=xc.unique(o)),0===t.indexOf("parents")&&(o=o.reverse()));var i=xc(o);return n?i.filter(n):i}})),pc({parentsUntil:function(t,e){return vc(t,"parentNode",e)},nextUntil:function(t,e){return bc(t,"nextSibling",1,e).slice(1)},prevUntil:function(t,e){return bc(t,"previousSibling",1,e).slice(1)}},(function(t,e){lc.fn[t]=function(n,r){var o=this,i=[];o.each((function(){var t=e.call(i,this,n,i);t&&(xc.isArray(t)?i.push.apply(i,t):i.push(t))})),this.length>1&&(i=xc.unique(i),0!==t.indexOf("parents")&&"prevUntil"!==t||(i=i.reverse()));var a=xc(i);return r?a.filter(r):a}})),lc.fn.is=function(t){return!!t&&this.filter(t).length>0},lc.fn.init.prototype=lc.fn,lc.overrideDefaults=function(t){var e,n=function(r,o){return e=e||t(),0===arguments.length&&(r=e.element),o||(o=e.context),new n.fn.init(r,o)};return xc.extend(n,this),n},lc.attrHooks=sc,lc.cssHooks=cc;var xc=lc,wc=ln.each,Cc=ln.grep,Sc=Ke.ie,kc=/^([a-z0-9],?)+$/i,Oc=function(t,e,n){var r=e.keep_values,o={set:function(t,r,o){e.url_converter&&(r=e.url_converter.call(e.url_converter_scope||n(),r,o,t[0])),t.attr("data-mce-"+o,r).attr(o,r)},get:function(t,e){return t.attr("data-mce-"+e)||t.attr(e)}},i={style:{set:function(e,n){null===n||"object"!==typeof n?(r&&e.attr("data-mce-style",n),null!==n&&"string"===typeof n?(e.removeAttr("style"),e.css(t.parse(n))):e.attr("style",n)):e.css(n)},get:function(e){var n=e.attr("data-mce-style")||e.attr("style");return n=t.serialize(t.parse(n),e[0].nodeName),n}}};return r&&(i.href=i.src=o),i},_c=function(t,e){var n=e.attr("style"),r=t.serialize(t.parse(n),e[0].nodeName);r||(r=null),e.attr("data-mce-style",r)},Ac=function(t,e){var n,r,o=0;if(t)for(n=t.nodeType,t=t.previousSibling;t;t=t.previousSibling)r=t.nodeType,(!e||3!==r||r!==n&&t.nodeValue.length)&&(o++,n=r);return o};function Ec(t,e){var n=this;void 0===e&&(e={});var r={},o=window,i={},a=0,u=!0,s=!0,c=di.forElement(gn.fromDom(t),{contentCssCors:e.contentCssCors,referrerPolicy:e.referrerPolicy}),l=[],f=e.schema?e.schema:du({}),d=Bu({url_converter:e.url_converter,url_converter_scope:e.url_converter_scope},e.schema),p=e.ownEvents?new Uu:Uu.Event,m=f.getBlockElements(),g=xc.overrideDefaults((function(){return{context:t,element:It.getRoot()}})),v=function(t){if("string"===typeof t)return!!m[t];if(t){var e=t.nodeType;if(e)return!(1!==e||!m[t.nodeName])}return!1},b=function(e){return e&&t&&L(e)?t.getElementById(e):e},y=function(t){return g("string"===typeof t?b(t):t)},x=function(t,e,n){var r,o,i=y(t);return i.length&&(r=Bt[e],o=r&&r.get?r.get(i,e):i.attr(e)),"undefined"===typeof o&&(o=n||""),o},w=function(t){var e=b(t);return e?e.attributes:[]},C=function(t,n,r){""===r&&(r=null);var o=y(t),i=o.attr(n);if(o.length){var a=Bt[n];a&&a.set?a.set(o,r,n):o.attr(n,r),i!==r&&e.onSetAttrib&&e.onSetAttrib({attrElm:o,attrName:n,attrValue:r})}},S=function(e,n){if(!Sc||1!==e.nodeType||n)return e.cloneNode(n);var r=t.createElement(e.nodeName);return wc(w(e),(function(t){C(r,t.nodeName,x(e,t.nodeName))})),r},k=function(){return e.root_element||t.body},O=function(t){var e=Pr(t);return{x:e.x,y:e.y,w:e.width,h:e.height}},_=function(e,n){return Oo(t.body,b(e),n)},A=function(t,n,r){var o=L(n)?y(t).css(n,r):y(t).css(n);e.update_styles&&_c(d,o)},E=function(t,n){var r=y(t).css(n);e.update_styles&&_c(d,r)},T=function(t,e,n){var r=y(t);return n?r.css(e):(e=e.replace(/-(\D)/g,(function(t,e){return e.toUpperCase()})),"float"===e&&(e=Ke.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[e]:void 0)},D=function(t){var e,n;return t=b(t),e=T(t,"width"),n=T(t,"height"),-1===e.indexOf("px")&&(e=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(e,10)||t.offsetWidth||t.clientWidth,h:parseInt(n,10)||t.offsetHeight||t.clientHeight}},I=function(t){t=b(t);var e=_(t),n=D(t);return{x:e.x,y:e.y,w:n.w,h:n.h}},B=function(t,e){var n;if(!t)return!1;if(!Array.isArray(t)){if("*"===e)return 1===t.nodeType;if(kc.test(e)){var r=e.toLowerCase().split(/,/),o=t.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===o)return!0;return!1}if(t.nodeType&&1!==t.nodeType)return!1}var i=Array.isArray(t)?t:[t];return Es(e,i[0].ownerDocument||i[0],null,i).length>0},N=function(t,e,n,r){var o,i=[],a=b(t);r=void 0===r,n=n||("BODY"!==k().nodeName?k().parentNode:null),ln.is(e,"string")&&(o=e,e="*"===e?function(t){return 1===t.nodeType}:function(t){return B(t,o)});while(a){if(a===n||$(a.nodeType)||Kr(a)||Zr(a))break;if(!e||"function"===typeof e&&e(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},P=function(t,e,n){var r=N(t,e,n,!1);return r&&r.length>0?r[0]:null},M=function(t,e,n){var r=e;if(t)for("string"===typeof e&&(r=function(t){return B(t,e)}),t=t[n];t;t=t[n])if("function"===typeof r&&r(t))return t;return null},j=function(t,e){return M(t,e,"nextSibling")},R=function(t,e){return M(t,e,"previousSibling")},F=function(n,r){return Es(n,b(r)||e.root_element||t,[])},V=function(t,e,r){var o,i="string"===typeof t?b(t):t;if(!i)return!1;if(ln.isArray(i)&&(i.length||0===i.length))return o=[],wc(i,(function(t,n){t&&o.push(e.call(r,"string"===typeof t?b(t):t,n))})),o;var a=r||n;return e.call(a,i)},H=function(t,e){y(t).each((function(t,n){wc(e,(function(t,e){C(n,e,t)}))}))},z=function(t,e){var n=y(t);Sc?n.each((function(t,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+e,n.removeChild(n.firstChild)}catch(r){xc("<div></div>").html("<br>"+e).contents().slice(1).appendTo(n)}return e}})):n.html(e)},U=function(e,n,r,o,i){return V(e,(function(e){var a="string"===typeof n?t.createElement(n):n;return H(a,r),o&&("string"!==typeof o&&o.nodeType?a.appendChild(o):"string"===typeof o&&z(a,o)),i?a:e.appendChild(a)}))},W=function(e,n,r){return U(t.createElement(e),e,n,r,!0)},q=eu.decode,G=eu.encodeAllRaw,Y=function(t,e,n){var r,o="";for(r in o+="<"+t,e)e.hasOwnProperty(r)&&null!==e[r]&&"undefined"!==typeof e[r]&&(o+=" "+r+'="'+G(e[r])+'"');return"undefined"!==typeof n?o+">"+n+"</"+t+">":o+" />"},X=function(e){var n,r=t.createElement("div"),o=t.createDocumentFragment();o.appendChild(r),e&&(r.innerHTML=e);while(n=r.firstChild)o.appendChild(n);return o.removeChild(r),o},K=function(t,e){var n=y(t);return e?n.each((function(){var t;while(t=this.firstChild)3===t.nodeType&&0===t.data.length?this.removeChild(t):this.parentNode.insertBefore(t,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},J=function(t){return V(t,(function(t){var e,n=t.attributes;for(e=n.length-1;e>=0;e--)t.removeAttributeNode(n.item(e))}))},Q=function(t){return d.parse(t)},tt=function(t,e){return d.serialize(t,e)},et=function(e){var n,o;if(It!==Ec.DOM&&t===document){if(r[e])return;r[e]=!0}o=t.getElementById("mceDefaultStyles"),o||(o=t.createElement("style"),o.id="mceDefaultStyles",o.type="text/css",n=t.getElementsByTagName("head")[0],n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=e:o.appendChild(t.createTextNode(e))},nt=function(t){t||(t=""),Z(t.split(","),(function(t){i[t]=!0,c.load(t,h)}))},rt=function(t,e,n){y(t).toggleClass(e,n).each((function(){""===this.className&&xc(this).attr("class",null)}))},ot=function(t,e){y(t).addClass(e)},it=function(t,e){rt(t,e,!1)},at=function(t,e){return y(t).hasClass(e)},ut=function(t){y(t).show()},st=function(t){y(t).hide()},ct=function(t){return"none"===y(t).css("display")},lt=function(t){return(t||"mce_")+a++},ft=function(t){var e="string"===typeof t?b(t):t;return Rr(e)?e.outerHTML:xc("<div></div>").append(xc(e).clone()).html()},dt=function(t,e){y(t).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=e)}catch(t){}K(xc(this).html(e),!0)}))},ht=function(t,e){var n=b(e);return V(t,(function(t){var e=n.parentNode,r=n.nextSibling;return r?e.insertBefore(t,r):e.appendChild(t),t}))},pt=function(t,e,n){return V(e,(function(e){return ln.is(e,"array")&&(t=t.cloneNode(!0)),n&&wc(Cc(e.childNodes),(function(e){t.appendChild(e)})),e.parentNode.replaceChild(t,e)}))},mt=function(t,e){var n;return t.nodeName!==e.toUpperCase()&&(n=W(e),wc(w(t),(function(e){C(n,e.nodeName,x(t,e.nodeName))})),pt(n,t,!0)),n||t},gt=function(t,e){var n,r=t;while(r){n=e;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&t.ownerDocument?t.ownerDocument.documentElement:r},vt=function(t){return d.toHex(ln.trim(t))},bt=function(t){if(Rr(t)){var e="a"===t.nodeName.toLowerCase()&&!x(t,"href")&&x(t,"id");if(x(t,"name")||x(t,"data-mce-bookmark")||e)return!0}return!1},yt=function(t,e){var n,r,o=0;if(bt(t))return!1;if(t=t.firstChild,t){var i=new hi(t,t.parentNode),a=f?f.getWhiteSpaceElements():{};e=e||(f?f.getNonEmptyElements():null);do{if(n=t.nodeType,Rr(t)){var u=t.getAttribute("data-mce-bogus");if(u){t=i.next("all"===u);continue}if(r=t.nodeName.toLowerCase(),e&&e[r]){if("br"===r){o++,t=i.next();continue}return!1}if(bt(t))return!1}if(8===n)return!1;if(3===n&&!xa(t.nodeValue))return!1;if(3===n&&t.parentNode&&a[t.parentNode.nodeName]&&xa(t.nodeValue))return!1;t=i.next()}while(t)}return o<=1},wt=function(){return t.createRange()},Ct=function(t,e,n){var r,o,i,a=wt();if(t&&e)return a.setStart(t.parentNode,Ac(t)),a.setEnd(e.parentNode,Ac(e)),r=a.extractContents(),a=wt(),a.setStart(e.parentNode,Ac(e)+1),a.setEnd(t.parentNode,Ac(t)+1),o=a.extractContents(),i=t.parentNode,i.insertBefore(ja(It,r),t),n?i.insertBefore(n,t):i.insertBefore(e,t),i.insertBefore(ja(It,o),t),K(t),n||e},St=function(n,r,i,a){if(ln.isArray(n)){var u=n.length,s=[];while(u--)s[u]=St(n[u],r,i,a);return s}!e.collect||n!==t&&n!==o||l.push([n,r,i,a]);var c=p.bind(n,r,i,a||It);return c},kt=function(e,n,r){if(ln.isArray(e)){var i=e.length,a=[];while(i--)a[i]=kt(e[i],n,r);return a}if(l.length>0&&(e===t||e===o)){i=l.length;while(i--){var u=l[i];e!==u[0]||n&&n!==u[1]||r&&r!==u[2]||p.unbind(u[0],u[1],u[2])}}return p.unbind(e,n,r)},Ot=function(t,e,n){return p.fire(t,e,n)},_t=function(t){if(t&&Rr(t)){var e=t.getAttribute("data-mce-contenteditable");return e&&"inherit"!==e?e:"inherit"!==t.contentEditable?t.contentEditable:null}return null},At=function(t){for(var e=k(),n=null;t&&t!==e;t=t.parentNode)if(n=_t(t),null!==n)break;return n},Et=function(){if(l.length>0){var t=l.length;while(t--){var e=l[t];p.unbind(e[0],e[1],e[2])}}xt(i,(function(t,e){c.unload(e),delete i[e]})),Es.setDocument&&Es.setDocument()},Tt=function(t,e){while(t){if(e===t)return!0;t=t.parentNode}return!1},Dt=function(t){return"startContainer: "+t.startContainer.nodeName+", startOffset: "+t.startOffset+", endContainer: "+t.endContainer.nodeName+", endOffset: "+t.endOffset},It={doc:t,settings:e,win:o,files:i,stdMode:u,boxModel:s,styleSheetLoader:c,boundEvents:l,styles:d,schema:f,events:p,isBlock:v,$:g,$$:y,root:null,clone:S,getRoot:k,getViewPort:O,getRect:I,getSize:D,getParent:P,getParents:N,get:b,getNext:j,getPrev:R,select:F,is:B,add:U,create:W,createHTML:Y,createFragment:X,remove:K,setStyle:A,getStyle:T,setStyles:E,removeAllAttribs:J,setAttrib:C,setAttribs:H,getAttrib:x,getPos:_,parseStyle:Q,serializeStyle:tt,addStyle:et,loadCSS:nt,addClass:ot,removeClass:it,hasClass:at,toggleClass:rt,show:ut,hide:st,isHidden:ct,uniqueId:lt,setHTML:z,getOuterHTML:ft,setOuterHTML:dt,decode:q,encode:G,insertAfter:ht,replace:pt,rename:mt,findCommonAncestor:gt,toHex:vt,run:V,getAttribs:w,isEmpty:yt,createRng:wt,nodeIndex:Ac,split:Ct,bind:St,unbind:kt,fire:Ot,getContentEditable:_t,getContentEditableParent:At,destroy:Et,isChildOf:Tt,dumpRng:Dt},Bt=Oc(d,e,(function(){return It}));return It}(function(t){t.DOM=t(document),t.nodeIndex=Ac})(Ec||(Ec={}));var Tc=Ec,Dc=Tc.DOM,Ic=ln.each,Bc=ln.grep,Lc=0,Nc=1,Pc=2,Mc=3,jc=function(){function t(t){void 0===t&&(t={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=t}return t.prototype._setReferrerPolicy=function(t){this.settings.referrerPolicy=t},t.prototype.loadScript=function(t,e,n){var r,o=Dc,i=function(){o.remove(s),r&&(r.onerror=r.onload=r=null)},a=function(){i(),e()},u=function(){i(),V(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+t)},s=o.uniqueId();r=document.createElement("script"),r.id=s,r.type="text/javascript",r.src=ln._addCacheSuffix(t),this.settings.referrerPolicy&&o.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=u,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},t.prototype.isDone=function(t){return this.states[t]===Pc},t.prototype.markDone=function(t){this.states[t]=Pc},t.prototype.add=function(t,e,n,r){var o=this.states[t];this.queue.push(t),void 0===o&&(this.states[t]=Lc),e&&(this.scriptLoadedCallbacks[t]||(this.scriptLoadedCallbacks[t]=[]),this.scriptLoadedCallbacks[t].push({success:e,failure:r,scope:n||this}))},t.prototype.load=function(t,e,n,r){return this.add(t,e,n,r)},t.prototype.remove=function(t){delete this.states[t],delete this.scriptLoadedCallbacks[t]},t.prototype.loadQueue=function(t,e,n){this.loadScripts(this.queue,t,e,n)},t.prototype.loadScripts=function(t,e,n,r){var o=this,i=[],a=function(t,e){Ic(o.scriptLoadedCallbacks[e],(function(e){V(e[t])&&e[t].call(e.scope)})),o.scriptLoadedCallbacks[e]=void 0};o.queueLoadedCallbacks.push({success:e,failure:r,scope:n||this});var u=function(){var e=Bc(t);if(t.length=0,Ic(e,(function(t){o.states[t]!==Pc?o.states[t]!==Mc?o.states[t]!==Nc&&(o.states[t]=Nc,o.loading++,o.loadScript(t,(function(){o.states[t]=Pc,o.loading--,a("success",t),u()}),(function(){o.states[t]=Mc,o.loading--,i.push(t),a("failure",t),u()}))):a("failure",t):a("success",t)})),!o.loading){var n=o.queueLoadedCallbacks.slice(0);o.queueLoadedCallbacks.length=0,Ic(n,(function(t){0===i.length?V(t.success)&&t.success.call(t.scope):V(t.failure)&&t.failure.call(t.scope,i)}))}};u()},t.ScriptLoader=new t,t}(),Rc=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},$c=function(t){return N(t)&&Dt(t,"raw")},Fc=function(t){return P(t)&&t.length>1},Vc={},Hc=Rc("en"),zc=function(){return Tt(Vc,Hc.get())},Uc=function(){return wt(Vc,(function(t){return Ht({},t)}))},Wc=function(t){t&&Hc.set(t)},qc=function(){return Hc.get()},Gc=function(t,e){var n=Vc[t];n||(Vc[t]=n={}),xt(e,(function(t,e){n[e.toLowerCase()]=t}))},Yc=function(t){var e=zc().getOr({}),n=function(t){return V(t)?Object.prototype.toString.call(t):r(t)?"":""+t},r=function(t){return""===t||null===t||void 0===t},o=function(t){var r=n(t);return Tt(e,r.toLowerCase()).map(n).getOr(r)},i=function(t){return t.replace(/{context:\w+}$/,"")};if(r(t))return"";if($c(t))return n(t.raw);if(Fc(t)){var a=t.slice(1),u=o(t[0]).replace(/\{([0-9]+)\}/g,(function(t,e){return Dt(a,e)?n(a[e]):t}));return i(u)}return i(o(t))},Xc=function(){return zc().bind((function(t){return Tt(t,"_dir")})).exists((function(t){return"rtl"===t}))},Kc=function(t){return Dt(Vc,t)},Zc={getData:Uc,setCode:Wc,getCode:qc,add:Gc,translate:Yc,isRtl:Xc,hasCode:Kc};function Jc(){var t=this,e=[],n={},r={},o=[],i=function(t,e){var n=tt(o,(function(n){return n.name===t&&n.state===e}));Z(n,(function(t){return t.callback()}))},a=function(t){if(r[t])return r[t].instance},u=function(t){var e;return r[t]&&(e=r[t].dependencies),e||[]},s=function(t,e){!1!==Jc.languageLoad&&m(t,(function(){var r=Zc.getCode(),o=","+(e||"")+",";!r||e&&-1===o.indexOf(","+r+",")||jc.ScriptLoader.add(n[t]+"/langs/"+r+".js")}),"loaded")},c=function(t,n,o){var a=n;return e.push(a),r[t]={instance:a,dependencies:o},i(t,"added"),a},l=function(t){delete n[t],delete r[t]},f=function(t,e){return"object"===typeof e?e:"string"===typeof t?{prefix:"",resource:e,suffix:""}:{prefix:t.prefix,resource:e,suffix:t.suffix}},d=function(e,n){var r=t.urls[e];Z(n,(function(t){jc.ScriptLoader.add(r+"/"+t)}))},h=function(t,e,n,r){var o=u(t);Z(o,(function(t){var n=f(e,t);p(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(jc))},p=function(t,e,o,a,u){if(!n[t]){var s="string"===typeof e?e:e.prefix+e.resource+e.suffix;0!==s.indexOf("/")&&-1===s.indexOf("://")&&(s=Jc.baseURL+"/"+s),n[t]=s.substring(0,s.lastIndexOf("/"));var c=function(){i(t,"loaded"),h(t,e,o,a)};r[t]?c():jc.ScriptLoader.add(s,c,a,u)}},m=function(t,e,i){void 0===i&&(i="added"),Dt(r,t)&&"added"===i||Dt(n,t)&&"loaded"===i?e():o.push({name:t,state:i,callback:e})};return{items:e,urls:n,lookup:r,_listeners:o,get:a,dependencies:u,requireLangPack:s,add:c,remove:l,createUrl:f,addComponents:d,load:p,waitFor:m}}(function(t){t.PluginManager=t(),t.ThemeManager=t()})(Jc||(Jc={}));var Qc=Jc,tl=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];null===n&&(n=setTimeout((function(){t.apply(null,r),n=null}),e))};return{cancel:r,throttle:o}},el=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((function(){t.apply(null,r),n=null}),e)};return{cancel:r,throttle:o}},nl=function(t,e){var n=so(t,e);return void 0===n||""===n?[]:n.split(" ")},rl=function(t,e,n){var r=nl(t,e),o=r.concat([n]);return ao(t,e,o.join(" ")),!0},ol=function(t,e,n){var r=tt(nl(t,e),(function(t){return t!==n}));return r.length>0?ao(t,e,r.join(" ")):fo(t,e),!1},il=function(t){return void 0!==t.dom.classList},al=function(t){return nl(t,"class")},ul=function(t,e){return rl(t,"class",e)},sl=function(t,e){return ol(t,"class",e)},cl=function(t,e){il(t)?t.dom.classList.add(e):ul(t,e)},ll=function(t){var e=il(t)?t.dom.classList:al(t);0===e.length&&fo(t,"class")},fl=function(t,e){if(il(t)){var n=t.dom.classList;n.remove(e)}else sl(t,e);ll(t)},dl=function(t,e){return il(t)&&t.dom.classList.contains(e)},hl=function(t,e){var n=[];return Z(Jn(t),(function(t){e(t)&&(n=n.concat([t])),n=n.concat(hl(t,e))})),n},pl=function(t,e){return An(e,t)},ml=g("mce-annotation"),gl=g("data-mce-annotation"),vl=g("data-mce-annotation-uid"),bl=function(t,e){var n=t.selection.getRng(),r=gn.fromDom(n.startContainer),o=gn.fromDom(t.getBody()),i=e.fold((function(){return"."+ml()}),(function(t){return"["+gl()+'="'+t+'"]'})),a=Qn(r,n.startOffset).getOr(r),u=ti(a,i,(function(t){return Tn(t,o)})),s=function(t,e){return lo(t,e)?E.some(so(t,e)):E.none()};return u.bind((function(e){return s(e,""+vl()).bind((function(n){return s(e,""+gl()).map((function(e){var r=xl(t,n);return{uid:n,name:e,elements:r}}))}))}))},yl=function(t){return jn(t)&&dl(t,ml())},xl=function(t,e){var n=gn.fromDom(t.getBody());return pl(n,"["+vl()+'="'+e+'"]')},wl=function(t,e){var n=gn.fromDom(t.getBody()),r=pl(n,"["+gl()+'="'+e+'"]'),o={};return Z(r,(function(t){var e=so(t,vl()),n=o.hasOwnProperty(e)?o[e]:[];o[e]=n.concat([t])})),o},Cl=function(t,e){var n=Rc({}),r=function(){return{listeners:[],previous:Rc(E.none())}},o=function(t,e){i(t,(function(t){return e(t),t}))},i=function(t,e){var o=n.get(),i=o.hasOwnProperty(t)?o[t]:r(),a=e(i);o[t]=a,n.set(o)},a=function(t,e,n){o(t,(function(r){Z(r.listeners,(function(r){return r(!0,t,{uid:e,nodes:K(n,(function(t){return t.dom}))})}))}))},u=function(t){o(t,(function(e){Z(e.listeners,(function(e){return e(!1,t)}))}))},s=el((function(){var e=n.get(),r=dt(bt(e));Z(r,(function(e){i(e,(function(n){var r=n.previous.get();return bl(t,E.some(e)).fold((function(){r.isSome()&&(u(e),n.previous.set(E.none()))}),(function(t){var e=t.uid,o=t.name,i=t.elements;r.is(e)||(a(o,e,i),n.previous.set(E.some(e)))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);t.on("remove",(function(){s.cancel()})),t.on("NodeChange",(function(){s.throttle()}));var c=function(t,e){i(t,(function(t){return{previous:t.previous,listeners:t.listeners.concat([e])}}))};return{addListener:c}},Sl=function(t,e){var n=function(t){return E.from(t.attr(gl())).bind(e.lookup)};t.on("init",(function(){t.serializer.addNodeFilter("span",(function(t){Z(t,(function(t){n(t).each((function(e){!1===e.persistent&&t.unwrap()}))}))}))}))},kl=function(){var t={},e=function(e,n){t[e]={name:e,settings:n}},n=function(e){return t.hasOwnProperty(e)?E.from(t[e]).map((function(t){return t.settings})):E.none()};return{register:e,lookup:n}},Ol=0,_l=function(t){var e=new Date,n=e.getTime(),r=Math.floor(1e9*Math.random());return Ol++,t+"_"+r+Ol+String(n)},Al=function(t,e){Z(e,(function(e){cl(t,e)}))},El=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,Jn(gn.fromDom(r))},Tl=function(t){return t.dom.innerHTML},Dl=function(t,e){var n=Vn(t),r=n.dom,o=gn.fromDom(r.createDocumentFragment()),i=El(e,r);yr(o,i),xr(t),gr(t,o)},Il=function(t,e){return gn.fromDom(t.dom.cloneNode(e))},Bl=function(t){return Il(t,!1)},Ll=function(t){return Il(t,!0)},Nl=function(t,e,n){void 0===n&&(n=C);var r=new hi(t,e),o=function(t){var e;do{e=r[t]()}while(e&&!Yr(e)&&!n(e));return E.from(e).filter(Yr)};return{current:function(){return E.from(r.current()).filter(Yr)},next:function(){return o("next")},prev:function(){return o("prev")},prev2:function(){return o("prev2")}}},Pl=function(t,e){var n=e||function(e){return t.isBlock(e)||Jr(e)||eo(e)},r=function(t,e,n,o){if(Yr(t)){var i=o(t,e,t.data);if(-1!==i)return E.some({container:t,offset:i})}return n().bind((function(t){return r(t.container,t.offset,n,o)}))},o=function(t,e,o,i){var a=Nl(t,i,n);return r(t,e,(function(){return a.prev().map((function(t){return{container:t,offset:t.length}}))}),o).getOrNull()},i=function(t,e,o,i){var a=Nl(t,i,n);return r(t,e,(function(){return a.next().map((function(t){return{container:t,offset:0}}))}),o).getOrNull()};return{backwards:o,forwards:i}},Ml=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},jl=function(t,e,n){return t.isSome()&&e.isSome()?E.some(n(t.getOrDie(),e.getOrDie())):E.none()},Rl=function(t,e,n,r){return t.isSome()&&e.isSome()&&n.isSome()?E.some(r(t.getOrDie(),e.getOrDie(),n.getOrDie())):E.none()},$l=function(t,e){return t?E.some(e):E.none()},Fl=Math.round,Vl=function(t){return t?{left:Fl(t.left),top:Fl(t.top),bottom:Fl(t.bottom),right:Fl(t.right),width:Fl(t.width),height:Fl(t.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Hl=function(t,e){return t=Vl(t),e||(t.left=t.left+t.width),t.right=t.left,t.width=0,t},zl=function(t,e){return t.left===e.left&&t.top===e.top&&t.bottom===e.bottom&&t.right===e.right},Ul=function(t,e,n){return t>=0&&t<=Math.min(e.height,n.height)/2},Wl=function(t,e){var n=Math.min(e.height/2,t.height/2);return t.bottom-n<e.top||!(t.top>e.bottom)&&Ul(e.top-t.bottom,t,e)},ql=function(t,e){return t.top>e.bottom||!(t.bottom<e.top)&&Ul(e.bottom-t.top,t,e)},Gl=function(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom},Yl=function(t){var e=t.startContainer,n=t.startOffset;return e.hasChildNodes()&&t.endOffset===n+1?e.childNodes[n]:null},Xl=function(t,e){return 1===t.nodeType&&t.hasChildNodes()&&(e>=t.childNodes.length&&(e=t.childNodes.length-1),t=t.childNodes[e]),t},Kl=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿-⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Zl=function(t){return"string"===typeof t&&t.charCodeAt(0)>=768&&Kl.test(t)},Jl=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var n=0;n<t.length;n++)if(t[n](e))return!0;return!1}},Ql=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}},tf=Rr,ef=da,nf=Fr("display","block table"),rf=Fr("float","left right"),of=Ql(tf,ef,y(rf)),af=y(Fr("white-space","pre pre-line pre-wrap")),uf=Yr,sf=Jr,cf=Tc.nodeIndex,lf=Xl,ff=function(t){return"createRange"in t?t.createRange():Tc.DOM.createRng()},df=function(t){return t&&/[\r\n\t ]/.test(t)},hf=function(t){return!!t.setStart&&!!t.setEnd},pf=function(t){var e,n=t.startContainer,r=t.startOffset;return!!(df(t.toString())&&af(n.parentNode)&&Yr(n)&&(e=n.data,df(e[r-1])||df(e[r+1])))},mf=function(t){var e=t.ownerDocument,n=ff(e),r=e.createTextNode(Mi),o=t.parentNode;o.insertBefore(r,t),n.setStart(r,0),n.setEnd(r,1);var i=Vl(n.getBoundingClientRect());return o.removeChild(r),i},gf=function(t){var e=t.startContainer,n=t.endContainer,r=t.startOffset,o=t.endOffset;if(e===n&&Yr(n)&&0===r&&1===o){var i=t.cloneRange();return i.setEndAfter(n),bf(i)}return null},vf=function(t){return 0===t.left&&0===t.right&&0===t.top&&0===t.bottom},bf=function(t){var e,n=t.getClientRects();return e=n.length>0?Vl(n[0]):Vl(t.getBoundingClientRect()),!hf(t)&&sf(t)&&vf(e)?mf(t):vf(e)&&hf(t)?gf(t):e},yf=function(t,e){var n=Hl(t,e);return n.width=1,n.right=n.left+1,n},xf=function(t){var e,n,r=[],o=function(t){0!==t.height&&(r.length>0&&zl(t,r[r.length-1])||r.push(t))},i=function(t,e){var n=ff(t.ownerDocument);if(e<t.data.length){if(Zl(t.data[e]))return r;if(Zl(t.data[e-1])&&(n.setStart(t,e),n.setEnd(t,e+1),!pf(n)))return o(yf(bf(n),!1)),r}e>0&&(n.setStart(t,e-1),n.setEnd(t,e),pf(n)||o(yf(bf(n),!1))),e<t.data.length&&(n.setStart(t,e),n.setEnd(t,e+1),pf(n)||o(yf(bf(n),!0)))};if(uf(t.container()))return i(t.container(),t.offset()),r;if(tf(t.container()))if(t.isAtEnd())n=lf(t.container(),t.offset()),uf(n)&&i(n,n.data.length),of(n)&&!sf(n)&&o(yf(bf(n),!1));else{if(n=lf(t.container(),t.offset()),uf(n)&&i(n,0),of(n)&&t.isAtEnd())return o(yf(bf(n),!1)),r;e=lf(t.container(),t.offset()-1),of(e)&&!sf(e)&&(nf(e)||nf(n)||!of(n))&&o(yf(bf(e),!1)),of(n)&&o(yf(bf(n),!0))}return r};function wf(t,e,n){var r=function(){return uf(t),0===e},o=function(){return uf(t)?e>=t.data.length:e>=t.childNodes.length},i=function(){var n=ff(t.ownerDocument);return n.setStart(t,e),n.setEnd(t,e),n},a=function(){return n||(n=xf(wf(t,e))),n},u=function(){return a().length>0},s=function(n){return n&&t===n.container()&&e===n.offset()},c=function(n){return lf(t,n?e-1:e)};return{container:g(t),offset:g(e),toRange:i,getClientRects:a,isVisible:u,isAtStart:r,isAtEnd:o,isEqual:s,getNode:c}}(function(t){t.fromRangeStart=function(e){return t(e.startContainer,e.startOffset)},t.fromRangeEnd=function(e){return t(e.endContainer,e.endOffset)},t.after=function(e){return t(e.parentNode,cf(e)+1)},t.before=function(e){return t(e.parentNode,cf(e))},t.isAbove=function(t,e){return jl(pt(e.getClientRects()),mt(t.getClientRects()),Wl).getOr(!1)},t.isBelow=function(t,e){return jl(mt(e.getClientRects()),pt(t.getClientRects()),ql).getOr(!1)},t.isAtStart=function(t){return!!t&&t.isAtStart()},t.isAtEnd=function(t){return!!t&&t.isAtEnd()},t.isTextPosition=function(t){return!!t&&Yr(t.container())},t.isElementPosition=function(e){return!1===t.isTextPosition(e)}})(wf||(wf={}));var Cf,Sf=wf,kf=function(t,e){Yr(e)&&0===e.data.length&&t.remove(e)},Of=function(t,e,n){e.insertNode(n),kf(t,n.previousSibling),kf(t,n.nextSibling)},_f=function(t,e,n){var r=E.from(n.firstChild),o=E.from(n.lastChild);e.insertNode(n),r.each((function(e){return kf(t,e.previousSibling)})),o.each((function(e){return kf(t,e.nextSibling)}))},Af=function(t,e,n){Zr(n)?_f(t,e,n):Of(t,e,n)},Ef=Yr,Tf=zr,Df=Tc.nodeIndex,If=function(t){var e=t.parentNode;return Tf(e)?If(e):e},Bf=function(t){return t?$t(t.childNodes,(function(t,e){return Tf(e)&&"BR"!==e.nodeName?t=t.concat(Bf(e)):t.push(e),t}),[]):[]},Lf=function(t,e){while(t=t.previousSibling){if(!Ef(t))break;e+=t.data.length}return e},Nf=function(t){return function(e){return t===e}},Pf=function(t){var e,n;e=Bf(If(t)),n=Ft(e,Nf(t),t),e=e.slice(0,n+1);var r=$t(e,(function(t,n,r){return Ef(n)&&Ef(e[r-1])&&t++,t}),0);return e=jt(e,$r([t.nodeName])),n=Ft(e,Nf(t),t),n-r},Mf=function(t){var e;return e=Ef(t)?"text()":t.nodeName.toLowerCase(),e+"["+Pf(t)+"]"},jf=function(t,e,n){var r=[];for(e=e.parentNode;e!==t;e=e.parentNode){if(n&&n(e))break;r.push(e)}return r},Rf=function(t,e){var n,r,o,i,a,u=[];return n=e.container(),r=e.offset(),Ef(n)?o=Lf(n,r):(i=n.childNodes,r>=i.length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(Mf(n)),a=jf(t,n),a=jt(a,y(zr)),u=u.concat(Mt(a,(function(t){return Mf(t)}))),u.reverse().join("/")+","+o},$f=function(t,e,n){var r=Bf(t);return r=jt(r,(function(t,e){return!Ef(t)||!Ef(r[e-1])})),r=jt(r,$r([e])),r[n]},Ff=function(t,e){var n,r=t,o=0;while(Ef(r)){if(n=r.data.length,e>=o&&e<=o+n){t=r,e-=o;break}if(!Ef(r.nextSibling)){t=r,e=n;break}o+=n,r=r.nextSibling}return Ef(t)&&e>t.data.length&&(e=t.data.length),Sf(t,e)},Vf=function(t,e){var n;if(!e)return null;var r=e.split(","),o=r[0].split("/");n=r.length>1?r[1]:"before";var i=$t(o,(function(t,e){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(e);return n?("text()"===n[1]&&(n[1]="#text"),$f(t,n[1],parseInt(n[2],10))):null}),t);return i?Ef(i)?Ff(i,parseInt(n,10)):(n="after"===n?Df(i)+1:Df(i),Sf(i.parentNode,n)):null},Hf=eo,zf=function(t,e,n){var r,o;for(o=t(e.data.slice(0,n)).length,r=e.previousSibling;r&&Yr(r);r=r.previousSibling)o+=t(r.data).length;return o},Uf=function(t,e,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],s=[],c=0,l=t.getRoot();for(Yr(a)?s.push(n?zf(e,a,u):u):(i=a.childNodes,u>=i.length&&i.length&&(c=1,u=Math.max(0,i.length-1)),s.push(t.nodeIndex(i[u],n)+c));a&&a!==l;a=a.parentNode)s.push(t.nodeIndex(a,n));return s},Wf=function(t,e,n,r){var o=e.dom,i={};return i.start=Uf(o,t,n,r,!0),e.isCollapsed()||(i.end=Uf(o,t,n,r,!1)),i},qf=function(t,e,n){var r=0;return ln.each(t.select(e),(function(t){if("all"!==t.getAttribute("data-mce-bogus"))return t!==n&&void r++})),r},Gf=function(t,e){var n,r,o,i=e?"start":"end";n=t[i+"Container"],r=t[i+"Offset"],Rr(n)&&"TR"===n.nodeName&&(o=n.childNodes,n=o[Math.min(e?r:r-1,o.length-1)],n&&(r=e?0:n.childNodes.length,t["set"+(e?"Start":"End")](n,r)))},Yf=function(t){return Gf(t,!0),Gf(t,!1),t},Xf=function(t,e){var n;if(Rr(t)&&(t=Xl(t,e),Hf(t)))return t;if(qi(t)){if(Yr(t)&&Ui(t)&&(t=t.parentNode),n=t.previousSibling,Hf(n))return n;if(n=t.nextSibling,Hf(n))return n}},Kf=function(t){return Xf(t.startContainer,t.startOffset)||Xf(t.endContainer,t.endOffset)},Zf=function(t,e,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Hf(r)||"IMG"===o)return{name:o,index:qf(n.dom,o,r)};var a=Kf(i);return a?(o=a.tagName,{name:o,index:qf(n.dom,o,a)}):Wf(t,n,e,i)},Jf=function(t){var e=t.getRng();return{start:Rf(t.dom.getRoot(),Sf.fromRangeStart(e)),end:Rf(t.dom.getRoot(),Sf.fromRangeEnd(e))}},Qf=function(t){return{rng:t.getRng()}},td=function(t,e,n){var r={"data-mce-type":"bookmark",id:e,style:"overflow:hidden;line-height:0px"};return n?t.create("span",r,""):t.create("span",r)},ed=function(t,e){var n=t.dom,r=t.getRng(),o=n.uniqueId(),i=t.isCollapsed(),a=t.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:qf(n,u,a)};var s=Yf(r.cloneRange());if(!i){s.collapse(!1);var c=td(n,o+"_end",e);Af(n,s,c)}r=Yf(r),r.collapse(!0);var l=td(n,o+"_start",e);return Af(n,r,l),t.moveToBookmark({id:o,keep:!0}),{id:o}},nd=function(t,e,n){return 2===e?Zf(Vi,n,t):3===e?Jf(t):e?Qf(t):ed(t,!1)},rd=b(Zf,v,!0),od=Tc.DOM,id="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",ad=function(t,e,n){var r=t.getParam(e,n);if(-1!==r.indexOf("=")){var o=t.getParam(e,"","hash");return o.hasOwnProperty(t.id)?o[t.id]:n}return r},ud=function(t){return t.getParam("iframe_attrs",{})},sd=function(t){return t.getParam("doctype","<!DOCTYPE html>")},cd=function(t){return t.getParam("document_base_url","")},ld=function(t){return ad(t,"body_id","tinymce")},fd=function(t){return ad(t,"body_class","")},dd=function(t){return t.getParam("content_security_policy","")},hd=function(t){return t.getParam("br_in_pre",!0)},pd=function(t){if(t.getParam("force_p_newlines",!1))return"p";var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e},md=function(t){return t.getParam("forced_root_block_attrs",{})},gd=function(t){return t.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},vd=function(t){return t.getParam("no_newline_selector","")},bd=function(t){return t.getParam("keep_styles",!0)},yd=function(t){return t.getParam("end_container_on_empty_block",!1)},xd=function(t){return ln.explode(t.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},wd=function(t){return ln.explode(t.getParam("font_size_classes",""))},Cd=function(t){return t.getParam("images_dataimg_filter",S,"function")},Sd=function(t){return t.getParam("automatic_uploads",!0,"boolean")},kd=function(t){return t.getParam("images_reuse_filename",!1,"boolean")},Od=function(t){return t.getParam("images_replace_blob_uris",!0,"boolean")},_d=function(t){return t.getParam("icons","","string")},Ad=function(t){return t.getParam("icons_url","","string")},Ed=function(t){return t.getParam("images_upload_url","","string")},Td=function(t){return t.getParam("images_upload_base_path","","string")},Dd=function(t){return t.getParam("images_upload_credentials",!1,"boolean")},Id=function(t){return t.getParam("images_upload_handler",null,"function")},Bd=function(t){return t.getParam("content_css_cors",!1,"boolean")},Ld=function(t){return t.getParam("referrer_policy","","string")},Nd=function(t){return t.getParam("language","en","string")},Pd=function(t){return t.getParam("language_url","","string")},Md=function(t){return t.getParam("indent_use_margin",!1)},jd=function(t){return t.getParam("indentation","40px","string")},Rd=function(t){var e=t.getParam("content_css");return L(e)?K(e.split(","),ce):P(e)?e:!1===e||t.inline?[]:["default"]},$d=function(t){return t.getParam("directionality",Zc.isRtl()?"rtl":void 0)},Fd=function(t){return t.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Vd=function(t){var e=t.getParam("object_resizing");return!1!==e&&!Ke.iOS&&(L(e)?e:"table,img,figure.image,div")},Hd=function(t){return t.getParam("resize_img_proportional",!0,"boolean")},zd=function(t){return t.getParam("placeholder",od.getAttrib(t.getElement(),"placeholder"),"string")},Ud=function(t){return t.getParam("event_root")},Wd=function(t){return t.getParam("service_message")},qd=function(t){return t.getParam("theme")},Gd=function(t){return t.getParam("validate")},Yd=function(t){return!1!==t.getParam("inline_boundaries")},Xd=function(t){return t.getParam("formats")},Kd=function(t){var e=t.getParam("preview_styles",id);return L(e)?e:""},Zd=function(t){return t.getParam("format_empty_lines",!1,"boolean")},Jd=function(t){return t.getParam("custom_ui_selector","","string")},Qd=function(t){return t.getParam("theme_url")},th=function(t){return t.getParam("inline")},eh=function(t){return t.getParam("hidden_input")},nh=function(t){return t.getParam("submit_patch")},rh=function(t){return"xml"===t.getParam("encoding")},oh=function(t){return t.getParam("add_form_submit_trigger")},ih=function(t){return t.getParam("add_unload_trigger")},ah=function(t){return""!==pd(t)},uh=function(t){return t.getParam("custom_undo_redo_levels",0,"number")},sh=function(t){return t.getParam("disable_nodechange")},ch=function(t){return t.getParam("readonly")},lh=function(t){return t.getParam("content_css_cors")},fh=function(t){return t.getParam("plugins","","string")},dh=function(t){return t.getParam("external_plugins")},hh=function(t){return t.getParam("block_unsupported_drop",!0,"boolean")},ph=function(t){return t.getParam("visual",!0,"boolean")},mh=function(t){return t.getParam("visual_table_class","mce-item-table","string")},gh=function(t){return t.getParam("visual_anchor_class","mce-item-anchor","string")},vh=Rr,bh=Yr,yh=function(t){var e=t.parentNode;e&&e.removeChild(t)},xh=function(t){var e=Vi(t);return{count:t.length-e.length,text:e}},wh=function(t){var e;while(-1!==(e=t.data.lastIndexOf($i)))t.deleteData(e,1)},Ch=function(t,e){return Eh(t),e},Sh=function(t,e){var n=xh(t.data.substr(0,e.offset())),r=xh(t.data.substr(e.offset())),o=n.text+r.text;return o.length>0?(wh(t),Sf(t,e.offset()-n.count)):e},kh=function(t,e){var n=e.container(),r=G(gt(n.childNodes),t).map((function(t){return t<e.offset()?Sf(n,e.offset()-1):e})).getOr(e);return Eh(t),r},Oh=function(t,e){return bh(t)&&e.container()===t?Sh(t,e):Ch(t,e)},_h=function(t,e){return e.container()===t.parentNode?kh(t,e):Ch(t,e)},Ah=function(t,e){return Sf.isTextPosition(e)?Oh(t,e):_h(t,e)},Eh=function(t){vh(t)&&qi(t)&&(Gi(t)?t.removeAttribute("data-mce-caret"):yh(t)),bh(t)&&(wh(t),0===t.data.length&&yh(t))},Th=Ve().browser,Dh=eo,Ih=ro,Bh=no,Lh="*[contentEditable=false],video,audio,embed,object",Nh=function(t,e,n){var r,o,i,a,u,s=Hl(e.getBoundingClientRect(),n);return"BODY"===t.tagName?(r=t.ownerDocument.documentElement,o=t.scrollLeft||r.scrollLeft,i=t.scrollTop||r.scrollTop):(u=t.getBoundingClientRect(),o=t.scrollLeft-u.left,i=t.scrollTop-u.top),s.left+=o,s.right+=o,s.top+=i,s.bottom+=i,s.width=1,a=e.offsetWidth-e.clientWidth,a>0&&(n&&(a*=-1),s.left+=a,s.right+=a),s},Ph=function(t){for(var e=pl(gn.fromDom(t),Lh),n=0;n<e.length;n++){var r=e[n].dom,o=r.previousSibling;if(ta(o)){var i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(i.length-1,1)}if(o=r.nextSibling,Qi(o)){i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(0,1)}}},Mh=function(t,e,n,r){var o,i,a=Rc(E.none()),u=pd(t),s=u.length>0?u:"p",c=function(t,r){var o,u;if(l(),Bh(r))return null;if(!n(r))return i=Yi(r,t),u=r.ownerDocument.createRange(),Rh(i.nextSibling)?(u.setStart(i,0),u.setEnd(i,0)):(u.setStart(i,1),u.setEnd(i,1)),u;i=Ji(s,r,t),o=Nh(e,r,t),xc(i).css("top",o.top);var c=xc('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(o).appendTo(e)[0];return a.set(E.some({caret:c,element:r,before:t})),a.get().each((function(e){t&&xc(e.caret).addClass("mce-visual-caret-before")})),f(),u=r.ownerDocument.createRange(),u.setStart(i,0),u.setEnd(i,0),u},l=function(){Ph(e),i&&(Eh(i),i=null),a.get().each((function(t){xc(t.caret).remove(),a.set(E.none())})),o&&(ci.clearInterval(o),o=null)},f=function(){o=ci.setInterval((function(){r()?xc("div.mce-visual-caret",e).toggleClass("mce-visual-caret-hidden"):xc("div.mce-visual-caret",e).addClass("mce-visual-caret-hidden")}),500)},d=function(){a.get().each((function(t){var n=Nh(e,t.element,t.before);xc(t.caret).css(Ht({},n))}))},h=function(){return ci.clearInterval(o)},p=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:c,hide:l,getCss:p,reposition:d,destroy:h}},jh=function(){return Th.isIE()||Th.isEdge()||Th.isFirefox()},Rh=function(t){return Dh(t)||Ih(t)},$h=function(t){return Rh(t)||Wr(t)&&jh()},Fh=eo,Vh=ro,Hh=Fr("display","block table table-cell table-caption list-item"),zh=qi,Uh=Ui,Wh=Rr,qh=da,Gh=function(t){return t>0},Yh=function(t){return t<0},Xh=function(t,e){var n;while(n=t(e))if(!Uh(n))return n;return null},Kh=function(t,e,n,r,o){var i=new hi(t,r),a=Fh(t)||Uh(t);if(Yh(e)){if(a&&(t=Xh(i.prev,!0),n(t)))return t;while(t=Xh(i.prev,o))if(n(t))return t}if(Gh(e)){if(a&&(t=Xh(i.next,!0),n(t)))return t;while(t=Xh(i.next,o))if(n(t))return t}return null},Zh=function(t,e){while(t&&t!==e){if(Hh(t))return t;t=t.parentNode}return null},Jh=function(t,e,n){return Zh(t.container(),n)===Zh(e.container(),n)},Qh=function(t,e){if(!e)return null;var n=e.container(),r=e.offset();return Wh(n)?n.childNodes[r+t]:null},tp=function(t,e){var n=e.ownerDocument.createRange();return t?(n.setStartBefore(e),n.setEndBefore(e)):(n.setStartAfter(e),n.setEndAfter(e)),n},ep=function(t,e,n){return Zh(e,t)===Zh(n,t)},np=function(t,e,n){var r,o;o=t?"previousSibling":"nextSibling";while(n&&n!==e){if(r=n[o],zh(r)&&(r=r[o]),Fh(r)||Vh(r)){if(ep(e,r,n))return r;break}if(qh(r))break;n=n.parentNode}return null},rp=b(tp,!0),op=b(tp,!1),ip=function(t,e,n){var r,o,i,a=b(np,!0,e),u=b(np,!1,e);o=n.startContainer;var s=n.startOffset;if(Ui(o)){if(Wh(o)||(o=o.parentNode),i=o.getAttribute("data-mce-caret"),"before"===i&&(r=o.nextSibling,$h(r)))return rp(r);if("after"===i&&(r=o.previousSibling,$h(r)))return op(r)}if(!n.collapsed)return n;if(Yr(o)){if(zh(o)){if(1===t){if(r=u(o),r)return rp(r);if(r=a(o),r)return op(r)}if(-1===t){if(r=a(o),r)return op(r);if(r=u(o),r)return rp(r)}return n}if(ta(o)&&s>=o.data.length-1)return 1===t&&(r=u(o),r)?rp(r):n;if(Qi(o)&&s<=1)return-1===t&&(r=a(o),r)?op(r):n;if(s===o.data.length)return r=u(o),r?rp(r):n;if(0===s)return r=a(o),r?op(r):n}return n},ap=function(t,e){return E.from(Qh(t?0:-1,e)).filter(Fh)},up=function(t,e,n){var r=ip(t,e,n);return-1===t?wf.fromRangeStart(r):wf.fromRangeEnd(r)},sp=function(t){return E.from(t.getNode()).map(gn.fromDom)},cp=function(t){return E.from(t.getNode(!0)).map(gn.fromDom)},lp=function(t,e){while(e=t(e))if(e.isVisible())return e;return e},fp=function(t,e){var n=Jh(t,e);return!(n||!Jr(t.getNode()))||n};(function(t){t[t["Backwards"]=-1]="Backwards",t[t["Forwards"]=1]="Forwards"})(Cf||(Cf={}));var dp=eo,hp=Yr,pp=Rr,mp=Jr,gp=da,vp=va,bp=ba,yp=function(t,e){var n=[];while(t&&t!==e)n.push(t),t=t.parentNode;return n},xp=function(t,e){return t.hasChildNodes()&&e<t.childNodes.length?t.childNodes[e]:null},wp=function(t,e){if(Gh(t)){if(gp(e.previousSibling)&&!hp(e.previousSibling))return Sf.before(e);if(hp(e))return Sf(e,0)}if(Yh(t)){if(gp(e.nextSibling)&&!hp(e.nextSibling))return Sf.after(e);if(hp(e))return Sf(e,e.data.length)}return Yh(t)?mp(e)?Sf.before(e):Sf.after(e):Sf.before(e)},Cp=function(t,e){var n=e.nextSibling;return n&&gp(n)?hp(n)?Sf(n,0):Sf.before(n):Sp(Cf.Forwards,Sf.after(e),t)},Sp=function(t,e,n){var r,o,i,a;if(!pp(n)||!e)return null;if(e.isEqual(Sf.after(n))&&n.lastChild){if(a=Sf.after(n.lastChild),Yh(t)&&gp(n.lastChild)&&pp(n.lastChild))return mp(n.lastChild)?Sf.before(n.lastChild):a}else a=e;var u=a.container(),s=a.offset();if(hp(u)){if(Yh(t)&&s>0)return Sf(u,--s);if(Gh(t)&&s<u.length)return Sf(u,++s);r=u}else{if(Yh(t)&&s>0&&(o=xp(u,s-1),gp(o)))return!vp(o)&&(i=Kh(o,t,bp,o),i)?hp(i)?Sf(i,i.data.length):Sf.after(i):hp(o)?Sf(o,o.data.length):Sf.before(o);if(Gh(t)&&s<u.childNodes.length&&(o=xp(u,s),gp(o)))return mp(o)?Cp(n,o):!vp(o)&&(i=Kh(o,t,bp,o),i)?hp(i)?Sf(i,0):Sf.before(i):hp(o)?Sf(o,0):Sf.after(o);r=o||a.getNode()}if((Gh(t)&&a.isAtEnd()||Yh(t)&&a.isAtStart())&&(r=Kh(r,t,S,n,!0),bp(r,n)))return wp(t,r);o=Kh(r,t,bp,n);var c=Vt(tt(yp(u,n),dp));return!c||o&&c.contains(o)?o?wp(t,o):null:(a=Gh(t)?Sf.after(c):Sf.before(c),a)},kp=function(t){return{next:function(e){return Sp(Cf.Forwards,e,t)},prev:function(e){return Sp(Cf.Backwards,e,t)}}},Op=function(t,e,n){var r=t?Sf.before(n):Sf.after(n);return Bp(t,e,r)},_p=function(t){return Jr(t)?Sf.before(t):Sf.after(t)},Ap=function(t){return Sf.isTextPosition(t)?0===t.offset():da(t.getNode())},Ep=function(t){if(Sf.isTextPosition(t)){var e=t.container();return t.offset()===e.data.length}return da(t.getNode(!0))},Tp=function(t,e){return!Sf.isTextPosition(t)&&!Sf.isTextPosition(e)&&t.getNode()===e.getNode(!0)},Dp=function(t){return!Sf.isTextPosition(t)&&Jr(t.getNode())},Ip=function(t,e,n){return t?!Tp(e,n)&&!Dp(e)&&Ep(e)&&Ap(n):!Tp(n,e)&&Ap(e)&&Ep(n)},Bp=function(t,e,n){var r=kp(e);return E.from(t?r.next(n):r.prev(n))},Lp=function(t,e,n){return Bp(t,e,n).bind((function(r){return Jh(n,r,e)&&Ip(t,n,r)?Bp(t,e,r):E.some(r)}))},Np=function(t,e,n,r){return Lp(t,e,n).bind((function(n){return r(n)?Np(t,e,n,r):E.some(n)}))},Pp=function(t,e){var n=t?e.firstChild:e.lastChild;return Yr(n)?E.some(Sf(n,t?0:n.data.length)):n?da(n)?E.some(t?Sf.before(n):_p(n)):Op(t,e,n):E.none()},Mp=b(Bp,!0),jp=b(Bp,!1),Rp=b(Pp,!0),$p=b(Pp,!1),Fp="_mce_caret",Vp=function(t){return Rr(t)&&t.id===Fp},Hp=function(t,e){while(e&&e!==t){if(e.id===Fp)return e;e=e.parentNode}return null},zp=function(t){return"string"===typeof t.start},Up=function(t){return t.hasOwnProperty("rng")},Wp=function(t){return t.hasOwnProperty("id")},qp=function(t){return t.hasOwnProperty("name")},Gp=function(t){return ln.isArray(t.start)},Yp=function(t,e){return Rr(e)&&t.isBlock(e)&&!e.innerHTML&&!Ke.ie&&(e.innerHTML='<br data-mce-bogus="1" />'),e},Xp=function(t,e){var n,r=t.createRng();return n=Vf(t.getRoot(),e.start),r.setStart(n.container(),n.offset()),n=Vf(t.getRoot(),e.end),r.setEnd(n.container(),n.offset()),r},Kp=function(t,e){var n=t.ownerDocument.createTextNode($i);t.appendChild(n),e.setStart(n,0),e.setEnd(n,0)},Zp=function(t){return!1===t.hasChildNodes()},Jp=function(t,e){return $p(t).fold((function(){return!1}),(function(t){return e.setStart(t.container(),t.offset()),e.setEnd(t.container(),t.offset()),!0}))},Qp=function(t,e,n){return!(!Zp(e)||!Hp(t,e))&&(Kp(e,n),!0)},tm=function(t,e,n,r){var o,i,a,u,s=n[e?"start":"end"],c=t.getRoot();if(s){for(a=s[0],i=c,o=s.length-1;o>=1;o--){if(u=i.childNodes,Qp(c,i,r))return!0;if(s[o]>u.length-1)return!!Qp(c,i,r)||Jp(i,r);i=u[s[o]]}3===i.nodeType&&(a=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(s[0],i.childNodes.length)),e?r.setStart(i,a):r.setEnd(i,a)}return!0},em=function(t){return Yr(t)&&t.data.length>0},nm=function(t,e,n){var r,o,i,a,u,s,c=t.get(n.id+"_"+e),l=n.keep;if(c){if(r=c.parentNode,"start"===e?(l?c.hasChildNodes()?(r=c.firstChild,o=1):em(c.nextSibling)?(r=c.nextSibling,o=0):em(c.previousSibling)?(r=c.previousSibling,o=c.previousSibling.data.length):(r=c.parentNode,o=t.nodeIndex(c)+1):o=t.nodeIndex(c),u=r,s=o):(l?c.hasChildNodes()?(r=c.firstChild,o=1):em(c.previousSibling)?(r=c.previousSibling,o=c.previousSibling.data.length):(r=c.parentNode,o=t.nodeIndex(c)):o=t.nodeIndex(c),u=r,s=o),!l){a=c.previousSibling,i=c.nextSibling,ln.each(ln.grep(c.childNodes),(function(t){Yr(t)&&(t.nodeValue=t.nodeValue.replace(/\uFEFF/g,""))}));while(c=t.get(n.id+"_"+e))t.remove(c,!0);a&&i&&a.nodeType===i.nodeType&&Yr(a)&&!Ke.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),t.remove(i),u=a,s=o)}return E.some(Sf(u,s))}return E.none()},rm=function(t,e){var n=t.createRng();return tm(t,!0,e,n)&&tm(t,!1,e,n)?E.some(n):E.none()},om=function(t,e){var n=nm(t,"start",e),r=nm(t,"end",e);return jl(n,r.or(n),(function(e,n){var r=t.createRng();return r.setStart(Yp(t,e.container()),e.offset()),r.setEnd(Yp(t,n.container()),n.offset()),r}))},im=function(t,e){return E.from(t.select(e.name)[e.index]).map((function(e){var n=t.createRng();return n.selectNode(e),n}))},am=function(t,e){var n=t.dom;if(e){if(Gp(e))return rm(n,e);if(zp(e))return E.some(Xp(n,e));if(Wp(e))return om(n,e);if(qp(e))return im(n,e);if(Up(e))return E.some(e.rng)}return E.none()},um=function(t,e,n){return nd(t,e,n)},sm=function(t,e){am(t,e).each((function(e){t.setRng(e)}))},cm=function(t){return Rr(t)&&"SPAN"===t.tagName&&"bookmark"===t.getAttribute("data-mce-type")},lm=function(t){return function(e){return t===e}},fm=lm(Mi),dm=function(t){return""!==t&&-1!==" \f\n\r\t\v".indexOf(t)},hm=function(t){return!dm(t)&&!fm(t)},pm=function(t){return!!t.nodeType},mm=function(t){return t&&/^(IMG)$/.test(t.nodeName)},gm=function(t,e,n){var r,o,i,a=n.startOffset,u=n.startContainer;if((n.startContainer!==n.endContainer||!mm(n.startContainer.childNodes[n.startOffset]))&&1===u.nodeType)for(i=u.childNodes,a<i.length?(u=i[a],r=new hi(u,t.getParent(u,t.isBlock))):(u=i[i.length-1],r=new hi(u,t.getParent(u,t.isBlock)),r.next(!0)),o=r.current();o;o=r.next())if(3===o.nodeType&&!xm(o))return n.setStart(o,0),void e.setRng(n)},vm=function(t,e,n){if(t){var r=e?"nextSibling":"previousSibling";for(t=n?t:t[r];t;t=t[r])if(1===t.nodeType||!xm(t))return t}},bm=function(t,e){return pm(e)&&(e=e.nodeName),!!t.schema.getTextBlockElements()[e.toLowerCase()]},ym=function(t,e,n){return t.schema.isValidChild(e,n)},xm=function(t,e){if(void 0===e&&(e=!1),F(t)&&Yr(t)){var n=e?t.data.replace(/ /g," "):t.data;return xa(n)}return!1},wm=function(t){return F(t)&&Yr(t)&&0===t.length},Cm=function(t,e){return"string"!==typeof t?t=t(e):e&&(t=t.replace(/%(\w+)/g,(function(t,n){return e[n]||t}))),t},Sm=function(t,e){return t=t||"",e=e||"",t=""+(t.nodeName||t),e=""+(e.nodeName||e),t.toLowerCase()===e.toLowerCase()},km=function(t,e,n){return"color"!==n&&"backgroundColor"!==n||(e=t.toHex(e)),"fontWeight"===n&&700===e&&(e="bold"),"fontFamily"===n&&(e=e.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+e},Om=function(t,e,n){return km(t,t.getStyle(e,n),n)},_m=function(t,e){var n;return t.getParent(e,(function(e){return n=t.getStyle(e,"text-decoration"),n&&"none"!==n})),n},Am=function(t,e,n){return t.getParents(e,n,t.getRoot())},Em=function(t,e){var n=function(t){var e=function(t){return t.length>1&&"%"===t.charAt(0)};return X(["styles","attributes"],(function(n){return Tt(t,n).exists((function(t){var n=P(t)?t:Et(t);return X(n,e)}))}))};return X(t.formatter.get(e),n)},Tm=function(t,e,n){var r=["inline","block","selector","attributes","styles","classes"],o=function(t){return _t(t,(function(t,e){return X(r,(function(t){return t===e}))}))};return X(t.formatter.get(e),(function(e){var r=o(e);return X(t.formatter.get(n),(function(t){var e=o(t);return Bt(r,e)}))}))},Dm=function(t){return It(t,"block")},Im=function(t){return It(t,"selector")},Bm=function(t){return It(t,"inline")},Lm=cm,Nm=Am,Pm=xm,Mm=bm,jm=function(t){return Jr(t)&&t.getAttribute("data-mce-bogus")&&!t.nextSibling},Rm=function(t,e){var n=e;while(n){if(Rr(n)&&t.getContentEditable(n))return"false"===t.getContentEditable(n)?n:e;n=n.parentNode}return e},$m=function(t,e,n,r){for(var o=e.data,i=n;t?i>=0:i<o.length;t?i--:i++)if(r(o.charAt(i)))return t?i+1:i;return-1},Fm=function(t,e,n){return $m(t,e,n,(function(t){return fm(t)||dm(t)}))},Vm=function(t,e,n){return $m(t,e,n,hm)},Hm=function(t,e,n,r,o,i){var a,u=t.getParent(n,t.isBlock)||e,s=function(e,n,r){var i=Pl(t),s=o?i.backwards:i.forwards;return E.from(s(e,n,(function(t,e){return Lm(t.parentNode)?-1:(a=t,r(o,t,e))}),u))},c=s(n,r,Fm);return c.bind((function(t){return i?s(t.container,t.offset+(o?-1:0),Vm):E.some(t)})).orThunk((function(){return a?E.some({container:a,offset:o?0:a.length}):E.none()}))},zm=function(t,e,n,r,o){Yr(r)&&0===r.nodeValue.length&&r[o]&&(r=r[o]);for(var i=Nm(t,r),a=0;a<i.length;a++)for(var u=0;u<e.length;u++){var s=e[u];if((!("collapsed"in s)||s.collapsed===n.collapsed)&&t.is(i[a],s.selector))return i[a]}return r},Um=function(t,e,n,r){var o,i=t.dom,a=i.getRoot();if(e[0].wrapper||(o=i.getParent(n,e[0].block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(Yr(n)?n.parentNode:n,(function(e){return e!==a&&Mm(t,e)}),u)}if(o&&e[0].wrapper&&(o=Nm(i,o,"ul,ol").reverse()[0]||o),!o){o=n;while(o[r]&&!i.isBlock(o[r]))if(o=o[r],Sm(o,"br"))break}return o||n},Wm=function(t,e,n,r){var o=n.parentNode;return!F(n[r])&&(!(o!==e&&!$(o)&&!t.isBlock(o))||Wm(t,e,o,r))},qm=function(t,e,n,r,o){var i,a=n,u=o?"previousSibling":"nextSibling",s=t.getRoot();if(Yr(n)&&!Pm(n)&&(o?r>0:r<n.data.length))return n;while(1){if(!e[0].block_expand&&t.isBlock(a))return a;for(i=a[u];i;i=i[u]){var c=Yr(i)&&!Wm(t,s,i,u);if(!Lm(i)&&!jm(i)&&!Pm(i,c))return a}if(a===s||a.parentNode===s){n=a;break}a=a.parentNode}return n},Gm=function(t){return Lm(t.parentNode)||Lm(t)},Ym=function(t,e,n,r){void 0===r&&(r=!1);var o=e.startContainer,i=e.startOffset,a=e.endContainer,u=e.endOffset,s=t.dom;if(Rr(o)&&o.hasChildNodes()&&(o=Xl(o,i),Yr(o)&&(i=0)),Rr(a)&&a.hasChildNodes()&&(a=Xl(a,e.collapsed?u:u-1),Yr(a)&&(u=a.nodeValue.length)),o=Rm(s,o),a=Rm(s,a),Gm(o)&&(o=Lm(o)?o:o.parentNode,o=e.collapsed?o.previousSibling||o:o.nextSibling||o,Yr(o)&&(i=e.collapsed?o.length:0)),Gm(a)&&(a=Lm(a)?a:a.parentNode,a=e.collapsed?a.nextSibling||a:a.previousSibling||a,Yr(a)&&(u=e.collapsed?0:a.length)),e.collapsed){var c=Hm(s,t.getBody(),o,i,!0,r);c.each((function(t){var e=t.container,n=t.offset;o=e,i=n}));var l=Hm(s,t.getBody(),a,u,!1,r);l.each((function(t){var e=t.container,n=t.offset;a=e,u=n}))}return(n[0].inline||n[0].block_expand)&&(n[0].inline&&Yr(o)&&0!==i||(o=qm(s,n,o,i,!0)),n[0].inline&&Yr(a)&&u!==a.nodeValue.length||(a=qm(s,n,a,u,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(o=zm(s,n,e,o,"previousSibling"),a=zm(s,n,e,a,"nextSibling")),(n[0].block||n[0].selector)&&(o=Um(t,n,o,"previousSibling"),a=Um(t,n,a,"nextSibling"),n[0].block&&(s.isBlock(o)||(o=qm(s,n,o,i,!0)),s.isBlock(a)||(a=qm(s,n,a,u,!1)))),Rr(o)&&(i=s.nodeIndex(o),o=o.parentNode),Rr(a)&&(u=s.nodeIndex(a)+1,a=a.parentNode),{startContainer:o,startOffset:i,endContainer:a,endOffset:u}},Xm=function(t,e){var n=t.childNodes;return e>=n.length?e=n.length-1:e<0&&(e=0),n[e]||t},Km=function(t,e){return Xm(t,e-1)},Zm=function(t,e,n){var r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=function(t){var e;return e=t[0],3===e.nodeType&&e===r&&o>=e.nodeValue.length&&t.splice(0,1),e=t[t.length-1],0===a&&t.length>0&&e===i&&3===e.nodeType&&t.splice(t.length-1,1),t},s=function(t,e,n){for(var r=[];t&&t!==n;t=t[e])r.push(t);return r},c=function(t,e){do{if(t.parentNode===e)return t;t=t.parentNode}while(t)},l=function(t,e,r){for(var o=r?"nextSibling":"previousSibling",i=t,a=i.parentNode;i&&i!==e;i=a){a=i.parentNode;var c=s(i===t?i:i[o],o);c.length&&(r||c.reverse(),n(u(c)))}};if(1===r.nodeType&&r.hasChildNodes()&&(r=Xm(r,o)),1===i.nodeType&&i.hasChildNodes()&&(i=Km(i,a)),r===i)return n(u([r]));for(var f=t.findCommonAncestor(r,i),d=r;d;d=d.parentNode){if(d===i)return l(r,f,!0);if(d===f)break}for(d=i;d;d=d.parentNode){if(d===r)return l(i,f);if(d===f)break}var h=c(r,f)||r,p=c(i,f)||i;l(r,h,!0);var m=s(h===r?h:h.nextSibling,"nextSibling",p===i?p.nextSibling:p);m.length&&n(u(m)),l(i,p)},Jm=function(t){var e=[];if(t)for(var n=0;n<t.rangeCount;n++)e.push(t.getRangeAt(n));return e},Qm=function(t){return ut(t,(function(t){var e=Yl(t);return e?[gn.fromDom(e)]:[]}))},tg=function(t){return Jm(t).length>1},eg=function(t){return tt(Qm(t),Bi)},ng=function(t){return pl(t,"td[data-mce-selected],th[data-mce-selected]")},rg=function(t,e){var n=ng(e);return n.length>0?n:eg(t)},og=function(t){return rg(Jm(t.selection.getSel()),gn.fromDom(t.getBody()))},ig=function(t){var e=t.startContainer,n=t.startOffset;return Yr(e)?0===n?E.some(gn.fromDom(e)):E.none():E.from(e.childNodes[n]).map(gn.fromDom)},ag=function(t){var e=t.endContainer,n=t.endOffset;return Yr(e)?n===e.data.length?E.some(gn.fromDom(e)):E.none():E.from(e.childNodes[n-1]).map(gn.fromDom)},ug=function(t){return tr(t).fold(g([t]),(function(e){return[t].concat(ug(e))}))},sg=function(t){return er(t).fold(g([t]),(function(e){return"br"===Ln(e)?Yn(e).map((function(e){return[t].concat(sg(e))})).getOr([]):[t].concat(sg(e))}))},cg=function(t,e){return jl(ig(e),ag(e),(function(e,n){var r=ot(ug(t),b(Tn,e)),o=ot(sg(t),b(Tn,n));return r.isSome()&&o.isSome()})).getOr(!1)},lg=function(t,e,n,r){var o=n,i=new hi(n,o),a=_t(t.schema.getMoveCaretBeforeOnEnterElements(),(function(t,e){return!Y(["td","th","table"],e.toLowerCase())}));do{if(Yr(n)&&0!==ln.trim(n.nodeValue).length)return void(r?e.setStart(n,0):e.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?e.setStartBefore(n):"BR"===n.nodeName?e.setEndBefore(n):e.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?e.setStart(o,0):e.setEnd(o,o.childNodes.length))},fg=function(t){var e=t.selection.getSel();return e&&e.rangeCount>0},dg=function(t,e){var n=og(t);n.length>0?Z(n,(function(n){var r=n.dom,o=t.dom.createRng();o.setStartBefore(r),o.setEndAfter(r),e(o,!0)})):e(t.selection.getRng(),!1)},hg=function(t,e,n){var r=ed(t,e);n(r),t.moveToBookmark(r)};function pg(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?E.from(e.dom.nodeValue):E.none()},o=function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}}var mg=pg(Rn,"text"),gg=function(t){return mg.get(t)},vg=function(t){return Rn(t)&&gg(t)===$i},bg=function(t,e,n,r){return Wn(e).fold((function(){return"skipping"}),(function(o){return"br"===r||vg(e)?"valid":yl(e)?"existing":Vp(e.dom)?"caret":ym(t,n,r)&&ym(t,Ln(o),n)?"valid":"invalid-child"}))},yg=function(t,e){var n=Ym(t,e,[{inline:!0}]);e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset),t.selection.setRng(e)},xg=function(t,e,n,r){var o=e.uid,i=void 0===o?_l("mce-annotation"):o,a=zt(e,["uid"]),u=gn.fromTag("span",t);cl(u,ml()),ao(u,""+vl(),i),ao(u,""+gl(),n);var s=r(i,a),c=s.attributes,l=void 0===c?{}:c,f=s.classes,d=void 0===f?[]:f;return uo(u,l),Al(u,d),u},wg=function(t,e,n,r,o){var i=[],a=xg(t.getDoc(),o,n,r),u=Rc(E.none()),s=function(){u.set(E.none())},c=function(){return u.get().getOrThunk((function(){var t=Bl(a);return i.push(t),u.set(E.some(t)),t}))},l=function(t){Z(t,f)},f=function(e){var n=bg(t,e,"span",Ln(e));switch(n){case"invalid-child":s();var r=Jn(e);l(r),s();break;case"valid":var o=c();vr(e,o);break}},d=function(t){var e=K(t,gn.fromDom);l(e)};return Zm(t.dom,e,(function(t){s(),d(t)})),i},Cg=function(t,e,n,r){t.undoManager.transact((function(){var o=t.selection,i=o.getRng(),a=og(t).length>0;if(i.collapsed&&!a&&yg(t,i),o.getRng().collapsed&&!a){var u=xg(t.getDoc(),r,e,n.decorate);Dl(u,Mi),o.getRng().insertNode(u.dom),o.select(u.dom)}else hg(o,!1,(function(){dg(t,(function(o){wg(t,o,e,n.decorate,r)}))}))}))},Sg=function(t){var e=kl();Sl(t,e);var n=Cl(t);return{register:function(t,n){e.register(t,n)},annotate:function(n,r){e.lookup(n).each((function(e){Cg(t,n,e,r)}))},annotationChanged:function(t,e){n.addListener(t,e)},remove:function(e){bl(t,E.some(e)).each((function(t){var e=t.elements;Z(e,Cr)}))},getAll:function(e){var n=wl(t,e);return wt(n,(function(t){return K(t,(function(t){return t.dom}))}))}}};function kg(t){return{getBookmark:b(um,t),moveToBookmark:b(sm,t)}}(function(t){t.isBookmarkNode=cm})(kg||(kg={}));var Og=kg,_g=function(t,e){while(e&&e!==t){if(to(e)||eo(e))return e;e=e.parentNode}return null},Ag=function(t,e,n){if(n.collapsed)return!1;if(Ke.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Rr(r))return X(r.getClientRects(),(function(n){return Gl(n,t,e)}))}return X(n.getClientRects(),(function(n){return Gl(n,t,e)}))},Eg=function(t,e){return t.fire("PreProcess",e)},Tg=function(t,e){return t.fire("PostProcess",e)},Dg=function(t){return t.fire("remove")},Ig=function(t){return t.fire("detach")},Bg=function(t,e){return t.fire("SwitchMode",{mode:e})},Lg=function(t,e,n,r,o){t.fire("ObjectResizeStart",{target:e,width:n,height:r,origin:o})},Ng=function(t,e,n,r,o){t.fire("ObjectResized",{target:e,width:n,height:r,origin:o})},Pg=function(t){return t.fire("PreInit")},Mg=function(t){return t.fire("PostRender")},jg=function(t){return t.fire("Init")},Rg=function(t,e){return t.fire("PlaceholderToggle",{state:e})},$g=function(t,e,n){return t.fire(e,n)},Fg={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(t){return t.shiftKey||t.ctrlKey||t.altKey||this.metaKeyPressed(t)},metaKeyPressed:function(t){return Ke.mac?t.metaKey:t.ctrlKey&&!t.altKey}},Vg=eo,Hg=function(t,e){var n,r,o,i,a,u,s,c,l,f,d,h,p,m,g,v,b=e.dom,y=ln.each,x=e.getDoc(),w=document,C=Math.abs,S=Math.round,k=e.getBody(),O={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},_=function(t){return t&&("IMG"===t.nodeName||e.dom.is(t,"figure.image"))},A=function(t,e){if("longpress"===t.type||0===t.type.indexOf("touch")){var n=t.touches[0];return _(t.target)&&!Ag(n.clientX,n.clientY,e)}return _(t.target)&&!Ag(t.clientX,t.clientY,e)},E=function(t){var n=t.target;A(t,e.selection.getRng())&&!t.isDefaultPrevented()&&e.selection.select(n)},T=function(t){return e.dom.is(t,"figure.image")?t.querySelector("img"):t},D=function(t){var n=Vd(e);return!!n&&("false"!==t.getAttribute("data-mce-resize")&&(t!==e.getBody()&&On(gn.fromDom(t),n)))},I=function(t,e,n){b.setStyles(T(t),{width:e,height:n})},B=function(t){var y,x,w,O,A;y=t.screenX-a,x=t.screenY-u,p=y*i[2]+l,m=x*i[3]+f,p=p<5?5:p,m=m<5?5:m,w=_(n)&&!1!==Hd(e)?!Fg.modifierPressed(t):Fg.modifierPressed(t),w&&(C(y)>C(x)?(m=S(p*d),p=S(m/d)):(p=S(m/d),m=S(p*d))),I(r,p,m),O=i.startPos.x+y,A=i.startPos.y+x,O=O>0?O:0,A=A>0?A:0,b.setStyles(o,{left:O,top:A,display:"block"}),o.innerHTML=p+" × "+m,i[2]<0&&r.clientWidth<=p&&b.setStyle(r,"left",s+(l-p)),i[3]<0&&r.clientHeight<=m&&b.setStyle(r,"top",c+(f-m)),y=k.scrollWidth-g,x=k.scrollHeight-v,y+x!==0&&b.setStyles(o,{left:O-y,top:A-x}),h||(Lg(e,n,l,f,"corner-"+i.name),h=!0)},L=function(){var t=h;h=!1;var a=function(t,r){r&&(n.style[t]||!e.schema.isValid(n.nodeName.toLowerCase(),t)?b.setStyle(T(n),t,r):b.setAttrib(T(n),t,""+r))};t&&(a("width",p),a("height",m)),b.unbind(x,"mousemove",B),b.unbind(x,"mouseup",L),w!==x&&(b.unbind(w,"mousemove",B),b.unbind(w,"mouseup",L)),b.remove(r),b.remove(o),N(n),t&&(Ng(e,n,p,m,"corner-"+i.name),b.setAttrib(n,"style",b.getAttrib(n,"style"))),e.nodeChanged()},N=function(t){P(),R();var s=b.getPos(t,k),c=s.x,h=s.y,C=t.getBoundingClientRect(),S=C.width||C.right-C.left,_=C.height||C.bottom-C.top;n!==t&&(n=t,p=m=0);var A=e.fire("ObjectSelected",{target:t});D(t)&&!A.isDefaultPrevented()?y(O,(function(t,e){var s,p=function(s){a=s.screenX,u=s.screenY,l=T(n).clientWidth,f=T(n).clientHeight,d=f/l,i=t,i.name=e,i.startPos={x:S*t[0]+c,y:_*t[1]+h},g=k.scrollWidth,v=k.scrollHeight,r=n.cloneNode(!0),b.addClass(r,"mce-clonedresizable"),b.setAttrib(r,"data-mce-bogus","all"),r.contentEditable=!1,r.unSelectabe=!0,b.setStyles(r,{left:c,top:h,margin:0}),I(r,S,_),r.removeAttribute("data-mce-selected"),k.appendChild(r),b.bind(x,"mousemove",B),b.bind(x,"mouseup",L),w!==x&&(b.bind(w,"mousemove",B),b.bind(w,"mouseup",L)),o=b.add(k,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},l+" × "+f)};s=b.get("mceResizeHandle"+e),s&&b.remove(s),s=b.add(k,"div",{id:"mceResizeHandle"+e,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+e+"-resize; margin:0; padding:0"}),11===Ke.ie&&(s.contentEditable=!1),b.bind(s,"mousedown",(function(t){t.stopImmediatePropagation(),t.preventDefault(),p(t)})),t.elm=s,b.setStyles(s,{left:S*t[0]+c-s.offsetWidth/2,top:_*t[1]+h-s.offsetHeight/2})})):P(),n.setAttribute("data-mce-selected","1")},P=function(){R(),n&&n.removeAttribute("data-mce-selected"),xt(O,(function(t,e){var n=b.get("mceResizeHandle"+e);n&&(b.unbind(n),b.remove(n))}))},M=function(n){var r,o,i=function(t,e){if(t)do{if(t===e)return!0}while(t=t.parentNode)};h||e.removed||(y(b.select("img[data-mce-selected],hr[data-mce-selected]"),(function(t){t.removeAttribute("data-mce-selected")})),o="mousedown"===n.type?n.target:t.getNode(),o=b.$(o).closest("table,img,figure.image,hr")[0],i(o,k)&&($(),r=t.getStart(!0),i(r,o)&&i(t.getEnd(!0),o))?N(o):P())},j=function(t){return Vg(_g(e.getBody(),t))},R=function(){xt(O,(function(t){t.elm&&(b.unbind(t.elm),delete t.elm)}))},$=function(){try{e.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(t){}};e.on("init",(function(){if($(),Ke.browser.isIE()||Ke.browser.isEdge()){e.on("mousedown click",(function(t){var n=t.target,r=n.nodeName;h||!/^(TABLE|IMG|HR)$/.test(r)||j(n)||(2!==t.button&&e.selection.select(n,"TABLE"===r),"mousedown"===t.type&&e.nodeChanged())}));var t=function(t){var n=function(t){ci.setEditorTimeout(e,(function(){return e.selection.select(t)}))};if(j(t.target)||ro(t.target))return t.preventDefault(),void n(t.target);/^(TABLE|IMG|HR)$/.test(t.target.nodeName)&&(t.preventDefault(),"IMG"===t.target.tagName&&n(t.target))};b.bind(k,"mscontrolselect",t),e.on("remove",(function(){return b.unbind(k,"mscontrolselect",t)}))}var r=ci.throttle((function(t){e.composing||M(t)}));e.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",r),e.on("keyup compositionend",(function(t){n&&"TABLE"===n.nodeName&&r(t)})),e.on("hide blur",P),e.on("contextmenu longpress",E,!0)})),e.on("remove",R);var F=function(){n=r=null};return{isResizable:D,showResizeRect:N,hideResizeRect:P,updateResizeRect:M,destroy:F}},zg=function(t){return to(t)||eo(t)},Ug=function(t,e,n){while(t&&t!==e){if(n(t))return t;t=t.parentNode}return null},Wg=function(t,e,n){var r,o=n.elementFromPoint(t,e),i=n.body.createTextRange();if(o&&"HTML"!==o.tagName||(o=n.body),i.moveToElementText(o),r=ln.toArray(i.getClientRects()),r=r.sort((function(t,n){return t=Math.abs(Math.max(t.top-e,t.bottom-e)),n=Math.abs(Math.max(n.top-e,n.bottom-e)),t-n})),r.length>0){e=(r[0].bottom+r[0].top)/2;try{return i.moveToPoint(t,e),i.collapse(!0),i}catch(a){}}return null},qg=function(t,e){var n=t&&t.parentElement?t.parentElement():null;return eo(Ug(n,e,zg))?null:t},Gg=function(t,e,n){var r,o,i=n;if(i.caretPositionFromPoint)o=i.caretPositionFromPoint(t,e),o&&(r=n.createRange(),r.setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(t,e);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(t,e),r.collapse(!0)}catch(a){r=Wg(t,e,n)}return qg(r,n.body)}return r},Yg=function(t,e){return t&&e&&t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.endContainer&&t.endOffset===e.endOffset},Xg=function(t,e,n){while(t&&t!==e){if(n(t))return t;t=t.parentNode}return null},Kg=function(t,e,n){return null!==Xg(t,e,n)},Zg=function(t,e,n){return Kg(t,e,(function(t){return t.nodeName===n}))},Jg=function(t){return t&&"TABLE"===t.nodeName},Qg=function(t){return t&&/^(TD|TH|CAPTION)$/.test(t.nodeName)},tv=function(t,e){return qi(t)&&!1===Kg(t,e,Vp)},ev=function(t,e,n){var r=new hi(e,t.getParent(e.parentNode,t.isBlock)||t.getRoot());while(e=r[n?"prev":"next"]())if(Jr(e))return!0},nv=function(t,e){return t.previousSibling&&t.previousSibling.nodeName===e},rv=function(t,e){while(e&&e!==t){if(eo(e))return!0;e=e.parentNode}return!1},ov=function(t,e,n,r,o){var i,a,u=t.getRoot(),s=t.schema.getNonEmptyElements(),c=t.getParent(o.parentNode,t.isBlock)||u;if(r&&Jr(o)&&e&&t.isEmpty(c))return E.some(wf(o.parentNode,t.nodeIndex(o)));var l=new hi(o,c);while(a=l[r?"prev":"next"]()){if("false"===t.getContentEditableParent(a)||tv(a,u))return E.none();if(Yr(a)&&a.nodeValue.length>0)return!1===Zg(a,u,"A")?E.some(wf(a,r?a.nodeValue.length:0)):E.none();if(t.isBlock(a)||s[a.nodeName.toLowerCase()])return E.none();i=a}return n&&i?E.some(wf(i,0)):E.none()},iv=function(t,e,n,r){var o,i,a,u,s=t.getRoot(),c=!1;o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"];var l=Rr(o)&&i===o.childNodes.length,f=t.schema.getNonEmptyElements();if(u=n,qi(o))return E.none();if(Rr(o)&&i>o.childNodes.length-1&&(u=!1),Kr(o)&&(o=s,i=0),o===s){if(u&&(a=o.childNodes[i>0?i-1:0],a)){if(qi(a))return E.none();if(f[a.nodeName]||Jg(a))return E.none()}if(o.hasChildNodes()){if(i=Math.min(!u&&i>0?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=Yr(o)&&l?o.data.length:0,!e&&o===s.lastChild&&Jg(o))return E.none();if(rv(s,o)||qi(o))return E.none();if(o.hasChildNodes()&&!1===Jg(o)){a=o;var d=new hi(o,s);do{if(eo(a)||qi(a)){c=!1;break}if(Yr(a)&&a.nodeValue.length>0){i=u?0:a.nodeValue.length,o=a,c=!0;break}if(f[a.nodeName.toLowerCase()]&&!Qg(a)){i=t.nodeIndex(a),o=a.parentNode,u||i++,c=!0;break}}while(a=u?d.next():d.prev())}}}return e&&(Yr(o)&&0===i&&ov(t,l,e,!0,o).each((function(t){o=t.container(),i=t.offset(),c=!0})),Rr(o)&&(a=o.childNodes[i],a||(a=o.childNodes[i-1]),!a||!Jr(a)||nv(a,"A")||ev(t,a,!1)||ev(t,a,!0)||ov(t,l,e,!0,a).each((function(t){o=t.container(),i=t.offset(),c=!0})))),u&&!e&&Yr(o)&&i===o.nodeValue.length&&ov(t,l,e,!1,o).each((function(t){o=t.container(),i=t.offset(),c=!0})),c?E.some(wf(o,i)):E.none()},av=function(t,e){var n=e.collapsed,r=e.cloneRange(),o=wf.fromRangeStart(e);return iv(t,n,!0,r).each((function(t){n&&wf.isAbove(o,t)||r.setStart(t.container(),t.offset())})),n||iv(t,n,!1,r).each((function(t){r.setEnd(t.container(),t.offset())})),n&&r.collapse(!0),Yg(e,r)?E.none():E.some(r)},uv=function(t,e){return t.splitText(e)},sv=function(t){var e=t.startContainer,n=t.startOffset,r=t.endContainer,o=t.endOffset;return e===r&&Yr(e)?n>0&&n<e.nodeValue.length&&(r=uv(e,n),e=r.previousSibling,o>n?(o-=n,e=r=uv(r,o).previousSibling,o=r.nodeValue.length,n=0):o=0):(Yr(e)&&n>0&&n<e.nodeValue.length&&(e=uv(e,n),n=0),Yr(r)&&o>0&&o<r.nodeValue.length&&(r=uv(r,o).previousSibling,o=r.nodeValue.length)),{startContainer:e,startOffset:n,endContainer:r,endOffset:o}};function cv(t){var e=function(e,n){return Zm(t,e,n)},n=sv,r=function(e){return av(t,e).fold(C,(function(t){return e.setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),!0}))};return{walk:e,split:n,normalize:r}}(function(t){t.compareRanges=Yg,t.getCaretRangeFromPoint=Gg,t.getSelectedNode=Yl,t.getNode=Xl})(cv||(cv={}));var lv=cv;function fv(t,e){var n=function(e,n){if(!H(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;oo(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var o=go(n,t);return parseFloat(o)||0}return r},o=r,i=function(t,e){return nt(e,(function(e,n){var r=go(t,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?e:e+o}),0)},a=function(t,e,n){var r=i(t,n),o=e>r?e-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}}var dv,hv=fv("height",(function(t){var e=t.dom;return Sr(t)?e.getBoundingClientRect().height:e.offsetHeight})),pv=function(t){return hv.get(t)},mv=function(t,e){var n=t.view(e);return n.fold(g([]),(function(e){var n=t.owner(e),r=mv(t,n);return[e].concat(r)}))},gv=function(t,e){var n=e.owner(t);return mv(e,n)},vv=function(t){var e,n=t.dom===document?E.none():E.from(null===(e=t.dom.defaultView)||void 0===e?void 0:e.frameElement);return n.map(gn.fromDom)},bv=function(t){return Hn(t)},yv=Object.freeze({__proto__:null,view:vv,owner:bv}),xv=function(t){var e=gn.fromDom(document),n=Dr(e),r=gv(t,yv),o=Tr(t),i=et(r,(function(t,e){var n=Tr(e);return{left:t.left+n.left,top:t.top+n.top}}),{left:0,top:0});return Or(i.left+o.left+n.left,i.top+o.top+n.top)},wv=function(t){return"textarea"===Ln(t)},Cv=function(t,e){var n=t.fire("ScrollIntoView",e);return n.isDefaultPrevented()},Sv=function(t,e){t.fire("AfterScrollIntoView",e)},kv=function(t,e){var n=Jn(t);if(0===n.length||wv(t))return{element:t,offset:e};if(e<n.length&&!wv(n[e]))return{element:n[e],offset:0};var r=n[n.length-1];return wv(r)?{element:t,offset:e}:"img"===Ln(r)?{element:r,offset:1}:Rn(r)?{element:r,offset:gg(r).length}:{element:r,offset:Jn(r).length}},Ov=function(t,e){var n=Er(t),r=pv(t);return{element:t,bottom:n.top+r,height:r,pos:n,cleanup:e}},_v=function(t,e){var n=kv(t,e),r=gn.fromHtml('<span data-mce-bogus="all">'+$i+"</span>");return hr(n.element,r),Ov(r,(function(){return wr(r)}))},Av=function(t){return Ov(gn.fromDom(t),h)},Ev=function(t,e,n,r){Bv(t,(function(o,i){return Dv(t,e,n,r)}),n)},Tv=function(t,e,n,r,o){var i={elm:r.element.dom,alignToTop:o};if(!Cv(t,i)){var a=Dr(e).top;n(e,a,r,o),Sv(t,i)}},Dv=function(t,e,n,r){var o=gn.fromDom(t.getBody()),i=gn.fromDom(t.getDoc());xo(o);var a=_v(gn.fromDom(n.startContainer),n.startOffset);Tv(t,i,e,a,r),a.cleanup()},Iv=function(t,e,n,r){var o=gn.fromDom(t.getDoc());Tv(t,o,n,Av(e),r)},Bv=function(t,e,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;e(gn.fromDom(r),gn.fromDom(i));var u=t.dom.createRng();u.setStart(r,o),u.setEnd(i,a),t.selection.setRng(n)},Lv=function(t,e,n,r){var o=t.pos;if(n)Ir(o.left,o.top,r);else{var i=o.top-e+t.height;Ir(o.left,i,r)}},Nv=function(t,e,n,r,o){var i=n+e,a=r.pos.top,u=r.bottom,s=u-a>=n;if(a<e)Lv(r,n,!1!==o,t);else if(a>i){var c=s?!1!==o:!0===o;Lv(r,n,c,t)}else u>i&&!s&&Lv(r,n,!0===o,t)},Pv=function(t,e,n,r){var o=t.dom.defaultView.innerHeight;Nv(t,e,o,n,r)},Mv=function(t,e,n,r){var o=t.dom.defaultView.innerHeight;Nv(t,e,o,n,r);var i=xv(n.element),a=Pr(window);i.top<a.y?Br(n.element,!1!==r):i.top>a.bottom&&Br(n.element,!0===r)},jv=function(t,e,n){return Ev(t,Pv,e,n)},Rv=function(t,e,n){return Iv(t,e,Pv,n)},$v=function(t,e,n){return Ev(t,Mv,e,n)},Fv=function(t,e,n){return Iv(t,e,Mv,n)},Vv=function(t,e,n){var r=t.inline?Rv:Fv;r(t,e,n)},Hv=function(t,e,n){var r=t.inline?jv:$v;r(t,e,n)},zv=function(){return gn.fromDom(document)},Uv=function(t){return t.dom.focus()},Wv=function(t){var e=ur(t).dom;return t.dom===e.activeElement},qv=function(t){return void 0===t&&(t=zv()),E.from(t.dom.activeElement).map(gn.fromDom)},Gv=function(t){return qv(ur(t)).filter((function(e){return t.dom.contains(e.dom)}))},Yv=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Xv={create:Yv},Kv=Uo.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Zv=function(t,e,n,r){return t.fold(e,n,r)},Jv=function(t){return t.fold(v,v,v)},Qv=Kv.before,tb=Kv.on,eb=Kv.after,nb={before:Qv,on:tb,after:eb,cata:Zv,getStart:Jv},rb=Uo.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),ob=function(t){return rb.exact(t.start,t.soffset,t.finish,t.foffset)},ib=function(t){return t.match({domRange:function(t){return gn.fromDom(t.startContainer)},relative:function(t,e){return nb.getStart(t)},exact:function(t,e,n,r){return t}})},ab=rb.domRange,ub=rb.relative,sb=rb.exact,cb=function(t){var e=ib(t);return Un(e)},lb=Xv.create,fb={domRange:ab,relative:ub,exact:sb,exactFromRange:ob,getWin:cb,range:lb},db=Ve().browser,hb=function(t,e){var n=Rn(e)?gg(e).length:Jn(e).length+1;return t>n?n:t<0?0:t},pb=function(t){return fb.range(t.start,hb(t.soffset,t.start),t.finish,hb(t.foffset,t.finish))},mb=function(t,e){return!jr(e.dom)&&(Bn(t,e)||Tn(t,e))},gb=function(t){return function(e){return mb(t,e.start)&&mb(t,e.finish)}},vb=function(t){return!0===t.inline||db.isIE()},bb=function(t){return fb.range(gn.fromDom(t.startContainer),t.startOffset,gn.fromDom(t.endContainer),t.endOffset)},yb=function(t){var e=t.getSelection(),n=e&&0!==e.rangeCount?E.from(e.getRangeAt(0)):E.none();return n.map(bb)},xb=function(t){var e=Un(t);return yb(e.dom).filter(gb(t))},wb=function(t,e){return E.from(e).filter(gb(t)).map(pb)},Cb=function(t){var e=document.createRange();try{return e.setStart(t.start.dom,t.soffset),e.setEnd(t.finish.dom,t.foffset),E.some(e)}catch(n){return E.none()}},Sb=function(t){var e=vb(t)?xb(gn.fromDom(t.getBody())):E.none();t.bookmark=e.isSome()?e:t.bookmark},kb=function(t,e){var n=gn.fromDom(t.getBody()),r=vb(t)?E.from(e):E.none(),o=r.map(bb).filter(gb(n));t.bookmark=o.isSome()?o:t.bookmark},Ob=function(t){var e=t.bookmark?t.bookmark:E.none();return e.bind((function(e){return wb(gn.fromDom(t.getBody()),e)})).bind(Cb)},_b=function(t){Ob(t).each((function(e){return t.selection.setRng(e)}))},Ab=function(t){var e=t.className.toString();return-1!==e.indexOf("tox-")||-1!==e.indexOf("mce-")},Eb={isEditorUIElement:Ab},Tb=function(t){return"nodechange"===t.type&&t.selectionChange},Db=function(t,e){var n=function(){e.throttle()};Tc.DOM.bind(document,"mouseup",n),t.on("remove",(function(){Tc.DOM.unbind(document,"mouseup",n)}))},Ib=function(t){t.on("focusout",(function(){Sb(t)}))},Bb=function(t,e){t.on("mouseup touchend",(function(t){e.throttle()}))},Lb=function(t,e){var n=Ve().browser;n.isIE()?Ib(t):Bb(t,e),t.on("keyup NodeChange",(function(e){Tb(e)||Sb(t)}))},Nb=function(t){var e=tl((function(){Sb(t)}),0);t.on("init",(function(){t.inline&&Db(t,e),Lb(t,e)})),t.on("remove",(function(){e.cancel()}))},Pb=Tc.DOM,Mb=function(t){return Eb.isEditorUIElement(t)},jb=function(t){var e=t.classList;return void 0!==e&&(e.contains("tox-edit-area")||e.contains("tox-edit-area__iframe")||e.contains("mce-content-body"))},Rb=function(t,e){var n=Jd(t),r=Pb.getParent(e,(function(e){return Mb(e)||!!n&&t.dom.is(e,n)}));return null!==r},$b=function(t){try{var e=ur(gn.fromDom(t.getElement()));return qv(e).fold((function(){return document.body}),(function(t){return t.dom}))}catch(n){return document.body}},Fb=function(t,e){var n=e.editor;Nb(n),n.on("focusin",(function(){var e=this,n=t.focusedEditor;n!==e&&(n&&n.fire("blur",{focusedEditor:e}),t.setActive(e),t.focusedEditor=e,e.fire("focus",{blurredEditor:n}),e.focus(!0))})),n.on("focusout",(function(){var e=this;ci.setEditorTimeout(e,(function(){var n=t.focusedEditor;Rb(e,$b(e))||n!==e||(e.fire("blur",{focusedEditor:null}),t.focusedEditor=null)}))})),dv||(dv=function(e){var n=t.activeEditor;n&&fr(e).each((function(e){e.ownerDocument===document&&(e===document.body||Rb(n,e)||t.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),t.focusedEditor=null))}))},Pb.bind(document,"focusin",dv))},Vb=function(t,e){t.focusedEditor===e.editor&&(t.focusedEditor=null),t.activeEditor||(Pb.unbind(document,"focusin",dv),dv=null)},Hb=function(t){t.on("AddEditor",b(Fb,t)),t.on("RemoveEditor",b(Vb,t))},zb=function(t,e){return t.dom.getParent(e,(function(e){return"true"===t.dom.getContentEditable(e)}))},Ub=function(t){return t.collapsed?E.from(Xl(t.startContainer,t.startOffset)).map(gn.fromDom):E.none()},Wb=function(t,e){return Ub(e).bind((function(e){return Ii(e)?E.some(e):!1===Bn(t,e)?E.some(t):E.none()}))},qb=function(t,e){Wb(gn.fromDom(t.getBody()),e).bind((function(t){return Rp(t.dom)})).fold((function(){t.selection.normalize()}),(function(e){return t.selection.setRng(e.toRange())}))},Gb=function(t){if(t.setActive)try{t.setActive()}catch(e){t.focus()}else t.focus()},Yb=function(t){return Wv(t)||Gv(t).isSome()},Xb=function(t){return t.iframeElement&&Wv(gn.fromDom(t.iframeElement))},Kb=function(t){var e=t.getBody();return e&&Yb(gn.fromDom(e))},Zb=function(t){return qv().filter((function(e){return!jb(e.dom)&&Rb(t,e.dom)})).isSome()},Jb=function(t){return t.inline?Kb(t):Xb(t)},Qb=function(t){return Jb(t)||Zb(t)},ty=function(t){var e=t.selection,n=t.getBody(),r=e.getRng();t.quirks.refreshContentEditable(),void 0!==t.bookmark&&!1===Jb(t)&&Ob(t).each((function(e){t.selection.setRng(e),r=e}));var o=zb(t,e.getNode());if(t.$.contains(n,o))return Gb(o),qb(t,r),void ey(t);t.inline||(Ke.opera||Gb(n),t.getWin().focus()),(Ke.gecko||t.inline)&&(Gb(n),qb(t,r)),ey(t)},ey=function(t){return t.editorManager.setActive(t)},ny=function(t,e){t.removed||(e?ey(t):ty(t))},ry=function(t,e,n,r,o){var i=n?e.startContainer:e.endContainer,a=n?e.startOffset:e.endOffset;return E.from(i).map(gn.fromDom).map((function(t){return r&&e.collapsed?t:Qn(t,o(t,a)).getOr(t)})).bind((function(t){return jn(t)?E.some(t):Wn(t).filter(jn)})).map((function(t){return t.dom})).getOr(t)},oy=function(t,e,n){return ry(t,e,!0,n,(function(t,e){return Math.min(nr(t),e)}))},iy=function(t,e,n){return ry(t,e,!1,n,(function(t,e){return e>0?e-1:e}))},ay=function(t,e){var n=t;while(t&&Yr(t)&&0===t.length)t=e?t.nextSibling:t.previousSibling;return t||n},uy=function(t,e){var n,r,o;if(!e)return t;r=e.startContainer,o=e.endContainer;var i=e.startOffset,a=e.endOffset;return n=e.commonAncestorContainer,!e.collapsed&&(r===o&&a-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?ay(r.nextSibling,!0):r.parentNode,o=0===a?ay(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n},sy=function(t,e,n,r){var o,i=[],a=t.getRoot();if(n=t.getParent(n||oy(a,e,e.collapsed),t.isBlock),r=t.getParent(r||iy(a,e,e.collapsed),t.isBlock),n&&n!==a&&i.push(n),n&&r&&n!==r){o=n;var u=new hi(n,a);while((o=u.next())&&o!==r)t.isBlock(o)&&i.push(o)}return r&&n!==r&&r!==a&&i.push(r),i},cy=function(t,e,n){return E.from(e).map((function(e){var r=t.nodeIndex(e),o=t.createRng();return o.setStart(e.parentNode,r),o.setEnd(e.parentNode,r+1),n&&(lg(t,o,e,!0),lg(t,o,e,!1)),o}))},ly=function(t,e){return K(e,(function(e){var n=t.fire("GetSelectionRange",{range:e});return n.range!==e?n.range:e}))},fy=function(t){return V(t)?t:C},dy=function(t,e,n){var r=t.dom,o=fy(n);while(r.parentNode){r=r.parentNode;var i=gn.fromDom(r),a=e(i);if(a.isSome())return a;if(o(i))break}return E.none()},hy=function(t,e,n){var r=e(t),o=fy(n);return r.orThunk((function(){return o(t)?E.none():dy(t,e,o)}))},py=Sm,my=function(t,e,n){var r=t.formatter.get(n);if(r)for(var o=0;o<r.length;o++)if(!1===r[o].inherit&&t.dom.is(e,r[o].selector))return!0;return!1},gy=function(t,e,n,r){var o=t.dom.getRoot();return e!==o&&(e=t.dom.getParent(e,(function(e){return!!my(t,e,n)||(e.parentNode===o||!!yy(t,e,n,r,!0))})),yy(t,e,n,r))},vy=function(t,e,n){return!!py(e,n.inline)||(!!py(e,n.block)||(n.selector?1===e.nodeType&&t.is(e,n.selector):void 0))},by=function(t,e,n,r,o,i){var a,u,s,c=n[r];if(n.onmatch)return n.onmatch(e,n,r);if(c)if("undefined"===typeof c.length){for(a in c)if(c.hasOwnProperty(a)){if(u="attributes"===r?t.getAttrib(e,a):Om(t,e,a),o&&!u&&!n.exact)return;if((!o||n.exact)&&!py(u,km(t,Cm(c[a],i),a)))return}}else for(s=0;s<c.length;s++)if("attributes"===r?t.getAttrib(e,c[s]):Om(t,e,c[s]))return n;return n},yy=function(t,e,n,r,o){var i,a,u,s,c=t.formatter.get(n),l=t.dom;if(c&&e)for(a=0;a<c.length;a++)if(i=c[a],vy(t.dom,e,i)&&by(l,e,i,"attributes",o,r)&&by(l,e,i,"styles",o,r)){if(s=i.classes)for(u=0;u<s.length;u++)if(!t.dom.hasClass(e,s[u]))return;return i}},xy=function(t,e,n,r){if(r)return gy(t,r,e,n);if(r=t.selection.getNode(),gy(t,r,e,n))return!0;var o=t.selection.getStart();return!(o===r||!gy(t,o,e,n))},wy=function(t,e,n){var r=[],o={},i=t.selection.getStart();return t.dom.getParent(i,(function(i){for(var a=0;a<e.length;a++){var u=e[a];!o[u]&&yy(t,i,u,n)&&(o[u]=!0,r.push(u))}}),t.dom.getRoot()),r},Cy=function(t,e){var n=function(e){return Tn(e,gn.fromDom(t.getBody()))},r=function(e,n){return yy(t,e.dom,n)?E.some(n):E.none()};return E.from(t.selection.getStart(!0)).bind((function(t){return hy(gn.fromDom(t),(function(t){return vt(e,(function(e){return r(t,e)}))}),n)})).getOrNull()},Sy=function(t,e){var n,r,o,i,a,u=t.formatter.get(e),s=t.dom;if(u)for(n=t.selection.getStart(),r=Am(s,n),i=u.length-1;i>=0;i--){if(a=u[i].selector,!a||u[i].defaultBlock)return!0;for(o=r.length-1;o>=0;o--)if(s.is(r[o],a))return!0}return!1},ky=function(t,e,n){return nt(n,(function(n,r){var o=Em(t,r);return t.formatter.matchNode(e,r,{},o)?n.concat([r]):n}),[])},Oy={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},_y=function(t,e,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(t[r])return t[r];if(t!==e){var i=t[o];if(i)return i;for(var a=t.parent;a&&a!==e;a=a.parent)if(i=a[o],i)return i}},Ay=function(t){if(!xa(t.value))return!1;var e=t.parent;return!e||"span"===e.name&&!e.attr("style")||!/^[ ]+$/.test(t.value)},Ey=function(t){var e="a"===t.name&&!t.attr("href")&&t.attr("id");return t.attr("name")||t.attr("id")&&!t.firstChild||t.attr("data-mce-bookmark")||e},Ty=function(){function t(t,e){this.name=t,this.type=e,1===e&&(this.attributes=[],this.attributes.map={})}return t.create=function(e,n){var r=new t(e,Oy[e]||1);return n&&xt(n,(function(t,e){r.attr(e,t)})),r},t.prototype.replace=function(t){var e=this;return t.parent&&t.remove(),e.insert(t,e),e.remove(),e},t.prototype.attr=function(t,e){var n,r=this;if("string"!==typeof t)return void 0!==t&&null!==t&&xt(t,(function(t,e){r.attr(e,t)})),r;if(n=r.attributes){if(void 0!==e){if(null===e){if(t in n.map){delete n.map[t];var o=n.length;while(o--)if(n[o].name===t)return n.splice(o,1),r}return r}if(t in n.map){o=n.length;while(o--)if(n[o].name===t){n[o].value=e;break}}else n.push({name:t,value:e});return n.map[t]=e,r}return n.map[t]}},t.prototype.clone=function(){var e,n=this,r=new t(n.name,n.type);if(e=n.attributes){var o=[];o.map={};for(var i=0,a=e.length;i<a;i++){var u=e[i];"id"!==u.name&&(o[o.length]={name:u.name,value:u.value},o.map[u.name]=u.value)}r.attributes=o}return r.value=n.value,r.shortEnded=n.shortEnded,r},t.prototype.wrap=function(t){var e=this;return e.parent.insert(t,e),t.append(e),e},t.prototype.unwrap=function(){for(var t=this,e=t.firstChild;e;){var n=e.next;t.insert(e,t,!0),e=n}t.remove()},t.prototype.remove=function(){var t=this,e=t.parent,n=t.next,r=t.prev;return e&&(e.firstChild===t?(e.firstChild=n,n&&(n.prev=null)):r.next=n,e.lastChild===t?(e.lastChild=r,r&&(r.next=null)):n.prev=r,t.parent=t.next=t.prev=null),t},t.prototype.append=function(t){var e=this;t.parent&&t.remove();var n=e.lastChild;return n?(n.next=t,t.prev=n,e.lastChild=t):e.lastChild=e.firstChild=t,t.parent=e,t},t.prototype.insert=function(t,e,n){t.parent&&t.remove();var r=e.parent||this;return n?(e===r.firstChild?r.firstChild=t:e.prev.next=t,t.prev=e.prev,t.next=e,e.prev=t):(e===r.lastChild?r.lastChild=t:e.next.prev=t,t.next=e.next,t.prev=e,e.next=t),t.parent=r,t},t.prototype.getAll=function(t){for(var e=this,n=[],r=e.firstChild;r;r=_y(r,e))r.name===t&&n.push(r);return n},t.prototype.empty=function(){var t=this;if(t.firstChild){for(var e=[],n=t.firstChild;n;n=_y(n,t))e.push(n);var r=e.length;while(r--){n=e[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return t.firstChild=t.lastChild=null,t},t.prototype.isEmpty=function(t,e,n){void 0===e&&(e={});var r=this,o=r.firstChild;if(Ey(r))return!1;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(t[o.name])return!1;if(Ey(o))return!1}if(8===o.type)return!1;if(3===o.type&&!Ay(o))return!1;if(3===o.type&&o.parent&&e[o.parent.name]&&xa(o.value))return!1;if(n&&n(o))return!1}while(o=_y(o,r));return!0},t.prototype.walk=function(t){return _y(this,null,t)},t}(),Dy=ln.makeMap,Iy=function(t){var e=[];t=t||{};var n=t.indent,r=Dy(t.indent_before||""),o=Dy(t.indent_after||""),i=eu.getEncodeFunc(t.entity_encoding||"raw",t.entities),a="html"===t.element_format;return{start:function(t,u,s){var c,l,f,d;if(n&&r[t]&&e.length>0&&(d=e[e.length-1],d.length>0&&"\n"!==d&&e.push("\n")),e.push("<",t),u)for(c=0,l=u.length;c<l;c++)f=u[c],e.push(" ",f.name,'="',i(f.value,!0),'"');e[e.length]=!s||a?">":" />",s&&n&&o[t]&&e.length>0&&(d=e[e.length-1],d.length>0&&"\n"!==d&&e.push("\n"))},end:function(t){var r;e.push("</",t,">"),n&&o[t]&&e.length>0&&(r=e[e.length-1],r.length>0&&"\n"!==r&&e.push("\n"))},text:function(t,n){t.length>0&&(e[e.length]=n?t:i(t))},cdata:function(t){e.push("<![CDATA[",t,"]]>")},comment:function(t){e.push("\x3c!--",t,"--\x3e")},pi:function(t,r){r?e.push("<?",t," ",i(r),"?>"):e.push("<?",t,"?>"),n&&e.push("\n")},doctype:function(t){e.push("<!DOCTYPE",t,">",n?"\n":"")},reset:function(){e.length=0},getContent:function(){return e.join("").replace(/\n$/,"")}}},By=function(t,e){void 0===e&&(e=du());var n=Iy(t);t=t||{},t.validate=!("validate"in t)||t.validate;var r=function(r){var o=t.validate,i={3:function(t){n.text(t.value,t.raw)},8:function(t){n.comment(t.value)},7:function(t){n.pi(t.name,t.value)},10:function(t){n.doctype(t.value)},4:function(t){n.cdata(t.value)},11:function(t){if(t=t.firstChild)do{a(t)}while(t=t.next)}};n.reset();var a=function(t){var r,u,s,c,l,f,d,h,p,m=i[t.type];if(m)m(t);else{if(r=t.name,u=t.shortEnded,s=t.attributes,o&&s&&s.length>1&&(f=[],f.map={},p=e.getElementRule(t.name),p)){for(d=0,h=p.attributesOrder.length;d<h;d++)c=p.attributesOrder[d],c in s.map&&(l=s.map[c],f.map[c]=l,f.push({name:c,value:l}));for(d=0,h=s.length;d<h;d++)c=s[d].name,c in f.map||(l=s.map[c],f.map[c]=l,f.push({name:c,value:l}));s=f}if(n.start(t.name,s,u),!u){if(t=t.firstChild)do{a(t)}while(t=t.next);n.end(r)}}};return 1!==r.type||t.inner?i[11](r):a(r),n.getContent()};return{serialize:r}},Ly=function(t){var e,n=/data:[^;]+;base64,([a-z0-9\+\/=]+)/gi,r=[],o={},i=_l("img"),a=0,u=0;while(e=n.exec(t)){var s=e[0],c=i+"_"+u++;o[c]=s,a<e.index&&r.push(t.substr(a,e.index-a)),r.push(c),a=e.index+s.length}return 0===a?{prefix:i,uris:o,html:t}:(a<t.length&&r.push(t.substr(a)),{prefix:i,uris:o,html:r.join("")})},Ny=function(t,e){return t.replace(new RegExp(e.prefix+"_[0-9]+","g"),(function(t){return Tt(e.uris,t).getOr(t)}))},Py=function(t){var e=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(t);return e?E.some({type:e[1],data:decodeURIComponent(e[2])}):E.none()},My=["img","video"],jy=function(t){return 0===t.indexOf("data-")||0===t.indexOf("aria-")},Ry=function(t,e){var n=$(t)?Y(My,e):t;return!n},$y=function(t,e,n){return!t.allow_html_data_urls&&(/^data:image\//i.test(e)?Ry(t.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(e):/^data:/i.test(e))},Fy=function(t,e,n){var r,o,i=1,a=t.getShortEndedElements(),u=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g;u.lastIndex=r=n;while(o=u.exec(e)){if(r=u.lastIndex,"/"===o[1])i--;else if(!o[1]){if(o[2]in a)continue;i++}if(0===i)break}return r},Vy=function(t,e){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(t.substr(e))},Hy=function(t,e,n){void 0===n&&(n=0);var r=t.toLowerCase();if(-1!==r.indexOf("[if ",n)&&Vy(r,n)){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(e){var i=r.indexOf(">",n);return-1!==i?i:r.length}var a=/--!?>/;a.lastIndex=n;var u=a.exec(t);return u?u.index+u[0].length:r.length},zy=function(t,e){var n=t.exec(e);if(n){var r=n[1],o=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null};function Uy(t,e){void 0===e&&(e=du());var n=function(){};t=t||{},!1!==t.fix_self_closing&&(t.fix_self_closing=!0);var r=t.comment?t.comment:n,o=t.cdata?t.cdata:n,i=t.text?t.text:n,a=t.start?t.start:n,u=t.end?t.end:n,s=t.pi?t.pi:n,c=t.doctype?t.doctype:n,l=function(n,l){void 0===l&&(l="html");var f,d,h,p,m,g,v,b,y,x,w,C,S,k,O,_,A,E,T,D,I=n.html,B=0,L=[],N=0,P=eu.decode,M=ln.makeMap("src,href,data,background,formaction,poster,xlink:href"),j=/((java|vb)script|mhtml):/i,R="html"===l?0:1,$=function(t){var e,n;e=L.length;while(e--)if(L[e].name===t)break;if(e>=0){for(n=L.length-1;n>=e;n--)t=L[n],t.valid&&u(t.name);L.length=e}},F=function(t,e){return i(Ny(t,n),e)},V=function(e){""!==e&&(">"===e.charAt(0)&&(e=" "+e),t.allow_conditional_comments||"[if"!==e.substr(0,3).toLowerCase()||(e=" "+e),r(Ny(e,n)))},H=function(t){return Tt(n.uris,t).getOr(t)},z=function(t,e){var n=t||"",r=!ue(n,"--"),o=Hy(I,r,e);return t=I.substr(e,o-e),V(r?n+t:t),o+1},U=function(e,n,r,o,i){var a,u,s=/[\s\u0000-\u001F]+/g;if(n=n.toLowerCase(),r=H(n in X?n:P(r||o||i||"")),K&&!b&&!1===jy(n)){if(a=k[n],!a&&O){u=O.length;while(u--)if(a=O[u],a.pattern.test(n))break;-1===u&&(a=null)}if(!a)return;if(a.validValues&&!(r in a.validValues))return}if(M[n]&&!t.allow_script_urls){var c=r.replace(s,"");try{c=decodeURIComponent(c)}catch(l){c=unescape(c)}if(j.test(c))return;if($y(t,c,e))return}b&&(n in M||0===n.indexOf("on"))||(p.map[n]=r,p.push({name:n,value:r}))},W=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),q=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,G=e.getShortEndedElements(),Y=t.self_closing_elements||e.getSelfClosingElements(),X=e.getBoolAttrs(),K=t.validate,Z=t.remove_internals,J=t.fix_self_closing,Q=e.getSpecialElements(),tt=I+">";while(f=W.exec(tt)){var et=f[0];if(B<f.index&&F(P(I.substr(B,f.index-B))),d=f[7])d=d.toLowerCase(),":"===d.charAt(0)&&(d=d.substr(1)),$(d);else if(d=f[8]){if(f.index+et.length>I.length){F(P(I.substr(f.index))),B=f.index+et.length;continue}d=d.toLowerCase(),":"===d.charAt(0)&&(d=d.substr(1)),y=d in G,J&&Y[d]&&L.length>0&&L[L.length-1].name===d&&$(d);var nt=zy(q,f[9]);if(null!==nt){if("all"===nt){B=Fy(e,I,W.lastIndex),W.lastIndex=B;continue}w=!1}if(!K||(x=e.getElementRule(d))){if(w=!0,K&&(k=x.attributes,O=x.attributePatterns),(S=f[9])?(b=-1!==S.indexOf("data-mce-type"),b&&Z&&(w=!1),p=[],p.map={},S.replace(q,(function(t,e,n,r,o){return U(d,e,n,r,o),""}))):(p=[],p.map={}),K&&!b){if(_=x.attributesRequired,A=x.attributesDefault,E=x.attributesForced,T=x.removeEmptyAttrs,T&&!p.length&&(w=!1),E){m=E.length;while(m--)C=E[m],v=C.name,D=C.value,"{$uid}"===D&&(D="mce_"+N++),p.map[v]=D,p.push({name:v,value:D})}if(A){m=A.length;while(m--)C=A[m],v=C.name,v in p.map||(D=C.value,"{$uid}"===D&&(D="mce_"+N++),p.map[v]=D,p.push({name:v,value:D}))}if(_){m=_.length;while(m--)if(_[m]in p.map)break;-1===m&&(w=!1)}if(C=p.map["data-mce-bogus"]){if("all"===C){B=Fy(e,I,W.lastIndex),W.lastIndex=B;continue}w=!1}}w&&a(d,p,y)}else w=!1;if(h=Q[d]){h.lastIndex=B=f.index+et.length,(f=h.exec(I))?(w&&(g=I.substr(B,f.index-B)),B=f.index+f[0].length):(g=I.substr(B),B=I.length),w&&(g.length>0&&F(g,!0),u(d)),W.lastIndex=B;continue}y||(S&&S.indexOf("/")===S.length-1?w&&u(d):L.push({name:d,valid:w}))}else if(d=f[1])V(d);else if(d=f[2]){var rt=1===R||t.preserve_cdata||L.length>0&&e.isValidChild(L[L.length-1].name,"#cdata");if(!rt){B=z("",f.index+2),W.lastIndex=B;continue}o(d)}else if(d=f[3])c(d);else{if((d=f[4])||"<!"===et){B=z(d,f.index+et.length),W.lastIndex=B;continue}if(d=f[5]){if(1!==R){B=z("?",f.index+2),W.lastIndex=B;continue}s(d,f[6])}}B=f.index+et.length}for(B<I.length&&F(P(I.substr(B))),m=L.length-1;m>=0;m--)d=L[m],d.valid&&u(d.name)},f=function(t,e){void 0===e&&(e="html"),l(Ly(t),e)};return{parse:f}}(function(t){t.findEndTag=Fy})(Uy||(Uy={}));var Wy=Uy,qy=function(t,e){var n=new RegExp(["\\s?("+t.join("|")+')="[^"]+"'].join("|"),"gi");return e.replace(n,"")},Gy=function(t,e){var n,r,o,i,a=e,u=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,s=t.schema;a=qy(t.getTempAttrs(),a);var c=s.getShortEndedElements();while(i=u.exec(a))r=u.lastIndex,o=i[0].length,n=c[i[1]]?r:Wy.findEndTag(s,a,r),a=a.substring(0,r-o)+a.substring(n),u.lastIndex=r-o;return Vi(a)},Yy=Gy,Xy=function(t,e){var n=pd(t),r=new RegExp("^(<"+n+"[^>]*>( | |\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return e.replace(r,"")},Ky=function(t,e,n,r){var o;return e.format=n,e.get=!0,e.getInner=!0,e.no_events||t.fire("BeforeGetContent",e),o="raw"===e.format?ln.trim(Yy(t.serializer,r.innerHTML)):"text"===e.format?t.dom.isEmpty(r)?"":Vi(r.innerText||r.textContent):"tree"===e.format?t.serializer.serialize(r,e):Xy(t,t.serializer.serialize(r,e)),Y(["text","tree"],e.format)||Li(gn.fromDom(r))?e.content=o:e.content=ln.trim(o),e.no_events||t.fire("GetContent",e),e.content},Zy=function(t,e,n){return E.from(t.getBody()).fold(g("tree"===e.format?new Ty("body",11):""),(function(r){return Ky(t,e,n,r)}))},Jy=ln.each,Qy=function(t){this.compare=function(e,n){if(e.nodeName!==n.nodeName)return!1;var r=function(e){var n={};return Jy(t.getAttribs(e),(function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=t.getAttrib(e,o))})),n},o=function(t,e){var n,r;for(r in t)if(t.hasOwnProperty(r)){if(n=e[r],"undefined"===typeof n)return!1;if(t[r]!==n)return!1;delete e[r]}for(r in e)if(e.hasOwnProperty(r))return!1;return!0};return!!o(r(e),r(n))&&(!!o(t.parseStyle(t.getAttrib(e,"style")),t.parseStyle(t.getAttrib(n,"style")))&&(!cm(e)&&!cm(n)))}},tx=function(t,e,n){return E.from(n.container()).filter(Yr).exists((function(r){var o=t?0:-1;return e(r.data.charAt(n.offset()+o))}))},ex=b(tx,!0,dm),nx=b(tx,!1,dm),rx=function(t){var e=t.container();return Yr(e)&&(0===e.data.length||Fi(e.data)&&Og.isBookmarkNode(e.parentNode))},ox=function(t,e){return function(n){return E.from(Qh(t?0:-1,n)).filter(e).isSome()}},ix=function(t){return Qr(t)&&"block"===go(gn.fromDom(t),"display")},ax=function(t){return eo(t)&&!Ur(t)},ux=ox(!0,ix),sx=ox(!1,ix),cx=ox(!0,ro),lx=ox(!1,ro),fx=ox(!0,Wr),dx=ox(!1,Wr),hx=ox(!0,ax),px=ox(!1,ax),mx=function(t){var e=[],n=t.dom;while(n)e.push(gn.fromDom(n)),n=n.lastChild;return e},gx=function(t){var e=pl(t,"br"),n=tt(mx(t).slice(-1),Ai);e.length===n.length&&Z(n,wr)},vx=function(t){xr(t),gr(t,gn.fromHtml('<br data-mce-bogus="1">'))},bx=function(t){er(t).each((function(e){Yn(e).each((function(n){ki(t)&&Ai(e)&&ki(n)&&wr(e)}))}))},yx=function(t){return t.slice(0,-1)},xx=function(t,e,n){return Bn(e,t)?yx(qn(t,(function(t){return n(t)||Tn(t,e)}))):[]},wx=function(t,e){return xx(t,e,C)},Cx=function(t,e){return[t].concat(wx(t,e))},Sx=function(t,e,n){return Np(t,e,n,rx)},kx=function(t,e){return ot(Cx(gn.fromDom(e.container()),t),ki)},Ox=function(t,e,n){return Sx(t,e.dom,n).forall((function(t){return kx(e,n).fold((function(){return!1===Jh(t,n,e.dom)}),(function(r){return!1===Jh(t,n,e.dom)&&Bn(r,gn.fromDom(t.container()))}))}))},_x=function(t,e,n){return kx(e,n).fold((function(){return Sx(t,e.dom,n).forall((function(t){return!1===Jh(t,n,e.dom)}))}),(function(e){return Sx(t,e.dom,n).isNone()}))},Ax=b(_x,!1),Ex=b(_x,!0),Tx=b(Ox,!1),Dx=b(Ox,!0),Ix=function(t){return sp(t).exists(Ai)},Bx=function(t,e,n){var r=tt(Cx(gn.fromDom(n.container()),e),ki),o=pt(r).getOr(e);return Bp(t,o.dom,n).filter(Ix)},Lx=function(t,e){return sp(e).exists(Ai)||Bx(!0,t,e).isSome()},Nx=function(t,e){return cp(e).exists(Ai)||Bx(!1,t,e).isSome()},Px=b(Bx,!1),Mx=b(Bx,!0),jx=function(t){return wf.isTextPosition(t)&&!t.isAtStart()&&!t.isAtEnd()},Rx=function(t,e){var n=tt(Cx(gn.fromDom(e.container()),t),ki);return pt(n).getOr(t)},$x=function(t,e){return jx(e)?nx(e):nx(e)||jp(Rx(t,e).dom,e).exists(nx)},Fx=function(t,e){return jx(e)?ex(e):ex(e)||Mp(Rx(t,e).dom,e).exists(ex)},Vx=function(t){return Y(["pre","pre-wrap"],t)},Hx=function(t){return sp(t).bind((function(t){return Xo(t,jn)})).exists((function(t){return Vx(go(t,"white-space"))}))},zx=function(t,e){return jp(t.dom,e).isNone()},Ux=function(t,e){return Mp(t.dom,e).isNone()},Wx=function(t,e){return zx(t,e)||Ux(t,e)||Ax(t,e)||Ex(t,e)||Nx(t,e)||Lx(t,e)},qx=function(t,e){return!Hx(e)&&(Wx(t,e)||$x(t,e)||Fx(t,e))},Gx=function(t,e){return!Hx(e)&&(Ax(t,e)||Tx(t,e)||Nx(t,e)||$x(t,e))},Yx=function(t){var e=t.container(),n=t.offset();return Yr(e)&&n<e.data.length?wf(e,n+1):t},Xx=function(t,e){return!Hx(e)&&(Ex(t,e)||Dx(t,e)||Lx(t,e)||Fx(t,e))},Kx=function(t,e){return Gx(t,e)||Xx(t,Yx(e))},Zx=function(t,e){return fm(t.charAt(e))},Jx=function(t){var e=t.container();return Yr(e)&&ae(e.data,Mi)},Qx=function(t){var e=t.split("");return K(e,(function(t,n){return fm(t)&&n>0&&n<e.length-1&&hm(e[n-1])&&hm(e[n+1])?" ":t})).join("")},tw=function(t,e){var n=e.data,r=wf(e,0);return!(!Zx(n,0)||Kx(t,r))&&(e.data=" "+n.slice(1),!0)},ew=function(t){var e=t.data,n=Qx(e);return n!==e&&(t.data=n,!0)},nw=function(t,e){var n=e.data,r=wf(e,n.length-1);return!(!Zx(n,n.length-1)||Kx(t,r))&&(e.data=n.slice(0,-1)+" ",!0)},rw=function(t,e){return E.some(e).filter(Jx).bind((function(e){var n=e.container(),r=tw(t,n)||ew(n)||nw(t,n);return r?E.some(e):E.none()}))},ow=function(t){var e=gn.fromDom(t.getBody());t.selection.isCollapsed()&&rw(e,wf.fromRangeStart(t.selection.getRng())).each((function(e){t.selection.setRng(e.toRange())}))},iw=function(t,e,n){var r=nt(t,(function(r,o){return dm(o)||fm(o)?r.previousCharIsSpace||""===r.str&&e||r.str.length===t.length-1&&n?{previousCharIsSpace:!1,str:r.str+Mi}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}}),{previousCharIsSpace:!1,str:""});return r.str},aw=function(t,e,n){if(0!==n){var r=gn.fromDom(t),o=Yo(r,ki).getOr(r),i=t.data.slice(e,e+n),a=e+n>=t.data.length&&Xx(o,Sf(t,t.data.length)),u=0===e&&Gx(o,Sf(t,0));t.replaceData(e,n,iw(i,u,a))}},uw=function(t,e){var n=t.data.slice(e),r=n.length-le(n).length;return aw(t,e,r)},sw=function(t,e){var n=t.data.slice(0,e),r=n.length-fe(n).length;return aw(t,e-r,r)},cw=function(t,e,n,r){void 0===r&&(r=!0);var o=fe(t.data).length,i=r?t:e,a=r?e:t;return r?i.appendData(a.data):i.insertData(0,a.data),wr(gn.fromDom(a)),n&&uw(i,o),i},lw=function(t,e){var n=t.container(),r=t.offset();return!1===Sf.isTextPosition(t)&&n===e.parentNode&&r>Sf.before(e).offset()},fw=function(t,e){return lw(e,t)?Sf(e.container(),e.offset()-1):e},dw=function(t){return Yr(t)?Sf(t,0):Sf.before(t)},hw=function(t){return Yr(t)?Sf(t,t.data.length):Sf.after(t)},pw=function(t){return da(t.previousSibling)?E.some(hw(t.previousSibling)):t.previousSibling?$p(t.previousSibling):E.none()},mw=function(t){return da(t.nextSibling)?E.some(dw(t.nextSibling)):t.nextSibling?Rp(t.nextSibling):E.none()},gw=function(t,e){var n=Sf.before(e.previousSibling?e.previousSibling:e.parentNode);return jp(t,n).fold((function(){return Mp(t,Sf.after(e))}),E.some)},vw=function(t,e){return Mp(t,Sf.after(e)).fold((function(){return jp(t,Sf.before(e))}),E.some)},bw=function(t,e){return pw(e).orThunk((function(){return mw(e)})).orThunk((function(){return gw(t,e)}))},yw=function(t,e){return mw(e).orThunk((function(){return pw(e)})).orThunk((function(){return vw(t,e)}))},xw=function(t,e,n){return t?yw(e,n):bw(e,n)},ww=function(t,e,n){return xw(t,e,n).map(b(fw,n))},Cw=function(t,e,n){n.fold((function(){t.focus()}),(function(n){t.selection.setRng(n.toRange(),e)}))},Sw=function(t){return function(e){return e.dom===t}},kw=function(t,e){return e&&Dt(t.schema.getBlockElements(),Ln(e))},Ow=function(t){if(Ta(t)){var e=gn.fromHtml('<br data-mce-bogus="1">');return xr(t),gr(t,e),E.some(Sf.before(e.dom))}return E.none()},_w=function(t,e,n){var r=Yn(t).filter(Rn),o=Xn(t).filter(Rn);return wr(t),Rl(r,o,e,(function(t,e,r){var o=t.dom,i=e.dom,a=o.data.length;return cw(o,i,n),r.container()===i?Sf(o,a):r})).orThunk((function(){return n&&(r.each((function(t){return sw(t.dom,t.dom.length)})),o.each((function(t){return uw(t.dom,0)}))),e}))},Aw=function(t,e){return Dt(t.schema.getTextInlineElements(),Ln(e))},Ew=function(t,e,n,r){void 0===r&&(r=!0);var o=ww(e,t.getBody(),n.dom),i=Yo(n,b(kw,t),Sw(t.getBody())),a=_w(n,o,Aw(t,n));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):i.bind(Ow).fold((function(){r&&Cw(t,e,a)}),(function(n){r&&Cw(t,e,E.some(n))}))},Tw=function(t,e){return{start:t,end:e}},Dw=function(t,e,n){return{rng:t,table:e,cells:n}},Iw=Uo.generate([{removeTable:["element"]},{emptyCells:["cells"]},{deleteCellSelection:["rng","cell"]}]),Bw=function(t){return function(e){return Tn(t,e)}},Lw=function(t,e){return ti(gn.fromDom(t),"td,th",e)},Nw=function(t,e){return Jo(t,"table",e)},Pw=function(t){return!Tn(t.start,t.end)},Mw=function(t,e){return Nw(t.start,e).bind((function(n){return Nw(t.end,e).bind((function(t){return $l(Tn(n,t),n)}))}))},jw=function(t,e){return!Pw(t)&&Mw(t,e).exists((function(t){var e=t.dom.rows;return 1===e.length&&1===e[0].cells.length}))},Rw=function(t){return pl(t,"td,th")},$w=function(t,e){var n=Lw(t.startContainer,e),r=Lw(t.endContainer,e);return jl(n,r,Tw)},Fw=function(t,e){return Nw(t.start,e).bind((function(e){return mt(Rw(e)).map((function(e){return Tw(t.start,e)}))}))},Vw=function(t,e){var n=Lw(e.startContainer,t),r=Lw(e.endContainer,t);return e.collapsed?E.none():jl(n,r,Tw).fold((function(){return n.fold((function(){return r.bind((function(e){return Nw(e,t).bind((function(t){return pt(Rw(t)).map((function(t){return Tw(t,e)}))}))}))}),(function(e){return Nw(e,t).bind((function(t){return mt(Rw(t)).map((function(t){return Tw(e,t)}))}))}))}),(function(e){return Hw(t,e)?E.none():Fw(e,t)}))},Hw=function(t,e){return Mw(e,t).isSome()},zw=function(t,e){return Mw(t,e).map((function(e){return Dw(t,e,Rw(e))}))},Uw=function(t,e,n){return t.filter((function(t){return Pw(t)&&Hw(n,t)})).orThunk((function(){return Vw(n,e)})).bind((function(t){return zw(t,n)}))},Ww=function(t,e){return it(t,(function(t){return Tn(t,e)}))},qw=function(t){return jl(Ww(t.cells,t.rng.start),Ww(t.cells,t.rng.end),(function(e,n){return t.cells.slice(e,n+1)}))},Gw=function(t,e,n){return t.filter((function(t){return jw(t,n)&&cg(t.start,e)})).map((function(t){return t.start}))},Yw=function(t){return qw(t).map((function(e){var n=t.cells;return e.length===n.length?Iw.removeTable(t.table):Iw.emptyCells(e)}))},Xw=function(t,e){var n=Bw(t),r=$w(e,n);return Gw(r,e,n).map((function(t){return Iw.deleteCellSelection(e,t)})).orThunk((function(){return Uw(r,e,n).bind(Yw)}))},Kw=function(t){var e=Mn(t)?Yn(t):er(t);return e.bind(Kw).orThunk((function(){return E.some(t)}))},Zw=function(t,e){return Z(e,vx),t.selection.setCursorLocation(e[0].dom,0),!0},Jw=function(t,e,n){e.deleteContents();var r=Kw(n).getOr(n),o=gn.fromDom(t.dom.getParent(r.dom,t.dom.isBlock));if(Ta(o)&&(vx(o),t.selection.setCursorLocation(o.dom,0)),!Tn(n,o)){var i=Wn(o).is(n)?[]:Gn(o);Z(i.concat(Jn(n)),(function(t){Tn(t,o)||Bn(t,o)||wr(t)}))}return!0},Qw=function(t,e){return Ew(t,!1,e),!0},tC=function(t,e,n){return Xw(e,n).map((function(e){return e.fold(b(Qw,t),b(Zw,t),b(Jw,t))}))},eC=function(t,e){return uC(t,e)},nC=function(t,e,n,r){return iC(e,r).fold((function(){return tC(t,e,n)}),(function(e){return eC(t,e)})).getOr(!1)},rC=function(t,e){var n=gn.fromDom(t.getBody()),r=t.selection.getRng(),o=og(t);return 0!==o.length?Zw(t,o):nC(t,n,r,e)},oC=function(t,e){return ot(Cx(e,t),Bi)},iC=function(t,e){return ot(Cx(e,t),(function(t){return"caption"===Ln(t)}))},aC=function(t,e,n,r,o){return Lp(n,t.getBody(),o).bind((function(t){return oC(e,gn.fromDom(t.getNode())).map((function(t){return!1===Tn(t,r)}))}))},uC=function(t,e){return vx(e),t.selection.setCursorLocation(e.dom,0),E.some(!0)},sC=function(t,e,n,r){return Rp(t.dom).bind((function(o){return $p(t.dom).map((function(t){return e?n.isEqual(o)&&r.isEqual(t):n.isEqual(t)&&r.isEqual(o)}))})).getOr(!0)},cC=function(t,e){return uC(t,e)},lC=function(t,e,n){return iC(t,gn.fromDom(n.getNode())).map((function(t){return!1===Tn(t,e)}))},fC=function(t,e,n,r,o){return Lp(n,t.getBody(),o).bind((function(i){return sC(r,n,o,i)?cC(t,r):lC(e,r,i)})).or(E.some(!0))},dC=function(t,e,n,r){var o=Sf.fromRangeStart(t.selection.getRng());return oC(n,r).bind((function(r){return Ta(r)?uC(t,r):aC(t,n,e,r,o)})).getOr(!1)},hC=function(t,e,n,r){var o=Sf.fromRangeStart(t.selection.getRng());return Ta(r)?uC(t,r):fC(t,n,e,r,o)},pC=function(t,e){return t?fx(e):dx(e)},mC=function(t,e){var n=Sf.fromRangeStart(t.selection.getRng());return pC(e,n)||Bp(e,t.getBody(),n).exists((function(t){return pC(e,t)}))},gC=function(t,e,n){var r=gn.fromDom(t.getBody());return iC(r,n).fold((function(){return dC(t,e,r,n)||mC(t,e)}),(function(n){return hC(t,e,r,n).getOr(!1)}))},vC=function(t,e){var n=gn.fromDom(t.selection.getStart(!0)),r=og(t);return t.selection.isCollapsed()&&0===r.length?gC(t,e,n):rC(t,n)},bC=function(t,e,n,r){var o=document.createRange();return o.setStart(t,e),o.setEnd(n,r),o},yC=function(t){var e=Sf.fromRangeStart(t),n=Sf.fromRangeEnd(t),r=t.commonAncestorContainer;return Bp(!1,r,n).map((function(o){return!Jh(e,n,r)&&Jh(e,o,r)?bC(e.container(),e.offset(),o.container(),o.offset()):t})).getOr(t)},xC=function(t){return t.collapsed?t:yC(t)},wC=function(t){return t.firstChild&&t.firstChild===t.lastChild},CC=function(t){return"br"===t.name||t.value===Mi},SC=function(t,e){var n=t.getBlockElements();return n[e.name]&&wC(e)&&CC(e.firstChild)},kC=function(t,e){var n=t.getNonEmptyElements();return e&&(e.isEmpty(n)||SC(t,e))},OC=function(t,e){var n=e.firstChild,r=e.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),kC(t,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},_C=function(t){var e=t.firstChild,n=t.lastChild;return e&&"META"===e.nodeName&&e.parentNode.removeChild(e),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),t},AC=function(t,e,n){var r=e.serialize(n),o=t.createFragment(r);return _C(o)},EC=function(t){return ln.grep(t.childNodes,(function(t){return"LI"===t.nodeName}))},TC=function(t){return t.data===Mi||Jr(t)},DC=function(t){return t&&t.firstChild&&t.firstChild===t.lastChild&&TC(t.firstChild)},IC=function(t){return!t.firstChild||DC(t)},BC=function(t){return t.length>0&&IC(t[t.length-1])?t.slice(0,-1):t},LC=function(t,e){var n=t.getParent(e,t.isBlock);return n&&"LI"===n.nodeName?n:null},NC=function(t,e){return!!LC(t,e)},PC=function(t,e){var n=e.cloneRange(),r=e.cloneRange();return n.setStartBefore(t),r.setEndAfter(t),[n.cloneContents(),r.cloneContents()]},MC=function(t,e){var n=Sf.before(t),r=kp(e),o=r.next(n);return o?o.toRange():null},jC=function(t,e){var n=Sf.after(t),r=kp(e),o=r.prev(n);return o?o.toRange():null},RC=function(t,e,n,r){var o=PC(t,r),i=t.parentNode;return i.insertBefore(o[0],t),ln.each(e,(function(e){i.insertBefore(e,t)})),i.insertBefore(o[1],t),i.removeChild(t),jC(e[e.length-1],n)},$C=function(t,e,n){var r=t.parentNode;return ln.each(e,(function(e){r.insertBefore(e,t)})),MC(t,n)},FC=function(t,e,n,r){return r.insertAfter(e.reverse(),t),jC(e[0],n)},VC=function(t,e,n,r){var o=AC(e,t,r),i=LC(e,n.startContainer),a=BC(EC(o.firstChild)),u=1,s=2,c=e.getRoot(),l=function(t){var r=Sf.fromRangeStart(n),o=kp(e.getRoot()),a=t===u?o.prev(r):o.next(r);return!a||LC(e,a.getNode())!==i};return l(u)?$C(i,a,c):l(s)?FC(i,a,c,e):RC(i,a,c,n)},HC=function(t,e,n){var r=gn.fromDom(t.getRoot());return n=Gx(r,Sf.fromRangeStart(e))?n.replace(/^ /," "):n.replace(/^ /," "),n=Xx(r,Sf.fromRangeEnd(e))?n.replace(/( | )(<br( \/)>)?$/," "):n.replace(/ (<br( \/)?>)?$/," "),n},zC=no,UC=function(t,e,n){if(null!==n){var r=t.getParent(e.endContainer,zC);return n===r&&cg(gn.fromDom(n),e)}return!1},WC=function(t,e,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(t.dom.createFragment(e),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?t.dom.setHTML(n,e):t.selection.setContent(e)}},qC=function(t,e){E.from(t.getParent(e,"td,th")).map(gn.fromDom).each(bx)},GC=function(t,e){var n=t.schema.getTextInlineElements(),r=t.dom;if(e){var o=t.getBody(),i=new Qy(r);ln.each(r.select("*[data-mce-fragment]"),(function(t){for(var e=t.parentNode;e&&e!==o;e=e.parentNode)n[t.nodeName.toLowerCase()]&&i.compare(e,t)&&r.remove(t,!0)}))}},YC=function(t){var e=t;while(e=e.walk())1===e.type&&e.attr("data-mce-fragment","1")},XC=function(t){ln.each(t.getElementsByTagName("*"),(function(t){t.removeAttribute("data-mce-fragment")}))},KC=function(t){return!!t.getAttribute("data-mce-fragment")},ZC=function(t,e){return e&&!t.schema.getShortEndedElements()[e.nodeName]},JC=function(t,e){var n,r,o=t.dom,i=t.selection,a=function(e){for(var n=t.getBody();e&&e!==n;e=e.parentNode)if("false"===o.getContentEditable(e))return e;return null};if(e){i.scrollIntoView(e);var u=a(e);if(u)return o.remove(e),void i.select(u);var s=o.createRng(),c=e.previousSibling;c&&3===c.nodeType?(s.setStart(c,c.nodeValue.length),Ke.ie||(r=e.nextSibling,r&&3===r.nodeType&&(c.appendData(r.data),r.parentNode.removeChild(r)))):(s.setStartBefore(e),s.setEndBefore(e));var l=function(e){var n=Sf.fromRangeStart(e),r=kp(t.getBody());if(n=r.next(n),n)return n.toRange()},f=o.getParent(e,o.isBlock);o.remove(e),f&&o.isEmpty(f)&&(t.$(f).empty(),s.setStart(f,0),s.setEnd(f,0),zC(f)||KC(f)||!(n=l(s))?o.add(f,o.create("br",{"data-mce-bogus":"1"})):(s=n,o.remove(f))),i.setRng(s)}},QC=function(t){var e=t.dom,n=xC(t.selection.getRng());t.selection.setRng(n);var r=e.getParent(n.startContainer,zC);UC(e,n,r)?Jw(t,n,gn.fromDom(r)):t.getDoc().execCommand("Delete",!1,null)},tS=function(t,e,n){var r,o,i,a,u,s,c=t.selection,l=t.dom;/^ | $/.test(e)&&(e=HC(l,c.getRng(),e));var f=t.parser,d=n.merge,h=By({validate:Gd(t)},t.schema),p='<span id="mce_marker" data-mce-type="bookmark"></span>';if(i={content:e,format:"html",selection:!0,paste:n.paste},i=t.fire("BeforeSetContent",i),i.isDefaultPrevented())t.fire("SetContent",{content:i.content,format:"html",selection:!0,paste:n.paste});else{e=i.content,-1===e.indexOf("{$caret}")&&(e+="{$caret}"),e=e.replace(/\{\$caret\}/,p),u=c.getRng();var m=u.startContainer||(u.parentElement?u.parentElement():null),g=t.getBody();m===g&&c.isCollapsed()&&l.isBlock(g.firstChild)&&ZC(t,g.firstChild)&&l.isEmpty(g.firstChild)&&(u=l.createRng(),u.setStart(g.firstChild,0),u.setEnd(g.firstChild,0),c.setRng(u)),c.isCollapsed()||QC(t),r=c.getNode();var v={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},b=f.parse(e,v);if(!0===n.paste&&OC(t.schema,b)&&NC(l,r))return u=VC(h,l,c.getRng(),b),c.setRng(u),void t.fire("SetContent",i);if(YC(b),s=b.lastChild,"mce_marker"===s.attr("id"))for(a=s,s=s.prev;s;s=s.walk(!0))if(3===s.type||!l.isBlock(s.name)){t.schema.isValidChild(s.parent.name,"span")&&s.parent.insert(a,s,"br"===s.name);break}if(t._selectionOverrides.showBlockCaretContainer(r),v.invalid){t.selection.setContent(p),r=c.getNode(),o=t.getBody(),9===r.nodeType?r=s=o:s=r;while(s!==o)r=s,s=s.parentNode;e=r===o?o.innerHTML:l.getOuterHTML(r),e=h.serialize(f.parse(e.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return h.serialize(b)})))),r===o?l.setHTML(o,e):l.setOuterHTML(r,e)}else e=h.serialize(b),WC(t,e,r);GC(t,d),JC(t,l.get("mce_marker")),XC(t.getBody()),qC(l,c.getStart()),t.fire("SetContent",i),t.addVisual()}},eS=function(t,e){e(t),t.firstChild&&eS(t.firstChild,e),t.next&&eS(t.next,e)},nS=function(t,e,n){var r={},o={},i=[];for(var a in n.firstChild&&eS(n.firstChild,(function(n){Z(t,(function(t){t.name===n.name&&(r[t.name]?r[t.name].nodes.push(n):r[t.name]={filter:t,nodes:[n]})})),Z(e,(function(t){"string"===typeof n.attr(t.name)&&(o[t.name]?o[t.name].nodes.push(n):o[t.name]={filter:t,nodes:[n]})}))})),r)r.hasOwnProperty(a)&&i.push(r[a]);for(var u in o)o.hasOwnProperty(u)&&i.push(o[u]);return i},rS=function(t,e,n){var r=nS(t,e,n);Z(r,(function(t){Z(t.filter.callbacks,(function(e){e(t.nodes,t.filter.name,{})}))}))},oS="html",iS=function(t){return t instanceof Ty},aS=function(t){Jb(t)&&Rp(t.getBody()).each((function(e){var n=e.getNode(),r=Wr(n)?Rp(n).getOr(e):e;t.selection.setRng(r.toRange())}))},uS=function(t,e){t.dom.setHTML(t.getBody(),e),aS(t)},sS=function(t,e,n,r){var o,i;return 0===n.length||/^\s+$/.test(n)?(i='<br data-mce-bogus="1">',"TABLE"===e.nodeName?n="<tr><td>"+i+"</td></tr>":/^(UL|OL)$/.test(e.nodeName)&&(n="<li>"+i+"</li>"),o=pd(t),o&&t.schema.isValidChild(e.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=t.dom.createHTML(o,md(t),n)):n||(n='<br data-mce-bogus="1">'),uS(t,n),t.fire("SetContent",r)):("raw"!==r.format&&(n=By({validate:t.validate},t.schema).serialize(t.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=Li(gn.fromDom(e))?n:ln.trim(n),uS(t,r.content),r.no_events||t.fire("SetContent",r)),r.content},cS=function(t,e,n,r){rS(t.parser.getNodeFilters(),t.parser.getAttributeFilters(),n);var o=By({validate:t.validate},t.schema).serialize(n);return r.content=Li(gn.fromDom(e))?o:ln.trim(o),uS(t,r.content),r.no_events||t.fire("SetContent",r),n},lS=function(t,e,n){return n.format=n.format?n.format:oS,n.set=!0,n.content=iS(e)?"":e,n.no_events||t.fire("BeforeSetContent",n),iS(e)||(e=n.content),E.from(t.getBody()).fold(g(e),(function(r){return iS(e)?cS(t,r,e,n):sS(t,r,e,n)}))},fS=function(t,e){var n=t.dom,r=F(e)?e:t.getBody();R(t.hasVisual)&&(t.hasVisual=ph(t)),Z(n.select("table,a",r),(function(e){switch(e.nodeName){case"TABLE":var r=mh(t),o=n.getAttrib(e,"border");o&&"0"!==o||!t.hasVisual?n.removeClass(e,r):n.addClass(e,r);break;case"A":if(!n.getAttrib(e,"href")){var i=n.getAttrib(e,"name")||e.id,a=gh(t);i&&t.hasVisual?n.addClass(e,a):n.removeClass(e,a)}break}})),t.fire("VisualAid",{element:e,hasVisual:t.hasVisual})},dS=function(t,e){return Ko(t,e).isSome()},hS=$i,pS="_mce_caret",mS=function(t,e){return t.importNode(e,!0)},gS=function(t){var e=[];while(t){if(3===t.nodeType&&t.nodeValue!==hS||t.childNodes.length>1)return[];1===t.nodeType&&e.push(t),t=t.firstChild}return e},vS=function(t){return gS(t).length>0},bS=function(t){if(t){var e=new hi(t,t);for(t=e.current();t;t=e.next())if(Yr(t))return t}return null},yS=function(t){var e=gn.fromTag("span");return uo(e,{id:pS,"data-mce-bogus":"1","data-mce-type":"format-caret"}),t&&gr(e,gn.fromText(hS)),e},xS=function(t){var e=bS(t);return e&&e.nodeValue.charAt(0)===hS&&e.deleteData(0,1),e},wS=function(t,e,n){void 0===n&&(n=!0);var r=t.dom,o=t.selection;if(vS(e))Ew(t,!1,gn.fromDom(e),n);else{var i=o.getRng(),a=r.getParent(e,r.isBlock),u=i.startContainer,s=i.startOffset,c=i.endContainer,l=i.endOffset,f=xS(e);r.remove(e,!0),u===f&&s>0&&i.setStart(f,s-1),c===f&&l>0&&i.setEnd(f,l-1),a&&r.isEmpty(a)&&vx(gn.fromDom(a)),o.setRng(i)}},CS=function(t,e,n){void 0===n&&(n=!0);var r=t.dom,o=t.selection;if(e)wS(t,e,n);else if(e=Hp(t.getBody(),o.getStart()),!e)while(e=r.get(pS))wS(t,e,!1)},SS=function(t,e,n){var r=t.dom,o=r.getParent(n,b(bm,t));o&&r.isEmpty(o)?n.parentNode.replaceChild(e,n):(gx(gn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(e,n):r.insertAfter(e,n))},kS=function(t,e){return t.appendChild(e),e},OS=function(t,e){var n=et(t,(function(t,e){return kS(t,e.cloneNode(!1))}),e);return kS(n,n.ownerDocument.createTextNode(hS))},_S=function(t,e,n,r,o,i){var a=t.formatter,u=t.dom,s=tt(bt(a.get()),(function(t){return t!==r&&!ae(t,"removeformat")})),c=ky(t,n,s),l=tt(c,(function(e){return!Tm(t,e,r)}));if(l.length>0){var f=n.cloneNode(!1);return u.add(e,f),a.remove(r,o,f,i),u.remove(f),E.some(f)}return E.none()},AS=function(t,e,n){var r,o,i=t.selection,a=i.getRng(),u=a.startOffset,s=a.startContainer,c=s.nodeValue;r=Hp(t.getBody(),i.getStart()),r&&(o=bS(r));var l=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(c&&u>0&&u<c.length&&l.test(c.charAt(u))&&l.test(c.charAt(u-1))){var f=i.getBookmark();a.collapse(!0);var d=Ym(t,a,t.formatter.get(e));d=sv(d),t.formatter.apply(e,n,d),i.moveToBookmark(f)}else r&&o.nodeValue===hS||(r=mS(t.getDoc(),yS(!0).dom),o=r.firstChild,a.insertNode(r),u=1),t.formatter.apply(e,n,r),i.setCursorLocation(o,u)},ES=function(t,e,n,r){var o,i,a,u=t.dom,s=t.selection,c=[],l=s.getRng(),f=l.startContainer,d=l.startOffset;i=f,3===f.nodeType&&(d!==f.nodeValue.length&&(o=!0),i=i.parentNode);while(i){if(yy(t,i,e,n,r)){a=i;break}i.nextSibling&&(o=!0),c.push(i),i=i.parentNode}if(a)if(o){var h=s.getBookmark();l.collapse(!0);var p=Ym(t,l,t.formatter.get(e),!0);p=sv(p),t.formatter.remove(e,n,p,r),s.moveToBookmark(h)}else{var m=Hp(t.getBody(),a),g=yS(!1).dom;SS(t,g,null!==m?m:a);var v=_S(t,g,a,e,n,r),b=OS(c.concat(v.toArray()),g);wS(t,m,!1),s.setCursorLocation(b,1),u.isEmpty(a)&&u.remove(a)}},TS=function(t,e){var n=t.selection,r=t.getBody();CS(t,null,!1),8!==e&&46!==e||!n.isCollapsed()||n.getStart().innerHTML!==hS||CS(t,Hp(r,n.getStart())),37!==e&&39!==e||CS(t,Hp(r,n.getStart()))},DS=function(t){t.on("mouseup keydown",(function(e){TS(t,e.keyCode)}))},IS=function(t,e){var n=yS(!1),r=OS(e,n.dom);return hr(gn.fromDom(t),n),wr(gn.fromDom(t)),Sf(r,0)},BS=function(t,e){var n=t.schema.getTextInlineElements();return n.hasOwnProperty(Ln(e))&&!Vp(e.dom)&&!zr(e.dom)},LS=function(t){return Vp(t.dom)&&vS(t.dom)},NS={},PS=jt,MS=Pt,jS=function(t,e){var n=NS[t];n||(NS[t]=[]),NS[t].push(e)},RS=function(t,e){MS(NS[t],(function(t){t(e)}))};jS("pre",(function(t){var e,n=t.selection.getRng(),r=function(t){return i(t.previousSibling)&&-1!==Rt(e,t.previousSibling)},o=function(t,e){xc(e).remove(),xc(t).append("<br><br>").append(e.childNodes)},i=$r(["pre"]);n.collapsed||(e=t.selection.getSelectedBlocks(),MS(PS(PS(e,i),r),(function(t){o(t.previousSibling,t)})))}));var $S=ln.each,FS=function(t){return Rr(t)&&!cm(t)&&!Vp(t)&&!zr(t)},VS=function(t,e){var n;for(n=t;n;n=n[e]){if(Yr(n)&&0!==n.nodeValue.length)return t;if(Rr(n)&&!cm(n))return n}return t},HS=function(t,e,n){var r,o,i=new Qy(t);if(e&&n&&(e=VS(e,"previousSibling"),n=VS(n,"nextSibling"),i.compare(e,n))){for(r=e.nextSibling;r&&r!==n;)o=r,r=r.nextSibling,e.appendChild(o);return t.remove(n),ln.each(ln.grep(n.childNodes),(function(t){e.appendChild(t)})),e}return n},zS=function(t,e,n,r){if(r&&!1!==e.merge_siblings){var o=HS(t,vm(r),r);HS(t,o,vm(o,!0))}},US=function(t,e,n){if(e.clear_child_styles){var r=e.links?"*:not(a)":"*";$S(t.select(r,n),(function(n){FS(n)&&$S(e.styles,(function(e,r){t.setStyle(n,r,"")}))}))}},WS=function(t,e,n){$S(t.childNodes,(function(t){FS(t)&&(e(t)&&n(t),t.hasChildNodes()&&WS(t,e,n))}))},qS=function(t,e){"SPAN"===e.nodeName&&0===t.getAttribs(e).length&&t.remove(e,!0)},GS=function(t,e){return function(n){return!(!n||!Om(t,n,e))}},YS=function(t,e,n){return function(r){t.setStyle(r,e,n),""===r.getAttribute("style")&&r.removeAttribute("style"),qS(t,r)}},XS=Uo.generate([{keep:[]},{rename:["name"]},{removed:[]}]),KS=/^(src|href|style)$/,ZS=ln.each,JS=Sm,QS=function(t){return/^(TR|TH|TD)$/.test(t.nodeName)},tk=function(t,e,n){return t.isChildOf(e,n)&&e!==n&&!t.isBlock(n)},ek=function(t,e,n){var r,o;if(r=e[n?"startContainer":"endContainer"],o=e[n?"startOffset":"endOffset"],Rr(r)){var i=r.childNodes.length-1;!n&&o&&o--,r=r.childNodes[o>i?i:o]}return Yr(r)&&n&&o>=r.nodeValue.length&&(r=new hi(r,t.getBody()).next()||r),Yr(r)&&!n&&0===o&&(r=new hi(r,t.getBody()).prev()||r),r},nk=function(t,e){var n=e?"firstChild":"lastChild";if(QS(t)&&t[n]){var r=t[n];return"TR"===t.nodeName&&r[n]||r}return t},rk=function(t,e,n,r){var o=t.create(n,r);return e.parentNode.insertBefore(o,e),o.appendChild(e),o},ok=function(t,e,n,r,o){var i=gn.fromDom(e),a=gn.fromDom(t.create(r,o)),u=n?Zn(i):Kn(i);return yr(a,u),n?(hr(i,a),mr(a,i)):(pr(i,a),gr(a,i)),a.dom},ik=function(t,e,n){return!!JS(e,n.inline)||(!!JS(e,n.block)||(n.selector?Rr(e)&&t.is(e,n.selector):void 0))},ak=function(t,e){return e.links&&"A"===t.nodeName},uk=function(t,e,n,r){return e=vm(e,n,r),!e||"BR"===e.nodeName||t.isBlock(e)},sk=function(t,e,n){var r,o=e.parentNode,i=t.dom,a=pd(t);n.block&&(a?o===i.getRoot()&&(n.list_block&&JS(e,n.list_block)||Z(gt(e.childNodes),(function(e){ym(t,a,e.nodeName.toLowerCase())?r?r.appendChild(e):(r=rk(i,e,a),i.setAttribs(r,t.settings.forced_root_block_attrs)):r=0}))):i.isBlock(e)&&!i.isBlock(o)&&(uk(i,e,!1)||uk(i,e.firstChild,!0,!0)||e.insertBefore(i.create("br"),e.firstChild),uk(i,e,!0)||uk(i,e.lastChild,!1,!0)||e.appendChild(i.create("br")))),n.selector&&n.inline&&!JS(n.inline,e)||i.remove(e,!0)},ck=function(t,e,n,r,o){var i,a=t.dom;if(!ik(a,r,e)&&!ak(r,e))return XS.keep();var u=r;if(e.inline&&"all"===e.remove&&P(e.preserve_attributes)){var s=tt(a.getAttribs(u),(function(t){return Y(e.preserve_attributes,t.name.toLowerCase())}));if(a.removeAllAttribs(u),Z(s,(function(t){return a.setAttrib(u,t.name,t.value)})),s.length>0)return XS.rename("span")}if("all"!==e.remove){ZS(e.styles,(function(t,r){t=km(a,Cm(t,n),r+""),H(r)&&(r=t,o=null),(e.remove_similar||!o||JS(Om(a,o,r),t))&&a.setStyle(u,r,""),i=!0})),i&&""===a.getAttrib(u,"style")&&(u.removeAttribute("style"),u.removeAttribute("data-mce-style")),ZS(e.attributes,(function(t,r){var i;if(t=Cm(t,n),H(r)&&(r=t,o=null),e.remove_similar||!o||JS(a.getAttrib(o,r),t)){if("class"===r&&(t=a.getAttrib(u,r),t&&(i="",Z(t.split(/\s+/),(function(t){/mce\-\w+/.test(t)&&(i+=(i?" ":"")+t)})),i)))return void a.setAttrib(u,r,i);"class"===r&&u.removeAttribute("className"),KS.test(r)&&u.removeAttribute("data-mce-"+r),u.removeAttribute(r)}})),ZS(e.classes,(function(t){t=Cm(t,n),o&&!a.hasClass(o,t)||a.removeClass(u,t)}));for(var c=a.getAttribs(u),l=0;l<c.length;l++){var f=c[l].nodeName;if(0!==f.indexOf("_")&&0!==f.indexOf("data-"))return XS.keep()}}return"none"!==e.remove?(sk(t,u,e),XS.removed()):XS.keep()},lk=function(t,e,n,r,o){return ck(t,e,n,r,o).fold(C,(function(e){return t.dom.rename(r,e),!0}),S)},fk=function(t,e,n,r,o){var i;return Z(Am(t.dom,e.parentNode).reverse(),(function(e){if(!i&&"_start"!==e.id&&"_end"!==e.id){var a=yy(t,e,n,r,o);a&&!1!==a.split&&(i=e)}})),i},dk=function(t,e,n,r){return ck(t,e,n,r,r).fold(g(r),(function(e){var n=t.dom.createFragment();return n.appendChild(r),t.dom.rename(r,e)}),g(null))},hk=function(t,e,n,r,o,i,a,u){var s,c,l,f=t.dom;if(n){for(var d=n.parentNode,h=r.parentNode;h&&h!==d;h=h.parentNode){s=f.clone(h,!1);for(var p=0;p<e.length;p++)if(s=dk(t,e[p],u,s),null===s)break;s&&(c&&s.appendChild(c),l||(l=s),c=s)}!i||a.mixed&&f.isBlock(n)||(r=f.split(n,r)),c&&(o.parentNode.insertBefore(c,o),l.appendChild(o),a.inline&&zS(f,a,u,c))}return r},pk=function(t,e,n,r,o){var i=t.formatter.get(e),a=i[0],u=!0,s=t.dom,c=t.selection,l=function(r){var u=fk(t,r,e,n,o);return hk(t,i,u,r,r,!0,a,n)},f=function(t){return cm(t)&&Rr(t)&&("_start"===t.id||"_end"===t.id)},d=function(e){var r,o;Rr(e)&&s.getContentEditable(e)&&(r=u,u="true"===s.getContentEditable(e),o=!0);var c=gt(e.childNodes);if(u&&!o)for(var l=0;l<i.length;l++)if(lk(t,i[l],n,e,e))break;if(a.deep&&c.length){for(l=0;l<c.length;l++)d(c[l]);o&&(u=r)}},h=function(t){var e=s.get(t?"_start":"_end"),n=e[t?"firstChild":"lastChild"];return f(n)&&(n=n[t?"firstChild":"lastChild"]),Yr(n)&&0===n.data.length&&(n=t?e.previousSibling||e.nextSibling:e.nextSibling||e.previousSibling),s.remove(e,!0),n},p=function(e){var n,r,o=Ym(t,e,i,e.collapsed);if(a.split){if(o=sv(o),n=ek(t,o,!0),r=ek(t,o),n!==r){if(n=nk(n,!0),r=nk(r,!1),tk(s,n,r)){var u=E.from(n.firstChild).getOr(n);return l(ok(s,u,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void h(!0)}if(tk(s,r,n)){u=E.from(r.lastChild).getOr(r);return l(ok(s,u,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void h(!1)}n=rk(s,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=rk(s,r,"span",{id:"_end","data-mce-type":"bookmark"});var c=s.createRng();c.setStartAfter(n),c.setEndBefore(r),Zm(s,c,(function(t){Z(t,(function(t){cm(t)||cm(t.parentNode)||l(t)}))})),l(n),l(r),n=h(!0),r=h()}else n=r=l(n);o.startContainer=n.parentNode?n.parentNode:n,o.startOffset=s.nodeIndex(n),o.endContainer=r.parentNode?r.parentNode:r,o.endOffset=s.nodeIndex(r)+1}Zm(s,o,(function(e){Z(e,(function(e){d(e);var n=["underline","line-through","overline"];Z(n,(function(n){Rr(e)&&t.dom.getStyle(e,"text-decoration")===n&&e.parentNode&&_m(s,e.parentNode)===n&&lk(t,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,e)}))}))}))};if(r)if(pm(r)){var m=s.createRng();m.setStartBefore(r),m.setEndAfter(r),p(m)}else p(r);else if("false"!==s.getContentEditable(c.getNode()))c.isCollapsed()&&a.inline&&!og(t).length?ES(t,e,n,o):(hg(c,!0,(function(){dg(t,p)})),a.inline&&xy(t,e,n,c.getStart())&&gm(s,c,c.getRng()),t.nodeChanged());else{r=c.getNode();for(var g=0;g<i.length;g++)if(i[g].ceFalseOverride&&lk(t,i[g],n,r,r))break}},mk=ln.each,gk=function(t,e,n,r){var o=function(e){if(1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType){var n=_m(t,e.parentNode);t.getStyle(e,"color")&&n?t.setStyle(e,"text-decoration",n):t.getStyle(e,"text-decoration")===n&&t.setStyle(e,"text-decoration",null)}};e.styles&&(e.styles.color||e.styles.textDecoration)&&(ln.walk(r,o,"childNodes"),o(r))},vk=function(t,e,n,r){e.styles&&e.styles.backgroundColor&&WS(r,GS(t,"fontSize"),YS(t,"backgroundColor",Cm(e.styles.backgroundColor,n)))},bk=function(t,e,n,r){"sub"!==e.inline&&"sup"!==e.inline||(WS(r,GS(t,"fontSize"),YS(t,"fontSize","")),t.remove(t.select("sup"===e.inline?"sub":"sup",r),!0))},yk=function(t,e,n,r){mk(e,(function(e){mk(t.dom.select(e.inline,r),(function(r){FS(r)&&lk(t,e,n,r,e.exact?r:null)})),US(t.dom,e,r)}))},xk=function(t,e,n,r,o){yy(t,o.parentNode,n,r)&&lk(t,e,r,o)||e.merge_with_parents&&t.dom.getParent(o.parentNode,(function(i){if(yy(t,i,n,r))return lk(t,e,r,o),!0}))},wk=ln.each,Ck=function(t,e){return It(t,e)},Sk=function(t){return t&&1===t.nodeType&&!cm(t)&&!Vp(t)&&!zr(t)},kk=function(t,e,n,r){if(Zd(t)&&Bm(e)){var o=Ht(Ht({},t.schema.getTextBlockElements()),{td:{},th:{},li:{},dt:{},dd:{},figcaption:{},caption:{},details:{},summary:{}}),i=dS(gn.fromDom(n),(function(t){return Vp(t.dom)}));return It(o,r)&&Ta(gn.fromDom(n.parentNode),!1)&&!i}return!1},Ok=function(t,e,n,r){var o=t.formatter.get(e),i=o[0],a=!r&&t.selection.isCollapsed(),u=t.dom,s=t.selection,c=function(t,e){if(e=e||i,t){if(e.onformat&&e.onformat(t,e,n,r),wk(e.styles,(function(e,r){u.setStyle(t,r,Cm(e,n))})),e.styles){var o=u.getAttrib(t,"style");o&&u.setAttrib(t,"data-mce-style",o)}wk(e.attributes,(function(e,r){u.setAttrib(t,r,Cm(e,n))})),wk(e.classes,(function(e){e=Cm(e,n),u.hasClass(t,e)||u.addClass(t,e)}))}},l=function(t,e){var n=!1;return!!Im(i)&&(wk(t,(function(t){if(!("collapsed"in t)||t.collapsed===a)return u.is(e,t.selector)&&!Vp(e)?(c(e,t),n=!0,!1):void 0})),n)},f=function(r,a,u,s){var f=[],d=!0,h=i.inline||i.block,p=r.create(h);c(p),Zm(r,a,(function(a){var u,m=function(a){var g=!1,v=d,b=a.nodeName.toLowerCase(),y=a.parentNode.nodeName.toLowerCase();if(Rr(a)&&r.getContentEditable(a)&&(v=d,d="true"===r.getContentEditable(a),g=!0),Jr(a)&&!kk(t,i,a,y))return u=null,void(Dm(i)&&r.remove(a));if(i.wrapper&&yy(t,a,e,n))u=null;else{if(d&&!g&&Dm(i)&&!i.wrapper&&bm(t,b)&&ym(t,y,h)){var x=r.rename(a,h);return c(x),f.push(x),void(u=null)}if(Im(i)){var w=l(o,a);if(!Ck(i,"inline")||w)return void(u=null)}!d||g||!ym(t,h,b)||!ym(t,y,h)||!s&&3===a.nodeType&&1===a.nodeValue.length&&65279===a.nodeValue.charCodeAt(0)||Vp(a)||Ck(i,"inline")&&r.isBlock(a)?(u=null,wk(ln.grep(a.childNodes),m),g&&(d=v),u=null):(u||(u=r.clone(p,!1),a.parentNode.insertBefore(u,a),f.push(u)),u.appendChild(a))}};wk(a,m)})),!0===i.links&&wk(f,(function(t){var e=function(t){"A"===t.nodeName&&c(t,i),wk(ln.grep(t.childNodes),e)};e(t)})),wk(f,(function(a){var u=function(t){var e=0;return wk(t.childNodes,(function(t){wm(t)||cm(t)||e++})),e},s=function(t){var e=!1;return wk(t.childNodes,(function(t){if(Sk(t))return e=t,!1})),e},l=function(t){var e,n=s(t);return n&&!cm(n)&&vy(r,n,i)&&(e=r.clone(n,!1),c(e),r.replace(e,t,!0),r.remove(n,!0)),e||t},d=u(a);!(f.length>1)&&r.isBlock(a)||0!==d?(Bm(i)||i.wrapper)&&(i.exact||1!==d||(a=l(a)),yk(t,o,n,a),xk(t,i,e,n,a),vk(r,i,n,a),gk(r,i,n,a),bk(r,i,n,a),zS(r,i,n,a)):r.remove(a,!0)}))};if("false"!==u.getContentEditable(s.getNode())){if(i){if(r)if(pm(r)){if(!l(o,r)){var d=u.createRng();d.setStartBefore(r),d.setEndAfter(r),f(u,Ym(t,d,o),null,!0)}}else f(u,r,null,!0);else if(a&&Bm(i)&&!og(t).length)AS(t,e,n);else{var h=s.getNode(),p=o[0];t.settings.forced_root_block||!p.defaultBlock||u.getParent(h,u.isBlock)||Ok(t,p.defaultBlock),s.setRng(xC(s.getRng())),hg(s,!0,(function(e){dg(t,(function(e,n){var r=n?e:Ym(t,e,o);f(u,r)}))})),gm(u,s,s.getRng()),t.nodeChanged()}RS(e,t)}}else{r=s.getNode();for(var m=0,g=o.length;m<g;m++){var v=o[m];if(v.ceFalseOverride&&Im(v)&&u.is(r,v.selector))return void c(r,v)}}},_k=function(t,e){var n=Rc({});t.set({}),e.on("NodeChange",(function(r){Ak(e,r.element,n,t.get())}))},Ak=function(t,e,n,r){var o=bt(n.get()),i={},a={},u=tt(Am(t.dom,e),(function(t){return 1===t.nodeType&&!t.getAttribute("data-mce-bogus")}));xt(r,(function(e,n){ln.each(u,(function(r){return t.formatter.matchNode(r,n,{},e.similar)?(-1===o.indexOf(n)&&(Z(e.callbacks,(function(t){t(!0,{node:r,format:n,parents:u})})),i[n]=e.callbacks),a[n]=e.callbacks,!1):!my(t,r,n)&&void 0}))}));var s=Ek(n.get(),a,e,u);n.set(Ht(Ht({},i),s))},Ek=function(t,e,n,r){return Ot(t,(function(t,o){return!!Dt(e,o)||(Z(t,(function(t){t(!1,{node:n,format:o,parents:r})})),!1)})).t},Tk=function(t,e,n,r){var o=t.get();Z(e.split(","),(function(t){o[t]||(o[t]={similar:r,callbacks:[]}),o[t].callbacks.push(n)})),t.set(o)},Dk=function(t,e,n){var r=t.get();Z(e.split(","),(function(t){r[t].callbacks=tt(r[t].callbacks,(function(t){return t!==n})),0===r[t].callbacks.length&&delete r[t]})),t.set(r)},Ik=function(t,e,n,r,o){return null===e.get()&&_k(e,t),Tk(e,n,r,o),{unbind:function(){return Dk(e,n,r)}}},Bk=function(t,e,n,r){var o=t.formatter.get(e);!xy(t,e,n,r)||"toggle"in o[0]&&!o[0].toggle?Ok(t,e,n,r):pk(t,e,n,r)},Lk=function(t,e){var n=e||document,r=n.createDocumentFragment();return Z(t,(function(t){r.appendChild(t.dom)})),gn.fromDom(r)},Nk=function(t,e,n){return{element:t,width:e,rows:n}},Pk=function(t,e){return{element:t,cells:e}},Mk=function(t,e){return{x:t,y:e}},jk=function(t,e){var n=parseInt(so(t,e),10);return isNaN(n)?1:n},Rk=function(t,e,n,r,o){for(var i=jk(o,"rowspan"),a=jk(o,"colspan"),u=t.rows,s=n;s<n+i;s++){u[s]||(u[s]=Pk(Ll(r),[]));for(var c=e;c<e+a;c++){var l=u[s].cells;l[c]=s===n&&c===e?o:Bl(o)}}},$k=function(t,e,n){var r=t.rows,o=r[n]?r[n].cells:[];return!!o[e]},Fk=function(t,e,n){while($k(t,e,n))e++;return e},Vk=function(t){return nt(t,(function(t,e){return e.cells.length>t?e.cells.length:t}),0)},Hk=function(t,e){for(var n=t.rows,r=0;r<n.length;r++)for(var o=n[r].cells,i=0;i<o.length;i++)if(Tn(o[i],e))return E.some(Mk(i,r));return E.none()},zk=function(t,e,n,r,o){for(var i=[],a=t.rows,u=n;u<=o;u++){var s=a[u].cells,c=e<r?s.slice(e,r+1):s.slice(r,e+1);i.push(Pk(a[u].element,c))}return i},Uk=function(t,e,n){var r=e.x,o=e.y,i=n.x,a=n.y,u=o<a?zk(t,r,o,i,a):zk(t,r,a,i,o);return Nk(t.element,Vk(u),u)},Wk=function(t,e){var n=Bl(t.element),r=gn.fromTag("tbody");return yr(r,e),gr(n,r),n},qk=function(t){return K(t.rows,(function(t){var e=K(t.cells,(function(t){var e=Ll(t);return fo(e,"colspan"),fo(e,"rowspan"),e})),n=Bl(t.element);return yr(n,e),n}))},Gk=function(t){var e=Nk(Bl(t),0,[]);return Z(pl(t,"tr"),(function(t,n){Z(pl(t,"td,th"),(function(r,o){Rk(e,Fk(e,o,n),n,t,r)}))})),Nk(e.element,Vk(e.rows),e.rows)},Yk=function(t){return Wk(t,qk(t))},Xk=function(t,e,n){return Hk(t,e).bind((function(e){return Hk(t,n).map((function(n){return Uk(t,e,n)}))}))},Kk=function(t){return ot(t,(function(t){return"ul"===Ln(t)||"ol"===Ln(t)}))},Zk=function(t,e){return ot(t,(function(t){return"li"===Ln(t)&&cg(t,e)})).fold(g([]),(function(e){return Kk(t).map((function(t){var e=gn.fromTag(Ln(t)),n=_t(yo(t),(function(t,e){return ue(e,"list-style")}));return mo(e,n),[gn.fromTag("li"),e]})).getOr([])}))},Jk=function(t,e){var n=nt(e,(function(t,e){return gr(e,t),e}),t);return e.length>0?Lk([n]):n},Qk=function(t){return Di(t)?Wn(t).filter(Ti).fold(g([]),(function(e){return[t,e]})):Ti(t)?[t]:[]},tO=function(t,e){var n=gn.fromDom(e.commonAncestorContainer),r=Cx(n,t),o=tt(r,(function(t){return _i(t)||Si(t)})),i=Zk(r,e),a=o.concat(i.length?i:Qk(n));return K(a,Bl)},eO=function(){return Lk([])},nO=function(t,e){return Jk(gn.fromDom(e.cloneContents()),tO(t,e))},rO=function(t,e){return Jo(e,"table",b(Tn,t))},oO=function(t,e){return rO(t,e[0]).bind((function(t){var n=e[0],r=e[e.length-1],o=Gk(t);return Xk(o,n,r).map((function(t){return Lk([Yk(t)])}))})).getOrThunk(eO)},iO=function(t,e){return e.length>0&&e[0].collapsed?eO():nO(t,e[0])},aO=function(t,e){var n=rg(e,t);return n.length>0?oO(t,n):iO(t,e)},uO=function(t){return t.replace(/^[ \f\n\r\t\v]+/,"")},sO=function(t,e){return e>=0&&e<t.length&&dm(t.charAt(e))},cO=function(t,e){var n=Vi(t.innerText);return e?uO(n):n},lO=function(t){return t.map((function(t){return t.nodeName})).getOr("div").toLowerCase()},fO=function(t){return E.from(t.selection.getRng()).map((function(e){var n=E.from(t.dom.getParent(e.commonAncestorContainer,t.dom.isBlock)),r=t.getBody(),o=lO(n),i=Ke.browser.isIE()&&"pre"!==o,a=t.dom.add(r,o,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),u=cO(a,i),s=Vi(a.textContent);if(t.dom.remove(a),sO(s,0)||sO(s,s.length-1)){var c=n.getOr(r),l=cO(c,i),f=l.indexOf(u);if(-1===f)return u;var d=sO(l,f-1),h=sO(l,f+u.length);return(d?" ":"")+u+(h?" ":"")}return u})).getOr("")},dO=function(t,e){var n=t.selection.getRng(),r=t.dom.create("body"),o=t.selection.getSel(),i=ly(t,Jm(o)),a=e.contextual?aO(gn.fromDom(t.getBody()),i).dom:n.cloneContents();return a&&r.appendChild(a),t.selection.serializer.serialize(r,e)},hO=function(t,e,n){if(void 0===n&&(n={}),n.get=!0,n.format=e,n.selection=!0,n=t.fire("BeforeGetContent",n),n.isDefaultPrevented())return t.fire("GetContent",n),n.content;if("text"===n.format)return fO(t);n.getInner=!0;var r=dO(t,n);return"tree"===n.format?r:(n.content=t.selection.isCollapsed()?"":r,t.fire("GetContent",n),n.content)},pO=0,mO=1,gO=2,vO=function(t,e){var n=t.length+e.length+2,r=new Array(n),o=new Array(n),i=function(t,e,n){return{start:t,end:e,diag:n}},a=function(n,r,o,i,u){var c=s(n,r,o,i);if(null===c||c.start===r&&c.diag===r-i||c.end===n&&c.diag===n-o){var l=n,f=o;while(l<r||f<i)l<r&&f<i&&t[l]===e[f]?(u.push([pO,t[l]]),++l,++f):r-n>i-o?(u.push([gO,t[l]]),++l):(u.push([mO,e[f]]),++f)}else{a(n,c.start,o,c.start-c.diag,u);for(var d=c.start;d<c.end;++d)u.push([pO,t[d]]);a(c.end,r,c.end-c.diag,i,u)}},u=function(n,r,o,a){var u=n;while(u-r<a&&u<o&&t[u]===e[u-r])++u;return i(n,u,r)},s=function(n,i,a,s){var c=i-n,l=s-a;if(0===c||0===l)return null;var f,d,h,p,m,g=c-l,v=l+c,b=(v%2===0?v:v+1)/2;for(r[1+b]=n,o[1+b]=i+1,f=0;f<=b;++f){for(d=-f;d<=f;d+=2){h=d+b,d===-f||d!==f&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,p=r[h],m=p-n+a-d;while(p<i&&m<s&&t[p]===e[m])r[h]=++p,++m;if(g%2!==0&&g-f<=d&&d<=g+f&&o[h-g]<=r[h])return u(o[h-g],d+n-a,i,s)}for(d=g-f;d<=g+f;d+=2){h=d+b-g,d===g-f||d!==g+f&&o[h+1]<=o[h-1]?o[h]=o[h+1]-1:o[h]=o[h-1],p=o[h]-1,m=p-n+a-d;while(p>=n&&m>=a&&t[p]===e[m])o[h]=p--,m--;if(g%2===0&&-f<=d&&d<=f&&o[h]<=r[h+g])return u(o[h],d+n-a,i,s)}}},c=[];return a(0,t.length,0,e.length,c),c},bO=function(t){return Rr(t)?t.outerHTML:Yr(t)?eu.encodeRaw(t.data,!1):Xr(t)?"\x3c!--"+t.data+"--\x3e":""},yO=function(t){var e,n=document.createElement("div"),r=document.createDocumentFragment();t&&(n.innerHTML=t);while(e=n.firstChild)r.appendChild(e);return r},xO=function(t,e,n){var r=yO(e);if(t.hasChildNodes()&&n<t.childNodes.length){var o=t.childNodes[n];o.parentNode.insertBefore(r,o)}else t.appendChild(r)},wO=function(t,e){if(t.hasChildNodes()&&e<t.childNodes.length){var n=t.childNodes[e];n.parentNode.removeChild(n)}},CO=function(t,e){var n=0;Z(t,(function(t){t[0]===pO?n++:t[0]===mO?(xO(e,t[1],n),n++):t[0]===gO&&wO(e,n)}))},SO=function(t){return tt(K(gt(t.childNodes),bO),(function(t){return t.length>0}))},kO=function(t,e){var n=K(gt(e.childNodes),bO);return CO(vO(n,t),e),e},OO=Rc(E.none()),_O=function(){return OO.get().getOrThunk((function(){var t=document.implementation.createHTMLDocument("undo");return OO.set(E.some(t)),t}))},AO=function(t){return-1!==t.indexOf("</iframe>")},EO=function(t){return{type:"fragmented",fragments:t,content:"",bookmark:null,beforeBookmark:null}},TO=function(t){return{type:"complete",fragments:null,content:t,bookmark:null,beforeBookmark:null}},DO=function(t){var e=SO(t.getBody()),n=ut(e,(function(e){var n=Gy(t.serializer,e);return n.length>0?[n]:[]})),r=n.join("");return AO(r)?EO(n):TO(r)},IO=function(t,e,n){"fragmented"===e.type?kO(e.fragments,t.getBody()):t.setContent(e.content,{format:"raw"}),t.selection.moveToBookmark(n?e.beforeBookmark:e.bookmark)},BO=function(t){return"fragmented"===t.type?t.fragments.join(""):t.content},LO=function(t){var e=gn.fromTag("body",_O());return Dl(e,BO(t)),Z(pl(e,"*[data-mce-bogus]"),Cr),Tl(e)},NO=function(t,e){return BO(t)===BO(e)},PO=function(t,e){return LO(t)===LO(e)},MO=function(t,e){return!(!t||!e)&&(!!NO(t,e)||PO(t,e))},jO=function(t){return 0===t.get()},RO=function(t,e,n){jO(n)&&(t.typing=e)},$O=function(t,e){t.typing&&(RO(t,!1,e),t.add())},FO=function(t){t.typing&&(t.typing=!1,t.add())},VO=function(t,e,n){jO(e)&&n.set(E.some(rd(t.selection)))},HO=function(t,e,n,r,o,i,a){var u=DO(t);if(i=i||{},i=ln.extend(i,u),!1===jO(r)||t.removed)return null;var s=e.data[n.get()];if(t.fire("BeforeAddUndo",{level:i,lastLevel:s,originalEvent:a}).isDefaultPrevented())return null;if(s&&MO(s,i))return null;e.data[n.get()]&&o.get().each((function(t){e.data[n.get()].beforeBookmark=t}));var c=uh(t);if(c&&e.data.length>c){for(var l=0;l<e.data.length-1;l++)e.data[l]=e.data[l+1];e.data.length--,n.set(e.data.length)}i.bookmark=rd(t.selection),n.get()<e.data.length-1&&(e.data.length=n.get()+1),e.data.push(i),n.set(e.data.length-1);var f={level:i,lastLevel:s,originalEvent:a};return n.get()>0?(t.setDirty(!0),t.fire("AddUndo",f),t.fire("change",f)):t.fire("AddUndo",f),i},zO=function(t,e,n){e.data=[],n.set(0),e.typing=!1,t.fire("ClearUndos")},UO=function(t,e,n,r,o){if(e.transact(r)){var i=e.data[n.get()].bookmark,a=e.data[n.get()-1];IO(t,a,!0),e.transact(o)&&(e.data[n.get()-1].beforeBookmark=i)}},WO=function(t,e,n){var r;return e.get()<n.length-1&&(e.set(e.get()+1),r=n[e.get()],IO(t,r,!1),t.setDirty(!0),t.fire("Redo",{level:r})),r},qO=function(t,e,n,r){var o;return e.typing&&(e.add(),e.typing=!1,RO(e,!1,n)),r.get()>0&&(r.set(r.get()-1),o=e.data[r.get()],IO(t,o,!0),t.setDirty(!0),t.fire("Undo",{level:o})),o},GO=function(t){t.clear(),t.add()},YO=function(t,e,n){return n.get()>0||e.typing&&e.data[0]&&!MO(DO(t),e.data[0])},XO=function(t,e){return e.get()<t.data.length-1&&!t.typing},KO=function(t,e,n){return $O(t,e),t.beforeChange(),t.ignore(n),t.add()},ZO=function(t,e){try{t.set(t.get()+1),e()}finally{t.set(t.get()-1)}},JO=function(t){return t instanceof Ty},QO=function(t,e){rS(t.serializer.getNodeFilters(),t.serializer.getAttributeFilters(),e)},t_=function(t){return E.from(t.selection.getStart(!0)).map((function(t){return t.nodeName.toLowerCase()}))},e_=function(){return{type:"complete",fragments:[],content:"",bookmark:null,beforeBookmark:null}},n_=function(t){return{undoManager:{beforeChange:function(e,n){return VO(t,e,n)},addUndoLevel:function(e,n,r,o,i,a){return HO(t,e,n,r,o,i,a)},undo:function(e,n,r){return qO(t,e,n,r)},redo:function(e,n){return WO(t,e,n)},clear:function(e,n){return zO(t,e,n)},reset:function(t){return GO(t)},hasUndo:function(e,n){return YO(t,e,n)},hasRedo:function(t,e){return XO(t,e)},transact:function(t,e,n){return KO(t,e,n)},ignore:function(t,e){return ZO(t,e)},extra:function(e,n,r,o){return UO(t,e,n,r,o)}},formatter:{match:function(e,n,r){return xy(t,e,n,r)},matchAll:function(e,n){return wy(t,e,n)},matchNode:function(e,n,r,o){return yy(t,e,n,r,o)},canApply:function(e){return Sy(t,e)},closest:function(e){return Cy(t,e)},apply:function(e,n,r){return Ok(t,e,n,r)},remove:function(e,n,r,o){return pk(t,e,n,r,o)},toggle:function(e,n,r){return Bk(t,e,n,r)},formatChanged:function(e,n,r,o){return Ik(t,e,n,r,o)}},editor:{getContent:function(e,n){return Zy(t,e,n)},setContent:function(e,n){return lS(t,e,n)},insertContent:function(e,n){return tS(t,e,n)},addVisual:function(e){return fS(t,e)}},selection:{getContent:function(e,n){return hO(t,e,n)}},raw:{getModel:function(){return E.none()}}}},r_=function(t,e){var n=function(t){return N(t)?t:{}},r=x("Unimplemented feature for rtc"),o=h;return{undoManager:{beforeChange:o,addUndoLevel:r,undo:function(){return e.undo(),e_()},redo:function(){return e.redo(),e_()},clear:r,reset:r,hasUndo:function(){return e.hasUndo()},hasRedo:function(){return e.hasRedo()},transact:function(t,n,r){return e.transact(r),e_()},ignore:r,extra:r},formatter:{match:function(t,r,o){return e.matchFormat(t,n(r))},matchAll:r,matchNode:r,canApply:function(t){return e.canApplyFormat(t)},closest:function(t){return e.closestFormat(t)},apply:function(t,r,o){return e.applyFormat(t,n(r))},remove:function(t,r,o,i){return e.removeFormat(t,n(r))},toggle:function(t,r,o){return e.toggleFormat(t,n(r))},formatChanged:function(t,n,r,o){return e.formatChanged(n,r,o)}},editor:{getContent:function(n,r){if("html"===r||"tree"===r){var o=e.getContent(),i=By({inner:!0});return QO(t,o),"tree"===r?o:i.serialize(o)}return n_(t).editor.getContent(n,r)},setContent:function(n,r){var o=JO(n)?n:t.parser.parse(n,{isRootContent:!0,insert:!0});return e.setContent(o),n},insertContent:function(n,r){var o=t_(t).fold((function(){return{}}),(function(t){return{context:t}})),i=JO(n)?n:t.parser.parse(n,Ht(Ht({},o),{insert:!0}));e.insertContent(i)},addVisual:function(t){}},selection:{getContent:function(n,r){if("html"===n||"tree"===n){var o=e.getSelectedContent(),i=By({});return QO(t,o),"tree"===n?o:i.serialize(o)}return n_(t).selection.getContent(n,r)}},raw:{getModel:function(){return E.some(e.getRawModel())}}}},o_=function(t){return Dt(t.plugins,"rtc")},i_=function(t){var e=t;return Tt(t.plugins,"rtc").fold((function(){return e.rtcInstance=n_(t),E.none()}),(function(n){return E.some(n.setup().then((function(n){return e.rtcInstance=r_(t,n),n.isRemote})))}))},a_=function(t){return t.rtcInstance?t.rtcInstance:n_(t)},u_=function(t){var e=t.rtcInstance;if(e)return e;throw new Error("Failed to get RTC instance not yet initialized.")},s_=function(t,e,n){u_(t).undoManager.beforeChange(e,n)},c_=function(t,e,n,r,o,i,a){return u_(t).undoManager.addUndoLevel(e,n,r,o,i,a)},l_=function(t,e,n,r){return u_(t).undoManager.undo(e,n,r)},f_=function(t,e,n){return u_(t).undoManager.redo(e,n)},d_=function(t,e,n){u_(t).undoManager.clear(e,n)},h_=function(t,e){u_(t).undoManager.reset(e)},p_=function(t,e,n){return u_(t).undoManager.hasUndo(e,n)},m_=function(t,e,n){return u_(t).undoManager.hasRedo(e,n)},g_=function(t,e,n,r){return u_(t).undoManager.transact(e,n,r)},v_=function(t,e,n){u_(t).undoManager.ignore(e,n)},b_=function(t,e,n,r,o){u_(t).undoManager.extra(e,n,r,o)},y_=function(t,e,n,r){return u_(t).formatter.match(e,n,r)},x_=function(t,e,n){return u_(t).formatter.matchAll(e,n)},w_=function(t,e,n,r,o){return u_(t).formatter.matchNode(e,n,r,o)},C_=function(t,e){return u_(t).formatter.canApply(e)},S_=function(t,e){return u_(t).formatter.closest(e)},k_=function(t,e,n,r){u_(t).formatter.apply(e,n,r)},O_=function(t,e,n,r,o){u_(t).formatter.remove(e,n,r,o)},__=function(t,e,n,r){u_(t).formatter.toggle(e,n,r)},A_=function(t,e,n,r,o){return void 0===o&&(o=!1),u_(t).formatter.formatChanged(e,n,r,o)},E_=function(t,e,n){return a_(t).editor.getContent(e,n)},T_=function(t,e,n){return a_(t).editor.setContent(e,n)},D_=function(t,e,n){return a_(t).editor.insertContent(e,n)},I_=function(t,e,n){return u_(t).selection.getContent(e,n)},B_=function(t,e){return u_(t).editor.addVisual(e)},L_=function(t,e){void 0===e&&(e={});var n=e.format?e.format:"html";return I_(t,n,e)},N_=function(t){return 0===t.dom.length?(wr(t),E.none()):E.some(t)},P_=function(t,e){return t.filter((function(t){return Og.isBookmarkNode(t.dom)})).bind(e?Xn:Yn)},M_=function(t,e,n,r){var o=t.dom,i=e.dom,a=r?o.length:i.length;r?(cw(o,i,!1,!r),n.setStart(i,a)):(cw(i,o,!1,!r),n.setEnd(i,a))},j_=function(t,e){Wn(t).each((function(n){var r=t.dom;e&&Gx(n,Sf(r,0))?uw(r,0):!e&&Xx(n,Sf(r,r.length))&&sw(r,r.length)}))},R_=function(t,e,n,r){t.bind((function(t){var o=r?sw:uw;return o(t.dom,r?t.dom.length:0),e.filter(Rn).map((function(e){return M_(t,e,n,r)}))})).orThunk((function(){var t=P_(e,r).or(e).filter(Rn);return t.map((function(t){return j_(t,r)}))}))},$_=function(t,e){var n=E.from(e.firstChild).map(gn.fromDom),r=E.from(e.lastChild).map(gn.fromDom);t.deleteContents(),t.insertNode(e);var o=n.bind(Yn).filter(Rn).bind(N_),i=r.bind(Xn).filter(Rn).bind(N_);R_(o,n,t,!0),R_(i,r,t,!1),t.collapse(!1)},F_=function(t,e){return Ht(Ht({format:"html"},t),{set:!0,selection:!0,content:e})},V_=function(t,e){if("raw"!==e.format){var n=t.selection.getRng(),r=t.dom.getParent(n.commonAncestorContainer,t.dom.isBlock),o=r?{context:r.nodeName.toLowerCase()}:{},i=t.parser.parse(e.content,Ht(Ht({isRootContent:!0,forced_root_block:!1},o),e));return By({validate:t.validate},t.schema).serialize(i)}return e.content},H_=function(t,e,n){void 0===n&&(n={});var r=F_(n,e);if(r.no_events||(r=t.fire("BeforeSetContent",r),!r.isDefaultPrevented())){n.content=V_(t,r);var o=t.selection.getRng();$_(o,o.createContextualFragment(n.content)),t.selection.setRng(o),Hv(t,o),r.no_events||t.fire("SetContent",r)}else t.fire("SetContent",r)},z_=function(t,e,n){if(t&&t.hasOwnProperty(e)){var r=tt(t[e],(function(t){return t!==n}));0===r.length?delete t[e]:t[e]=r}};function U_(t,e){var n,r;return{selectorChangedWithUnbind:function(o,i){return n||(n={},r={},e.on("NodeChange",(function(e){var o=e.element,i=t.getParents(o,null,t.getRoot()),a={};ln.each(n,(function(e,n){ln.each(i,(function(o){if(t.is(o,n))return r[n]||(ln.each(e,(function(t){t(!0,{node:o,selector:n,parents:i})})),r[n]=e),a[n]=e,!1}))})),ln.each(r,(function(t,e){a[e]||(delete r[e],ln.each(t,(function(t){t(!1,{node:o,selector:e,parents:i})})))}))}))),n[o]||(n[o]=[]),n[o].push(i),{unbind:function(){z_(n,o,i),z_(r,o,i)}}}}}var W_=function(t){return!!t.select},q_=function(t){return!(!t||!t.ownerDocument)&&Bn(gn.fromDom(t.ownerDocument),gn.fromDom(t))},G_=function(t){return!!t&&(!!W_(t)||q_(t.startContainer)&&q_(t.endContainer))},Y_=function(t,e,n,r){var o,i,a=U_(t,r).selectorChangedWithUnbind,u=function(e,n){var o=t.createRng();e?(o.setStart(e,n),o.setEnd(e,n),y(o),g(!1)):(lg(t,o,r.getBody(),!0),y(o))},s=function(t){return L_(r,t)},c=function(t,e){return H_(r,t,e)},l=function(t){return oy(r.getBody(),b(),t)},f=function(t){return iy(r.getBody(),b(),t)},d=function(t,e){return B.getBookmark(t,e)},h=function(t){return B.moveToBookmark(t)},p=function(e,n){return cy(t,e,n).each(y),e},m=function(){var t=b(),e=v();return!(!t||t.item)&&(t.compareEndPoints?0===t.compareEndPoints("StartToEnd",t):!e||t.collapsed)},g=function(t){var e=b();e.collapse(!!t),y(e)},v=function(){return e.getSelection?e.getSelection():e.document.selection},b=function(){var n,a,u,s=function(t,e,n){try{return e.compareBoundaryPoints(t,n)}catch(r){return-1}};if(!e)return null;var c=e.document;if("undefined"===typeof c||null===c)return null;if(void 0!==r.bookmark&&!1===Jb(r)){var l=Ob(r);if(l.isSome())return l.map((function(t){return ly(r,[t])[0]})).getOr(c.createRange())}try{(n=v())&&!jr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange(),a=ly(r,[a])[0])}catch(f){}return a||(a=c.createRange?c.createRange():c.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(u=t.getRoot(),a.setStart(u,0),a.setEnd(u,0)),o&&i&&(0===s(a.START_TO_START,a,o)&&0===s(a.END_TO_END,a,o)?a=i:(o=null,i=null)),a},y=function(t,e){var n;if(G_(t)){var a=W_(t)?t:null;if(a){i=null;try{a.select()}catch(c){}}else{var u=v(),s=r.fire("SetSelectionRange",{range:t,forward:e});if(t=s.range,u){i=t;try{u.removeAllRanges(),u.addRange(t)}catch(c){}!1===e&&u.extend&&(u.collapse(t.endContainer,t.endOffset),u.extend(t.startContainer,t.startOffset)),o=u.rangeCount>0?u.getRangeAt(0):null}t.collapsed||t.startContainer!==t.endContainer||!u.setBaseAndExtent||Ke.ie||t.endOffset-t.startOffset<2&&t.startContainer.hasChildNodes()&&(n=t.startContainer.childNodes[t.startOffset],n&&"IMG"===n.tagName&&(u.setBaseAndExtent(t.startContainer,t.startOffset,t.endContainer,t.endOffset),u.anchorNode===t.startContainer&&u.focusNode===t.endContainer||u.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:t,forward:e})}}},x=function(e){return c(t.getOuterHTML(e)),e},w=function(){return uy(r.getBody(),b())},C=function(e,n){return sy(t,b(),e,n)},S=function(){var e=v(),n=null===e||void 0===e?void 0:e.anchorNode,r=null===e||void 0===e?void 0:e.focusNode;if(!e||!n||!r||jr(n)||jr(r))return!0;var o=t.createRng();o.setStart(n,e.anchorOffset),o.collapse(!0);var i=t.createRng();return i.setStart(r,e.focusOffset),i.collapse(!0),o.compareBoundaryPoints(o.START_TO_START,i)<=0},k=function(){var e=b(),n=v();if(!tg(n)&&fg(r)){var o=av(t,e);return o.each((function(t){y(t,S())})),o.getOr(e)}return e},O=function(t,e){return a(t,e),I},_=function(){var e,n=t.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){e=n;break}n=n.parentNode}return e},A=function(t,e){return Vv(r,t,e)},E=function(t,e){return y(Gg(t,e,r.getDoc()))},T=function(){var t=b();return t.collapsed?Sf.fromRangeStart(t).getClientRects()[0]:t.getBoundingClientRect()},D=function(){e=o=i=null,L.destroy()},I={bookmarkManager:null,controlSelection:null,dom:t,win:e,serializer:n,editor:r,collapse:g,setCursorLocation:u,getContent:s,setContent:c,getBookmark:d,moveToBookmark:h,select:p,isCollapsed:m,isForward:S,setNode:x,getNode:w,getSel:v,setRng:y,getRng:b,getStart:l,getEnd:f,getSelectedBlocks:C,normalize:k,selectorChanged:O,selectorChangedWithUnbind:a,getScrollContainer:_,scrollIntoView:A,placeCaretAt:E,getBoundingClientRect:T,destroy:D},B=Og(I),L=Hg(I,r);return I.bookmarkManager=B,I.controlSelection=L,I},X_=function(t,e){Z(e,(function(e){t.attr(e,null)}))},K_=function(t,e,n){t.addNodeFilter("font",(function(t){Z(t,(function(t){var r=e.parse(t.attr("style")),o=t.attr("color"),i=t.attr("face"),a=t.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),a&&(r["font-size"]=n[parseInt(t.attr("size"),10)-1]),t.name="span",t.attr("style",e.serialize(r)),X_(t,["color","face","size"])}))}))},Z_=function(t,e){t.addNodeFilter("strike",(function(t){Z(t,(function(t){var n=e.parse(t.attr("style"));n["text-decoration"]="line-through",t.name="span",t.attr("style",e.serialize(n))}))}))},J_=function(t,e){var n=Bu();e.convert_fonts_to_spans&&K_(t,n,ln.explode(e.font_size_legacy_values)),Z_(t,n)},Q_=function(t,e){e.inline_styles&&J_(t,e)},tA=function(t){return new ni((function(e,n){var r=function(){n("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")};try{var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="blob",o.onload=function(){200===this.status?e(this.response):r()},o.onerror=r,o.send()}catch(i){r()}}))},eA=function(t){var e,n=decodeURIComponent(t).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(e=r[1]),{type:e,data:n[1]}},nA=function(t,e){var n;try{n=atob(e)}catch(gF){return E.none()}for(var r=new Uint8Array(n.length),o=0;o<r.length;o++)r[o]=n.charCodeAt(o);return E.some(new Blob([r],{type:t}))},rA=function(t){return new ni((function(e){var n=eA(t),r=n.type,o=n.data;nA(r,o).fold((function(){return e(new Blob([]))}),e)}))},oA=function(t){return 0===t.indexOf("blob:")?tA(t):0===t.indexOf("data:")?rA(t):null},iA=function(t){return new ni((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)}))},aA=0,uA=function(t){return(t||"blobid")+aA++},sA=function(t,e,n,r){var o,i;if(0===e.src.indexOf("blob:"))return i=t.getByUri(e.src),void(i?n({image:e,blobInfo:i}):oA(e.src).then((function(r){iA(r).then((function(a){o=eA(a).data,i=t.create(uA(),r,o),t.add(i),n({image:e,blobInfo:i})}))}),(function(t){r(t)})));var a=eA(e.src),u=a.data,s=a.type;o=u,i=t.getByData(o,s),i?n({image:e,blobInfo:i}):oA(e.src).then((function(r){i=t.create(uA(),r,o),t.add(i),n({image:e,blobInfo:i})}),(function(t){r(t)}))},cA=function(t){return t?gt(t.getElementsByTagName("img")):[]};function lA(t,e){var n={},r=function(r,o){o||(o=S);var i=tt(cA(r),(function(e){var n=e.src;return!!Ke.fileApi&&(!e.hasAttribute("data-mce-bogus")&&(!e.hasAttribute("data-mce-placeholder")&&(!(!n||n===Ke.transparentSrc)&&(0===n.indexOf("blob:")?!t.isUploaded(n)&&o(e):0===n.indexOf("data:")&&o(e)))))})),a=K(i,(function(t){if(void 0!==n[t.src])return new ni((function(e){n[t.src].then((function(n){if("string"===typeof n)return n;e({image:t,blobInfo:n.blobInfo})}))}));var r=new ni((function(n,r){sA(e,t,n,r)})).then((function(t){return delete n[t.image.src],t})).catch((function(e){return delete n[t.src],e}));return n[t.src]=r,r}));return ni.all(a)};return{findAll:r}}var fA=function(t,e,n,r){var o=t.padd_empty_with_br||e.insert;o&&n[r.name]?r.empty().append(new Ty("br",1)).shortEnded=!0:r.empty().append(new Ty("#text",3)).value=Mi},dA=function(t){return hA(t,"#text")&&t.firstChild.value===Mi},hA=function(t,e){return t&&t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.name===e},pA=function(t,e){var n=t.getElementRule(e.name);return n&&n.paddEmpty},mA=function(t,e,n,r){return r.isEmpty(e,n,(function(e){return pA(t,e)}))},gA=function(t,e){return t&&(e[t.name]||"br"===t.name)},vA=function(t){return t.attr("data-mce-bogus")},bA=function(t){return t.attr("src")===Ke.transparentSrc||t.attr("data-mce-placeholder")},yA=function(t,e){if(e.images_dataimg_filter){var n=new Image;return n.src=t.attr("src"),xt(t.attributes.map,(function(t,e){n.setAttribute(e,t)})),e.images_dataimg_filter(n)}return!0},xA=function(t,e){var n=e.blob_cache,r=function(t){var r=t.attr("src");bA(t)||vA(t)||Py(r).filter((function(){return yA(t,e)})).bind((function(t){var e=t.type,r=t.data;return E.from(n.getByData(r,e)).orThunk((function(){return nA(e,r).map((function(t){var e=n.create(uA(),t,r);return n.add(e),e}))}))})).each((function(e){t.attr("src",e.blobUri())}))};n&&t.addAttributeFilter("src",(function(t){return Z(t,r)}))},wA=function(t,e){var n=t.schema;e.remove_trailing_brs&&t.addNodeFilter("br",(function(t,r,o){var i,a,u,s,c,l,f,d,h=t.length,p=ln.extend({},n.getBlockElements()),m=n.getNonEmptyElements(),g=n.getWhiteSpaceElements();for(p.body=1,i=0;i<h;i++)if(a=t[i],u=a.parent,p[a.parent.name]&&a===u.lastChild){c=a.prev;while(c){if(l=c.name,"span"!==l||"bookmark"!==c.attr("data-mce-type")){"br"===l&&(a=null);break}c=c.prev}a&&(a.remove(),mA(n,m,g,u)&&(f=n.getElementRule(u.name),f&&(f.removeEmpty?u.remove():f.paddEmpty&&fA(e,o,p,u))))}else{s=a;while(u&&u.firstChild===s&&u.lastChild===s){if(s=u,p[u.name])break;u=u.parent}s===u&&!0!==e.padd_empty_with_br&&(d=new Ty("#text",3),d.value=Mi,a.replace(d))}})),t.addAttributeFilter("href",(function(t){var n=t.length,r=function(t){var e=t.split(" ").filter((function(t){return t.length>0}));return e.concat(["noopener"]).sort().join(" ")},o=function(t){var e=t?ln.trim(t):"";return/\b(noopener)\b/g.test(e)?e:r(e)};if(!e.allow_unsafe_link_target)while(n--){var i=t[n];"a"===i.name&&"_blank"===i.attr("target")&&i.attr("rel",o(i.attr("rel")))}})),e.allow_html_in_named_anchor||t.addAttributeFilter("id,name",(function(t){var e,n,r,o,i=t.length;while(i--)if(o=t[i],"a"===o.name&&o.firstChild&&!o.attr("href")){r=o.parent,e=o.lastChild;do{n=e.prev,r.insert(e,o),e=n}while(e)}})),e.fix_list_elements&&t.addNodeFilter("ul,ol",(function(t){var e,n,r=t.length;while(r--)if(e=t[r],n=e.parent,"ul"===n.name||"ol"===n.name)if(e.prev&&"li"===e.prev.name)e.prev.append(e);else{var o=new Ty("li",1);o.attr("style","list-style-type: none"),e.wrap(o)}})),e.validate&&n.getValidClasses()&&t.addAttributeFilter("class",(function(t){var e,r,o,i,a,u,s,c=t.length,l=n.getValidClasses();while(c--){for(e=t[c],r=e.attr("class").split(" "),a="",o=0;o<r.length;o++)i=r[o],s=!1,u=l["*"],u&&u[i]&&(s=!0),u=l[e.name],!s&&u&&u[i]&&(s=!0),s&&(a&&(a+=" "),a+=i);a.length||(a=null),e.attr("class",a)}})),xA(t,e)},CA=ln.makeMap,SA=ln.each,kA=ln.explode,OA=ln.extend,_A=function(t,e){void 0===e&&(e=du());var n={},r=[],o={},i={};t=t||{},t.validate=!("validate"in t)||t.validate,t.root_name=t.root_name||"body";var a=function(t){var n,r,o,i,a,s,c,l,f,d,h,p=CA("tr,td,th,tbody,thead,tfoot,table"),m=e.getNonEmptyElements(),g=e.getWhiteSpaceElements(),v=e.getTextBlockElements(),b=e.getSpecialElements();for(n=0;n<t.length;n++)if(r=t[n],r.parent&&!r.fixed)if(v[r.name]&&"li"===r.parent.name){d=r.next;while(d){if(!v[d.name])break;d.name="li",d.fixed=!0,r.parent.insert(d,r.parent),d=d.next}r.unwrap(r)}else{for(i=[r],o=r.parent;o&&!e.isValidChild(o.name,r.name)&&!p[o.name];o=o.parent)i.push(o);if(o&&i.length>1){for(i.reverse(),a=s=u(i[0].clone()),f=0;f<i.length-1;f++){for(e.isValidChild(s.name,i[f].name)?(c=u(i[f].clone()),s.append(c)):c=s,l=i[f].firstChild;l&&l!==i[f+1];)h=l.next,c.append(l),l=h;s=c}mA(e,m,g,a)?o.insert(r,i[0],!0):(o.insert(a,i[0],!0),o.insert(r,a)),o=i[0],(mA(e,m,g,o)||hA(o,"br"))&&o.empty().remove()}else if(r.parent){if("li"===r.name){if(d=r.prev,d&&("ul"===d.name||"ol"===d.name)){d.append(r);continue}if(d=r.next,d&&("ul"===d.name||"ol"===d.name)){d.insert(r,d.firstChild,!0);continue}r.wrap(u(new Ty("ul",1)));continue}e.isValidChild(r.parent.name,"div")&&e.isValidChild("div",r.name)?r.wrap(u(new Ty("div",1))):b[r.name]?r.empty().remove():r.unwrap()}}},u=function(t){var e,a,u;a=t.name,a in n&&(u=o[a],u?u.push(t):o[a]=[t]),e=r.length;while(e--)a=r[e].name,a in t.attributes.map&&(u=i[a],u?u.push(t):i[a]=[t]);return t},s=function(t,e){SA(kA(t),(function(t){var r=n[t];r||(n[t]=r=[]),r.push(e)}))},c=function(){var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push({name:e,callbacks:n[e]});return t},l=function(t,e){SA(kA(t),(function(t){var n;for(n=0;n<r.length;n++)if(r[n].name===t)return void r[n].callbacks.push(e);r.push({name:t,callbacks:[e]})}))},f=function(){return[].concat(r)},d=function(u,s){var c,l,f,d,h,p,m,g,v,b=[],y=function(t){return!1===t?"":!0===t?"p":t};s=s||{},o={},i={};var x=OA(CA("script,style,head,html,body,title,meta,param"),e.getBlockElements()),w=e.getNonEmptyElements(),C=e.children,S=t.validate,k="forced_root_block"in s?s.forced_root_block:t.forced_root_block,O=y(k),_=e.getWhiteSpaceElements(),A=/^[ \t\r\n]+/,E=/[ \t\r\n]+$/,T=/[ \t\r\n]+/g,D=/^[ \t\r\n]+$/;g=_.hasOwnProperty(s.context)||_.hasOwnProperty(t.root_name);var I=function(){var n,r,o=M.firstChild,i=function(t){t&&(o=t.firstChild,o&&3===o.type&&(o.value=o.value.replace(A,"")),o=t.lastChild,o&&3===o.type&&(o.value=o.value.replace(E,"")))};if(e.isValidChild(M.name,O.toLowerCase())){while(o)n=o.next,3===o.type||1===o.type&&"p"!==o.name&&!x[o.name]&&!o.attr("data-mce-type")?(r||(r=B(O,1),r.attr(t.forced_root_block_attrs),M.insert(r,o)),r.append(o)):(i(r),r=null),o=n;i(r)}},B=function(t,e){var r,i=new Ty(t,e);return t in n&&(r=o[t],r?r.push(i):o[t]=[i]),i},L=function(t){var n,r,o,i,a=e.getBlockElements();for(n=t.prev;n&&3===n.type;){if(o=n.value.replace(E,""),o.length>0)return void(n.value=o);if(r=n.next,r){if(3===r.type&&r.value.length){n=n.prev;continue}if(!a[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}i=n.prev,n.remove(),n=i}},N=function(t){var e,n={};for(e in t)"li"!==e&&"p"!==e&&(n[e]=t[e]);return n},P=Wy({validate:S,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_script_urls:t.allow_script_urls,allow_conditional_comments:t.allow_conditional_comments,preserve_cdata:t.preserve_cdata,self_closing_elements:N(e.getSelfClosingElements()),cdata:function(t){v.append(B("#cdata",4)).value=t},text:function(t,e){var n;g||(t=t.replace(T," "),gA(v.lastChild,x)&&(t=t.replace(A,""))),0!==t.length&&(n=B("#text",3),n.raw=!!e,v.append(n).value=t)},comment:function(t){v.append(B("#comment",8)).value=t},pi:function(t,e){v.append(B(t,7)).value=e,L(v)},doctype:function(t){var e=v.append(B("#doctype",10));e.value=t,L(v)},start:function(t,n,o){var a,u,s,c,l=S?e.getElementRule(t):{};if(l){a=B(l.outputName||t,1),a.attributes=n,a.shortEnded=o,v.append(a),c=C[v.name],c&&C[a.name]&&!c[a.name]&&b.push(a),u=r.length;while(u--)s=r[u].name,s in n.map&&(p=i[s],p?p.push(a):i[s]=[a]);x[t]&&L(a),o||(v=a),!g&&_[t]&&(g=!0)}},end:function(n){var r,o,i,a,u=S?e.getElementRule(n):{};if(u){if(x[n]&&!g){if(r=v.firstChild,r&&3===r.type)if(o=r.value.replace(A,""),o.length>0)r.value=o,r=r.next;else{i=r.next,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.next,(0===o.length||D.test(o))&&(r.remove(),r=i),r=i}if(r=v.lastChild,r&&3===r.type)if(o=r.value.replace(E,""),o.length>0)r.value=o,r=r.prev;else{i=r.prev,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.prev,(0===o.length||D.test(o))&&(r.remove(),r=i),r=i}}if(g&&_[n]&&(g=!1),u.removeEmpty&&mA(e,w,_,v))return a=v.parent,x[v.name]?v.empty().remove():v.unwrap(),void(v=a);u.paddEmpty&&(dA(v)||mA(e,w,_,v))&&fA(t,s,x,v),v=v.parent}}},e),M=v=new Ty(s.context||t.root_name,11);if(P.parse(u,s.format),S&&b.length&&(s.context?s.invalid=!0:a(b)),O&&("body"===M.name||s.isRootContent)&&I(),!s.invalid){for(m in o)if(o.hasOwnProperty(m)){p=n[m],c=o[m],d=c.length;while(d--)c[d].parent||c.splice(d,1);for(l=0,f=p.length;l<f;l++)p[l](c,m,s)}for(l=0,f=r.length;l<f;l++)if(p=r[l],p.name in i){c=i[p.name],d=c.length;while(d--)c[d].parent||c.splice(d,1);for(d=0,h=p.callbacks.length;d<h;d++)p.callbacks[d](c,p.name,s)}}return M},h={schema:e,addAttributeFilter:l,getAttributeFilters:f,addNodeFilter:s,getNodeFilters:c,filterNode:u,parse:d};return wA(h,t),Q_(h,t),h},AA=function(t,e,n){t.addAttributeFilter("data-mce-tabindex",(function(t,e){var n,r=t.length;while(r--)n=t[r],n.attr("tabindex",n.attr("data-mce-tabindex")),n.attr(e,null)})),t.addAttributeFilter("src,href,style",(function(t,r){var o,i,a=t.length,u="data-mce-"+r,s=e.url_converter,c=e.url_converter_scope;while(a--)o=t[a],i=o.attr(u),void 0!==i?(o.attr(r,i.length>0?i:null),o.attr(u,null)):(i=o.attr(r),"style"===r?i=n.serializeStyle(n.parseStyle(i),o.name):s&&(i=s.call(c,i,r,o.name)),o.attr(r,i.length>0?i:null))})),t.addAttributeFilter("class",(function(t){var e,n,r=t.length;while(r--)e=t[r],n=e.attr("class"),n&&(n=e.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),e.attr("class",n.length>0?n:null))})),t.addAttributeFilter("data-mce-type",(function(t,e,n){var r,o=t.length;while(o--)if(r=t[o],"bookmark"===r.attr("data-mce-type")&&!n.cleanup){var i=E.from(r.firstChild).exists((function(t){return!Fi(t.value)}));i?r.unwrap():r.remove()}})),t.addNodeFilter("noscript",(function(t){var e,n=t.length;while(n--)e=t[n].firstChild,e&&(e.value=eu.decode(e.value))})),t.addNodeFilter("script,style",(function(t,n){var r,o,i,a=t.length,u=function(t){return t.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};while(a--)r=t[a],o=r.firstChild?r.firstChild.value:"","script"===n?(i=r.attr("type"),i&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===e.element_format&&o.length>0&&(r.firstChild.value="// <![CDATA[\n"+u(o)+"\n// ]]>")):"xhtml"===e.element_format&&o.length>0&&(r.firstChild.value="\x3c!--\n"+u(o)+"\n--\x3e")})),t.addNodeFilter("#comment",(function(t){var r,o=t.length;while(o--)r=t[o],e.preserve_cdata&&0===r.value.indexOf("[CDATA[")?(r.name="#cdata",r.type=4,r.value=n.decode(r.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===r.value.indexOf("mce:protected ")&&(r.name="#text",r.type=3,r.raw=!0,r.value=unescape(r.value).substr(14))})),t.addNodeFilter("xml:namespace,input",(function(t,e){var n,r=t.length;while(r--)n=t[r],7===n.type?n.remove():1===n.type&&("input"!==e||n.attr("type")||n.attr("type","text"))})),t.addAttributeFilter("data-mce-type",(function(e){Z(e,(function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(t.schema.getNonEmptyElements())?e.remove():e.unwrap())}))})),t.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(t,e){var n=t.length;while(n--)t[n].attr(e,null)}))},EA=function(t){var e=function(t){return t&&"br"===t.name},n=t.lastChild;if(e(n)){var r=n.prev;e(r)&&(n.remove(),r.remove())}},TA=function(t,e,n){var r,o,i=t.dom;e=e.cloneNode(!0);var a=document.implementation;return a.createHTMLDocument&&(r=a.createHTMLDocument(""),ln.each("BODY"===e.nodeName?e.childNodes:[e],(function(t){r.body.appendChild(r.importNode(t,!0))})),e="BODY"!==e.nodeName?r.body.firstChild:r.body,o=i.doc,i.doc=r),Eg(t,Ht(Ht({},n),{node:e})),o&&(i.doc=o),e},DA=function(t,e){return t&&t.hasEventListeners("PreProcess")&&!e.no_events},IA=function(t,e,n){return DA(t,n)?TA(t,e,n):e},BA=function(t,e,n){-1===ln.inArray(e,n)&&(t.addAttributeFilter(n,(function(t,e){var n=t.length;while(n--)t[n].attr(e,null)})),e.push(n))},LA=function(t,e,n){if(!e.no_events&&t){var r=Tg(t,Ht(Ht({},e),{content:n}));return r.content}return n},NA=function(t,e,n){var r=Vi(n.getInner?e.innerHTML:t.getOuterHTML(e));return n.selection||Li(gn.fromDom(e))?r:ln.trim(r)},PA=function(t,e,n){var r=n.selection?Ht({forced_root_block:!1},n):n,o=t.parse(e,r);return EA(o),o},MA=function(t,e,n){var r=By(t,e);return r.serialize(n)},jA=function(t,e,n,r,o){var i=MA(e,n,r);return LA(t,o,i)},RA=function(t,e){var n=["data-mce-selected"],r=e&&e.dom?e.dom:Tc.DOM,o=e&&e.schema?e.schema:du(t);t.entity_encoding=t.entity_encoding||"named",t.remove_trailing_brs=!("remove_trailing_brs"in t)||t.remove_trailing_brs;var i=_A(t,o);AA(i,t,r);var a=function(n,a){void 0===a&&(a={});var u=Ht({format:"html"},a),s=IA(e,n,u),c=NA(r,s,u),l=PA(i,c,u);return"tree"===u.format?l:jA(e,t,o,l,u)};return{schema:o,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:a,addRules:function(t){o.addValidElements(t)},setRules:function(t){o.setValidElements(t)},addTempAttr:b(BA,i,n),getTempAttrs:function(){return n},getNodeFilters:i.getNodeFilters,getAttributeFilters:i.getAttributeFilters}},$A=function(t,e){var n=RA(t,e);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},FA="html",VA=function(t,e){void 0===e&&(e={});var n=e.format?e.format:FA;return E_(t,e,n)},HA=function(t,e,n){return void 0===n&&(n={}),T_(t,e,n)},zA=Tc.DOM,UA=function(t){zA.setStyle(t.id,"display",t.orgDisplay)},WA=function(t){return E.from(t).each((function(t){return t.destroy()}))},qA=function(t){t.contentAreaContainer=t.formElement=t.container=t.editorContainer=null,t.bodyElement=t.contentDocument=t.contentWindow=null,t.iframeElement=t.targetElm=null,t.selection&&(t.selection=t.selection.win=t.selection.dom=t.selection.dom.doc=null)},GA=function(t){var e=t.formElement;e&&(e._mceOldSubmit&&(e.submit=e._mceOldSubmit,e._mceOldSubmit=null),zA.unbind(e,"submit reset",t.formEventDelegate))},YA=function(t){if(!t.removed){var e=t._selectionOverrides,n=t.editorUpload,r=t.getBody(),o=t.getElement();r&&t.save({is_removing:!0}),t.removed=!0,t.unbindAllNativeEvents(),t.hasHiddenInput&&o&&zA.remove(o.nextSibling),Dg(t),t.editorManager.remove(t),!t.inline&&r&&UA(t),Ig(t),zA.remove(t.getContainer()),WA(e),WA(n),t.destroy()}},XA=function(t,e){var n=t.selection,r=t.dom;t.destroyed||(e||t.removed?(e||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),WA(n),WA(r)),GA(t),qA(t),t.destroyed=!0):t.remove())},KA=Object.prototype.hasOwnProperty,ZA=function(t,e){var n=N(t)&&N(e);return n?QA(t,e):e},JA=function(t){return function(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<e.length;o++){var i=e[o];for(var a in i)KA.call(i,a)&&(r[a]=t(r[a],i[a]))}return r}},QA=JA(ZA),tE=function(t,e){return{sections:g(t),settings:g(e)}},eE=Ve().deviceType,nE=eE.isTouch(),rE=eE.isPhone(),oE=eE.isTablet(),iE=["lists","autolink","autosave"],aE={table_grid:!1,object_resizing:!1,resize:!1},uE=function(t){var e=P(t)?t.join(" "):t,n=K(L(e)?e.split(" "):[],ce);return tt(n,(function(t){return t.length>0}))},sE=function(t){return tt(t,b(Y,iE))},cE=function(t,e){var n=Ot(e,(function(e,n){return Y(t,n)}));return tE(n.t,n.f)},lE=function(t,e,n){void 0===n&&(n={});var r=t.sections(),o=r.hasOwnProperty(e)?r[e]:{};return ln.extend({},n,o)},fE=function(t,e){return t.sections().hasOwnProperty(e)},dE=function(t,e,n){var r=t.sections();return fE(t,e)&&r[e].theme===n},hE=function(t,e){return fE(t,e)?t.sections()[e]:{}},pE=function(t,e){return Tt(t,"toolbar_mode").orThunk((function(){return Tt(t,"toolbar_drawer").map((function(t){return!1===t?"wrap":t}))})).getOr(e)},mE=function(t,e,n,r,o){var i={id:e,theme:"silver",toolbar_mode:pE(t,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o};return Ht(Ht({},i),r?aE:{})},gE=function(t,e){var n={resize:!1,toolbar_mode:pE(t,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return Ht(Ht(Ht({},aE),n),e?r:{})},vE=function(t,e){var n=e.external_plugins?e.external_plugins:{};return t&&t.external_plugins?ln.extend({},t.external_plugins,n):n},bE=function(t,e){return[].concat(uE(t)).concat(uE(e))},yE=function(t,e,n,r){return t&&dE(e,"mobile","mobile")?sE(r):t&&fE(e,"mobile")?r:n},xE=function(t,e,n,r){var o=uE(n.forced_plugins),i=uE(r.plugins),a=hE(e,"mobile"),u=a.plugins?uE(a.plugins):i,s=yE(t,e,i,u),c=bE(o,s);if(Ke.browser.isIE()&&Y(c,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return ln.extend(r,{plugins:c.join(" ")})},wE=function(t,e){return t&&fE(e,"mobile")},CE=function(t,e,n,r,o){var i=t?{mobile:gE(o.mobile||{},e)}:{},a=cE(["mobile"],QA(i,o)),u=ln.extend(n,r,a.settings(),wE(t,a)?lE(a,"mobile"):{},{validate:!0,external_plugins:vE(r,a.settings())});return xE(t,a,r,u)},SE=function(t,e,n,r,o){var i=mE(o,e,n,nE,t);return CE(rE||oE,rE,i,r,o)},kE=function(t,e,n){return E.from(e.settings[n]).filter(t)},OE=function(t){var e={};return"string"===typeof t?Z(t.indexOf("=")>0?t.split(/[;,](?![^=;,]*(?:[;,]|$))/):t.split(","),(function(t){var n=t.split("=");n.length>1?e[ln.trim(n[0])]=ln.trim(n[1]):e[ln.trim(n[0])]=ln.trim(n[0])})):e=t,e},_E=function(t){return function(e){return P(e)&&st(e,t)}},AE=function(t,e,n,r){var o=e in t.settings?t.settings[e]:n;return"hash"===r?OE(o):"string"===r?kE(L,t,e).getOr(n):"number"===r?kE(H,t,e).getOr(n):"boolean"===r?kE(j,t,e).getOr(n):"object"===r?kE(N,t,e).getOr(n):"array"===r?kE(P,t,e).getOr(n):"string[]"===r?kE(_E(L),t,e).getOr(n):"function"===r?kE(V,t,e).getOr(n):o},EE=function(){var t={},e=function(e,n){t[e]=n},n=function(e){return t[e]?t[e]:{icons:{}}},r=function(e){return Dt(t,e)};return{add:e,get:n,has:r}},TE=EE(),DE=function(t,e){var n=e.dom;return n[t]},IE=function(t,e){return parseInt(go(e,t),10)},BE=b(DE,"clientWidth"),LE=b(DE,"clientHeight"),NE=b(IE,"margin-top"),PE=b(IE,"margin-left"),ME=function(t){return t.dom.getBoundingClientRect()},jE=function(t,e,n){var r=BE(t),o=LE(t);return e>=0&&n>=0&&e<=r&&n<=o},RE=function(t,e,n,r){var o=ME(e),i=t?o.left+e.dom.clientLeft+PE(e):0,a=t?o.top+e.dom.clientTop+NE(e):0,u=n-i,s=r-a;return{x:u,y:s}},$E=function(t,e,n){var r=gn.fromDom(t.getBody()),o=t.inline?r:zn(r),i=RE(t.inline,o,e,n);return jE(o,i.x,i.y)},FE=function(t){return E.from(t).map(gn.fromDom)},VE=function(t){var e=t.inline?t.getBody():t.getContentAreaContainer();return FE(e).map(Sr).getOr(!1)};function HE(){var t=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:t,close:t,reposition:t,getArgs:t}}function zE(t){var e=[],n=function(){var e=t.theme;return e&&e.getNotificationManagerImpl?e.getNotificationManagerImpl():HE()},r=function(){return E.from(e[0])},o=function(t,e){return t.type===e.type&&t.text===e.text&&!t.progressBar&&!t.timeout&&!e.progressBar&&!e.timeout},i=function(){e.length>0&&n().reposition(e)},a=function(t){e.push(t)},u=function(t){it(e,(function(e){return e===t})).each((function(t){e.splice(t,1)}))},s=function(s,c){if(void 0===c&&(c=!0),!t.removed&&VE(t))return c&&t.fire("BeforeOpenNotification",{notification:s}),ot(e,(function(t){return o(n().getArgs(t),s)})).getOrThunk((function(){t.editorManager.setActive(t);var e=n().open(s,(function(){u(e),i(),r().fold((function(){return t.focus()}),(function(t){return Uv(gn.fromDom(t.getEl()))}))}));return a(e),i(),t.fire("OpenNotification",Ht({},e)),e}))},c=function(){r().each((function(t){n().close(t),u(t),i()}))},l=function(){return e},f=function(t){t.on("SkinLoaded",(function(){var e=Wd(t);e&&s({text:e,type:"warning",timeout:0},!1)})),t.on("ResizeEditor ResizeWindow NodeChange",(function(){ci.requestAnimationFrame(i)})),t.on("remove",(function(){Z(e.slice(),(function(t){n().close(t)}))}))};return f(t),{open:s,close:c,getNotifications:l}}var UE=Qc.PluginManager,WE=Qc.ThemeManager;function qE(){var t=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:t,openUrl:t,alert:t,confirm:t,close:t,getParams:t,setParams:t}}var GE=function(t){var e=[],n=function(){var e=t.theme;return e&&e.getWindowManagerImpl?e.getWindowManagerImpl():qE()},r=function(t,e){return function(){return e?e.apply(t,arguments):void 0}},o=function(e){t.fire("OpenWindow",{dialog:e})},i=function(e){t.fire("CloseWindow",{dialog:e})},a=function(t){e.push(t),o(t)},u=function(n){i(n),e=tt(e,(function(t){return t!==n})),0===e.length&&t.focus()},s=function(){return E.from(e[e.length-1])},c=function(e){t.editorManager.setActive(t),Sb(t);var n=e();return a(n),n},l=function(t,e){return c((function(){return n().open(t,e,u)}))},f=function(t){return c((function(){return n().openUrl(t,u)}))},d=function(t,e,o){n().alert(t,r(o||this,e))},h=function(t,e,o){n().confirm(t,r(o||this,e))},p=function(){s().each((function(t){n().close(t),u(t)}))};return t.on("remove",(function(){Z(e,(function(t){n().close(t)}))})),{open:l,openUrl:f,alert:d,confirm:h,close:p}},YE=function(t,e){t.notificationManager.open({type:"error",text:e})},XE=function(t,e){t._skinLoaded?YE(t,e):t.on("SkinLoaded",(function(){YE(t,e)}))},KE=function(t,e){XE(t,Zc.translate(["Failed to upload image: {0}",e]))},ZE=function(t,e,n){$g(t,e,{message:n}),console.error(n)},JE=function(t,e,n){return n?"Failed to load "+t+": "+n+" from url "+e:"Failed to load "+t+" url: "+e},QE=function(t,e,n){ZE(t,"PluginLoadError",JE("plugin",e,n))},tT=function(t,e,n){ZE(t,"IconsLoadError",JE("icons",e,n))},eT=function(t,e,n){ZE(t,"LanguageLoadError",JE("language",e,n))},nT=function(t,e,n){var r=Zc.translate(["Failed to initialize plugin: {0}",e]);rT(r,n),XE(t,r)},rT=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,Ut([t],e)):r.log.apply(r,Ut([t],e)))},oT=function(t){return/^[a-z0-9\-]+$/i.test(t)},iT=function(t){var e=Rd(t),n=t.editorManager.baseURL+"/skins/content",r=t.editorManager.suffix,o="content"+r+".css",i=!0===t.inline;return K(e,(function(e){return oT(e)&&!i?n+"/"+e+"/"+o:t.documentBaseURI.toAbsolute(e)}))},aT=function(t){t.contentCSS=t.contentCSS.concat(iT(t))};function uT(t,e){var n={},r=function(t,e){return t?t.replace(/\/$/,"")+"/"+e.replace(/^\//,""):e},o=function(t,n,o,i){var a=new XMLHttpRequest;a.open("POST",e.url),a.withCredentials=e.credentials,a.upload.onprogress=function(t){i(t.loaded/t.total*100)},a.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)o("HTTP Error: "+a.status);else{var t=JSON.parse(a.responseText);t&&"string"===typeof t.location?n(r(e.basePath,t.location)):o("Invalid JSON: "+a.responseText)}};var u=new FormData;u.append("file",t.blob(),t.filename()),a.send(u)},i=function(){return new ni((function(t){t([])}))},a=function(t,e){return{url:e,blobInfo:t,status:!0}},u=function(t,e,n){return{url:"",blobInfo:t,status:!1,error:{message:e,options:n}}},s=function(t,e){ln.each(n[t],(function(t){t(e)})),delete n[t]},c=function(e,n,r){return t.markPending(e.blobUri()),new ni((function(o){var i,c,l=function(){};try{var f=function(){i&&(i.close(),c=l)},d=function(n){f(),t.markUploaded(e.blobUri(),n),s(e.blobUri(),a(e,n)),o(a(e,n))},h=function(n,r){var i=r||{};f(),t.removeFailed(e.blobUri()),s(e.blobUri(),u(e,n,i)),o(u(e,n,i))};c=function(t){t<0||t>100||(i||(i=r()),i.progressBar.value(t))},n(e,d,h,c)}catch(p){o(u(e,p.message,{}))}}))},l=function(t){return t===o},f=function(t){var e=t.blobUri();return new ni((function(t){n[e]=n[e]||[],n[e].push(t)}))},d=function(n,r){return n=ln.grep(n,(function(e){return!t.isUploaded(e.blobUri())})),ni.all(ln.map(n,(function(n){return t.isPending(n.blobUri())?f(n):c(n,e.handler,r)})))},h=function(t,n){return!e.url&&l(e.handler)?i():d(t,n)};return!1===V(e.handler)&&(e.handler=o),{upload:h}}function sT(){var t=1,e=2,n={},r=function(t,e){return{status:t,resultUri:e}},o=function(t){return t in n},i=function(t){var e=n[t];return e?e.resultUri:null},a=function(e){return!!o(e)&&n[e].status===t},u=function(t){return!!o(t)&&n[t].status===e},s=function(e){n[e]=r(t,null)},c=function(t,o){n[t]=r(e,o)},l=function(t){delete n[t]},f=function(){n={}};return{hasBlobUri:o,getResultUri:i,isPending:a,isUploaded:u,markPending:s,markUploaded:c,removeFailed:l,destroy:f}}var cT=0,lT=function(){var t=function(){return Math.round(4294967295*Math.random()).toString(36)},e=(new Date).getTime();return"s"+e.toString(36)+t()+t()+t()},fT=function(t){return t+cT+++lT()},dT=function(){var t=[],e=function(t){var e={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return e[t.toLowerCase()]||"dat"},n=function(t,e,n,o,i){if(L(t)){var a=t;return r({id:a,name:o,filename:i,blob:e,base64:n})}if(N(t))return r(t);throw new Error("Unknown input type")},r=function(t){if(!t.blob||!t.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=t.id||fT("blobid"),r=t.name||n,o=t.blob;return{id:g(n),name:g(r),filename:g(t.filename||r+"."+e(o.type)),blob:g(o),base64:g(t.base64),blobUri:g(t.blobUri||URL.createObjectURL(o)),uri:g(t.uri)}},o=function(e){a(e.id())||t.push(e)},i=function(e){return ot(t,e).getOrUndefined()},a=function(t){return i((function(e){return e.id()===t}))},u=function(t){return i((function(e){return e.blobUri()===t}))},s=function(t,e){return i((function(n){return n.base64()===t&&n.blob().type===e}))},c=function(e){t=tt(t,(function(t){return t.blobUri()!==e||(URL.revokeObjectURL(t.blobUri()),!1)}))},l=function(){Z(t,(function(t){URL.revokeObjectURL(t.blobUri())})),t=[]};return{create:n,add:o,get:a,getByUri:u,getByData:s,findFirst:i,removeByUri:c,destroy:l}},hT=function(t){var e=Rc(null);t.on("change AddUndo",(function(t){e.set(Ht({},t.level))}));var n=function(){var n=t.undoManager.data;mt(n).filter((function(t){return!MO(e.get(),t)})).each((function(e){t.setDirty(!0),t.fire("change",{level:e,lastLevel:ht(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},pT=function(t){var e,n,r=dT(),o=sT(),i=[],a=hT(t),u=function(e){return function(n){return t.selection?e(n):[]}},s=function(t){return t+(-1===t.indexOf("?")?"?":"&")+(new Date).getTime()},c=function(t,e,n){var r=0;do{r=t.indexOf(e,r),-1!==r&&(t=t.substring(0,r)+n+t.substr(r+e.length),r+=n.length-e.length+1)}while(-1!==r);return t},l=function(t,e,n){var r='src="'+n+'"'+(n===Ke.transparentSrc?' data-mce-placeholder="1"':"");return t=c(t,'src="'+e+'"',r),t=c(t,'data-mce-src="'+e+'"','data-mce-src="'+n+'"'),t},f=function(e,n){Z(t.undoManager.data,(function(t){"fragmented"===t.type?t.fragments=K(t.fragments,(function(t){return l(t,e,n)})):t.content=l(t.content,e,n)}))},d=function(){return t.notificationManager.open({text:t.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},h=function(e,n){var r=t.convertURL(n,"src");f(e.src,n),t.$(e).attr({src:kd(t)?s(n):n,"data-mce-src":r})},p=function(n){return e||(e=uT(o,{url:Ed(t),basePath:Td(t),credentials:Dd(t),handler:Id(t)})),b().then(u((function(o){var i=K(o,(function(t){return t.blobInfo}));return e.upload(i,d).then(u((function(e){var i=[],u=K(e,(function(e,n){var a=o[n].blobInfo,u=o[n].image;return e.status&&Od(t)?(r.removeByUri(u.src),h(u,e.url)):e.error&&(e.error.options.remove&&(f(u.getAttribute("src"),Ke.transparentSrc),i.push(u)),KE(t,e.error.message)),{element:u,status:e.status,uploadUri:e.url,blobInfo:a}}));return u.length>0&&a.fireIfChanged(),i.length>0&&(o_(t)?console.error("Removing images on failed uploads is currently unsupported for RTC"):t.undoManager.transact((function(){Z(i,(function(e){t.dom.remove(e),r.removeByUri(e.src)}))}))),n&&n(u),u})))})))},m=function(e){if(Sd(t))return p(e)},g=function(e){if(!1===st(i,(function(t){return t(e)})))return!1;if(0===e.getAttribute("src").indexOf("data:")){var n=Cd(t);return n(e)}return!0},v=function(t){i.push(t)},b=function(){return n||(n=lA(o,r)),n.findAll(t.getBody(),g).then(u((function(e){return e=tt(e,(function(e){return"string"!==typeof e||(XE(t,e),!1)})),Z(e,(function(t){f(t.image.src,t.blobInfo.blobUri()),t.image.src=t.blobInfo.blobUri(),t.image.removeAttribute("data-mce-src")})),e})))},y=function(){r.destroy(),o.destroy(),n=e=null},x=function(e){return e.replace(/src="(blob:[^"]+)"/g,(function(e,n){var i=o.getResultUri(n);if(i)return'src="'+i+'"';var a=r.getByUri(n);if(a||(a=nt(t.editorManager.get(),(function(t,e){return t||e.editorUpload&&e.editorUpload.blobCache.getByUri(n)}),null)),a){var u=a.blob();return'src="data:'+u.type+";base64,"+a.base64()+'"'}return e}))};return t.on("SetContent",(function(){Sd(t)?m():b()})),t.on("RawSaveContent",(function(t){t.content=x(t.content)})),t.on("GetContent",(function(t){t.source_view||"raw"===t.format||"tree"===t.format||(t.content=x(t.content))})),t.on("PostRender",(function(){t.parser.addNodeFilter("img",(function(t){Z(t,(function(t){var e=t.attr("src");if(!r.getByUri(e)){var n=o.getResultUri(e);n&&t.attr("src",n)}}))}))})),{blobCache:r,addFilter:v,uploadImages:p,uploadImagesAuto:m,scanForImages:b,destroy:y}},mT=function(t){var e={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(t,e,n){return Rr(t)&&t.hasAttribute("href")},onformat:function(e,n,r){ln.each(r,(function(n,r){t.setAttrib(e,r,n)}))}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return ln.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),(function(t){e[t]={block:t,remove:"all"}})),e};function gT(t){var e={},n=function(t){return t?e[t]:e},r=function(t){return Dt(e,t)},o=function(t,n){t&&("string"!==typeof t?ln.each(t,(function(t,e){o(e,t)})):(P(n)||(n=[n]),ln.each(n,(function(t){"undefined"===typeof t.deep&&(t.deep=!t.selector),"undefined"===typeof t.split&&(t.split=!t.selector||t.inline),"undefined"===typeof t.remove&&t.selector&&!t.inline&&(t.remove="none"),t.selector&&t.inline&&(t.mixed=!0,t.block_expand=!0),"string"===typeof t.classes&&(t.classes=t.classes.split(/\s+/))})),e[t]=n))},i=function(t){return t&&e[t]&&delete e[t],e};return o(mT(t.dom)),o(Xd(t)),{get:n,has:r,register:o,unregister:i}}var vT,bT=ln.each,yT=Tc.DOM,xT=function(t,e){var n,r,o,i=e&&e.schema||du({}),a=function(t,e){e.classes.length&&yT.addClass(t,e.classes.join(" ")),yT.setAttribs(t,e.attrs)},u=function(t){r="string"===typeof t?{name:t,classes:[],attrs:{}}:t;var e=yT.create(r.name);return a(e,r),e},s=function(t,e){var n="string"!==typeof t?t.nodeName.toLowerCase():t,r=i.getElementRule(n),o=r&&r.parentsRequired;return!(!o||!o.length)&&(e&&-1!==ln.inArray(o,e)?e:o[0])},c=function(t,e,n){var r,o,i=e.length>0&&e[0],a=i&&i.name,l=s(t,a);if(l)a===l?(o=e[0],e=e.slice(1)):o=l;else if(i)o=e[0],e=e.slice(1);else if(!n)return t;return o&&(r=u(o),r.appendChild(t)),n&&(r||(r=yT.create("div"),r.appendChild(t)),ln.each(n,(function(e){var n=u(e);r.insertBefore(n,t)}))),c(r,e,o&&o.siblings)};return t&&t.length?(r=t[0],n=u(r),o=yT.create("div"),o.appendChild(c(n,t.slice(1),r.siblings)),o):""},wT=function(t){var e,n={classes:[],attrs:{}};return t=n.selector=ln.trim(t),"*"!==t&&(e=t.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(t,e,r,o,i){switch(e){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==ln.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=e||"div",n},CT=function(t){return t&&"string"===typeof t?(t=t.split(/\s*,\s*/)[0],t=t.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),ln.map(t.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(t){var e=ln.map(t.split(/(?:~\+|~|\+)/),wT),n=e.pop();return e.length&&(n.siblings=e),n})).reverse()):[]},ST=function(t,e){var n,r,o,i="",a=Kd(t);if(""===a)return"";var u=function(t){return t.replace(/%(\w+)/g,"")};if("string"===typeof e){if(e=t.formatter.get(e),!e)return;e=e[0]}if("preview"in e){var s=Tt(e,"preview");if(s.is(!1))return"";a=s.getOr(a)}n=e.block||e.inline||"span";var c=CT(e.selector);c.length?(c[0].name||(c[0].name=n),n=e.selector,r=xT(c,t)):r=xT([n],t);var l=yT.select(n,r)[0]||r.firstChild;return bT(e.styles,(function(t,e){var n=u(t);n&&yT.setStyle(l,e,n)})),bT(e.attributes,(function(t,e){var n=u(t);n&&yT.setAttrib(l,e,n)})),bT(e.classes,(function(t){var e=u(t);yT.hasClass(l,e)||yT.addClass(l,e)})),t.fire("PreviewFormats"),yT.setStyles(r,{position:"absolute",left:-65535}),t.getBody().appendChild(r),o=yT.getStyle(t.getBody(),"fontSize",!0),o=/px$/.test(o)?parseInt(o,10):0,bT(a.split(" "),(function(e){var n=yT.getStyle(l,e,!0);if(("background-color"!==e||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=yT.getStyle(t.getBody(),e,!0),"#ffffff"!==yT.toHex(n).toLowerCase()))&&("color"!==e||"#000000"!==yT.toHex(n).toLowerCase())){if("font-size"===e&&/em|%$/.test(n)){if(0===o)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*o+"px"}"border"===e&&n&&(i+="padding:0 2px;"),i+=e+":"+n+";"}})),t.fire("AfterPreviewFormats"),yT.remove(r),i},kT=function(t){t.addShortcut("meta+b","","Bold"),t.addShortcut("meta+i","","Italic"),t.addShortcut("meta+u","","Underline");for(var e=1;e<=6;e++)t.addShortcut("access+"+e,"",["FormatBlock",!1,"h"+e]);t.addShortcut("access+7","",["FormatBlock",!1,"p"]),t.addShortcut("access+8","",["FormatBlock",!1,"div"]),t.addShortcut("access+9","",["FormatBlock",!1,"address"])},OT=function(t){var e=gT(t),n=Rc(null);return kT(t),DS(t),{get:e.get,has:e.has,register:e.register,unregister:e.unregister,apply:function(e,n,r){k_(t,e,n,r)},remove:function(e,n,r,o){O_(t,e,n,r,o)},toggle:function(e,n,r){__(t,e,n,r)},match:function(e,n,r){return y_(t,e,n,r)},closest:function(e){return S_(t,e)},matchAll:function(e,n){return x_(t,e,n)},matchNode:function(e,n,r,o){return w_(t,e,n,r,o)},canApply:function(e){return C_(t,e)},formatChanged:function(e,r,o){return A_(t,n,e,r,o)},getCssText:b(ST,t)}},_T=function(t,e,n){var r=Rc(!1),o=function(t){RO(e,!1,n),e.add({},t)};t.on("init",(function(){e.add()})),t.on("BeforeExecCommand",(function(t){var r=t.command.toLowerCase();"undo"!==r&&"redo"!==r&&"mcerepaint"!==r&&($O(e,n),e.beforeChange())})),t.on("ExecCommand",(function(t){var e=t.command.toLowerCase();"undo"!==e&&"redo"!==e&&"mcerepaint"!==e&&o(t)})),t.on("ObjectResizeStart cut",(function(){e.beforeChange()})),t.on("SaveContent ObjectResized blur",o),t.on("dragend",o),t.on("keyup",(function(n){var i=n.keyCode;n.isDefaultPrevented()||((i>=33&&i<=36||i>=37&&i<=40||45===i||n.ctrlKey)&&(o(),t.nodeChanged()),46!==i&&8!==i||t.nodeChanged(),r.get()&&e.typing&&!1===MO(DO(t),e.data[0])&&(!1===t.isDirty()&&(t.setDirty(!0),t.fire("change",{level:e.data[0],lastLevel:null})),t.fire("TypingUndo"),r.set(!1),t.nodeChanged()))})),t.on("keydown",(function(t){var i=t.keyCode;if(!t.isDefaultPrevented())if(i>=33&&i<=36||i>=37&&i<=40||45===i)e.typing&&o(t);else{var a=t.ctrlKey&&!t.altKey||t.metaKey;!(i<16||i>20)||224===i||91===i||e.typing||a||(e.beforeChange(),RO(e,!0,n),e.add({},t),r.set(!0))}})),t.on("mousedown",(function(t){e.typing&&o(t)}));var i=function(t){return"insertReplacementText"===t.inputType},a=function(t){return"insertText"===t.inputType&&null===t.data},u=function(t){return"insertFromPaste"===t.inputType||"insertFromDrop"===t.inputType};t.on("input",(function(t){t.inputType&&(i(t)||a(t)||u(t))&&o(t)})),t.on("AddUndo Undo Redo ClearUndos",(function(e){e.isDefaultPrevented()||t.nodeChanged()}))},AT=function(t){t.addShortcut("meta+z","","Undo"),t.addShortcut("meta+y,meta+shift+z","","Redo")},ET=function(t){var e=Rc(E.none()),n=Rc(0),r=Rc(0),o={data:[],typing:!1,beforeChange:function(){s_(t,n,e)},add:function(i,a){return c_(t,o,r,n,e,i,a)},undo:function(){return l_(t,o,n,r)},redo:function(){return f_(t,r,o.data)},clear:function(){d_(t,o,r)},reset:function(){h_(t,o)},hasUndo:function(){return p_(t,o,r)},hasRedo:function(){return m_(t,o,r)},transact:function(e){return g_(t,o,n,e)},ignore:function(e){v_(t,n,e)},extra:function(e,n){b_(t,o,r,e,n)}};return o_(t)||_T(t,o,n),AT(t),o},TT=[9,27,Fg.HOME,Fg.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Fg.DOWN,Fg.UP,Fg.LEFT,Fg.RIGHT].concat(Ke.browser.isFirefox()?[224]:[]),DT="data-mce-placeholder",IT=function(t){return"keydown"===t.type||"keyup"===t.type},BT=function(t){var e=t.keyCode;return e===Fg.BACKSPACE||e===Fg.DELETE},LT=function(t){if(IT(t)){var e=t.keyCode;return!BT(t)&&(Fg.metaKeyPressed(t)||t.altKey||e>=112&&e<=123||Y(TT,e))}return!1},NT=function(t){return IT(t)&&!(BT(t)||"keyup"===t.type&&229===t.keyCode)},PT=function(t,e,n){if(Ta(gn.fromDom(e),!1)){var r=""===n,o=e.firstElementChild;return!o||!t.getStyle(e.firstElementChild,"padding-left")&&!t.getStyle(e.firstElementChild,"padding-right")&&(r?!t.isBlock(o):n===o.nodeName.toLowerCase())}return!1},MT=function(t){var e=t.dom,n=pd(t),r=zd(t),o=function(i,a){if(!LT(i)){var u=t.getBody(),s=!NT(i)&&PT(e,u,n),c=""!==e.getAttrib(u,DT);(c!==s||a)&&(e.setAttrib(u,DT,s?r:null),e.setAttrib(u,"aria-placeholder",s?r:null),Rg(t,s),t.on(s?"keydown":"keyup",o),t.off(s?"keyup":"keydown",o))}};r&&t.on("init",(function(e){o(e,!0),t.on("change SetContent ExecCommand",o),t.on("paste",(function(e){return ci.setEditorTimeout(t,(function(){return o(e)}))}))}))},jT=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,RT=function(t){return jT.test(t)},$T=function(t,e){return On(gn.fromDom(e),Fd(t))},FT=function(t){return"rtl"===Tc.DOM.getStyle(t,"direction",!0)||RT(t.textContent)},VT=function(t,e,n){return tt(Tc.DOM.getParents(n.container(),"*",e),t)},HT=function(t,e,n){var r=VT(t,e,n);return E.from(r[r.length-1])},zT=function(t,e,n){var r=Zh(e,t),o=Zh(n,t);return r&&r===o},UT=function(t){return Xi(t)||Ki(t)},WT=function(t,e){if(!e)return e;var n=e.container(),r=e.offset();return t?Wi(n)?Yr(n.nextSibling)?Sf(n.nextSibling,0):Sf.after(n):Xi(e)?Sf(n,r+1):e:Wi(n)?Yr(n.previousSibling)?Sf(n.previousSibling,n.previousSibling.data.length):Sf.before(n):Ki(e)?Sf(n,r-1):e},qT=b(WT,!0),GT=b(WT,!1),YT=function(t){return function(e){return Tn(t,gn.fromDom(e.dom.parentNode))}},XT=function(t,e){return Bn(t,e)?Xo(e,(function(t){return Ei(t)||Di(t)}),YT(t)):E.none()},KT=function(t){var e=t.getBody(),n=e.firstChild&&t.dom.isBlock(e.firstChild)?e.firstChild:e;t.selection.setCursorLocation(n,0)},ZT=function(t){t.dom.isEmpty(t.getBody())&&(t.setContent(""),KT(t))},JT=function(t,e,n){return jl(Rp(n),$p(n),(function(r,o){var i=WT(!0,r),a=WT(!1,o),u=WT(!1,e);return t?Mp(n,u).exists((function(t){return t.isEqual(a)&&e.isEqual(i)})):jp(n,u).exists((function(t){return t.isEqual(i)&&e.isEqual(a)}))})).getOr(!0)},QT=function(t,e){return{block:t,position:e}},tD=function(t,e){return{from:t,to:e}},eD=function(t,e){var n=gn.fromDom(t),r=gn.fromDom(e.container());return XT(n,r).map((function(t){return QT(t,e)}))},nD=function(t){return!1===Tn(t.from.block,t.to.block)},rD=function(t){return Wn(t.from.block).bind((function(e){return Wn(t.to.block).filter((function(t){return Tn(e,t)}))})).isSome()},oD=function(t){return!1===eo(t.from.block.dom)&&!1===eo(t.to.block.dom)},iD=function(t,e,n){return Jr(n.position.getNode())&&!1===Ta(n.block)?Pp(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?Bp(e,t,r).bind((function(e){return eD(t,e)})):E.some(n)})).getOr(n):n},aD=function(t,e,n){var r=eD(t,Sf.fromRangeStart(n)),o=r.bind((function(n){return Bp(e,t,n.position).bind((function(n){return eD(t,n).map((function(n){return iD(t,e,n)}))}))}));return jl(r,o,tD).filter((function(t){return nD(t)&&rD(t)&&oD(t)}))},uD=function(t,e,n){return n.collapsed?aD(t,e,n):E.none()},sD=function(t){var e=Jn(t);return it(e,ki).fold((function(){return e}),(function(t){return e.slice(0,t)}))},cD=function(t){var e=sD(t);return Z(e,wr),e},lD=function(t,e){var n=Cx(e,t);return ot(n.reverse(),(function(t){return Ta(t)})).each(wr)},fD=function(t){return 0===tt(Kn(t),(function(t){return!Ta(t)})).length},dD=function(t,e,n,r){if(Ta(n))return vx(n),Rp(n.dom);fD(r)&&Ta(e)&&hr(r,gn.fromTag("br"));var o=jp(n.dom,Sf.before(r.dom));return Z(cD(e),(function(t){hr(r,t)})),lD(t,e),o},hD=function(t,e,n){if(Ta(n))return wr(n),Ta(e)&&vx(e),Rp(e.dom);var r=$p(n.dom);return Z(cD(e),(function(t){gr(n,t)})),lD(t,e),r},pD=function(t,e){var n=Cx(e,t);return E.from(n[n.length-1])},mD=function(t,e){return Bn(e,t)?pD(e,t):E.none()},gD=function(t,e){Pp(t,e.dom).map((function(t){return t.getNode()})).map(gn.fromDom).filter(Ai).each(wr)},vD=function(t,e,n){return gD(!0,e),gD(!1,n),mD(e,n).fold(b(hD,t,e,n),b(dD,t,e,n))},bD=function(t,e,n,r){return e?vD(t,r,n):vD(t,n,r)},yD=function(t,e){var n=gn.fromDom(t.getBody()),r=uD(n.dom,e,t.selection.getRng()).bind((function(t){return bD(n,e,t.from.block,t.to.block)}));return r.each((function(e){t.selection.setRng(e.toRange())})),r.isSome()},xD=function(t,e){var n=e.getRng();return jl(XT(t,gn.fromDom(n.startContainer)),XT(t,gn.fromDom(n.endContainer)),(function(r,o){return!1===Tn(r,o)&&(n.deleteContents(),bD(t,!0,r,o).each((function(t){e.setRng(t.toRange())})),!0)})).getOr(!1)},wD=function(t,e){var n=gn.fromDom(e),r=b(Tn,t);return Yo(n,Bi,r).isSome()},CD=function(t,e){return wD(t,e.startContainer)||wD(t,e.endContainer)},SD=function(t,e){var n=jp(t.dom,Sf.fromRangeStart(e)).isNone(),r=Mp(t.dom,Sf.fromRangeEnd(e)).isNone();return!CD(t,e)&&n&&r},kD=function(t){return t.setContent(""),t.selection.setCursorLocation(),!0},OD=function(t){var e=gn.fromDom(t.getBody()),n=t.selection.getRng();return SD(e,n)?kD(t):xD(e,t.selection)},_D=function(t,e){return!t.selection.isCollapsed()&&OD(t)},AD=to,ED=eo,TD=function(t,e,n,r,o){return E.from(e._selectionOverrides.showCaret(t,n,r,o))},DD=function(t){var e=t.ownerDocument.createRange();return e.selectNode(t),e},ID=function(t,e){var n=t.fire("BeforeObjectSelected",{target:e});return n.isDefaultPrevented()?E.none():E.some(DD(e))},BD=function(t,e,n){var r=ip(1,t.getBody(),e),o=Sf.fromRangeStart(r),i=o.getNode();if(Rh(i))return TD(1,t,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(Rh(a))return TD(1,t,a,!1,!1);var u=t.dom.getParent(o.getNode(),(function(t){return ED(t)||AD(t)}));return Rh(u)?TD(1,t,u,!1,n):E.none()},LD=function(t,e,n){return e.collapsed?BD(t,e,n).getOr(e):e},ND=function(t){return hx(t)||cx(t)},PD=function(t){return px(t)||lx(t)},MD=function(t,e){Yr(e)&&0===e.data.length&&t.remove(e)},jD=function(t,e,n,r,o,i){return TD(r,t,i.getNode(!o),o,!0).each((function(n){if(e.collapsed){var r=e.cloneRange();o?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else e.deleteContents();t.selection.setRng(n)})),MD(t.dom,n),!0},RD=function(t,e){var n=t.selection.getRng();if(!Yr(n.commonAncestorContainer))return!1;var r=e?Cf.Forwards:Cf.Backwards,o=kp(t.getBody()),i=b(lp,e?o.next:o.prev),a=e?ND:PD,u=up(r,t.getBody(),n),s=WT(e,i(u));if(!s||!fp(u,s))return!1;if(a(s))return jD(t,n,u.getNode(),r,e,s);var c=i(s);return!!(c&&a(c)&&fp(s,c))&&jD(t,n,u.getNode(),r,e,c)},$D=function(t,e){return RD(t,e)},FD=function(t){return Bi(gn.fromDom(t))||Di(gn.fromDom(t))},VD=Uo.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),HD=function(t,e){var n=e.getNode(!1===t),r=t?"after":"before";return Rr(n)&&n.getAttribute("data-mce-caret")===r},zD=function(t,e,n,r){var o=function(e){return _i(gn.fromDom(e))&&!Jh(n,r,t)};return ap(!e,n).fold((function(){return ap(e,r).fold(C,o)}),o)},UD=function(t,e,n,r){var o=r.getNode(!1===e);return XT(gn.fromDom(t),gn.fromDom(n.getNode())).map((function(t){return Ta(t)?VD.remove(t.dom):VD.moveToElement(o)})).orThunk((function(){return E.some(VD.moveToElement(o))}))},WD=function(t,e,n){return Bp(e,t,n).bind((function(r){return FD(r.getNode())||zD(t,e,n,r)?E.none():e&&eo(r.getNode())||!1===e&&eo(r.getNode(!0))?UD(t,e,n,r):e&&px(n)||!1===e&&hx(n)?E.some(VD.moveToPosition(r)):E.none()}))},qD=function(t,e){return t&&eo(e.nextSibling)?E.some(VD.moveToElement(e.nextSibling)):!1===t&&eo(e.previousSibling)?E.some(VD.moveToElement(e.previousSibling)):E.none()},GD=function(t,e,n){return n.fold((function(t){return E.some(VD.remove(t))}),(function(t){return E.some(VD.moveToElement(t))}),(function(n){return Jh(e,n,t)?E.none():E.some(VD.moveToPosition(n))}))},YD=function(t,e,n){return HD(e,n)?qD(e,n.getNode(!1===e)).fold((function(){return WD(t,e,n)}),E.some):WD(t,e,n).bind((function(e){return GD(t,n,e)}))},XD=function(t,e,n){var r=ip(e?1:-1,t,n),o=Sf.fromRangeStart(r),i=gn.fromDom(t);return!1===e&&px(o)?E.some(VD.remove(o.getNode(!0))):e&&hx(o)?E.some(VD.remove(o.getNode())):!1===e&&hx(o)&&Nx(i,o)?Px(i,o).map((function(t){return VD.remove(t.getNode())})):e&&px(o)&&Lx(i,o)?Mx(i,o).map((function(t){return VD.remove(t.getNode())})):YD(t,e,o)},KD=function(t,e){return function(n){return t._selectionOverrides.hideFakeCaret(),Ew(t,e,gn.fromDom(n)),!0}},ZD=function(t,e){return function(n){var r=e?Sf.before(n):Sf.after(n);return t.selection.setRng(r.toRange()),!0}},JD=function(t){return function(e){return t.selection.setRng(e.toRange()),!0}},QD=function(t,e){return E.from(_g(t.getBody(),e))},tI=function(t,e){var n=t.selection.getNode();return QD(t,n).filter(eo).fold((function(){return XD(t.getBody(),e,t.selection.getRng()).exists((function(n){return n.fold(KD(t,e),ZD(t,e),JD(t))}))}),S)},eI=function(t){Z(pl(t,".mce-offscreen-selection"),wr)},nI=function(t,e){var n=t.selection.getNode();if(eo(n)){var r=QD(t,n.parentNode).filter(eo);return r.fold((function(){return eI(gn.fromDom(t.getBody())),Ew(t,e,gn.fromDom(t.selection.getNode())),ZT(t),!0}),(function(){return!0}))}return!1},rI=function(t){var e=t.dom,n=t.selection,r=_g(t.getBody(),n.getNode());if(to(r)&&e.isBlock(r)&&e.isEmpty(r)){var o=e.create("br",{"data-mce-bogus":"1"});e.setHTML(r,""),r.appendChild(o),n.setRng(Sf.before(o).toRange())}return!0},oI=function(t,e){return t.selection.isCollapsed()?tI(t,e):nI(t,e)},iI=function(t,e){var n=Sf.fromRangeStart(t.selection.getRng());return Bp(e,t.getBody(),n).filter((function(t){return e?ux(t):sx(t)})).bind((function(t){return E.from(Qh(e?0:-1,t))})).exists((function(e){return t.selection.select(e),!0}))},aI=function(t,e){return!!t.selection.isCollapsed()&&iI(t,e)},uI=Yr,sI=function(t){return uI(t)&&t.data[0]===$i},cI=function(t){return uI(t)&&t.data[t.data.length-1]===$i},lI=function(t){return t.ownerDocument.createTextNode($i)},fI=function(t){if(uI(t.previousSibling))return cI(t.previousSibling)||t.previousSibling.appendData($i),t.previousSibling;if(uI(t))return sI(t)||t.insertData(0,$i),t;var e=lI(t);return t.parentNode.insertBefore(e,t),e},dI=function(t){if(uI(t.nextSibling))return sI(t.nextSibling)||t.nextSibling.insertData(0,$i),t.nextSibling;if(uI(t))return cI(t)||t.appendData($i),t;var e=lI(t);return t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e),e},hI=function(t,e){return t?fI(e):dI(e)},pI=b(hI,!0),mI=b(hI,!1),gI=function(t,e){return Yr(t.container())?hI(e,t.container()):hI(e,t.getNode())},vI=function(t,e){var n=e.get();return n&&t.container()===n&&Wi(n)},bI=function(t,e){return e.fold((function(e){Eh(t.get());var n=pI(e);return t.set(n),E.some(Sf(n,n.length-1))}),(function(e){return Rp(e).map((function(e){if(vI(e,t))return Sf(t.get(),1);Eh(t.get());var n=gI(e,!0);return t.set(n),Sf(n,1)}))}),(function(e){return $p(e).map((function(e){if(vI(e,t))return Sf(t.get(),t.get().length-1);Eh(t.get());var n=gI(e,!1);return t.set(n),Sf(n,n.length-1)}))}),(function(e){Eh(t.get());var n=mI(e);return t.set(n),E.some(Sf(n,1))}))},yI=function(t,e){for(var n=0;n<t.length;n++){var r=t[n].apply(null,e);if(r.isSome())return r}return E.none()},xI=Uo.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),wI=function(t,e){var n=Zh(e,t);return n||t},CI=function(t,e,n){var r=qT(n),o=wI(e,r.container());return HT(t,o,r).fold((function(){return Mp(o,r).bind(b(HT,t,o)).map((function(t){return xI.before(t)}))}),E.none)},SI=function(t,e){return null===Hp(t,e)},kI=function(t,e,n){return HT(t,e,n).filter(b(SI,e))},OI=function(t,e,n){var r=GT(n);return kI(t,e,r).bind((function(t){var e=jp(t,r);return e.isNone()?E.some(xI.start(t)):E.none()}))},_I=function(t,e,n){var r=qT(n);return kI(t,e,r).bind((function(t){var e=Mp(t,r);return e.isNone()?E.some(xI.end(t)):E.none()}))},AI=function(t,e,n){var r=GT(n),o=wI(e,r.container());return HT(t,o,r).fold((function(){return jp(o,r).bind(b(HT,t,o)).map((function(t){return xI.after(t)}))}),E.none)},EI=function(t){return!1===FT(DI(t))},TI=function(t,e,n){var r=yI([CI,OI,_I,AI],[t,e,n]);return r.filter(EI)},DI=function(t){return t.fold(v,v,v,v)},II=function(t){return t.fold(g("before"),g("start"),g("end"),g("after"))},BI=function(t){return t.fold(xI.before,xI.before,xI.after,xI.after)},LI=function(t){return t.fold(xI.start,xI.start,xI.end,xI.end)},NI=function(t,e){return II(t)===II(e)&&DI(t)===DI(e)},PI=function(t,e,n,r,o,i){return jl(HT(e,n,r),HT(e,n,o),(function(e,r){return e!==r&&zT(n,e,r)?xI.after(t?e:r):i})).getOr(i)},MI=function(t,e){return t.fold(S,(function(t){return!NI(t,e)}))},jI=function(t,e,n,r,o){var i=WT(t,o),a=Bp(t,n,i).map(b(WT,t)),u=a.fold((function(){return r.map(BI)}),(function(o){return TI(e,n,o).map(b(PI,t,e,n,i,o)).filter(b(MI,r))}));return u.filter(EI)},RI=function(t,e){return t?e.fold(p(E.some,xI.start),E.none,p(E.some,xI.after),E.none):e.fold(E.none,p(E.some,xI.before),E.none,p(E.some,xI.end))},$I=function(t,e,n,r){var o=WT(t,r),i=TI(e,n,o);return TI(e,n,o).bind(b(RI,t)).orThunk((function(){return jI(t,e,n,i,r)}))},FI=(b($I,!1),b($I,!0),function(t){return V(t.selection.getSel().modify)}),VI=function(t,e,n){var r=t?1:-1;return e.setRng(Sf(n.container(),n.offset()+r).toRange()),e.getSel().modify("move",t?"forward":"backward","word"),!0},HI=function(t,e){var n=e.selection.getRng(),r=t?Sf.fromRangeEnd(n):Sf.fromRangeStart(n);return!!FI(e)&&(t&&Xi(r)?VI(!0,e.selection,r):!(t||!Ki(r))&&VI(!1,e.selection,r))},zI=function(t,e){var n=t.dom.createRng();n.setStart(e.container(),e.offset()),n.setEnd(e.container(),e.offset()),t.selection.setRng(n)},UI=function(t,e){t?e.setAttribute("data-mce-selected","inline-boundary"):e.removeAttribute("data-mce-selected")},WI=function(t,e,n){return bI(e,n).map((function(e){return zI(t,e),n}))},qI=function(t,e,n){var r=t.getBody(),o=Sf.fromRangeStart(t.selection.getRng()),i=b($T,t),a=$I(n,i,r,o);return a.bind((function(n){return WI(t,e,n)}))},GI=function(t,e,n){var r=K(pl(gn.fromDom(e.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(t){return t.dom})),o=tt(r,t),i=tt(n,t);Z(lt(o,i),b(UI,!1)),Z(lt(i,o),b(UI,!0))},YI=function(t,e){if(t.selection.isCollapsed()&&!0!==t.composing&&e.get()){var n=Sf.fromRangeStart(t.selection.getRng());Sf.isTextPosition(n)&&!1===UT(n)&&(zI(t,Ah(e.get(),n)),e.set(null))}},XI=function(t,e,n,r){if(e.selection.isCollapsed()){var o=tt(r,t);Z(o,(function(r){var o=Sf.fromRangeStart(e.selection.getRng());TI(t,e.getBody(),o).bind((function(t){return WI(e,n,t)}))}))}},KI=function(t,e,n){return!!Yd(t)&&qI(t,e,n).isSome()},ZI=function(t,e,n){return!!Yd(e)&&HI(t,e)},JI=function(t){var e=Rc(null),n=b($T,t);return t.on("NodeChange",(function(r){!Yd(t)||Ke.browser.isIE()&&r.initial||(GI(n,t.dom,r.parents),YI(t,e),XI(n,t,e,r.parents))})),e},QI=b(ZI,!0),tB=b(ZI,!1),eB=function(t,e){var n=document.createRange();return n.setStart(t.container(),t.offset()),n.setEnd(e.container(),e.offset()),n},nB=function(t){return jl(Rp(t),$p(t),(function(e,n){var r=WT(!0,e),o=WT(!1,n);return Mp(t,r).forall((function(t){return t.isEqual(o)}))})).getOr(!0)},rB=function(t,e){return function(n){return bI(e,n).exists((function(e){return zI(t,e),!0}))}},oB=function(t,e,n,r){var o=t.getBody(),i=b($T,t);t.undoManager.ignore((function(){t.selection.setRng(eB(n,r)),t.execCommand("Delete"),TI(i,o,Sf.fromRangeStart(t.selection.getRng())).map(LI).map(rB(t,e))})),t.nodeChanged()},iB=function(t,e){var n=Zh(e,t);return n||t},aB=function(t,e,n,r){var o=iB(t.getBody(),r.container()),i=b($T,t),a=TI(i,o,r);return a.bind((function(t){return n?t.fold(g(E.some(LI(t))),E.none,g(E.some(BI(t))),E.none):t.fold(E.none,g(E.some(BI(t))),E.none,g(E.some(LI(t))))})).map(rB(t,e)).getOrThunk((function(){var u=Lp(n,o,r),s=u.bind((function(t){return TI(i,o,t)}));return jl(a,s,(function(){return HT(i,o,r).exists((function(e){return!!nB(e)&&(Ew(t,n,gn.fromDom(e)),!0)}))})).orThunk((function(){return s.bind((function(o){return u.map((function(o){return n?oB(t,e,r,o):oB(t,e,o,r),!0}))}))})).getOr(!1)}))},uB=function(t,e,n){if(t.selection.isCollapsed()&&Yd(t)){var r=Sf.fromRangeStart(t.selection.getRng());return aB(t,e,n,r)}return!1},sB=function(t,e){var n=Cx(e,t);return it(n,ki).fold(g(n),(function(t){return n.slice(0,t)}))},cB=function(t){return 1===Jn(t).length},lB=function(t,e,n,r){var o=b(BS,e),i=K(tt(r,o),(function(t){return t.dom}));if(0===i.length)Ew(e,t,n);else{var a=IS(n.dom,i);e.selection.setRng(a.toRange())}},fB=function(t,e){var n=gn.fromDom(t.getBody()),r=gn.fromDom(t.selection.getStart()),o=tt(sB(n,r),cB);return mt(o).exists((function(n){var r=Sf.fromRangeStart(t.selection.getRng());return!(!JT(e,r,n.dom)||LS(n))&&(lB(e,t,n,o),!0)}))},dB=function(t,e){return!!t.selection.isCollapsed()&&fB(t,e)},hB=function(t,e,n){return t._selectionOverrides.hideFakeCaret(),Ew(t,e,gn.fromDom(n)),!0},pB=function(t,e){var n=e?cx:lx,r=e?Cf.Forwards:Cf.Backwards,o=up(r,t.getBody(),t.selection.getRng());return n(o)?hB(t,e,o.getNode(!e)):E.from(WT(e,o)).filter((function(t){return n(t)&&fp(o,t)})).exists((function(n){return hB(t,e,n.getNode(!e))}))},mB=function(t,e){var n=t.selection.getNode();return!!ro(n)&&hB(t,e,n)},gB=function(t,e){return t.selection.isCollapsed()?pB(t,e):mB(t,e)},vB=function(t){return Xo(t,(function(t){return to(t.dom)||eo(t.dom)})).exists((function(t){return to(t.dom)}))},bB=function(t){var e=parseInt(t,10);return isNaN(e)?0:e},yB=function(t,e){var n=t||Oi(e)?"margin":"padding",r="rtl"===go(e,"direction")?"-right":"-left";return n+r},xB=function(t,e,n,r,o,i){var a=yB(n,gn.fromDom(i));if("outdent"===e){var u=Math.max(0,bB(i.style[a])-r);t.setStyle(i,a,u?u+o:"")}else{u=bB(i.style[a])+r+o;t.setStyle(i,a,u)}},wB=function(t,e){return st(e,(function(e){var n=yB(Md(t),e),r=bo(e,n).map(bB).getOr(0),o=t.dom.getContentEditable(e.dom);return"false"!==o&&r>0}))},CB=function(t){var e=OB(t);return!t.mode.isReadOnly()&&(e.length>1||wB(t,e))},SB=function(t){return Ti(t)||Di(t)},kB=function(t){return Wn(t).map(SB).getOr(!1)},OB=function(t){return tt(K(t.selection.getSelectedBlocks(),gn.fromDom),(function(t){return!SB(t)&&!kB(t)&&vB(t)}))},_B=function(t,e){var n=t.dom,r=t.selection,o=t.formatter,i=jd(t),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),s=Md(t),c=pd(t);t.queryCommandState("InsertUnorderedList")||t.queryCommandState("InsertOrderedList")||""!==c||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),Z(OB(t),(function(t){xB(n,e,s,u,a,t.dom)}))},AB=function(t,e){if(t.selection.isCollapsed()&&CB(t)){var n=t.dom,r=t.selection.getRng(),o=Sf.fromRangeStart(r),i=n.getParent(r.startContainer,n.isBlock);if(null!==i&&Ax(gn.fromDom(i),o))return _B(t,"outdent"),!0}return!1},EB=function(t,e){t.getDoc().execCommand(e,!1,null)},TB=function(t,e){AB(t)||oI(t,!1)||$D(t,!1)||uB(t,e,!1)||yD(t,!1)||vC(t)||aI(t,!1)||gB(t,!1)||_D(t)||dB(t,!1)||(EB(t,"Delete"),ZT(t))},DB=function(t,e){oI(t,!0)||$D(t,!0)||uB(t,e,!0)||yD(t,!0)||vC(t)||aI(t,!0)||gB(t,!0)||_D(t)||dB(t,!0)||EB(t,"ForwardDelete")},IB=function(t,e){t.addCommand("delete",(function(){TB(t,e)})),t.addCommand("forwardDelete",(function(){DB(t,e)}))},BB=5,LB=400,NB=function(t){return void 0===t.touches||1!==t.touches.length?E.none():E.some(t.touches[0])},PB=function(t,e){var n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y);return n>BB||r>BB},MB=function(t){var e=Rc(E.none()),n=Rc(!1),r=el((function(e){t.fire("longpress",Ht(Ht({},e),{type:"longpress"})),n.set(!0)}),LB);t.on("touchstart",(function(t){NB(t).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:t.target};r.throttle(t),n.set(!1),e.set(E.some(i))}))}),!0),t.on("touchmove",(function(o){r.cancel(),NB(o).each((function(r){e.get().each((function(o){PB(r,o)&&(e.set(E.none()),n.set(!1),t.fire("longpresscancel"))}))}))}),!0),t.on("touchend touchcancel",(function(o){r.cancel(),"touchcancel"!==o.type&&e.get().filter((function(t){return t.target.isEqualNode(o.target)})).each((function(){n.get()?o.preventDefault():t.fire("tap",Ht(Ht({},o),{type:"tap"}))}))}),!0)},jB=function(t,e){return t.hasOwnProperty(e.nodeName)},RB=function(t,e){return!!Yr(e)||!!Rr(e)&&(!jB(t,e)&&!cm(e))},$B=function(t,e,n){return X(wx(gn.fromDom(n),gn.fromDom(e)),(function(e){return jB(t,e.dom)}))},FB=function(t,e){if(Yr(e)){if(0===e.nodeValue.length)return!0;if(/^\s+$/.test(e.nodeValue)&&(!e.nextSibling||jB(t,e.nextSibling)))return!0}return!1},VB=function(t){var e,n,r,o=t.dom,i=t.selection,a=t.schema,u=a.getBlockElements(),s=i.getStart(),c=t.getBody(),l=pd(t);if(s&&Rr(s)&&l){var f=c.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&!$B(u,c,s)){var d=i.getRng(),h=d.startContainer,p=d.startOffset,m=d.endContainer,g=d.endOffset,v=Jb(t);s=c.firstChild;while(s)if(RB(u,s)){if(FB(u,s)){n=s,s=s.nextSibling,o.remove(n);continue}e||(e=o.create(l,md(t)),s.parentNode.insertBefore(e,s),r=!0),n=s,s=s.nextSibling,e.appendChild(n)}else e=null,s=s.nextSibling;r&&v&&(d.setStart(h,p),d.setEnd(m,g),i.setRng(d),t.nodeChanged())}}},HB=function(t){pd(t)&&t.on("NodeChange",b(VB,t))},zB=function(t){return Qo(gn.fromDom(t.getBody()),"*[data-mce-caret]").fold(g(null),(function(t){return t.dom}))},UB=function(t){t.selection.setRng(t.selection.getRng())},WB=function(t,e){e.hasAttribute("data-mce-caret")&&(na(e),UB(t),t.selection.scrollIntoView(e))},qB=function(t,e){var n=zB(t);if(n)return"compositionstart"===e.type?(e.preventDefault(),e.stopPropagation(),void WB(t,n)):void(Gi(n)&&(WB(t,n),t.undoManager.add()))},GB=function(t){t.on("keyup compositionstart",b(qB,t))};(function(t){t[t["Br"]=0]="Br",t[t["Block"]=1]="Block",t[t["Wrap"]=2]="Wrap",t[t["Eol"]=3]="Eol"})(vT||(vT={}));var YB,XB=function(t,e){return t===Cf.Backwards?ct(e):e},KB=function(t,e,n){return t===Cf.Forwards?e.next(n):e.prev(n)},ZB=function(t,e,n,r){return Jr(r.getNode(e===Cf.Forwards))?vT.Br:!1===Jh(n,r)?vT.Block:vT.Wrap},JB=function(t,e,n,r){var o,i=kp(n),a=r,u=[];while(a){if(o=KB(e,i,a),!o)break;if(Jr(o.getNode(!1)))return e===Cf.Forwards?{positions:XB(e,u).concat([o]),breakType:vT.Br,breakAt:E.some(o)}:{positions:XB(e,u),breakType:vT.Br,breakAt:E.some(o)};if(o.isVisible()){if(t(a,o)){var s=ZB(n,e,a,o);return{positions:XB(e,u),breakType:s,breakAt:E.some(o)}}u.push(o),a=o}else a=o}return{positions:XB(e,u),breakType:vT.Eol,breakAt:E.none()}},QB=function(t,e,n,r){return e(n,r).breakAt.map((function(r){var o=e(n,r).positions;return t===Cf.Backwards?o.concat(r):[r].concat(o)})).getOr([])},tL=function(t,e){return nt(t,(function(t,n){return t.fold((function(){return E.some(n)}),(function(r){return jl(pt(r.getClientRects()),pt(n.getClientRects()),(function(t,o){var i=Math.abs(e-t.left),a=Math.abs(e-o.left);return a<=i?n:r})).or(t)}))}),E.none())},eL=function(t,e){return pt(e.getClientRects()).bind((function(e){return tL(t,e.left)}))},nL=b(JB,wf.isAbove,-1),rL=b(JB,wf.isBelow,1),oL=function(t,e){return nL(t,e).breakAt.isNone()},iL=function(t,e){return rL(t,e).breakAt.isNone()},aL=b(QB,-1,nL),uL=b(QB,1,rL),sL=function(t){return Rp(t).map((function(e){return[e].concat(rL(t,e).positions)})).getOr([])},cL=function(t){return $p(t).map((function(e){return nL(t,e).positions.concat(e)})).getOr([])},lL=function(t){var e=function(e){return K(e,(function(e){return e=Vl(e),e.node=t,e}))};if(Rr(t))return e(t.getClientRects());if(Yr(t)){var n=t.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,t.data.length),e(n.getClientRects())}},fL=function(t){return ut(t,lL)};(function(t){t[t["Up"]=-1]="Up",t[t["Down"]=1]="Down"})(YB||(YB={}));var dL,hL,pL=function(t,e,n,r){while(r=Kh(r,t,ba,e))if(n(r))return},mL=function(t,e,n,r,o,i){var a=0,u=[],s=function(r){var i,s,l;for(l=fL([r]),-1===t&&(l=l.reverse()),i=0;i<l.length;i++)if(s=l[i],!n(s,c)){if(u.length>0&&e(s,Vt(u))&&a++,s.line=a,o(s))return!0;u.push(s)}},c=Vt(i.getClientRects());if(!c)return u;var l=i.getNode();return s(l),pL(t,r,s,l),u},gL=function(t,e){return e.line>t},vL=function(t,e){return e.line===t},bL=b(mL,YB.Up,Wl,ql),yL=b(mL,YB.Down,ql,Wl),xL=function(t,e,n,r){var o,i,a,u,s,c=kp(e),l=[],f=0,d=function(t){return Vt(t.getClientRects())};1===t?(o=c.next,i=ql,a=Wl,u=Sf.after(r)):(o=c.prev,i=Wl,a=ql,u=Sf.before(r));var h=d(u);do{if(u.isVisible()&&(s=d(u),!a(s,h))){if(l.length>0&&i(s,Vt(l))&&f++,s=Vl(s),s.position=u,s.line=f,n(s))return l;l.push(s)}}while(u=o(u));return l},wL=function(t){return function(e){return gL(t,e)}},CL=function(t){return function(e){return vL(t,e)}},SL=eo,kL=Kh,OL=function(t,e){return Math.abs(t.left-e)},_L=function(t,e){return Math.abs(t.right-e)},AL=function(t,e){return t>=e.left&&t<=e.right},EL=function(t,e){return t>=e.top&&t<=e.bottom},TL=function(t,e){return $t(t,(function(t,n){var r=Math.min(OL(t,e),_L(t,e)),o=Math.min(OL(n,e),_L(n,e));return AL(e,n)?n:AL(e,t)?t:o===r&&SL(n.node)||o<r?n:t}))},DL=function(t,e,n,r,o){var i=kL(r,t,ba,e,!o);do{if(!i||n(i))return}while(i=kL(i,t,ba,e))},IL=function(t,e,n){void 0===n&&(n=!0);var r=[],o=function(t,n){var o=tt(fL([n]),(function(n){return!t(n,e)}));return r=r.concat(o),0===o.length};return r.push(e),DL(YB.Up,t,b(o,Wl),e.node,n),DL(YB.Down,t,b(o,ql),e.node,n),r},BL=function(t){return tt(gt(t.getElementsByTagName("*")),$h)},LL=function(t,e){return{node:t.node,before:OL(t,e)<_L(t,e)}},NL=function(t,e,n){var r=fL(BL(t)),o=tt(r,b(EL,n)),i=TL(o,e);if(i){var a=!Wr(i.node)&&!ro(i.node);if(i=TL(IL(t,i,a),e),i&&$h(i.node))return LL(i,e)}return null},PL=function(t,e){t.selection.setRng(e),Hv(t,t.selection.getRng())},ML=function(t,e,n){return E.some(LD(t,e,n))},jL=function(t,e,n,r,o,i){var a=e===Cf.Forwards,u=kp(t.getBody()),s=b(lp,a?u.next:u.prev),c=a?r:o;if(!n.collapsed){var l=Yl(n);if(i(l))return TD(e,t,l,e===Cf.Backwards,!1)}var f=up(e,t.getBody(),n);if(c(f))return ID(t,f.getNode(!a));var d=WT(a,s(f)),h=ra(n);if(!d)return h?E.some(n):E.none();if(c(d))return TD(e,t,d.getNode(!a),a,!1);var p=s(d);return p&&c(p)&&fp(d,p)?TD(e,t,p.getNode(!a),a,!1):h?ML(t,d.toRange(),!1):E.none()},RL=function(t,e,n,r,o,i){var a=up(e,t.getBody(),n),u=Vt(a.getClientRects()),s=e===YB.Down;if(!u)return E.none();var c,l=s?yL:bL,f=l(t.getBody(),wL(1),a),d=tt(f,CL(1)),h=u.left,p=TL(d,h);if(p&&i(p.node)){var m=Math.abs(h-p.left),g=Math.abs(h-p.right);return TD(e,t,p.node,m<g,!1)}if(c=r(a)?a.getNode():o(a)?a.getNode(!0):Yl(n),c){var v=xL(e,t.getBody(),wL(1),c),b=TL(tt(v,CL(1)),h);if(b)return ML(t,b.position.toRange(),!1);if(b=Vt(tt(v,CL(0))),b)return ML(t,b.position.toRange(),!1)}return 0===d.length?$L(t,s).filter(s?o:r).map((function(e){return LD(t,e.toRange(),!1)})):E.none()},$L=function(t,e){var n=t.selection.getRng(),r=t.getBody();if(e){var o=Sf.fromRangeEnd(n),i=rL(r,o);return mt(i.positions)}o=Sf.fromRangeStart(n),i=nL(r,o);return pt(i.positions)},FL=function(t,e,n){return $L(t,e).filter(n).exists((function(e){return t.selection.setRng(e.toRange()),!0}))},VL=eo,HL=function(t,e,n){return jL(e,t,n,hx,px,VL)},zL=function(t,e,n){var r=function(t){return hx(t)||fx(t)},o=function(t){return px(t)||dx(t)};return RL(e,t,n,r,o,VL)},UL=function(t){var e=t.dom.create(pd(t));return(!Ke.ie||Ke.ie>=11)&&(e.innerHTML='<br data-mce-bogus="1">'),e},WL=function(t,e,n){var r=kp(t.getBody()),o=b(lp,1===e?r.next:r.prev);if(n.collapsed&&ah(t)){var i=t.dom.getParent(n.startContainer,"PRE");if(!i)return;var a=o(Sf.fromRangeStart(n));if(!a){var u=UL(t);1===e?t.$(i).after(u):t.$(i).before(u),t.selection.select(u,!0),t.selection.collapse()}}},qL=function(t,e){var n=e?Cf.Forwards:Cf.Backwards,r=t.selection.getRng();return HL(n,t,r).orThunk((function(){return WL(t,n,r),E.none()}))},GL=function(t,e){var n=e?1:-1,r=t.selection.getRng();return zL(n,t,r).orThunk((function(){return WL(t,n,r),E.none()}))},YL=function(t,e){return qL(t,e).exists((function(e){return PL(t,e),!0}))},XL=function(t,e){return GL(t,e).exists((function(e){return PL(t,e),!0}))},KL=function(t,e){var n=e?px:hx;return FL(t,e,n)},ZL=function(t){return Y(["figcaption"],Ln(t))},JL=function(t){var e=document.createRange();return e.setStartBefore(t.dom),e.setEndBefore(t.dom),e},QL=function(t,e,n){n?gr(t,e):mr(t,e)},tN=function(t,e){var n=gn.fromTag("br");return QL(t,n,e),JL(n)},eN=function(t,e,n,r){var o=gn.fromTag(n),i=gn.fromTag("br");return uo(o,r),gr(o,i),QL(t,o,e),JL(i)},nN=function(t,e,n,r){return""===e?tN(t,r):eN(t,r,e,n)},rN=function(t,e){var n=b(Tn,e);return Xo(gn.fromDom(t.container()),ki,n).filter(ZL)},oN=function(t,e,n){return e?iL(t.dom,n):oL(t.dom,n)},iN=function(t,e){var n=gn.fromDom(t.getBody()),r=Sf.fromRangeStart(t.selection.getRng()),o=pd(t),i=md(t);return rN(r,n).exists((function(){if(oN(n,e,r)){var a=nN(n,o,i,e);return t.selection.setRng(a),!0}return!1}))},aN=function(t,e){return!!t.selection.isCollapsed()&&iN(t,e)},uN=function(t){return K(t,(function(t){return Ht({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:h},t)}))},sN=function(t,e){return e.keyCode===t.keyCode&&e.shiftKey===t.shiftKey&&e.altKey===t.altKey&&e.ctrlKey===t.ctrlKey&&e.metaKey===t.metaKey},cN=function(t,e){return ut(uN(t),(function(t){return sN(t,e)?[t]:[]}))},lN=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(null,e)}},fN=function(t,e){return ot(cN(t,e),(function(t){return t.action()}))},dN=function(t,e){var n=e?Cf.Forwards:Cf.Backwards,r=t.selection.getRng();return jL(t,n,r,cx,lx,ro).exists((function(e){return PL(t,e),!0}))},hN=function(t,e){var n=e?1:-1,r=t.selection.getRng();return RL(t,n,r,cx,lx,ro).exists((function(e){return PL(t,e),!0}))},pN=function(t,e){var n=e?lx:cx;return FL(t,e,n)},mN=function(t,e){return{left:t.left-e,top:t.top-e,right:t.right+2*e,bottom:t.bottom+2*e,width:t.width+e,height:t.height+e}},gN=function(t,e){return ut(e,(function(e){var n=mN(Vl(e.getBoundingClientRect()),-1);return[{x:n.left,y:t(n),cell:e},{x:n.right,y:t(n),cell:e}]}))},vN=function(t,e,n){return nt(t,(function(t,r){return t.fold((function(){return E.some(r)}),(function(t){var o=Math.sqrt(Math.abs(t.x-e)+Math.abs(t.y-n)),i=Math.sqrt(Math.abs(r.x-e)+Math.abs(r.y-n));return E.some(i<o?r:t)}))}),E.none())},bN=function(t,e,n,r,o){var i=pl(gn.fromDom(n),"td,th,caption").map((function(t){return t.dom})),a=tt(gN(t,i),(function(t){return e(t,o)}));return vN(a,r,o).map((function(t){return t.cell}))},yN=function(t){return t.bottom},xN=function(t){return t.top},wN=function(t,e){return t.y<e},CN=function(t,e){return t.y>e},SN=b(bN,yN,wN),kN=b(bN,xN,CN),ON=function(t,e){return pt(e.getClientRects()).bind((function(e){return SN(t,e.left,e.top)})).bind((function(t){return eL(cL(t),e)}))},_N=function(t,e){return mt(e.getClientRects()).bind((function(e){return kN(t,e.left,e.top)})).bind((function(t){return eL(sL(t),e)}))},AN=function(t,e,n){return n.breakAt.exists((function(n){return t(e,n).breakAt.isSome()}))},EN=function(t){return t.breakType===vT.Wrap&&0===t.positions.length},TN=function(t){return t.breakType===vT.Br&&1===t.positions.length},DN=function(t,e,n){var r=t(e,n);return EN(r)||!Jr(n.getNode())&&TN(r)?!AN(t,e,r):r.breakAt.isNone()},IN=b(DN,nL),BN=b(DN,rL),LN=function(t,e,n){var r=Sf.fromRangeStart(e);return Pp(!t,n).exists((function(t){return t.isEqual(r)}))},NN=function(t,e,n,r){var o=t.selection.getRng(),i=e?1:-1;return!(!jh()||!LN(e,o,n))&&(TD(i,t,n,!e,!1).each((function(e){PL(t,e)})),!0)},PN=function(t,e,n){return ON(e,n).orThunk((function(){return pt(n.getClientRects()).bind((function(n){return tL(aL(t,Sf.before(e)),n.left)}))})).getOr(Sf.before(e))},MN=function(t,e,n){return _N(e,n).orThunk((function(){return pt(n.getClientRects()).bind((function(n){return tL(uL(t,Sf.after(e)),n.left)}))})).getOr(Sf.after(e))},jN=function(t,e){var n=e.getNode(t);return Rr(n)&&"TABLE"===n.nodeName?E.some(n):E.none()},RN=function(t,e,n,r){var o=pd(e);o?e.undoManager.transact((function(){var r=gn.fromTag(o);uo(r,md(e)),gr(r,gn.fromTag("br")),t?pr(gn.fromDom(n),r):hr(gn.fromDom(n),r);var i=e.dom.createRng();i.setStart(r.dom,0),i.setEnd(r.dom,0),PL(e,i)})):PL(e,r.toRange())},$N=function(t,e,n){var r=jN(!!e,n),o=!1===e;r.fold((function(){return PL(t,n.toRange())}),(function(r){return Pp(o,t.getBody()).filter((function(t){return t.isEqual(n)})).fold((function(){return PL(t,n.toRange())}),(function(o){return RN(e,t,r,n)}))}))},FN=function(t,e,n,r){var o=t.selection.getRng(),i=Sf.fromRangeStart(o),a=t.getBody();if(!e&&IN(r,i)){var u=PN(a,n,i);return $N(t,e,u),!0}if(e&&BN(r,i)){u=MN(a,n,i);return $N(t,e,u),!0}return!1},VN=function(t,e,n){return E.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind((function(r){return E.from(t.dom.getParent(r,"table")).map((function(o){return n(t,e,o,r)}))})).getOr(!1)},HN=function(t,e){return VN(t,e,NN)},zN=function(t,e){return VN(t,e,FN)},UN=function(t,e,n){var r=Ve().os;fN([{keyCode:Fg.RIGHT,action:lN(YL,t,!0)},{keyCode:Fg.LEFT,action:lN(YL,t,!1)},{keyCode:Fg.UP,action:lN(XL,t,!1)},{keyCode:Fg.DOWN,action:lN(XL,t,!0)},{keyCode:Fg.RIGHT,action:lN(HN,t,!0)},{keyCode:Fg.LEFT,action:lN(HN,t,!1)},{keyCode:Fg.UP,action:lN(zN,t,!1)},{keyCode:Fg.DOWN,action:lN(zN,t,!0)},{keyCode:Fg.RIGHT,action:lN(dN,t,!0)},{keyCode:Fg.LEFT,action:lN(dN,t,!1)},{keyCode:Fg.UP,action:lN(hN,t,!1)},{keyCode:Fg.DOWN,action:lN(hN,t,!0)},{keyCode:Fg.RIGHT,action:lN(KI,t,e,!0)},{keyCode:Fg.LEFT,action:lN(KI,t,e,!1)},{keyCode:Fg.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:lN(QI,t,e)},{keyCode:Fg.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:lN(tB,t,e)},{keyCode:Fg.UP,action:lN(aN,t,!1)},{keyCode:Fg.DOWN,action:lN(aN,t,!0)}],n).each((function(t){n.preventDefault()}))},WN=function(t,e){t.on("keydown",(function(n){!1===n.isDefaultPrevented()&&UN(t,e,n)}))},qN=function(t,e,n){fN([{keyCode:Fg.BACKSPACE,action:lN(AB,t,!1)},{keyCode:Fg.BACKSPACE,action:lN(oI,t,!1)},{keyCode:Fg.DELETE,action:lN(oI,t,!0)},{keyCode:Fg.BACKSPACE,action:lN($D,t,!1)},{keyCode:Fg.DELETE,action:lN($D,t,!0)},{keyCode:Fg.BACKSPACE,action:lN(uB,t,e,!1)},{keyCode:Fg.DELETE,action:lN(uB,t,e,!0)},{keyCode:Fg.BACKSPACE,action:lN(vC,t,!1)},{keyCode:Fg.DELETE,action:lN(vC,t,!0)},{keyCode:Fg.BACKSPACE,action:lN(aI,t,!1)},{keyCode:Fg.DELETE,action:lN(aI,t,!0)},{keyCode:Fg.BACKSPACE,action:lN(gB,t,!1)},{keyCode:Fg.DELETE,action:lN(gB,t,!0)},{keyCode:Fg.BACKSPACE,action:lN(_D,t,!1)},{keyCode:Fg.DELETE,action:lN(_D,t,!0)},{keyCode:Fg.BACKSPACE,action:lN(yD,t,!1)},{keyCode:Fg.DELETE,action:lN(yD,t,!0)},{keyCode:Fg.BACKSPACE,action:lN(dB,t,!1)},{keyCode:Fg.DELETE,action:lN(dB,t,!0)}],n).each((function(t){n.preventDefault()}))},GN=function(t,e){fN([{keyCode:Fg.BACKSPACE,action:lN(rI,t)},{keyCode:Fg.DELETE,action:lN(rI,t)}],e)},YN=function(t,e){t.on("keydown",(function(n){!1===n.isDefaultPrevented()&&qN(t,e,n)})),t.on("keyup",(function(e){!1===e.isDefaultPrevented()&&GN(t,e)}))},XN=function(t){while(t){if(1===t.nodeType||3===t.nodeType&&t.data&&/[\r\n\s]/.test(t.data))return t;t=t.nextSibling}},KN=function(t,e){var n,r=e,o=t.dom,i=t.schema.getMoveCaretBeforeOnEnterElements();if(e){if(/^(LI|DT|DD)$/.test(e.nodeName)){var a=XN(e.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&e.insertBefore(o.doc.createTextNode(Mi),e.firstChild)}var u=o.createRng();if(e.normalize(),e.hasChildNodes()){var s=new hi(e,e);while(n=s.current()){if(Yr(n)){u.setStart(n,0),u.setEnd(n,0);break}if(i[n.nodeName.toLowerCase()]){u.setStartBefore(n),u.setEndBefore(n);break}r=n,n=s.next()}n||(u.setStart(r,0),u.setEnd(r,0))}else Jr(e)?e.nextSibling&&o.isBlock(e.nextSibling)?(u.setStartBefore(e),u.setEndBefore(e)):(u.setStartAfter(e),u.setEndAfter(e)):(u.setStart(e,0),u.setEnd(e,0));t.selection.setRng(u),Hv(t,u)}},ZN=function(t,e){var n,r,o=t.getRoot();n=e;while(n!==o&&"false"!==t.getContentEditable(n))"true"===t.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},JN=function(t){return E.from(t.dom.getParent(t.selection.getStart(!0),t.dom.isBlock))},QN=function(t){return JN(t).fold(g(""),(function(t){return t.nodeName.toUpperCase()}))},tP=function(t){return JN(t).filter((function(t){return Di(gn.fromDom(t))})).isSome()},eP=function(t,e){return t.firstChild&&t.firstChild.nodeName===e},nP=function(t,e){return t&&t.parentNode&&t.parentNode.nodeName===e},rP=function(t){return t&&/^(OL|UL|LI)$/.test(t.nodeName)},oP=function(t){return rP(t)&&rP(t.parentNode)},iP=function(t){var e=t.parentNode;return/^(LI|DT|DD)$/.test(e.nodeName)?e:t},aP=function(t,e,n){var r=t[n?"firstChild":"lastChild"];while(r){if(Rr(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===e},uP=function(t,e,n,r,o){var i=t.dom,a=t.selection.getRng();if(n!==t.getBody()){oP(n)&&(o="LI");var u=o?e(o):i.create("BR");if(aP(n,r,!0)&&aP(n,r,!1))nP(n,"LI")?i.insertAfter(u,iP(n)):i.replace(u,n);else if(aP(n,r,!0))nP(n,"LI")?(i.insertAfter(u,iP(n)),u.appendChild(i.doc.createTextNode(" ")),u.appendChild(n)):n.parentNode.insertBefore(u,n);else if(aP(n,r,!1))i.insertAfter(u,iP(n));else{n=iP(n);var s=a.cloneRange();s.setStartAfter(r),s.setEndAfter(n);var c=s.extractContents();"LI"===o&&eP(c,"LI")?(u=c.firstChild,i.insertAfter(c,n)):(i.insertAfter(c,n),i.insertAfter(u,n))}i.remove(r),KN(t,u)}},sP=function(t){Z(hl(gn.fromDom(t),Rn),(function(t){var e=t.dom;e.nodeValue=Vi(e.nodeValue)}))},cP=function(t,e){return e&&"A"===e.nodeName&&t.isEmpty(e)},lP=function(t){return t&&/^(TD|TH|CAPTION)$/.test(t.nodeName)},fP=function(t){t.innerHTML='<br data-mce-bogus="1">'},dP=function(t,e){return t.nodeName===e||t.previousSibling&&t.previousSibling.nodeName===e},hP=function(t,e){return e&&t.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&!/^(fixed|absolute)/i.test(e.style.position)&&"true"!==t.getContentEditable(e)},pP=function(t,e,n){var r,o=n,i=[];if(o){while(o=o.firstChild){if(t.isBlock(o))return;Rr(o)&&!e[o.nodeName.toLowerCase()]&&i.push(o)}r=i.length;while(r--)o=i[r],(!o.hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue||cP(t,o))&&t.remove(o)}},mP=function(t,e,n){return!1===Yr(e)?n:t?1===n&&e.data.charAt(n-1)===$i?0:n:n===e.data.length-1&&e.data.charAt(n)===$i?e.data.length:n},gP=function(t){var e=t.cloneRange();return e.setStart(t.startContainer,mP(!0,t.startContainer,t.startOffset)),e.setEnd(t.endContainer,mP(!1,t.endContainer,t.endOffset)),e},vP=function(t){do{Yr(t)&&(t.nodeValue=t.nodeValue.replace(/^[\r\n]+/,"")),t=t.firstChild}while(t)},bP=function(t,e){var n,r,o=t.getRoot();n=e;while(n!==o&&"false"!==t.getContentEditable(n))"true"===t.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},yP=function(t,e,n){var r=t.dom;E.from(n.style).map(r.parseStyle).each((function(t){var n=yo(gn.fromDom(e)),o=Ht(Ht({},n),t);r.setStyles(e,o)}));var o=E.from(n.class).map((function(t){return t.split(/\s+/)})),i=E.from(e.className).map((function(t){return tt(t.split(/\s+/),(function(t){return""!==t}))}));jl(o,i,(function(t,n){var o=tt(n,(function(e){return!Y(t,e)})),i=Ut(t,o);r.setAttrib(e,"class",i.join(" "))}));var a=["style","class"],u=_t(n,(function(t,e){return!Y(a,e)}));r.setAttribs(e,u)},xP=function(t,e){var n=pd(t);if(n&&n.toLowerCase()===e.tagName.toLowerCase()){var r=md(t);yP(t,e,r)}},wP=function(t,e,n,r,o){var i,a,u,s,c,l,f=e||"P",d=t.dom,h=bP(d,r);if(a=d.getParent(r,d.isBlock),!a||!hP(d,a)){if(a=a||h,l=a===t.getBody()||lP(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=d.create(f),xP(t,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;s=r;while(s.parentNode!==a)s=s.parentNode;while(s&&!d.isBlock(s))u=s,s=s.previousSibling;if(u&&t.schema.isValidChild(l,f.toLowerCase())){i=d.create(f),xP(t,i),u.parentNode.insertBefore(i,u),s=u;while(s&&!d.isBlock(s))c=s.nextSibling,i.appendChild(s),s=c;n.setStart(r,o),n.setEnd(r,o)}}return r},CP=function(t,e){e.normalize();var n=e.lastChild;n&&!/^(left|right)$/gi.test(t.getStyle(n,"float",!0))||t.add(e,"br")},SP=function(t,e){var n,r,o,i,a,u,s,c,l,f,d=t.dom,h=t.schema,p=h.getNonEmptyElements(),m=t.selection.getRng(),g=function(e){var n,o,a,u=r,s=h.getTextInlineElements();if(n=e||"TABLE"===c||"HR"===c?d.create(e||l):i.cloneNode(!1),a=n,!1===bd(t))d.setAttrib(n,"style",null),d.setAttrib(n,"class",null);else do{if(s[u.nodeName]){if(Vp(u)||cm(u))continue;o=u.cloneNode(!1),d.setAttrib(o,"id",""),n.hasChildNodes()?(o.appendChild(n.firstChild),n.appendChild(o)):(a=o,n.appendChild(o))}}while((u=u.parentNode)&&u!==w);return xP(t,n),fP(a),n},v=function(t){var e,n,a=mP(t,r,o);if(Yr(r)&&(t?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===i&&f&&!t)return!0;if(t&&Rr(r)&&r===i.firstChild)return!0;if(dP(r,"TABLE")||dP(r,"HR"))return f&&!t||!f&&t;var u=new hi(r,i);Yr(r)&&(t&&0===a?u.prev():t||a!==r.nodeValue.length||u.next());while(e=u.current()){if(Rr(e)){if(!e.getAttribute("data-mce-bogus")&&(n=e.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Yr(e)&&!xa(e.nodeValue))return!1;t?u.prev():u.next()}return!0},b=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(c)&&"HGROUP"!==C?g(l):g(),yd(t)&&hP(d,s)&&d.isEmpty(i)?a=d.split(s,i):d.insertAfter(a,i),KN(t,a)};av(d,m).each((function(t){m.setStart(t.startContainer,t.startOffset),m.setEnd(t.endContainer,t.endOffset)})),r=m.startContainer,o=m.startOffset,l=pd(t);var y=!(!e||!e.shiftKey),x=!(!e||!e.ctrlKey);Rr(r)&&r.hasChildNodes()&&(f=o>r.childNodes.length-1,r=r.childNodes[Math.min(o,r.childNodes.length-1)]||r,o=f&&Yr(r)?r.nodeValue.length:0);var w=bP(d,r);if(w){(l&&!y||!l&&y)&&(r=wP(t,l,m,r,o)),i=d.getParent(r,d.isBlock),s=i?d.getParent(i.parentNode,d.isBlock):null,c=i?i.nodeName.toUpperCase():"";var C=s?s.nodeName.toUpperCase():"";"LI"!==C||x||(i=s,s=s.parentNode,c=C),/^(LI|DT|DD)$/.test(c)&&d.isEmpty(i)?uP(t,g,s,i,l):l&&i===t.getBody()||(l=l||"P",Ui(i)?(a=na(i),d.isEmpty(i)&&fP(i),xP(t,a),KN(t,a)):v()?b():v(!0)?(a=i.parentNode.insertBefore(g(),i),KN(t,dP(i,"HR")?a:i)):(n=gP(m).cloneRange(),n.setEndAfter(i),u=n.extractContents(),sP(u),vP(u),a=u.firstChild,d.insertAfter(u,i),pP(d,p,a),CP(d,i),d.isEmpty(i)&&fP(i),a.normalize(),d.isEmpty(a)?(d.remove(a),b()):(xP(t,a),KN(t,a))),d.setAttrib(a,"id",""),t.fire("NewBlock",{newBlock:a}))}},kP=function(t,e,n){var r,o=new hi(e,n),i=t.getNonEmptyElements();while(r=o.next())if(i[r.nodeName.toLowerCase()]||r.length>0)return!0},OP=function(t,e,n){var r=t.create("span",{}," ");n.parentNode.insertBefore(r,n),e.scrollIntoView(r),t.remove(r)},_P=function(t,e,n,r){var o=t.createRng();r?(o.setStartBefore(n),o.setEndBefore(n)):(o.setStartAfter(n),o.setEndAfter(n)),e.setRng(o)},AP=function(t,e){var n,r,o=t.selection,i=t.dom,a=o.getRng();av(i,a).each((function(t){a.setStart(t.startContainer,t.startOffset),a.setEnd(t.endContainer,t.endOffset)}));var u=a.startOffset,s=a.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var c=u>s.childNodes.length-1;s=s.childNodes[Math.min(u,s.childNodes.length-1)]||s,u=c&&3===s.nodeType?s.nodeValue.length:0}var l=i.getParent(s,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!e||!e.ctrlKey);"LI"!==d||h||(l=f),s&&3===s.nodeType&&u>=s.nodeValue.length&&(kP(t.schema,s,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),Af(i,a,n),OP(i,o,n),_P(i,o,n,r),t.undoManager.add()},EP=function(t,e){var n=gn.fromTag("br");hr(gn.fromDom(e),n),t.undoManager.add()},TP=function(t,e){IP(t.getBody(),e)||pr(gn.fromDom(e),gn.fromTag("br"));var n=gn.fromTag("br");pr(gn.fromDom(e),n),OP(t.dom,t.selection,n.dom),_P(t.dom,t.selection,n.dom,!1),t.undoManager.add()},DP=function(t){return Jr(t.getNode())},IP=function(t,e){return!!DP(Sf.after(e))||Mp(t,Sf.after(e)).map((function(t){return Jr(t.getNode())})).getOr(!1)},BP=function(t){return t&&"A"===t.nodeName&&"href"in t},LP=function(t){return t.fold(C,BP,BP,C)},NP=function(t){var e=b($T,t),n=Sf.fromRangeStart(t.selection.getRng());return TI(e,t.getBody(),n).filter(LP)},PP=function(t,e){e.fold(h,b(EP,t),b(TP,t),h)},MP=function(t,e){var n=NP(t);n.isSome()?n.each(b(PP,t)):AP(t,e)},jP=function(t,e){return JN(t).filter((function(t){return e.length>0&&On(gn.fromDom(t),e)})).isSome()},RP=function(t){return jP(t,gd(t))},$P=function(t){return jP(t,vd(t))},FP=Uo.generate([{br:[]},{block:[]},{none:[]}]),VP=function(t,e){return $P(t)},HP=function(t){return function(e,n){var r=""===pd(e);return r===t}},zP=function(t){return function(e,n){return tP(e)===t}},UP=function(t,e){return function(n,r){var o=QN(n)===t.toUpperCase();return o===e}},WP=function(t){return UP("pre",t)},qP=function(){return UP("summary",!0)},GP=function(t){return function(e,n){return hd(e)===t}},YP=function(t,e){return RP(t)},XP=function(t,e){return e},KP=function(t){var e=pd(t),n=ZN(t.dom,t.selection.getStart());return n&&t.schema.isValidChild(n.nodeName,e||"P")},ZP=function(t,e){return function(n,r){var o=nt(t,(function(t,e){return t&&e(n,r)}),!0);return o?E.some(e):E.none()}},JP=function(t,e){return yI([ZP([VP],FP.none()),ZP([qP()],FP.br()),ZP([WP(!0),GP(!1),XP],FP.br()),ZP([WP(!0),GP(!1)],FP.block()),ZP([WP(!0),GP(!0),XP],FP.block()),ZP([WP(!0),GP(!0)],FP.br()),ZP([zP(!0),XP],FP.br()),ZP([zP(!0)],FP.block()),ZP([HP(!0),XP,KP],FP.block()),ZP([HP(!0)],FP.br()),ZP([YP],FP.br()),ZP([HP(!1),XP],FP.br()),ZP([KP],FP.block())],[t,!(!e||!e.shiftKey)]).getOr(FP.none())},QP=function(t,e){JP(t,e).fold((function(){MP(t,e)}),(function(){SP(t,e)}),h)},tM=function(t,e){e.isDefaultPrevented()||(e.preventDefault(),FO(t.undoManager),t.undoManager.transact((function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),QP(t,e)})))},eM=function(t){t.on("keydown",(function(e){e.keyCode===Fg.ENTER&&tM(t,e)}))},nM=function(t,e){fN([{keyCode:Fg.END,action:lN(KL,t,!0)},{keyCode:Fg.HOME,action:lN(KL,t,!1)},{keyCode:Fg.END,action:lN(pN,t,!0)},{keyCode:Fg.HOME,action:lN(pN,t,!1)}],e).each((function(t){e.preventDefault()}))},rM=function(t){t.on("keydown",(function(e){!1===e.isDefaultPrevented()&&nM(t,e)}))},oM=Ve().browser,iM=function(t){var e=tl((function(){t.composing||ow(t)}),0);oM.isIE()&&(t.on("keypress",(function(t){e.throttle()})),t.on("remove",(function(t){e.cancel()})))},aM=function(t){iM(t),t.on("input",(function(e){!1===e.isComposing&&ow(t)}))},uM=function(t,e){var n=e.container(),r=e.offset();return Yr(n)?(n.insertData(r,t),E.some(wf(n,r+t.length))):sp(e).map((function(n){var r=gn.fromText(t);return e.isAtEnd()?pr(n,r):hr(n,r),wf(r.dom,t.length)}))},sM=b(uM,Mi),cM=b(uM," "),lM=function(t){return function(e){return e.fold((function(e){return jp(t.dom,Sf.before(e))}),(function(t){return Rp(t)}),(function(t){return $p(t)}),(function(e){return Mp(t.dom,Sf.after(e))}))}},fM=function(t,e){return function(n){return qx(t,n)?sM(e):cM(e)}},dM=function(t){return function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}},hM=function(t){var e=Sf.fromRangeStart(t.selection.getRng()),n=gn.fromDom(t.getBody());if(t.selection.isCollapsed()){var r=b($T,t),o=Sf.fromRangeStart(t.selection.getRng());return TI(r,t.getBody(),o).bind(lM(n)).bind(fM(n,e)).exists(dM(t))}return!1},pM=function(t,e){fN([{keyCode:Fg.SPACEBAR,action:lN(hM,t)}],e).each((function(t){e.preventDefault()}))},mM=function(t){t.on("keydown",(function(e){!1===e.isDefaultPrevented()&&pM(t,e)}))},gM=function(t){var e=JI(t);return GB(t),WN(t,e),YN(t,e),eM(t),mM(t),aM(t),rM(t),e},vM=function(t){return o_(t)?Rc(null):gM(t)},bM=function(){function t(t){var e;this.lastPath=[],this.editor=t;var n=this;"onselectionchange"in t.getDoc()||t.on("NodeChange click mouseup keyup focus",(function(n){var r=t.selection.getRng(),o={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&Yg(o,e)||t.fire("SelectionChange"),e=o})),t.on("contextmenu",(function(){t.fire("SelectionChange")})),t.on("SelectionChange",(function(){var e=t.selection.getStart(!0);!e||!Ke.range&&t.selection.isCollapsed()||fg(t)&&!n.isSameElementPath(e)&&t.dom.isChildOf(e,t.getBody())&&t.nodeChanged({selectionChange:!0})})),t.on("mouseup",(function(e){!e.isDefaultPrevented()&&fg(t)&&("IMG"===t.selection.getNode().nodeName?ci.setEditorTimeout(t,(function(){t.nodeChanged()})):t.nodeChanged())}))}return t.prototype.nodeChanged=function(t){var e,n,r,o=this.editor.selection;this.editor.initialized&&o&&!sh(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),e=o.getStart(!0)||r,e.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(e,r)||(e=r),n=[],this.editor.dom.getParent(e,(function(t){if(t===r)return!0;n.push(t)})),t=t||{},t.element=e,t.parents=n,this.editor.fire("NodeChange",t))},t.prototype.isSameElementPath=function(t){var e,n=this.editor.$(t).parentsUntil(this.editor.getBody()).add(t);if(n.length===this.lastPath.length){for(e=n.length;e>=0;e--)if(n[e]!==this.lastPath[e])break;if(-1===e)return this.lastPath=n,!0}return this.lastPath=n,!1},t}(),yM=function(t){t.on("click",(function(e){t.dom.getParent(e.target,"details")&&e.preventDefault()}))},xM=function(t){t.parser.addNodeFilter("details",(function(t){Z(t,(function(t){t.attr("data-mce-open",t.attr("open")),t.attr("open","open")}))})),t.serializer.addNodeFilter("details",(function(t){Z(t,(function(t){var e=t.attr("data-mce-open");t.attr("open",L(e)?e:null),t.attr("data-mce-open",null)}))}))},wM=function(t){yM(t),xM(t)},CM=function(t){return Rr(t)&&Ei(gn.fromDom(t))},SM=function(t){var e=t.selection.getRng(),n=wf.fromRangeStart(e),r=wf.fromRangeEnd(e);if(wf.isElementPosition(n)){var o=n.container();CM(o)&&Rp(o).each((function(t){return e.setStart(t.container(),t.offset())}))}if(wf.isElementPosition(r)){o=n.container();CM(o)&&$p(o).each((function(t){return e.setEnd(t.container(),t.offset())}))}t.selection.setRng(xC(e))},kM=function(t){t.on("click",(function(e){e.detail>=3&&SM(t)}))},OM=function(){var t=Rc(E.none()),e=function(){return t.set(E.none())},n=function(e){return t.set(E.some(e))},r=function(){return t.get().isSome()},o=function(e){return t.get().each(e)};return{clear:e,set:n,isSet:r,on:o}},_M=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,r=n.documentElement,o=n.defaultView;return{top:e.top+o.pageYOffset-r.clientTop,left:e.left+o.pageXOffset-r.clientLeft}},AM=function(t){return t.inline?_M(t.getBody()):{left:0,top:0}},EM=function(t){var e=t.getBody();return t.inline?{left:e.scrollLeft,top:e.scrollTop}:{left:0,top:0}},TM=function(t){var e=t.getBody(),n=t.getDoc().documentElement,r={left:e.scrollLeft,top:e.scrollTop},o={left:e.scrollLeft||n.scrollLeft,top:e.scrollTop||n.scrollTop};return t.inline?r:o},DM=function(t,e){if(e.target.ownerDocument!==t.getDoc()){var n=_M(t.getContentAreaContainer()),r=TM(t);return{left:e.pageX-n.left+r.left,top:e.pageY-n.top+r.top}}return{left:e.pageX,top:e.pageY}},IM=function(t,e,n){return{pageX:n.left-t.left+e.left,pageY:n.top-t.top+e.top}},BM=function(t,e){return IM(AM(t),EM(t),DM(t,e))},LM=eo,NM=to,PM=function(t,e){return LM(e)&&e!==t},MM=function(t,e,n){return e!==n&&!t.dom.isChildOf(e,n)&&!LM(e)},jM=function(t){var e=t.cloneNode(!0);return e.removeAttribute("data-mce-selected"),e},RM=function(t,e,n,r){var o=t.dom,i=e.cloneNode(!0);o.setStyles(i,{width:n,height:r}),o.setAttrib(i,"data-mce-selected",null);var a=o.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return o.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),o.setStyles(i,{margin:0,boxSizing:"border-box"}),a.appendChild(i),a},$M=function(t,e){t.parentNode!==e&&e.appendChild(t)},FM=function(t,e,n,r,o,i){var a=0,u=0;t.style.left=e.pageX+"px",t.style.top=e.pageY+"px",e.pageX+n>o&&(a=e.pageX+n-o),e.pageY+r>i&&(u=e.pageY+r-i),t.style.width=n-a+"px",t.style.height=r-u+"px"},VM=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},HM=function(t){return 0===t.button},zM=function(t,e){return{pageX:e.pageX-t.relX,pageY:e.pageY+5}},UM=function(t,e){return function(n){if(HM(n)){var r=ot(e.dom.getParents(n.target),Jl(LM,NM)).getOr(null);if(PM(e.getBody(),r)){var o=e.dom.getPos(r),i=e.getBody(),a=e.getDoc().documentElement;t.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(e.inline?i.scrollWidth:a.offsetWidth)-2,maxY:(e.inline?i.scrollHeight:a.offsetHeight)-2,relX:n.pageX-o.x,relY:n.pageY-o.y,width:r.offsetWidth,height:r.offsetHeight,ghost:RM(e,r,r.offsetWidth,r.offsetHeight)})}}}},WM=function(t,e){var n=ci.throttle((function(t,n){e._selectionOverrides.hideFakeCaret(),e.selection.placeCaretAt(t,n)}),0);return e.on("remove",n.stop),function(r){return t.on((function(t){var o=Math.max(Math.abs(r.screenX-t.screenX),Math.abs(r.screenY-t.screenY));if(!t.dragging&&o>10){var i=e.fire("dragstart",{target:t.element});if(i.isDefaultPrevented())return;t.dragging=!0,e.focus()}if(t.dragging){var a=zM(t,BM(e,r));$M(t.ghost,e.getBody()),FM(t.ghost,a,t.width,t.height,t.maxX,t.maxY),n(r.clientX,r.clientY)}}))}},qM=function(t){var e=t.getSel().getRangeAt(0),n=e.startContainer;return 3===n.nodeType?n.parentNode:n},GM=function(t,e){return function(n){t.on((function(t){if(t.dragging&&MM(e,qM(e.selection),t.element)){var r=jM(t.element),o=e.fire("drop",{clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||e.undoManager.transact((function(){VM(t.element),e.insertContent(e.dom.getOuterHTML(r)),e._selectionOverrides.hideFakeCaret()}))}})),XM(t)}},YM=function(t,e){return function(){t.on((function(t){t.dragging&&e.fire("dragend")})),XM(t)}},XM=function(t){t.on((function(t){VM(t.ghost)})),t.clear()},KM=function(t){var e=OM(),n=Tc.DOM,r=document,o=UM(e,t),i=WM(e,t),a=GM(e,t),u=YM(e,t);t.on("mousedown",o),t.on("mousemove",i),t.on("mouseup",a),n.bind(r,"mousemove",i),n.bind(r,"mouseup",u),t.on("remove",(function(){n.unbind(r,"mousemove",i),n.unbind(r,"mouseup",u)}))},ZM=function(t){t.on("drop",(function(e){var n="undefined"!==typeof e.clientX?t.getDoc().elementFromPoint(e.clientX,e.clientY):null;(LM(n)||"false"===t.dom.getContentEditableParent(n))&&e.preventDefault()}))},JM=function(t){var e=function(e){if(!e.defaultPrevented){var n=e.dataTransfer;n&&(Y(n.types,"Files")||n.files.length>0)&&(e.preventDefault(),"drop"===e.type&&XE(t,"Dropped file type is not supported"))}},n=function(n){Rb(t,n.target)&&e(n)},r=function(){var r=Tc.DOM,o=t.dom,i=document,a=t.inline?t.getBody():t.getDoc(),u=["drop","dragover"];Z(u,(function(t){r.bind(i,t,n),o.bind(a,t,e)})),t.on("remove",(function(){Z(u,(function(t){r.unbind(i,t,n),o.unbind(a,t,e)}))}))};t.on("init",(function(){ci.setEditorTimeout(t,r,0)}))},QM=function(t){KM(t),ZM(t),hh(t)&&JM(t)},tj=function(t){var e=tl((function(){if(!t.removed&&t.getBody().contains(document.activeElement)){var e=t.selection.getRng();if(e.collapsed){var n=LD(t,e,!1);t.selection.setRng(n)}}}),0);t.on("focus",(function(){e.throttle()})),t.on("blur",(function(){e.cancel()}))},ej=function(t){t.on("init",(function(){t.on("focusin",(function(e){var n=e.target;if(ro(n)){var r=_g(t.getBody(),n),o=eo(r)?r:n;t.selection.getNode()!==o&&ID(t,o).each((function(e){return t.selection.setRng(e)}))}}))}))},nj=to,rj=eo,oj=function(t,e){return _g(t.getBody(),e)},ij=function(t){var e,n=t.selection,r=t.dom,o=r.isBlock,i=t.getBody(),a=Mh(t,i,o,(function(){return Jb(t)})),u="sel-"+r.uniqueId(),s="data-mce-selected",c=function(t){return r.hasClass(t,"mce-offscreen-selection")},l=function(t){return t!==i&&(rj(t)||ro(t))&&r.isChildOf(t,i)},f=function(t){return hx(t)||px(t)||cx(t)||lx(t)},d=function(){var t=r.get(u);return t?t.getElementsByTagName("*")[0]:t},h=function(t){t&&n.setRng(t)},p=n.getRng,m=function(e,r,o,i){void 0===i&&(i=!0);var u=t.fire("ShowCaret",{target:r,direction:e,before:o});return u.isDefaultPrevented()?null:(i&&n.scrollIntoView(r,-1===e),a.show(o,r))},g=function(t){t.hasAttribute("data-mce-caret")&&(na(t),h(p()),n.scrollIntoView(t))},v=function(){t.on("mouseup",(function(e){var n=p();n.collapsed&&$E(t,e.clientX,e.clientY)&&BD(t,n,!1).each(h)})),t.on("click",(function(e){var o=oj(t,e.target);o&&(rj(o)&&(e.preventDefault(),t.focus()),nj(o)&&r.isChildOf(o,n.getNode())&&k())})),t.on("blur NewBlock",k),t.on("ResizeWindow FullscreenStateChanged",a.reposition);var u=function(t){var e=kp(t);if(!t.firstChild)return!1;var n=Sf.before(t.firstChild),r=e.next(n);return r&&!f(r)},s=function(t,e){var n=r.getParent(t,o),i=r.getParent(e,o);return n===i},g=function(e,n){var i=r.getParent(e,o),a=r.getParent(n,o);return!(!i||e===a||!r.isChildOf(i,a)||!1!==rj(oj(t,i)))||i&&!s(i,a)&&u(i)};t.on("tap",(function(e){var n=e.target,r=oj(t,n);rj(r)?(e.preventDefault(),ID(t,r).each(S)):l(n)&&ID(t,n).each(S)}),!0),t.on("mousedown",(function(e){var o=e.target;if((o===i||"HTML"===o.nodeName||r.isChildOf(o,i))&&!1!==$E(t,e.clientX,e.clientY)){var a=oj(t,o);if(a)rj(a)?(e.preventDefault(),ID(t,a).each(S)):(k(),nj(a)&&e.shiftKey||Ag(e.clientX,e.clientY,n.getRng())||(_(),n.placeCaretAt(e.clientX,e.clientY)));else if(l(o))ID(t,o).each(S);else if(!1===$h(o)){k(),_();var u=NL(i,e.clientX,e.clientY);if(u&&!g(o,u.node)){e.preventDefault();var s=m(1,u.node,u.before,!1);t.getBody().focus(),h(s)}}}})),t.on("keypress",(function(t){Fg.modifierPressed(t)||rj(n.getNode())&&t.preventDefault()})),t.on("GetSelectionRange",(function(t){var n=t.range;if(e){if(!e.parentNode)return void(e=null);n=n.cloneRange(),n.selectNode(e),t.range=n}})),t.on("SetSelectionRange",(function(t){t.range=x(t.range);var e=S(t.range,t.forward);e&&(t.range=e)}));var v=function(t){return"mcepastebin"===t.id};t.on("AfterSetSelectionRange",(function(t){var e=t.range,n=e.startContainer.parentNode;y(e)||v(n)||_(),c(n)||k()})),t.on("copy",(function(t){var e=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!Ke.ie){var n=d();n&&(t.preventDefault(),e.clearData(),e.setData("text/html",n.outerHTML),e.setData("text/plain",n.outerText||n.innerText))}})),QM(t),tj(t),ej(t)},b=function(t){return qi(t)||Qi(t)||ta(t)},y=function(t){return b(t.startContainer)||b(t.endContainer)},x=function(e){var n=t.schema.getShortEndedElements(),o=r.createRng(),i=e.startContainer,a=e.startOffset,u=e.endContainer,s=e.endOffset;return Dt(n,i.nodeName.toLowerCase())?0===a?o.setStartBefore(i):o.setStartAfter(i):o.setStart(i,a),Dt(n,u.nodeName.toLowerCase())?0===s?o.setEndBefore(u):o.setEndAfter(u):o.setEnd(u,s),o},w=function(e,o,i){var a=t.$,s=Qo(gn.fromDom(t.getBody()),"#"+u).fold((function(){return a([])}),(function(t){return a([t.dom])}));0===s.length&&(s=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",u),s.appendTo(t.getBody()));var c=r.createRng();o===i&&Ke.ie?(s.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(o),c.setStartAfter(s[0].firstChild.firstChild),c.setEndAfter(o)):(s.empty().append(Mi).append(o).append(Mi),c.setStart(s[0].firstChild,1),c.setEnd(s[0].lastChild,0)),s.css({top:r.getPos(e,t.getBody()).y}),s[0].focus();var l=n.getSel();return l.removeAllRanges(),l.addRange(c),c},C=function(n){var o=n.cloneNode(!0),i=t.fire("ObjectSelected",{target:n,targetClone:o});if(i.isDefaultPrevented())return null;var a=w(n,i.targetClone,o),u=gn.fromDom(n);return Z(pl(gn.fromDom(t.getBody()),"*[data-mce-selected]"),(function(t){Tn(u,t)||fo(t,s)})),r.getAttrib(n,s)||n.setAttribute(s,"1"),e=n,_(),a},S=function(t,e){if(!t)return null;if(t.collapsed){if(!y(t)){var n=e?1:-1,o=up(n,i,t),a=o.getNode(!e);if($h(a))return m(n,a,!!e&&!o.isAtEnd(),!1);var u=o.getNode(e);if($h(u))return m(n,u,!e&&!o.isAtEnd(),!1)}return null}var s=t.startContainer,c=t.startOffset,f=t.endOffset;if(3===s.nodeType&&0===c&&rj(s.parentNode)&&(s=s.parentNode,c=r.nodeIndex(s),s=s.parentNode),1!==s.nodeType)return null;if(f===c+1&&s===t.endContainer){var d=s.childNodes[c];if(l(d))return C(d)}return null},k=function(){e&&e.removeAttribute(s),Qo(gn.fromDom(t.getBody()),"#"+u).each(wr),e=null},O=function(){a.destroy(),e=null},_=function(){a.hide()};return Ke.ceFalse&&v(),{showCaret:m,showBlockCaretContainer:g,hideFakeCaret:_,destroy:O}},aj=function(t){var e=ln.each,n=Fg.BACKSPACE,r=Fg.DELETE,o=t.dom,i=t.selection,a=t.parser,u=Ke.gecko,s=Ke.ie,c=Ke.webkit,l="data:text/mce-internal,",f=s?"Text":"URL",d=function(e,n){try{t.getDoc().execCommand(e,!1,n)}catch(r){}},h=function(t){return t.isDefaultPrevented()},p=function(e){var n,r;e.dataTransfer&&(t.selection.isCollapsed()&&"IMG"===e.target.tagName&&i.select(e.target),n=t.selection.getContent(),n.length>0&&(r=l+escape(t.id)+","+escape(n),e.dataTransfer.setData(f,r)))},m=function(t){var e;return t.dataTransfer&&(e=t.dataTransfer.getData(f),e&&e.indexOf(l)>=0)?(e=e.substr(l.length).split(","),{id:unescape(e[0]),html:unescape(e[1])}):null},g=function(e,n){t.queryCommandSupported("mceInsertClipboardContent")?t.execCommand("mceInsertClipboardContent",!1,{content:e,internal:n}):t.execCommand("mceInsertContent",!1,e)},v=function(){var e=function(t){var e=o.create("body"),n=t.cloneContents();return e.appendChild(n),i.serializer.serialize(e,{format:"html"})},a=function(n){var r=e(n),i=o.createRng();i.selectNode(t.getBody());var a=e(i);return r===a};t.on("keydown",(function(e){var i,u,s=e.keyCode;if(!h(e)&&(s===r||s===n)){if(i=t.selection.isCollapsed(),u=t.getBody(),i&&!o.isEmpty(u))return;if(!i&&!a(t.selection.getRng()))return;e.preventDefault(),t.setContent(""),u.firstChild&&o.isBlock(u.firstChild)?t.selection.setCursorLocation(u.firstChild,0):t.selection.setCursorLocation(u,0),t.nodeChanged()}}))},b=function(){t.shortcuts.add("meta+a",null,"SelectAll")},y=function(){t.inline||o.bind(t.getDoc(),"mousedown mouseup",(function(e){var n;if(e.target===t.getDoc().documentElement)if(n=i.getRng(),t.getBody().focus(),"mousedown"===e.type){if(qi(n.startContainer))return;i.placeCaretAt(e.clientX,e.clientY)}else i.setRng(n)}))},x=function(){t.on("keydown",(function(e){if(!h(e)&&e.keyCode===n){if(!t.getBody().getElementsByTagName("hr").length)return;if(i.isCollapsed()&&0===i.getRng().startOffset){var r=i.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return o.remove(r),void e.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(o.remove(a),e.preventDefault())}}}))},w=function(){Range.prototype.getClientRects||t.on("mousedown",(function(e){if(!h(e)&&"HTML"===e.target.nodeName){var n=t.getBody();n.blur(),ci.setEditorTimeout(t,(function(){n.focus()}))}}))},C=function(){t.on("click",(function(e){var n=e.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==o.getContentEditableParent(n)&&(e.preventDefault(),t.selection.select(n),t.nodeChanged()),"A"===n.nodeName&&o.hasClass(n,"mce-item-anchor")&&(e.preventDefault(),i.select(n))}))},S=function(){var n=function(){var n=o.getAttribs(i.getStart().cloneNode(!1));return function(){var r=i.getStart();r!==t.getBody()&&(o.setAttrib(r,"style",null),e(n,(function(t){r.setAttributeNode(t.cloneNode(!0))})))}},r=function(){return!i.isCollapsed()&&o.getParent(i.getStart(),o.isBlock)!==o.getParent(i.getEnd(),o.isBlock)};t.on("keypress",(function(e){var o;if(!h(e)&&(8===e.keyCode||46===e.keyCode)&&r())return o=n(),t.getDoc().execCommand("delete",!1,null),o(),e.preventDefault(),!1})),o.bind(t.getDoc(),"cut",(function(e){var o;!h(e)&&r()&&(o=n(),ci.setEditorTimeout(t,(function(){o()})))}))},k=function(){t.on("keydown",(function(t){if(!h(t)&&t.keyCode===n&&i.isCollapsed()&&0===i.getRng().startOffset){var e=i.getNode().previousSibling;if(e&&e.nodeName&&"table"===e.nodeName.toLowerCase())return t.preventDefault(),!1}}))},O=function(){t.on("keydown",(function(e){var n,r;if(!h(e)&&e.keyCode===Fg.BACKSPACE){n=i.getRng();var a=n.startContainer,u=n.startOffset,s=o.getRoot();if(r=a,n.collapsed&&0===u){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==s)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(t.formatter.toggle("blockquote",null,r),n=o.createRng(),n.setStart(a,0),n.setEnd(a,0),i.setRng(n))}}}))},_=function(){var e=function(){d("StyleWithCSS",!1),d("enableInlineTableEditing",!1),Vd(t)||d("enableObjectResizing",!1)};ch(t)||t.on("BeforeExecCommand mousedown",e)},A=function(){var n=function(){e(o.select("a"),(function(t){var e=t.parentNode,n=o.getRoot();if(e.lastChild===t){while(e&&!o.isBlock(e)){if(e.parentNode.lastChild!==e||e===n)return;e=e.parentNode}o.add(e,"br",{"data-mce-bogus":1})}}))};t.on("SetContent ExecCommand",(function(t){"setcontent"!==t.type&&"mceInsertLink"!==t.command||n()}))},E=function(){pd(t)&&t.on("init",(function(){d("DefaultParagraphSeparator",pd(t))}))},T=function(){t.on("keyup focusin mouseup",(function(t){Fg.modifierPressed(t)||i.normalize()}),!0)},D=function(){t.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},I=function(){t.inline||t.on("keydown",(function(){document.activeElement===document.body&&t.getWin().focus()}))},B=function(){t.inline||(t.contentStyles.push("body {min-height: 150px}"),t.on("click",(function(e){var n;if("HTML"===e.target.nodeName){if(Ke.ie>11)return void t.getBody().focus();n=t.selection.getRng(),t.getBody().focus(),t.selection.setRng(n),t.selection.normalize(),t.nodeChanged()}})))},L=function(){Ke.mac&&t.on("keydown",(function(e){if(Fg.metaKeyPressed(e)&&!e.shiftKey&&(37===e.keyCode||39===e.keyCode)){e.preventDefault();var n=t.selection.getSel();n.modify("move",37===e.keyCode?"backward":"forward","lineboundary")}}))},N=function(){d("AutoUrlDetect",!1)},P=function(){t.on("click",(function(t){var e=t.target;do{if("A"===e.tagName)return void t.preventDefault()}while(e=e.parentNode)})),t.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},M=function(){t.on("init",(function(){t.dom.bind(t.getBody(),"submit",(function(t){t.preventDefault()}))}))},j=function(){a.addNodeFilter("br",(function(t){var e=t.length;while(e--)"Apple-interchange-newline"===t[e].attr("class")&&t[e].remove()}))},R=function(){t.on("dragstart",(function(t){p(t)})),t.on("drop",(function(e){if(!h(e)){var n=m(e);if(n&&n.id!==t.id){e.preventDefault();var r=Gg(e.x,e.y,t.getDoc());i.setRng(r),g(n.html,!0)}}}))},$=function(){},F=function(){if(!u||t.removed)return!1;var e=t.selection.getSel();return!e||!e.rangeCount||0===e.rangeCount};return O(),v(),Ke.windowsPhone||T(),c&&(y(),C(),E(),M(),k(),j(),Ke.iOS?(I(),B(),P()):b()),Ke.ie>=11&&(B(),k()),Ke.ie&&(b(),N(),R()),u&&(x(),w(),S(),_(),A(),D(),L(),k()),{refreshContentEditable:$,isHidden:F}},uj=Tc.DOM,sj=function(t,e){var n=gn.fromDom(t.getBody()),r=sr(ur(n)),o=gn.fromTag("style");ao(o,"type","text/css"),gr(o,gn.fromText(e)),gr(r,o),t.on("remove",(function(){wr(o)}))},cj=function(t){return t.inline?t.getElement().nodeName.toLowerCase():void 0},lj=function(t){return _t(t,(function(t){return!1===R(t)}))},fj=function(t){var e=t.settings,n=t.editorUpload.blobCache;return lj({allow_conditional_comments:e.allow_conditional_comments,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_html_in_named_anchor:e.allow_html_in_named_anchor,allow_script_urls:e.allow_script_urls,allow_unsafe_link_target:e.allow_unsafe_link_target,convert_fonts_to_spans:e.convert_fonts_to_spans,fix_list_elements:e.fix_list_elements,font_size_legacy_values:e.font_size_legacy_values,forced_root_block:e.forced_root_block,forced_root_block_attrs:e.forced_root_block_attrs,padd_empty_with_br:e.padd_empty_with_br,preserve_cdata:e.preserve_cdata,remove_trailing_brs:e.remove_trailing_brs,inline_styles:e.inline_styles,root_name:cj(t),validate:!0,blob_cache:n,images_dataimg_filter:e.images_dataimg_filter})},dj=function(t){var e=t.settings;return Ht(Ht({},fj(t)),lj({url_converter:e.url_converter,url_converter_scope:e.url_converter_scope,element_format:e.element_format,entities:e.entities,entity_encoding:e.entity_encoding,indent:e.indent,indent_after:e.indent_after,indent_before:e.indent_before,block_elements:e.block_elements,boolean_attributes:e.boolean_attributes,custom_elements:e.custom_elements,extended_valid_elements:e.extended_valid_elements,invalid_elements:e.invalid_elements,invalid_styles:e.invalid_styles,move_caret_before_on_enter_elements:e.move_caret_before_on_enter_elements,non_empty_elements:e.non_empty_elements,schema:e.schema,self_closing_elements:e.self_closing_elements,short_ended_elements:e.short_ended_elements,special:e.special,text_block_elements:e.text_block_elements,text_inline_elements:e.text_inline_elements,valid_children:e.valid_children,valid_classes:e.valid_classes,valid_elements:e.valid_elements,valid_styles:e.valid_styles,verify_html:e.verify_html,whitespace_elements:e.whitespace_elements}))},hj=function(t){var e=_A(fj(t),t.schema);return e.addAttributeFilter("src,href,style,tabindex",(function(e,n){var r,o,i=e.length,a=t.dom,u="data-mce-"+n;while(i--)if(r=e[i],o=r.attr(n),o&&!r.attr(u)){if(0===o.indexOf("data:")||0===o.indexOf("blob:"))continue;"style"===n?(o=a.serializeStyle(a.parseStyle(o),r.name),o.length||(o=null),r.attr(u,o),r.attr(n,o)):"tabindex"===n?(r.attr(u,o),r.attr(n,null)):r.attr(u,t.convertURL(o,n,r.name))}})),e.addNodeFilter("script",(function(t){var e=t.length;while(e--){var n=t[e],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),t.settings.preserve_cdata&&e.addNodeFilter("#cdata",(function(e){var n=e.length;while(n--){var r=e[n];r.type=8,r.name="#comment",r.value="[CDATA["+t.dom.encode(r.value)+"]]"}})),e.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(e){var n=e.length,r=t.schema.getNonEmptyElements();while(n--){var o=e[n];o.isEmpty(r)&&0===o.getAll("br").length&&(o.append(new Ty("br",1)).shortEnded=!0)}})),e},pj=function(t){t.settings.auto_focus&&ci.setEditorTimeout(t,(function(){var e;e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus),e.destroyed||e.focus()}),100)},mj=function(t){var e=t.dom.getRoot();t.inline||fg(t)&&t.selection.getStart(!0)!==e||Rp(e).each((function(e){var n=e.getNode(),r=Wr(n)?Rp(n).getOr(e):e;Ke.browser.isIE()?kb(t,r.toRange()):t.selection.setRng(r.toRange())}))},gj=function(t){t.bindPendingEventDelegates(),t.initialized=!0,jg(t),t.focus(!0),mj(t),t.nodeChanged({initial:!0}),t.execCallback("init_instance_callback",t),pj(t)},vj=function(t){return t.inline?t.ui.styleSheetLoader:t.dom.styleSheetLoader},bj=function(t,e){var n=vj(t),r=function(){t.on("remove",(function(){return n.unloadAll(e)})),gj(t)};n.loadAll(e,r,r)},yj=function(t,e){var n=t.settings,r=t.getDoc(),o=t.getBody();n.browser_spellcheck||n.gecko_spellcheck||(r.body.spellcheck=!1,uj.setAttrib(o,"spellcheck","false")),t.quirks=aj(t),Mg(t);var i=$d(t);if(void 0!==i&&(o.dir=i),n.protect&&t.on("BeforeSetContent",(function(t){ln.each(n.protect,(function(e){t.content=t.content.replace(e,(function(t){return"\x3c!--mce:protected "+escape(t)+"--\x3e"}))}))})),t.on("SetContent",(function(){t.addVisual(t.getBody())})),!1===e&&t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),t.on("compositionstart compositionend",(function(e){t.composing="compositionstart"===e.type})),t.contentStyles.length>0){var a="";ln.each(t.contentStyles,(function(t){a+=t+"\r\n"})),t.dom.addStyle(a)}bj(t,t.contentCSS),n.content_style&&sj(t,n.content_style)},xj=function(t,e){var n=t.settings,r=t.getElement(),o=t.getDoc();n.inline||(t.getElement().style.visibility=t.orgVisibility),e||t.inline||(o.open(),o.write(t.iframeHTML),o.close()),t.inline&&(uj.addClass(r,"mce-content-body"),t.contentDocument=o=document,t.contentWindow=window,t.bodyElement=r,t.contentAreaContainer=r);var i=t.getBody();i.disabled=!0,t.readonly=!!n.readonly,t.readonly||(t.inline&&"static"===uj.getStyle(i,"position",!0)&&(i.style.position="relative"),i.contentEditable=t.getParam("content_editable_state",!0)),i.disabled=!1,t.editorUpload=pT(t),t.schema=du(n),t.dom=Tc(o,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:t.inline?t.getBody():null,collect:function(){return t.inline},schema:t.schema,contentCssCors:Bd(t),referrerPolicy:Ld(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=hj(t),t.serializer=$A(dj(t),t),t.selection=Y_(t.dom,t.getWin(),t.serializer,t),t.annotator=Sg(t),t.formatter=OT(t),t.undoManager=ET(t),t._nodeChangeDispatcher=new bM(t),t._selectionOverrides=ij(t),MB(t),wM(t),o_(t)||kM(t);var a=vM(t);IB(t,a),HB(t),MT(t),Pg(t),i_(t).fold((function(){yj(t,!1)}),(function(e){t.setProgressState(!0),e.then((function(e){t.setProgressState(!1),yj(t,e)}))}))},wj=Tc.DOM,Cj=function(t,e){if(document.domain!==window.location.hostname&&Ke.browser.isIE()){var n=fT("mce");t[n]=function(){xj(t)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return wj.setAttrib(e,"src",r),!0}return!1},Sj=function(t,e,n,r){var o=gn.fromTag("iframe");return uo(o,r),uo(o,{id:t+"_ifr",frameBorder:"0",allowTransparency:"true",title:e}),cl(o,"tox-edit-area__iframe"),o},kj=function(t){var e=sd(t)+"<html><head>";cd(t)!==t.documentBaseUrl&&(e+='<base href="'+t.documentBaseURI.getURI()+'" />'),e+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=ld(t),r=fd(t);return dd(t)&&(e+='<meta http-equiv="Content-Security-Policy" content="'+dd(t)+'" />'),e+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+t.id+'"><br></body></html>',e},Oj=function(t,e){var n=t.editorManager.translate("Rich Text Area. Press ALT-0 for help."),r=Sj(t.id,n,e.height,ud(t)).dom;r.onload=function(){r.onload=null,t.fire("load")};var o=Cj(t,r);return t.contentAreaContainer=e.iframeContainer,t.iframeElement=r,t.iframeHTML=kj(t),wj.add(e.iframeContainer,r),o},_j=function(t,e){var n=Oj(t,e);e.editorContainer&&(wj.get(e.editorContainer).style.display=t.orgDisplay,t.hidden=wj.isHidden(e.editorContainer)),t.getElement().style.display="none",wj.setAttrib(t.id,"aria-hidden","true"),n||xj(t)},Aj=Tc.DOM,Ej=function(t,e,n){var r=UE.get(n),o=UE.urls[n]||t.documentBaseUrl.replace(/\/$/,"");if(n=ln.trim(n),r&&-1===ln.inArray(e,n)){if(ln.each(UE.dependencies(n),(function(n){Ej(t,e,n)})),t.plugins[n])return;try{var i=new r(t,o,t.$);t.plugins[n]=i,i.init&&(i.init(t,o),e.push(n))}catch(gF){nT(t,n,gF)}}},Tj=function(t){return t.replace(/^\-/,"")},Dj=function(t){var e=[];ln.each(fh(t).split(/[ ,]/),(function(n){Ej(t,e,Tj(n))}))},Ij=function(t){var e=ln.trim(_d(t)),n=t.ui.registry.getAll().icons,r=Ht(Ht({},TE.get("default").icons),TE.get(e).icons);xt(r,(function(e,r){Dt(n,r)||t.ui.registry.addIcon(r,e)}))},Bj=function(t){var e=qd(t);if(L(e)){t.settings.theme=Tj(e);var n=WE.get(e);t.theme=new n(t,WE.urls[e]),t.theme.init&&t.theme.init(t,WE.urls[e]||t.documentBaseUrl.replace(/\/$/,""),t.$)}else t.theme={}},Lj=function(t){return t.theme.renderUI()},Nj=function(t){var e=t.getElement(),n=qd(t),r=n(t,e);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||t.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||t.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:e.offsetHeight,r},Pj=function(t){return{editorContainer:t,iframeContainer:t,api:{}}},Mj=function(t){var e=Aj.create("div");return Aj.insertAfter(e,t),Pj(e)},jj=function(t){var e=t.getElement();return t.inline?Pj(null):Mj(e)},Rj=function(t){var e=t.getElement();return t.orgDisplay=e.style.display,L(qd(t))?Lj(t):V(qd(t))?Nj(t):jj(t)},$j=function(t,e){var n={show:E.from(e.show).getOr(h),hide:E.from(e.hide).getOr(h),disable:E.from(e.disable).getOr(h),isDisabled:E.from(e.isDisabled).getOr(C),enable:function(){t.mode.isReadOnly()||E.from(e.enable).map(w)}};t.ui=Ht(Ht({},t.ui),n)},Fj=function(t){t.fire("ScriptsLoaded"),Ij(t),Bj(t),Dj(t);var e=Rj(t);$j(t,E.from(e.api).getOr({}));var n={editorContainer:e.editorContainer,iframeContainer:e.iframeContainer};return t.editorContainer=n.editorContainer?n.editorContainer:null,aT(t),t.inline?xj(t):_j(t,n)},Vj=Tc.DOM,Hj=function(t){return"-"===t.charAt(0)},zj=function(t,e){var n=Nd(e),r=Pd(e);if(!1===Zc.hasCode(n)&&"en"!==n){var o=""!==r?r:e.editorManager.baseURL+"/langs/"+n+".js";t.add(o,h,void 0,(function(){eT(e,o,n)}))}},Uj=function(t,e,n,r){var o=qd(e);if(L(o)){if(!Hj(o)&&!WE.urls.hasOwnProperty(o)){var i=Qd(e);i?WE.load(o,e.documentBaseURI.toAbsolute(i)):WE.load(o,"themes/"+o+"/theme"+n+".js")}t.loadQueue((function(){WE.waitFor(o,r)}))}else r()},Wj=function(t){return E.from(Ad(t)).filter((function(t){return t.length>0})).map((function(t){return{url:t,name:E.none()}}))},qj=function(t,e,n){return E.from(e).filter((function(t){return t.length>0&&!TE.has(t)})).map((function(e){return{url:t.editorManager.baseURL+"/icons/"+e+"/icons"+n+".js",name:E.some(e)}}))},Gj=function(t,e,n){var r=qj(e,"default",n),o=Wj(e).orThunk((function(){return qj(e,_d(e),"")}));Z(Ml([r,o]),(function(n){t.add(n.url,h,void 0,(function(){tT(e,n.url,n.name.getOrUndefined())}))}))},Yj=function(t,e){ln.each(dh(t),(function(e,n){UE.load(n,e,h,void 0,(function(){QE(t,e,n)})),t.settings.plugins+=" "+n})),ln.each(fh(t).split(/[ ,]/),(function(n){if(n=ln.trim(n),n&&!UE.urls[n])if(Hj(n)){n=n.substr(1,n.length);var r=UE.dependencies(n);ln.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+e+".js"},o=UE.createUrl(r,n);UE.load(o.resource,o,h,void 0,(function(){QE(t,o.prefix+o.resource+o.suffix,o.resource)}))}))}else{var o={prefix:"plugins/",resource:n,suffix:"/plugin"+e+".js"};UE.load(n,o,h,void 0,(function(){QE(t,o.prefix+o.resource+o.suffix,n)}))}}))},Xj=function(t,e){var n=jc.ScriptLoader;Uj(n,t,e,(function(){zj(n,t),Gj(n,t,e),Yj(t,e),n.loadQueue((function(){t.removed||Fj(t)}),t,(function(){t.removed||Fj(t)}))}))},Kj=function(t,e){return di.forElement(t,{contentCssCors:lh(e),referrerPolicy:Ld(e)})},Zj=function(t){var e=t.id;Zc.setCode(Nd(t));var n=function(){Vj.unbind(window,"ready",n),t.render()};if(Uu.Event.domLoaded){if(t.getElement()&&Ke.contentEditable){var r=gn.fromDom(t.getElement()),o=ho(r);t.on("remove",(function(){J(r.dom.attributes,(function(t){return fo(r,t.name)})),uo(r,o)})),t.ui.styleSheetLoader=Kj(r,t),th(t)?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var i=t.getElement().form||Vj.getParent(e,"form");i&&(t.formElement=i,eh(t)&&!Gr(t.getElement())&&(Vj.insertAfter(Vj.create("input",{type:"hidden",name:e}),e),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},Vj.bind(i,"submit reset",t.formEventDelegate),t.on("reset",(function(){t.resetContent()})),!nh(t)||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return t.editorManager.triggerSave(),t.setDirty(!1),i._mceOldSubmit(i)})),t.windowManager=GE(t),t.notificationManager=zE(t),rh(t)&&t.on("GetContent",(function(t){t.save&&(t.content=Vj.encode(t.content))})),oh(t)&&t.on("submit",(function(){t.initialized&&t.save()})),ih(t)&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),t.editorManager.add(t),Xj(t,t.suffix)}}else Vj.bind(window,"ready",n)},Jj=function(t,e){return B_(t,e)},Qj={"font-size":"size","font-family":"face"},tR=function(t,e,n){var r=function(e){return bo(e,t).orThunk((function(){return"font"===Ln(e)?Tt(Qj,t).bind((function(t){return co(e,t)})):E.none()}))},o=function(t){return Tn(gn.fromDom(e),t)};return hy(gn.fromDom(n),(function(t){return r(t)}),o)},eR=function(t){return t.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},nR=function(t,e){return E.from(Tc.DOM.getStyle(e,t,!0))},rR=function(t){return function(e,n){return E.from(n).map(gn.fromDom).filter(jn).bind((function(n){return tR(t,e,n.dom).or(nR(t,n.dom))})).getOr("")}},oR=rR("font-size"),iR=p(eR,rR("font-family")),aR=function(t){return Rp(t.getBody()).map((function(t){var e=t.container();return Yr(e)?e.parentNode:e}))},uR=function(t){return E.from(t.selection.getRng()).bind((function(e){var n=t.getBody(),r=e.startContainer===n&&0===e.startOffset;return r?E.none():E.from(t.selection.getStart(!0))}))},sR=function(t,e){return uR(t).orThunk(b(aR,t)).map(gn.fromDom).filter(jn).map(e)},cR=function(t,e){if(/^[0-9.]+$/.test(e)){var n=parseInt(e,10);if(n>=1&&n<=7){var r=xd(t),o=wd(t);return o?o[n-1]||e:r[n-1]||e}return e}return e},lR=function(t){var e=t.split(/\s*,\s*/);return K(e,(function(t){return-1===t.indexOf(" ")||ue(t,'"')||ue(t,"'")?t:"'"+t+"'"})).join(",")},fR=function(t,e){var n=cR(t,e);t.formatter.toggle("fontname",{value:lR(n)}),t.nodeChanged()},dR=function(t){return sR(t,(function(e){return iR(t.getBody(),e.dom)})).getOr("")},hR=function(t,e){t.formatter.toggle("fontsize",{value:cR(t,e)}),t.nodeChanged()},pR=function(t){return sR(t,(function(e){return oR(t.getBody(),e.dom)})).getOr("")},mR=function(t){return sR(t,(function(e){var n=gn.fromDom(t.getBody()),r=hy(e,(function(t){return bo(t,"line-height")}),b(Tn,n)),o=function(){var t=parseFloat(go(e,"line-height")),n=parseFloat(go(e,"font-size"));return String(t/n)};return r.getOrThunk(o)})).getOr("")},gR=function(t,e){t.undoManager.transact((function(){t.formatter.toggle("lineheight",{value:String(e)}),t.nodeChanged()}))},vR=function(t){var e;return"string"!==typeof t?(e=ln.extend({paste:t.paste,data:{paste:t.paste}},t),{content:t.content,details:e}):{content:t,details:{}}},bR=function(t,e){var n=vR(e);D_(t,n.content,n.details)},yR=ln.each,xR=ln.map,wR=ln.inArray,CR=function(){function t(t){this.commands={state:{},exec:{},value:{}},this.editor=t,this.setupCommands(t)}return t.prototype.execCommand=function(t,e,n,r){var o,i=!1,a=this;if(!a.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||r&&r.skip_focus?_b(a.editor):a.editor.focus(),r=a.editor.fire("BeforeExecCommand",{command:t,ui:e,value:n}),r.isDefaultPrevented())return!1;var u=t.toLowerCase();if(o=a.commands.exec[u])return o(u,e,n),a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0;if(yR(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(t,e,n))return a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),i=!0,!1})),i)return i;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(t,e,n))return a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0;try{i=a.editor.getDoc().execCommand(t,e,n)}catch(s){}return!!i&&(a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0)}},t.prototype.queryCommandState=function(t){var e;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(t=t.toLowerCase(),e=this.commands.state[t])return e(t);try{return this.editor.getDoc().queryCommandState(t)}catch(n){}return!1}},t.prototype.queryCommandValue=function(t){var e;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(t=t.toLowerCase(),e=this.commands.value[t])return e(t);try{return this.editor.getDoc().queryCommandValue(t)}catch(n){}}},t.prototype.addCommands=function(t,e){void 0===e&&(e="exec");var n=this;yR(t,(function(t,r){yR(r.toLowerCase().split(","),(function(r){n.commands[e][r]=t}))}))},t.prototype.addCommand=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.exec[t]=function(t,o,i,a){return e.call(n||r.editor,o,i,a)}},t.prototype.queryCommandSupported=function(t){if(t=t.toLowerCase(),this.commands.exec[t])return!0;try{return this.editor.getDoc().queryCommandSupported(t)}catch(e){}return!1},t.prototype.addQueryStateHandler=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.state[t]=function(){return e.call(n||r.editor)}},t.prototype.addQueryValueHandler=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.value[t]=function(){return e.call(n||r.editor)}},t.prototype.hasCustomCommand=function(t){return t=t.toLowerCase(),!!this.commands.exec[t]},t.prototype.execNativeCommand=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(t,e,n)},t.prototype.isFormatMatch=function(t){return this.editor.formatter.match(t)},t.prototype.toggleFormat=function(t,e){this.editor.formatter.toggle(t,e?{value:e}:void 0),this.editor.nodeChanged()},t.prototype.storeSelection=function(t){this.selectionBookmark=this.editor.selection.getBookmark(t)},t.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},t.prototype.setupCommands=function(t){var e=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){t.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=t.getDoc();try{e.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=t.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Ke.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),t.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(t.selection.isCollapsed()){var e=t.dom.getParent(t.selection.getStart(),"a");e&&t.dom.remove(e,!0)}else t.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),yR("left,center,right,justify".split(","),(function(e){r!==e&&t.formatter.remove("align"+e)})),"none"!==r&&e.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;e.execNativeCommand(n);var o=t.dom.getParent(t.selection.getNode(),"ol,ul");o&&(r=o.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(e.storeSelection(),t.dom.split(r,o),e.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(t){e.toggleFormat(t)},"ForeColor,HiliteColor":function(t,n,r){e.toggleFormat(t,r)},FontName:function(e,n,r){fR(t,r)},FontSize:function(e,n,r){hR(t,r)},LineHeight:function(e,n,r){gR(t,r)},RemoveFormat:function(e){t.formatter.remove(e)},mceBlockQuote:function(){e.toggleFormat("blockquote")},FormatBlock:function(t,n,r){return e.toggleFormat(r||"p")},mceCleanup:function(){var e=t.selection.getBookmark();t.setContent(t.getContent()),t.selection.moveToBookmark(e)},mceRemoveNode:function(n,r,o){var i=o||t.selection.getNode();i!==t.getBody()&&(e.storeSelection(),t.dom.remove(i,!0),e.restoreSelection())},mceSelectNodeDepth:function(e,n,r){var o=0;t.dom.getParent(t.selection.getNode(),(function(e){if(1===e.nodeType&&o++===r)return t.selection.select(e),!1}),t.getBody())},mceSelectNode:function(e,n,r){t.selection.select(r)},mceInsertContent:function(e,n,r){bR(t,r)},mceInsertRawHTML:function(e,n,r){t.selection.setContent("tiny_mce_marker");var o=t.getContent();t.setContent(o.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(e,n,r){QP(t,r)},mceToggleFormat:function(t,n,r){e.toggleFormat(r)},mceSetContent:function(e,n,r){t.setContent(r)},"Indent,Outdent":function(e){_B(t,e)},mceRepaint:function(){},InsertHorizontalRule:function(){t.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){t.hasVisual=!t.hasVisual,t.addVisual()},mceReplaceContent:function(e,n,r){t.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,t.selection.getContent({format:"text"})))},mceInsertLink:function(e,n,r){"string"===typeof r&&(r={href:r});var o=t.dom.getParent(t.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),o&&r.href||t.formatter.remove("link"),r.href&&t.formatter.apply("link",r,o)},selectAll:function(){var e=t.dom.getParent(t.selection.getStart(),to);if(e){var n=t.dom.createRng();n.selectNodeContents(e),t.selection.setRng(n)}},mceNewDocument:function(){t.setContent("")},InsertLineBreak:function(e,n,r){return MP(t,r),!0}});var n=function(e){return function(){var n=t.selection,r=n.isCollapsed()?[t.dom.getParent(n.getNode(),t.dom.isBlock)]:n.getSelectedBlocks(),o=xR(r,(function(n){return!!t.formatter.matchNode(n,e)}));return-1!==wR(o,!0)}};e.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(t){return e.isFormatMatch(t)},mceBlockQuote:function(){return e.isFormatMatch("blockquote")},Outdent:function(){return CB(t)},"InsertUnorderedList,InsertOrderedList":function(e){var n=t.dom.getParent(t.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===e&&"UL"===n.tagName||"insertorderedlist"===e&&"OL"===n.tagName)}},"state"),e.addCommands({Undo:function(){t.undoManager.undo()},Redo:function(){t.undoManager.redo()}}),e.addQueryValueHandler("FontName",(function(){return dR(t)}),this),e.addQueryValueHandler("FontSize",(function(){return pR(t)}),this),e.addQueryValueHandler("LineHeight",(function(){return mR(t)}),this)},t}(),SR="data-mce-contenteditable",kR=function(t,e,n){dl(t,e)&&!1===n?fl(t,e):n&&cl(t,e)},OR=function(t,e,n){try{t.getDoc().execCommand(e,!1,String(n))}catch(r){}},_R=function(t,e){t.dom.contentEditable=e?"true":"false"},AR=function(t){Z(pl(t,'*[contenteditable="true"]'),(function(t){ao(t,SR,"true"),_R(t,!1)}))},ER=function(t){Z(pl(t,"*["+SR+'="true"]'),(function(t){fo(t,SR),_R(t,!0)}))},TR=function(t){E.from(t.selection.getNode()).each((function(t){t.removeAttribute("data-mce-selected")}))},DR=function(t){t.selection.setRng(t.selection.getRng())},IR=function(t,e){var n=gn.fromDom(t.getBody());kR(n,"mce-content-readonly",e),e?(t.selection.controlSelection.hideResizeRect(),t._selectionOverrides.hideFakeCaret(),TR(t),t.readonly=!0,_R(n,!1),AR(n)):(t.readonly=!1,_R(n,!0),ER(n),OR(t,"StyleWithCSS",!1),OR(t,"enableInlineTableEditing",!1),OR(t,"enableObjectResizing",!1),Qb(t)&&t.focus(),DR(t),t.nodeChanged())},BR=function(t){return t.readonly},LR=function(t){t.parser.addAttributeFilter("contenteditable",(function(e){BR(t)&&Z(e,(function(t){t.attr(SR,t.attr("contenteditable")),t.attr("contenteditable","false")}))})),t.serializer.addAttributeFilter(SR,(function(e){BR(t)&&Z(e,(function(t){t.attr("contenteditable",t.attr(SR))}))})),t.serializer.addTempAttr(SR)},NR=function(t){t.serializer?LR(t):t.on("PreInit",(function(){LR(t)}))},PR=function(t){return"click"===t.type},MR=function(t,e){var n=function(e){return Tn(e,gn.fromDom(t.getBody()))};return ti(e,"a",n).bind((function(t){return co(t,"href")}))},jR=function(t,e){if(PR(e)&&!Fg.metaKeyPressed(e)){var n=gn.fromDom(e.target);MR(t,n).each((function(n){if(e.preventDefault(),/^#/.test(n)){var r=t.dom.select(n+',[name="'+ie(n,"#")+'"]');r.length&&t.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},RR=function(t){t.on("ShowCaret",(function(e){BR(t)&&e.preventDefault()})),t.on("ObjectSelected",(function(e){BR(t)&&e.preventDefault()}))},$R=ln.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),FR=function(){function t(t){this.bindings={},this.settings=t||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||C}return t.isNative=function(t){return!!$R[t.toLowerCase()]},t.prototype.fire=function(t,e){var n=t.toLowerCase(),r=e||{};r.type=n,r.target||(r.target=this.scope),r.preventDefault||(r.preventDefault=function(){r.isDefaultPrevented=S},r.stopPropagation=function(){r.isPropagationStopped=S},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=S},r.isDefaultPrevented=C,r.isPropagationStopped=C,r.isImmediatePropagationStopped=C),this.settings.beforeFire&&this.settings.beforeFire(r);var o=this.bindings[n];if(o)for(var i=0,a=o.length;i<a;i++){var u=o[i];if(u.once&&this.off(n,u.func),r.isImmediatePropagationStopped())return r.stopPropagation(),r;if(!1===u.func.call(this.scope,r))return r.preventDefault(),r}return r},t.prototype.on=function(t,e,n,r){if(!1===e&&(e=C),e){var o={func:e};r&&ln.extend(o,r);var i=t.toLowerCase().split(" "),a=i.length;while(a--){var u=i[a],s=this.bindings[u];s||(s=this.bindings[u]=[],this.toggleEvent(u,!0)),n?s.unshift(o):s.push(o)}}return this},t.prototype.off=function(t,e){var n=this;if(t){var r=t.toLowerCase().split(" "),o=r.length;while(o--){var i=r[o],a=this.bindings[i];if(!i)return xt(this.bindings,(function(t,e){n.toggleEvent(e,!1),delete n.bindings[e]})),this;if(a){if(e){var u=a.length;while(u--)a[u].func===e&&(a=a.slice(0,u).concat(a.slice(u+1)),this.bindings[i]=a)}else a.length=0;a.length||(this.toggleEvent(t,!1),delete this.bindings[i])}}}else xt(this.bindings,(function(t,e){n.toggleEvent(e,!1)})),this.bindings={};return this},t.prototype.once=function(t,e,n){return this.on(t,e,n,{once:!0})},t.prototype.has=function(t){return t=t.toLowerCase(),!(!this.bindings[t]||0===this.bindings[t].length)},t}(),VR=function(t){return t._eventDispatcher||(t._eventDispatcher=new FR({scope:t,toggleEvent:function(e,n){FR.isNative(e)&&t.toggleNativeEvent&&t.toggleNativeEvent(e,n)}})),t._eventDispatcher},HR={fire:function(t,e,n){var r=this;if(r.removed&&"remove"!==t&&"detach"!==t)return e;var o=VR(r).fire(t,e);if(!1!==n&&r.parent){var i=r.parent();while(i&&!o.isPropagationStopped())i.fire(t,o,!1),i=i.parent()}return o},on:function(t,e,n){return VR(this).on(t,e,n)},off:function(t,e){return VR(this).off(t,e)},once:function(t,e){return VR(this).once(t,e)},hasEventListeners:function(t){return VR(this).has(t)}},zR=Tc.DOM,UR=function(t,e){if("selectionchange"===e)return t.getDoc();if(!t.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(e))return t.getDoc().documentElement;var n=Ud(t);return n?(t.eventRoot||(t.eventRoot=zR.select(n)[0]),t.eventRoot):t.getBody()},WR=function(t){return!t.hidden&&!BR(t)},qR=function(t,e,n){WR(t)?t.fire(e,n):BR(t)&&jR(t,n)},GR=function(t,e){var n;if(t.delegates||(t.delegates={}),!t.delegates[e]&&!t.removed){var r=UR(t,e);if(Ud(t)){if(dL||(dL={},t.editorManager.on("removeEditor",(function(){t.editorManager.activeEditor||dL&&(xt(dL,(function(e,n){t.dom.unbind(UR(t,n))})),dL=null)}))),dL[e])return;n=function(n){var r=n.target,o=t.editorManager.get(),i=o.length;while(i--){var a=o[i].getBody();(a===r||zR.isChildOf(r,a))&&qR(o[i],e,n)}},dL[e]=n,zR.bind(r,e,n)}else n=function(n){qR(t,e,n)},zR.bind(r,e,n),t.delegates[e]=n}},YR=Ht(Ht({},HR),{bindPendingEventDelegates:function(){var t=this;ln.each(t._pendingNativeEvents,(function(e){GR(t,e)}))},toggleNativeEvent:function(t,e){var n=this;"focus"!==t&&"blur"!==t&&(e?n.initialized?GR(n,t):n._pendingNativeEvents?n._pendingNativeEvents.push(t):n._pendingNativeEvents=[t]:n.initialized&&(n.dom.unbind(UR(n,t),t,n.delegates[t]),delete n.delegates[t]))},unbindAllNativeEvents:function(){var t=this,e=t.getBody(),n=t.dom;t.delegates&&(xt(t.delegates,(function(e,n){t.dom.unbind(UR(t,n),n,e)})),delete t.delegates),!t.inline&&e&&n&&(e.onload=null,n.unbind(t.getWin()),n.unbind(t.getDoc())),n&&(n.unbind(e),n.unbind(t.getContainer()))}}),XR=["design","readonly"],KR=function(t,e,n,r){var o=n[e.get()],i=n[r];try{i.activate()}catch(gF){return void console.error("problem while activating editor mode "+r+":",gF)}o.deactivate(),o.editorReadOnly!==i.editorReadOnly&&IR(t,i.editorReadOnly),e.set(r),Bg(t,r)},ZR=function(t,e,n,r){if(r!==n.get()){if(!Dt(e,r))throw new Error("Editor mode '"+r+"' is invalid");t.initialized?KR(t,n,e,r):t.on("init",(function(){return KR(t,n,e,r)}))}},JR=function(t,e,n){var r;if(Y(XR,e))throw new Error("Cannot override default mode "+e);return Ht(Ht({},t),(r={},r[e]=Ht(Ht({},n),{deactivate:function(){try{n.deactivate()}catch(gF){console.error("problem while deactivating editor mode "+e+":",gF)}}}),r))},QR=function(t){var e=Rc("design"),n=Rc({design:{activate:h,deactivate:h,editorReadOnly:!1},readonly:{activate:h,deactivate:h,editorReadOnly:!0}});return NR(t),RR(t),{isReadOnly:function(){return BR(t)},set:function(r){return ZR(t,n.get(),e,r)},get:function(){return e.get()},register:function(t,e){n.set(JR(n.get(),t,e))}}},t$=ln.each,e$=ln.explode,n$={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},r$=ln.makeMap("alt,ctrl,shift,meta,access"),o$=function(){function t(t){this.shortcuts={},this.pendingPatterns=[],this.editor=t;var e=this;t.on("keyup keypress keydown",(function(t){!e.hasModifier(t)&&!e.isFunctionKey(t)||t.isDefaultPrevented()||(t$(e.shortcuts,(function(n){if(e.matchShortcut(t,n))return e.pendingPatterns=n.subpatterns.slice(0),"keydown"===t.type&&e.executeShortcutAction(n),!0})),e.matchShortcut(t,e.pendingPatterns[0])&&(1===e.pendingPatterns.length&&"keydown"===t.type&&e.executeShortcutAction(e.pendingPatterns[0]),e.pendingPatterns.shift()))}))}return t.prototype.add=function(t,e,n,r){var o=this,i=o.normalizeCommandFunc(n);return t$(e$(ln.trim(t)),(function(t){var n=o.createShortcut(t,e,i,r);o.shortcuts[n.id]=n})),!0},t.prototype.remove=function(t){var e=this.createShortcut(t);return!!this.shortcuts[e.id]&&(delete this.shortcuts[e.id],!0)},t.prototype.normalizeCommandFunc=function(t){var e=this,n=t;return"string"===typeof n?function(){e.editor.execCommand(n,!1,null)}:ln.isArray(n)?function(){e.editor.execCommand(n[0],n[1],n[2])}:n},t.prototype.parseShortcut=function(t){var e,n={};t$(e$(t.toLowerCase(),"+"),(function(t){t in r$?n[t]=!0:/^[0-9]{2,}$/.test(t)?n.keyCode=parseInt(t,10):(n.charCode=t.charCodeAt(0),n.keyCode=n$[t]||t.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(e in r$)n[e]?r.push(e):n[e]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,Ke.mac?n.ctrl=!0:n.shift=!0),n.meta&&(Ke.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},t.prototype.createShortcut=function(t,e,n,r){var o=ln.map(e$(t,">"),this.parseShortcut);return o[o.length-1]=ln.extend(o[o.length-1],{func:n,scope:r||this.editor}),ln.extend(o[0],{desc:this.editor.translate(e),subpatterns:o.slice(1)})},t.prototype.hasModifier=function(t){return t.altKey||t.ctrlKey||t.metaKey},t.prototype.isFunctionKey=function(t){return"keydown"===t.type&&t.keyCode>=112&&t.keyCode<=123},t.prototype.matchShortcut=function(t,e){return!!e&&(e.ctrl===t.ctrlKey&&e.meta===t.metaKey&&(e.alt===t.altKey&&e.shift===t.shiftKey&&(!!(t.keyCode===e.keyCode||t.charCode&&t.charCode===e.charCode)&&(t.preventDefault(),!0))))},t.prototype.executeShortcutAction=function(t){return t.func?t.func.call(t.scope):null},t}(),i$=function(){var t={},e={},n={},r={},o={},i={},a={},u=function(t,e){return function(n,r){return t[n.toLowerCase()]=Ht(Ht({},r),{type:e})}},s=function(t,e){return r[t.toLowerCase()]=e};return{addButton:u(t,"button"),addGroupToolbarButton:u(t,"grouptoolbarbutton"),addToggleButton:u(t,"togglebutton"),addMenuButton:u(t,"menubutton"),addSplitButton:u(t,"splitbutton"),addMenuItem:u(e,"menuitem"),addNestedMenuItem:u(e,"nestedmenuitem"),addToggleMenuItem:u(e,"togglemenuitem"),addAutocompleter:u(n,"autocompleter"),addContextMenu:u(o,"contextmenu"),addContextToolbar:u(i,"contexttoolbar"),addContextForm:u(i,"contextform"),addSidebar:u(a,"sidebar"),addIcon:s,getAll:function(){return{buttons:t,menuItems:e,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}}},a$=function(){var t=i$();return{addAutocompleter:t.addAutocompleter,addButton:t.addButton,addContextForm:t.addContextForm,addContextMenu:t.addContextMenu,addContextToolbar:t.addContextToolbar,addIcon:t.addIcon,addMenuButton:t.addMenuButton,addMenuItem:t.addMenuItem,addNestedMenuItem:t.addNestedMenuItem,addSidebar:t.addSidebar,addSplitButton:t.addSplitButton,addToggleButton:t.addToggleButton,addGroupToolbarButton:t.addGroupToolbarButton,addToggleMenuItem:t.addToggleMenuItem,getAll:t.getAll}},u$=ln.each,s$=ln.trim,c$="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),l$={ftp:21,http:80,https:443,mailto:25},f$=function(){function t(e,n){e=s$(e),this.settings=n||{};var r=this.settings.base_uri,o=this;if(/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e))o.source=e;else{var i=0===e.indexOf("//");if(0!==e.indexOf("/")||i||(e=(r&&r.protocol||"http")+"://mce_host"+e),!/^[\w\-]*:?\/\//.test(e)){var a=this.settings.base_uri?this.settings.base_uri.path:new t(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)e="//mce_host"+o.toAbsPath(a,e);else{var u=/([^#?]*)([#?]?.*)/.exec(e);e=(r&&r.protocol||"http")+"://mce_host"+o.toAbsPath(a,u[1])+u[2]}}e=e.replace(/@@/g,"(mce_at)");var s=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e);u$(c$,(function(t,e){var n=s[e];n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[t]=n})),r&&(o.protocol||(o.protocol=r.protocol),o.userInfo||(o.userInfo=r.userInfo),o.port||"mce_host"!==o.host||(o.port=r.port),o.host&&"mce_host"!==o.host||(o.host=r.host),o.source=""),i&&(o.protocol="")}}return t.parseDataUri=function(t){var e,n=decodeURIComponent(t).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(e=r[1]),{type:e,data:n[1]}},t.getDocumentBaseUrl=function(t){var e;return e=0!==t.protocol.indexOf("http")&&"file:"!==t.protocol?t.href:t.protocol+"//"+t.host+t.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(e)&&(e=e.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(e)||(e+="/")),e},t.prototype.setPath=function(t){var e=/^(.*?)\/?(\w+)?$/.exec(t);this.path=e[0],this.directory=e[1],this.file=e[2],this.source="",this.getURI()},t.prototype.toRelative=function(e){var n;if("./"===e)return e;var r=new t(e,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var o=this.getURI(),i=r.getURI();return o===i||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===i?o:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},t.prototype.toAbsolute=function(e,n){var r=new t(e,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},t.prototype.isSameOrigin=function(t){if(this.host==t.host&&this.protocol==t.protocol){if(this.port==t.port)return!0;var e=l$[this.protocol];if(e&&(this.port||e)==(t.port||e))return!0}return!1},t.prototype.toRelPath=function(t,e){var n,r,o=0,i="",a=t.substring(0,t.lastIndexOf("/")).split("/"),u=e.split("/");if(a.length>=u.length)for(n=0,r=a.length;n<r;n++)if(n>=u.length||a[n]!==u[n]){o=n+1;break}if(a.length<u.length)for(n=0,r=u.length;n<r;n++)if(n>=a.length||a[n]!==u[n]){o=n+1;break}if(1===o)return e;for(n=0,r=a.length-(o-1);n<r;n++)i+="../";for(n=o-1,r=u.length;n<r;n++)i+=n!==o-1?"/"+u[n]:u[n];return i},t.prototype.toAbsPath=function(t,e){var n,r,o=0,i=[],a=/\/$/.test(e)?"/":"",u=t.split("/"),s=e.split("/");for(u$(u,(function(t){t&&i.push(t)})),u=i,n=s.length-1,i=[];n>=0;n--)0!==s[n].length&&"."!==s[n]&&(".."!==s[n]?o>0?o--:i.push(s[n]):o++);return n=u.length-o,r=n<=0?ct(i).join("/"):u.slice(0,n).join("/")+"/"+ct(i).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},t.prototype.getURI=function(t){var e;return void 0===t&&(t=!1),this.source&&!t||(e="",t||(this.protocol?e+=this.protocol+"://":e+="//",this.userInfo&&(e+=this.userInfo+"@"),this.host&&(e+=this.host),this.port&&(e+=":"+this.port)),this.path&&(e+=this.path),this.query&&(e+="?"+this.query),this.anchor&&(e+="#"+this.anchor),this.source=e),this.source},t}(),d$=Tc.DOM,h$=ln.extend,p$=ln.each,m$=ln.resolve,g$=Ke.ie,v$=function(){function t(t,e,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,h$(this,YR),this.settings=SE(this,t,this.documentBaseUrl,n.defaultSettings,e),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(jc.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Tc.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),Qc.languageLoad=this.settings.language_load,Qc.baseURL=n.baseURL,this.id=t,this.setDirty(!1),this.documentBaseURI=new f$(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new o$(this),this.editorCommands=new CR(this),this.settings.cache_suffix&&(Ke.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:a$(),styleSheetLoader:void 0,show:h,hide:h,enable:h,disable:h,isDisabled:C};var o=this,i=QR(o);this.mode=i,this.setMode=i.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=xc.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return t.prototype.render=function(){Zj(this)},t.prototype.focus=function(t){ny(this,t)},t.prototype.hasFocus=function(){return Jb(this)},t.prototype.execCallback=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,o=this,i=o.settings[t];if(i)return o.callbackLookup&&(r=o.callbackLookup[t])&&(i=r.func,r=r.scope),"string"===typeof i&&(r=i.replace(/\.\w+$/,""),r=r?m$(r):0,i=m$(i),o.callbackLookup=o.callbackLookup||{},o.callbackLookup[t]={func:i,scope:r}),i.apply(r||o,e)},t.prototype.translate=function(t){return Zc.translate(t)},t.prototype.getParam=function(t,e,n){return AE(this,t,e,n)},t.prototype.hasPlugin=function(t,e){var n=Y(fh(this).split(/[ ,]/),t);return!!n&&(!e||void 0!==UE.get(t))},t.prototype.nodeChanged=function(t){this._nodeChangeDispatcher.nodeChanged(t)},t.prototype.addCommand=function(t,e,n){this.editorCommands.addCommand(t,e,n)},t.prototype.addQueryStateHandler=function(t,e,n){this.editorCommands.addQueryStateHandler(t,e,n)},t.prototype.addQueryValueHandler=function(t,e,n){this.editorCommands.addQueryValueHandler(t,e,n)},t.prototype.addShortcut=function(t,e,n,r){this.shortcuts.add(t,e,n,r)},t.prototype.execCommand=function(t,e,n,r){return this.editorCommands.execCommand(t,e,n,r)},t.prototype.queryCommandState=function(t){return this.editorCommands.queryCommandState(t)},t.prototype.queryCommandValue=function(t){return this.editorCommands.queryCommandValue(t)},t.prototype.queryCommandSupported=function(t){return this.editorCommands.queryCommandSupported(t)},t.prototype.show=function(){var t=this;t.hidden&&(t.hidden=!1,t.inline?t.getBody().contentEditable="true":(d$.show(t.getContainer()),d$.hide(t.id)),t.load(),t.fire("show"))},t.prototype.hide=function(){var t=this,e=t.getDoc();t.hidden||(g$&&e&&!t.inline&&e.execCommand("SelectAll"),t.save(),t.inline?(t.getBody().contentEditable="false",t===t.editorManager.focusedEditor&&(t.editorManager.focusedEditor=null)):(d$.hide(t.getContainer()),d$.setStyle(t.id,"display",t.orgDisplay)),t.hidden=!0,t.fire("hide"))},t.prototype.isHidden=function(){return!!this.hidden},t.prototype.setProgressState=function(t,e){this.fire("ProgressState",{state:t,time:e})},t.prototype.load=function(t){var e,n=this,r=n.getElement();if(n.removed)return"";if(r){t=t||{},t.load=!0;var o=Gr(r)?r.value:r.innerHTML;return e=n.setContent(o,t),t.element=r,t.no_events||n.fire("LoadContent",t),t.element=r=null,e}},t.prototype.save=function(t){var e,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return t=t||{},t.save=!0,t.element=o,e=t.content=r.getContent(t),t.no_events||r.fire("SaveContent",t),"raw"===t.format&&r.fire("RawSaveContent",t),e=t.content,Gr(o)?o.value=e:(!t.is_removing&&r.inline||(o.innerHTML=e),(n=d$.getParent(r.id,"form"))&&p$(n.elements,(function(t){if(t.name===r.id)return t.value=e,!1}))),t.element=o=null,!1!==t.set_dirty&&r.setDirty(!1),e},t.prototype.setContent=function(t,e){return HA(this,t,e)},t.prototype.getContent=function(t){return VA(this,t)},t.prototype.insertContent=function(t,e){e&&(t=h$({content:t},e)),this.execCommand("mceInsertContent",!1,t)},t.prototype.resetContent=function(t){void 0===t?HA(this,this.startContent,{format:"raw"}):HA(this,t),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},t.prototype.isDirty=function(){return!this.isNotDirty},t.prototype.setDirty=function(t){var e=!this.isNotDirty;this.isNotDirty=!t,t&&t!==e&&this.fire("dirty")},t.prototype.getContainer=function(){var t=this;return t.container||(t.container=d$.get(t.editorContainer||t.id+"_parent")),t.container},t.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},t.prototype.getElement=function(){return this.targetElm||(this.targetElm=d$.get(this.id)),this.targetElm},t.prototype.getWin=function(){var t,e=this;return e.contentWindow||(t=e.iframeElement,t&&(e.contentWindow=t.contentWindow)),e.contentWindow},t.prototype.getDoc=function(){var t,e=this;return e.contentDocument||(t=e.getWin(),t&&(e.contentDocument=t.document)),e.contentDocument},t.prototype.getBody=function(){var t=this.getDoc();return this.bodyElement||(t?t.body:null)},t.prototype.convertURL=function(t,e,n){var r=this,o=r.settings;return o.urlconverter_callback?r.execCallback("urlconverter_callback",t,n,!0,e):!o.convert_urls||n&&"LINK"===n.nodeName||0===t.indexOf("file:")||0===t.length?t:o.relative_urls?r.documentBaseURI.toRelative(t):(t=r.documentBaseURI.toAbsolute(t,o.remove_script_host),t)},t.prototype.addVisual=function(t){Jj(this,t)},t.prototype.remove=function(){YA(this)},t.prototype.destroy=function(t){XA(this,t)},t.prototype.uploadImages=function(t){return this.editorUpload.uploadImages(t)},t.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},t.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},t.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},t.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},t.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},t}(),b$=Tc.DOM,y$=ln.explode,x$=ln.each,w$=ln.extend,C$=0,S$=!1,k$=[],O$=[],_$=function(t){return"length"!==t},A$=function(t){var e=t.type;x$(B$.get(),(function(n){switch(e){case"scroll":n.fire("ScrollWindow",t);break;case"resize":n.fire("ResizeWindow",t);break}}))},E$=function(t){t!==S$&&(t?xc(window).on("resize scroll",A$):xc(window).off("resize scroll",A$),S$=t)},T$=function(t){var e=O$;delete k$[t.id];for(var n=0;n<k$.length;n++)if(k$[n]===t){k$.splice(n,1);break}return O$=tt(O$,(function(e){return t!==e})),B$.activeEditor===t&&(B$.activeEditor=O$.length>0?O$[0]:null),B$.focusedEditor===t&&(B$.focusedEditor=null),e.length!==O$.length},D$=function(t){return t&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(T$(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null),t},I$="CSS1Compat"!==document.compatMode,B$=Ht(Ht({},HR),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:xc,majorVersion:"5",minorVersion:"6.2",releaseDate:"2020-12-08",editors:k$,i18n:Zc,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var t,e,n=this,r="";e=f$.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(e)&&(e=e.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(e)||(e+="/"));var o=window.tinymce||window.tinyMCEPreInit;if(o)t=o.base||o.baseURL,r=o.suffix;else{for(var i=document.getElementsByTagName("script"),a=0;a<i.length;a++){var u=i[a].src||"";if(""!==u){var s=u.substring(u.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(u)){-1!==s.indexOf(".min")&&(r=".min"),t=u.substring(0,u.lastIndexOf("/"));break}}}if(!t&&document.currentScript){u=document.currentScript.src;-1!==u.indexOf(".min")&&(r=".min"),t=u.substring(0,u.lastIndexOf("/"))}}n.baseURL=new f$(e).toAbsolute(t),n.documentBaseURL=e,n.baseURI=new f$(n.baseURL),n.suffix=r,Hb(n)},overrideDefaults:function(t){var e=t.base_url;e&&this._setBaseUrl(e);var n=t.suffix;t.suffix&&(this.suffix=n),this.defaultSettings=t;var r=t.plugin_base_urls;void 0!==r&&xt(r,(function(t,e){Qc.PluginManager.urls[e]=t}))},init:function(t){var e,n=this,r=ln.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),o=function(t,e){return t.inline&&e.tagName.toLowerCase()in r},i=function(t){var e=t.id;return e||(e=Tt(t,"name").filter((function(t){return!b$.get(t)})).getOrThunk(b$.uniqueId),t.setAttribute("id",e)),e},a=function(e){var r=t[e];if(r)return r.apply(n,Array.prototype.slice.call(arguments,2))},u=function(t,e){return e.constructor===RegExp?e.test(t.className):b$.hasClass(t,e)},s=function(t){var e=[];if(Ke.browser.isIE()&&Ke.browser.version.major<11)return rT("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(I$)return rT("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(t.types)return x$(t.types,(function(t){e=e.concat(b$.select(t.selector))})),e;if(t.selector)return b$.select(t.selector);if(t.target)return[t.target];switch(t.mode){case"exact":var n=t.elements||"";n.length>0&&x$(y$(n),(function(t){var n=b$.get(t);n?e.push(n):x$(document.forms,(function(n){x$(n.elements,(function(n){n.name===t&&(t="mce_editor_"+C$++,b$.setAttrib(n,"id",t),e.push(n))}))}))}));break;case"textareas":case"specific_textareas":x$(b$.select("textarea"),(function(n){t.editor_deselector&&u(n,t.editor_deselector)||t.editor_selector&&!u(n,t.editor_selector)||e.push(n)}));break}return e},c=function(t){e=t},l=function(){var e,r=0,u=[],f=function(t,o,i){var a=new v$(t,o,n);u.push(a),a.on("init",(function(){++r===e.length&&c(u)})),a.targetElm=a.targetElm||i,a.render()};b$.unbind(window,"ready",l),a("onpageload"),e=xc.unique(s(t)),t.types?x$(t.types,(function(n){ln.each(e,(function(e){return!b$.is(e,n.selector)||(f(i(e),w$({},t,n),e),!1)}))})):(ln.each(e,(function(t){D$(n.get(t.id))})),e=ln.grep(e,(function(t){return!n.get(t.id)})),0===e.length?c([]):x$(e,(function(e){o(t,e)?rT("Could not initialize inline editor on invalid inline target element",e):f(i(e),t,e)})))};return n.settings=t,b$.bind(window,"ready",l),new ni((function(t){e?t(e):c=function(e){t(e)}}))},get:function(t){return 0===arguments.length?O$.slice(0):L(t)?ot(O$,(function(e){return e.id===t})).getOr(null):H(t)&&O$[t]?O$[t]:null},add:function(t){var e=this,n=k$[t.id];return n===t||(null===e.get(t.id)&&(_$(t.id)&&(k$[t.id]=t),k$.push(t),O$.push(t)),E$(!0),e.activeEditor=t,e.fire("AddEditor",{editor:t}),hL||(hL=function(t){var n=e.fire("BeforeUnload");if(n.returnValue)return t.preventDefault(),t.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",hL))),t},createEditor:function(t,e){return this.add(new v$(t,e,this))},remove:function(t){var e,n,r=this;if(t){if(!L(t))return n=t,M(r.get(n.id))?null:(T$(n)&&r.fire("RemoveEditor",{editor:n}),0===O$.length&&window.removeEventListener("beforeunload",hL),n.remove(),E$(O$.length>0),n);x$(b$.select(t),(function(t){n=r.get(t.id),n&&r.remove(n)}))}else for(e=O$.length-1;e>=0;e--)r.remove(O$[e])},execCommand:function(t,e,n){var r=this,o=r.get(n);switch(t){case"mceAddEditor":return r.get(n)||new v$(n,r.settings,r).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(r.execCommand("mceAddEditor",0,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(t,e,n)},triggerSave:function(){x$(O$,(function(t){t.save()}))},addI18n:function(t,e){Zc.add(t,e)},translate:function(t){return Zc.translate(t)},setActive:function(t){var e=this.activeEditor;this.activeEditor!==t&&(e&&e.fire("deactivate",{relatedTarget:t}),t.fire("activate",{relatedTarget:e})),this.activeEditor=t},_setBaseUrl:function(t){this.baseURL=new f$(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new f$(this.baseURL)}});B$.setup();var L$,N$,P$=Math.min,M$=Math.max,j$=Math.round,R$=function(t,e,n){var r=e.x,o=e.y,i=t.w,a=t.h,u=e.w,s=e.h,c=(n||"").split("");return"b"===c[0]&&(o+=s),"r"===c[1]&&(r+=u),"c"===c[0]&&(o+=j$(s/2)),"c"===c[1]&&(r+=j$(u/2)),"b"===c[3]&&(o-=a),"r"===c[4]&&(r-=i),"c"===c[3]&&(o-=j$(a/2)),"c"===c[4]&&(r-=j$(i/2)),z$(r,o,i,a)},$$=function(t,e,n,r){var o,i;for(i=0;i<r.length;i++)if(o=R$(t,e,r[i]),o.x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},F$=function(t,e,n){return z$(t.x-e,t.y-n,t.w+2*e,t.h+2*n)},V$=function(t,e){var n=M$(t.x,e.x),r=M$(t.y,e.y),o=P$(t.x+t.w,e.x+e.w),i=P$(t.y+t.h,e.y+e.h);return o-n<0||i-r<0?null:z$(n,r,o-n,i-r)},H$=function(t,e,n){var r=t.x,o=t.y,i=t.x+t.w,a=t.y+t.h,u=e.x+e.w,s=e.y+e.h,c=M$(0,e.x-r),l=M$(0,e.y-o),f=M$(0,i-u),d=M$(0,a-s);return r+=c,o+=l,n&&(i+=c,a+=l,r-=f,o-=d),i-=f,a-=d,z$(r,o,i-r,a-o)},z$=function(t,e,n,r){return{x:t,y:e,w:n,h:r}},U$=function(t){return z$(t.left,t.top,t.width,t.height)},W$={inflate:F$,relativePosition:R$,findBestRelativePosition:$$,intersect:V$,clamp:H$,create:z$,fromClientRect:U$},q$=function(t,e,n){void 0===n&&(n=1e3);var r=!1,o=null,i=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(r=!0,null!==o&&(clearTimeout(o),o=null),t.apply(null,e))}},a=i(t),u=i(e),s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r||null!==o||(o=setTimeout((function(){return u.apply(null,t)}),n))};return{start:s,resolve:a,reject:u}},G$=function(){var t={},e={},n=function(n,r){var o='Script at URL "'+r+'" failed to load',i='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==t[n])return t[n];var a=new ni((function(t,a){var u=q$(t,a);e[n]=u.resolve,jc.ScriptLoader.loadScript(r,(function(){return u.start(i)}),(function(){return u.reject(o)}))}));return t[n]=a,a},r=function(n,r){void 0!==e[n]&&(e[n](r),delete e[n]),t[n]=ni.resolve(r)};return{load:n,add:r}},Y$=G$(),X$=ln.each,K$=ln.extend,Z$=function(){};Z$.extend=L$=function(t){var e=this,n=e.prototype,r=function(){var t,e,n,r=this;if(!N$&&(r.init&&r.init.apply(r,arguments),e=r.Mixins,e)){t=e.length;while(t--)n=e[t],n.init&&n.init.apply(r,arguments)}},o=function(){return this},i=function(t,e){return function(){var r=this,o=r._super;r._super=n[t];var i=e.apply(r,arguments);return r._super=o,i}};N$=!0;var a=new e;return N$=!1,t.Mixins&&(X$(t.Mixins,(function(e){for(var n in e)"init"!==n&&(t[n]=e[n])})),n.Mixins&&(t.Mixins=n.Mixins.concat(t.Mixins))),t.Methods&&X$(t.Methods.split(","),(function(e){t[e]=o})),t.Properties&&X$(t.Properties.split(","),(function(e){var n="_"+e;t[e]=function(t){var e=this;return void 0!==t?(e[n]=t,e):e[n]}})),t.Statics&&X$(t.Statics,(function(t,e){r[e]=t})),t.Defaults&&n.Defaults&&(t.Defaults=K$({},n.Defaults,t.Defaults)),xt(t,(function(t,e){"function"===typeof t&&n[e]?a[e]=i(e,t):a[e]=t})),r.prototype=a,r.constructor=r,r.extend=L$,r};var J$,Q$=Math.min,tF=Math.max,eF=Math.round,nF=function(t){var e={},n=0,r=0,o=0,i=function(t,e,n){var r,o,i;r=0,o=0,i=0,t/=255,e/=255,n/=255;var a=Q$(t,Q$(e,n)),u=tF(t,tF(e,n));if(a===u)return i=a,{h:0,s:0,v:100*i};var s=t===a?e-n:n===a?t-e:n-t;return r=t===a?3:n===a?1:5,r=60*(r-s/(u-a)),o=(u-a)/u,i=u,{h:eF(r),s:eF(100*o),v:eF(100*i)}},a=function(t,e,i){if(t=(parseInt(t,10)||0)%360,e=parseInt(e,10)/100,i=parseInt(i,10)/100,e=tF(0,Q$(e,1)),i=tF(0,Q$(i,1)),0!==e){var a=t/60,u=i*e,s=u*(1-Math.abs(a%2-1)),c=i-u;switch(Math.floor(a)){case 0:n=u,r=s,o=0;break;case 1:n=s,r=u,o=0;break;case 2:n=0,r=u,o=s;break;case 3:n=0,r=s,o=u;break;case 4:n=s,r=0,o=u;break;case 5:n=u,r=0,o=s;break;default:n=r=o=0}n=eF(255*(n+c)),r=eF(255*(r+c)),o=eF(255*(o+c))}else n=r=o=eF(255*i)},u=function(){var t=function(t){return t=parseInt(t,10).toString(16),t.length>1?t:"0"+t};return"#"+t(n)+t(r)+t(o)},s=function(){return{r:n,g:r,b:o}},c=function(){return i(n,r,o)},l=function(t){var i;return"object"===typeof t?"r"in t?(n=t.r,r=t.g,o=t.b):"v"in t&&a(t.h,t.s,t.v):(i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(t))?(n=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10)):(i=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(t))?(n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16)):(i=/#([0-F])([0-F])([0-F])/gi.exec(t))&&(n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),o=parseInt(i[3]+i[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,e};return t&&l(t),e.toRgb=s,e.toHsv=c,e.toHex=u,e.parse=l,e},rF=function(t){var e=JSON.stringify(t);return L(e)?e.replace(/[\u0080-\uFFFF]/g,(function(t){var e=t.charCodeAt(0).toString(16);return"\\u"+"0000".substring(e.length)+e})):e},oF={serialize:rF,parse:function(t){try{return JSON.parse(t)}catch(e){}}},iF={callbacks:{},count:0,send:function(t){var e=this,n=Tc.DOM,r=void 0!==t.count?t.count:e.count,o="tinymce_jsonp_"+r;e.callbacks[r]=function(i){n.remove(o),delete e.callbacks[r],t.callback(i)},n.add(n.doc.body,"script",{id:o,src:t.url,type:"text/javascript"}),e.count++}},aF=Ht(Ht({},HR),{send:function(t){var e,n=0,r=function(){!t.async||4===e.readyState||n++>1e4?(t.success&&n<1e4&&200===e.status?t.success.call(t.success_scope,""+e.responseText,e,t):t.error&&t.error.call(t.error_scope,n>1e4?"TIMED_OUT":"GENERAL",e,t),e=null):ci.setTimeout(r,10)};if(t.scope=t.scope||this,t.success_scope=t.success_scope||t.scope,t.error_scope=t.error_scope||t.scope,t.async=!1!==t.async,t.data=t.data||"",aF.fire("beforeInitialize",{settings:t}),e=new XMLHttpRequest,e.overrideMimeType&&e.overrideMimeType(t.content_type),e.open(t.type||(t.data?"POST":"GET"),t.url,t.async),t.crossDomain&&(e.withCredentials=!0),t.content_type&&e.setRequestHeader("Content-Type",t.content_type),t.requestheaders&&ln.each(t.requestheaders,(function(t){e.setRequestHeader(t.key,t.value)})),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e=aF.fire("beforeSend",{xhr:e,settings:t}).xhr,e.send(t.data),!t.async)return r();ci.setTimeout(r,10)}}),uF=ln.extend,sF=function(){function t(t){this.settings=uF({},t),this.count=0}return t.sendRPC=function(e){return(new t).send(e)},t.prototype.send=function(t){var e=t.error,n=t.success,r=uF(this.settings,t);r.success=function(t,o){t=oF.parse(t),"undefined"===typeof t&&(t={error:"JSON Parse error."}),t.error?e.call(r.error_scope||r.scope,t.error,o):n.call(r.success_scope||r.scope,t.result)},r.error=function(t,n){e&&e.call(r.error_scope||r.scope,t,n)},r.data=oF.serialize({id:t.id||"c"+this.count++,method:t.method,params:t.params}),r.content_type="application/json",aF.send(r)},t}(),cF=function(){return function(){var t={},e=[],n={getItem:function(e){var n=t[e];return n||null},setItem:function(n,r){e.push(n),t[n]=String(r)},key:function(t){return e[t]},removeItem:function(n){e=e.filter((function(t){return t===n})),delete t[n]},clear:function(){e=[],t={}},length:0};return Object.defineProperty(n,"length",{get:function(){return e.length},configurable:!1,enumerable:!1}),n}()};try{var lF="__storage_test__";J$=window.localStorage,J$.setItem(lF,lF),J$.removeItem(lF)}catch(gF){J$=cF()}var fF=J$,dF={geom:{Rect:W$},util:{Promise:ni,Delay:ci,Tools:ln,VK:Fg,URI:f$,Class:Z$,EventDispatcher:FR,Observable:HR,I18n:Zc,XHR:aF,JSON:oF,JSONRequest:sF,JSONP:iF,LocalStorage:fF,Color:nF},dom:{EventUtils:Uu,Sizzle:Es,DomQuery:xc,TreeWalker:hi,TextSeeker:Pl,DOMUtils:Tc,ScriptLoader:jc,RangeUtils:lv,Serializer:$A,StyleSheetLoader:li,ControlSelection:Hg,BookmarkManager:Og,Selection:Y_,Event:Uu.Event},html:{Styles:Bu,Entities:eu,Node:Ty,Schema:du,SaxParser:Wy,DomParser:_A,Writer:Iy,Serializer:By},Env:Ke,AddOnManager:Qc,Annotator:Sg,Formatter:OT,UndoManager:ET,EditorCommands:CR,WindowManager:GE,NotificationManager:zE,EditorObservable:YR,Shortcuts:o$,Editor:v$,FocusManager:Eb,EditorManager:B$,DOM:Tc.DOM,ScriptLoader:jc.ScriptLoader,PluginManager:UE,ThemeManager:WE,IconManager:TE,Resource:Y$,trim:ln.trim,isArray:ln.isArray,is:ln.is,toArray:ln.toArray,makeMap:ln.makeMap,each:ln.each,map:ln.map,grep:ln.grep,inArray:ln.inArray,extend:ln.extend,create:ln.create,walk:ln.walk,createNS:ln.createNS,resolve:ln.resolve,explode:ln.explode,_addCacheSuffix:ln._addCacheSuffix,isOpera:Ke.opera,isWebKit:Ke.webkit,isIE:Ke.ie,isGecko:Ke.gecko,isMac:Ke.mac},hF=ln.extend(B$,dF),pF=function(e){try{t.exports=e}catch(n){}},mF=function(t){window.tinymce=t,window.tinyMCE=t};mF(hF),pF(hF)})()}).call(this,n("c8ba"))},e58c:function(t,e,n){"use strict";var r=n("fc6a"),o=n("a691"),i=n("50c4"),a=n("a640"),u=n("ae40"),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),d=u("indexOf",{ACCESSORS:!0,1:0}),h=l||!f||!d;t.exports=h?function(t){if(l)return c.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=s(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:c},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6cf:function(t,e,n){"use strict";var r,o,i,a,u=n("23e7"),s=n("c430"),c=n("da84"),l=n("d066"),f=n("fea9"),d=n("6eeb"),h=n("e2cc"),p=n("d44e"),m=n("2626"),g=n("861d"),v=n("1c0b"),b=n("19aa"),y=n("8925"),x=n("2266"),w=n("1c7e"),C=n("4840"),S=n("2cf4").set,k=n("b575"),O=n("cdf9"),_=n("44de"),A=n("f069"),E=n("e667"),T=n("69f3"),D=n("94ca"),I=n("b622"),B=n("605d"),L=n("2d00"),N=I("species"),P="Promise",M=T.get,j=T.set,R=T.getterFor(P),$=f,F=c.TypeError,V=c.document,H=c.process,z=l("fetch"),U=A.f,W=U,q=!!(V&&V.createEvent&&c.dispatchEvent),G="function"==typeof PromiseRejectionEvent,Y="unhandledrejection",X="rejectionhandled",K=0,Z=1,J=2,Q=1,tt=2,et=D(P,(function(){var t=y($)!==String($);if(!t){if(66===L)return!0;if(!B&&!G)return!0}if(s&&!$.prototype["finally"])return!0;if(L>=51&&/native code/.test($))return!1;var e=$.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[N]=n,!(e.then((function(){}))instanceof n)})),nt=et||!w((function(t){$.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},ot=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;k((function(){var r=t.value,o=t.state==Z,i=0;while(n.length>i){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,h=c.domain;try{l?(o||(t.rejection===tt&&st(t),t.rejection=Q),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),s=!0)),a===c.promise?d(F("Promise-chain cycle")):(u=rt(a))?u.call(a,f,d):f(a)):d(r)}catch(p){h&&!s&&h.exit(),d(p)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&at(t)}))}},it=function(t,e,n){var r,o;q?(r=V.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!G&&(o=c["on"+t])?o(r):t===Y&&_("Unhandled promise rejection",n)},at=function(t){S.call(c,(function(){var e,n=t.facade,r=t.value,o=ut(t);if(o&&(e=E((function(){B?H.emit("unhandledRejection",r,n):it(Y,n,r)})),t.rejection=B||ut(t)?tt:Q,e.error))throw e.value}))},ut=function(t){return t.rejection!==Q&&!t.parent},st=function(t){S.call(c,(function(){var e=t.facade;B?H.emit("rejectionHandled",e):it(X,e,t.value)}))},ct=function(t,e,n){return function(r){t(e,r,n)}},lt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=J,ot(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw F("Promise can't be resolved itself");var r=rt(e);r?k((function(){var n={done:!1};try{r.call(e,ct(ft,n,t),ct(lt,n,t))}catch(o){lt(n,o,t)}})):(t.value=e,t.state=Z,ot(t,!1))}catch(o){lt({done:!1},o,t)}}};et&&($=function(t){b(this,$,P),v(t),r.call(this);var e=M(this);try{t(ct(ft,e),ct(lt,e))}catch(n){lt(e,n)}},r=function(t){j(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:K,value:void 0})},r.prototype=h($.prototype,{then:function(t,e){var n=R(this),r=U(C(this,$));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=B?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=K&&ot(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=M(t);this.promise=t,this.resolve=ct(ft,e),this.reject=ct(lt,e)},A.f=U=function(t){return t===$||t===i?new o(t):W(t)},s||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(t,e){var n=this;return new $((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof z&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return O($,z.apply(c,arguments))}}))),u({global:!0,wrap:!0,forced:et},{Promise:$}),p($,P,!1,!0),m(P),i=l(P),u({target:P,stat:!0,forced:et},{reject:function(t){var e=U(this);return e.reject.call(void 0,t),e.promise}}),u({target:P,stat:!0,forced:s||et},{resolve:function(t){return O(s&&this===i?$:this,t)}}),u({target:P,stat:!0,forced:nt},{all:function(t){var e=this,n=U(e),r=n.resolve,o=n.reject,i=E((function(){var n=v(e.resolve),i=[],a=0,u=1;x(t,(function(t){var s=a++,c=!1;i.push(void 0),u++,n.call(e,t).then((function(t){c||(c=!0,i[s]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=U(e),r=n.reject,o=E((function(){var o=v(e.resolve);x(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},e707:function(t,e,n){"use strict";n("caad"),n("a9e3"),n("2532");var r=n("5530"),o=(n("3c93"),n("a9ad")),i=n("7560"),a=n("f2e7"),u=n("58df"),s=Object(u["a"])(o["a"],i["a"],a["a"]).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim:function(){var t=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",t)},classes:function(){return Object(r["a"])({"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive},this.themeClasses)},computedOpacity:function(){return Number(this.isActive?this.opacity:0)},styles:function(){return{zIndex:this.zIndex}}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-overlay__content"},this.$slots.default)}},render:function(t){var e=[this.__scrim];return this.isActive&&e.push(this.genContent()),t("div",{staticClass:"v-overlay",class:this.classes,style:this.styles},e)}}),c=s,l=n("80d2"),f=n("2b0e");e["a"]=f["a"].extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data:function(){return{animationFrame:0,overlay:null}},watch:{hideOverlay:function(t){this.isActive&&(t?this.removeOverlay():this.genOverlay())}},beforeDestroy:function(){this.removeOverlay()},methods:{createOverlay:function(){var t=new c({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});t.$mount();var e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");e&&e.insertBefore(t.$el,e.firstChild),this.overlay=t},genOverlay:function(){var t=this;if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame((function(){t.overlay&&(void 0!==t.activeZIndex?t.overlay.zIndex=String(t.activeZIndex-1):t.$el&&(t.overlay.zIndex=Object(l["u"])(t.$el)),t.overlay.value=!0)})),!0},removeOverlay:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.overlay&&(Object(l["a"])(this.overlay.$el,"transitionend",(function(){t.overlay&&t.overlay.$el&&t.overlay.$el.parentNode&&!t.overlay.value&&(t.overlay.$el.parentNode.removeChild(t.overlay.$el),t.overlay.$destroy(),t.overlay=null)})),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),e&&this.showScroll()},scrollListener:function(t){if("keydown"===t.type){if(["INPUT","TEXTAREA","SELECT"].includes(t.target.tagName)||t.target.isContentEditable)return;var e=[l["y"].up,l["y"].pageup],n=[l["y"].down,l["y"].pagedown];if(e.includes(t.keyCode))t.deltaY=-1;else{if(!n.includes(t.keyCode))return;t.deltaY=1}}(t.target===this.overlay||"keydown"!==t.type&&t.target===document.body||this.checkPath(t))&&t.preventDefault()},hasScrollbar:function(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(t);return["auto","scroll"].includes(e.overflowY)&&t.scrollHeight>t.clientHeight},shouldScroll:function(t,e){return 0===t.scrollTop&&e<0||t.scrollTop+t.clientHeight===t.scrollHeight&&e>0},isInside:function(t,e){return t===e||null!==t&&t!==document.body&&this.isInside(t.parentNode,e)},checkPath:function(t){var e=t.path||this.composedPath(t),n=t.deltaY;if("keydown"===t.type&&e[0]===document.body){var r=this.$refs.dialog,o=window.getSelection().anchorNode;return!(r&&this.hasScrollbar(r)&&this.isInside(o,r))||this.shouldScroll(r,n)}for(var i=0;i<e.length;i++){var a=e[i];if(a===document)return!0;if(a===document.documentElement)return!0;if(a===this.$refs.content)return!0;if(this.hasScrollbar(a))return this.shouldScroll(a,n)}return!0},composedPath:function(t){if(t.composedPath)return t.composedPath();var e=[],n=t.target;while(n){if(e.push(n),"HTML"===n.tagName)return e.push(document),e.push(window),e;n=n.parentElement}return e},hideScroll:function(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(Object(l["b"])(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll:function(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}})},e893:function(t,e,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=o(e),u=a.f,s=i.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||u(t,l,s(e,l))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e8f2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("99af"),n("4de4"),n("a15b"),n("b64b"),n("2ca0"),n("498a");var r=n("2b0e");function o(t){return r["a"].extend({name:"v-".concat(t),functional:!0,props:{id:String,tag:{type:String,default:"div"}},render:function(e,n){var r=n.props,o=n.data,i=n.children;o.staticClass="".concat(t," ").concat(o.staticClass||"").trim();var a=o.attrs;if(a){o.attrs={};var u=Object.keys(a).filter((function(t){if("slot"===t)return!1;var e=a[t];return t.startsWith("data-")?(o.attrs[t]=e,!1):e||"string"===typeof e}));u.length&&(o.staticClass+=" ".concat(u.join(" ")))}return r.id&&(o.domProps=o.domProps||{},o.domProps.id=r.id),e(r.tag,o,i)}})}},e91f:function(t,e,n){"use strict";var r=n("ebb5"),o=n("4d64").indexOf,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("indexOf",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},e95a:function(t,e,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},e9b1:function(t,e,n){},ebb5:function(t,e,n){"use strict";var r,o=n("a981"),i=n("83ab"),a=n("da84"),u=n("861d"),s=n("5135"),c=n("f5df"),l=n("9112"),f=n("6eeb"),d=n("9bf2").f,h=n("e163"),p=n("d2bb"),m=n("b622"),g=n("90e3"),v=a.Int8Array,b=v&&v.prototype,y=a.Uint8ClampedArray,x=y&&y.prototype,w=v&&h(v),C=b&&h(b),S=Object.prototype,k=S.isPrototypeOf,O=m("toStringTag"),_=g("TYPED_ARRAY_TAG"),A=o&&!!p&&"Opera"!==c(a.opera),E=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},I=function(t){if(!u(t))return!1;var e=c(t);return"DataView"===e||s(T,e)||s(D,e)},B=function(t){if(!u(t))return!1;var e=c(t);return s(T,e)||s(D,e)},L=function(t){if(B(t))return t;throw TypeError("Target is not a typed array")},N=function(t){if(p){if(k.call(w,t))return t}else for(var e in T)if(s(T,r)){var n=a[e];if(n&&(t===n||k.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},P=function(t,e,n){if(i){if(n)for(var r in T){var o=a[r];o&&s(o.prototype,t)&&delete o.prototype[t]}C[t]&&!n||f(C,t,n?e:A&&b[t]||e)}},M=function(t,e,n){var r,o;if(i){if(p){if(n)for(r in T)o=a[r],o&&s(o,t)&&delete o[t];if(w[t]&&!n)return;try{return f(w,t,n?e:A&&v[t]||e)}catch(u){}}for(r in T)o=a[r],!o||o[t]&&!n||f(o,t,e)}};for(r in T)a[r]||(A=!1);if((!A||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},A))for(r in T)a[r]&&p(a[r],w);if((!A||!C||C===S)&&(C=w.prototype,A))for(r in T)a[r]&&p(a[r].prototype,C);if(A&&h(x)!==C&&p(x,C),i&&!s(C,O))for(r in E=!0,d(C,O,{get:function(){return u(this)?this[_]:void 0}}),T)a[r]&&l(a[r],_,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_TAG:E&&_,aTypedArray:L,aTypedArrayConstructor:N,exportTypedArrayMethod:P,exportTypedArrayStaticMethod:M,isView:I,isTypedArray:B,TypedArray:w,TypedArrayPrototype:C}},ec29:function(t,e,n){},ee6f:function(t,e,n){},ef1f:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t,e){t.focus(),t.undoManager.transact((function(){t.setContent(e)})),t.selection.setCursorLocation(),t.nodeChanged()},n=function(t){return t.getContent({source_view:!0})},r=function(t){var r=n(t);t.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:r},onSubmit:function(n){e(t,n.getData().code),n.close()}})},o=function(t){t.addCommand("mceCodeEditor",(function(){r(t)}))},i=function(t){t.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return r(t)}}),t.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return r(t)}})};function a(){t.add("code",(function(t){return o(t),i(t),{}}))}a()})()},f069:function(t,e,n){"use strict";var r=n("1c0b"),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},f183:function(t,e,n){var r=n("d012"),o=n("861d"),i=n("5135"),a=n("9bf2").f,u=n("90e3"),s=n("bb2f"),c=u("meta"),l=0,f=Object.isExtensible||function(){return!0},d=function(t){a(t,c,{value:{objectID:"O"+ ++l,weakData:{}}})},h=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,c)){if(!f(t))return"F";if(!e)return"E";d(t)}return t[c].objectID},p=function(t,e){if(!i(t,c)){if(!f(t))return!0;if(!e)return!1;d(t)}return t[c].weakData},m=function(t){return s&&g.REQUIRED&&f(t)&&!i(t,c)&&d(t),t},g=t.exports={REQUIRED:!1,fastKey:h,getWeakData:p,onFreeze:m};r[c]=!0},f2e7:function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));var r=n("ade3"),o=n("2b0e");function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input";return o["a"].extend({name:"toggleable",model:{prop:e,event:n},props:Object(r["a"])({},e,{required:!1}),data:function(){return{isActive:!!this[e]}},watch:(t={},Object(r["a"])(t,e,(function(t){this.isActive=!!t})),Object(r["a"])(t,"isActive",(function(t){!!t!==this[e]&&this.$emit(n,t)})),t)})}var a=i();e["a"]=a},f309:function(t,e,n){"use strict";n.d(e,"a",(function(){return kt}));var r={};n.r(r),n.d(r,"linear",(function(){return C})),n.d(r,"easeInQuad",(function(){return S})),n.d(r,"easeOutQuad",(function(){return k})),n.d(r,"easeInOutQuad",(function(){return O})),n.d(r,"easeInCubic",(function(){return _})),n.d(r,"easeOutCubic",(function(){return A})),n.d(r,"easeInOutCubic",(function(){return E})),n.d(r,"easeInQuart",(function(){return T})),n.d(r,"easeOutQuart",(function(){return D})),n.d(r,"easeInOutQuart",(function(){return I})),n.d(r,"easeInQuint",(function(){return B})),n.d(r,"easeOutQuint",(function(){return L})),n.d(r,"easeInOutQuint",(function(){return N}));n("4160"),n("caad"),n("2532"),n("159b");var o=n("d4ec"),i=n("bee2"),a=n("2b0e"),u=n("d9bd");function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!s.installed){s.installed=!0,a["a"]!==t&&Object(u["b"])("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this");var n=e.components||{},r=e.directives||{};for(var o in r){var i=r[o];t.directive(o,i)}(function e(n){if(n){for(var r in n){var o=n[r];o&&!e(o.$_vuetify_subcomponents)&&t.component(r,o)}return!0}return!1})(n),t.$_vuetify_installed||(t.$_vuetify_installed=!0,t.mixin({beforeCreate:function(){var e=this.$options;e.vuetify?(e.vuetify.init(this,this.$ssrContext),this.$vuetify=t.observable(e.vuetify.framework)):this.$vuetify=e.parent&&e.parent.$vuetify||this},beforeMount:function(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted:function(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}}var c=n("15fd"),l=n("262e"),f=n("2caf"),d=(n("95ed"),{badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}}}),h={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:d},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}},p=n("80d2"),m=function(){function t(){Object(o["a"])(this,t),this.framework={}}return Object(i["a"])(t,[{key:"init",value:function(t,e){}}]),t}(),g=function(t){Object(l["a"])(n,t);var e=Object(f["a"])(n);function n(t,r){var i;Object(o["a"])(this,n),i=e.call(this);var a=Object(p["A"])({},h),s=r.userPreset,l=s.preset,f=void 0===l?{}:l,d=Object(c["a"])(s,["preset"]);return null!=f.preset&&Object(u["c"])("Global presets do not support the **preset** option, it can be safely omitted"),r.preset=Object(p["A"])(Object(p["A"])(a,f),d),i}return n}(m);g.property="presets";n("13d5"),n("07ac");var v=n("ade3"),b=function(t){Object(l["a"])(n,t);var e=Object(f["a"])(n);function n(){var t;return Object(o["a"])(this,n),t=e.apply(this,arguments),t.bar=0,t.top=0,t.left=0,t.insetFooter=0,t.right=0,t.bottom=0,t.footer=0,t.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}},t}return Object(i["a"])(n,[{key:"register",value:function(t,e,n){this.application[e]=Object(v["a"])({},t,n),this.update(e)}},{key:"unregister",value:function(t,e){null!=this.application[e][t]&&(delete this.application[e][t],this.update(e))}},{key:"update",value:function(t){this[t]=Object.values(this.application[t]).reduce((function(t,e){return t+e}),0)}}]),n}(m);b.property="application";n("b0c0");var y=function(t){Object(l["a"])(n,t);var e=Object(f["a"])(n);function n(t){var r;Object(o["a"])(this,n),r=e.call(this),r.xs=!1,r.sm=!1,r.md=!1,r.lg=!1,r.xl=!1,r.xsOnly=!1,r.smOnly=!1,r.smAndDown=!1,r.smAndUp=!1,r.mdOnly=!1,r.mdAndDown=!1,r.mdAndUp=!1,r.lgOnly=!1,r.lgAndDown=!1,r.lgAndUp=!1,r.xlOnly=!1,r.name="xs",r.height=0,r.width=0,r.mobile=!0,r.resizeTimeout=0;var i=t[n.property],a=i.mobileBreakpoint,u=i.scrollBarWidth,s=i.thresholds;return r.mobileBreakpoint=a,r.scrollBarWidth=u,r.thresholds=s,r}return Object(i["a"])(n,[{key:"init",value:function(){this.update(),"undefined"!==typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=t?0:this.getClientHeight(),n=t?0:this.getClientWidth(),r=n<this.thresholds.xs,o=n<this.thresholds.sm&&!r,i=n<this.thresholds.md-this.scrollBarWidth&&!(o||r),a=n<this.thresholds.lg-this.scrollBarWidth&&!(i||o||r),u=n>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=e,this.width=n,this.xs=r,this.sm=o,this.md=i,this.lg=a,this.xl=u,this.xsOnly=r,this.smOnly=o,this.smAndDown=(r||o)&&!(i||a||u),this.smAndUp=!r&&(o||i||a||u),this.mdOnly=i,this.mdAndDown=(r||o||i)&&!(a||u),this.mdAndUp=!(r||o)&&(i||a||u),this.lgOnly=a,this.lgAndDown=(r||o||i||a)&&!u,this.lgAndUp=!(r||o||i)&&(a||u),this.xlOnly=u,!0){case r:this.name="xs";break;case o:this.name="sm";break;case i:this.name="md";break;case a:this.name="lg";break;default:this.name="xl";break}if("number"!==typeof this.mobileBreakpoint){var s={xs:0,sm:1,md:2,lg:3,xl:4},c=s[this.name],l=s[this.mobileBreakpoint];this.mobile=c<=l}else this.mobile=n<parseInt(this.mobileBreakpoint,10)}},{key:"onResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}},{key:"getClientWidth",value:function(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}},{key:"getClientHeight",value:function(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}]),n}(m);y.property="breakpoint";n("d3b7");var x=n("99de"),w=n("5530"),C=function(t){return t},S=function(t){return Math.pow(t,2)},k=function(t){return t*(2-t)},O=function(t){return t<.5?2*Math.pow(t,2):(4-2*t)*t-1},_=function(t){return Math.pow(t,3)},A=function(t){return Math.pow(--t,3)+1},E=function(t){return t<.5?4*Math.pow(t,3):(t-1)*(2*t-2)*(2*t-2)+1},T=function(t){return Math.pow(t,4)},D=function(t){return 1-Math.pow(--t,4)},I=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},B=function(t){return Math.pow(t,5)},L=function(t){return 1+Math.pow(--t,5)},N=function(t){return t<.5?16*Math.pow(t,5):1+16*Math.pow(--t,5)};function P(t){if("number"===typeof t)return t;var e=R(t);if(!e)throw"string"===typeof t?new Error('Target element "'.concat(t,'" not found.')):new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received ".concat(j(t)," instead."));var n=0;while(e)n+=e.offsetTop,e=e.offsetParent;return n}function M(t){var e=R(t);if(e)return e;throw"string"===typeof t?new Error('Container element "'.concat(t,'" not found.')):new TypeError("Container must be a Selector/HTMLElement/VueComponent, received ".concat(j(t)," instead."))}function j(t){return null==t?t:t.constructor.name}function R(t){return"string"===typeof t?document.querySelector(t):t&&t._isVue?t.$el:t instanceof HTMLElement?t:null}function $(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(w["a"])({container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0},e),o=M(n.container);if(n.appOffset&&$.framework.application){var i=o.classList.contains("v-navigation-drawer"),a=o.classList.contains("v-navigation-drawer--clipped"),u=$.framework.application,s=u.bar,c=u.top;n.offset+=s,i&&!a||(n.offset+=c)}var l,f=performance.now();l="number"===typeof t?P(t)-n.offset:P(t)-P(o)-n.offset;var d=o.scrollTop;if(l===d)return Promise.resolve(l);var h="function"===typeof n.easing?n.easing:r[n.easing];if(!h)throw new TypeError('Easing function "'.concat(n.easing,'" not found.'));return new Promise((function(t){return requestAnimationFrame((function e(r){var i=r-f,a=Math.abs(n.duration?Math.min(i/n.duration,1):1);o.scrollTop=Math.floor(d+(l-d)*h(a));var u=o===document.body?document.documentElement.clientHeight:o.clientHeight;if(1===a||u+o.scrollTop===o.scrollHeight)return t(l);requestAnimationFrame(e)}))}))}$.framework={},$.init=function(){};var F=function(t){Object(l["a"])(n,t);var e=Object(f["a"])(n);function n(){var t;return Object(o["a"])(this,n),t=e.call(this),Object(x["a"])(t,$)}return n}(m);F.property="goTo";n("ddb0"),n("dca8");var V={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",success:"M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",warning:"M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z",error:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"},H=V,z={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"},U=z,W={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},q=W,G={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"},Y=G,X={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"},K=X;n("ac1f"),n("1276");function Z(t,e){var n={};for(var r in e)n[r]={component:t,props:{icon:e[r].split(" fa-")}};return n}var J=Z("font-awesome-icon",Y),Q=Object.freeze({mdiSvg:H,md:U,mdi:q,fa:Y,fa4:K,faSvg:J}),tt=function(t){Object(l["a"])(n,t);var e=Object(f["a"])(n);function n(t){var r;Object(o["a"])(this,n),r=e.call(this);var i=t[n.property],a=i.iconfont,u=i.values;return r.iconfont=a,r.values=Object(p["A"])(Q[a],u),r}return n}(m);tt.property="icons";n("a4d3"),n("e01a"),n("99af"),n("5319"),n("2ca0");var et="$vuetify.",nt=Symbol("Lang fallback");function rt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,o=e.replace(et,""),i=Object(p["p"])(t,o,nt);return i===nt&&(n?(Object(u["b"])('Translation key "'.concat(o,'" not found in fallback')),i=e):(Object(u["c"])('Translation key "'.concat(o,'" not found, falling back to default')),i=rt(r,e,!0,r))),i}var ot=function(t){Object(l["a"])(n,t);var e=Object(f["a"])(n);function n(t){var r;Object(o["a"])(this,n),r=e.call(this),r.defaultLocale="en";var i=t[n.property],a=i.current,u=i.locales,s=i.t;return r.current=a,r.locales=u,r.translator=s||r.defaultTranslator,r}return Object(i["a"])(n,[{key:"currentLocale",value:function(t){var e=this.locales[this.current],n=this.locales[this.defaultLocale];return rt(e,t,!1,n)}},{key:"t",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.startsWith(et)?this.translator.apply(this,[t].concat(n)):this.replace(t,n)}},{key:"defaultTranslator",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return this.replace(this.currentLocale(t),n)}},{key:"replace",value:function(t,e){return t.replace(/\{(\d+)\}/g,(function(t,n){return String(e[+n])}))}}]),n}(m);ot.property="lang";n("7db0"),n("b64b"),n("18a5");var it=n("3835"),at=n("53ca"),ut=n("7bc6"),st=n("8da5"),ct=(n("3ea3"),.20689655172413793),lt=function(t){return t>Math.pow(ct,3)?Math.cbrt(t):t/(3*Math.pow(ct,2))+4/29},ft=function(t){return t>ct?Math.pow(t,3):3*Math.pow(ct,2)*(t-4/29)};function dt(t){var e=lt,n=e(t[1]);return[116*n-16,500*(e(t[0]/.95047)-n),200*(n-e(t[2]/1.08883))]}function ht(t){var e=ft,n=(t[0]+16)/116;return[.95047*e(n+t[1]/500),e(n),1.08883*e(n-t[2]/200)]}function pt(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.anchor,o=Object(c["a"])(t,["anchor"]),i=Object.keys(o),a={},u=0;u<i.length;++u){var s=i[u],l=t[s];null!=l&&(n?e?("base"===s||s.startsWith("lighten")||s.startsWith("darken"))&&(a[s]=Object(ut["j"])(l)):"object"===Object(at["a"])(l)?a[s]=pt(l,!0,n):a[s]=xt(s,Object(ut["k"])(l)):a[s]={base:Object(ut["m"])(Object(ut["k"])(l))})}return e||(a.anchor=r||a.base||a.primary.base),a}var mt=function(t,e){return"\n.v-application .".concat(t," {\n background-color: ").concat(e," !important;\n border-color: ").concat(e," !important;\n}\n.v-application .").concat(t,"--text {\n color: ").concat(e," !important;\n caret-color: ").concat(e," !important;\n}")},gt=function(t,e,n){var r=e.split(/(\d)/,2),o=Object(it["a"])(r,2),i=o[0],a=o[1];return"\n.v-application .".concat(t,".").concat(i,"-").concat(a," {\n background-color: ").concat(n," !important;\n border-color: ").concat(n," !important;\n}\n.v-application .").concat(t,"--text.text--").concat(i,"-").concat(a," {\n color: ").concat(n," !important;\n caret-color: ").concat(n," !important;\n}")},vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return"--v-".concat(t,"-").concat(e)},bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return"var(".concat(vt(t,e),")")};function yt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.anchor,r=Object(c["a"])(t,["anchor"]),o=Object.keys(r);if(!o.length)return"";var i="",a="",u=e?bt("anchor"):n;a+=".v-application a { color: ".concat(u,"; }"),e&&(i+=" ".concat(vt("anchor"),": ").concat(n,";\n"));for(var s=0;s<o.length;++s){var l=o[s],f=t[l];a+=mt(l,e?bt(l):f.base),e&&(i+=" ".concat(vt(l),": ").concat(f.base,";\n"));for(var d=Object.keys(f),h=0;h<d.length;++h){var p=d[h],m=f[p];"base"!==p&&(a+=gt(l,p,e?bt(l,p):m),e&&(i+=" ".concat(vt(l,p),": ").concat(m,";\n")))}}return e&&(i=":root {\n".concat(i,"}\n\n")),i+a}function xt(t,e){for(var n={base:Object(ut["m"])(e)},r=5;r>0;--r)n["lighten".concat(r)]=Object(ut["m"])(wt(e,r));for(var o=1;o<=4;++o)n["darken".concat(o)]=Object(ut["m"])(Ct(e,o));return n}function wt(t,e){var n=dt(st["b"](t));return n[0]=n[0]+10*e,st["a"](ht(n))}function Ct(t,e){var n=dt(st["b"](t));return n[0]=n[0]-10*e,st["a"](ht(n))}var St=function(t){Object(l["a"])(n,t);var e=Object(f["a"])(n);function n(t){var r;Object(o["a"])(this,n),r=e.call(this),r.disabled=!1,r.isDark=null,r.unwatch=null,r.vueMeta=null;var i=t[n.property],a=i.dark,u=i.disable,s=i.options,c=i.themes;return r.dark=Boolean(a),r.defaults=r.themes=c,r.options=s,u?(r.disabled=!0,Object(x["a"])(r)):(r.themes={dark:r.fillVariant(c.dark,!0),light:r.fillVariant(c.light,!1)},r)}return Object(i["a"])(n,[{key:"applyTheme",value:function(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}},{key:"clearCss",value:function(){this.css=""}},{key:"init",value:function(t,e){this.disabled||(t.$meta?this.initVueMeta(t):e&&this.initSSR(e),this.initTheme(t))}},{key:"setTheme",value:function(t,e){this.themes[t]=Object.assign(this.themes[t],e),this.applyTheme()}},{key:"resetThemes",value:function(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}},{key:"checkOrCreateStyleElement",value:function(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),!!this.styleEl||(this.genStyleElement(),Boolean(this.styleEl))}},{key:"fillVariant",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=this.themes[e?"dark":"light"];return Object.assign({},n,t)}},{key:"genStyleElement",value:function(){"undefined"!==typeof document&&(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}},{key:"initVueMeta",value:function(t){var e=this;if(this.vueMeta=t.$meta(),this.isVueMeta23)t.$nextTick((function(){e.applyVueMeta23()}));else{var n="function"===typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",r=t.$options[n]||{};t.$options[n]=function(){r.style=r.style||[];var t=r.style.find((function(t){return"vuetify-theme-stylesheet"===t.id}));return t?t.cssText=e.generatedStyles:r.style.push({cssText:e.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(e.options||{}).cspNonce}),r}}}},{key:"applyVueMeta23",value:function(){var t=this.vueMeta.addApp("vuetify"),e=t.set;e({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}},{key:"initSSR",value:function(t){var e=this.options.cspNonce?' nonce="'.concat(this.options.cspNonce,'"'):"";t.head=t.head||"",t.head+='<style type="text/css" id="vuetify-theme-stylesheet"'.concat(e,">").concat(this.generatedStyles,"</style>")}},{key:"initTheme",value:function(t){var e=this;"undefined"!==typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),t.$once("hook:created",(function(){var n=a["a"].observable({themes:e.themes});e.unwatch=t.$watch((function(){return n.themes}),(function(){return e.applyTheme()}),{deep:!0})})),this.applyTheme())}},{key:"css",set:function(t){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=t)}},{key:"dark",set:function(t){var e=this.isDark;this.isDark=t,null!=e&&this.applyTheme()},get:function(){return Boolean(this.isDark)}},{key:"currentTheme",get:function(){var t=this.dark?"dark":"light";return this.themes[t]}},{key:"generatedStyles",get:function(){var t,e=this.parsedTheme,n=this.options||{};return null!=n.themeCache&&(t=n.themeCache.get(e),null!=t)||(t=yt(e,n.customProperties),null!=n.minifyTheme&&(t=n.minifyTheme(t)),null!=n.themeCache&&n.themeCache.set(e,t)),t}},{key:"parsedTheme",get:function(){return pt(this.currentTheme||{},void 0,Object(p["o"])(this.options,["variations"],!0))}},{key:"isVueMeta23",get:function(){return"function"===typeof this.vueMeta.addApp}}]),n}(m);St.property="theme";var kt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(o["a"])(this,t),this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=e,this.use(g),this.use(b),this.use(y),this.use(F),this.use(tt),this.use(ot),this.use(St)}return Object(i["a"])(t,[{key:"init",value:function(t,e){var n=this;this.installed.forEach((function(r){var o=n.framework[r];o.framework=n.framework,o.init(t,e)})),this.framework.rtl=Boolean(this.preset.rtl)}},{key:"use",value:function(t){var e=t.property;this.installed.includes(e)||(this.framework[e]=new t(this.preset,this),this.installed.push(e))}}]),t}();kt.install=s,kt.installed=!1,kt.version="2.3.21",kt.config={silent:!1}},f573:function(t,e,n){"use strict";n("a9e3"),n("d3b7");var r=n("5530"),o=n("fe6c"),i=n("21be"),a=n("4ad4"),u=n("58df"),s=n("80d2"),c=Object(u["a"])(i["a"],o["a"],a["a"]);e["a"]=c.extend().extend({name:"menuable",props:{allowOverflow:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[Number,String],default:"auto"},minWidth:[Number,String],nudgeBottom:{type:[Number,String],default:0},nudgeLeft:{type:[Number,String],default:0},nudgeRight:{type:[Number,String],default:0},nudgeTop:{type:[Number,String],default:0},nudgeWidth:{type:[Number,String],default:0},offsetOverflow:Boolean,openOnClick:Boolean,positionX:{type:Number,default:null},positionY:{type:Number,default:null},zIndex:{type:[Number,String],default:null}},data:function(){return{absoluteX:0,absoluteY:0,activatedBy:null,activatorFixed:!1,dimensions:{activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0,offsetLeft:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0}},hasJustFocused:!1,hasWindow:!1,inputActivator:!1,isContentActive:!1,pageWidth:0,pageYOffset:0,stackClass:"v-menu__content--active",stackMinZIndex:6}},computed:{computedLeft:function(){var t=this.dimensions.activator,e=this.dimensions.content,n=(!1!==this.attach?t.offsetLeft:t.left)||0,r=Math.max(t.width,e.width),o=0;if(o+=this.left?n-(r-t.width):n,this.offsetX){var i=isNaN(Number(this.maxWidth))?t.width:Math.min(t.width,Number(this.maxWidth));o+=this.left?-i:t.width}return this.nudgeLeft&&(o-=parseInt(this.nudgeLeft)),this.nudgeRight&&(o+=parseInt(this.nudgeRight)),o},computedTop:function(){var t=this.dimensions.activator,e=this.dimensions.content,n=0;return this.top&&(n+=t.height-e.height),!1!==this.attach?n+=t.offsetTop:n+=t.top+this.pageYOffset,this.offsetY&&(n+=this.top?-t.height:t.height),this.nudgeTop&&(n-=parseInt(this.nudgeTop)),this.nudgeBottom&&(n+=parseInt(this.nudgeBottom)),n},hasActivator:function(){return!!this.$slots.activator||!!this.$scopedSlots.activator||!!this.activator||!!this.inputActivator}},watch:{disabled:function(t){t&&this.callDeactivate()},isActive:function(t){this.disabled||(t?this.callActivate():this.callDeactivate())},positionX:"updateDimensions",positionY:"updateDimensions"},beforeMount:function(){this.hasWindow="undefined"!==typeof window},methods:{absolutePosition:function(){return{offsetTop:0,offsetLeft:0,scrollHeight:0,top:this.positionY||this.absoluteY,bottom:this.positionY||this.absoluteY,left:this.positionX||this.absoluteX,right:this.positionX||this.absoluteX,height:0,width:0}},activate:function(){},calcLeft:function(t){return Object(s["g"])(!1!==this.attach?this.computedLeft:this.calcXOverflow(this.computedLeft,t))},calcTop:function(){return Object(s["g"])(!1!==this.attach?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow:function(t,e){var n=t+e-this.pageWidth+12;return t=(!this.left||this.right)&&n>0?Math.max(t-n,0):Math.max(t,12),t+this.getOffsetLeft()},calcYOverflow:function(t){var e=this.getInnerHeight(),n=this.pageYOffset+e,r=this.dimensions.activator,o=this.dimensions.content.height,i=t+o,a=n<i;return a&&this.offsetOverflow&&r.top>o?t=this.pageYOffset+(r.top-o):a&&!this.allowOverflow?t=n-o-12:t<this.pageYOffset&&!this.allowOverflow&&(t=this.pageYOffset+12),t<12?12:t},callActivate:function(){this.hasWindow&&this.activate()},callDeactivate:function(){this.isContentActive=!1,this.deactivate()},checkForPageYOffset:function(){this.hasWindow&&(this.pageYOffset=this.activatorFixed?0:this.getOffsetTop())},checkActivatorFixed:function(){if(!1===this.attach){var t=this.getActivator();while(t){if("fixed"===window.getComputedStyle(t).position)return void(this.activatorFixed=!0);t=t.offsetParent}this.activatorFixed=!1}},deactivate:function(){},genActivatorListeners:function(){var t=this,e=a["a"].options.methods.genActivatorListeners.call(this),n=e.click;return e.click=function(e){t.openOnClick&&n&&n(e),t.absoluteX=e.clientX,t.absoluteY=e.clientY},e},getInnerHeight:function(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft:function(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop:function(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect:function(t){var e=t.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),bottom:Math.round(e.bottom),right:Math.round(e.right),width:Math.round(e.width),height:Math.round(e.height)}},measure:function(t){if(!t||!this.hasWindow)return null;var e=this.getRoundedBoundedClientRect(t);if(!1!==this.attach){var n=window.getComputedStyle(t);e.left=parseInt(n.marginLeft),e.top=parseInt(n.marginTop)}return e},sneakPeek:function(t){var e=this;requestAnimationFrame((function(){var n=e.$refs.content;n&&"none"===n.style.display?(n.style.display="inline-block",t(),n.style.display="none"):t()}))},startTransition:function(){var t=this;return new Promise((function(e){return requestAnimationFrame((function(){t.isContentActive=t.hasJustFocused=t.isActive,e()}))}))},updateDimensions:function(){var t=this;this.hasWindow="undefined"!==typeof window,this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;var e={activator:Object(r["a"])({},this.dimensions.activator),content:Object(r["a"])({},this.dimensions.content)};if(!this.hasActivator||this.absolute)e.activator=this.absolutePosition();else{var n=this.getActivator();if(!n)return;e.activator=this.measure(n),e.activator.offsetLeft=n.offsetLeft,!1!==this.attach?e.activator.offsetTop=n.offsetTop:e.activator.offsetTop=0}this.sneakPeek((function(){t.$refs.content&&(e.content=t.measure(t.$refs.content)),t.dimensions=e}))}}})},f5df:function(t,e,n){var r=n("00ee"),o=n("c6b6"),i=n("b622"),a=i("toStringTag"),u="Arguments"==o(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),a))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},f6b4:function(t,e,n){"use strict";var r=n("c532");function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},f6c4:function(t,e,n){"use strict";n("bd0c");var r=n("d10f");e["a"]=r["a"].extend({name:"v-main",props:{tag:{type:String,default:"main"}},computed:{styles:function(){var t=this.$vuetify.application,e=t.bar,n=t.top,r=t.right,o=t.footer,i=t.insetFooter,a=t.bottom,u=t.left;return{paddingTop:"".concat(n+e,"px"),paddingRight:"".concat(r,"px"),paddingBottom:"".concat(o+i+a,"px"),paddingLeft:"".concat(u,"px")}}},render:function(t){var e={staticClass:"v-main",style:this.styles,ref:"main"};return t(this.tag,e,[t("div",{staticClass:"v-main__wrap"},this.$slots.default)])}})},f748:function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},f774:function(t,e,n){"use strict";n("99af"),n("a9e3"),n("c7cd");var r=n("5530"),o=(n("7958"),n("adda")),i=n("3a66"),a=n("a9ad"),u=n("b848"),s=n("e4cd"),c=n("e707"),l=n("d10f"),f=n("7560"),d=n("a293"),h=n("dc22"),p=n("c3f0"),m=n("80d2"),g=n("58df"),v=Object(g["a"])(Object(i["a"])("left",["isActive","isMobile","miniVariant","expandOnHover","permanent","right","temporary","width"]),a["a"],u["a"],s["a"],c["a"],l["a"],f["a"]);e["a"]=v.extend({name:"v-navigation-drawer",directives:{ClickOutside:d["a"],Resize:h["a"],Touch:p["a"]},provide:function(){return{isInNav:"nav"===this.tag}},props:{bottom:Boolean,clipped:Boolean,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,height:{type:[Number,String],default:function(){return this.app?"100vh":"100%"}},miniVariant:Boolean,miniVariantWidth:{type:[Number,String],default:56},permanent:Boolean,right:Boolean,src:{type:[String,Object],default:""},stateless:Boolean,tag:{type:String,default:function(){return this.app?"nav":"aside"}},temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},value:null},data:function(){return{isMouseover:!1,touchArea:{left:0,right:0},stackMinZIndex:6}},computed:{applicationProperty:function(){return this.right?"right":"left"},classes:function(){return Object(r["a"])({"v-navigation-drawer":!0,"v-navigation-drawer--absolute":this.absolute,"v-navigation-drawer--bottom":this.bottom,"v-navigation-drawer--clipped":this.clipped,"v-navigation-drawer--close":!this.isActive,"v-navigation-drawer--fixed":!this.absolute&&(this.app||this.fixed),"v-navigation-drawer--floating":this.floating,"v-navigation-drawer--is-mobile":this.isMobile,"v-navigation-drawer--is-mouseover":this.isMouseover,"v-navigation-drawer--mini-variant":this.isMiniVariant,"v-navigation-drawer--custom-mini-variant":56!==Number(this.miniVariantWidth),"v-navigation-drawer--open":this.isActive,"v-navigation-drawer--open-on-hover":this.expandOnHover,"v-navigation-drawer--right":this.right,"v-navigation-drawer--temporary":this.temporary},this.themeClasses)},computedMaxHeight:function(){if(!this.hasApp)return null;var t=this.$vuetify.application.bottom+this.$vuetify.application.footer+this.$vuetify.application.bar;return this.clipped?t+this.$vuetify.application.top:t},computedTop:function(){if(!this.hasApp)return 0;var t=this.$vuetify.application.bar;return t+=this.clipped?this.$vuetify.application.top:0,t},computedTransform:function(){return this.isActive?0:this.isBottom||this.right?100:-100},computedWidth:function(){return this.isMiniVariant?this.miniVariantWidth:this.width},hasApp:function(){return this.app&&!this.isMobile&&!this.temporary},isBottom:function(){return this.bottom&&this.isMobile},isMiniVariant:function(){return!this.expandOnHover&&this.miniVariant||this.expandOnHover&&!this.isMouseover},isMobile:function(){return!this.stateless&&!this.permanent&&s["a"].options.computed.isMobile.call(this)},reactsToClick:function(){return!this.stateless&&!this.permanent&&(this.isMobile||this.temporary)},reactsToMobile:function(){return this.app&&!this.disableResizeWatcher&&!this.permanent&&!this.stateless&&!this.temporary},reactsToResize:function(){return!this.disableResizeWatcher&&!this.stateless},reactsToRoute:function(){return!this.disableRouteWatcher&&!this.stateless&&(this.temporary||this.isMobile)},showOverlay:function(){return!this.hideOverlay&&this.isActive&&(this.isMobile||this.temporary)},styles:function(){var t=this.isBottom?"translateY":"translateX";return{height:Object(m["g"])(this.height),top:this.isBottom?"auto":Object(m["g"])(this.computedTop),maxHeight:null!=this.computedMaxHeight?"calc(100% - ".concat(Object(m["g"])(this.computedMaxHeight),")"):void 0,transform:"".concat(t,"(").concat(Object(m["g"])(this.computedTransform,"%"),")"),width:Object(m["g"])(this.computedWidth)}}},watch:{$route:"onRouteChange",isActive:function(t){this.$emit("input",t)},isMobile:function(t,e){!t&&this.isActive&&!this.temporary&&this.removeOverlay(),null!=e&&this.reactsToResize&&this.reactsToMobile&&(this.isActive=!t)},permanent:function(t){t&&(this.isActive=!0)},showOverlay:function(t){t?this.genOverlay():this.removeOverlay()},value:function(t){this.permanent||(null!=t?t!==this.isActive&&(this.isActive=t):this.init())},expandOnHover:"updateMiniVariant",isMouseover:function(t){this.updateMiniVariant(!t)}},beforeMount:function(){this.init()},methods:{calculateTouchArea:function(){var t=this.$el.parentNode;if(t){var e=t.getBoundingClientRect();this.touchArea={left:e.left+50,right:e.right-50}}},closeConditional:function(){return this.isActive&&!this._isDestroyed&&this.reactsToClick},genAppend:function(){return this.genPosition("append")},genBackground:function(){var t={height:"100%",width:"100%",src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img(t):this.$createElement(o["a"],{props:t});return this.$createElement("div",{staticClass:"v-navigation-drawer__image"},[e])},genDirectives:function(){var t=this,e=[{name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:this.getOpenDependentElements}}];return this.touchless||this.stateless||e.push({name:"touch",value:{parent:!0,left:this.swipeLeft,right:this.swipeRight}}),e},genListeners:function(){var t=this,e={transitionend:function(e){if(e.target===e.currentTarget){t.$emit("transitionend",e);var n=document.createEvent("UIEvents");n.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(n)}}};return this.miniVariant&&(e.click=function(){return t.$emit("update:mini-variant",!1)}),this.expandOnHover&&(e.mouseenter=function(){return t.isMouseover=!0},e.mouseleave=function(){return t.isMouseover=!1}),e},genPosition:function(t){var e=Object(m["s"])(this,t);return e?this.$createElement("div",{staticClass:"v-navigation-drawer__".concat(t)},e):e},genPrepend:function(){return this.genPosition("prepend")},genContent:function(){return this.$createElement("div",{staticClass:"v-navigation-drawer__content"},this.$slots.default)},genBorder:function(){return this.$createElement("div",{staticClass:"v-navigation-drawer__border"})},init:function(){this.permanent?this.isActive=!0:this.stateless||null!=this.value?this.isActive=this.value:this.temporary||(this.isActive=!this.isMobile)},onRouteChange:function(){this.reactsToRoute&&this.closeConditional()&&(this.isActive=!1)},swipeLeft:function(t){this.isActive&&this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(this.right&&t.touchstartX>=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},swipeRight:function(t){this.isActive&&!this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(!this.right&&t.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},updateApplication:function(){if(!this.isActive||this.isMobile||this.temporary||!this.$el)return 0;var t=Number(this.computedWidth);return isNaN(t)?this.$el.clientWidth:t},updateMiniVariant:function(t){this.miniVariant!==t&&this.$emit("update:mini-variant",t)}},render:function(t){var e=[this.genPrepend(),this.genContent(),this.genAppend(),this.genBorder()];return(this.src||Object(m["s"])(this,"img"))&&e.unshift(this.genBackground()),t(this.tag,this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,directives:this.genDirectives(),on:this.genListeners()}),e)}})},f823:function(t,e,n){},f8cd:function(t,e,n){var r=n("a691");t.exports=function(t){var e=r(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},fb6a:function(t,e,n){"use strict";var r=n("23e7"),o=n("861d"),i=n("e8b5"),a=n("23cb"),u=n("50c4"),s=n("fc6a"),c=n("8418"),l=n("b622"),f=n("1dde"),d=n("ae40"),h=f("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),m=l("species"),g=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!h||!p},{slice:function(t,e){var n,r,l,f=s(this),d=u(f.length),h=a(t,d),p=a(void 0===e?d:e,d);if(i(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?o(n)&&(n=n[m],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return g.call(f,h,p);for(r=new(void 0===n?Array:n)(v(p-h,0)),l=0;h<p;h++,l++)h in f&&c(r,l,f[h]);return r.length=l,r}})},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe09:function(t,e,n){"use strict";n("4de4"),n("45fc"),n("d3b7"),n("25f0");var r=n("c37a"),o=n("5311"),i=n("8547"),a=n("58df");function u(t){t.preventDefault()}e["a"]=Object(a["a"])(r["a"],o["a"],i["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data:function(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor:function(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple:function(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive:function(){var t=this,e=this.value,n=this.internalValue;return this.isMultiple?!!Array.isArray(n)&&n.some((function(n){return t.valueComparator(n,e)})):void 0===this.trueValue||void 0===this.falseValue?e?this.valueComparator(e,n):Boolean(n):this.valueComparator(n,this.trueValue)},isDirty:function(){return this.isActive},rippleState:function(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue:function(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel:function(){var t=r["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:u},t):t},genInput:function(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:u},ref:"input"})},onBlur:function(){this.isFocused=!1},onClick:function(t){this.onChange(),this.$emit("click",t)},onChange:function(){var t=this;if(this.isInteractive){var e=this.value,n=this.internalValue;if(this.isMultiple){Array.isArray(n)||(n=[]);var r=n.length;n=n.filter((function(n){return!t.valueComparator(n,e)})),n.length===r&&n.push(e)}else n=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(n,this.trueValue)?this.falseValue:this.trueValue:e?this.valueComparator(n,e)?null:e:!n;this.validate(!0,n),this.internalValue=n,this.hasColor=n}},onFocus:function(){this.isFocused=!0},onKeydown:function(t){}}})},fe57:function(t,e,n){"use strict";n("b0c0"),n("a9e3");var r=n("5530"),o=(n("1bfb"),n("b85c")),i=(n("99af"),n("caad"),n("fb6a"),n("608c"),n("9d26")),a=n("0789"),u=n("604c"),s=n("e4cd"),c=n("dc22"),l=n("c3f0"),f=n("58df"),d=Object(f["a"])(u["a"],s["a"]).extend({name:"base-slide-group",directives:{Resize:c["a"],Touch:l["a"]},props:{activeClass:{type:String,default:"v-slide-item--active"},centerActive:Boolean,nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},showArrows:{type:[Boolean,String],validator:function(t){return"boolean"===typeof t||["always","desktop","mobile"].includes(t)}}},data:function(){return{internalItemsLength:0,isOverflowing:!1,resizeTimeout:0,startX:0,scrollOffset:0,widths:{content:0,wrapper:0}}},computed:{__cachedNext:function(){return this.genTransition("next")},__cachedPrev:function(){return this.genTransition("prev")},classes:function(){return Object(r["a"])({},u["a"].options.computed.classes.call(this),{"v-slide-group":!0,"v-slide-group--has-affixes":this.hasAffixes,"v-slide-group--is-overflowing":this.isOverflowing})},hasAffixes:function(){switch(this.showArrows){case"always":return!0;case"desktop":return!this.isMobile;case!0:return this.isOverflowing;case"mobile":return this.isMobile||this.isOverflowing;default:return!this.isMobile&&this.isOverflowing}},hasNext:function(){if(!this.hasAffixes)return!1;var t=this.widths,e=t.content,n=t.wrapper;return e>Math.abs(this.scrollOffset)+n},hasPrev:function(){return this.hasAffixes&&0!==this.scrollOffset}},watch:{internalValue:"setWidths",isOverflowing:"setWidths",scrollOffset:function(t){this.$refs.content.style.transform="translateX(".concat(-t,"px)")}},beforeUpdate:function(){this.internalItemsLength=(this.$children||[]).length},updated:function(){this.internalItemsLength!==(this.$children||[]).length&&this.setWidths()},methods:{genNext:function(){var t=this,e=this.$scopedSlots.next?this.$scopedSlots.next({}):this.$slots.next||this.__cachedNext;return this.$createElement("div",{staticClass:"v-slide-group__next",class:{"v-slide-group__next--disabled":!this.hasNext},on:{click:function(){return t.onAffixClick("next")}},key:"next"},[e])},genContent:function(){return this.$createElement("div",{staticClass:"v-slide-group__content",ref:"content"},this.$slots.default)},genData:function(){return{class:this.classes,directives:[{name:"resize",value:this.onResize}]}},genIcon:function(t){var e=t;this.$vuetify.rtl&&"prev"===t?e="next":this.$vuetify.rtl&&"next"===t&&(e="prev");var n="".concat(t[0].toUpperCase()).concat(t.slice(1)),r=this["has".concat(n)];return this.showArrows||r?this.$createElement(i["a"],{props:{disabled:!r}},this["".concat(e,"Icon")]):null},genPrev:function(){var t=this,e=this.$scopedSlots.prev?this.$scopedSlots.prev({}):this.$slots.prev||this.__cachedPrev;return this.$createElement("div",{staticClass:"v-slide-group__prev",class:{"v-slide-group__prev--disabled":!this.hasPrev},on:{click:function(){return t.onAffixClick("prev")}},key:"prev"},[e])},genTransition:function(t){return this.$createElement(a["d"],[this.genIcon(t)])},genWrapper:function(){var t=this;return this.$createElement("div",{staticClass:"v-slide-group__wrapper",directives:[{name:"touch",value:{start:function(e){return t.overflowCheck(e,t.onTouchStart)},move:function(e){return t.overflowCheck(e,t.onTouchMove)},end:function(e){return t.overflowCheck(e,t.onTouchEnd)}}}],ref:"wrapper"},[this.genContent()])},calculateNewOffset:function(t,e,n,r){var o=n?-1:1,i=o*r+("prev"===t?-1:1)*e.wrapper;return o*Math.max(Math.min(i,e.content-e.wrapper),0)},onAffixClick:function(t){this.$emit("click:".concat(t)),this.scrollTo(t)},onResize:function(){this._isDestroyed||this.setWidths()},onTouchStart:function(t){var e=this.$refs.content;this.startX=this.scrollOffset+t.touchstartX,e.style.setProperty("transition","none"),e.style.setProperty("willChange","transform")},onTouchMove:function(t){this.scrollOffset=this.startX-t.touchmoveX},onTouchEnd:function(){var t=this.$refs,e=t.content,n=t.wrapper,r=e.clientWidth-n.clientWidth;e.style.setProperty("transition",null),e.style.setProperty("willChange",null),this.$vuetify.rtl?this.scrollOffset>0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset<=-r&&(this.scrollOffset=-r):this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=r&&(this.scrollOffset=r)},overflowCheck:function(t,e){t.stopPropagation(),this.isOverflowing&&e(t)},scrollIntoView:function(){this.selectedItem&&(0===this.selectedIndex||!this.centerActive&&!this.isOverflowing?this.scrollOffset=0:this.centerActive?this.scrollOffset=this.calculateCenteredOffset(this.selectedItem.$el,this.widths,this.$vuetify.rtl):this.isOverflowing&&(this.scrollOffset=this.calculateUpdatedOffset(this.selectedItem.$el,this.widths,this.$vuetify.rtl,this.scrollOffset)))},calculateUpdatedOffset:function(t,e,n,r){var o=t.clientWidth,i=n?e.content-t.offsetLeft-o:t.offsetLeft;n&&(r=-r);var a=e.wrapper+r,u=o+i,s=.4*o;return i<=r?r=Math.max(i-s,0):a<=u&&(r=Math.min(r-(a-u-s),e.content-e.wrapper)),n?-r:r},calculateCenteredOffset:function(t,e,n){var r=t.offsetLeft,o=t.clientWidth;if(n){var i=e.content-r-o/2-e.wrapper/2;return-Math.min(e.content-e.wrapper,Math.max(0,i))}var a=r+o/2-e.wrapper/2;return Math.min(e.content-e.wrapper,Math.max(0,a))},scrollTo:function(t){this.scrollOffset=this.calculateNewOffset(t,{content:this.$refs.content?this.$refs.content.clientWidth:0,wrapper:this.$refs.wrapper?this.$refs.wrapper.clientWidth:0},this.$vuetify.rtl,this.scrollOffset)},setWidths:function(){var t=this;window.requestAnimationFrame((function(){var e=t.$refs,n=e.content,r=e.wrapper;t.widths={content:n?n.clientWidth:0,wrapper:r?r.clientWidth:0},t.isOverflowing=t.widths.wrapper<t.widths.content,t.scrollIntoView()}))}},render:function(t){return t("div",this.genData(),[this.genPrev(),this.genWrapper(),this.genNext()])}}),h=(d.extend({name:"v-slide-group",provide:function(){return{slideGroup:this}}}),n("7560")),p=n("d10f"),m=Object(f["a"])(d,p["a"],h["a"]).extend({name:"v-tabs-bar",provide:function(){return{tabsBar:this}},computed:{classes:function(){return Object(r["a"])({},d.options.computed.classes.call(this),{"v-tabs-bar":!0,"v-tabs-bar--is-mobile":this.isMobile,"v-tabs-bar--show-arrows":this.showArrows},this.themeClasses)}},watch:{items:"callSlider",internalValue:"callSlider",$route:"onRouteChange"},methods:{callSlider:function(){this.isBooted&&this.$emit("call:slider")},genContent:function(){var t=d.options.methods.genContent.call(this);return t.data=t.data||{},t.data.staticClass+=" v-tabs-bar__content",t},onRouteChange:function(t,e){if(!this.mandatory){var n,r=this.items,i=t.path,a=e.path,u=!1,s=!1,c=Object(o["a"])(r);try{for(c.s();!(n=c.n()).done;){var l=n.value;if(l.to===i?u=!0:l.to===a&&(s=!0),u&&s)break}}catch(f){c.e(f)}finally{c.f()}!u&&s&&(this.internalValue=void 0)}}},render:function(t){var e=d.options.render.call(this,t);return e.data.attrs={role:"tablist"},e}}),g=n("aac8"),v=n("a9ad"),b=Object(f["a"])(v["a"]).extend({name:"v-tabs-slider",render:function(t){return t("div",this.setBackgroundColor(this.color,{staticClass:"v-tabs-slider"}))}}),y=n("a452"),x=n("80d2"),w=Object(f["a"])(v["a"],y["a"],h["a"]);e["a"]=w.extend().extend({name:"v-tabs",directives:{Resize:c["a"]},props:{activeClass:{type:String,default:""},alignWithTitle:Boolean,backgroundColor:String,centerActive:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,iconsAndText:Boolean,mobileBreakpoint:[String,Number],nextIcon:{type:String,default:"$next"},optional:Boolean,prevIcon:{type:String,default:"$prev"},right:Boolean,showArrows:[Boolean,String],sliderColor:String,sliderSize:{type:[Number,String],default:2},vertical:Boolean},data:function(){return{resizeTimeout:0,slider:{height:null,left:null,right:null,top:null,width:null},transitionTime:300}},computed:{classes:function(){return Object(r["a"])({"v-tabs--align-with-title":this.alignWithTitle,"v-tabs--centered":this.centered,"v-tabs--fixed-tabs":this.fixedTabs,"v-tabs--grow":this.grow,"v-tabs--icons-and-text":this.iconsAndText,"v-tabs--right":this.right,"v-tabs--vertical":this.vertical},this.themeClasses)},isReversed:function(){return this.$vuetify.rtl&&this.vertical},sliderStyles:function(){return{height:Object(x["g"])(this.slider.height),left:this.isReversed?void 0:Object(x["g"])(this.slider.left),right:this.isReversed?Object(x["g"])(this.slider.right):void 0,top:this.vertical?Object(x["g"])(this.slider.top):void 0,transition:null!=this.slider.left?null:"none",width:Object(x["g"])(this.slider.width)}},computedColor:function(){return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"}},watch:{alignWithTitle:"callSlider",centered:"callSlider",centerActive:"callSlider",fixedTabs:"callSlider",grow:"callSlider",iconsAndText:"callSlider",right:"callSlider",showArrows:"callSlider",vertical:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize","$vuetify.rtl":"onResize"},mounted:function(){var t=this;this.$nextTick((function(){window.setTimeout(t.callSlider,30)}))},methods:{callSlider:function(){var t=this;return!this.hideSlider&&this.$refs.items&&this.$refs.items.selectedItems.length?(this.$nextTick((function(){var e=t.$refs.items.selectedItems[0];if(!e||!e.$el)return t.slider.width=0,void(t.slider.left=0);var n=e.$el;t.slider={height:t.vertical?n.scrollHeight:Number(t.sliderSize),left:t.vertical?0:n.offsetLeft,right:t.vertical?0:n.offsetLeft+n.offsetWidth,top:n.offsetTop,width:t.vertical?Number(t.sliderSize):n.scrollWidth}})),!0):(this.slider.width=0,!1)},genBar:function(t,e){var n=this,r={style:{height:Object(x["g"])(this.height)},props:{activeClass:this.activeClass,centerActive:this.centerActive,dark:this.dark,light:this.light,mandatory:!this.optional,mobileBreakpoint:this.mobileBreakpoint,nextIcon:this.nextIcon,prevIcon:this.prevIcon,showArrows:this.showArrows,value:this.internalValue},on:{"call:slider":this.callSlider,change:function(t){n.internalValue=t}},ref:"items"};return this.setTextColor(this.computedColor,r),this.setBackgroundColor(this.backgroundColor,r),this.$createElement(m,r,[this.genSlider(e),t])},genItems:function(t,e){var n=this;return t||(e.length?this.$createElement(g["a"],{props:{value:this.internalValue},on:{change:function(t){n.internalValue=t}}},e):null)},genSlider:function(t){return this.hideSlider?null:(t||(t=this.$createElement(b,{props:{color:this.sliderColor}})),this.$createElement("div",{staticClass:"v-tabs-slider-wrapper",style:this.sliderStyles},[t]))},onResize:function(){this._isDestroyed||(clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.callSlider,0))},parseNodes:function(){for(var t=null,e=null,n=[],r=[],o=this.$slots.default||[],i=o.length,a=0;a<i;a++){var u=o[a];if(u.componentOptions)switch(u.componentOptions.Ctor.options.name){case"v-tabs-slider":e=u;break;case"v-tabs-items":t=u;break;case"v-tab-item":n.push(u);break;default:r.push(u)}else r.push(u)}return{tab:r,slider:e,items:t,item:n}}},render:function(t){var e=this.parseNodes(),n=e.tab,r=e.slider,o=e.items,i=e.item;return t("div",{staticClass:"v-tabs",class:this.classes,directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]},[this.genBar(n,r),this.genItems(o,i)])}})},fe6c:function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n("2b0e"),o=n("80d2"),i={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r["a"].extend({name:"positionable",props:t.length?Object(o["n"])(i,t):i})}e["a"]=a()},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}}]); 25 //# sourceMappingURL=chunk-vendors.b1698eca.js.map