chunk-vendors.7e2b3aeb.js 2.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("c65b"),o=n("1626"),a=n("825a"),s=n("577e"),u=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=/./.test;r({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=a(this),n=s(e),r=t.exec;if(!o(r))return i(c,t,n);var u=i(r,t,n);return null!==u&&(a(u),!0)}})},"00bb":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i,r),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);n.call(this,e,t,i,r),this._prevBlock=o}}),t}(),e.mode.CFB}))},"00ee":function(e,t,n){"use strict";var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"01b4":function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=r},"030f":function(e,t,n){(function(e){(function(){"use strict";var t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=function(e){return function(t){return e===t}},o=n("string"),a=n("object"),s=n("array"),u=i(null),c=r("boolean"),l=i(void 0),f=function(e){return null===e||void 0===e},d=function(e){return!f(e)},h=r("function"),p=r("number"),m=function(e,t){if(s(e)){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return!1;return!0}return!1},v=function(){},g=function(e){return function(){return e()}},b=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},y=function(e,t){return function(n){return e(t(n))}},w=function(e){return function(){return e}},x=function(e){return e},_=function(e,t){return e===t};function C(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var k=function(e){return function(t){return!e(t)}},S=function(e){return function(){throw new Error(e)}},O=w(!1),E=w(!0),T=tinymce.util.Tools.resolve("tinymce.ThemeManager"),D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)};function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function A(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var N=function(){return P},P=function(){var e=function(e){return e()},t=x,n={fold:function(e,t){return e()},isSome:O,isNone:E,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:w(null),getOrUndefined:w(void 0),or:t,orThunk:e,map:N,each:v,bind:N,exists:O,forall:E,filter:function(){return N()},toArray:function(){return[]},toString:w("none()")};return n}(),I=function(e){var t=w(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:E,isNone:O,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return I(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:P},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},R=function(e){return null===e||void 0===e?P:I(e)},z={some:I,none:N,from:R},B=Array.prototype.slice,L=Array.prototype.indexOf,$=Array.prototype.push,F=function(e,t){return L.call(e,t)},j=function(e,t){var n=F(e,t);return-1===n?z.none():z.some(n)},V=function(e,t){return F(e,t)>-1},H=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},W=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},U=function(e,t){for(var n=[],r=0;r<e.length;r+=t){var i=B.call(e,r,r+t);n.push(i)}return n},q=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},G=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},K=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},Y=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},X=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},J=function(e,t,n){return K(e,(function(e,r){n=t(n,e,r)})),n},Z=function(e,t,n){return G(e,(function(e,r){n=t(n,e,r)})),n},Q=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return z.some(o);if(n(o,r))break}return z.none()},ee=function(e,t){return Q(e,t,O)},te=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return z.some(n)}return z.none()},ne=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);$.apply(t,e[n])}return t},re=function(e,t){return ne(q(e,t))},ie=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},oe=function(e){var t=B.call(e,0);return t.reverse(),t},ae=function(e,t){return X(e,(function(e){return!V(t,e)}))},se=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},ue=function(e){return[e]},ce=function(e,t){var n=B.call(e,0);return n.sort(t),n},le=function(e,t){return t>=0&&t<e.length?z.some(e[t]):z.none()},fe=function(e){return le(e,0)},de=function(e){return le(e,e.length-1)},he=h(Array.from)?Array.from:function(e){return B.call(e)},pe=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return z.none()},me=Object.keys,ve=Object.hasOwnProperty,ge=function(e,t){for(var n=me(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},be=function(e,t){return ye(e,(function(e,n){return{k:n,v:t(e,n)}}))},ye=function(e,t){var n={};return ge(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},we=function(e){return function(t,n){e[n]=t}},xe=function(e,t,n,r){var i={};return ge(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},_e=function(e,t){var n={};return xe(e,t,we(n),v),n},Ce=function(e,t){var n=[];return ge(e,(function(e,r){n.push(t(e,r))})),n},ke=function(e,t){for(var n=me(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];if(t(a,o,e))return z.some(a)}return z.none()},Se=function(e){return Ce(e,x)},Oe=function(e,t){return Ee(e,t)?z.from(e[t]):z.none()},Ee=function(e,t){return ve.call(e,t)},Te=function(e,t){return Ee(e,t)&&void 0!==e[t]&&null!==e[t]},De=function(e,t,n){return void 0===n&&(n=_),e.exists((function(e){return n(e,t)}))},Me=function(e,t,n){return void 0===n&&(n=_),Pe(e,t,n).getOr(e.isNone()&&t.isNone())},Ae=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},Ne=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.isSome())return z.none();t.push(r.getOrDie())}return z.some(t)},Pe=function(e,t,n){return e.isSome()&&t.isSome()?z.some(n(e.getOrDie(),t.getOrDie())):z.none()},Ie=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?z.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):z.none()},Re=function(e,t){return void 0!==e&&null!==e?z.some(t(e)):z.none()},ze=function(e,t){return e?z.some(t):z.none()},Be=function(e,t){return e+t},Le=function(e,t){return e.substring(t)},$e=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},Fe=function(e,t){return He(e,t)?Le(e,t.length):e},je=function(e,t){return We(e,t)?e:Be(e,t)},Ve=function(e,t){return-1!==e.indexOf(t)},He=function(e,t){return $e(e,t,0)},We=function(e,t){return $e(e,t,e.length-t.length)},Ue=function(e){return function(t){return t.replace(e,"")}},qe=Ue(/^\s+|\s+$/g),Ge=function(e){return e.length>0},Ke=function(e){return!Ge(e)},Ye=function(e){return void 0!==e.style&&h(e.style.getPropertyValue)},Xe=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Qe(r.childNodes[0])},Je=function(e,t){var n=t||document,r=n.createElement(e);return Qe(r)},Ze=function(e,t){var n=t||document,r=n.createTextNode(e);return Qe(r)},Qe=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},et=function(e,t,n){return z.from(e.dom.elementFromPoint(t,n)).map(Qe)},tt={fromHtml:Xe,fromTag:Je,fromText:Ze,fromDom:Qe,fromPoint:et};"undefined"!==typeof window?window:Function("return this;")();var nt,rt=9,it=11,ot=1,at=3,st=function(e){var t=e.dom.nodeName;return t.toLowerCase()},ut=function(e){return e.dom.nodeType},ct=function(e){return function(t){return ut(t)===e}},lt=ct(ot),ft=ct(at),dt=ct(rt),ht=ct(it),pt=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},mt=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),c=o||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!c&&!u&&!l;return{isiPad:w(i),isiPhone:w(o),isTablet:w(u),isPhone:w(c),isTouch:w(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:w(l),isDesktop:w(f)}},vt=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},gt=function(e,t){var n=vt(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return wt(r(1),r(2))},bt=function(e,t){var n=String(t).toLowerCase();return 0===e.length?yt():gt(e,n)},yt=function(){return wt(0,0)},wt=function(e,t){return{major:e,minor:t}},xt={nu:wt,detect:bt,unknown:yt},_t=function(e,t){return pe(t.brands,(function(t){var n=t.brand.toLowerCase();return ee(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:xt.nu(parseInt(t.version,10),0)}}))}))},Ct=function(e,t){var n=String(t).toLowerCase();return ee(e,(function(e){return e.search(n)}))},kt=function(e,t){return Ct(e,t).map((function(e){var n=xt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},St=function(e,t){return Ct(e,t).map((function(e){var n=xt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Ot=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Et=function(e){return function(t){return Ve(t,e)}},Tt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Ve(e,"edge/")&&Ve(e,"chrome")&&Ve(e,"safari")&&Ve(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ot],search:function(e){return Ve(e,"chrome")&&!Ve(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Ve(e,"msie")||Ve(e,"trident")}},{name:"Opera",versionRegexes:[Ot,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Et("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Et("firefox")},{name:"Safari",versionRegexes:[Ot,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Ve(e,"safari")||Ve(e,"mobile/"))&&Ve(e,"applewebkit")}}],Dt=[{name:"Windows",search:Et("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Ve(e,"iphone")||Ve(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Et("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Et("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Et("linux"),versionRegexes:[]},{name:"Solaris",search:Et("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Et("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Et("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Mt={browsers:w(Tt),oses:w(Dt)},At="Edge",Nt="Chrome",Pt="IE",It="Opera",Rt="Firefox",zt="Safari",Bt=function(){return Lt({current:void 0,version:xt.unknown()})},Lt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(At),isChrome:r(Nt),isIE:r(Pt),isOpera:r(It),isFirefox:r(Rt),isSafari:r(zt)}},$t={unknown:Bt,nu:Lt,edge:w(At),chrome:w(Nt),ie:w(Pt),opera:w(It),firefox:w(Rt),safari:w(zt)},Ft="Windows",jt="iOS",Vt="Android",Ht="Linux",Wt="OSX",Ut="Solaris",qt="FreeBSD",Gt="ChromeOS",Kt=function(){return Yt({current:void 0,version:xt.unknown()})},Yt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ft),isiOS:r(jt),isAndroid:r(Vt),isOSX:r(Wt),isLinux:r(Ht),isSolaris:r(Ut),isFreeBSD:r(qt),isChromeOS:r(Gt)}},Xt={unknown:Kt,nu:Yt,windows:w(Ft),ios:w(jt),android:w(Vt),linux:w(Ht),osx:w(Wt),solaris:w(Ut),freebsd:w(qt),chromeos:w(Gt)},Jt=function(e,t,n){var r=Mt.browsers(),i=Mt.oses(),o=t.bind((function(e){return _t(r,e)})).orThunk((function(){return kt(r,e)})).fold($t.unknown,$t.nu),a=St(i,e).fold(Xt.unknown,Xt.nu),s=mt(a,o,e,n);return{browser:o,os:a,deviceType:s}},Zt={detect:Jt},Qt=function(e){return window.matchMedia(e).matches},en=pt((function(){return Zt.detect(navigator.userAgent,z.from(navigator.userAgentData),Qt)})),tn=function(){return en()},nn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},rn=function(e,t){return nn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},on=function(e,t){var n=e.dom;if(n.nodeType!==ot)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},an=function(e){return e.nodeType!==ot&&e.nodeType!==rt&&e.nodeType!==it||0===e.childElementCount},sn=function(e,t){var n=void 0===t?document:t.dom;return an(n)?[]:q(n.querySelectorAll(e),tt.fromDom)},un=function(e,t){var n=void 0===t?document:t.dom;return an(n)?z.none():z.from(n.querySelector(e)).map(tt.fromDom)},cn=function(e,t){return e.dom===t.dom},ln=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},fn=function(e,t){return rn(e.dom,t.dom)},dn=function(e,t){return tn().browser.isIE()?fn(e,t):ln(e,t)},hn=function(e){return tt.fromDom(e.dom.ownerDocument)},pn=function(e){return dt(e)?e:hn(e)},mn=function(e){return tt.fromDom(pn(e).dom.documentElement)},vn=function(e){return tt.fromDom(pn(e).dom.defaultView)},gn=function(e){return z.from(e.dom.parentNode).map(tt.fromDom)},bn=function(e){return gn(e)},yn=function(e){return z.from(e.dom.offsetParent).map(tt.fromDom)},wn=function(e){return z.from(e.dom.nextSibling).map(tt.fromDom)},xn=function(e){return q(e.dom.childNodes,tt.fromDom)},_n=function(e,t){var n=e.dom.childNodes;return z.from(n[t]).map(tt.fromDom)},Cn=function(e){return _n(e,0)},kn=function(e,t){return{element:e,offset:t}},Sn=function(e,t){var n=xn(e);return n.length>0&&t<n.length?kn(n[t],0):kn(e,t)},On=function(e){return ht(e)&&d(e.dom.host)},En=h(Element.prototype.attachShadow)&&h(Node.prototype.getRootNode),Tn=w(En),Dn=En?function(e){return tt.fromDom(e.dom.getRootNode())}:pn,Mn=function(e){return On(e)?e:tt.fromDom(pn(e).dom.body)},An=function(e){return Nn(e).isSome()},Nn=function(e){var t=Dn(e);return On(t)?z.some(t):z.none()},Pn=function(e){return tt.fromDom(e.dom.host)},In=function(e){if(Tn()&&d(e.target)){var t=tt.fromDom(e.target);if(lt(t)&&Rn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return fe(n)}}return z.from(e.target)},Rn=function(e){return d(e.dom.shadowRoot)},zn=function(e){var t=ft(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Nn(tt.fromDom(t)).fold((function(){return n.body.contains(t)}),y(zn,Pn))},Bn=function(){return Ln(tt.fromDom(document))},Ln=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return tt.fromDom(t)},$n=function(e,t,n){if(!(o(n)||c(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Fn=function(e,t,n){$n(e.dom,t,n)},jn=function(e,t){var n=e.dom;ge(t,(function(e,t){$n(n,t,e)}))},Vn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},Hn=function(e,t){return z.from(Vn(e,t))},Wn=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},Un=function(e,t){e.dom.removeAttribute(t)},qn=function(e,t,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Ye(e)&&e.style.setProperty(t,n)},Gn=function(e,t){Ye(e)&&e.style.removeProperty(t)},Kn=function(e,t,n){var r=e.dom;qn(r,t,n)},Yn=function(e,t){var n=e.dom;ge(t,(function(e,t){qn(n,t,e)}))},Xn=function(e,t){var n=e.dom;ge(t,(function(e,t){e.fold((function(){Gn(n,t)}),(function(e){qn(n,t,e)}))}))},Jn=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||zn(e)?i:Zn(n,t)},Zn=function(e,t){return Ye(e)?e.style.getPropertyValue(t):""},Qn=function(e,t){var n=e.dom,r=Zn(n,t);return z.from(r).filter((function(e){return e.length>0}))},er=function(e){var t={},n=e.dom;if(Ye(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},tr=function(e,t,n){var r=tt.fromTag(e);Kn(r,t,n);var i=Qn(r,t);return i.isSome()},nr=function(e,t){var n=e.dom;Gn(n,t),De(Hn(e,"style").map(qe),"")&&Un(e,"style")},rr=function(e){return e.dom.offsetWidth},ir=function(e,t){var n=function(t,n){if(!p(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;Ye(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Jn(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return Z(t,(function(t,n){var r=Jn(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},or=ir("height",(function(e){var t=e.dom;return zn(e)?t.getBoundingClientRect().height:t.offsetHeight})),ar=function(e){return or.get(e)},sr=function(e){return or.getOuter(e)},ur=function(e,t){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=or.max(e,t,n);Kn(e,"max-height",r+"px")},cr=function(e,t){var n=function(n,r){return cr(e+n,t+r)};return{left:e,top:t,translate:n}},lr=cr,fr=function(e){var t=e.getBoundingClientRect();return lr(t.left,t.top)},dr=function(e,t){return void 0!==e?e:void 0!==t?t:0},hr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return lr(n.offsetLeft,n.offsetTop);var o=dr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=dr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=dr(i.clientTop,n.clientTop),u=dr(i.clientLeft,n.clientLeft);return pr(e).translate(a-u,o-s)},pr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?lr(r.offsetLeft,r.offsetTop):zn(e)?fr(t):lr(0,0)},mr=ir("width",(function(e){return e.dom.offsetWidth})),vr=function(e,t){return mr.set(e,t)},gr=function(e){return mr.get(e)},br=function(e){return mr.getOuter(e)},yr=function(e,t){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=mr.max(e,t,n);Kn(e,"max-width",r+"px")},wr=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},xr=function(e){var t=tt.fromDom(In(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=b(r,n);return wr(t,e.clientX,e.clientY,n,r,i,e)},_r=function(e,t){return function(n){e(n)&&t(xr(n))}},Cr=function(e,t,n,r,i){var o=_r(n,r);return e.dom.addEventListener(t,o,i),{unbind:C(Or,e,t,o,i)}},kr=function(e,t,n,r){return Cr(e,t,n,r,!1)},Sr=function(e,t,n,r){return Cr(e,t,n,r,!0)},Or=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Er=function(e,t){var n=gn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Tr=function(e,t){var n=wn(e);n.fold((function(){var n=gn(e);n.each((function(e){Mr(e,t)}))}),(function(e){Er(e,t)}))},Dr=function(e,t){var n=Cn(e);n.fold((function(){Mr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Mr=function(e,t){e.dom.appendChild(t.dom)},Ar=function(e,t,n){_n(e,n).fold((function(){Mr(e,t)}),(function(e){Er(e,t)}))},Nr=function(e,t){G(t,(function(t){Er(e,t)}))},Pr=function(e,t){G(t,(function(t){Mr(e,t)}))},Ir=function(e){e.dom.textContent="",G(xn(e),(function(e){Rr(e)}))},Rr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},zr=function(e){var t=xn(e);t.length>0&&Nr(e,t),Rr(e)},Br=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return lr(n,r)},Lr=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},$r=function(e){var t=void 0===e?window:e;return tn().browser.isFirefox()?z.none():z.from(t["visualViewport"])},Fr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},jr=function(e){var t=void 0===e?window:e,n=t.document,r=Br(tt.fromDom(n));return $r(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return Fr(r.left,r.top,n,i)}),(function(e){return Fr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Vr=function(e,t){var n=e.view(t);return n.fold(w([]),(function(t){var n=e.owner(t),r=Vr(e,n);return[t].concat(r)}))},Hr=function(e,t){var n=t.owner(e),r=Vr(t,n);return z.some(r)},Wr=function(e){var t,n=e.dom===document?z.none():z.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(tt.fromDom)},Ur=function(e){return hn(e)},qr=Object.freeze({__proto__:null,view:Wr,owner:Ur}),Gr=function(e){var t=tt.fromDom(document),n=Br(t),r=Hr(e,qr);return r.fold(C(hr,e),(function(t){var r=pr(e),i=J(t,(function(e,t){var n=pr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return lr(i.left+r.left+n.left,i.top+r.top+n.top)}))},Kr=function(e,t,n){return{point:e,width:t,height:n}},Yr=function(e,t,n,r){return{x:e,y:t,width:n,height:r}},Xr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Jr=function(e){var t=hr(e),n=br(e),r=sr(e);return Xr(t.left,t.top,n,r)},Zr=function(e){var t=Gr(e),n=br(e),r=sr(e);return Xr(t.left,t.top,n,r)},Qr=function(){return jr(window)},ei=function(e){var t=function(t){return ei(e)},n=function(t){return ei(e)},r=function(t){return ei(t(e))},i=function(t){return ei(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},u=function(t){return t(e)},c=function(t){return t(e)},l=function(){return z.some(e)};return{isValue:E,isError:O,getOr:w(e),getOrThunk:w(e),getOrDie:w(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:u,forall:c,toOptional:l}},ti=function(e){var t=function(e){return e()},n=function(){return S(String(e))()},r=x,i=function(e){return e()},o=function(t){return ti(e)},a=function(t){return ti(t(e))},s=function(t){return ti(e)},u=function(t,n){return t(e)};return{isValue:O,isError:E,getOr:x,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:u,map:o,mapError:a,each:v,bind:s,exists:O,forall:E,toOptional:z.none}},ni=function(e,t){return e.fold((function(){return ti(t)}),ei)},ri={value:ei,error:ti,fromOption:ni};(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(nt||(nt={}));var ii=function(e,t,n){return e.stype===nt.Error?t(e.serror):n(e.svalue)},oi=function(e){var t=[],n=[];return G(e,(function(e){ii(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n}},ai=function(e,t){return e.stype===nt.Error?{stype:nt.Error,serror:t(e.serror)}:e},si=function(e,t){return e.stype===nt.Value?{stype:nt.Value,svalue:t(e.svalue)}:e},ui=function(e,t){return e.stype===nt.Value?t(e.svalue):e},ci=function(e,t){return e.stype===nt.Error?t(e.serror):e},li=function(e){return{stype:nt.Value,svalue:e}},fi=function(e){return{stype:nt.Error,serror:e}},di=function(e){return ii(e,ri.error,ri.value)},hi=function(e){return e.fold(fi,li)},pi={fromResult:hi,toResult:di,svalue:li,partition:oi,serror:fi,bind:ui,bindError:ci,map:si,mapError:ai,fold:ii},mi=function(e,t,n,r){return{tag:"field",key:e,newKey:t,presence:n,prop:r}},vi=function(e,t){return{tag:"custom",newKey:e,instantiator:t}},gi=function(e,t,n){switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}},bi=function(e,t){return t},yi=function(e,t){var n=a(e)&&a(t);return n?xi(e,t):t},wi=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Ee(o,a)&&(r[a]=e(r[a],o[a]))}return r}},xi=wi(yi),_i=wi(bi),Ci=function(){return{tag:"required",process:{}}},ki=function(e){return{tag:"defaultedThunk",process:e}},Si=function(e){return ki(w(e))},Oi=function(){return{tag:"option",process:{}}},Ei=function(e){return{tag:"mergeWithThunk",process:e}},Ti=function(e){return Ei(w(e))},Di=function(e,t){return e.length>0?pi.svalue(xi(t,_i.apply(void 0,e))):pi.svalue(t)},Mi=function(e){return b(pi.serror,ne)(e)},Ai=function(e,t){var n=pi.partition(e);return n.errors.length>0?Mi(n.errors):Di(n.values,t)},Ni=function(e){var t=pi.partition(e);return t.errors.length>0?Mi(t.errors):pi.svalue(t.values)},Pi={consolidateObj:Ai,consolidateArr:Ni},Ii=function(e){return a(e)&&me(e).length>100?" removed due to size":JSON.stringify(e,null,2)},Ri=function(e){var t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:w("... (only showing first ten failures)")}]):e;return q(t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()}))},zi=function(e,t){return pi.serror([{path:e,getErrorInfo:t}])},Bi=function(e,t,n){return zi(e,(function(){return'Could not find valid *required* value for "'+t+'" in '+Ii(n)}))},Li=function(e,t){return zi(e,(function(){return'Choice schema did not contain choice key: "'+t+'"'}))},$i=function(e,t,n){return zi(e,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+Ii(t)}))},Fi=function(e,t){return zi(e,(function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"}))},ji=function(e,t){return zi(e,w(t))},Vi=function(e){var t=function(t,n){return pi.bindError(e(n),(function(e){return ji(t,e)}))},n=w("val");return{extract:t,toString:n}},Hi=Vi(pi.svalue),Wi=function(e,t,n,r){return Oe(t,n).fold((function(){return Bi(e,n,t)}),r)},Ui=function(e,t,n,r){var i=Oe(e,t).getOrThunk((function(){return n(e)}));return r(i)},qi=function(e,t,n){return n(Oe(e,t))},Gi=function(e,t,n,r){var i=Oe(e,t).map((function(t){return!0===t?n(e):t}));return r(i)},Ki=function(e,t,n,r,i){var o=function(e){return i.extract(t.concat([r]),e)},a=function(e){return e.fold((function(){return pi.svalue(z.none())}),(function(e){var n=i.extract(t.concat([r]),e);return pi.map(n,z.some)}))};switch(e.tag){case"required":return Wi(t,n,r,o);case"defaultedThunk":return Ui(n,r,e.process,o);case"option":return qi(n,r,a);case"defaultedOptionThunk":return Gi(n,r,e.process,a);case"mergeWithThunk":return Ui(n,r,w({}),(function(t){var r=xi(e.process(n),t);return o(r)}))}},Yi=function(e,t,n){for(var r={},i=[],o=0,a=n;o<a.length;o++){var s=a[o];gi(s,(function(n,o,a,s){var u=Ki(a,e,t,n,s);pi.fold(u,(function(e){i.push.apply(i,e)}),(function(e){r[o]=e}))}),(function(e,n){r[e]=n(t)}))}return i.length>0?pi.serror(i):pi.svalue(r)},Xi=function(e){var t=function(t,n){return e().extract(t,n)},n=function(){return e().toString()};return{extract:t,toString:n}},Ji=function(e){return me(_e(e,d))},Zi=function(e){var t=Qi(e),n=J(e,(function(e,t){return gi(t,(function(t){var n;return xi(e,(n={},n[t]=!0,n))}),w(e))}),{}),r=function(e,r){var i=c(r)?[]:Ji(r),o=X(i,(function(e){return!Te(n,e)}));return 0===o.length?t.extract(e,r):Fi(e,o)};return{extract:r,toString:t.toString}},Qi=function(e){var t=function(t,n){return Yi(t,n,e)},n=function(){var t=q(e,(function(e){return gi(e,(function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))}));return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:n}},eo=function(e){var t=function(t,n){var r=q(n,(function(n,r){return e.extract(t.concat(["["+r+"]"]),n)}));return Pi.consolidateArr(r)},n=function(){return"array("+e.toString()+")"};return{extract:t,toString:n}},to=function(e){var t=function(t,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=a.extract(t,n);if(s.stype===nt.Value)return s;r.push(s)}return Pi.consolidateArr(r)},n=function(){return"oneOf("+q(e,(function(e){return e.toString()})).join(", ")+")"};return{extract:t,toString:n}},no=function(e,t){var n=function(t,n){return eo(Vi(e)).extract(t,n)},r=function(e,r){var i=me(r),o=n(e,i);return pi.bind(o,(function(n){var i=q(n,(function(e){return mi(e,e,Ci(),t)}));return Qi(i).extract(e,r)}))},i=function(){return"setOf("+t.toString()+")"};return{extract:r,toString:i}},ro=function(e,t){var n=pt(t),r=function(e,t){return n().extract(e,t)},i=function(){return n().toString()};return{extract:r,toString:i}},io=b(eo,Qi),oo=w(Hi),ao=function(e,t){return Vi((function(n){var r=typeof n;return e(n)?pi.svalue(n):pi.serror("Expected type: "+t+" but got: "+r)}))},so=ao(p,"number"),uo=ao(o,"string"),co=ao(c,"boolean"),lo=ao(h,"function"),fo=function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).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(e).every((function(t){return fo(e[t])}));default:return!1}},ho=Vi((function(e){return fo(e)?pi.svalue(e):pi.serror("Expected value to be acceptable for sending via postMessage")})),po=function(e,t,n,r){var i=Oe(n,r);return i.fold((function(){return $i(e,n,r)}),(function(n){return n.extract(e.concat(["branch: "+r]),t)}))},mo=function(e,t){var n=function(n,r){var i=Oe(r,e);return i.fold((function(){return Li(n,e)}),(function(e){return po(n,r,t,e)}))},r=function(){return"chooseOn("+e+"). Possible values: "+me(t)};return{extract:n,toString:r}},vo=function(){return eo(Hi)},go=function(e){return Vi((function(t){return e(t).fold(pi.serror,pi.svalue)}))},bo=function(e,t){return no((function(t){return pi.fromResult(e(t))}),t)},yo=function(e,t,n){var r=t.extract([e],n);return pi.mapError(r,(function(e){return{input:n,errors:e}}))},wo=function(e,t,n){return pi.toResult(yo(e,t,n))},xo=function(e){return e.fold((function(e){throw new Error(Co(e))}),x)},_o=function(e,t,n){return xo(wo(e,t,n))},Co=function(e){return"Errors: \n"+Ri(e.errors).join("\n")+"\n\nInput object: "+Ii(e.input)},ko=function(e,t){return mo(e,be(t,Qi))},So=function(e,t){return ro(e,t)},Oo=mi,Eo=vi,To=function(e){return go((function(t){return V(e,t)?ri.value(t):ri.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))},Do=function(e){return Oo(e,e,Ci(),oo())},Mo=function(e,t){return Oo(e,e,Ci(),t)},Ao=function(e){return Mo(e,so)},No=function(e){return Mo(e,uo)},Po=function(e,t){return Oo(e,e,Ci(),To(t))},Io=function(e){return Mo(e,co)},Ro=function(e){return Mo(e,lo)},zo=function(e,t){return Oo(e,e,Oi(),Vi((function(n){return pi.serror("The field: "+e+" is forbidden. "+t)})))},Bo=function(e,t){return Oo(e,e,Ci(),Qi(t))},Lo=function(e,t){return Oo(e,e,Ci(),io(t))},$o=function(e,t){return Oo(e,e,Ci(),eo(t))},Fo=function(e){return Oo(e,e,Oi(),oo())},jo=function(e,t){return Oo(e,e,Oi(),t)},Vo=function(e){return jo(e,so)},Ho=function(e){return jo(e,uo)},Wo=function(e){return jo(e,lo)},Uo=function(e,t){return jo(e,eo(t))},qo=function(e,t){return jo(e,Qi(t))},Go=function(e,t){return jo(e,Zi(t))},Ko=function(e,t){return Oo(e,e,Si(t),oo())},Yo=function(e,t,n){return Oo(e,e,Si(t),n)},Xo=function(e,t){return Yo(e,t,so)},Jo=function(e,t){return Yo(e,t,uo)},Zo=function(e,t,n){return Yo(e,t,To(n))},Qo=function(e,t){return Yo(e,t,co)},ea=function(e,t){return Yo(e,t,lo)},ta=function(e,t){return Yo(e,t,ho)},na=function(e,t,n){return Yo(e,t,eo(n))},ra=function(e,t,n){return Yo(e,t,Qi(n))},ia=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},oa=function(e){if(!s(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return G(e,(function(r,i){var o=me(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[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(!s(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+o);var s=function(e){var r=me(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=ie(t,(function(e){return V(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:s,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},aa={generate:oa};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var sa,ua=function(e){var t=[],n=[];return G(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}},ca=function(e,t){var n={};return ge(e,(function(e,r){V(t,r)||(n[r]=e)})),n},la=function(e,t){var n;return n={},n[e]=t,n},fa=function(e){var t={};return G(e,(function(e){t[e.key]=e.value})),t},da=function(e,t){return ca(e,t)},ha=function(e,t){return la(e,t)},pa=function(e){return fa(e)},ma=function(e,t){return 0===e.length?ri.value(t):ri.value(xi(t,_i.apply(void 0,e)))},va=function(e){return ri.error(ne(e))},ga=function(e,t){var n=ua(e);return n.errors.length>0?va(n.errors):ma(n.values,t)},ba=function(e){return h(e)?e:O},ya=function(e,t,n){var r=e.dom,i=ba(n);while(r.parentNode){r=r.parentNode;var o=tt.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return z.none()},wa=function(e,t,n){var r=t(e),i=ba(n);return r.orThunk((function(){return i(e)?z.none():ya(e,t,i)}))},xa=function(e,t){return cn(e.element,t.event.target)},_a={can:E,abort:O,run:v},Ca=function(e){if(!Te(e,"can")&&!Te(e,"abort")&&!Te(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return D(D({},_a),e)},ka=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Z(e,(function(e,r){return e&&t(r).apply(void 0,n)}),!0)}},Sa=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Z(e,(function(e,r){return e||t(r).apply(void 0,n)}),!1)}},Oa=function(e){return h(e)?{can:E,abort:O,run:e}:e},Ea=function(e){var t=ka(e,(function(e){return e.can})),n=Sa(e,(function(e){return e.abort})),r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];G(e,(function(e){e.run.apply(void 0,t)}))};return{can:t,abort:n,run:r}},Ta=w,Da=Ta("touchstart"),Ma=Ta("touchmove"),Aa=Ta("touchend"),Na=Ta("touchcancel"),Pa=Ta("mousedown"),Ia=Ta("mousemove"),Ra=Ta("mouseout"),za=Ta("mouseup"),Ba=Ta("mouseover"),La=Ta("focusin"),$a=Ta("focusout"),Fa=Ta("keydown"),ja=Ta("keyup"),Va=Ta("input"),Ha=Ta("change"),Wa=Ta("click"),Ua=Ta("transitioncancel"),qa=Ta("transitionend"),Ga=Ta("transitionstart"),Ka=Ta("selectstart"),Ya=function(e){return w("alloy."+e)},Xa={tap:Ya("tap")},Ja=Ya("focus"),Za=Ya("blur.post"),Qa=Ya("paste.post"),es=Ya("receive"),ts=Ya("execute"),ns=Ya("focus.item"),rs=Xa.tap,is=Ya("longpress"),os=Ya("sandbox.close"),as=Ya("typeahead.cancel"),ss=Ya("system.init"),us=Ya("system.touchmove"),cs=Ya("system.touchend"),ls=Ya("system.scroll"),fs=Ya("system.resize"),ds=Ya("system.attached"),hs=Ya("system.detached"),ps=Ya("system.dismissRequested"),ms=Ya("system.repositionRequested"),vs=Ya("focusmanager.shifted"),gs=Ya("slotcontainer.visibility"),bs=Ya("change.tab"),ys=Ya("dismiss.tab"),ws=Ya("highlight"),xs=Ya("dehighlight"),_s=function(e,t){Os(e,e.element,t,{})},Cs=function(e,t,n){Os(e,e.element,t,n)},ks=function(e){_s(e,ts())},Ss=function(e,t,n){Os(e,t,n,{})},Os=function(e,t,n,r){var i=D({target:t},r);e.getSystem().triggerEvent(n,t,i)},Es=function(e,t,n,r){e.getSystem().triggerEvent(n,t,r.event)},Ts=function(e){return pa(e)},Ds=function(e,t){return{key:e,value:Ca({abort:t})}},Ms=function(e,t){return{key:e,value:Ca({can:t})}},As=function(e){return{key:e,value:Ca({run:function(e,t){t.event.prevent()}})}},Ns=function(e,t){return{key:e,value:Ca({run:t})}},Ps=function(e,t,n){return{key:e,value:Ca({run:function(e,r){t.apply(void 0,[e,r].concat(n))}})}},Is=function(e){return function(t){return Ns(e,t)}},Rs=function(e){return function(t){return{key:e,value:Ca({run:function(e,n){xa(e,n)&&t(e,n)}})}}},zs=function(e,t){return Ns(e,(function(n,r){n.getSystem().getByUid(t).each((function(t){Es(t,t.element,e,r)}))}))},Bs=function(e,t,n){var r=t.partUids[n];return zs(e,r)},Ls=function(e,t){return Ns(e,(function(e,n){var r=n.event,i=e.getSystem().getByDom(r.target).getOrThunk((function(){var t=wa(r.target,(function(t){return e.getSystem().getByDom(t).toOptional()}),O);return t.getOr(e)}));t(e,i,n)}))},$s=function(e){return Ns(e,(function(e,t){t.cut()}))},Fs=function(e){return Ns(e,(function(e,t){t.stop()}))},js=function(e,t){return Rs(e)(t)},Vs=Rs(ds()),Hs=Rs(hs()),Ws=Rs(ss()),Us=Is(ts()),qs=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,xn(tt.fromDom(r))},Gs=function(e){return e.dom.innerHTML},Ks=function(e,t){var n=hn(e),r=n.dom,i=tt.fromDom(r.createDocumentFragment()),o=qs(t,r);Pr(i,o),Ir(e),Mr(e,i)},Ys=function(e){var t=tt.fromTag("div"),n=tt.fromDom(e.dom.cloneNode(!0));return Mr(t,n),Gs(t)},Xs=function(e,t){return tt.fromDom(e.dom.cloneNode(t))},Js=function(e){return Xs(e,!1)},Zs=function(e){if(On(e))return"#shadow-root";var t=Js(e);return Ys(t)},Qs=function(e){return Zs(e)},eu=function(e,t,n){return cn(t,e.element)&&!cn(t,n)},tu=Ts([Ms(Ja(),(function(e,t){var n=t.event,r=n.originator,i=n.target;return!eu(e,r,i)||(console.warn(Ja()+" did not get interpreted by the desired target. \nOriginator: "+Qs(r)+"\nTarget: "+Qs(i)+"\nCheck the "+Ja()+" event handlers"),!1)}))]),nu=Object.freeze({__proto__:null,events:tu}),ru=0,iu=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return ru++,e+"_"+r+ru+String(n)},ou=w("alloy-id-"),au=w("data-alloy-id"),su=ou(),uu=au(),cu=function(e,t){var n=iu(su+e);return lu(t,n),n},lu=function(e,t){Object.defineProperty(e.dom,uu,{value:t,writable:!0})},fu=function(e){var t=lt(e)?e.dom[uu]:null;return z.from(t)},du=function(e){return iu(e)},hu=x,pu=function(e){var t=function(t){return"The component must be in a context to execute: "+t+(e?"\n"+Qs(e().element)+" is not in context.":"")},n=function(e){return function(){throw new Error(t(e))}},r=function(e){return function(){console.warn(t(e))}};return{debugInfo:w("fake"),triggerEvent:r("triggerEvent"),triggerFocus:r("triggerFocus"),triggerEscape:r("triggerEscape"),broadcast:r("broadcast"),broadcastOn:r("broadcastOn"),broadcastEvent:r("broadcastEvent"),build:n("build"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:O}},mu=pu(),vu=function(e,t,n){var r=n.toString(),i=r.indexOf(")")+1,o=r.indexOf("("),a=r.substring(o+1,i-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:gu(a.slice(0,1).concat(a.slice(3)))}},e},gu=function(e){return q(e,(function(e){return We(e,"/*")?e.substring(0,e.length-"/*".length):e}))},bu=function(e,t){var n=e.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:gu(o)}},e},yu=function(e,t){var n=t.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:gu(o.slice(1))}},e},wu=iu("alloy-premade"),xu=function(e){return ha(wu,e)},_u=function(e){return Oe(e,wu)},Cu=function(e){return yu((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,A([t.getApis(),t],n,!1))}),e)},ku={init:function(){return Su({readState:w("No State required")})}},Su=function(e){return e},Ou=function(e,t){var n=q(t,(function(e){return qo(e.name(),[Do("config"),Ko("state",ku)])})),r=wo("component.behaviours",Qi(n),e.behaviours).fold((function(t){throw new Error(Co(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))}),x);return{list:t,data:be(r,(function(e){var t=e.map((function(e){return{config:e.config,state:e.state.init(e.config)}}));return w(t)}))}},Eu=function(e){return e.list},Tu=function(e){return e.data},Du=function(e,t){var n={};return ge(e,(function(e,r){ge(e,(function(e,i){var o=Oe(n,i).getOr([]);n[i]=o.concat([t(r,e)])}))})),n},Mu=function(e){return{classes:l(e.classes)?[]:e.classes,attributes:l(e.attributes)?{}:e.attributes,styles:l(e.styles)?{}:e.styles}},Au=function(e,t){return D(D({},e),{attributes:D(D({},e.attributes),t.attributes),styles:D(D({},e.styles),t.styles),classes:e.classes.concat(t.classes)})},Nu=function(e,t,n,r){var i=D({},t);G(n,(function(t){i[t.name()]=t.exhibit(e,r)}));var o=Du(i,(function(e,t){return{name:e,modification:t}})),a=function(e){return J(e,(function(e,t){return D(D({},t.modification),e)}),{})},s=J(o.classes,(function(e,t){return t.modification.concat(e)}),[]),u=a(o.attributes),c=a(o.styles);return Mu({classes:s,attributes:u,styles:c})},Pu=function(e,t,n,r){try{var i=ce(n,(function(n,i){var o=n[t],a=i[t],s=r.indexOf(o),u=r.indexOf(a);if(-1===s)throw new Error("The ordering for "+e+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===u)throw new Error("The ordering for "+e+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return s<u?-1:u<s?1:0}));return ri.value(i)}catch(o){return ri.error([o])}},Iu=function(e,t){return{handler:e,purpose:t}},Ru=function(e,t){return{cHandler:e,purpose:t}},zu=function(e,t){return Ru(C.apply(void 0,[e.handler].concat(t)),e.purpose)},Bu=function(e){return e.cHandler},Lu=function(e,t){return{name:e,handler:t}},$u=function(e,t){var n={};return G(e,(function(e){n[e.name()]=e.handlers(t)})),n},Fu=function(e,t,n){var r=D(D({},n),$u(t,e));return Du(r,Lu)},ju=function(e,t,n,r){var i=Fu(e,n,r);return Uu(i,t)},Vu=function(e){var t=Oa(e);return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=[e,n].concat(r);t.abort.apply(void 0,o)?n.stop():t.can.apply(void 0,o)&&t.run.apply(void 0,o)}},Hu=function(e,t){return ri.error(["The event ("+e+') 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(q(t,(function(e){return e.name})),null,2)])},Wu=function(e,t,n){var r=t[n];return r?Pu("Event: "+n,"name",e,r).map((function(e){var t=q(e,(function(e){return e.handler}));return Ea(t)})):Hu(n,e)},Uu=function(e,t){var n=Ce(e,(function(e,n){var r=1===e.length?ri.value(e[0].handler):Wu(e,t,n);return r.map((function(r){var i=Vu(r),o=e.length>1?X(t[n],(function(t){return H(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return ha(n,Iu(i,o))}))}));return ga(n,{})},qu="alloy.base.behaviour",Gu=Qi([Oo("dom","dom",Ci(),Qi([Do("tag"),Ko("styles",{}),Ko("classes",[]),Ko("attributes",{}),Fo("value"),Fo("innerHtml")])),Do("components"),Do("uid"),Ko("events",{}),Ko("apis",{}),Oo("eventOrder","eventOrder",Ti((sa={},sa[ts()]=["disabling",qu,"toggling","typeaheadevents"],sa[Ja()]=[qu,"focusing","keying"],sa[ss()]=[qu,"disabling","toggling","representing"],sa[Va()]=[qu,"representing","streaming","invalidating"],sa[hs()]=[qu,"representing","item-events","tooltipping"],sa[Pa()]=["focusing",qu,"item-type-events"],sa[Da()]=["focusing",qu,"item-type-events"],sa[Ba()]=["item-type-events","tooltipping"],sa[es()]=["receiving","reflecting","tooltipping"],sa)),oo()),Fo("domModification")]),Ku=function(e){return wo("custom.definition",Gu,e)},Yu=function(e){return D(D({},e.dom),{uid:e.uid,domChildren:q(e.components,(function(e){return e.element}))})},Xu=function(e){return e.domModification.fold((function(){return Mu({})}),Mu)},Ju=function(e){return e.events},Zu=function(e,t){var n=Vn(e,t);return void 0===n||""===n?[]:n.split(" ")},Qu=function(e,t,n){var r=Zu(e,t),i=r.concat([n]);return Fn(e,t,i.join(" ")),!0},ec=function(e,t,n){var r=X(Zu(e,t),(function(e){return e!==n}));return r.length>0?Fn(e,t,r.join(" ")):Un(e,t),!1},tc=function(e){return void 0!==e.dom.classList},nc=function(e){return Zu(e,"class")},rc=function(e,t){return Qu(e,"class",t)},ic=function(e,t){return ec(e,"class",t)},oc=function(e,t){tc(e)?e.dom.classList.add(t):rc(e,t)},ac=function(e){var t=tc(e)?e.dom.classList:nc(e);0===t.length&&Un(e,"class")},sc=function(e,t){if(tc(e)){var n=e.dom.classList;n.remove(t)}else ic(e,t);ac(e)},uc=function(e,t){return tc(e)&&e.dom.classList.contains(t)},cc=function(e,t){G(t,(function(t){oc(e,t)}))},lc=function(e,t){G(t,(function(t){sc(e,t)}))},fc=function(e,t){return ie(t,(function(t){return uc(e,t)}))},dc=function(e){return e.dom.value},hc=function(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},pc=function(e){var t=tt.fromTag(e.tag);jn(t,e.attributes),cc(t,e.classes),Yn(t,e.styles),e.innerHtml.each((function(e){return Ks(t,e)}));var n=e.domChildren;return Pr(t,n),e.value.each((function(e){hc(t,e)})),e.uid,lu(t,e.uid),t},mc=function(e){var t=Oe(e,"behaviours").getOr({});return re(me(t),(function(e){var n=t[e];return d(n)?[n.me]:[]}))},vc=function(e,t){return Ou(e,t)},gc=function(e){var t=mc(e);return vc(e,t)},bc=function(e,t,n){var r=Yu(e),i=Xu(e),o={"alloy.base.modification":i},a=t.length>0?Nu(n,o,t,r):i;return Au(r,a)},yc=function(e,t,n){var r={"alloy.base.behaviour":Ju(e)};return ju(n,e.eventOrder,t,r).getOrDie()},wc=function(e){var t=function(){return y},n=ia(mu),r=xo(Ku(e)),i=gc(e),o=Eu(i),a=Tu(i),s=bc(r,o,a),u=pc(s),c=yc(r,o,a),l=ia(r.components),f=function(e){n.set(e)},d=function(){n.set(pu(t))},p=function(){var e=xn(u),t=re(e,(function(e){return n.get().getByDom(e).fold((function(){return[]}),ue)}));l.set(t)},m=function(t){var n=a,r=h(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))};return r()},v=function(e){return h(a[e.name()])},g=function(){return r.apis},b=function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},y={uid:e.uid,getSystem:n.get,config:m,hasConfigured:v,spec:e,readState:b,getApis:g,connect:f,disconnect:d,element:u,syncComponents:p,components:l.get,events:c};return y},xc=function(e){var t=Oe(e,"components").getOr([]);return q(t,Ec)},_c=function(e){var t=hu(e),n=t.events,r=M(t,["events"]),i=xc(r),o=D(D({},r),{events:D(D({},nu),n),components:i});return ri.value(wc(o))},Cc=function(e){var t=tt.fromText(e);return kc({element:t})},kc=function(e){var t=_o("external.component",Zi([Do("element"),Fo("uid")]),e),n=ia(pu()),r=function(e){n.set(e)},i=function(){n.set(pu((function(){return a})))},o=t.uid.getOrThunk((function(){return du("external")}));lu(t.element,o);var a={uid:o,getSystem:n.get,config:z.none,hasConfigured:O,connect:r,disconnect:i,getApis:function(){return{}},element:t.element,spec:e,readState:w("No state"),syncComponents:v,components:w([]),events:{}};return xu(a)},Sc=du,Oc=function(e){return Ee(e,"uid")},Ec=function(e){return _u(e).getOrThunk((function(){var t=Oc(e)?e:D({uid:Sc("")},e);return _c(t).getOrDie()}))},Tc=xu;function Dc(e,t,n,r,i){return e(n,r)?z.some(n):h(i)&&i(n)?z.none():t(n,r,i)}var Mc,Ac=function(e,t,n){var r=e.dom,i=h(n)?n:O;while(r.parentNode){r=r.parentNode;var o=tt.fromDom(r);if(t(o))return z.some(o);if(i(o))break}return z.none()},Nc=function(e,t,n){var r=function(e,t){return t(e)};return Dc(r,Ac,e,t,n)},Pc=function(e,t){var n=function(e){return t(tt.fromDom(e))},r=ee(e.dom.childNodes,n);return r.map(tt.fromDom)},Ic=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=tt.fromDom(e.childNodes[r]);if(t(i))return z.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return z.none()};return n(e.dom)},Rc=function(e,t,n){return Nc(e,t,n).isSome()},zc=function(e,t,n){return Ac(e,(function(e){return on(e,t)}),n)},Bc=function(e,t){return Pc(e,(function(e){return on(e,t)}))},Lc=function(e,t){return un(t,e)},$c=function(e,t,n){var r=function(e,t){return on(e,t)};return Dc(r,zc,e,t,n)},Fc=function(e){var t=Nc(e,(function(e){if(!lt(e))return!1;var t=Vn(e,"id");return void 0!==t&&t.indexOf("aria-owns")>-1}));return t.bind((function(e){var t=Vn(e,"id"),n=Dn(e);return Lc(n,'[aria-owns="'+t+'"]')}))},jc=function(){var e=iu("aria-owns"),t=function(t){Fn(t,"aria-owns",e)},n=function(e){Un(e,"aria-owns")};return{id:e,link:t,unlink:n}},Vc=function(e,t){return Fc(t).exists((function(t){return Hc(e,t)}))},Hc=function(e,t){return Rc(t,(function(t){return cn(t,e.element)}),O)||Vc(e,t)},Wc="unknown";(function(e){e[e["STOP"]=0]="STOP",e[e["NORMAL"]=1]="NORMAL",e[e["LOGGING"]=2]="LOGGING"})(Mc||(Mc={}));var Uc=ia({}),qc=function(e,t){var n=[],r=(new Date).getTime();return{logEventCut:function(e,t,r){n.push({outcome:"cut",target:t,purpose:r})},logEventStopped:function(e,t,r){n.push({outcome:"stopped",target:t,purpose:r})},logNoParent:function(e,t,r){n.push({outcome:"no-parent",target:t,purpose:r})},logEventNoHandlers:function(e,t){n.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,r){n.push({outcome:"response",purpose:r,target:t})},write:function(){var i=(new Date).getTime();V(["mousemove","mouseover","mouseout",ss()],e)||console.log(e,{event:e,time:i-r,target:t.dom,sequence:q(n,(function(e){return V(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+Qs(e.target)+")":e.outcome}))})}}},Gc=function(e,t,n){var r=Oe(Uc.get(),e).orThunk((function(){var t=me(Uc.get());return pe(t,(function(t){return e.indexOf(t)>-1?z.some(Uc.get()[t]):z.none()}))})).getOr(Mc.NORMAL);switch(r){case Mc.NORMAL:return n(Zc());case Mc.LOGGING:var i=qc(e,t),o=n(i);return i.write(),o;case Mc.STOP:return!0}},Kc=["alloy/data/Fields","alloy/debugging/Debugging"],Yc=function(){var e=new Error;if(void 0!==e.stack){var t=e.stack.split("\n");return ee(t,(function(e){return e.indexOf("alloy")>0&&!H(Kc,(function(t){return e.indexOf(t)>-1}))})).getOr(Wc)}return Wc},Xc={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},Jc=function(e,t,n){return Gc(e,t,n)},Zc=w(Xc),Qc=w([Do("menu"),Do("selectedMenu")]),el=w([Do("item"),Do("selectedItem")]);w(Qi(el().concat(Qc())));var tl=w(Qi(el())),nl=Bo("initSize",[Do("numColumns"),Do("numRows")]),rl=function(){return Mo("markers",tl())},il=function(){return Bo("markers",[Do("backgroundMenu")].concat(Qc()).concat(el()))},ol=function(e){return Bo("markers",q(e,Do))},al=function(e,t,n){return Yc(),Oo(t,t,n,go((function(e){return ri.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})))},sl=function(e){return al("onHandler",e,Si(v))},ul=function(e){return al("onKeyboardHandler",e,Si(z.none))},cl=function(e){return al("onHandler",e,Ci())},ll=function(e){return al("onKeyboardHandler",e,Ci())},fl=function(e,t){return Eo(e,w(t))},dl=function(e){return Eo(e,x)},hl=w(nl),pl=function(e,t,n,r,i,o,a,s){return void 0===s&&(s=!1),{x:e,y:t,bubble:n,direction:r,placement:i,restriction:o,label:a+"-"+i,alwaysFit:s}},ml=aa.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),vl=function(e,t,n,r,i,o,a,s,u){return e.fold(t,n,r,i,o,a,s,u)},gl=function(e,t,n,r){return e.fold(t,t,r,r,t,r,n,n)},bl=function(e,t,n,r){return e.fold(t,r,t,r,n,n,t,r)},yl=ml.southeast,wl=ml.southwest,xl=ml.northeast,_l=ml.northwest,Cl=ml.south,kl=ml.north,Sl=ml.east,Ol=ml.west,El=function(e,t,n,r){var i=e+t;return i>r?n:i<n?r:i},Tl=function(e,t,n){return Math.min(Math.max(e,t),n)},Dl=function(e,t){switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}},Ml=function(e,t){return se(["left","right","top","bottom"],(function(n){return Oe(t,n).map((function(t){return Dl(e,t)}))}))},Al=function(e,t,n){var r=function(r,i){return t[r].map((function(t){var o="top"===r||"bottom"===r,a=o?n.top:n.left,s="left"===r||"top"===r?Math.max:Math.min,u=s(t,i)+a;return o?Tl(u,e.y,e.bottom):Tl(u,e.x,e.right)})).getOr(i)},i=r("left",e.x),o=r("top",e.y),a=r("right",e.right),s=r("bottom",e.bottom);return Xr(i,o,a-i,s-o)},Nl="layout",Pl=function(e){return e.x},Il=function(e,t){return e.x+e.width/2-t.width/2},Rl=function(e,t){return e.x+e.width-t.width},zl=function(e,t){return e.y-t.height},Bl=function(e){return e.y+e.height},Ll=function(e,t){return e.y+e.height/2-t.height/2},$l=function(e){return e.x+e.width},Fl=function(e,t){return e.x-t.width},jl=function(e,t,n){return pl(Pl(e),Bl(e),n.southeast(),yl(),"southeast",Ml(e,{left:1,top:3}),Nl)},Vl=function(e,t,n){return pl(Rl(e,t),Bl(e),n.southwest(),wl(),"southwest",Ml(e,{right:0,top:3}),Nl)},Hl=function(e,t,n){return pl(Pl(e),zl(e,t),n.northeast(),xl(),"northeast",Ml(e,{left:1,bottom:2}),Nl)},Wl=function(e,t,n){return pl(Rl(e,t),zl(e,t),n.northwest(),_l(),"northwest",Ml(e,{right:0,bottom:2}),Nl)},Ul=function(e,t,n){return pl(Il(e,t),zl(e,t),n.north(),kl(),"north",Ml(e,{bottom:2}),Nl)},ql=function(e,t,n){return pl(Il(e,t),Bl(e),n.south(),Cl(),"south",Ml(e,{top:3}),Nl)},Gl=function(e,t,n){return pl($l(e),Ll(e,t),n.east(),Sl(),"east",Ml(e,{left:0}),Nl)},Kl=function(e,t,n){return pl(Fl(e,t),Ll(e,t),n.west(),Ol(),"west",Ml(e,{right:1}),Nl)},Yl=function(){return[jl,Vl,Hl,Wl,ql,Ul,Gl,Kl]},Xl=function(){return[Vl,jl,Wl,Hl,ql,Ul,Gl,Kl]},Jl=function(){return[Hl,Wl,jl,Vl,Ul,ql]},Zl=function(){return[Wl,Hl,Vl,jl,Ul,ql]},Ql=function(){return[jl,Vl,Hl,Wl,ql,Ul]},ef=function(){return[Vl,jl,Wl,Hl,ql,Ul]},tf=function(e,t){return t.universal?e:X(e,(function(e){return V(t.channels,e)}))},nf=function(e){return Ts([Ns(es(),(function(t,n){var r=e.channels,i=me(r),o=n,a=tf(i,o);G(a,(function(e){var n=r[e],i=n.schema,a=_o("channel["+e+"] data\nReceiver: "+Qs(t.element),i,o.data);n.onReceive(t,a)}))}))])},rf=Object.freeze({__proto__:null,events:nf}),of=[Mo("channels",bo(ri.value,Zi([cl("onReceive"),Ko("schema",oo())])))],af=function(e,t,n){return Us((function(r){n(r,e,t)}))},sf=function(e,t,n){return Ws((function(r,i){n(r,e,t)}))},uf=function(e,t,n,r,i,o){var a=Zi(e),s=qo(t,[Go("config",e)]);return df(a,s,t,n,r,i,o)},cf=function(e,t,n,r,i,o){var a=e,s=qo(t,[jo("config",e)]);return df(a,s,t,n,r,i,o)},lf=function(e,t,n){var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=[r].concat(i);return r.config({name:w(e)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+n)}),(function(e){var n=Array.prototype.slice.call(a,1);return t.apply(void 0,[r,e.config,e.state].concat(n))}))};return vu(r,n,t)},ff=function(e){return{key:e,value:void 0}},df=function(e,t,n,r,i,o,a){var s=function(e){return Te(e,n)?e[n]():z.none()},u=be(i,(function(e,t){return lf(n,e,t)})),c=be(o,(function(e,t){return bu(e,t)})),l=D(D(D({},c),u),{revoke:C(ff,n),config:function(t){var r=_o(n+"-config",e,t);return{key:n,value:{config:r,me:l,configAsRaw:pt((function(){return _o(n+"-config",e,t)})),initialConfig:t,state:a}}},schema:w(t),exhibit:function(e,t){return Pe(s(e),Oe(r,"exhibit"),(function(e,n){return n(t,e.config,e.state)})).getOrThunk((function(){return Mu({})}))},name:w(n),handlers:function(e){return s(e).map((function(e){var t=Oe(r,"events").getOr((function(){return{}}));return t(e.config,e.state)})).getOr({})}});return l},hf=function(e){return pa(e)},pf=Zi([Do("fields"),Do("name"),Ko("active",{}),Ko("apis",{}),Ko("state",ku),Ko("extra",{})]),mf=function(e){var t=_o("Creating behaviour: "+e.name,pf,e);return uf(t.fields,t.name,t.active,t.apis,t.extra,t.state)},vf=Zi([Do("branchKey"),Do("branches"),Do("name"),Ko("active",{}),Ko("apis",{}),Ko("state",ku),Ko("extra",{})]),gf=function(e){var t=_o("Creating behaviour: "+e.name,vf,e);return cf(ko(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},bf=w(void 0),yf=mf({fields:of,name:"receiving",active:rf}),wf=function(e,t){return Mu({classes:[],styles:t.useFixed()?{}:{position:"relative"}})},xf=Object.freeze({__proto__:null,exhibit:wf}),_f=function(){return tt.fromDom(document)},Cf=function(e){return e.dom.focus()},kf=function(e){return e.dom.blur()},Sf=function(e){var t=Dn(e).dom;return e.dom===t.activeElement},Of=function(e){return void 0===e&&(e=_f()),z.from(e.dom.activeElement).map(tt.fromDom)},Ef=function(e){return Of(Dn(e)).filter((function(t){return e.dom.contains(t.dom)}))},Tf=function(e,t){var n=Dn(t),r=Of(n).bind((function(e){var n=function(t){return cn(e,t)};return n(t)?z.some(t):Ic(t,n)})),i=e(t);return r.each((function(e){Of(n).filter((function(t){return cn(t,e)})).fold((function(){Cf(e)}),v)})),i},Df=function(e,t,n,r,i){var o=function(e){return e+"px"};return{position:e,left:t.map(o),top:n.map(o),right:r.map(o),bottom:i.map(o)}},Mf=function(e){return D(D({},e),{position:z.some(e.position)})},Af=function(e,t){Xn(e,Mf(t))},Nf=aa.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Pf=function(e,t,n,r,i,o){var a=t.rect,s=a.x-n,u=a.y-r,c=a.width,l=a.height,f=i-(s+c),d=o-(u+l),h=z.some(s),p=z.some(u),m=z.some(f),v=z.some(d),g=z.none();return vl(t.direction,(function(){return Df(e,h,p,g,g)}),(function(){return Df(e,g,p,m,g)}),(function(){return Df(e,h,g,g,v)}),(function(){return Df(e,g,g,m,v)}),(function(){return Df(e,h,p,g,g)}),(function(){return Df(e,h,g,g,v)}),(function(){return Df(e,h,p,g,g)}),(function(){return Df(e,g,p,m,g)}))},If=function(e,t){return e.fold((function(){var e=t.rect;return Df("absolute",z.some(e.x),z.some(e.y),z.none(),z.none())}),(function(e,n,r,i){return Pf("absolute",t,e,n,r,i)}),(function(e,n,r,i){return Pf("fixed",t,e,n,r,i)}))},Rf=function(e,t){var n=C(Gr,t),r=e.fold(n,n,(function(){var e=Br();return Gr(t).translate(-e.left,-e.top)})),i=br(t),o=sr(t);return Xr(r.left,r.top,i,o)},zf=function(e,t){return t.fold((function(){return e.fold(Qr,Qr,Xr)}),(function(t){return e.fold(t,t,(function(){var n=t(),r=Bf(e,n.x,n.y);return Xr(r.left,r.top,n.width,n.height)}))}))},Bf=function(e,t,n){var r=lr(t,n),i=function(){var e=Br();return r.translate(-e.left,-e.top)};return e.fold(w(r),w(r),i)},Lf=function(e,t,n,r){return e.fold(t,n,r)};Nf.none;var $f,Ff=Nf.relative,jf=Nf.fixed,Vf=function(e,t){return{anchorBox:e,origin:t}},Hf=function(e,t){return Vf(e,t)},Wf="data-alloy-placement",Uf=function(e,t){Fn(e,Wf,t)},qf=function(e){return Hn(e,Wf)},Gf=function(e){return Un(e,Wf)},Kf=aa.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Yf=function(e,t){var n=t.x,r=t.y,i=t.right,o=t.bottom,a=e.x,s=e.y,u=e.right,c=e.bottom,l=e.width,f=e.height,d=a>=n&&a<=i,h=s>=r&&s<=o,p=d&&h,m=u<=i&&u>=n,v=c<=o&&c>=r,g=m&&v,b=Math.min(l,a>=n?i-a:u-n),y=Math.min(f,s>=r?o-s:c-r);return{originInBounds:p,sizeInBounds:g,visibleW:b,visibleH:y}},Xf=function(e,t){var n=t.x,r=t.y,i=t.right,o=t.bottom,a=e.x,s=e.y,u=e.width,c=e.height,l=Math.max(n,i-u),f=Math.max(r,o-c),d=Tl(a,n,l),h=Tl(s,r,f),p=Math.min(d+u,i)-d,m=Math.min(h+c,o)-h;return Xr(d,h,p,m)},Jf=function(e,t,n){var r=w(t.bottom-n.y),i=w(n.bottom-t.y),o=gl(e,i,i,r),a=w(t.right-n.x),s=w(n.right-t.x),u=bl(e,s,s,a);return{maxWidth:u,maxHeight:o}},Zf=function(e,t,n,r){var i=e.bubble,o=i.offset,a=Al(r,e.restriction,o),s=e.x+o.left,u=e.y+o.top,c=Xr(s,u,t,n),l=Yf(c,a),f=l.originInBounds,d=l.sizeInBounds,h=l.visibleW,p=l.visibleH,m=f&&d,v=m?c:Xf(c,a),g=v.width>0&&v.height>0,b=Jf(e.direction,v,r),y=b.maxWidth,w=b.maxHeight,x={rect:v,maxHeight:w,maxWidth:y,direction:e.direction,placement:e.placement,classes:{on:i.classesOn,off:i.classesOff},layout:e.label,testY:u};return m||e.alwaysFit?Kf.fit(x):Kf.nofit(x,h,p,g)},Qf=function(e,t,n,r,i,o){var a=r.width,s=r.height,u=function(t,u,c,l,f){var d=t(n,r,i,e,o),h=Zf(d,a,s,o);return h.fold(w(h),(function(e,t,n,r){var i=f===r?n>l||t>c:!f&&r;return i?h:Kf.nofit(u,c,l,f)}))},c=Z(t,(function(e,t){var n=C(u,t);return e.fold(w(e),n)}),Kf.nofit({rect:n,maxHeight:r.height,maxWidth:r.width,direction:yl(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1));return c.fold(x,x)},ed=function(e){var t=ia(z.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(z.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(z.some(e))};return{clear:r,isSet:i,get:o,set:a}},td=function(){return ed((function(e){return e.destroy()}))},nd=function(){return ed((function(e){return e.unbind()}))},rd=function(){var e=td(),t=function(t){return e.get().each(t)};return D(D({},e),{run:t})},id=function(){var e=ed(v),t=function(t){return e.get().each(t)};return D(D({},e),{on:t})},od=E,ad=function(e,t,n){return kr(e,t,od,n)},sd=function(e,t,n){return Sr(e,t,od,n)},ud=xr,cd=["top","bottom","right","left"],ld="data-alloy-transition-timer",fd=function(e,t){return fc(e,t.classes)},dd=function(e,t,n){return n.exists((function(n){var r=e.mode;return"all"===r||n[r]!==t[r]}))},hd=function(e,t){var n=function(e){return parseFloat(e).toFixed(3)};return ke(t,(function(t,r){var i=e[r].map(n),o=t.map(n);return!Me(i,o)})).isSome()},pd=function(e){var t=function(t){var n=Jn(e,t),r=o(n)?n.split(/\s*,\s*/):[];return X(r,Ge)},n=function(e){if(o(e)&&/^[\d.]+/.test(e)){var t=parseFloat(e);return We(e,"ms")?t:1e3*t}return 0},r=t("transition-delay"),i=t("transition-duration");return Z(i,(function(e,t,i){var o=n(r[i])+n(t);return Math.max(e,o)}),0)},md=function(e,t){var n,r=nd(),i=nd(),o=function(t){var n,r=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return cn(t.target,e)&&Ke(r)&&V(cd,t.raw.propertyName)},a=function(a){if(f(a)||o(a)){r.clear(),i.clear();var s=null===a||void 0===a?void 0:a.raw.type;(f(s)||s===qa())&&(clearTimeout(n),Un(e,ld),lc(e,t.classes))}},s=function(){r.set(ad(e,qa(),a)),i.set(ad(e,Ua(),a))};if("ontransitionstart"in e.dom)var u=ad(e,Ga(),(function(e){o(e)&&(u.unbind(),s())}));else s();var c=pd(e);requestAnimationFrame((function(){n=setTimeout(a,c+17),Fn(e,ld,n)}))},vd=function(e,t){cc(e,t.classes),Hn(e,ld).each((function(t){clearTimeout(parseInt(t,10)),Un(e,ld)})),md(e,t)},gd=function(e,t,n,r,i,o){var a=dd(r,i,o);if(a||fd(e,r)){Kn(e,"position",n.position);var s=Rf(t,e),u=If(t,D(D({},i),{rect:s})),c=se(cd,(function(e){return u[e]}));hd(n,c)&&(Xn(e,c),a&&vd(e,r),rr(e))}else lc(e,r.classes)},bd=function(e){return{width:br(e),height:sr(e)}},yd=function(e,t,n,r){nr(t,"max-height"),nr(t,"max-width");var i=bd(t);return Qf(t,r.preference,e,i,n,r.bounds)},wd=function(e,t){var n=t.classes;lc(e,n.off),cc(e,n.on)},xd=function(e,t,n){var r=n.maxHeightFunction;r(e,t.maxHeight)},_d=function(e,t,n){var r=n.maxWidthFunction;r(e,t.maxWidth)},Cd=function(e,t,n){var r=If(n.origin,t);n.transition.each((function(i){gd(e,n.origin,r,i,t,n.lastPlacement)})),Af(e,r)},kd=function(e,t){Uf(e,t.placement)},Sd=function(e,t){ur(e,Math.floor(t))},Od=w((function(e,t){Sd(e,t),Yn(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Ed=w((function(e,t){Sd(e,t)})),Td=function(e,t,n){return void 0===e[t]?n:e[t]},Dd=function(e,t,n,r,i,o,a,s){var u=Td(a,"maxHeightFunction",Od()),c=Td(a,"maxWidthFunction",v),l=e.anchorBox,f=e.origin,d={bounds:zf(f,o),origin:f,preference:r,maxHeightFunction:u,maxWidthFunction:c,lastPlacement:i,transition:s};return Md(l,t,n,d)},Md=function(e,t,n,r){var i=yd(e,t,n,r);return Cd(t,i,r),kd(t,i),wd(t,i),xd(t,i,r),_d(t,i,r),{layout:i.layout,placement:i.placement}},Ad=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Nd=function(e,t,n,r){void 0===r&&(r=1);var i=e*r,o=t*r,a=function(e){return Oe(n,e).getOr([])},s=function(e,t,n){var r=ae(Ad,n);return{offset:lr(e,t),classesOn:re(n,a),classesOff:re(r,a)}};return{southeast:function(){return s(-e,t,["top","alignLeft"])},southwest:function(){return s(e,t,["top","alignRight"])},south:function(){return s(-e/2,t,["top","alignCentre"])},northeast:function(){return s(-e,-t,["bottom","alignLeft"])},northwest:function(){return s(e,-t,["bottom","alignRight"])},north:function(){return s(-e/2,-t,["bottom","alignCentre"])},east:function(){return s(e,-t/2,["valignCentre","left"])},west:function(){return s(-e,-t/2,["valignCentre","right"])},insetNortheast:function(){return s(i,o,["top","alignLeft","inset"])},insetNorthwest:function(){return s(-i,o,["top","alignRight","inset"])},insetNorth:function(){return s(-i/2,o,["top","alignCentre","inset"])},insetSoutheast:function(){return s(i,-o,["bottom","alignLeft","inset"])},insetSouthwest:function(){return s(-i,-o,["bottom","alignRight","inset"])},insetSouth:function(){return s(-i/2,-o,["bottom","alignCentre","inset"])},insetEast:function(){return s(-i,-o/2,["valignCentre","right","inset"])},insetWest:function(){return s(i,-o/2,["valignCentre","left","inset"])}}},Pd=function(){return Nd(0,0,{})},Id=x,Rd=function(e,t){return function(n){return"rtl"===zd(n)?t:e}},zd=function(e){return"rtl"===Jn(e,"direction")?"rtl":"ltr"};(function(e){e["TopToBottom"]="toptobottom",e["BottomToTop"]="bottomtotop"})($f||($f={}));var Bd="data-alloy-vertical-dir",Ld=function(e){return Rc(e,(function(e){return lt(e)&&Vn(e,"data-alloy-vertical-dir")===$f.BottomToTop}))},$d=function(){return qo("layouts",[Do("onLtr"),Do("onRtl"),Fo("onBottomLtr"),Fo("onBottomRtl")])},Fd=function(e,t,n,r,i,o,a){var s=a.map(Ld).getOr(!1),u=t.layouts.map((function(t){return t.onLtr(e)})),c=t.layouts.map((function(t){return t.onRtl(e)})),l=s?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(u).getOr(i):u.getOr(n),f=s?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(c).getOr(o):c.getOr(r),d=Rd(l,f);return d(e)},jd=function(e,t,n){var r=t.hotspot,i=Rf(n,r.element),o=Fd(e.element,t,Ql(),ef(),Jl(),Zl(),z.some(t.hotspot.element));return z.some(Id({anchorBox:i,bubble:t.bubble.getOr(Pd()),overrides:t.overrides,layouts:o,placer:z.none()}))},Vd=[Do("hotspot"),Fo("bubble"),Ko("overrides",{}),$d(),fl("placement",jd)],Hd=function(e,t,n){var r=Bf(n,t.x,t.y),i=Xr(r.left,r.top,t.width,t.height),o=Fd(e.element,t,Yl(),Xl(),Yl(),Xl(),z.none());return z.some(Id({anchorBox:i,bubble:t.bubble,overrides:t.overrides,layouts:o,placer:z.none()}))},Wd=[Do("x"),Do("y"),Ko("height",0),Ko("width",0),Ko("bubble",Pd()),Ko("overrides",{}),$d(),fl("placement",Hd)],Ud=aa.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),qd=function(e){return e.fold(x,(function(e,t,n){return e.translate(-t,-n)}))},Gd=function(e){return e.fold(x,x)},Kd=function(e){return Z(e,(function(e,t){return e.translate(t.left,t.top)}),lr(0,0))},Yd=function(e){var t=q(e,qd);return Kd(t)},Xd=function(e){var t=q(e,Gd);return Kd(t)},Jd=Ud.screen,Zd=Ud.absolute,Qd=function(e,t,n){var r=vn(n.root).dom,i=function(t){var n=hn(t),r=hn(e.element);return cn(n,r)};return z.from(r.frameElement).map(tt.fromDom).filter(i).map(hr)},eh=function(e,t,n){var r=hn(e.element),i=Br(r),o=Qd(e,t,n).getOr(i);return Zd(o,i.left,i.top)},th=function(e,t,n,r){var i=Jd(lr(e,t));return z.some(Kr(i,n,r))},nh=function(e,t,n,r,i){return e.map((function(e){var o=[t,e.point],a=Lf(r,(function(){return Xd(o)}),(function(){return Xd(o)}),(function(){return Yd(o)})),s=Yr(a.left,a.top,e.width,e.height),u=n.showAbove?Jl():Ql(),c=n.showAbove?Zl():ef(),l=Fd(i,n,u,c,u,c,z.none());return Id({anchorBox:s,bubble:n.bubble.getOr(Pd()),overrides:n.overrides,layouts:l,placer:z.none()})}))},rh=function(e,t,n){var r=eh(e,n,t);return t.node.filter(zn).bind((function(i){var o=i.dom.getBoundingClientRect(),a=th(o.left,o.top,o.width,o.height),s=t.node.getOr(e.element);return nh(a,r,t,n,s)}))},ih=[Do("node"),Do("root"),Fo("bubble"),$d(),Ko("overrides",{}),Ko("showAbove",!1),fl("placement",rh)],oh="\ufeff",ah=" ",sh=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},uh={create:sh},ch=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),lh=function(e,t,n,r){return e.fold(t,n,r)},fh=function(e){return e.fold(x,x,x)},dh=ch.before,hh=ch.on,ph=ch.after,mh={before:dh,on:hh,after:ph,cata:lh,getStart:fh},vh=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),gh=function(e){return vh.exact(e.start,e.soffset,e.finish,e.foffset)},bh=function(e){return e.match({domRange:function(e){return tt.fromDom(e.startContainer)},relative:function(e,t){return mh.getStart(e)},exact:function(e,t,n,r){return e}})},yh=vh.domRange,wh=vh.relative,xh=vh.exact,_h=function(e){var t=bh(e);return vn(t)},Ch=uh.create,kh={domRange:yh,relative:wh,exact:xh,exactFromRange:gh,getWin:_h,range:Ch},Sh=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},Oh=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},Eh=function(e,t,n){var r=e.document.createRange();return Sh(r,t),Oh(r,n),r},Th=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},Dh=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},Mh=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?z.some(n).map(Dh):z.none()},Ah=function(e){var t=e.getBoundingClientRect();return t.width>0||t.height>0?z.some(t).map(Dh):z.none()},Nh=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Ph=function(e,t,n){return t(tt.fromDom(n.startContainer),n.startOffset,tt.fromDom(n.endContainer),n.endOffset)},Ih=function(e,t){return t.match({domRange:function(e){return{ltr:w(e),rtl:z.none}},relative:function(t,n){return{ltr:pt((function(){return Eh(e,t,n)})),rtl:pt((function(){return z.some(Eh(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:pt((function(){return Th(e,t,n,r,i)})),rtl:pt((function(){return z.some(Th(e,r,i,t,n))}))}}})},Rh=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Nh.rtl(tt.fromDom(e.endContainer),e.endOffset,tt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Ph(e,Nh.ltr,n)}))}return Ph(e,Nh.ltr,n)},zh=function(e,t){var n=Ih(e,t);return Rh(e,n)},Bh=function(e,t){var n=zh(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};Nh.ltr,Nh.rtl;var Lh,$h=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?z.from(t.dom.nodeValue):z.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Fh=$h(ft,"text"),jh=function(e){return Fh.get(e)},Vh=function(e){return Fh.getOption(e)},Hh=function(e){return"img"===st(e)?1:Vh(e).fold((function(){return xn(e).length}),(function(e){return e.length}))},Wh=function(e){return Vh(e).filter((function(e){return 0!==e.trim().length||e.indexOf(ah)>-1})).isSome()},Uh=["img","br"],qh=function(e){var t=Wh(e);return t||V(Uh,st(e))},Gh=function(e){return Kh(e,qh)},Kh=function(e,t){var n=function(e){for(var r=xn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return z.some(o);var a=n(o);if(a.isSome())return a}return z.none()};return n(e)},Yh=function(e,t){return sn(t,e)},Xh=function(e,t,n,r){var i=hn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Jh=function(e,t,n,r){var i=Xh(e,t,n,r),o=cn(e,n)&&t===r;return i.collapsed&&!o},Zh=function(e){return z.from(e.getSelection())},Qh=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return z.some(uh.create(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(n.endContainer),n.endOffset))}return z.none()},ep=function(e){if(null===e.anchorNode||null===e.focusNode)return Qh(e);var t=tt.fromDom(e.anchorNode),n=tt.fromDom(e.focusNode);return Jh(t,e.anchorOffset,n,e.focusOffset)?z.some(uh.create(t,e.anchorOffset,n,e.focusOffset)):Qh(e)},tp=function(e){return Zh(e).filter((function(e){return e.rangeCount>0})).bind(ep)},np=function(e,t){var n=Bh(e,t);return Mh(n)},rp=function(e,t){var n=Bh(e,t);return Ah(n)},ip=function(e,t){return{element:e,offset:t}},op=function(e,t){var n=xn(e);if(0===n.length)return ip(e,t);if(t<n.length)return ip(n[t],0);var r=n[n.length-1],i=ft(r)?jh(r).length:xn(r).length;return ip(r,i)},ap=function(e,t){return ft(e)?ip(e,t):op(e,t)},sp=function(e,t){var n=t.getSelection.getOrThunk((function(){return function(){return tp(e)}}));return n().map((function(e){var t=ap(e.start,e.soffset),n=ap(e.finish,e.foffset);return kh.range(t.element,t.offset,n.element,n.offset)}))},up=function(e,t,n){var r=vn(t.root).dom,i=eh(e,n,t),o=sp(r,t).bind((function(e){var t=rp(r,kh.exactFromRange(e)).orThunk((function(){var t=tt.fromText(oh);Er(e.start,t);var n=np(r,kh.exact(t,0,t,1));return Rr(t),n}));return t.bind((function(e){return th(e.left,e.top,e.width,e.height)}))})),a=sp(r,t).bind((function(e){return lt(e.start)?z.some(e.start):bn(e.start)})),s=a.getOr(e.element);return nh(o,i,t,n,s)},cp=[Fo("getSelection"),Do("root"),Fo("bubble"),$d(),Ko("overrides",{}),Ko("showAbove",!1),fl("placement",up)],lp="link-layout",fp=function(e){return e.x+e.width},dp=function(e,t){return e.x-t.width},hp=function(e,t){return e.y-t.height+e.height},pp=function(e){return e.y},mp=function(e,t,n){return pl(fp(e),pp(e),n.southeast(),yl(),"southeast",Ml(e,{left:0,top:2}),lp)},vp=function(e,t,n){return pl(dp(e,t),pp(e),n.southwest(),wl(),"southwest",Ml(e,{right:1,top:2}),lp)},gp=function(e,t,n){return pl(fp(e),hp(e,t),n.northeast(),xl(),"northeast",Ml(e,{left:0,bottom:3}),lp)},bp=function(e,t,n){return pl(dp(e,t),hp(e,t),n.northwest(),_l(),"northwest",Ml(e,{right:1,bottom:3}),lp)},yp=function(){return[mp,vp,gp,bp]},wp=function(){return[vp,mp,bp,gp]},xp=function(e,t,n){var r=Rf(n,t.item.element),i=Fd(e.element,t,yp(),wp(),yp(),wp(),z.none());return z.some(Id({anchorBox:r,bubble:Pd(),overrides:t.overrides,layouts:i,placer:z.none()}))},_p=[Do("item"),$d(),Ko("overrides",{}),fl("placement",xp)],Cp=ko("type",{selection:cp,node:ih,hotspot:Vd,submenu:_p,makeshift:Wd}),kp=[$o("classes",uo),Zo("mode","all",["all","layout","placement"])],Sp=[Ko("useFixed",O),Fo("getBounds")],Op=[Mo("anchor",Cp),qo("transition",kp)],Ep=function(){var e=document.documentElement;return jf(0,0,e.clientWidth,e.clientHeight)},Tp=function(e){var t=hr(e.element),n=e.element.dom.getBoundingClientRect();return Ff(t.left,t.top,n.width,n.height)},Dp=function(e,t,n,r,i,o,a){var s=Hf(n.anchorBox,t);return Dd(s,i.element,n.bubble,n.layouts,o,r,n.overrides,a)},Mp=function(e,t,n,r,i){Ap(e,t,n,r,i,z.none())},Ap=function(e,t,n,r,i,o){var a=o.map(Jr);return Np(e,t,n,r,i,a)},Np=function(e,t,n,r,i,o){var a=_o("placement.info",Qi(Op),i),s=a.anchor,u=r.element,c=n.get(r.uid);Tf((function(){Kn(u,"position","fixed");var i=Qn(u,"visibility");Kn(u,"visibility","hidden");var l=t.useFixed()?Ep():Tp(e),f=s.placement,d=o.map(w).or(t.getBounds);f(e,s,l).each((function(t){var i=t.placer.getOr(Dp),o=i(e,l,t,d,r,c,a.transition);n.set(r.uid,o)})),i.fold((function(){nr(u,"visibility")}),(function(e){Kn(u,"visibility",e)})),Qn(u,"left").isNone()&&Qn(u,"top").isNone()&&Qn(u,"right").isNone()&&Qn(u,"bottom").isNone()&&De(Qn(u,"position"),"fixed")&&nr(u,"position")}),u)},Pp=function(e,t,n){return t.useFixed()?"fixed":"absolute"},Ip=function(e,t,n,r){var i=r.element;G(["position","left","right","top","bottom"],(function(e){return nr(i,e)})),Gf(i),n.clear(r.uid)},Rp=Object.freeze({__proto__:null,position:Mp,positionWithin:Ap,positionWithinBounds:Np,getMode:Pp,reset:Ip}),zp=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return Oe(e,t)},r=function(t){d(t)?delete e[t]:e={}};return Su({readState:function(){return e},clear:r,set:t,get:n})},Bp=Object.freeze({__proto__:null,init:zp}),Lp=mf({fields:Sp,name:"positioning",active:xf,apis:Rp,state:Bp}),$p=function(e){_s(e,hs());var t=e.components();G(t,$p)},Fp=function(e){var t=e.components();G(t,Fp),_s(e,ds())},jp=function(e,t){Mr(e.element,t.element)},Vp=function(e){G(e.components(),(function(e){return Rr(e.element)})),Ir(e.element),e.syncComponents()},Hp=function(e,t){var n=e.components();Vp(e);var r=ae(n,t);G(r,(function(t){$p(t),e.getSystem().removeFromWorld(t)})),G(t,(function(t){t.getSystem().isConnected()?jp(e,t):(e.getSystem().addToWorld(t),jp(e,t),zn(e.element)&&Fp(t)),e.syncComponents()}))},Wp=function(e,t){Up(e,t,Mr)},Up=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),zn(e.element)&&Fp(t),e.syncComponents()},qp=function(e){$p(e),Rr(e.element),e.getSystem().removeFromWorld(e)},Gp=function(e){var t=gn(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));qp(e),t.each((function(e){e.syncComponents()}))},Kp=function(e){var t=e.components();G(t,qp),Ir(e.element),e.syncComponents()},Yp=function(e,t){Jp(e,t,Mr)},Xp=function(e,t){Jp(e,t,Tr)},Jp=function(e,t,n){n(e,t.element);var r=xn(t.element);G(r,(function(e){t.getByDom(e).each(Fp)}))},Zp=function(e){var t=xn(e.element);G(t,(function(t){e.getByDom(t).each($p)})),Rr(e.element)},Qp=function(e,t,n,r){n.get().each((function(t){Kp(e)}));var i=t.getAttachPoint(e);Wp(i,e);var o=e.getSystem().build(r);return Wp(e,o),n.set(o),o},em=function(e,t,n,r){var i=Qp(e,t,n,r);return t.onOpen(e,i),i},tm=function(e,t,n,r){return n.get().map((function(){return Qp(e,t,n,r)}))},nm=function(e,t,n,r,i){cm(e,t),em(e,t,n,r),i(),fm(e,t)},rm=function(e,t,n){n.get().each((function(r){Kp(e),Gp(e),t.onClose(e,r),n.clear()}))},im=function(e,t,n){return n.isOpen()},om=function(e,t,n,r){return im(e,t,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},am=function(e,t,n){return n.get()},sm=function(e,t,n,r){Qn(e.element,t).fold((function(){Un(e.element,n)}),(function(t){Fn(e.element,n,t)})),Kn(e.element,t,r)},um=function(e,t,n){Hn(e.element,n).fold((function(){return nr(e.element,t)}),(function(n){return Kn(e.element,t,n)}))},cm=function(e,t,n){var r=t.getAttachPoint(e);Kn(e.element,"position",Lp.getMode(r)),sm(e,"visibility",t.cloakVisibilityAttr,"hidden")},lm=function(e){return H(["top","left","right","bottom"],(function(t){return Qn(e,t).isSome()}))},fm=function(e,t,n){lm(e.element)||nr(e.element,"position"),um(e,"visibility",t.cloakVisibilityAttr)},dm=Object.freeze({__proto__:null,cloak:cm,decloak:fm,open:em,openWhileCloaked:nm,close:rm,isOpen:im,isPartOf:om,getState:am,setContent:tm}),hm=function(e,t){return Ts([Ns(os(),(function(n,r){rm(n,e,t)}))])},pm=Object.freeze({__proto__:null,events:hm}),mm=[sl("onOpen"),sl("onClose"),Do("isPartOf"),Do("getAttachPoint"),Ko("cloakVisibilityAttr","data-precloak-visibility")],vm=function(){var e=id(),t=w("not-implemented");return Su({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})},gm=Object.freeze({__proto__:null,init:vm}),bm=mf({fields:mm,name:"sandboxing",active:pm,apis:dm,state:gm}),ym=w("dismiss.popups"),wm=w("reposition.popups"),xm=w("mouse.released"),_m=Zi([Ko("isExtraPart",O),qo("fireEventInstead",[Ko("event",ps())])]),Cm=function(e){var t,n=_o("Dismissal",_m,e);return t={},t[ym()]={schema:Zi([Do("target")]),onReceive:function(e,t){if(bm.isOpen(e)){var r=bm.isPartOf(e,t.target)||n.isExtraPart(e,t.target);r||n.fireEventInstead.fold((function(){return bm.close(e)}),(function(t){return _s(e,t.event)}))}}},t},km=Zi([qo("fireEventInstead",[Ko("event",ms())]),Ro("doReposition")]),Sm=function(e){var t,n=_o("Reposition",km,e);return t={},t[wm()]={onReceive:function(e){bm.isOpen(e)&&n.fireEventInstead.fold((function(){return n.doReposition(e)}),(function(t){return _s(e,t.event)}))}},t},Om=function(e,t,n){t.store.manager.onLoad(e,t,n)},Em=function(e,t,n){t.store.manager.onUnload(e,t,n)},Tm=function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},Dm=function(e,t,n){return t.store.manager.getValue(e,t,n)},Mm=function(e,t,n){return n},Am=Object.freeze({__proto__:null,onLoad:Om,onUnload:Em,setValue:Tm,getValue:Dm,getState:Mm}),Nm=function(e,t){var n=e.resetOnDom?[Vs((function(n,r){Om(n,e,t)})),Hs((function(n,r){Em(n,e,t)}))]:[sf(e,t,Om)];return Ts(n)},Pm=Object.freeze({__proto__:null,events:Nm}),Im=function(){var e=ia(null),t=function(){return{mode:"memory",value:e.get()}},n=function(){return null===e.get()},r=function(){e.set(null)};return Su({set:e.set,get:e.get,isNotSet:n,clear:r,readState:t})},Rm=function(){var e=v;return Su({readState:e})},zm=function(){var e=ia({}),t=ia({}),n=function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},r=function(){e.set({}),t.set({})},i=function(n){return Oe(e.get(),n).orThunk((function(){return Oe(t.get(),n)}))},o=function(n){var r=e.get(),i=t.get(),o={},a={};G(n,(function(e){o[e.value]=e,Oe(e,"meta").each((function(t){Oe(t,"text").each((function(t){a[t]=e}))}))})),e.set(D(D({},r),o)),t.set(D(D({},i),a))};return Su({readState:n,lookup:i,update:o,clear:r})},Bm=function(e){return e.store.manager.state(e)},Lm=Object.freeze({__proto__:null,memory:Im,dataset:zm,manual:Rm,init:Bm}),$m=function(e,t,n,r){var i=t.store;n.update([r]),i.setValue(e,r),t.onSetValue(e,r)},Fm=function(e,t,n){var r=t.store,i=r.getDataKey(e);return n.lookup(i).getOrThunk((function(){return r.getFallbackEntry(i)}))},jm=function(e,t,n){var r=t.store;r.initialValue.each((function(r){$m(e,t,n,r)}))},Vm=function(e,t,n){n.clear()},Hm=[Fo("initialValue"),Do("getFallbackEntry"),Do("getDataKey"),Do("setValue"),fl("manager",{setValue:$m,getValue:Fm,onLoad:jm,onUnload:Vm,state:zm})],Wm=function(e,t,n){return t.store.getValue(e)},Um=function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},qm=function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},Gm=[Do("getValue"),Ko("setValue",v),Fo("initialValue"),fl("manager",{setValue:Um,getValue:Wm,onLoad:qm,onUnload:v,state:ku.init})],Km=function(e,t,n,r){n.set(r),t.onSetValue(e,r)},Ym=function(e,t,n){return n.get()},Xm=function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},Jm=function(e,t,n){n.clear()},Zm=[Fo("initialValue"),fl("manager",{setValue:Km,getValue:Ym,onLoad:Xm,onUnload:Jm,state:Im})],Qm=[Yo("store",{mode:"memory"},ko("mode",{memory:Zm,manual:Gm,dataset:Hm})),sl("onSetValue"),Ko("resetOnDom",!1)],ev=mf({fields:Qm,name:"representing",active:Pm,apis:Am,extra:{setValueFrom:function(e,t){var n=ev.getValue(t);ev.setValue(e,n)}},state:Lm}),tv=function(e,t){return ra(e,{},q(t,(function(t){return zo(t.name(),"Cannot configure "+t.name()+" for "+e)})).concat([Eo("dump",x)]))},nv=function(e){return e.dump},rv=function(e,t){return D(D({},hf(t)),e.dump)},iv={field:tv,augment:rv,get:nv},ov="placeholder",av=aa.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),sv=function(e){return Ee(e,"uiType")},uv=function(e,t,n,r){return e.exists((function(e){return e!==n.owner}))?av.single(!0,w(n)):Oe(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+me(r)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(e){return e.replace()}))},cv=function(e,t,n,r){return sv(n)&&n.uiType===ov?uv(e,t,n,r):av.single(!1,w(n))},lv=function(e,t,n,r){var i=cv(e,t,n,r);return i.fold((function(i,o){var a=sv(n)?o(t,n.config,n.validated):o(t),s=Oe(a,"components").getOr([]),u=re(s,(function(n){return lv(e,t,n,r)}));return[D(D({},a),{components:u})]}),(function(e,r){if(sv(n)){var i=r(t,n.config,n.validated),o=n.validated.preprocess.getOr(x);return o(i)}return r(t)}))},fv=function(e,t,n,r){return re(n,(function(n){return lv(e,t,n,r)}))},dv=function(e,t){var n=!1,r=function(){return n},i=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+e);return n=!0,t},o=function(){return t.fold((function(e,t){return e}),(function(e,t){return e}))};return{name:w(e),required:o,used:r,replace:i}},hv=function(e,t,n,r){var i=be(r,(function(e,t){return dv(t,e)})),o=fv(e,t,n,i);return ge(i,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))})),o},pv=av.single,mv=av.multiple,vv=w(ov),gv=aa.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),bv=Ko("factory",{sketch:x}),yv=Ko("schema",[]),wv=Do("name"),xv=Oo("pname","pname",ki((function(e){return"<alloy."+iu(e.name)+">"})),oo()),_v=Eo("schema",(function(){return[Fo("preprocess")]})),Cv=Ko("defaults",w({})),kv=Ko("overrides",w({})),Sv=Qi([bv,yv,wv,xv,Cv,kv]),Ov=Qi([bv,yv,wv,Cv,kv]),Ev=Qi([bv,yv,wv,xv,Cv,kv]),Tv=Qi([bv,_v,wv,Do("unit"),xv,Cv,kv]),Dv=function(e){return e.fold(z.some,z.none,z.some,z.some)},Mv=function(e){var t=function(e){return e.name};return e.fold(t,t,t,t)},Av=function(e){return e.fold(x,x,x,x)},Nv=function(e,t){return function(n){var r=_o("Converting part type",t,n);return e(r)}},Pv=Nv(gv.required,Sv),Iv=Nv(gv.external,Ov),Rv=Nv(gv.optional,Ev),zv=Nv(gv.group,Tv),Bv=w("entirety"),Lv=Object.freeze({__proto__:null,required:Pv,external:Iv,optional:Rv,group:zv,asNamedPart:Dv,name:Mv,asCommon:Av,original:Bv}),$v=function(e,t,n,r){return xi(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))},Fv=function(e,t,n){var r={},i={};return G(n,(function(e){e.fold((function(e){r[e.pname]=pv(!0,(function(t,n,r){return e.factory.sketch($v(t,e,n,r))}))}),(function(e){var n=t.parts[e.name];i[e.name]=w(e.factory.sketch($v(t,e,n[Bv()]),n))}),(function(e){r[e.pname]=pv(!1,(function(t,n,r){return e.factory.sketch($v(t,e,n,r))}))}),(function(e){r[e.pname]=mv(!0,(function(t,n,r){var i=t[e.name];return q(i,(function(n){return e.factory.sketch(xi(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:w(r),externals:w(i)}},jv=function(e,t){var n={};return G(t,(function(t){Dv(t).each((function(t){var r=Vv(e,t.pname);n[t.name]=function(n){var i=_o("Part: "+t.name+" in "+e,Qi(t.schema),n);return D(D({},r),{config:n,validated:i})}}))})),n},Vv=function(e,t){return{uiType:vv(),owner:e,name:t}},Hv=function(e,t,n){return{uiType:vv(),owner:e,name:t,config:n,validated:{}}},Wv=function(e){return re(e,(function(e){return e.fold(z.none,z.some,z.none,z.none).map((function(e){return Bo(e.name,e.schema.concat([dl(Bv())]))})).toArray()}))},Uv=function(e){return q(e,Mv)},qv=function(e,t,n){return Fv(e,t,n)},Gv=function(e,t,n){return hv(z.some(e),t,t.components,n)},Kv=function(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOptional()},Yv=function(e,t,n){return Kv(e,t,n).getOrDie("Could not find part: "+n)},Xv=function(e,t,n){var r={},i=t.partUids,o=e.getSystem();return G(n,(function(e){r[e]=w(o.getByUid(i[e]))})),r},Jv=function(e,t){var n=e.getSystem();return be(t.partUids,(function(e,t){return w(n.getByUid(e))}))},Zv=function(e){return me(e.partUids)},Qv=function(e,t,n){var r={},i=t.partUids,o=e.getSystem();return G(n,(function(e){r[e]=w(o.getByUid(i[e]).getOrDie())})),r},eg=function(e,t){var n=Uv(t);return pa(q(n,(function(t){return{key:t,value:e+"-"+t}})))},tg=function(e){return Oo("partUids","partUids",Ei((function(t){return eg(t.uid,e)})),oo())},ng=Object.freeze({__proto__:null,generate:jv,generateOne:Hv,schemas:Wv,names:Uv,substitutes:qv,components:Gv,defaultUids:eg,defaultUidsSchema:tg,getAllParts:Jv,getAllPartNames:Zv,getPart:Kv,getPartOrDie:Yv,getParts:Xv,getPartsOrDie:Qv}),rg=function(e,t){var n=e.length>0?[Bo("parts",e)]:[];return n.concat([Do("uid"),Ko("dom",{}),Ko("components",[]),dl("originalSpec"),Ko("debug.sketcher",{})]).concat(t)},ig=function(e,t,n,r,i){var o=rg(r,i);return _o(e+" [SpecSchema]",Zi(o.concat(t)),n)},og=function(e,t,n,r){var i=ug(r),o=ig(e,t,i,[],[]);return n(o,i)},ag=function(e,t,n,r,i){var o=ug(i),a=Wv(n),s=tg(n),u=ig(e,t,o,a,[s]),c=qv(e,u,n),l=Gv(e,u,c.internals());return r(u,l,o,c.externals())},sg=function(e){return Ee(e,"uid")},ug=function(e){return sg(e)?e:D(D({},e),{uid:du("uid")})},cg=function(e){return void 0!==e.uid},lg=Zi([Do("name"),Do("factory"),Do("configFields"),Ko("apis",{}),Ko("extraApis",{})]),fg=Zi([Do("name"),Do("factory"),Do("configFields"),Do("partFields"),Ko("apis",{}),Ko("extraApis",{})]),dg=function(e){var t=_o("Sketcher for "+e.name,lg,e),n=function(e){return og(t.name,t.configFields,t.factory,e)},r=be(t.apis,Cu),i=be(t.extraApis,(function(e,t){return bu(e,t)}));return D(D({name:t.name,configFields:t.configFields,sketch:n},r),i)},hg=function(e){var t=_o("Sketcher for "+e.name,fg,e),n=function(e){return ag(t.name,t.configFields,t.partFields,t.factory,e)},r=jv(t.name,t.partFields),i=be(t.apis,Cu),o=be(t.extraApis,(function(e,t){return bu(e,t)}));return D(D({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:n,parts:r},i),o)},pg=function(e){return"input"===st(e)&&"radio"!==Vn(e,"type")||"textarea"===st(e)},mg=function(e,t,n){return t.find(e)},vg=Object.freeze({__proto__:null,getCurrent:mg}),gg=[Do("find")],bg=mf({fields:gg,name:"composing",apis:vg}),yg=["input","button","textarea","select"],wg=function(e,t,n){var r=t.disabled()?Tg:Dg;r(e,t)},xg=function(e,t){return!0===t.useNative&&V(yg,st(e.element))},_g=function(e){return Wn(e.element,"disabled")},Cg=function(e){Fn(e.element,"disabled","disabled")},kg=function(e){Un(e.element,"disabled")},Sg=function(e){return"true"===Vn(e.element,"aria-disabled")},Og=function(e){Fn(e.element,"aria-disabled","true")},Eg=function(e){Fn(e.element,"aria-disabled","false")},Tg=function(e,t,n){t.disableClass.each((function(t){oc(e.element,t)}));var r=xg(e,t)?Cg:Og;r(e),t.onDisabled(e)},Dg=function(e,t,n){t.disableClass.each((function(t){sc(e.element,t)}));var r=xg(e,t)?kg:Eg;r(e),t.onEnabled(e)},Mg=function(e,t){return xg(e,t)?_g(e):Sg(e)},Ag=function(e,t,n,r){var i=r?Tg:Dg;i(e,t)},Ng=Object.freeze({__proto__:null,enable:Dg,disable:Tg,isDisabled:Mg,onLoad:wg,set:Ag}),Pg=function(e,t){return Mu({classes:t.disabled()?t.disableClass.toArray():[]})},Ig=function(e,t){return Ts([Ds(ts(),(function(t,n){return Mg(t,e)})),sf(e,t,wg)])},Rg=Object.freeze({__proto__:null,exhibit:Pg,events:Ig}),zg=[ea("disabled",O),Ko("useNative",!0),Fo("disableClass"),sl("onDisabled"),sl("onEnabled")],Bg=mf({fields:zg,name:"disabling",active:Rg,apis:Ng}),Lg=function(e,t,n,r){var i=Yh(e.element,"."+t.highlightClass);G(i,(function(n){H(r,(function(e){return e.element===n}))||(sc(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),_s(n,xs())})))}))},$g=function(e,t,n){return Lg(e,t,n,[])},Fg=function(e,t,n,r){qg(e,t,n,r)&&(sc(r.element,t.highlightClass),t.onDehighlight(e,r),_s(r,xs()))},jg=function(e,t,n,r){Lg(e,t,n,[r]),qg(e,t,n,r)||(oc(r.element,t.highlightClass),t.onHighlight(e,r),_s(r,ws()))},Vg=function(e,t,n){Yg(e,t).each((function(r){jg(e,t,n,r)}))},Hg=function(e,t,n){Xg(e,t).each((function(r){jg(e,t,n,r)}))},Wg=function(e,t,n,r){Kg(e,t,n,r).fold((function(e){throw e}),(function(r){jg(e,t,n,r)}))},Ug=function(e,t,n,r){var i=eb(e,t),o=ee(i,r);o.each((function(r){jg(e,t,n,r)}))},qg=function(e,t,n,r){return uc(r.element,t.highlightClass)},Gg=function(e,t,n){return Lc(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Kg=function(e,t,n,r){var i=Yh(e.element,"."+t.itemClass);return z.from(i[r]).fold((function(){return ri.error(new Error("No element found with index "+r))}),e.getSystem().getByDom)},Yg=function(e,t,n){return Lc(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Xg=function(e,t,n){var r=Yh(e.element,"."+t.itemClass),i=r.length>0?z.some(r[r.length-1]):z.none();return i.bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Jg=function(e,t,n,r){var i=Yh(e.element,"."+t.itemClass),o=te(i,(function(e){return uc(e,t.highlightClass)}));return o.bind((function(t){var n=El(t,r,0,i.length-1);return e.getSystem().getByDom(i[n]).toOptional()}))},Zg=function(e,t,n){return Jg(e,t,n,-1)},Qg=function(e,t,n){return Jg(e,t,n,1)},eb=function(e,t,n){var r=Yh(e.element,"."+t.itemClass);return Ae(q(r,(function(t){return e.getSystem().getByDom(t).toOptional()})))},tb=Object.freeze({__proto__:null,dehighlightAll:$g,dehighlight:Fg,highlight:jg,highlightFirst:Vg,highlightLast:Hg,highlightAt:Wg,highlightBy:Ug,isHighlighted:qg,getHighlighted:Gg,getFirst:Yg,getLast:Xg,getPrevious:Zg,getNext:Qg,getCandidates:eb}),nb=[Do("highlightClass"),Do("itemClass"),sl("onHighlight"),sl("onDehighlight")],rb=mf({fields:nb,name:"highlighting",apis:tb}),ib=[8],ob=[9],ab=[13],sb=[27],ub=[32],cb=[37],lb=[38],fb=[39],db=[40],hb=function(e,t,n){var r=oe(e.slice(0,t)),i=oe(e.slice(t+1));return ee(r.concat(i),n)},pb=function(e,t,n){var r=oe(e.slice(0,t));return ee(r,n)},mb=function(e,t,n){var r=e.slice(0,t),i=e.slice(t+1);return ee(i.concat(r),n)},vb=function(e,t,n){var r=e.slice(t+1);return ee(r,n)},gb=function(e){return function(t){var n=t.raw;return V(e,n.which)}},bb=function(e){return function(t){return ie(e,(function(e){return e(t)}))}},yb=function(e){var t=e.raw;return!0===t.shiftKey},wb=function(e){var t=e.raw;return!0===t.ctrlKey},xb=k(yb),_b=function(e,t){return{matches:e,classification:t}},Cb=function(e,t){var n=ee(e,(function(e){return e.matches(t)}));return n.map((function(e){return e.classification}))},kb=function(e,t,n){var r=t.exists((function(e){return n.exists((function(t){return cn(t,e)}))}));r||Cs(e,vs(),{prevFocus:t,newFocus:n})},Sb=function(){var e=function(e){return Ef(e.element)},t=function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element);var i=e(t);kb(t,r,i)};return{get:e,set:t}},Ob=function(){var e=function(e){return rb.getHighlighted(e).map((function(e){return e.element}))},t=function(t,n){var r=e(t);t.getSystem().getByDom(n).fold(v,(function(e){rb.highlight(t,e)}));var i=e(t);kb(t,r,i)};return{get:e,set:t}};(function(e){e["OnFocusMode"]="onFocus",e["OnEnterOrSpaceMode"]="onEnterOrSpace",e["OnApiMode"]="onApi"})(Lh||(Lh={}));var Eb=function(e,t,n,r,i){var o=function(){return e.concat([Ko("focusManager",Sb()),Yo("focusInside","onFocus",go((function(e){return V(["onFocus","onEnterOrSpace","onApi"],e)?ri.value(e):ri.error("Invalid value for focusInside")}))),fl("handler",u),fl("state",t),fl("sendFocusIn",i)])},a=function(e,t,n,r,i){var o=n(e,t,r,i);return Cb(o,t.event).bind((function(n){return n(e,t,r,i)}))},s=function(e,t){var o=e.focusInside!==Lh.OnFocusMode?z.none():i(e).map((function(n){return Ns(Ja(),(function(r,i){n(r,e,t),i.stop()}))})),s=function(n,r){var o=gb(ub.concat(ab))(r.event);e.focusInside===Lh.OnEnterOrSpaceMode&&o&&xa(n,r)&&i(e).each((function(i){i(n,e,t),r.stop()}))},u=[Ns(Fa(),(function(r,i){a(r,i,n,e,t).fold((function(){s(r,i)}),(function(e){i.stop()}))})),Ns(ja(),(function(n,i){a(n,i,r,e,t).each((function(e){i.stop()}))}))];return Ts(o.toArray().concat(u))},u={schema:o,processKey:a,toEvents:s};return u},Tb=function(e){var t=[Fo("onEscape"),Fo("onEnter"),Ko("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Ko("firstTabstop",0),Ko("useTabstopAt",E),Fo("visibilitySelector")].concat([e]),n=function(e,t){var n=e.visibilitySelector.bind((function(e){return $c(t,e)})).getOr(t);return ar(n)>0},r=function(e,t){var r=Yh(e.element,t.selector),i=X(r,(function(e){return n(t,e)}));return z.from(i[t.firstTabstop])},i=function(e,t){return t.focusManager.get(e).bind((function(e){return $c(e,t.selector)}))},o=function(e,t){return n(e,t)&&e.useTabstopAt(t)},a=function(e,t,n){r(e,t).each((function(n){t.focusManager.set(e,n)}))},s=function(e,t,n,r,i){return i(t,n,(function(e){return o(r,e)})).fold((function(){return r.cyclic?z.some(!0):z.none()}),(function(t){return r.focusManager.set(e,t),z.some(!0)}))},u=function(e,t,n,r){var o=Yh(e.element,n.selector);return i(e,n).bind((function(t){var i=te(o,C(cn,t));return i.bind((function(t){return s(e,o,t,n,r)}))}))},c=function(e,t,n){var r=n.cyclic?hb:pb;return u(e,t,n,r)},l=function(e,t,n){var r=n.cyclic?mb:vb;return u(e,t,n,r)},f=function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))},d=function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))},h=w([_b(bb([yb,gb(ob)]),c),_b(gb(ob),l),_b(gb(sb),d),_b(bb([xb,gb(ab)]),f)]),p=w([]);return Eb(t,ku.init,h,p,(function(){return z.some(a)}))},Db=Tb(Eo("cyclic",O)),Mb=Tb(Eo("cyclic",E)),Ab=function(e,t,n){return Ss(e,n,ts()),z.some(!0)},Nb=function(e,t,n){var r=pg(n)&&gb(ub)(t.event);return r?z.none():Ab(e,t,n)},Pb=function(e,t){return z.some(!0)},Ib=[Ko("execute",Nb),Ko("useSpace",!1),Ko("useEnter",!0),Ko("useControlEnter",!1),Ko("useDown",!1)],Rb=function(e,t,n){return n.execute(e,t,e.element)},zb=function(e,t,n,r){var i=n.useSpace&&!pg(e.element)?ub:[],o=n.useEnter?ab:[],a=n.useDown?db:[],s=i.concat(o).concat(a);return[_b(gb(s),Rb)].concat(n.useControlEnter?[_b(bb([wb,gb(ab)]),Rb)]:[])},Bb=function(e,t,n,r){return n.useSpace&&!pg(e.element)?[_b(gb(ub),Pb)]:[]},Lb=Eb(Ib,ku.init,zb,Bb,(function(){return z.none()})),$b=function(){var e=id(),t=function(t,n){e.set({numRows:t,numColumns:n})},n=function(){return e.get().map((function(e){return e.numRows}))},r=function(){return e.get().map((function(e){return e.numColumns}))};return Su({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:t,getNumRows:n,getNumColumns:r})},Fb=function(e){return e.state(e)},jb=Object.freeze({__proto__:null,flatgrid:$b,init:Fb}),Vb=function(e){return function(t,n,r,i){var o=e(t.element);return qb(o,t,n,r,i)}},Hb=function(e,t){var n=Rd(e,t);return Vb(n)},Wb=function(e,t){var n=Rd(t,e);return Vb(n)},Ub=function(e){return function(t,n,r,i){return qb(e,t,n,r,i)}},qb=function(e,t,n,r,i){var o=r.focusManager.get(t).bind((function(n){return e(t.element,n,r,i)}));return o.map((function(e){return r.focusManager.set(t,e),!0}))},Gb=Ub,Kb=Ub,Yb=Ub,Xb=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Jb=function(e){return!Xb(e.dom)},Zb=function(e,t){return te(e,t).map((function(t){return{index:t,candidates:e}}))},Qb=function(e,t,n){var r=function(e){return cn(e,t)},i=Yh(e,n),o=X(i,Jb);return Zb(o,r)},ey=function(e,t){return te(e,(function(e){return cn(t,e)}))},ty=function(e,t,n,r){var i=Math.floor(t/n),o=t%n;return r(i,o).bind((function(t){var r=t.row*n+t.column;return r>=0&&r<e.length?z.some(e[r]):z.none()}))},ny=function(e,t,n,r,i){return ty(e,t,r,(function(t,o){var a=t===n-1,s=a?e.length-t*r:r,u=El(o,i,0,s-1);return z.some({row:t,column:u})}))},ry=function(e,t,n,r,i){return ty(e,t,r,(function(t,o){var a=El(t,i,0,n-1),s=a===n-1,u=s?e.length-a*r:r,c=Tl(o,0,u-1);return z.some({row:a,column:c})}))},iy=function(e,t,n,r){return ny(e,t,n,r,1)},oy=function(e,t,n,r){return ny(e,t,n,r,-1)},ay=function(e,t,n,r){return ry(e,t,n,r,-1)},sy=function(e,t,n,r){return ry(e,t,n,r,1)},uy=[Do("selector"),Ko("execute",Nb),ul("onEscape"),Ko("captureTab",!1),hl()],cy=function(e,t,n){Lc(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},ly=function(e,t){return t.focusManager.get(e).bind((function(e){return $c(e,t.selector)}))},fy=function(e,t,n,r){return ly(e,n).bind((function(r){return n.execute(e,t,r)}))},dy=function(e){return function(t,n,r,i){return Qb(t,n,r.selector).bind((function(t){return e(t.candidates,t.index,i.getNumRows().getOr(r.initSize.numRows),i.getNumColumns().getOr(r.initSize.numColumns))}))}},hy=function(e,t,n){return n.captureTab?z.some(!0):z.none()},py=function(e,t,n){return n.onEscape(e,t)},my=dy(oy),vy=dy(iy),gy=dy(ay),by=dy(sy),yy=w([_b(gb(cb),Hb(my,vy)),_b(gb(fb),Wb(my,vy)),_b(gb(lb),Gb(gy)),_b(gb(db),Kb(by)),_b(bb([yb,gb(ob)]),hy),_b(bb([xb,gb(ob)]),hy),_b(gb(sb),py),_b(gb(ub.concat(ab)),fy)]),wy=w([_b(gb(ub),Pb)]),xy=Eb(uy,$b,yy,wy,(function(){return z.some(cy)})),_y=function(e,t,n,r){var i=function(e){return"button"===st(e)&&"disabled"===Vn(e,"disabled")},o=function(e,t,n){var a=El(t,r,0,n.length-1);return a===e?z.none():i(n[a])?o(e,a,n):z.from(n[a])};return Qb(e,n,t).bind((function(e){var t=e.index,n=e.candidates;return o(t,t,n)}))},Cy=[Do("selector"),Ko("getInitial",z.none),Ko("execute",Nb),ul("onEscape"),Ko("executeOnMove",!1),Ko("allowVertical",!0)],ky=function(e,t){return t.focusManager.get(e).bind((function(e){return $c(e,t.selector)}))},Sy=function(e,t,n){return ky(e,n).bind((function(r){return n.execute(e,t,r)}))},Oy=function(e,t,n){t.getInitial(e).orThunk((function(){return Lc(e.element,t.selector)})).each((function(n){t.focusManager.set(e,n)}))},Ey=function(e,t,n){return _y(e,n.selector,t,-1)},Ty=function(e,t,n){return _y(e,n.selector,t,1)},Dy=function(e){return function(t,n,r,i){return e(t,n,r,i).bind((function(){return r.executeOnMove?Sy(t,n,r):z.some(!0)}))}},My=function(e,t,n){return n.onEscape(e,t)},Ay=function(e,t,n,r){var i=cb.concat(n.allowVertical?lb:[]),o=fb.concat(n.allowVertical?db:[]);return[_b(gb(i),Dy(Hb(Ey,Ty))),_b(gb(o),Dy(Wb(Ey,Ty))),_b(gb(ab),Sy),_b(gb(ub),Sy),_b(gb(sb),My)]},Ny=w([_b(gb(ub),Pb)]),Py=Eb(Cy,ku.init,Ay,Ny,(function(){return z.some(Oy)})),Iy=function(e,t,n){return z.from(e[t]).bind((function(e){return z.from(e[n]).map((function(e){return{rowIndex:t,columnIndex:n,cell:e}}))}))},Ry=function(e,t,n,r){var i=e[t],o=i.length,a=El(n,r,0,o-1);return Iy(e,t,a)},zy=function(e,t,n,r){var i=El(n,r,0,e.length-1),o=e[i].length,a=Tl(t,0,o-1);return Iy(e,i,a)},By=function(e,t,n,r){var i=e[t],o=i.length,a=Tl(n+r,0,o-1);return Iy(e,t,a)},Ly=function(e,t,n,r){var i=Tl(n+r,0,e.length-1),o=e[i].length,a=Tl(t,0,o-1);return Iy(e,i,a)},$y=function(e,t,n){return Ry(e,t,n,1)},Fy=function(e,t,n){return Ry(e,t,n,-1)},jy=function(e,t,n){return zy(e,n,t,-1)},Vy=function(e,t,n){return zy(e,n,t,1)},Hy=function(e,t,n){return By(e,t,n,-1)},Wy=function(e,t,n){return By(e,t,n,1)},Uy=function(e,t,n){return Ly(e,n,t,-1)},qy=function(e,t,n){return Ly(e,n,t,1)},Gy=[Bo("selectors",[Do("row"),Do("cell")]),Ko("cycles",!0),Ko("previousSelector",z.none),Ko("execute",Nb)],Ky=function(e,t,n){var r=t.previousSelector(e).orThunk((function(){var n=t.selectors;return Lc(e.element,n.cell)}));r.each((function(n){t.focusManager.set(e,n)}))},Yy=function(e,t,n){return Ef(e.element).bind((function(r){return n.execute(e,t,r)}))},Xy=function(e,t){return q(e,(function(e){return Yh(e,t.selectors.cell)}))},Jy=function(e,t){return function(n,r,i){var o=i.cycles?e:t;return $c(r,i.selectors.row).bind((function(e){var t=Yh(e,i.selectors.cell);return ey(t,r).bind((function(t){var r=Yh(n,i.selectors.row);return ey(r,e).bind((function(e){var n=Xy(r,i);return o(n,e,t).map((function(e){return e.cell}))}))}))}))}},Zy=Jy(Fy,Hy),Qy=Jy($y,Wy),ew=Jy(jy,Uy),tw=Jy(Vy,qy),nw=w([_b(gb(cb),Hb(Zy,Qy)),_b(gb(fb),Wb(Zy,Qy)),_b(gb(lb),Gb(ew)),_b(gb(db),Kb(tw)),_b(gb(ub.concat(ab)),Yy)]),rw=w([_b(gb(ub),Pb)]),iw=Eb(Gy,ku.init,nw,rw,(function(){return z.some(Ky)})),ow=[Do("selector"),Ko("execute",Nb),Ko("moveOnTab",!1)],aw=function(e,t,n){return n.focusManager.get(e).bind((function(r){return n.execute(e,t,r)}))},sw=function(e,t,n){Lc(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},uw=function(e,t,n){return _y(e,n.selector,t,-1)},cw=function(e,t,n){return _y(e,n.selector,t,1)},lw=function(e,t,n,r){return n.moveOnTab?Yb(uw)(e,t,n,r):z.none()},fw=function(e,t,n,r){return n.moveOnTab?Yb(cw)(e,t,n,r):z.none()},dw=w([_b(gb(lb),Yb(uw)),_b(gb(db),Yb(cw)),_b(bb([yb,gb(ob)]),lw),_b(bb([xb,gb(ob)]),fw),_b(gb(ab),aw),_b(gb(ub),aw)]),hw=w([_b(gb(ub),Pb)]),pw=Eb(ow,ku.init,dw,hw,(function(){return z.some(sw)})),mw=[ul("onSpace"),ul("onEnter"),ul("onShiftEnter"),ul("onLeft"),ul("onRight"),ul("onTab"),ul("onShiftTab"),ul("onUp"),ul("onDown"),ul("onEscape"),Ko("stopSpaceKeyup",!1),Fo("focusIn")],vw=function(e,t,n){return[_b(gb(ub),n.onSpace),_b(bb([xb,gb(ab)]),n.onEnter),_b(bb([yb,gb(ab)]),n.onShiftEnter),_b(bb([yb,gb(ob)]),n.onShiftTab),_b(bb([xb,gb(ob)]),n.onTab),_b(gb(lb),n.onUp),_b(gb(db),n.onDown),_b(gb(cb),n.onLeft),_b(gb(fb),n.onRight),_b(gb(ub),n.onSpace),_b(gb(sb),n.onEscape)]},gw=function(e,t,n){return n.stopSpaceKeyup?[_b(gb(ub),Pb)]:[]},bw=Eb(mw,ku.init,vw,gw,(function(e){return e.focusIn})),yw=Db.schema(),ww=Mb.schema(),xw=Py.schema(),_w=xy.schema(),Cw=iw.schema(),kw=Lb.schema(),Sw=pw.schema(),Ow=bw.schema(),Ew=Object.freeze({__proto__:null,acyclic:yw,cyclic:ww,flow:xw,flatgrid:_w,matrix:Cw,execution:kw,menu:Sw,special:Ow}),Tw=function(e){return Te(e,"setGridSize")},Dw=gf({branchKey:"mode",branches:Ew,name:"keying",active:{events:function(e,t){var n=e.handler;return n.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element,e.element)}),(function(r){r(e,t,n)}))},setGridSize:function(e,t,n,r,i){Tw(n)?n.setGridSize(r,i):console.error("Layout does not support setGridSize")}},state:jb}),Mw=function(e,t,n,r){Tf((function(){var t=q(r,e.getSystem().build);Hp(e,t)}),e.element)},Aw=function(e,t,n,r){var i=e.getSystem().build(r);Up(e,i,n)},Nw=function(e,t,n,r){Aw(e,t,Mr,r)},Pw=function(e,t,n,r){Aw(e,t,Dr,r)},Iw=function(e,t,n,r){var i=Rw(e),o=ee(i,(function(e){return cn(r.element,e.element)}));o.each(Gp)},Rw=function(e,t){return e.components()},zw=function(e,t,n,r,i){var o=Rw(e);return z.from(o[r]).map((function(o){return Iw(e,t,n,o),i.each((function(n){Aw(e,t,(function(e,t){Ar(e,t,r)}),n)})),o}))},Bw=function(e,t,n,r,i){var o=Rw(e);return te(o,r).bind((function(r){return zw(e,t,n,r,i)}))},Lw=Object.freeze({__proto__:null,append:Nw,prepend:Pw,remove:Iw,replaceAt:zw,replaceBy:Bw,set:Mw,contents:Rw}),$w=mf({fields:[],name:"replacing",apis:Lw}),Fw=function(e,t){var n=Ts(t);return mf({fields:[Do("enabled")],name:e,active:{events:w(n)}})},jw=function(e,t){var n=Fw(e,t);return{key:e,value:{config:{},me:n,configAsRaw:w({}),initialConfig:{},state:ku}}},Vw=function(e,t){t.ignore||(Cf(e.element),t.onFocus(e))},Hw=function(e,t){t.ignore||kf(e.element)},Ww=function(e){return Sf(e.element)},Uw=Object.freeze({__proto__:null,focus:Vw,blur:Hw,isFocused:Ww}),qw=function(e,t){var n=t.ignore?{}:{attributes:{tabindex:"-1"}};return Mu(n)},Gw=function(e){return Ts([Ns(Ja(),(function(t,n){Vw(t,e),n.stop()}))].concat(e.stopMousedown?[Ns(Pa(),(function(e,t){t.event.prevent()}))]:[]))},Kw=Object.freeze({__proto__:null,exhibit:qw,events:Gw}),Yw=[sl("onFocus"),Ko("stopMousedown",!1),Ko("ignore",!1)],Xw=mf({fields:Yw,name:"focusing",active:Kw,apis:Uw}),Jw=function(e){var t=function(){var t=ia(e),n=function(){return t.get()},r=function(e){return t.set(e)},i=function(){return t.set(e)},o=function(){return t.get()};return{get:n,set:r,clear:i,readState:o}};return{init:t}},Zw=function(e,t,n){var r=t.aria;r.update(e,r,n.get())},Qw=function(e,t,n){t.toggleClass.each((function(t){n.get()?oc(e.element,t):sc(e.element,t)}))},ex=function(e,t,n){rx(e,t,n,!n.get())},tx=function(e,t,n){n.set(!0),Qw(e,t,n),Zw(e,t,n)},nx=function(e,t,n){n.set(!1),Qw(e,t,n),Zw(e,t,n)},rx=function(e,t,n,r){var i=r?tx:nx;i(e,t,n)},ix=function(e,t,n){return n.get()},ox=function(e,t,n){rx(e,t,n,t.selected)},ax=Object.freeze({__proto__:null,onLoad:ox,toggle:ex,isOn:ix,on:tx,off:nx,set:rx}),sx=function(){return Mu({})},ux=function(e,t){var n=af(e,t,ex),r=sf(e,t,ox);return Ts(ne([e.toggleOnExecute?[n]:[],[r]]))},cx=Object.freeze({__proto__:null,exhibit:sx,events:ux}),lx=function(e,t,n){Fn(e.element,"aria-pressed",n),t.syncWithExpanded&&hx(e,t,n)},fx=function(e,t,n){Fn(e.element,"aria-selected",n)},dx=function(e,t,n){Fn(e.element,"aria-checked",n)},hx=function(e,t,n){Fn(e.element,"aria-expanded",n)},px=[Ko("selected",!1),Fo("toggleClass"),Ko("toggleOnExecute",!0),Yo("aria",{mode:"none"},ko("mode",{pressed:[Ko("syncWithExpanded",!1),fl("update",lx)],checked:[fl("update",dx)],expanded:[fl("update",hx)],selected:[fl("update",fx)],none:[fl("update",v)]}))],mx=mf({fields:px,name:"toggling",active:cx,apis:ax,state:Jw(!1)}),vx=function(){var e=function(e,t){t.stop(),ks(e)};return[Ns(Wa(),e),Ns(rs(),e),$s(Da()),$s(Pa())]},gx=function(e){var t=function(e){return Us((function(t,n){e(t),n.stop()}))};return Ts(ne([e.map(t).toArray(),vx()]))},bx="alloy.item-hover",yx="alloy.item-focus",wx=function(e){(Ef(e.element).isNone()||Xw.isFocused(e))&&(Xw.isFocused(e)||Xw.focus(e),Cs(e,bx,{item:e}))},xx=function(e){Cs(e,yx,{item:e})},_x=w(bx),Cx=w(yx),kx=function(e){return{dom:e.dom,domModification:D(D({},e.domModification),{attributes:D(D(D({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:iv.augment(e.itemBehaviours,[e.toggling.fold(mx.revoke,(function(e){return mx.config(D({aria:{mode:"checked"}},e))})),Xw.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){xx(e)}}),Dw.config({mode:"execution"}),ev.config({store:{mode:"memory",initialValue:e.data}}),jw("item-type-events",A(A([],vx(),!0),[Ns(Ba(),wx),Ns(ns(),Xw.focus)],!1))]),components:e.components,eventOrder:e.eventOrder}},Sx=[Do("data"),Do("components"),Do("dom"),Ko("hasSubmenu",!1),Fo("toggling"),iv.field("itemBehaviours",[mx,Xw,Dw,ev]),Ko("ignoreFocus",!1),Ko("domModification",{}),fl("builder",kx),Ko("eventOrder",{})],Ox=function(e){return{dom:e.dom,components:e.components,events:Ts([Fs(ns())])}},Ex=[Do("dom"),Do("components"),fl("builder",Ox)],Tx=w("item-widget"),Dx=w([Pv({name:"widget",overrides:function(e){return{behaviours:hf([ev.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:v}})])}}})]),Mx=function(e){var t=qv(Tx(),e,Dx()),n=Gv(Tx(),e,t.internals()),r=function(t){return Kv(t,e,"widget").map((function(e){return Dw.focusIn(e),e}))},i=function(t,n){return pg(n.event.target)?z.none():function(){return e.autofocus?(n.setSource(t.element),z.none()):z.none()}()};return{dom:e.dom,components:n,domModification:e.domModification,events:Ts([Us((function(e,t){r(e).each((function(e){t.stop()}))})),Ns(Ba(),wx),Ns(ns(),(function(t,n){e.autofocus?r(t):Xw.focus(t)}))]),behaviours:iv.augment(e.widgetBehaviours,[ev.config({store:{mode:"memory",initialValue:e.data}}),Xw.config({ignore:e.ignoreFocus,onFocus:function(e){xx(e)}}),Dw.config({mode:"special",focusIn:e.autofocus?function(e){r(e)}:bf(),onLeft:i,onRight:i,onEscape:function(t,n){return Xw.isFocused(t)||e.autofocus?e.autofocus?(n.setSource(t.element),z.none()):z.none():(Xw.focus(t),z.some(!0))}})])}},Ax=[Do("uid"),Do("data"),Do("components"),Do("dom"),Ko("autofocus",!1),Ko("ignoreFocus",!1),iv.field("widgetBehaviours",[ev,Xw,Dw]),Ko("domModification",{}),tg(Dx()),fl("builder",Mx)],Nx=ko("type",{widget:Ax,item:Sx,separator:Ex}),Px=function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}},Ix=function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}},Rx=function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}},zx=w([zv({factory:{sketch:function(e){var t=_o("menu.spec item",Nx,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return Ee(t,"uid")?t:D(D({},t),{uid:du("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),Bx=w([Do("value"),Do("items"),Do("dom"),Do("components"),Ko("eventOrder",{}),tv("menuBehaviours",[rb,ev,bg,Dw]),Yo("movement",{mode:"menu",moveOnTab:!0},ko("mode",{grid:[hl(),fl("config",Px)],matrix:[fl("config",Ix),Do("rowSelector")],menu:[Ko("moveOnTab",!0),fl("config",Rx)]})),rl(),Ko("fakeFocus",!1),Ko("focusManager",Sb()),sl("onHighlight")]),Lx=w("alloy.menu-focus"),$x=function(e,t,n,r){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rv(e.menuBehaviours,[rb.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),ev.config({store:{mode:"memory",initialValue:e.value}}),bg.config({find:z.some}),Dw.config(e.movement.config(e,e.movement))]),events:Ts([Ns(Cx(),(function(e,t){var n=t.event;e.getSystem().getByDom(n.target).each((function(n){rb.highlight(e,n),t.stop(),Cs(e,Lx(),{menu:e,item:n})}))})),Ns(_x(),(function(e,t){var n=t.event.item;rb.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}},Fx=hg({name:"Menu",configFields:Bx(),partFields:zx(),factory:$x}),jx=function(e){return ye(e,(function(e,t){return{k:e,v:t}}))},Vx=function(e,t,n,r){return Oe(n,r).bind((function(r){return Oe(e,r).bind((function(r){var i=Vx(e,t,n,r);return z.some([r].concat(i))}))})).getOr([])},Hx=function(e,t){var n={};ge(e,(function(e,t){G(e,(function(e){n[e]=t}))}));var r=t,i=jx(t),o=be(i,(function(e,t){return[t].concat(Vx(n,r,i,t))}));return be(n,(function(e){return Oe(o,e).getOr([e])}))},Wx=function(){var e=ia({}),t=ia({}),n=ia({}),r=id(),i=ia({}),o=function(){e.set({}),t.set({}),n.set({}),r.clear()},a=function(){return r.get().isNone()},s=function(e,n){var r;t.set(D(D({},t.get()),(r={},r[e]={type:"prepared",menu:n},r)))},u=function(o,a,s,u){r.set(o),e.set(s),t.set(a),i.set(u);var c=Hx(u,s);n.set(c)},c=function(t){return ke(e.get(),(function(e,n){return e===t}))},l=function(e,t,n){return m(e).bind((function(r){return c(e).bind((function(e){return t(e).map((function(e){return{triggeredMenu:r,triggeringItem:e,triggeringPath:n}}))}))}))},f=function(e,t){var i=X(g(e).toArray(),(function(e){return m(e).isSome()}));return Oe(n.get(),e).bind((function(e){var n=oe(i.concat(e)),o=re(n,(function(e,i){return l(e,t,n.slice(0,i+1)).fold((function(){return De(r.get(),e)?[]:[z.none()]}),(function(e){return[z.some(e)]}))}));return Ne(o)}))},d=function(t){return Oe(e.get(),t).map((function(e){var r=Oe(n.get(),t).getOr([]);return[e].concat(r)}))},h=function(e){return Oe(n.get(),e).bind((function(e){return e.length>1?z.some(e.slice(1)):z.none()}))},p=function(e){return Oe(n.get(),e)},m=function(e){return v(e).bind(Ux)},v=function(e){return Oe(t.get(),e)},g=function(t){return Oe(e.get(),t)},b=function(e){var t=i.get();return ae(me(t),e)},y=function(){return r.get().bind(m)},w=function(){return t.get()};return{setMenuBuilt:s,setContents:u,expand:d,refresh:p,collapse:h,lookupMenu:v,lookupItem:g,otherMenus:b,getPrimary:y,getMenus:w,clear:o,isClear:a,getTriggeringPath:f}},Ux=function(e){return"prepared"===e.type?z.some(e.menu):z.none()},qx={init:Wx,extractPreparedMenu:Ux},Gx=function(e,t){var n,r=id(),i=function(t,n,r){return be(r,(function(r,i){var o=function(){return Fx.sketch(D(D({},r),{value:i,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:e.fakeFocus?Ob():Sb()}))};return i===n?{type:"prepared",menu:t.getSystem().build(o())}:{type:"notbuilt",nbMenu:o}}))},o=qx.init(),a=function(t){var n=i(t,e.data.primary,e.data.menus),r=c();return o.setContents(e.data.primary,n,e.data.expansions,r),o.getPrimary()},s=function(e){return ev.getValue(e).value},u=function(e,t,n){return pe(t,(function(e){if(!e.getSystem().isConnected())return z.none();var t=rb.getCandidates(e);return ee(t,(function(e){return s(e)===n}))}))},c=function(t){return be(e.data.menus,(function(e,t){return re(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}))},l=function(e,t){rb.highlight(e,t),rb.getHighlighted(t).orThunk((function(){return rb.getFirst(t)})).each((function(t){Ss(e,t.element,ns())}))},f=function(e,t){return Ae(q(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?z.some(e.menu):z.none()}))})))},d=function(t,n,r){var i=f(n,n.otherMenus(r));G(i,(function(n){lc(n.element,[e.markers.backgroundMenu]),e.stayInDom||$w.remove(t,n)}))},h=function(t){return r.get().getOrThunk((function(){var n={},i=Yh(t.element,"."+e.markers.item),o=X(i,(function(e){return"true"===Vn(e,"aria-haspopup")}));return G(o,(function(e){t.getSystem().getByDom(e).each((function(e){var t=s(e);n[t]=e}))})),r.set(n),n}))},p=function(e,t){var n=h(e);ge(n,(function(e,n){var r=V(t,n);Fn(e.element,"aria-expanded",r)}))},m=function(t,n,r){return z.from(r[0]).bind((function(i){return n.lookupMenu(i).bind((function(i){if("notbuilt"===i.type)return z.none();var o=i.menu,a=f(n,r.slice(1));return G(a,(function(t){oc(t.element,e.markers.backgroundMenu)})),zn(o.element)||$w.append(t,Tc(o)),lc(o.element,[e.markers.backgroundMenu]),l(t,o),d(t,n,r),z.some(o)}))}))};(function(e){e[e["HighlightSubmenu"]=0]="HighlightSubmenu",e[e["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var g=function(e,t,n){if("notbuilt"===n.type){var r=e.getSystem().build(n.nbMenu());return o.setMenuBuilt(t,r),r}return n.menu},b=function(t,r,i){if(void 0===i&&(i=n.HighlightSubmenu),r.hasConfigured(Bg)&&Bg.isDisabled(r))return z.some(r);var a=s(r);return o.expand(a).bind((function(a){return p(t,a),z.from(a[0]).bind((function(s){return o.lookupMenu(s).bind((function(u){var c=g(t,s,u);return zn(c.element)||$w.append(t,Tc(c)),e.onOpenSubmenu(t,r,c,oe(a)),i===n.HighlightSubmenu?(rb.highlightFirst(c),m(t,o,a)):(rb.dehighlightAll(c),z.some(r))}))}))}))},y=function(t,n){var r=s(n);return o.collapse(r).bind((function(r){return p(t,r),m(t,o,r).map((function(r){return e.onCollapseMenu(t,n,r),r}))}))},w=function(e,t){var n=s(t);return o.refresh(n).bind((function(t){return p(e,t),m(e,o,t)}))},x=function(e,t){return pg(t.element)?z.none():b(e,t,n.HighlightSubmenu)},_=function(e,t){return pg(t.element)?z.none():y(e,t)},C=function(t,n){return y(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))},k=function(t){return function(n,r){return $c(r.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOptional().bind((function(e){return t(n,e).map(E)}))}))}},S=Ts([Ns(Lx(),(function(e,t){var n=t.event.item;o.lookupItem(s(n)).each((function(){var n=t.event.menu;rb.highlight(e,n);var r=s(t.event.item);o.refresh(r).each((function(t){return d(e,o,t)}))}))})),Us((function(t,r){var i=r.event.target;t.getSystem().getByDom(i).each((function(r){var i=s(r);0===i.indexOf("collapse-item")&&y(t,r),b(t,r,n.HighlightSubmenu).fold((function(){e.onExecute(t,r)}),v)}))})),Vs((function(t,n){a(t).each((function(n){$w.append(t,Tc(n)),e.onOpenMenu(t,n),e.highlightImmediately&&l(t,n)}))}))].concat(e.navigateOnHover?[Ns(_x(),(function(t,r){var i=r.event.item;w(t,i),b(t,i,n.HighlightParent),e.onHover(t,i)}))]:[])),O=function(e){return rb.getHighlighted(e).bind(rb.getHighlighted)},T=function(e){O(e).each((function(t){y(e,t)}))},M=function(e){o.getPrimary().each((function(t){l(e,t)}))},A=function(e){return z.from(e.components()[0]).filter((function(e){return"menu"===Vn(e.element,"role")}))},N=function(t){var n=o.getPrimary().bind((function(e){return O(t).bind((function(e){var n=s(e),r=Se(o.getMenus()),i=Ae(q(r,qx.extractPreparedMenu));return o.getTriggeringPath(n,(function(e){return u(t,i,e)}))})).map((function(t){return{primary:e,triggeringPath:t}}))}));n.fold((function(){A(t).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var r=n.primary,i=n.triggeringPath;e.onRepositionMenu(t,r,i)}))},P={collapseMenu:T,highlightPrimary:M,repositionMenus:N};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rv(e.tmenuBehaviours,[Dw.config({mode:"special",onRight:k(x),onLeft:k(_),onEscape:k(C),focusIn:function(e,t){o.getPrimary().each((function(t){Ss(e,t.element,ns())}))}}),rb.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),bg.config({find:function(e){return rb.getHighlighted(e)}}),$w.config({})]),eventOrder:e.eventOrder,apis:P,events:S}},Kx=w("collapse-item"),Yx=function(e,t,n){return{primary:e,menus:t,expansions:n}},Xx=function(e,t){return{primary:e,menus:ha(e,t),expansions:{}}},Jx=function(e){return{value:iu(Kx()),meta:{text:e}}},Zx=dg({name:"TieredMenu",configFields:[ll("onExecute"),ll("onEscape"),cl("onOpenMenu"),cl("onOpenSubmenu"),sl("onRepositionMenu"),sl("onCollapseMenu"),Ko("highlightImmediately",!0),Bo("data",[Do("primary"),Do("menus"),Do("expansions")]),Ko("fakeFocus",!1),sl("onHighlight"),sl("onHover"),il(),Do("dom"),Ko("navigateOnHover",!0),Ko("stayInDom",!1),tv("tmenuBehaviours",[Dw,rb,bg,$w]),Ko("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:Gx,extraApis:{tieredData:Yx,singleData:Xx,collapseItem:Jx}}),Qx=function(e,t,n,r,i){var o=function(){return e.lazySink(t)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Ql()},onRtl:function(){return ef()}}}:{},s=function(e){return 2===e.length},u=function(e){return s(e)?a:{}};return Zx.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return bm.close(t),e.onEscape.map((function(e){return e(t)})),z.some(!0)},onExecute:function(){return z.some(!0)},onOpenMenu:function(e,t){Lp.positionWithinBounds(o().getOrDie(),t,n,i())},onOpenSubmenu:function(e,t,n,r){var i=o().getOrDie();Lp.position(i,n,{anchor:D({type:"submenu",item:t},u(r))})},onRepositionMenu:function(e,t,r){var a=o().getOrDie();Lp.positionWithinBounds(a,t,n,i()),G(r,(function(e){var t=u(e.triggeringPath);Lp.position(a,e.triggeredMenu,{anchor:D({type:"submenu",item:e.triggeringItem},t)})}))}})},e_=function(e,t){var n=function(t,n){var r=e.getRelated(t);return r.exists((function(e){return Hc(e,n)}))},r=function(e,t){bm.setContent(e,t)},i=function(e,t,n){o(e,t,n,z.none())},o=function(e,t,n,r){a(e,t,n,(function(){return r.map((function(e){return Jr(e)}))}))},a=function(t,n,r,i){var o=e.lazySink(t).getOrDie();bm.openWhileCloaked(t,n,(function(){return Lp.positionWithinBounds(o,t,r,i())})),ev.setValue(t,z.some({mode:"position",config:r,getBounds:i}))},s=function(e,t,n){u(e,t,n,z.none)},u=function(t,n,r,i){var o=Qx(e,t,n,r,i);bm.open(t,o),ev.setValue(t,z.some({mode:"menu",menu:o}))},c=function(e){bm.isOpen(e)&&(ev.setValue(e,z.none()),bm.close(e))},l=function(e){return bm.getState(e)},f=function(t){bm.isOpen(t)&&ev.getValue(t).each((function(n){switch(n.mode){case"menu":bm.getState(t).each(Zx.repositionMenus);break;case"position":var r=e.lazySink(t).getOrDie();Lp.positionWithinBounds(r,t,n.config,n.getBounds());break}}))},d={setContent:r,showAt:i,showWithin:o,showWithinBounds:a,showMenuAt:s,showMenuWithinBounds:u,hide:c,getContent:l,reposition:f,isOpen:bm.isOpen};return{uid:e.uid,dom:e.dom,behaviours:rv(e.inlineBehaviours,[bm.config({isPartOf:function(e,t,r){return Hc(t,r)||n(e,r)},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),ev.config({store:{mode:"memory",initialValue:z.none()}}),yf.config({channels:D(D({},Cm(D({isExtraPart:t.isExtraPart},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Sm(D(D({},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:f})))})]),eventOrder:e.eventOrder,apis:d}},t_=dg({name:"InlineView",configFields:[Do("lazySink"),sl("onShow"),sl("onHide"),Wo("onEscape"),tv("inlineBehaviours",[bm,ev,yf]),qo("fireDismissalEventInstead",[Ko("event",ps())]),qo("fireRepositionEventInstead",[Ko("event",ms())]),Ko("getRelated",z.none),Ko("isExtraPart",O),Ko("eventOrder",z.none)],factory:e_,apis:{showAt:function(e,t,n,r){e.showAt(t,n,r)},showWithin:function(e,t,n,r,i){e.showWithin(t,n,r,i)},showWithinBounds:function(e,t,n,r,i){e.showWithinBounds(t,n,r,i)},showMenuAt:function(e,t,n,r){e.showMenuAt(t,n,r)},showMenuWithinBounds:function(e,t,n,r,i){e.showMenuWithinBounds(t,n,r,i)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),n_="layout-inset",r_=function(e){return e.x},i_=function(e,t){return e.x+e.width/2-t.width/2},o_=function(e,t){return e.x+e.width-t.width},a_=function(e){return e.y},s_=function(e,t){return e.y+e.height-t.height},u_=function(e,t){return e.y+e.height/2-t.height/2},c_=function(e,t,n){return pl(o_(e,t),s_(e,t),n.insetSouthwest(),_l(),"southwest",Ml(e,{right:0,bottom:3}),n_)},l_=function(e,t,n){return pl(r_(e),s_(e,t),n.insetSoutheast(),xl(),"southeast",Ml(e,{left:1,bottom:3}),n_)},f_=function(e,t,n){return pl(o_(e,t),a_(e),n.insetNorthwest(),wl(),"northwest",Ml(e,{right:0,top:2}),n_)},d_=function(e,t,n){return pl(r_(e),a_(e),n.insetNortheast(),yl(),"northeast",Ml(e,{left:1,top:2}),n_)},h_=function(e,t,n){return pl(i_(e,t),a_(e),n.insetNorth(),Cl(),"north",Ml(e,{top:2}),n_)},p_=function(e,t,n){return pl(i_(e,t),s_(e,t),n.insetSouth(),kl(),"south",Ml(e,{bottom:3}),n_)},m_=function(e,t,n){return pl(o_(e,t),u_(e,t),n.insetEast(),Ol(),"east",Ml(e,{right:0}),n_)},v_=function(e,t,n){return pl(r_(e),u_(e,t),n.insetWest(),Sl(),"west",Ml(e,{left:1}),n_)},g_=function(e){switch(e){case"north":return h_;case"northeast":return d_;case"northwest":return f_;case"south":return p_;case"southeast":return l_;case"southwest":return c_;case"east":return m_;case"west":return v_}},b_=function(e,t,n,r,i){var o=qf(r).map(g_).getOr(h_);return o(e,t,n,r,i)},y_=function(e){switch(e){case"north":return p_;case"northeast":return l_;case"northwest":return c_;case"south":return h_;case"southeast":return d_;case"southwest":return f_;case"east":return v_;case"west":return m_}},w_=function(e,t,n,r,i){var o=qf(r).map(y_).getOr(h_);return o(e,t,n,r,i)},x_=tinymce.util.Tools.resolve("tinymce.util.Delay"),__=function(e){var t=gx(e.action),n=e.dom.tag,r=function(t){return Oe(e.dom,"attributes").bind((function(e){return Oe(e,t)}))},i=function(){if("button"===n){var e=r("type").getOr("button"),t=r("role").map((function(e){return{role:e}})).getOr({});return D({type:e},t)}var i=r("role").getOr("button");return{role:i}};return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:iv.augment(e.buttonBehaviours,[Xw.config({}),Dw.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:i()},eventOrder:e.eventOrder}},C_=dg({name:"Button",factory:__,configFields:[Ko("uid",void 0),Do("dom"),Ko("components",[]),iv.field("buttonBehaviours",[Xw,Dw]),Fo("action"),Fo("role"),Ko("eventOrder",{})]}),k_=function(e){var t=void 0!==e.dom.attributes?e.dom.attributes:[];return Z(t,(function(e,t){var n;return"class"===t.name?e:D(D({},e),(n={},n[t.name]=t.value,n))}),{})},S_=function(e){return Array.prototype.slice.call(e.dom.classList,0)},O_=function(e){var t=tt.fromHtml(e),n=xn(t),r=k_(t),i=S_(t),o=0===n.length?{}:{innerHtml:Gs(t)};return D({tag:st(t),classes:i,attributes:r},o)},E_=function(e){var t=cg(e)&&Te(e,"uid")?e.uid:du("memento"),n=function(e){return e.getSystem().getByUid(t).getOrDie()},r=function(e){return e.getSystem().getByUid(t).toOptional()},i=function(){return D(D({},e),{uid:t})};return{get:n,getOpt:r,asSpec:i}};function T_(e){return T_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T_(e)}function D_(e,t){return D_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D_(e,t)}function M_(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function A_(e,t,n){return A_=M_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&D_(o,n.prototype),o},A_.apply(null,arguments)}function N_(e){return P_(e)||I_(e)||R_(e)||B_()}function P_(e){if(Array.isArray(e))return z_(e)}function I_(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R_(e,t){if(e){if("string"===typeof e)return z_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z_(e,t):void 0}}function z_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B_(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L_=Object.hasOwnProperty,$_=Object.setPrototypeOf,F_=Object.isFrozen,j_=Object.getPrototypeOf,V_=Object.getOwnPropertyDescriptor,H_=Object.freeze,W_=Object.seal,U_=Object.create,q_="undefined"!==typeof Reflect&&Reflect,G_=q_.apply,K_=q_.construct;G_||(G_=function(e,t,n){return e.apply(t,n)}),H_||(H_=function(e){return e}),W_||(W_=function(e){return e}),K_||(K_=function(e,t){return A_(e,N_(t))});var Y_=oC(Array.prototype.forEach),X_=oC(Array.prototype.pop),J_=oC(Array.prototype.push),Z_=oC(String.prototype.toLowerCase),Q_=oC(String.prototype.match),eC=oC(String.prototype.replace),tC=oC(String.prototype.indexOf),nC=oC(String.prototype.trim),rC=oC(RegExp.prototype.test),iC=aC(TypeError);function oC(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return G_(e,t,r)}}function aC(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return K_(e,n)}}function sC(e,t){$_&&$_(e,null);var n=t.length;while(n--){var r=t[n];if("string"===typeof r){var i=Z_(r);i!==r&&(F_(t)||(t[n]=i),r=i)}e[r]=!0}return e}function uC(e){var t,n=U_(null);for(t in e)G_(L_,e,[t])&&(n[t]=e[t]);return n}function cC(e,t){while(null!==e){var n=V_(e,t);if(n){if(n.get)return oC(n.get);if("function"===typeof n.value)return oC(n.value)}e=j_(e)}function r(e){return console.warn("fallback value for",e),null}return r}var lC=H_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fC=H_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),dC=H_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),hC=H_(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pC=H_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mC=H_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vC=H_(["#text"]),gC=H_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),bC=H_(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yC=H_(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wC=H_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xC=W_(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_C=W_(/<%[\w\W]*|[\w\W]*%>/gm),CC=W_(/^data-[\-\w.\u00B7-\uFFFF]/),kC=W_(/^aria-[\-\w]+$/),SC=W_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),OC=W_(/^(?:\w+script|data):/i),EC=W_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TC=W_(/^html$/i),DC=function(){return"undefined"===typeof window?null:window},MC=function(e,t){if("object"!==T_(e)||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function AC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DC(),t=function(e){return AC(e)};if(t.version="2.3.8",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,a=e.Node,s=e.Element,u=e.NodeFilter,c=e.NamedNodeMap,l=void 0===c?e.NamedNodeMap||e.MozNamedAttrMap:c,f=e.HTMLFormElement,d=e.DOMParser,h=e.trustedTypes,p=s.prototype,m=cC(p,"cloneNode"),v=cC(p,"nextSibling"),g=cC(p,"childNodes"),b=cC(p,"parentNode");if("function"===typeof o){var y=r.createElement("template");y.content&&y.content.ownerDocument&&(r=y.content.ownerDocument)}var w=MC(h,n),x=w?w.createHTML(""):"",_=r,C=_.implementation,k=_.createNodeIterator,S=_.createDocumentFragment,O=_.getElementsByTagName,E=n.importNode,T={};try{T=uC(r).documentMode?r.documentMode:{}}catch(je){}var D={};t.isSupported="function"===typeof b&&C&&"undefined"!==typeof C.createHTMLDocument&&9!==T;var M,A,N=xC,P=_C,I=CC,R=kC,z=OC,B=EC,L=SC,$=null,F=sC({},[].concat(N_(lC),N_(fC),N_(dC),N_(pC),N_(vC))),j=null,V=sC({},[].concat(N_(gC),N_(bC),N_(yC),N_(wC))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,U=null,q=!0,G=!0,K=!1,Y=!1,X=!1,J=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!0,re=!0,ie=!1,oe={},ae=null,se=sC({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ue=null,ce=sC({},["audio","video","img","source","image","track"]),le=null,fe=sC({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",me=pe,ve=!1,ge=["application/xhtml+xml","text/html"],be="text/html",ye=null,we=r.createElement("form"),xe=function(e){return e instanceof RegExp||e instanceof Function},_e=function(e){ye&&ye===e||(e&&"object"===T_(e)||(e={}),e=uC(e),$="ALLOWED_TAGS"in e?sC({},e.ALLOWED_TAGS):F,j="ALLOWED_ATTR"in e?sC({},e.ALLOWED_ATTR):V,le="ADD_URI_SAFE_ATTR"in e?sC(uC(fe),e.ADD_URI_SAFE_ATTR):fe,ue="ADD_DATA_URI_TAGS"in e?sC(uC(ce),e.ADD_DATA_URI_TAGS):ce,ae="FORBID_CONTENTS"in e?sC({},e.FORBID_CONTENTS):se,W="FORBID_TAGS"in e?sC({},e.FORBID_TAGS):{},U="FORBID_ATTR"in e?sC({},e.FORBID_ATTR):{},oe="USE_PROFILES"in e&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,Q=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,L=e.ALLOWED_URI_REGEXP||L,me=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&xe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&xe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),M=M=-1===ge.indexOf(e.PARSER_MEDIA_TYPE)?be:e.PARSER_MEDIA_TYPE,A="application/xhtml+xml"===M?function(e){return e}:Z_,Y&&(G=!1),ee&&(Q=!0),oe&&($=sC({},N_(vC)),j=[],!0===oe.html&&(sC($,lC),sC(j,gC)),!0===oe.svg&&(sC($,fC),sC(j,bC),sC(j,wC)),!0===oe.svgFilters&&(sC($,dC),sC(j,bC),sC(j,wC)),!0===oe.mathMl&&(sC($,pC),sC(j,yC),sC(j,wC))),e.ADD_TAGS&&($===F&&($=uC($)),sC($,e.ADD_TAGS)),e.ADD_ATTR&&(j===V&&(j=uC(j)),sC(j,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&sC(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ae===se&&(ae=uC(ae)),sC(ae,e.FORBID_CONTENTS)),re&&($["#text"]=!0),X&&sC($,["html","head","body"]),$.table&&(sC($,["tbody"]),delete W.tbody),H_&&H_(e),ye=e)},Ce=sC({},["mi","mo","mn","ms","mtext"]),ke=sC({},["foreignobject","desc","title","annotation-xml"]),Se=sC({},["title","style","font","a","script"]),Oe=sC({},fC);sC(Oe,dC),sC(Oe,hC);var Ee=sC({},pC);sC(Ee,mC);var Te=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=Z_(e.tagName),r=Z_(t.tagName);return e.namespaceURI===he?t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Ce[r]):Boolean(Oe[n]):e.namespaceURI===de?t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[r]:Boolean(Ee[n]):e.namespaceURI===pe&&(!(t.namespaceURI===he&&!ke[r])&&(!(t.namespaceURI===de&&!Ce[r])&&(!Ee[n]&&(Se[n]||!Oe[n]))))},De=function(e){J_(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(je){try{e.outerHTML=x}catch(je){e.remove()}}},Me=function(e,n){try{J_(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(je){J_(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!j[e])if(Q||ee)try{De(n)}catch(je){}else try{n.setAttribute(e,"")}catch(je){}},Ae=function(e){var t,n;if(Z)e="<remove></remove>"+e;else{var i=Q_(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===M&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(me===pe)try{t=(new d).parseFromString(o,M)}catch(je){}if(!t||!t.documentElement){t=C.createDocument(me,"template",null);try{t.documentElement.innerHTML=ve?"":o}catch(je){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),me===pe?O.call(t,X?"html":"body")[0]:X?t.documentElement:a},Ne=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof f&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof l)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore)},Ie=function(e){return"object"===T_(a)?e instanceof a:e&&"object"===T_(e)&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Re=function(e,n,r){D[e]&&Y_(D[e],(function(e){e.call(t,n,r,ye)}))},ze=function(e){var n;if(Re("beforeSanitizeElements",e,null),Pe(e))return De(e),!0;if(rC(/[\u0080-\uFFFF]/,e.nodeName))return De(e),!0;var r=A(e.nodeName);if(Re("uponSanitizeElement",e,{tagName:r,allowedTags:$}),e.hasChildNodes()&&!Ie(e.firstElementChild)&&(!Ie(e.content)||!Ie(e.content.firstElementChild))&&rC(/<[/\w]/g,e.innerHTML)&&rC(/<[/\w]/g,e.textContent))return De(e),!0;if("select"===r&&rC(/<template/i,e.innerHTML))return De(e),!0;if(!$[r]||W[r]){if(!W[r]&&Le(r)){if(H.tagNameCheck instanceof RegExp&&rC(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}if(re&&!ae[r]){var i=b(e)||e.parentNode,o=g(e)||e.childNodes;if(o&&i)for(var a=o.length,u=a-1;u>=0;--u)i.insertBefore(m(o[u],!0),v(e))}return De(e),!0}return e instanceof s&&!Te(e)?(De(e),!0):"noscript"!==r&&"noembed"!==r||!rC(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(n=e.textContent,n=eC(n,N," "),n=eC(n,P," "),e.textContent!==n&&(J_(t.removed,{element:e.cloneNode()}),e.textContent=n)),Re("afterSanitizeElements",e,null),!1):(De(e),!0)},Be=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in r||n in we))return!1;if(G&&!U[t]&&rC(I,t));else if(q&&rC(R,t));else if(!j[t]||U[t]){if(!(Le(e)&&(H.tagNameCheck instanceof RegExp&&rC(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&rC(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&rC(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(le[t]);else if(rC(L,eC(n,B,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==tC(n,"data:")||!ue[e]){if(K&&!rC(z,eC(n,B,"")));else if(n)return!1}else;return!0},Le=function(e){return e.indexOf("-")>0},$e=function(e){var n,r,i,o;Re("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};o=a.length;while(o--){n=a[o];var u=n,c=u.name,l=u.namespaceURI;if(r="value"===c?n.value:nC(n.value),i=A(c),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Re("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Me(c,e),s.keepAttr))if(rC(/\/>/i,r))Me(c,e);else{Y&&(r=eC(r,N," "),r=eC(r,P," "));var f=A(e.nodeName);if(Be(f,i,r))try{l?e.setAttributeNS(l,c,r):e.setAttribute(c,r),X_(t.removed)}catch(je){}}}Re("afterSanitizeAttributes",e,null)}},Fe=function e(t){var n,r=Ne(t);Re("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())Re("uponSanitizeShadowNode",n,null),ze(n)||(n.content instanceof i&&e(n.content),$e(n));Re("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,o){var s,u,c,l,f;if(ve=!r,ve&&(r="\x3c!--\x3e"),"string"!==typeof r&&!Ie(r)){if("function"!==typeof r.toString)throw iC("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw iC("dirty is not a string, aborting")}if(!t.isSupported){if("object"===T_(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(Ie(r))return e.toStaticHTML(r.outerHTML)}return r}if(J||_e(o),t.removed=[],"string"===typeof r&&(ie=!1),ie){if(r.nodeName){var d=A(r.nodeName);if(!$[d]||W[d])throw iC("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof a)s=Ae("\x3c!----\x3e"),u=s.ownerDocument.importNode(r,!0),1===u.nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?s=u:s.appendChild(u);else{if(!Q&&!Y&&!X&&-1===r.indexOf("<"))return w&&te?w.createHTML(r):r;if(s=Ae(r),!s)return Q?null:te?x:""}s&&Z&&De(s.firstChild);var h=Ne(ie?r:s);while(c=h.nextNode())3===c.nodeType&&c===l||ze(c)||(c.content instanceof i&&Fe(c.content),$e(c),l=c);if(l=null,ie)return r;if(Q){if(ee){f=S.call(s.ownerDocument);while(s.firstChild)f.appendChild(s.firstChild)}else f=s;return j.shadowroot&&(f=E.call(n,f,!0)),f}var p=X?s.outerHTML:s.innerHTML;return X&&$["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&rC(TC,s.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+p),Y&&(p=eC(p,N," "),p=eC(p,P," ")),w&&te?w.createHTML(p):p},t.setConfig=function(e){_e(e),J=!0},t.clearConfig=function(){ye=null,J=!1},t.isValidAttribute=function(e,t,n){ye||_e({});var r=A(e),i=A(t);return Be(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&(D[e]=D[e]||[],J_(D[e],t))},t.removeHook=function(e){if(D[e])return X_(D[e])},t.removeHooks=function(e){D[e]&&(D[e]=[])},t.removeAllHooks=function(){D={}},t}var NC=AC(),PC=function(e){return NC().sanitize(e)},IC=tinymce.util.Tools.resolve("tinymce.util.I18n"),RC={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},zC="temporary-placeholder",BC=function(e){return function(){return Oe(e,zC).getOr("!not found!")}},LC=function(e,t){var n=e.toLowerCase();if(IC.isRtl()){var r=je(n,"-rtl");return Ee(t,r)?r:n}return n},$C=function(e,t){return Oe(t,LC(e,t))},FC=function(e,t){var n=t();return $C(e,n).getOrThunk(BC(n))},jC=function(e,t,n){var r=t();return $C(e,r).or(n).getOrThunk(BC(r))},VC=function(e){return!!IC.isRtl()&&Ee(RC,e)},HC=function(){return jw("add-focusable",[Vs((function(e){Bc(e.element,"svg").each((function(e){return Fn(e,"focusable","false")}))}))])},WC=function(e,t,n,r){var i,o,a=VC(t)?["tox-icon--flip"]:[],s=Oe(n,LC(t,n)).or(r).getOrThunk(BC(n));return{dom:{tag:e.tag,attributes:null!==(i=e.attributes)&&void 0!==i?i:{},classes:e.classes.concat(a),innerHtml:s},behaviours:hf(A(A([],null!==(o=e.behaviours)&&void 0!==o?o:[],!0),[HC()],!1))}},UC=function(e,t,n,r){return void 0===r&&(r=z.none()),WC(t,e,n(),r)},qC=function(e,t,n){var r=n(),i=ee(e,(function(e){return Ee(r,LC(e,r))}));return WC(t,i.getOr(zC),r,z.none())},GC={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},KC=function(e){var t=E_({dom:O_("<p>"+PC(e.translationProvider(e.text))+"</p>"),behaviours:hf([$w.config({})])}),n=function(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}},r=function(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}},i=E_({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:hf([$w.config({})])}),o=function(e,t){e.getSystem().isConnected()&&i.getOpt(e).each((function(e){$w.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(t)]},r(t)])}))},a=function(e,n){if(e.getSystem().isConnected()){var r=t.get(e);$w.set(r,[Cc(n)])}},s={updateProgress:o,updateText:a},u=ne([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return z.from(GC[e])})).toArray()]),c=E_(C_.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[UC("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:function(t){e.onAction(t)}})),l=qC(u,{tag:"div",classes:["tox-notification__icon"]},e.iconProvider),f={dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:hf([$w.config({})])},d=[l,f];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},behaviours:hf([Xw.config({}),jw("notification-events",[Ns(La(),(function(e){c.getOpt(e).each(Xw.focus)}))])]),components:d.concat(e.progress?[i.asSpec()]:[]).concat(e.closeButton?[c.asSpec()]:[]),apis:s}},YC=dg({name:"Notification",factory:KC,configFields:[Fo("level"),Do("progress"),Do("icon"),Do("onAction"),Do("text"),Do("iconProvider"),Do("translationProvider"),Qo("closeButton",!0)],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}});function XC(e,t,n){var r=t.backstage.shared,i=function(e){switch(e){case"bc-bc":return p_;case"tc-tc":return h_;case"tc-bc":return Ul;case"bc-tc":default:return ql}},o=function(e){e.length>0&&G(e,(function(t,n){0===n?t.moveRel(null,"banner"):t.moveRel(e[n-1].getEl(),"bc-tc")}))},a=function(t,o){var a=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),s=function(){o(),t_.hide(c)},u=Ec(YC.sketch({text:t.text,level:V(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:z.from(t.icon),closeButton:!a,onAction:s,iconProvider:r.providers.icons,translationProvider:r.providers.translate})),c=Ec(t_.sketch(D({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:r.getSink,fireDismissalEventInstead:{}},r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));n.add(c),t.timeout>0&&x_.setTimeout((function(){s()}),t.timeout);var l=function(){var t=Jr(tt.fromDom(e.getContentAreaContainer())),n=Qr(),r=Tl(n.x,t.x,t.right),i=Tl(n.y,t.y,t.bottom),o=Math.max(t.right,n.right),a=Math.max(t.bottom,n.bottom);return z.some(Xr(r,i,o-r,a-i))};return{close:s,moveTo:function(e,t){t_.showAt(c,Tc(u),{anchor:{type:"makeshift",x:e,y:t}})},moveRel:function(e,t){var n=Tc(u),o={maxHeightFunction:Ed()};if("banner"!==t&&d(e)){var a=i(t),s={type:"node",root:Bn(),node:z.some(tt.fromDom(e)),overrides:o,layouts:{onRtl:function(){return[a]},onLtr:function(){return[a]}}};t_.showWithinBounds(c,n,{anchor:s},l)}else{var f=D(D({},r.anchors.banner()),{overrides:o});t_.showWithinBounds(c,n,{anchor:f},l)}},text:function(e){YC.updateText(u,e)},settings:t,getEl:function(){return u.element.dom},progressBar:{value:function(e){YC.updateProgress(u,e)}}}},s=function(e){e.close()},u=function(e){return e.settings};return{open:a,close:s,reposition:o,getArgs:u}}var JC,ZC=function(e,t){var n=null,r=function(){u(n)||(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];u(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:i}},QC=function(e,t){var n=null,r=function(){u(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},ek=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),tk=function(e,t){return e.isBlock(t)||V(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t)},nk=function(e,t,n,r,i){var o=ek(e,(function(t){return tk(e,t)}));return z.from(o.backwards(t,n,r,i))},rk="[data-mce-autocompleter]",ik=function(e,t){return ok(tt.fromDom(e.selection.getNode())).getOrThunk((function(){var n=tt.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return Mr(n,tt.fromDom(t.extractContents())),t.insertNode(n.dom),gn(n).each((function(e){return e.dom.normalize()})),Gh(n).map((function(t){e.selection.setCursorLocation(t.dom,Hh(t))})),n}))},ok=function(e){return $c(e,rk)},ak=function(e){return e.collapsed&&3===e.startContainer.nodeType},sk=function(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},uk=function(e){return""!==e&&-1!=="  \f\n\r\t\v".indexOf(e)},ck=function(e,t){return e.substring(t.length)},lk=function(e,t,n){var r;for(r=t-1;r>=0;r--){var i=e.charAt(r);if(uk(i))return z.none();if(i===n)break}return z.some(r)},fk=function(e,t,n,r){if(void 0===r&&(r=0),!ak(t))return z.none();var i=function(e,t,r){return lk(r,t,n).getOr(t)},o=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return nk(e,t.startContainer,t.startOffset,i,o).bind((function(e){var i=t.cloneRange();if(i.setStart(e.container,e.offset),i.setEnd(t.endContainer,t.endOffset),i.collapsed)return z.none();var o=sk(i),a=o.lastIndexOf(n);return 0!==a||ck(o,n).length<r?z.none():z.some({text:ck(o,n),range:i,triggerChar:n})}))},dk=function(e,t,n,r){return void 0===r&&(r=0),ok(tt.fromDom(t.startContainer)).fold((function(){return fk(e,t,n,r)}),(function(t){var r=e.createRng();r.selectNode(t.dom);var i=sk(r);return z.some({range:r,text:ck(i,n),triggerChar:n})}))},hk=function(e,t){t.on("keypress compositionend",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var n=function(e,t){Cs(e,Fa(),{raw:t})};t.on("keydown",(function(t){var r=function(){return e.getView().bind(rb.getHighlighted)};8===t.which&&e.onKeypress.throttle(t),e.isActive()&&(27===t.which&&e.cancelIfNecessary(),e.isMenuOpen()?13===t.which?(r().each(ks),t.preventDefault()):40===t.which?(r().fold((function(){e.getView().each(rb.highlightFirst)}),(function(e){n(e,t)})),t.preventDefault(),t.stopImmediatePropagation()):37!==t.which&&38!==t.which&&39!==t.which||r().each((function(e){n(e,t),t.preventDefault(),t.stopImmediatePropagation()})):13!==t.which&&38!==t.which&&40!==t.which||e.cancelIfNecessary())})),t.on("NodeChange",(function(t){e.isActive()&&!e.isProcessingAction()&&ok(tt.fromDom(t.element)).isNone()&&e.cancelIfNecessary()}))},pk={setup:hk},mk=tinymce.util.Tools.resolve("tinymce.util.Promise"),vk=function(e,t){return{container:e,offset:t}},gk=function(e){return e.nodeType===at},bk=function(e){return e.nodeType===ot},yk=function(e){if(gk(e))return vk(e,e.data.length);var t=e.childNodes;return t.length>0?yk(t[t.length-1]):vk(e,t.length)},wk=function(e,t){var n=e.childNodes;return n.length>0&&t<n.length?wk(n[t],0):n.length>0&&bk(e)&&n.length===t?yk(n[n.length-1]):vk(e,t)},xk=function(e,t){return nk(e,t.container,t.offset,(function(e,t){return 0===t?-1:t}),e.getRoot()).filter((function(e){var t=e.container.data.charAt(e.offset-1);return!uk(t)})).isSome()},_k=function(e){return function(t){var n=wk(t.startContainer,t.startOffset);return!xk(e,n)}},Ck=function(e,t,n){return pe(n.triggerChars,(function(n){return dk(e,t,n)}))},kk=function(e,t){var n=t(),r=e.selection.getRng();return Ck(e.dom,r,n).bind((function(n){return Sk(e,t,n)}))},Sk=function(e,t,n,r){void 0===r&&(r={});var i=t(),o=e.selection.getRng(),a=o.startContainer.nodeValue,s=X(i.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return _k(e.dom)}))(n.range,a,n.text)}));if(0===s.length)return z.none();var u=mk.all(q(s,(function(e){var t=e.fetch(n.text,e.maxResults,r);return t.then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return z.some({lookupData:u,context:n})},Ok=Qi([No("type"),Ho("text")]),Ek=function(e){return wo("separatormenuitem",Ok,e)},Tk=Qi([Ko("type","autocompleteitem"),Ko("active",!1),Ko("disabled",!1),Ko("meta",{}),No("value"),Ho("text"),Ho("icon")]),Dk=Qi([No("type"),No("ch"),Xo("minChars",1),Ko("columns",1),Xo("maxResults",10),Wo("matches"),Ro("fetch"),Ro("onAction"),na("highlightOn",[],uo)]),Mk=function(e){return wo("Autocompleter.Separator",Ok,e)},Ak=function(e){return wo("Autocompleter.Item",Tk,e)},Nk=function(e){return wo("Autocompleter",Dk,e)},Pk=[Qo("disabled",!1),Ho("tooltip"),Ho("icon"),Ho("text"),ea("onSetup",(function(){return v}))],Ik=Qi([No("type"),Ro("onAction")].concat(Pk)),Rk=function(e){return wo("toolbarbutton",Ik,e)},zk=[Qo("active",!1)].concat(Pk),Bk=Qi(zk.concat([No("type"),Ro("onAction")])),Lk=function(e){return wo("ToggleButton",Bk,e)},$k=[ea("predicate",O),Zo("scope","node",["node","editor"]),Zo("position","selection",["node","selection","line"])],Fk=Pk.concat([Ko("type","contextformbutton"),Ko("primary",!1),Ro("onAction"),Eo("original",x)]),jk=zk.concat([Ko("type","contextformbutton"),Ko("primary",!1),Ro("onAction"),Eo("original",x)]),Vk=Pk.concat([Ko("type","contextformbutton")]),Hk=zk.concat([Ko("type","contextformtogglebutton")]),Wk=ko("type",{contextformbutton:Fk,contextformtogglebutton:jk}),Uk=Qi([Ko("type","contextform"),ea("initValue",w("")),Ho("label"),$o("commands",Wk),jo("launch",ko("type",{contextformbutton:Vk,contextformtogglebutton:Hk}))].concat($k)),qk=function(e){return wo("ContextForm",Uk,e)},Gk=Qi([Ko("type","contexttoolbar"),No("items")].concat($k)),Kk=function(e){return wo("ContextToolbar",Gk,e)},Yk=function(e){var t={};return G(e,(function(e){t[e]={}})),me(t)},Xk=function(e){var t=e.ui.registry.getAll().popups,n=be(t,(function(e){return Nk(e).fold((function(e){throw new Error(Co(e))}),x)})),r=Yk(Ce(n,(function(e){return e.ch}))),i=Se(n),o=function(e){return X(i,(function(t){return t.ch===e}))};return{dataset:n,triggerChars:r,lookupByChar:o}};(function(e){e[e["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",e[e["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(JC||(JC={}));var Jk,Zk=JC,Qk="tox-menu-nav__js",eS="tox-collection__item",tS="tox-swatch",nS={normal:Qk,color:tS},rS="tox-collection__item--enabled",iS="tox-collection__group-heading",oS="tox-collection__item-icon",aS="tox-collection__item-label",sS="tox-collection__item-accessory",uS="tox-collection__item-caret",cS="tox-collection__item-checkmark",lS="tox-collection__item--active",fS="tox-collection__item-container",dS="tox-collection__item-container--column",hS="tox-collection__item-container--row",pS="tox-collection__item-container--align-right",mS="tox-collection__item-container--align-left",vS="tox-collection__item-container--valign-top",gS="tox-collection__item-container--valign-middle",bS="tox-collection__item-container--valign-bottom",yS=function(e){return Oe(nS,e).getOr(Qk)},wS=function(e){return"color"===e?"tox-swatches":"tox-menu"},xS=function(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:wS(e),tieredMenu:"tox-tiered-menu"}},_S=function(e){var t=xS(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:yS(e)}},CS=function(e,t,n){var r=xS(n);return{tag:"div",classes:ne([[r.menu,"tox-menu-"+t+"-column"],e?[r.hasIcons]:[]])}},kS=[Fx.parts.items({})],SS=function(e,t,n){var r=xS(n),i={tag:"div",classes:ne([[r.tieredMenu]])};return{dom:i,markers:_S(n)}},OS=function(e,t){return function(n){var r=U(n,t);return q(r,(function(t){return{dom:e,components:t}}))}},ES=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Fx.parts.items({preprocess:"auto"!==e?OS({tag:"div",classes:["tox-swatches__row"]},e):x})]}]}},TS=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Fx.parts.items({preprocess:OS({tag:"div",classes:["tox-collection__group"]},e)})]}},DS=function(e,t){var n=[],r=[];return G(e,(function(e,i){t(e,i)?(r.length>0&&n.push(r),r=[],Ee(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),r.length>0&&n.push(r),q(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))},MS=function(e,t,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[Fx.parts.items({preprocess:function(n){return"auto"!==e&&e>1?OS({tag:"div",classes:["tox-collection__group"]},e)(n):DS(n,(function(e,n){return"separator"===t[n].type}))}})]}},AS=function(e,t){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Fx.parts.items({preprocess:function(t){return DS(t,(function(t,n){return"separator"===e[n].type}))}})]}},NS=function(e){return H(e,(function(e){return"icon"in e&&void 0!==e.icon}))},PS=function(e){return console.error(Co(e)),console.log(e),z.none()},IS=function(e,t,n,r,i){var o=AS(n);return{value:e,dom:o.dom,components:o.components,items:n}},RS=function(e,t,n,r,i){if("color"===i){var o=ES(r);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&"auto"===r){o=MS(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&1===r){o=MS(1,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i){o=MS(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("listpreview"===i&&"auto"!==r){o=TS(r);return{value:e,dom:o.dom,components:o.components,items:n}}return{value:e,dom:CS(t,r,i),components:kS,items:n}},zS=[No("type"),No("src"),Ho("alt"),na("classes",[],uo)],BS=Qi(zS),LS=[No("type"),No("text"),Ho("name"),na("classes",["tox-collection__item-label"],uo)],$S=Qi(LS),FS=Xi((function(){return mo("type",{cardimage:BS,cardtext:$S,cardcontainer:jS})})),jS=Qi([No("type"),Jo("direction","horizontal"),Jo("align","left"),Jo("valign","middle"),$o("items",FS)]),VS=[Qo("disabled",!1),Ho("text"),Ho("shortcut"),Oo("value","value",ki((function(){return iu("menuitem-value")})),oo()),Ko("meta",{})],HS=Qi([No("type"),Ho("label"),$o("items",FS),ea("onSetup",(function(){return v})),ea("onAction",v)].concat(VS)),WS=function(e){return wo("cardmenuitem",HS,e)},US=Qi([No("type"),Qo("active",!1),Ho("icon")].concat(VS)),qS=function(e){return wo("choicemenuitem",US,e)},GS=[No("type"),No("fancytype"),ea("onAction",v)],KS=[Ko("initData",{})].concat(GS),YS=[ra("initData",{},[Qo("allowCustomColors",!0),Uo("colors",oo())])].concat(GS),XS=ko("fancytype",{inserttable:KS,colorswatch:YS}),JS=function(e){return wo("fancymenuitem",XS,e)},ZS=Qi([No("type"),ea("onSetup",(function(){return v})),ea("onAction",v),Ho("icon")].concat(VS)),QS=function(e){return wo("menuitem",ZS,e)},eO=Qi([No("type"),Ro("getSubmenuItems"),ea("onSetup",(function(){return v})),Ho("icon")].concat(VS)),tO=function(e){return wo("nestedmenuitem",eO,e)},nO=Qi([No("type"),Ho("icon"),Qo("active",!1),ea("onSetup",(function(){return v})),Ro("onAction")].concat(VS)),rO=function(e){return wo("togglemenuitem",nO,e)},iO=function(e,t,n){var r=Yh(e.element,"."+n);if(r.length>0){var i=te(r,(function(e){var n=e.dom.getBoundingClientRect().top,i=r[0].dom.getBoundingClientRect().top;return Math.abs(n-i)>t})).getOr(r.length);return z.some({numColumns:i,numRows:Math.ceil(r.length/i)})}return z.none()},oO=function(e,t){return hf([jw(e,t)])},aO=function(e){return oO(iu("unnamed-events"),e)},sO={namedEvents:oO,unnamedEvents:aO},uO=iu("tooltip.exclusive"),cO=iu("tooltip.show"),lO=iu("tooltip.hide"),fO=function(e,t,n){e.getSystem().broadcastOn([uO],{})},dO=function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&$w.set(e,r)}))},hO=Object.freeze({__proto__:null,hideAllExclusive:fO,setComponents:dO}),pO=function(e,t){var n=function(n){t.getTooltip().each((function(r){Gp(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()},r=function(n){if(!t.isShowing()){fO(n);var r=e.lazySink(n).getOrDie(),i=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:Ts("normal"===e.mode?[Ns(Ba(),(function(e){_s(n,cO)})),Ns(Ra(),(function(e){_s(n,lO)}))]:[]),behaviours:hf([$w.config({})])});t.setTooltip(i),Wp(r,i),e.onShow(n,i),Lp.position(r,i,{anchor:e.anchor(n)})}};return Ts(ne([[Ns(cO,(function(n){t.resetTimer((function(){r(n)}),e.delay)})),Ns(lO,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),Ns(es(),(function(e,t){var r=t;r.universal||V(r.channels,uO)&&n(e)})),Hs((function(e){n(e)}))],"normal"===e.mode?[Ns(La(),(function(e){_s(e,cO)})),Ns(Za(),(function(e){_s(e,lO)})),Ns(Ba(),(function(e){_s(e,cO)})),Ns(Ra(),(function(e){_s(e,lO)}))]:[Ns(ws(),(function(e,t){_s(e,cO)})),Ns(xs(),(function(e){_s(e,lO)}))]]))},mO=Object.freeze({__proto__:null,events:pO}),vO=[Do("lazySink"),Do("tooltipDom"),Ko("exclusive",!0),Ko("tooltipComponents",[]),Ko("delay",300),Zo("mode","normal",["normal","follow-highlight"]),Ko("anchor",(function(e){return{type:"hotspot",hotspot:e,layouts:{onLtr:w([ql,Ul,jl,Hl,Vl,Wl]),onRtl:w([ql,Ul,jl,Hl,Vl,Wl])}}})),sl("onHide"),sl("onShow")],gO=function(){var e=id(),t=id(),n=function(){e.on(clearTimeout)},r=function(t,r){n(),e.set(setTimeout(t,r))},i=w("not-implemented");return Su({getTooltip:t.get,isShowing:t.isSet,setTooltip:t.set,clearTooltip:t.clear,clearTimer:n,resetTimer:r,readState:i})},bO=Object.freeze({__proto__:null,init:gO}),yO=mf({fields:vO,name:"tooltipping",active:mO,state:bO,apis:hO}),wO=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},xO=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),_O=tinymce.util.Tools.resolve("tinymce.EditorManager"),CO=function(e){var t=e.getParam("skin"),n=e.getParam("skin_url");if(!1!==t){var r=t||"oxide";n=n?e.documentBaseURI.toAbsolute(n):_O.baseURL+"/skins/ui/"+r}return n},kO=function(e){return e.getParam("readonly",!1,"boolean")},SO=function(e){return!1===e.getParam("skin")},OO=function(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))},EO=function(e){return e.getParam("width",xO.DOM.getStyle(e.getElement(),"width"))},TO=function(e){return z.from(e.getParam("min_width")).filter(p)},DO=function(e){return z.from(e.getParam("min_height")).filter(p)},MO=function(e){return z.from(e.getParam("max_width")).filter(p)},AO=function(e){return z.from(e.getParam("max_height")).filter(p)},NO=function(e){return z.from(e.getParam("style_formats")).filter(s)},PO=function(e){return e.getParam("style_formats_merge",!1,"boolean")},IO=function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},RO=function(e){return e.getParam("content_langs",void 0,"array")},zO=function(e){return e.getParam("removed_menuitems","")},BO=function(e){return!1!==e.getParam("menubar",!0,"boolean")},LO=function(e){var t=e.getParam("toolbar",!0),n=!0===t,r=o(t),i=s(t)&&t.length>0;return!FO(e)&&(i||r||n)},$O=function(e){var t=W(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),n=X(t,(function(e){return"string"===typeof e}));return n.length>0?z.some(n):z.none()},FO=function(e){return $O(e).fold((function(){var t=e.getParam("toolbar",[],"string[]");return t.length>0}),E)};(function(e){e["default"]="wrap",e["floating"]="floating",e["sliding"]="sliding",e["scrolling"]="scrolling"})(Jk||(Jk={}));var jO,VO=function(e){return e.getParam("toolbar_mode","","string")};(function(e){e["auto"]="auto",e["top"]="top",e["bottom"]="bottom"})(jO||(jO={}));var HO,WO=function(e){return e.getParam("toolbar_groups",{},"object")},UO=function(e){return e.getParam("toolbar_location",jO.auto,"string")},qO=function(e){return UO(e)===jO.bottom},GO=function(e){return e.getParam("fixed_toolbar_container","","string")},KO=function(e){return e.getParam("fixed_toolbar_container_target")},YO=function(e){return e.getParam("toolbar_persist",!1,"boolean")},XO=function(e){if(!e.inline)return z.none();var t=GO(e);if(t.length>0)return Lc(Bn(),t);var n=KO(e);return d(n)?z.some(tt.fromDom(n)):z.none()},JO=function(e){return e.inline&&XO(e).isSome()},ZO=function(e){var t=XO(e);return t.getOrThunk((function(){return Mn(Dn(tt.fromDom(e.getElement())))}))},QO=function(e){return e.inline&&!BO(e)&&!LO(e)&&!FO(e)},eE=function(e){var t=e.getParam("toolbar_sticky",!1,"boolean");return(t||e.inline)&&!JO(e)&&!QO(e)},tE=function(e){return e.getParam("toolbar_sticky_offset",0,"number")},nE=function(e){return e.getParam("draggable_modal",!1,"boolean")},rE=function(e){var t=e.getParam("menu");return t?be(t,(function(e){return D(D({},e),{items:e.items})})):{}},iE=function(e){return e.getParam("menubar")},oE=function(e){return e.getParam("toolbar",!0)},aE=function(e){return e.getParam("file_picker_callback")},sE=function(e){return e.getParam("file_picker_types")},uE=function(e){return e.getParam("file_browser_callback_types")},cE=function(e){return!1===e.getParam("typeahead_urls")},lE=function(e){return e.getParam("anchor_top","#top")},fE=function(e){return e.getParam("anchor_bottom","#bottom")},dE=function(e){var t=e.getParam("file_picker_validator_handler",void 0,"function");return void 0===t?e.getParam("filepicker_validator_handler",void 0,"function"):t},hE="silver.readonly",pE=Qi([Io("readonly")]),mE=function(e,t){var n=e.outerContainer,r=n.element;t&&(e.mothership.broadcastOn([ym()],{target:r}),e.uiMothership.broadcastOn([ym()],{target:r})),e.mothership.broadcastOn([hE],{readonly:t}),e.uiMothership.broadcastOn([hE],{readonly:t})},vE=function(e,t){e.on("init",(function(){e.mode.isReadOnly()&&mE(t,!0)})),e.on("SwitchMode",(function(){return mE(t,e.mode.isReadOnly())})),kO(e)&&e.setMode("readonly")},gE=function(){var e;return yf.config({channels:(e={},e[hE]={schema:pE,onReceive:function(e,t){Bg.set(e,t.readonly)}},e)})},bE=function(e){return Bg.config({disabled:e,disableClass:"tox-collection__item--state-disabled"})},yE=function(e){return Bg.config({disabled:e})},wE=function(e){return Bg.config({disabled:e,disableClass:"tox-tbtn--disabled"})},xE=function(e){return Bg.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},_E={item:bE,button:yE,splitButton:wE,toolbarButton:xE},CE=function(e,t){var n=e.getApi(t);return function(e){e(n)}},kE=function(e,t){return Vs((function(n){var r=CE(e,n);r((function(n){var r=e.onSetup(n);h(r)&&t.set(r)}))}))},SE=function(e,t){return Hs((function(n){return CE(e,n)(t.get())}))},OE=function(e,t){return Us((function(n,r){CE(e,n)(e.onAction),e.triggersSubmenu||t!==Zk.CLOSE_ON_EXECUTE||(_s(n,os()),r.stop())}))},EE=(HO={},HO[ts()]=["disabling","alloy.base.behaviour","toggling","item-events"],HO),TE=Ae,DE=function(e,t,n,r){var i=ia(v);return{type:"item",dom:t.dom,components:TE(t.optComponents),data:e.data,eventOrder:EE,hasSubmenu:e.triggersSubmenu,itemBehaviours:hf([jw("item-events",[OE(e,n),kE(e,i),SE(e,i)]),_E.item((function(){return e.disabled||r.isDisabled()})),gE(),$w.config({})].concat(e.itemBehaviours))}},ME=function(e){return{value:e.value,meta:D({text:e.text.getOr("")},e.meta)}},AE=tinymce.util.Tools.resolve("tinymce.Env"),NE=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl",access:"Shift+Alt"},r=AE.mac?t:n,i=e.split("+"),o=q(i,(function(e){var t=e.toLowerCase().trim();return Ee(r,t)?r[t]:e}));return AE.mac?o.join(""):o.join("+")},PE=function(e,t,n){return void 0===n&&(n=[oS]),UC(e,{tag:"div",classes:n},t)},IE=function(e){return{dom:{tag:"div",classes:[aS]},components:[Cc(IC.translate(e))]}},RE=function(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}},zE=function(e,t){return{dom:{tag:"div",classes:[aS]},components:[{dom:{tag:e.tag,styles:e.styles},components:[Cc(IC.translate(t))]}]}},BE=function(e){return{dom:{tag:"div",classes:[sS],innerHtml:NE(e)}}},LE=function(e){return PE("checkmark",e,[cS])},$E=function(e){return PE("chevron-right",e,[uS])},FE=function(e){return PE("chevron-down",e,[uS])},jE=function(e,t){var n="vertical"===e.direction?dS:hS,r="left"===e.align?mS:pS,i=function(){switch(e.valign){case"top":return vS;case"middle":return gS;case"bottom":return bS}};return{dom:{tag:"div",classes:[fS,n,r,i()]},components:t}},VE=function(e,t,n){return{dom:{tag:"img",classes:t,attributes:{src:e,alt:n.getOr("")}}}},HE=function(e,t,n){var r="custom",i="remove",o=e.ariaLabel,a=e.value,s=e.iconContent.map((function(e){return jC(e,t.icons,n)})),u=function(){var e=tS,n=s.getOr(""),u=o.map((function(e){return{title:t.translate(e)}})).getOr({}),c={tag:"div",attributes:u,classes:[e]};return D(D({},c),a===r?{tag:"button",classes:A(A([],c.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:n}:a===i?{classes:A(A([],c.classes,!0),["tox-swatch--remove"],!1),innerHtml:n}:{attributes:D(D({},c.attributes),{"data-mce-color":a}),styles:{"background-color":a}})};return{dom:u(),optComponents:[]}},WE=function(e){var t=e.map((function(e){return{attributes:{title:IC.translate(e)}}})).getOr({});return D({tag:"div",classes:[Qk,eS]},t)},UE=function(e,t,n,r){var i={tag:"div",classes:[oS]},o=function(e){return UC(e,i,t.icons,r)},a=function(){return z.some({dom:i})},s=n?e.iconContent.map(o).orThunk(a):z.none(),u=e.checkMark,c=z.from(e.meta).fold((function(){return IE}),(function(e){return Ee(e,"style")?C(zE,e.style):IE})),l=e.htmlContent.fold((function(){return e.textContent.map(c)}),(function(e){return z.some(RE(e,[aS]))})),f={dom:WE(e.ariaLabel),optComponents:[s,l,e.shortcutContent.map(BE),u,e.caret]};return f},qE=function(e,t,n,r){return void 0===r&&(r=z.none()),"color"===e.presets?HE(e,t,r):UE(e,t,n,r)},GE=function(e,t){return Oe(e,"tooltipWorker").map((function(e){return[yO.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{type:"submenu",item:e,overrides:{maxHeightFunction:Ed}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){yO.setComponents(t,[kc({element:tt.fromDom(e)})])}))}})]})).getOr([])},KE=function(e){return xO.DOM.encode(e)},YE=function(e,t){var n=IC.translate(e),r=KE(n);if(t.length>0){var i=new RegExp(wO(t),"gi");return r.replace(i,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return r},XE=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var u=qE({presets:r,textContent:z.none(),htmlContent:n?e.text.map((function(e){return YE(e,t)})):z.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:z.none(),checkMark:z.none(),caret:z.none(),value:e.value},a.providers,s,e.icon);return DE({data:ME(e),disabled:e.disabled,getApi:w({}),onAction:function(t){return i(e.value,e.meta)},onSetup:w(v),triggersSubmenu:!1,itemBehaviours:GE(e.meta,a)},u,o,a.providers)},JE=function(e,t){return q(e,(function(e){switch(e.type){case"cardcontainer":return jE(e,JE(e.items,t));case"cardimage":return VE(e.src,e.classes,e.alt);case"cardtext":var n=e.name.exists((function(e){return V(t.cardText.highlightOn,e)})),r=n?z.from(t.cardText.matchText).getOr(""):"";return RE(YE(e.text,r),e.classes)}}))},ZE=function(e,t,n,r){var i=function(e){return{isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){Bg.set(e,t),G(Yh(e.element,"*"),(function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(Bg)&&Bg.set(e,t)}))}))}}},o={dom:WE(e.label),optComponents:[z.some({dom:{tag:"div",classes:[fS,hS]},components:JE(e.items,r)})]};return DE({data:ME(D({text:z.none()},e)),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:z.from(r.itemBehaviours).getOr([])},o,t,n.providers)},QE=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var u=function(e){return{setActive:function(t){mx.set(e,t)},isActive:function(){return mx.isOn(e)},isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){return Bg.set(e,t)}}},c=qE({presets:n,textContent:t?e.text:z.none(),htmlContent:z.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:z.none(),checkMark:t?z.some(LE(a.icons)):z.none(),caret:z.none(),value:e.value},a,s);return xi(DE({data:ME(e),disabled:e.disabled,getApi:u,onAction:function(t){return r(e.value)},onSetup:function(e){return e.setActive(i),v},triggersSubmenu:!1,itemBehaviours:[]},c,o,a),{toggling:{toggleClass:rS,toggleOnExecute:!1,selected:e.active}})},eT=jv(Tx(),Dx()),tT=function(e){return{value:e}},nT=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rT=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,iT=function(e){return nT.test(e)||rT.test(e)},oT=function(e){return Fe(e,"#").toUpperCase()},aT=function(e){return iT(e)?z.some({value:oT(e)}):z.none()},sT=function(e){var t=e.value.replace(nT,(function(e,t,n,r){return t+t+n+n+r+r}));return{value:t}},uT=function(e){var t=sT(e),n=rT.exec(t.value);return null===n?["FFFFFF","FF","FF","FF"]:n},cT=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},lT=function(e){var t=cT(e.red)+cT(e.green)+cT(e.blue);return tT(t)},fT=Math.min,dT=Math.max,hT=Math.round,pT=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,mT=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,vT=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},gT=function(e){var t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},bT=function(e){var t,n,r,i=(e.hue||0)%360,o=e.saturation/100,a=e.value/100;if(o=dT(0,fT(o,1)),a=dT(0,fT(a,1)),0===o)return t=n=r=hT(255*a),vT(t,n,r,1);var s=i/60,u=a*o,c=u*(1-Math.abs(s%2-1)),l=a-u;switch(Math.floor(s)){case 0:t=u,n=c,r=0;break;case 1:t=c,n=u,r=0;break;case 2:t=0,n=u,r=c;break;case 3:t=0,n=c,r=u;break;case 4:t=c,n=0,r=u;break;case 5:t=u,n=0,r=c;break;default:t=n=r=0}return t=hT(255*(t+l)),n=hT(255*(n+l)),r=hT(255*(r+l)),vT(t,n,r,1)},yT=function(e){var t=uT(e),n=parseInt(t[1],16),r=parseInt(t[2],16),i=parseInt(t[3],16);return vT(n,r,i,1)},wT=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return vT(i,o,a,s)},xT=function(e){if("transparent"===e)return z.some(vT(0,0,0,0));var t=pT.exec(e);if(null!==t)return z.some(wT(t[1],t[2],t[3],"1"));var n=mT.exec(e);return null!==n?z.some(wT(n[1],n[2],n[3],n[4])):z.none()},_T=function(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"},CT=vT(255,0,0,1),kT=function(e){return e.fire("SkinLoaded")},ST=function(e,t){return e.fire("SkinLoadError",t)},OT=function(e){return e.fire("ResizeEditor")},ET=function(e,t){return e.fire("ResizeContent",t)},TT=function(e,t){return e.fire("ScrollContent",t)},DT=function(e,t){return e.fire("TextColorChange",t)},MT=function(e,t,n){return{hue:e,saturation:t,value:n}},AT=function(e){var t=0,n=0,r=0,i=e.red/255,o=e.green/255,a=e.blue/255,s=Math.min(i,Math.min(o,a)),u=Math.max(i,Math.max(o,a));if(s===u)return r=s,MT(0,0,100*r);var c=i===s?o-a:a===s?i-o:a-i;return t=i===s?3:a===s?1:5,t=60*(t-c/(u-s)),n=(u-s)/u,r=u,MT(Math.round(t),Math.round(100*n),Math.round(100*r))},NT=function(e){return AT(yT(e))},PT=function(e){return lT(bT(e))},IT=function(e){return aT(e).orThunk((function(){return xT(e).map(lT)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return lT(vT(i,o,a,s))}))},RT=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),zT="tinymce-custom-colors";function BT(e){void 0===e&&(e=10);var t=RT.getItem(zT),n=o(t)?JSON.parse(t):[],r=function(t){var n=e-t.length;return n<0?t.slice(0,e):t},i=r(n),a=function(t){j(i,t).each(s),i.unshift(t),i.length>e&&i.pop(),RT.setItem(zT,JSON.stringify(i))},s=function(e){i.splice(e,1)},u=function(){return i.slice(0)};return{add:a,state:u}}var LT,$T="choiceitem",FT=[{type:$T,text:"Light Green",value:"#BFEDD2"},{type:$T,text:"Light Yellow",value:"#FBEEB8"},{type:$T,text:"Light Red",value:"#F8CAC6"},{type:$T,text:"Light Purple",value:"#ECCAFA"},{type:$T,text:"Light Blue",value:"#C2E0F4"},{type:$T,text:"Green",value:"#2DC26B"},{type:$T,text:"Yellow",value:"#F1C40F"},{type:$T,text:"Red",value:"#E03E2D"},{type:$T,text:"Purple",value:"#B96AD9"},{type:$T,text:"Blue",value:"#3598DB"},{type:$T,text:"Dark Turquoise",value:"#169179"},{type:$T,text:"Orange",value:"#E67E23"},{type:$T,text:"Dark Red",value:"#BA372A"},{type:$T,text:"Dark Purple",value:"#843FA1"},{type:$T,text:"Dark Blue",value:"#236FA1"},{type:$T,text:"Light Gray",value:"#ECF0F1"},{type:$T,text:"Medium Gray",value:"#CED4D9"},{type:$T,text:"Gray",value:"#95A5A6"},{type:$T,text:"Dark Gray",value:"#7E8C8D"},{type:$T,text:"Navy Blue",value:"#34495E"},{type:$T,text:"Black",value:"#000000"},{type:$T,text:"White",value:"#ffffff"}],jT=BT(10),VT=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push({text:e[n+1],value:"#"+IT(e[n]).value,type:"choiceitem"});return t},HT=function(e,t){return e.getParam("color_cols",t,"number")},WT=function(e){return!1!==e.getParam("custom_colors")},UT=function(e){return e.getParam("color_map")},qT=function(e){var t=UT(e);return void 0!==t?VT(t):FT},GT=function(){return q(jT.state(),(function(e){return{type:$T,text:e,value:e}}))},KT=function(e){jT.add(e)},YT="#000000",XT=function(e,t){var n;return e.dom.getParents(e.selection.getStart(),(function(e){var r;(r=e.style["forecolor"===t?"color":"background-color"])&&(n=n||r)})),z.from(n)},JT=function(e,t,n){e.undoManager.transact((function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()}))},ZT=function(e,t){e.undoManager.transact((function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()}))},QT=function(e){e.addCommand("mceApplyTextcolor",(function(t,n){JT(e,t,n)})),e.addCommand("mceRemoveTextcolor",(function(t){ZT(e,t)}))},eD=function(e){return Math.max(5,Math.ceil(Math.sqrt(e)))},tD=function(e){var t=qT(e),n=eD(t.length);return HT(e,n)},nD=function(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return e?[n,r]:[n]},rD=function(e,t,n,r){if("custom"===n){var i=cD(e);i((function(n){n.each((function(n){KT(n),e.execCommand("mceApplyTextcolor",t,n),r(n)}))}),YT)}else"remove"===n?(r(""),e.execCommand("mceRemoveTextcolor",t)):(r(n),e.execCommand("mceApplyTextcolor",t,n))},iD=function(e,t){return e.concat(GT().concat(nD(t)))},oD=function(e,t){return function(n){n(iD(e,t))}},aD=function(e,t,n){var r="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";e.setIconFill(r,n)},sD=function(e,t,n,r,i){e.ui.registry.addSplitButton(t,{tooltip:r,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var r=XT(e,n);return r.bind((function(e){return xT(e).map((function(e){var n=lT(e).value;return Ve(t.toLowerCase(),n)}))})).getOr(!1)},columns:tD(e),fetch:oD(qT(e),WT(e)),onAction:function(t){rD(e,n,i.get(),v)},onItemAction:function(r,o){rD(e,n,o,(function(n){i.set(n),DT(e,{name:t,color:n})}))},onSetup:function(n){aD(n,t,i.get());var r=function(e){e.name===t&&aD(n,e.name,e.color)};return e.on("TextColorChange",r),function(){e.off("TextColorChange",r)}}})},uD=function(e,t,n,r){e.ui.registry.addNestedMenuItem(t,{text:r,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){rD(e,n,t.value,v)}}]}})},cD=function(e){return function(t,n){var r=!1,i=function(n){var i=n.getData(),o=i.colorpicker;r?(t(z.from(o)),n.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",o]))},o=function(e,t){"hex-valid"===t.name&&(r=t.value)},a={colorpicker:n};e.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:a,onAction:o,onSubmit:i,onClose:v,onCancel:function(){t(z.none())}})}},lD=function(e){QT(e);var t=ia(YT),n=ia(YT);sD(e,"forecolor","forecolor","Text color",t),sD(e,"backcolor","hilitecolor","Background color",n),uD(e,"forecolor","forecolor","Text color"),uD(e,"backcolor","hilitecolor","Background color")},fD=function(e,t,n,r,i,o,a,s){var u=NS(t),c="color"!==i?"normal":"color",l=dD(t,n,r,c,o,a,s);return RS(e,u,l,r,i)},dD=function(e,t,n,r,i,o,a){return Ae(q(e,(function(s){return"choiceitem"===s.type?qS(s).fold(PS,(function(u){return z.some(QE(u,1===n,r,t,o(s.value),i,a,NS(e)))})):z.none()})))},hD=function(e,t){var n=_S(t);if(1===e)return{mode:"menu",moveOnTab:!0};if("auto"===e)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},pD=function(e,t){return 1===e?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===e?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+tS:"."+eS}}},mD=function(e,t){var n=vD(e,t),r=t.colorinput.getColorCols(),i="color",o=fD(iu("menu-value"),n,(function(t){e.onAction({value:t})}),r,i,Zk.CLOSE_ON_EXECUTE,O,t.shared.providers),a=D(D({},o),{markers:_S(i),movement:hD(r,i)});return{type:"widget",data:{value:iu("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[eT.widget(Fx.sketch(a))]}},vD=function(e,t){var n=e.initData.allowCustomColors&&t.colorinput.hasCustomColors();return e.initData.colors.fold((function(){return iD(t.colorinput.getColors(),n)}),(function(e){return e.concat(nD(n))}))},gD=iu("cell-over"),bD=iu("cell-execute"),yD=function(e,t,n){var r,i=function(n){return Cs(n,gD,{row:e,col:t})},o=function(n){return Cs(n,bD,{row:e,col:t})},a=function(e,t){t.stop(),o(e)};return Ec({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:hf([jw("insert-table-picker-cell",[Ns(Ba(),Xw.focus),Ns(ts(),o),Ns(Wa(),a),Ns(rs(),a)]),mx.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Xw.config({onFocus:i})])})},wD=function(e,t,n){for(var r=[],i=0;i<t;i++){for(var o=[],a=0;a<n;a++)o.push(yD(i,a,e));r.push(o)}return r},xD=function(e,t,n,r,i){for(var o=0;o<r;o++)for(var a=0;a<i;a++)mx.set(e[o][a],o<=t&&a<=n)},_D=function(e){return re(e,(function(e){return q(e,Tc)}))},CD=function(e,t){return Cc(t+"x"+e)},kD=function(e){var t=10,n=10,r=iu("size-label"),i=wD(r,t,n),o=CD(0,0),a=E_({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[o],behaviours:hf([$w.config({})])});return{type:"widget",data:{value:iu("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[eT.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:_D(i).concat(a.asSpec()),behaviours:hf([jw("insert-table-picker",[Vs((function(e){$w.set(a.get(e),[o])})),Ls(gD,(function(e,r,o){var s=o.event,u=s.row,c=s.col;xD(i,u,c,t,n),$w.set(a.get(e),[CD(u+1,c+1)])})),Ls(bD,(function(t,n,r){var i=r.event,o=i.row,a=i.col;e.onAction({numRows:o+1,numColumns:a+1}),_s(t,os())}))]),Dw.config({initSize:{numRows:t,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},SD={inserttable:kD,colorswatch:mD},OD=function(e,t){return Oe(SD,e.fancytype).map((function(n){return n(e,t)}))},ED=function(e,t,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!1);var o=i?FE(n.icons):$E(n.icons),a=function(e){return{isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){return Bg.set(e,t)}}},s=qE({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:z.none(),ariaLabel:e.text,caret:z.some(o),checkMark:z.none(),shortcutContent:e.shortcut},n,r);return DE({data:ME(e),getApi:a,disabled:e.disabled,onAction:v,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},s,t,n)},TD=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){return Bg.set(e,t)}}},o=qE({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:z.none(),ariaLabel:e.text,caret:z.none(),checkMark:z.none(),shortcutContent:e.shortcut},n,r);return DE({data:ME(e),getApi:i,disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n)},DD=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:D({tag:"div",classes:[eS,iS]},t),components:[]}},MD=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{setActive:function(t){mx.set(e,t)},isActive:function(){return mx.isOn(e)},isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){return Bg.set(e,t)}}},o=qE({iconContent:e.icon,textContent:e.text,htmlContent:z.none(),ariaLabel:e.text,checkMark:z.some(LE(n.icons)),caret:z.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,r);return xi(DE({data:ME(e),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n),{toggling:{toggleClass:rS,toggleOnExecute:!1,selected:e.active}})},AD=XE,ND=DD,PD=TD,ID=ED,RD=MD,zD=OD,BD=ZE;(function(e){e[e["ContentFocus"]=0]="ContentFocus",e[e["UiFocus"]=1]="UiFocus"})(LT||(LT={}));var LD=function(e,t,n,r,i){var o=n.shared.providers,a=function(e){return i?D(D({},e),{shortcut:z.none(),icon:e.text.isSome()?z.none():e.icon}):e};switch(e.type){case"menuitem":return QS(e).fold(PS,(function(e){return z.some(PD(a(e),t,o,r))}));case"nestedmenuitem":return tO(e).fold(PS,(function(e){return z.some(ID(a(e),t,o,r,i))}));case"togglemenuitem":return rO(e).fold(PS,(function(e){return z.some(RD(a(e),t,o,r))}));case"separator":return Ek(e).fold(PS,(function(e){return z.some(ND(e))}));case"fancymenuitem":return JS(e).fold(PS,(function(e){return zD(a(e),n)}));default:return console.error("Unknown item in general menu",e),z.none()}},$D=function(e,t,n,r,i,o,a){var s=1===r,u=!s||NS(e);return Ae(q(e,(function(e){switch(e.type){case"separator":return Mk(e).fold(PS,(function(e){return z.some(ND(e))}));case"cardmenuitem":return WS(e).fold(PS,(function(e){return z.some(BD(D(D({},e),{onAction:function(t){e.onAction(t),n(e.value,e.meta)}}),i,o,{itemBehaviours:GE(e.meta,o),cardText:{matchText:t,highlightOn:a}}))}));case"autocompleteitem":default:return Ak(e).fold(PS,(function(e){return z.some(AD(e,t,s,"normal",n,i,o,u))}))}})))},FD=function(e,t,n,r,i){var o=NS(t),a=Ae(q(t,(function(e){var t=function(e){return i?!Ee(e,"text"):o},a=function(e){return LD(e,n,r,t(e),i)};return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?a(D(D({},e),{disabled:!0})):a(e)}))),s=i?IS:RS;return s(e,o,a,1,"normal")},jD=function(e){return Zx.singleData(e.value,e)},VD=function(e,t,n,r){var i=n===LT.ContentFocus?Ob():Sb(),o=hD(t,r),a=_S(r);return{dom:e.dom,components:e.components,items:e.items,value:e.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:o,fakeFocus:n===LT.ContentFocus,focusManager:i,menuBehaviours:sO.unnamedEvents("auto"!==t?[]:[Vs((function(e,t){iO(e,4,a.item).each((function(t){var n=t.numColumns,r=t.numRows;Dw.setGridSize(e,r,n)}))}))])}},HD=function(e,t){var n=id(),r=ia(!1),i=Ec(t_.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:hf([jw("dismissAutocompleter",[Ns(ps(),(function(){return u()}))])]),lazySink:t.getSink})),o=function(){return t_.isOpen(i)},a=function(){return n.get().isSome()},s=function(){a()&&t_.hide(i)},u=function(){if(a()){var t=n.get().map((function(e){return e.element}));ok(t.getOr(tt.fromDom(e.selection.getNode()))).each(zr),s(),n.clear(),r.set(!1)}},c=pt((function(){return Xk(e)})),l=function(n,i){var o=pe(i,(function(e){return z.from(e.columns)})).getOr(1);return re(i,(function(i){var a=i.items;return $D(a,i.matchText,(function(t,o){var a=e.selection.getRng();dk(e.dom,a,n).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(e){var n=e.range,a={hide:function(){u()},reload:function(e){s(),p(e)}};r.set(!0),i.onAction(a,n,t,o),r.set(!1)}))}),o,Zk.BUBBLE_TO_SANDBOX,t,i.highlightOn)}))},f=function(t){if(!a()){var i=ik(e,t.range);n.set({triggerChar:t.triggerChar,element:i,matchLength:t.text.length}),r.set(!1)}},d=function(t,n,r,o){t.matchLength=n.text.length;var a=pe(r,(function(e){return z.from(e.columns)})).getOr(1);t_.showAt(i,Fx.sketch(VD(RS("autocompleter-value",!0,o,a,"normal"),a,LT.ContentFocus,"normal")),{anchor:{type:"node",root:tt.fromDom(e.getBody()),node:z.from(t.element)}}),t_.getContent(i).each(rb.highlightFirst)},h=function(t){return n.get().map((function(n){return dk(e.dom,e.selection.getRng(),n.triggerChar).bind((function(n){return Sk(e,c,n,t)}))})).getOrThunk((function(){return kk(e,c)}))},p=function(e){h(e).fold(u,(function(e){f(e.context),e.lookupData.then((function(t){n.get().map((function(n){var r=e.context;if(n.triggerChar===r.triggerChar){var i=l(r.triggerChar,t);i.length>0?d(n,r,t,i):r.text.length-n.matchLength>=10?u():s()}}))}))}))},m=QC((function(e){27!==e.which&&p()}),50),v={onKeypress:m,cancelIfNecessary:u,isMenuOpen:o,isActive:a,isProcessingAction:r.get,getView:function(){return t_.getContent(i)}};!1===e.hasPlugin("rtc")&&pk.setup(v,e)},WD={register:HD},UD=function(e,t,n){return $c(e,t,n).isSome()},qD=function(e,t){var n=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n=setTimeout((function(){e.apply(null,r),n=null}),t)},i=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:i,schedule:r}},GD=5,KD=400,YD=function(e){var t=e.raw;return void 0===t.touches||1!==t.touches.length?z.none():z.some(t.touches[0])},XD=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>GD||r>GD},JD=function(e){var t=id(),n=ia(!1),r=qD((function(t){e.triggerEvent(is(),t),n.set(!0)}),KD),i=function(e){return YD(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.schedule(e),n.set(!1),t.set(o)})),z.none()},o=function(e){return r.cancel(),YD(e).each((function(e){t.on((function(n){XD(e,n)&&t.clear()}))})),z.none()},a=function(i){r.cancel();var o=function(e){return cn(e.target,i.target)};return t.get().filter(o).map((function(t){return n.get()?(i.prevent(),!1):e.triggerEvent(rs(),i)}))},s=pa([{key:Da(),value:i},{key:Ma(),value:o},{key:Aa(),value:a}]),u=function(e,t){return Oe(s,t).bind((function(t){return t(e)}))};return{fireIfReady:u}},ZD=function(e){var t=e.raw;return t.which===ib[0]&&!V(["input","textarea"],st(e.target))&&!UD(e.target,'[contenteditable="true"]')},QD=function(){return tn().browser.isFirefox()},eM=function(e,t){return QD()?sd(e,"focus",t):ad(e,"focusin",t)},tM=function(e,t){return QD()?sd(e,"blur",t):ad(e,"focusout",t)},nM=function(e,t){var n=D({stopBackspace:!0},t),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=JD(n),o=q(r.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return ad(e,t,(function(e){i.fireIfReady(e,t).each((function(t){t&&e.kill()}));var r=n.triggerEvent(t,e);r&&e.kill()}))})),a=id(),s=ad(e,"paste",(function(e){i.fireIfReady(e,"paste").each((function(t){t&&e.kill()}));var t=n.triggerEvent("paste",e);t&&e.kill(),a.set(setTimeout((function(){n.triggerEvent(Qa(),e)}),0))})),u=ad(e,"keydown",(function(e){var t=n.triggerEvent("keydown",e);t?e.kill():n.stopBackspace&&ZD(e)&&e.prevent()})),c=eM(e,(function(e){var t=n.triggerEvent("focusin",e);t&&e.kill()})),l=id(),f=tM(e,(function(e){var t=n.triggerEvent("focusout",e);t&&e.kill(),l.set(setTimeout((function(){n.triggerEvent(Za(),e)}),0))})),d=function(){G(o,(function(e){e.unbind()})),u.unbind(),c.unbind(),f.unbind(),s.unbind(),a.on(clearTimeout),l.on(clearTimeout)};return{unbind:d}},rM=function(e,t){var n=Oe(e,"target").getOr(t);return ia(n)},iM=function(e,t){var n=ia(!1),r=ia(!1),i=function(){n.set(!0)},o=function(){r.set(!0)};return{stop:i,cut:o,isStopped:n.get,isCut:r.get,event:e,setSource:t.set,getSource:t.get}},oM=function(e){var t=ia(!1),n=function(){t.set(!0)};return{stop:n,cut:v,isStopped:t.get,isCut:O,event:e,setSource:S("Cannot set source of a broadcasted event"),getSource:S("Cannot get source of a broadcasted event")}},aM=aa.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),sM=function(e,t,n,r,i,o){var a=e(t,r),s=iM(n,i);return a.fold((function(){return o.logEventNoHandlers(t,r),aM.complete()}),(function(e){var n=e.descHandler,r=Bu(n);return r(s),s.isStopped()?(o.logEventStopped(t,e.element,n.purpose),aM.stopped()):s.isCut()?(o.logEventCut(t,e.element,n.purpose),aM.complete()):gn(e.element).fold((function(){return o.logNoParent(t,e.element,n.purpose),aM.complete()}),(function(r){return o.logEventResponse(t,e.element,n.purpose),aM.resume(r)}))}))},uM=function(e,t,n,r,i,o){return sM(e,t,n,r,i,o).fold(E,(function(r){return uM(e,t,n,r,i,o)}),O)},cM=function(e,t,n,r,i){var o=rM(n,r);return sM(e,t,n,r,o,i)},lM=function(e,t,n){var r=oM(t);return G(e,(function(e){var t=e.descHandler,n=Bu(t);n(r)})),r.isStopped()},fM=function(e,t,n,r){return dM(e,t,n,n.target,r)},dM=function(e,t,n,r,i){var o=rM(n,r);return uM(e,t,n,r,o,i)},hM=function(e,t){return{element:e,descHandler:t}},pM=function(e,t){return{id:e,descHandler:t}},mM=function(){var e={},t=function(t,n,r){ge(r,(function(r,i){var o=void 0!==e[i]?e[i]:{};o[n]=zu(r,t),e[i]=o}))},n=function(e,t){return fu(t).bind((function(t){return Oe(e,t)})).map((function(e){return hM(t,e)}))},r=function(t){return Oe(e,t).map((function(e){return Ce(e,(function(e,t){return pM(t,e)}))})).getOr([])},i=function(t,r,i){return Oe(e,r).bind((function(e){return wa(i,(function(t){return n(e,t)}),t)}))},o=function(t){ge(e,(function(e,n){Ee(e,t)&&delete e[t]}))};return{registerId:t,unregisterId:o,filterByType:r,find:i}},vM=function(){var e=mM(),t={},n=function(e){var t=e.element;return fu(t).getOrThunk((function(){return cu("uid-",e.element)}))},r=function(e,n){var r=t[n];if(r!==e)throw new Error('The tagId "'+n+'" is already used by: '+Qs(r.element)+"\nCannot use it for: "+Qs(e.element)+"\nThe conflicting element is"+(zn(r.element)?" ":" not ")+"already in the DOM");o(e)},i=function(i){var o=n(i);Te(t,o)&&r(i,o);var a=[i];e.registerId(a,o,i.events),t[o]=i},o=function(n){fu(n.element).each((function(n){delete t[n],e.unregisterId(n)}))},a=function(t){return e.filterByType(t)},s=function(t,n,r){return e.find(t,n,r)},u=function(e){return Oe(t,e)};return{find:s,filter:a,register:i,unregister:o,getById:u}},gM=function(e){var t=e.dom,n=t.attributes,r=M(t,["attributes"]);return{uid:e.uid,dom:D({tag:"div",attributes:D({role:"presentation"},n)},r),components:e.components,behaviours:nv(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},bM=dg({name:"Container",factory:gM,configFields:[Ko("components",[]),tv("containerBehaviours",[]),Ko("events",{}),Ko("domModification",{}),Ko("eventOrder",{})]}),yM=function(e){var t=function(t){return gn(e.element).fold(E,(function(e){return cn(t,e)}))},n=vM(),r=function(e,r){return n.find(t,e,r)},i=nM(e.element,{triggerEvent:function(e,t){return Jc(e,t.target,(function(n){return fM(r,e,t,n)}))}}),o={debugInfo:w("real"),triggerEvent:function(e,t,n){Jc(e,t,(function(i){return dM(r,e,n,t,i)}))},triggerFocus:function(e,t){fu(e).fold((function(){Cf(e)}),(function(n){Jc(Ja(),e,(function(n){return cM(r,Ja(),{originator:t,kill:v,prevent:v,target:e},e,n),!1}))}))},triggerEscape:function(e,t){o.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return m(e)},getByDom:function(e){return g(e)},build:Ec,addToGui:function(e){u(e)},removeFromGui:function(e){c(e)},addToWorld:function(e){a(e)},removeFromWorld:function(e){s(e)},broadcast:function(e){d(e)},broadcastOn:function(e,t){h(e,t)},broadcastEvent:function(e,t){p(e,t)},isConnected:E},a=function(e){e.connect(o),ft(e.element)||(n.register(e),G(e.components(),a),o.triggerEvent(ss(),e.element,{target:e.element}))},s=function(e){ft(e.element)||(G(e.components(),s),n.unregister(e)),e.disconnect()},u=function(t){Wp(e,t)},c=function(e){Gp(e)},l=function(){i.unbind(),Rr(e.element)},f=function(e){var t=n.filter(es());G(t,(function(t){var n=t.descHandler,r=Bu(n);r(e)}))},d=function(e){f({universal:!0,data:e})},h=function(e,t){f({universal:!1,channels:e,data:t})},p=function(e,t){var r=n.filter(e);return lM(r,t)},m=function(e){return n.getById(e).fold((function(){return ri.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),ri.value)},g=function(e){var t=fu(e).getOr("not found");return m(t)};return a(e),{root:e,element:e.element,destroy:l,add:u,remove:c,getByUid:m,getByDom:g,addToWorld:a,removeFromWorld:s,broadcast:d,broadcastOn:h,broadcastEvent:p}},wM=function(e,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:q(e.items,t.interpreter)}},xM=w([Ko("prefix","form-field"),tv("fieldBehaviours",[bg,ev])]),_M=w([Rv({schema:[Do("dom")],name:"label"}),Rv({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Do("text")],name:"aria-descriptor"}),Pv({factory:{sketch:function(e){var t=da(e,["factory"]);return e.factory.sketch(t)}},schema:[Do("factory")],name:"field"})]),CM=function(e,t,n,r){var i=rv(e.fieldBehaviours,[bg.config({find:function(t){return Kv(t,e,"field")}}),ev.config({store:{mode:"manual",getValue:function(e){return bg.getCurrent(e).bind(ev.getValue)},setValue:function(e,t){bg.getCurrent(e).each((function(e){ev.setValue(e,t)}))}}})]),o=Ts([Vs((function(t,n){var r=Xv(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=iu(e.prefix);r.label().each((function(e){Fn(e.element,"for",n),Fn(t.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=iu(e.prefix);Fn(n.element,"id",r),Fn(t.element,"aria-describedby",r)}))}))}))]),a={getField:function(t){return Kv(t,e,"field")},getLabel:function(t){return Kv(t,e,"label")}};return{uid:e.uid,dom:e.dom,components:t,behaviours:i,events:o,apis:a}},kM=hg({name:"FormField",configFields:xM(),partFields:_M(),factory:CM,apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),SM=function(e,t){return Mu({attributes:pa([{key:t.tabAttr,value:"true"}])})},OM=Object.freeze({__proto__:null,exhibit:SM}),EM=[Ko("tabAttr","data-alloy-tabstop")],TM=mf({fields:EM,name:"tabstopping",active:OM}),DM=tinymce.util.Tools.resolve("tinymce.html.Entities"),MM=function(e,t,n,r){var i=NM(e,t,n,r);return kM.sketch(i)},AM=function(e,t){return MM(e,t,[],[])},NM=function(e,t,n,r){return{dom:IM(n),components:e.toArray().concat([t]),fieldBehaviours:hf(r)}},PM=function(){return IM([])},IM=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},RM=function(e,t){return kM.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})},zM=iu("form-component-change"),BM=iu("form-close"),LM=iu("form-cancel"),$M=iu("form-action"),FM=iu("form-submit"),jM=iu("form-block"),VM=iu("form-unblock"),HM=iu("form-tabchange"),WM=iu("form-resize"),UM=function(e,t){var n,r=e.label.map((function(e){return RM(e,t)})),i=function(e){return function(t,n){$c(n.event.target,"[data-collection-item-value]").each((function(r){e(t,n,r,Vn(r,"data-collection-item-value"))}))}},o=function(n,r){var i=q(r,(function(n){var r=IC.translate(n.text),i=1===e.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",o='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},s=r.replace(/\_| \- |\-/g,(function(e){return a[e]})),u=t.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+u+'" tabindex="-1" data-collection-item-value="'+DM.encodeAllRaw(n.value)+'" title="'+s+'" aria-label="'+s+'">'+o+i+"</div>"})),o="auto"!==e.columns&&e.columns>1?U(i,e.columns):[i],a=q(o,(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));Ks(n.element,a.join(""))},a=i((function(n,r,i,o){r.stop(),t.isDisabled()||Cs(n,$M,{name:e.name,value:o})})),s=[Ns(Ba(),i((function(e,t,n){Cf(n)}))),Ns(Wa(),a),Ns(rs(),a),Ns(La(),i((function(e,t,n){Lc(e.element,"."+lS).each((function(e){sc(e,lS)})),oc(n,lS)}))),Ns($a(),i((function(e){Lc(e.element,"."+lS).each((function(e){sc(e,lS)}))}))),Us(i((function(t,n,r,i){Cs(t,$M,{name:e.name,value:i})})))],u=function(e,t){return q(Yh(e.element,".tox-collection__item"),t)},c=kM.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:x},behaviours:hf([Bg.config({disabled:t.isDisabled,onDisabled:function(e){u(e,(function(e){oc(e,"tox-collection__item--state-disabled"),Fn(e,"aria-disabled",!0)}))},onEnabled:function(e){u(e,(function(e){sc(e,"tox-collection__item--state-disabled"),Un(e,"aria-disabled")}))}}),gE(),$w.config({}),ev.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,n){o(t,n),"auto"===e.columns&&iO(t,5,"tox-collection__item").each((function(e){var n=e.numRows,r=e.numColumns;Dw.setGridSize(t,n,r)})),_s(t,WM)}}),TM.config({}),Dw.config(pD(e.columns,"normal")),jw("collection-events",s)]),eventOrder:(n={},n[ts()]=["disabling","alloy.base.behaviour","collection-events"],n)}),l=["tox-form__group--collection"];return MM(r,c,l,[])},qM=w([Fo("data"),Ko("inputAttributes",{}),Ko("inputStyles",{}),Ko("tag","input"),Ko("inputClasses",[]),sl("onSetValue"),Ko("styles",{}),Ko("eventOrder",{}),tv("inputBehaviours",[ev,Xw]),Ko("selectOnFocus",!0)]),GM=function(e){return hf([Xw.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=dc(t);t.dom.setSelectionRange(0,n.length)}:v})])},KM=function(e){return D(D({},GM(e)),rv(e.inputBehaviours,[ev.config({store:D(D({mode:"manual"},e.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return dc(e.element)},setValue:function(e,t){var n=dc(e.element);n!==t&&hc(e.element,t)}}),onSetValue:e.onSetValue})]))},YM=function(e){return{tag:e.tag,attributes:D({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}},XM=function(e,t){return{uid:e.uid,dom:YM(e),components:[],behaviours:KM(e),eventOrder:e.eventOrder}},JM=dg({name:"Input",configFields:qM(),factory:XM}),ZM={},QM={exports:ZM};(function(t,n,r,i){(function(e,i){"object"===typeof n&&"undefined"!==typeof r?r.exports=i():"function"===typeof t&&t.amd?t(i):(e="undefined"!==typeof globalThis?globalThis:e||self,e.EphoxContactWrapper=i())})(this,(function(){var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},n={exports:{}};(function(e){(function(t){var n=setTimeout;function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(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=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void u(t.promise,i)}s(t.promise,r)}else(1===e._state?s:u)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void c(e);if("function"===typeof n)return void f(i(n,t),e)}e._state=1,e._value=t,c(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(u){n(u)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},e.exports?e.exports=o:t.Promise||(t.Promise=o)})(t)})(n);var r=n.exports,i=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),o={boltExport:i.Promise||r};return o}))})(void 0,ZM,QM);var eA,tA=QM.exports.boltExport,nA=function(e){var t=z.none(),n=[],r=function(e){return nA((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?u(e):n.push(e)},o=function(e){a()||(t=z.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){G(e,u)},u=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},rA=function(e){return nA((function(t){t(e)}))},iA={nu:nA,pure:rA},oA=function(e){setTimeout((function(){throw e}),0)},aA=function(e){var t=function(t){e().then(t,oA)},n=function(t){return aA((function(){return e().then(t)}))},r=function(t){return aA((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return aA((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return iA.nu(t)},a=function(){var t=null;return aA((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},sA=function(e){return aA((function(){return new tA(e)}))},uA=function(e){return aA((function(){return tA.resolve(e)}))},cA={nu:sA,pure:uA},lA=["input","textarea"],fA=function(e){var t=st(e);return V(lA,t)},dA=function(e,t){var n=t.getRoot(e).getOr(e.element);sc(n,t.invalidClass),t.notify.each((function(t){fA(e.element)&&Fn(e.element,"aria-invalid",!1),t.getContainer(e).each((function(e){Ks(e,t.validHtml)})),t.onValid(e)}))},hA=function(e,t,n,r){var i=t.getRoot(e).getOr(e.element);oc(i,t.invalidClass),t.notify.each((function(t){fA(e.element)&&Fn(e.element,"aria-invalid",!0),t.getContainer(e).each((function(e){Ks(e,r)})),t.onInvalid(e,r)}))},pA=function(e,t,n){return t.validator.fold((function(){return cA.pure(ri.value(!0))}),(function(t){return t.validate(e)}))},mA=function(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),pA(e,t).map((function(r){return e.getSystem().isConnected()?r.fold((function(r){return hA(e,t,n,r),ri.error(r)}),(function(n){return dA(e,t),ri.value(n)})):ri.error("No longer in system")}))},vA=function(e,t){var n=t.getRoot(e).getOr(e.element);return uc(n,t.invalidClass)},gA=Object.freeze({__proto__:null,markValid:dA,markInvalid:hA,query:pA,run:mA,isInvalid:vA}),bA=function(e,t){return e.validator.map((function(n){return Ts([Ns(n.onEvent,(function(n){mA(n,e,t).get(x)}))].concat(n.validateOnLoad?[Vs((function(n){mA(n,e,t).get(v)}))]:[]))})).getOr({})},yA=Object.freeze({__proto__:null,events:bA}),wA=[Do("invalidClass"),Ko("getRoot",z.none),qo("notify",[Ko("aria","alert"),Ko("getContainer",z.none),Ko("validHtml",""),sl("onValid"),sl("onInvalid"),sl("onValidate")]),qo("validator",[Do("validate"),Ko("onEvent","input"),Ko("validateOnLoad",!0)])],xA=mf({fields:wA,name:"invalidating",active:yA,apis:gA,extra:{validation:function(e){return function(t){var n=ev.getValue(t);return cA.pure(e(n))}}}}),_A=function(e,t,n,r){return n.getOrCreate(e,t,r)},CA=Object.freeze({__proto__:null,getCoupled:_A}),kA=[Mo("others",bo(ri.value,oo()))],SA=function(){var e={},t=function(t,n,r){var i=me(n.others);if(i)return Oe(e,r).getOrThunk((function(){var i=Oe(n.others,r).getOrDie("No information found for coupled component: "+r),o=i(t),a=t.getSystem().build(o);return e[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(i,null,2))},n=w({});return Su({readState:n,getOrCreate:t})},OA=Object.freeze({__proto__:null,init:SA}),EA=mf({fields:kA,name:"coupling",apis:CA,state:OA}),TA=w("sink"),DA=w(Rv({name:TA(),overrides:w({dom:{tag:"div"},behaviours:hf([Lp.config({useFixed:E})]),events:Ts([$s(Fa()),$s(Pa()),$s(Wa())])})}));(function(e){e[e["HighlightFirst"]=0]="HighlightFirst",e[e["HighlightNone"]=1]="HighlightNone"})(eA||(eA={}));var MA,AA=function(e,t){var n=e.getHotspot(t).getOr(t),r="hotspot",i=e.getAnchorOverrides();return e.layouts.fold((function(){return{type:r,hotspot:n,overrides:i}}),(function(e){return{type:r,hotspot:n,overrides:i,layouts:e}}))},NA=function(e,t,n){var r=e.fetch;return r(n).map(t)},PA=function(e,t,n,r,i,o,a){var s=NA(e,t,r),u=LA(r,e);return s.map((function(e){return e.bind((function(e){return z.from(Zx.sketch(D(D({},o.menu()),{uid:du(""),data:e,highlightImmediately:a===eA.HighlightFirst,onOpenMenu:function(e,t){var r=u().getOrDie();Lp.position(r,t,{anchor:n}),bm.decloak(i)},onOpenSubmenu:function(e,t,n){var r=u().getOrDie();Lp.position(r,n,{anchor:{type:"submenu",item:t}}),bm.decloak(i)},onRepositionMenu:function(e,t,r){var i=u().getOrDie();Lp.position(i,t,{anchor:n}),G(r,(function(e){Lp.position(i,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})}))},onEscape:function(){return Xw.focus(r),bm.close(i),z.some(!0)}})))}))}))},IA=function(e,t,n,r,i,o,a){var s=AA(e,n),u=PA(e,t,s,n,r,i,a);return u.map((function(e){return e.fold((function(){bm.isOpen(r)&&bm.close(r)}),(function(e){bm.cloak(r),bm.open(r,e),o(r)})),r}))},RA=function(e,t,n,r,i,o,a){return bm.close(r),cA.pure(r)},zA=function(e,t,n,r,i,o){var a=EA.getCoupled(n,"sandbox"),s=bm.isOpen(a),u=s?RA:IA;return u(e,t,n,a,r,i,o)},BA=function(e,t,n){var r=bg.getCurrent(t).getOr(t),i=gr(e.element);n?Kn(r.element,"min-width",i+"px"):vr(r.element,i)},LA=function(e,t){return e.getSystem().getByUid(t.uid+"-"+TA()).map((function(e){return function(){return ri.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return ri.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},$A=function(e){bm.getState(e).each((function(e){Zx.repositionMenus(e)}))},FA=function(e,t,n){var r=jc(),i=function(i,o){var a=AA(e,t);r.link(t.element),e.matchWidth&&BA(a.hotspot,o,e.useMinWidth),e.onOpen(a,i,o),void 0!==n&&void 0!==n.onOpen&&n.onOpen(i,o)},o=function(e,i){r.unlink(t.element),void 0!==n&&void 0!==n.onClose&&n.onClose(e,i)},a=LA(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:iv.augment(e.sandboxBehaviours,[ev.config({store:{mode:"memory",initialValue:t}}),bm.config({onOpen:i,onClose:o,isPartOf:function(e,n,r){return Hc(n,r)||Hc(t,r)},getAttachPoint:function(){return a().getOrDie()}}),bg.config({find:function(e){return bm.getState(e).bind((function(e){return bg.getCurrent(e)}))}}),yf.config({channels:D(D({},Cm({isExtraPart:O})),Sm({doReposition:$A}))})])}},jA=function(e){var t=EA.getCoupled(e,"sandbox");$A(t)},VA=function(){return[Ko("sandboxClasses",[]),iv.field("sandboxBehaviours",[bg,yf,bm,ev])]},HA=w([Do("dom"),Do("fetch"),sl("onOpen"),ul("onExecute"),Ko("getHotspot",z.some),Ko("getAnchorOverrides",w({})),$d(),tv("dropdownBehaviours",[mx,EA,Dw,Xw]),Do("toggleClass"),Ko("eventOrder",{}),Fo("lazySink"),Ko("matchWidth",!1),Ko("useMinWidth",!1),Fo("role")].concat(VA())),WA=w([Iv({schema:[il()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),DA()]),UA=function(e,t,n,r){var i,o=function(t){return Oe(e.dom,"attributes").bind((function(e){return Oe(e,t)}))},a=function(e){bm.getState(e).each((function(e){Zx.highlightPrimary(e)}))},s=function(t){var n=a;zA(e,x,t,r,n,eA.HighlightFirst).get(v)},u={expand:function(t){mx.isOn(t)||zA(e,x,t,r,v,eA.HighlightNone).get(v)},open:function(t){mx.isOn(t)||zA(e,x,t,r,v,eA.HighlightFirst).get(v)},isOpen:mx.isOn,close:function(t){mx.isOn(t)&&zA(e,x,t,r,v,eA.HighlightFirst).get(v)},repositionMenus:function(e){mx.isOn(e)&&jA(e)}},c=function(e,t){return ks(e),z.some(!0)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rv(e.dropdownBehaviours,[mx.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),EA.config({others:{sandbox:function(t){return FA(e,t,{onOpen:function(){return mx.on(t)},onClose:function(){return mx.off(t)}})}}}),Dw.config({mode:"special",onSpace:c,onEnter:c,onDown:function(e,t){if(qA.isOpen(e)){var n=EA.getCoupled(e,"sandbox");a(n)}else qA.open(e);return z.some(!0)},onEscape:function(e,t){return qA.isOpen(e)?(qA.close(e),z.some(!0)):z.none()}}),Xw.config({})]),events:gx(z.some(s)),eventOrder:D(D({},e.eventOrder),(i={},i[ts()]=["disabling","toggling","alloy.base.behaviour"],i)),apis:u,domModification:{attributes:D(D({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:o("type").getOr("button")}:{})}}},qA=hg({name:"Dropdown",configFields:HA(),partFields:WA(),factory:UA,apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),GA=function(){return Mu({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},KA=function(){return Ts([Ds(Ka(),E)])},YA=Object.freeze({__proto__:null,events:KA,exhibit:GA}),XA=mf({fields:[],name:"unselecting",active:YA}),JA=function(e,t){return qA.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:hf([_E.button(t.providers.isDisabled),gE(),XA.config({}),TM.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(n){return cA.nu((function(t){return e.fetch(t)})).map((function(r){return z.from(jD(xi(fD(iu("menu-value"),r,(function(t){e.onItemAction(n,t)}),e.columns,e.presets,Zk.CLOSE_ON_EXECUTE,O,t.providers),{movement:hD(e.columns,e.presets)})))}))},parts:{menu:SS(!1,1,e.presets)}})},ZA=iu("color-input-change"),QA=iu("color-swatch-change"),eN=iu("color-picker-cancel"),tN=function(e,t,n){var r=kM.parts.field({factory:JM,inputClasses:["tox-textfield"],onSetValue:function(e){return xA.run(e).get(v)},inputBehaviours:hf([Bg.config({disabled:t.providers.isDisabled}),gE(),TM.config({}),xA.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return gn(e.element)},notify:{onValid:function(e){var t=ev.getValue(e);Cs(e,ZA,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=ev.getValue(e);if(0===t.length)return cA.pure(ri.value(!0));var n=tt.fromTag("span");Kn(n,"background-color",t);var r=Qn(n,"background-color").fold((function(){return ri.error("blah")}),(function(e){return ri.value(t)}));return cA.pure(r)}}})]),selectOnFocus:!1}),i=e.label.map((function(e){return RM(e,t.providers)})),o=function(e,t){Cs(e,QA,{value:t})},a=function(e,t){s.getOpt(e).each((function(e){"custom"===t?n.colorPicker((function(t){t.fold((function(){return _s(e,eN)}),(function(t){o(e,t),KT(t)}))}),"#ffffff"):o(e,"remove"===t?"":t)}))},s=E_(JA({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[Vl,jl,ql]},onLtr:function(){return[jl,Vl,ql]}},components:[],fetch:oD(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},t));return kM.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:i.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,s.asSpec()]}]),fieldBehaviours:hf([jw("form-field-events",[Ns(ZA,(function(t,n){s.getOpt(t).each((function(e){Kn(e.element,"background-color",n.event.color)})),Cs(t,zM,{name:e.name})})),Ns(QA,(function(e,t){kM.getField(e).each((function(n){ev.setValue(n,t.event.value),bg.getCurrent(e).each(Xw.focus)}))})),Ns(eN,(function(e,t){kM.getField(e).each((function(t){bg.getCurrent(e).each(Xw.focus)}))}))])])})},nN=Rv({schema:[Do("dom")],name:"label"}),rN=function(e){return Rv({name:e+"-edge",overrides:function(t){var n=t.model.manager.edgeActions[e];return n.fold((function(){return{}}),(function(e){return{events:Ts([Ps(Da(),(function(t,n,r){return e(t,r)}),[t]),Ps(Pa(),(function(t,n,r){return e(t,r)}),[t]),Ps(Ia(),(function(t,n,r){r.mouseIsDown.get()&&e(t,r)}),[t])])}}))}})},iN=rN("top-left"),oN=rN("top"),aN=rN("top-right"),sN=rN("right"),uN=rN("bottom-right"),cN=rN("bottom"),lN=rN("bottom-left"),fN=rN("left"),dN=Pv({name:"thumb",defaults:w({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:Ts([Bs(Da(),e,"spectrum"),Bs(Ma(),e,"spectrum"),Bs(Aa(),e,"spectrum"),Bs(Pa(),e,"spectrum"),Bs(Ia(),e,"spectrum"),Bs(za(),e,"spectrum")])}}}),hN=Pv({schema:[Eo("mouseIsDown",(function(){return ia(!1)}))],name:"spectrum",overrides:function(e){var t=e.model,n=t.manager,r=function(t,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(t,e,r)}))};return{behaviours:hf([Dw.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),Xw.config({})]),events:Ts([Ns(Da(),r),Ns(Ma(),r),Ns(Pa(),r),Ns(Ia(),(function(t,n){e.mouseIsDown.get()&&r(t,n)}))])}}}),pN=[nN,fN,sN,oN,cN,iN,aN,lN,uN,dN,hN],mN="slider.change.value",vN=w(mN),gN=function(e){return-1!==e.type.indexOf("touch")},bN=function(e){var t=e.event.raw;if(gN(t)){var n=t;return void 0!==n.touches&&1===n.touches.length?z.some(n.touches[0]).map((function(e){return lr(e.clientX,e.clientY)})):z.none()}var r=t;return void 0!==r.clientX?z.some(r).map((function(e){return lr(e.clientX,e.clientY)})):z.none()},yN="top",wN="right",xN="bottom",_N="left",CN=function(e){return e.model.minX},kN=function(e){return e.model.minY},SN=function(e){return e.model.minX-1},ON=function(e){return e.model.minY-1},EN=function(e){return e.model.maxX},TN=function(e){return e.model.maxY},DN=function(e){return e.model.maxX+1},MN=function(e){return e.model.maxY+1},AN=function(e,t,n){return t(e)-n(e)},NN=function(e){return AN(e,EN,CN)},PN=function(e){return AN(e,TN,kN)},IN=function(e){return NN(e)/2},RN=function(e){return PN(e)/2},zN=function(e){return e.stepSize},BN=function(e){return e.snapToGrid},LN=function(e){return e.snapStart},$N=function(e){return e.rounded},FN=function(e,t){return void 0!==e[t+"-edge"]},jN=function(e){return FN(e,_N)},VN=function(e){return FN(e,wN)},HN=function(e){return FN(e,yN)},WN=function(e){return FN(e,xN)},UN=function(e){return e.model.value.get()},qN=function(e){return{x:e}},GN=function(e){return{y:e}},KN=function(e,t){return{x:e,y:t}},YN=function(e,t){Cs(e,vN(),{value:t})},XN=function(e,t){YN(e,KN(SN(t),ON(t)))},JN=function(e,t){YN(e,GN(ON(t)))},ZN=function(e,t){YN(e,KN(IN(t),ON(t)))},QN=function(e,t){YN(e,KN(DN(t),ON(t)))},eP=function(e,t){YN(e,qN(DN(t)))},tP=function(e,t){YN(e,KN(DN(t),RN(t)))},nP=function(e,t){YN(e,KN(DN(t),MN(t)))},rP=function(e,t){YN(e,GN(MN(t)))},iP=function(e,t){YN(e,KN(IN(t),MN(t)))},oP=function(e,t){YN(e,KN(SN(t),MN(t)))},aP=function(e,t){YN(e,qN(SN(t)))},sP=function(e,t){YN(e,KN(SN(t),RN(t)))},uP=function(e,t,n,r){return e<t?e:e>n?n:e===t?t-1:Math.max(t,e-r)},cP=function(e,t,n,r){return e>n?e:e<t?t:e===n?n+1:Math.min(n,e+r)},lP=function(e,t,n){return Math.max(t,Math.min(n,e))},fP=function(e,t,n,r,i){return i.fold((function(){var i=e-t,o=Math.round(i/r)*r;return lP(t+o,t-1,n+1)}),(function(t){var i=(e-t)%r,o=Math.round(i/r),a=Math.floor((e-t)/r),s=Math.floor((n-t)/r),u=Math.min(s,a+o),c=t+u*r;return Math.max(t,c)}))},dP=function(e,t,n){return Math.min(n,Math.max(e,t))-t},hP=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.step,a=e.snap,s=e.snapStart,u=e.rounded,c=e.hasMinEdge,l=e.hasMaxEdge,f=e.minBound,d=e.maxBound,h=e.screenRange,p=c?t-1:t,m=l?n+1:n;if(i<f)return p;if(i>d)return m;var v=dP(i,f,d),g=lP(v/h*r+t,p,m);return a&&g>=t&&g<=n?fP(g,t,n,o,s):u?Math.round(g):g},pP=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.hasMinEdge,a=e.hasMaxEdge,s=e.maxBound,u=e.maxOffset,c=e.centerMinEdge,l=e.centerMaxEdge;return i<t?o?0:c:i>n?a?s:l:(i-t)/r*u},mP="top",vP="right",gP="bottom",bP="left",yP="width",wP="height",xP=function(e){return e.element.dom.getBoundingClientRect()},_P=function(e,t){return e[t]},CP=function(e){var t=xP(e);return _P(t,bP)},kP=function(e){var t=xP(e);return _P(t,vP)},SP=function(e){var t=xP(e);return _P(t,mP)},OP=function(e){var t=xP(e);return _P(t,gP)},EP=function(e){var t=xP(e);return _P(t,yP)},TP=function(e){var t=xP(e);return _P(t,wP)},DP=function(e,t,n){return(e+t)/2-n},MP=function(e,t){var n=xP(e),r=xP(t),i=_P(n,bP),o=_P(n,vP),a=_P(r,bP);return DP(i,o,a)},AP=function(e,t){var n=xP(e),r=xP(t),i=_P(n,mP),o=_P(n,gP),a=_P(r,mP);return DP(i,o,a)},NP=function(e,t){Cs(e,vN(),{value:t})},PP=function(e){return{x:e}},IP=function(e,t,n){var r={min:CN(t),max:EN(t),range:NN(t),value:n,step:zN(t),snap:BN(t),snapStart:LN(t),rounded:$N(t),hasMinEdge:jN(t),hasMaxEdge:VN(t),minBound:CP(e),maxBound:kP(e),screenRange:EP(e)};return hP(r)},RP=function(e,t,n){var r=IP(e,t,n),i=PP(r);return NP(e,i),r},zP=function(e,t){var n=CN(t);NP(e,PP(n))},BP=function(e,t){var n=EN(t);NP(e,PP(n))},LP=function(e,t,n){var r=e>0?cP:uP,i=r(UN(n).x,CN(n),EN(n),zN(n));return NP(t,PP(i)),z.some(i)},$P=function(e){return function(t,n){return LP(e,t,n).map(E)}},FP=function(e){var t=bN(e);return t.map((function(e){return e.left}))},jP=function(e,t,n,r,i){var o=0,a=EP(e),s=r.bind((function(t){return z.some(MP(t,e))})).getOr(o),u=i.bind((function(t){return z.some(MP(t,e))})).getOr(a),c={min:CN(t),max:EN(t),range:NN(t),value:n,hasMinEdge:jN(t),hasMaxEdge:VN(t),minBound:CP(e),minOffset:o,maxBound:kP(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:u};return pP(c)},VP=function(e,t,n,r,i,o){var a=jP(t,o,n,r,i);return CP(t)-CP(e)+a},HP=function(e,t,n,r){var i=UN(n),o=VP(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=gr(t.element)/2;Kn(t.element,"left",o-a+"px")},WP=$P(-1),UP=$P(1),qP=z.none,GP=z.none,KP={"top-left":z.none(),top:z.none(),"top-right":z.none(),right:z.some(eP),"bottom-right":z.none(),bottom:z.none(),"bottom-left":z.none(),left:z.some(aP)},YP=Object.freeze({__proto__:null,setValueFrom:RP,setToMin:zP,setToMax:BP,findValueOfOffset:IP,getValueFromEvent:FP,findPositionOfValue:VP,setPositionFromValue:HP,onLeft:WP,onRight:UP,onUp:qP,onDown:GP,edgeActions:KP}),XP=function(e,t){Cs(e,vN(),{value:t})},JP=function(e){return{y:e}},ZP=function(e,t,n){var r={min:kN(t),max:TN(t),range:PN(t),value:n,step:zN(t),snap:BN(t),snapStart:LN(t),rounded:$N(t),hasMinEdge:HN(t),hasMaxEdge:WN(t),minBound:SP(e),maxBound:OP(e),screenRange:TP(e)};return hP(r)},QP=function(e,t,n){var r=ZP(e,t,n),i=JP(r);return XP(e,i),r},eI=function(e,t){var n=kN(t);XP(e,JP(n))},tI=function(e,t){var n=TN(t);XP(e,JP(n))},nI=function(e,t,n){var r=e>0?cP:uP,i=r(UN(n).y,kN(n),TN(n),zN(n));return XP(t,JP(i)),z.some(i)},rI=function(e){return function(t,n){return nI(e,t,n).map(E)}},iI=function(e){var t=bN(e);return t.map((function(e){return e.top}))},oI=function(e,t,n,r,i){var o=0,a=TP(e),s=r.bind((function(t){return z.some(AP(t,e))})).getOr(o),u=i.bind((function(t){return z.some(AP(t,e))})).getOr(a),c={min:kN(t),max:TN(t),range:PN(t),value:n,hasMinEdge:HN(t),hasMaxEdge:WN(t),minBound:SP(e),minOffset:o,maxBound:OP(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:u};return pP(c)},aI=function(e,t,n,r,i,o){var a=oI(t,o,n,r,i);return SP(t)-SP(e)+a},sI=function(e,t,n,r){var i=UN(n),o=aI(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),a=ar(t.element)/2;Kn(t.element,"top",o-a+"px")},uI=z.none,cI=z.none,lI=rI(-1),fI=rI(1),dI={"top-left":z.none(),top:z.some(JN),"top-right":z.none(),right:z.none(),"bottom-right":z.none(),bottom:z.some(rP),"bottom-left":z.none(),left:z.none()},hI=Object.freeze({__proto__:null,setValueFrom:QP,setToMin:eI,setToMax:tI,findValueOfOffset:ZP,getValueFromEvent:iI,findPositionOfValue:aI,setPositionFromValue:sI,onLeft:uI,onRight:cI,onUp:lI,onDown:fI,edgeActions:dI}),pI=function(e,t){Cs(e,vN(),{value:t})},mI=function(e,t){return{x:e,y:t}},vI=function(e,t,n){var r=IP(e,t,n.left),i=ZP(e,t,n.top),o=mI(r,i);return pI(e,o),o},gI=function(e,t,n,r){var i=e>0?cP:uP,o=t?UN(r).x:i(UN(r).x,CN(r),EN(r),zN(r)),a=t?i(UN(r).y,kN(r),TN(r),zN(r)):UN(r).y;return pI(n,mI(o,a)),z.some(o)},bI=function(e,t){return function(n,r){return gI(e,t,n,r).map(E)}},yI=function(e,t){var n=CN(t),r=kN(t);pI(e,mI(n,r))},wI=function(e,t){var n=EN(t),r=TN(t);pI(e,mI(n,r))},xI=function(e){return bN(e)},_I=function(e,t,n,r){var i=UN(n),o=VP(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=aI(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),s=gr(t.element)/2,u=ar(t.element)/2;Kn(t.element,"left",o-s+"px"),Kn(t.element,"top",a-u+"px")},CI=bI(-1,!1),kI=bI(1,!1),SI=bI(-1,!0),OI=bI(1,!0),EI={"top-left":z.some(XN),top:z.some(ZN),"top-right":z.some(QN),right:z.some(tP),"bottom-right":z.some(nP),bottom:z.some(iP),"bottom-left":z.some(oP),left:z.some(sP)},TI=Object.freeze({__proto__:null,setValueFrom:vI,setToMin:yI,setToMax:wI,getValueFromEvent:xI,setPositionFromValue:_I,onLeft:CI,onRight:kI,onUp:SI,onDown:OI,edgeActions:EI}),DI=[Ko("stepSize",1),Ko("onChange",v),Ko("onChoose",v),Ko("onInit",v),Ko("onDragStart",v),Ko("onDragEnd",v),Ko("snapToGrid",!1),Ko("rounded",!0),Fo("snapStart"),Mo("model",ko("mode",{x:[Ko("minX",0),Ko("maxX",100),Eo("value",(function(e){return ia(e.mode.minX)})),Do("getInitialValue"),fl("manager",YP)],y:[Ko("minY",0),Ko("maxY",100),Eo("value",(function(e){return ia(e.mode.minY)})),Do("getInitialValue"),fl("manager",hI)],xy:[Ko("minX",0),Ko("maxX",100),Ko("minY",0),Ko("maxY",100),Eo("value",(function(e){return ia({x:e.mode.minX,y:e.mode.minY})})),Do("getInitialValue"),fl("manager",TI)]})),tv("sliderBehaviours",[Dw,ev]),Eo("mouseIsDown",(function(){return ia(!1)}))],MI=function(e,t,n,r){var i,o=function(t){return Yv(t,e,"thumb")},a=function(t){return Yv(t,e,"spectrum")},s=function(t){return Kv(t,e,"left-edge")},u=function(t){return Kv(t,e,"right-edge")},c=function(t){return Kv(t,e,"top-edge")},l=function(t){return Kv(t,e,"bottom-edge")},f=e.model,d=f.manager,h=function(t,n){d.setPositionFromValue(t,n,e,{getLeftEdge:s,getRightEdge:u,getTopEdge:c,getBottomEdge:l,getSpectrum:a})},p=function(e,t){f.value.set(t);var n=o(e);h(e,n)},m=function(t,n){p(t,n);var r=o(t);return e.onChange(t,r,n),z.some(!0)},v=function(t){d.setToMin(t,e)},g=function(t){d.setToMax(t,e)},b=function(t){var n=function(){Kv(t,e,"thumb").each((function(n){var r=f.value.get();e.onChoose(t,n,r)}))},r=e.mouseIsDown.get();e.mouseIsDown.set(!1),r&&n()},y=function(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,o(t))},w=function(t,n){n.stop(),e.onDragEnd(t,o(t)),b(t)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rv(e.sliderBehaviours,[Dw.config({mode:"special",focusIn:function(t){return Kv(t,e,"spectrum").map(Dw.focusIn).map(E)}}),ev.config({store:{mode:"manual",getValue:function(e){return f.value.get()}}}),yf.config({channels:(i={},i[xm()]={onReceive:b},i)})]),events:Ts([Ns(vN(),(function(e,t){m(e,t.event.value)})),Vs((function(t,n){var r=f.getInitialValue();f.value.set(r);var i=o(t);h(t,i);var s=a(t);e.onInit(t,i,s,f.value.get())})),Ns(Da(),y),Ns(Aa(),w),Ns(Pa(),y),Ns(za(),w)]),apis:{resetToMin:v,resetToMax:g,setValue:p,refresh:h},domModification:{styles:{position:"relative"}}}},AI=hg({name:"Slider",configFields:DI,partFields:pN,factory:MI,apis:{setValue:function(e,t,n){e.setValue(t,n)},resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),NI=iu("rgb-hex-update"),PI=iu("slider-update"),II=iu("palette-update"),RI=function(e,t){var n=AI.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=AI.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return AI.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:w({y:0})},components:[n,r],sliderBehaviours:hf([Xw.config({})]),onChange:function(e,t,n){Cs(e,PI,{value:n})}})},zI="form",BI=[tv("formBehaviours",[ev])],LI=function(e){return"<alloy.field."+e+">"},$I=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Hv(zI,LI(t),n)};return{field:t,record:w(e)}}(),n=e(t),r=t.record(),i=q(r,(function(e){return Pv({name:e,pname:LI(e)})}));return ag(zI,BI,i,jI,n)},FI=function(e,t){return e.fold((function(){return ri.error(t)}),ri.value)},jI=function(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:rv(e.formBehaviours,[ev.config({store:{mode:"manual",getValue:function(t){var n=Jv(t,e);return be(n,(function(e,t){return e().bind((function(e){var n=bg.getCurrent(e);return FI(n,new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+Qs(e.element)))})).map(ev.getValue)}))},setValue:function(t,n){ge(n,(function(n,r){Kv(t,e,r).each((function(e){bg.getCurrent(e).each((function(e){ev.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return Kv(t,e,n).bind(bg.getCurrent)}}}},VI={getField:Cu((function(e,t,n){return e.getField(t,n)})),sketch:$I},HI=iu("valid-input"),WI=iu("invalid-input"),UI=iu("validating-input"),qI="colorcustom.rgb.",GI=function(e,t,n,r){var i=function(n,r){return xA.config({invalidClass:t("invalid"),notify:{onValidate:function(e){Cs(e,UI,{type:n})},onValid:function(e){Cs(e,HI,{type:n,value:ev.getValue(e)})},onInvalid:function(e){Cs(e,WI,{type:n,value:ev.getValue(e)})}},validator:{validate:function(t){var n=ev.getValue(t),i=r(n)?ri.value(!0):ri.error(e("aria.input.invalid"));return cA.pure(i)},validateOnLoad:!1}})},o=function(n,r,o,a,s){var u=e(qI+"range"),c=kM.parts.label({dom:{tag:"label",innerHtml:o,attributes:{"aria-label":a}}}),l=kM.parts.field({data:s,factory:JM,inputAttributes:D({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:hf([i(r,n),TM.config({})]),onSetValue:function(e){if(xA.isInvalid(e)){var t=xA.run(e);t.get(v)}}}),f=[c,l],d="hex"!==r?[kM.parts["aria-descriptor"]({text:u})]:[],h=f.concat(d);return{dom:{tag:"div",attributes:{role:"presentation"}},components:h}},a=function(e,t){var n=lT(t);return VI.getField(e,"hex").each((function(t){Xw.isFocused(t)||ev.setValue(e,{hex:n.value})})),n},s=function(e,t){var n=t.red,r=t.green,i=t.blue;ev.setValue(e,{red:n,green:r,blue:i})},u=E_({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),c=function(e,t){u.getOpt(e).each((function(e){Kn(e.element,"background-color","#"+t.value)}))},l=function(){var i={red:ia(z.some(255)),green:ia(z.some(255)),blue:ia(z.some(255)),hex:ia(z.some("ffffff"))},l=function(e,t){var n=yT(t);s(e,n),p(n)},f=function(e){return i[e].get()},d=function(e,t){i[e].set(t)},h=function(){return f("red").bind((function(e){return f("green").bind((function(t){return f("blue").map((function(n){return vT(e,t,n,1)}))}))}))},p=function(e){var t=e.red,n=e.green,r=e.blue;d("red",z.some(t)),d("green",z.some(n)),d("blue",z.some(r))},m=function(e,t){var n=t.event;"hex"!==n.type?d(n.type,z.none()):r(e)},v=function(e,t){n(e);var r=tT(t);d("hex",z.some(t));var i=yT(r);s(e,i),p(i),Cs(e,NI,{hex:r}),c(e,r)},g=function(e,t,n){var r=parseInt(n,10);d(t,z.some(r)),h().each((function(t){var n=a(e,t);Cs(e,NI,{hex:n}),c(e,n)}))},b=function(e){return"hex"===e.type},y=function(e,t){var n=t.event;b(n)?v(e,n.value):g(e,n.type,n.value)},w=function(t){return{label:e(qI+t+".label"),description:e(qI+t+".description")}},x=w("red"),_=w("green"),C=w("blue"),k=w("hex");return xi(VI.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",kM.sketch(o(gT,"red",x.label,x.description,255))),n.field("green",kM.sketch(o(gT,"green",_.label,_.description,255))),n.field("blue",kM.sketch(o(gT,"blue",C.label,C.description,255))),n.field("hex",kM.sketch(o(iT,"hex",k.label,k.description,"ffffff"))),u.asSpec()],formBehaviours:hf([xA.config({invalidClass:t("form-invalid")}),jw("rgb-form-events",[Ns(HI,y),Ns(WI,m),Ns(UI,m)])])}})),{apis:{updateHex:function(e,t){ev.setValue(e,{hex:t.value}),l(e,t),c(e,t)}}})},f=dg({factory:l,name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}});return f},KI=function(e,t){var n=AI.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),r=AI.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"<div class="+t("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(e,t){var n=e.width,r=e.height,i=e.getContext("2d");if(null!==i){i.fillStyle=t,i.fillRect(0,0,n,r);var o=i.createLinearGradient(0,0,n,0);o.addColorStop(0,"rgba(255,255,255,1)"),o.addColorStop(1,"rgba(255,255,255,0)"),i.fillStyle=o,i.fillRect(0,0,n,r);var a=i.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),i.fillStyle=a,i.fillRect(0,0,n,r)}},o=function(e,t){var n=e.components()[0].element.dom,r=MT(t,100,100),o=bT(r);i(n,_T(o))},a=function(e,t){var n=AT(yT(t));AI.setValue(e,{x:n.saturation,y:100-n.value})},s=function(e){var o=w({x:0,y:0}),a=function(e,t,n){Cs(e,II,{value:n})},s=function(e,t,n,r){i(n.element.dom,_T(CT))},u=hf([bg.config({find:z.some}),Xw.config({})]);return AI.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:o},rounded:!1,components:[n,r],onChange:a,onInit:s,sliderBehaviours:u})},u=dg({factory:s,name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(e,t,n){o(t,n)},setThumb:function(e,t,n){a(t,n)}},extraApis:{}});return u},YI=function(e,t){var n=function(n){var r=GI(e,t,n.onValidHex,n.onInvalidHex),i=KI(e,t),o=function(e){return(100-e)/100*360},a=function(e){return 100-e/360*100},s={paletteRgba:ia(CT),paletteHue:ia(0)},u=E_(RI(e,t)),c=E_(i.sketch({})),l=E_(r.sketch({})),f=function(e,t,n){c.getOpt(e).each((function(e){i.setHue(e,n)}))},d=function(e,t){l.getOpt(e).each((function(e){r.updateHex(e,t)}))},h=function(e,t,n){u.getOpt(e).each((function(e){AI.setValue(e,{y:a(n)})}))},p=function(e,t){c.getOpt(e).each((function(e){i.setThumb(e,t)}))},m=function(e,t){var n=yT(e);s.paletteRgba.set(n),s.paletteHue.set(t)},v=function(e,t,n,r){m(t,n),G(r,(function(r){r(e,t,n)}))},g=function(){var e=[d];return function(t,n){var r=n.event.value,i=s.paletteHue.get(),o=MT(i,r.x,100-r.y),a=PT(o);v(t,a,i,e)}},b=function(){var e=[f,d];return function(t,n){var r=o(n.event.value.y),i=s.paletteRgba.get(),a=AT(i),u=MT(r,a.saturation,a.value),c=PT(u);v(t,c,r,e)}},y=function(){var e=[f,h,p];return function(t,n){var r=n.event.hex,i=NT(r);v(t,r,i.hue,e)}};return{uid:n.uid,dom:n.dom,components:[c.asSpec(),u.asSpec(),l.asSpec()],behaviours:hf([jw("colour-picker-events",[Ns(NI,y()),Ns(II,g()),Ns(PI,b())]),bg.config({find:function(e){return l.getOpt(e)}}),Dw.config({mode:"acyclic"})])}},r=dg({name:"ColourPicker",configFields:[Do("dom"),Ko("onValidHex",v),Ko("onInvalidHex",v)],factory:n});return r},XI=function(){return bg.config({find:z.some})},JI=function(e){return bg.config({find:e.getOpt})},ZI=function(e){return bg.config({find:function(t){return _n(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},QI={self:XI,memento:JI,childAt:ZI},eR={"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"},tR=function(e){return eR[e]},nR=function(e){return tR(e)},rR=function(e){var t=function(e){return"tox-"+e},n=YI(nR,t),r=function(e){Cs(e,$M,{name:"hex-valid",value:!0})},i=function(e){Cs(e,$M,{name:"hex-valid",value:!1})},o=E_(n.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:i}));return{dom:{tag:"div"},components:[o.asSpec()],behaviours:hf([ev.config({store:{mode:"manual",getValue:function(e){var t=o.get(e),n=bg.getCurrent(t),r=n.bind((function(e){var t=ev.getValue(e);return t.hex}));return r.map((function(e){return"#"+e})).getOr("")},setValue:function(e,t){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(t),i=o.get(e),a=bg.getCurrent(i);a.fold((function(){console.log("Can not find form")}),(function(e){ev.setValue(e,{hex:z.from(r[1]).getOr("")}),VI.getField(e,"hex").each((function(e){_s(e,Va())}))}))}}}),QI.self()])}},iR=tinymce.util.Tools.resolve("tinymce.Resource"),oR=function(e){return Ee(e,"init")},aR=function(e){var t=id(),n=E_({dom:{tag:e.tag}}),r=id();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:hf([jw("custom-editor-events",[Vs((function(i){n.getOpt(i).each((function(n){(oR(e)?e.init(n.element.dom):iR.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)}))).then((function(e){r.on((function(t){e.setValue(t)})),r.clear(),t.set(e)}))}))}))]),ev.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(n)}),(function(e){return e.setValue(n)}))}}}),QI.self()]),components:[n.asSpec()]}},sR=tinymce.util.Tools.resolve("tinymce.util.Tools"),uR=Qi([Ko("preprocess",x),Ko("postprocess",x)]),cR=function(e,t){var n=_o("RepresentingConfigs.memento processors",uR,t);return ev.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),i=ev.getValue(r);return n.postprocess(i)},setValue:function(t,r){var i=n.preprocess(r),o=e.get(t);ev.setValue(o,i)}}})},lR=function(e,t,n){return ev.config(xi({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))},fR=function(e,t,n){return lR(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}))},dR=function(e){return fR(e,dc,hc)},hR=function(e){return fR(e,Gs,Ks)},pR=function(e){return ev.config({store:{mode:"memory",initialValue:e}})},mR={memento:cR,withElement:fR,withComp:lR,domValue:dR,domHtml:hR,memory:pR},vR="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",gR=function(e,t){var n=sR.explode(t.getSetting("images_file_types",vR,"string")),r=function(e){return H(n,(function(t){return We(e.name.toLowerCase(),"."+t.toLowerCase())}))};return X(he(e),r)},bR=function(e,t){var n=function(e,t){t.stop()},r=function(e){return function(t,n){G(e,(function(e){e(t,n)}))}},i=function(e,t){if(!Bg.isDisabled(e)){var n=t.event.raw;a(e,n.dataTransfer.files)}},o=function(e,t){var n=t.event.raw.target;a(e,n.files)},a=function(n,r){ev.setValue(n,gR(r,t)),Cs(n,zM,{name:e.name})},s=E_({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:hf([jw("input-file-events",[$s(Wa()),$s(rs())])])}),u=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:hf([mR.memory([]),QI.self(),Bg.config({}),mx.config({toggleClass:"dragenter",toggleOnExecute:!1}),jw("dropzone-events",[Ns("dragenter",r([n,mx.toggle])),Ns("dragleave",r([n,mx.toggle])),Ns("dragover",n),Ns("drop",r([n,i])),Ns(Ha(),o)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},C_.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(e){var t=s.get(e);t.element.dom.click()},buttonBehaviours:hf([TM.config({}),_E.button(t.isDisabled),gE()])})]}]}},c=e.label.map((function(e){return RM(e,t)})),l=kM.parts.field({factory:{sketch:u}});return MM(c,l,["tox-form__group--stretched"],[])},yR=function(e,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:q(e.items,t.interpreter)}},wR=iu("alloy-fake-before-tabstop"),xR=iu("alloy-fake-after-tabstop"),_R=function(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:hf([Xw.config({ignore:!0}),TM.config({})])}},CR=function(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[_R([wR]),e,_R([xR])],behaviours:hf([QI.childAt(1)])}},kR=function(e,t){Cs(e,Fa(),{raw:{which:9,shiftKey:t}})},SR=function(e,t){var n=t.element;uc(n,wR)?kR(e,!0):uc(n,xR)&&kR(e,!1)},OR=function(e){return UD(e,["."+wR,"."+xR].join(","),O)},ER=!(tn().browser.isIE()||tn().browser.isEdge()),TR=function(e){var t=ia("");return{getValue:function(e){return t.get()},setValue:function(n,r){if(e)Fn(n.element,"srcdoc",r);else{Fn(n.element,"src","javascript:''");var i=n.element.dom.contentWindow.document;i.open(),i.write(r),i.close()}t.set(r)}}},DR=function(e,t){var n=ER&&e.sandboxed,r=D(D({},e.label.map((function(e){return{title:e}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),i=TR(n),o=e.label.map((function(e){return RM(e,t)})),a=function(e){return CR({uid:e.uid,dom:{tag:"iframe",attributes:r},behaviours:hf([TM.config({}),Xw.config({}),mR.withComp(z.none(),i.getValue,i.setValue)])})},s=kM.parts.field({factory:{sketch:a}});return MM(o,s,["tox-form__group--stretched"],[])},MR=function(e,t){return PR(document.createElement("canvas"),e,t)},AR=function(e){var t=MR(e.width,e.height),n=NR(t);return n.drawImage(e,0,0),t},NR=function(e){return e.getContext("2d")},PR=function(e,t,n){return e.width=t,e.height=n,e},IR=function(e){return e.naturalWidth||e.width},RR=function(e){return e.naturalHeight||e.height},zR=function(e){return new tA((function(t,n){var r=URL.createObjectURL(e),i=new Image,o=function(){i.removeEventListener("load",a),i.removeEventListener("error",s)},a=function(){o(),t(i)},s=function(){o(),n("Unable to load data of type "+e.type+": "+r)};i.addEventListener("load",a),i.addEventListener("error",s),i.src=r,i.complete&&setTimeout(a,0)}))},BR=function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return z.none();for(var r=n[1],i=t[1],o=1024,a=atob(i),s=a.length,u=Math.ceil(s/o),c=new Array(u),l=0;l<u;++l){for(var f=l*o,d=Math.min(f+o,s),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 z.some(new Blob(c,{type:r}))},LR=function(e){return new tA((function(t,n){BR(e).fold((function(){n("uri is not base64: "+e)}),t)}))},$R=function(e,t,n){return t=t||"image/png",h(HTMLCanvasElement.prototype.toBlob)?new tA((function(r,i){e.toBlob((function(e){e?r(e):i()}),t,n)})):LR(e.toDataURL(t,n))},FR=function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)},jR=function(e){return zR(e).then((function(e){HR(e);var t=MR(IR(e),RR(e)),n=NR(t);return n.drawImage(e,0,0),t}))},VR=function(e){return new tA((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},HR=function(e){URL.revokeObjectURL(e.src)},WR=function(e,t,n){var r=t.type,i=w(r),o=function(){return tA.resolve(t)},a=w(n),s=function(){return n.split(",")[1]},u=function(t,n){return e.then((function(e){return $R(e,t,n)}))},c=function(t,n){return e.then((function(e){return FR(e,t,n)}))},l=function(e,t){return c(e,t).then((function(e){return e.split(",")[1]}))},f=function(){return e.then(AR)};return{getType:i,toBlob:o,toDataURL:a,toBase64:s,toAdjustedBlob:u,toAdjustedDataURL:c,toAdjustedBase64:l,toCanvas:f}},UR=function(e){return VR(e).then((function(t){return WR(jR(e),e,t)}))},qR=function(e,t){return $R(e,t).then((function(t){return WR(tA.resolve(e),t,e.toDataURL())}))},GR=function(e){return UR(e)},KR=function(e,t,n){var r="string"===typeof e?parseFloat(e):e;return r>n?r=n:r<t&&(r=t),r},YR=function(){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]},XR=[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],JR=function(e,t){for(var n,r=[],i=new Array(25),o=0;o<5;o++){for(var a=0;a<5;a++)r[a]=t[a+5*o];for(a=0;a<5;a++){n=0;for(var s=0;s<5;s++)n+=e[a+5*s]*r[s];i[a+5*o]=n}}return i},ZR=function(e,t){var n;return t=KR(t,-1,1),t*=100,t<0?n=127+t/100*127:(n=t%1,n=0===n?XR[t]:XR[Math.floor(t)]*(1-n)+XR[Math.floor(t)+1]*n,n=127*n+127),JR(e,[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])},QR=function(e,t){return t=KR(255*t,-255,255),JR(e,[1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])},ez=function(e,t,n,r){return t=KR(t,0,2),n=KR(n,0,2),r=KR(r,0,2),JR(e,[t,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])},tz=function(e,t){return e.toCanvas().then((function(n){return nz(n,e.getType(),t)}))},nz=function(e,t,n){var r=NR(e),i=function(e,t){for(var n,r,i,o,a=e.data,s=t[0],u=t[1],c=t[2],l=t[3],f=t[4],d=t[5],h=t[6],p=t[7],m=t[8],v=t[9],g=t[10],b=t[11],y=t[12],w=t[13],x=t[14],_=t[15],C=t[16],k=t[17],S=t[18],O=t[19],E=0;E<a.length;E+=4)n=a[E],r=a[E+1],i=a[E+2],o=a[E+3],a[E]=n*s+r*u+i*c+o*l+f,a[E+1]=n*d+r*h+i*p+o*m+v,a[E+2]=n*g+r*b+i*y+o*w+x,a[E+3]=n*_+r*C+i*k+o*S+O;return e},o=i(r.getImageData(0,0,e.width,e.height),n);return r.putImageData(o,0,0),qR(e,t)},rz=function(e,t){return e.toCanvas().then((function(n){return iz(n,e.getType(),t)}))},iz=function(e,t,n){var r=NR(e),i=function(e,t,n){for(var r=function(e,t,n){return e>n?e=n:e<t&&(e=t),e},i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),a=e.data,s=t.data,u=e.width,c=e.height,l=0;l<c;l++)for(var f=0;f<u;f++){for(var d=0,h=0,p=0,m=0;m<i;m++)for(var v=0;v<i;v++){var g=r(f+v-o,0,u-1),b=r(l+m-o,0,c-1),y=4*(b*u+g),w=n[m*i+v];d+=a[y]*w,h+=a[y+1]*w,p+=a[y+2]*w}var x=4*(l*u+f);s[x]=r(d,0,255),s[x+1]=r(h,0,255),s[x+2]=r(p,0,255)}return t},o=r.getImageData(0,0,e.width,e.height),a=r.getImageData(0,0,e.width,e.height);return a=i(o,a,n),r.putImageData(a,0,0),qR(e,t)},oz=function(e){var t=function(t,n,r){for(var i=NR(t),o=new Array(256),a=function(e,t){for(var n=e.data,r=0;r<n.length;r+=4)n[r]=t[n[r]],n[r+1]=t[n[r+1]],n[r+2]=t[n[r+2]];return e},s=0;s<o.length;s++)o[s]=e(s,r);var u=a(i.getImageData(0,0,t.width,t.height),o);return i.putImageData(u,0,0),qR(t,n)};return function(e,n){return e.toCanvas().then((function(r){return t(r,e.getType(),n)}))}},az=function(e){return function(t,n){return tz(t,e(YR(),n))}},sz=function(e){return function(t){return tz(t,e)}},uz=function(e){return function(t){return rz(t,e)}},cz=sz([-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]),lz=az(QR),fz=az(ZR),dz=function(e,t,n,r){return tz(e,ez(YR(),t,n,r))},hz=uz([0,-1,0,-1,5,-1,0,-1,0]),pz=oz((function(e,t){return 255*Math.pow(e/255,1-t)})),mz=function(e,t,n){var r=IR(e),i=RR(e),o=t/r,a=n/i,s=!1;(o<.5||o>2)&&(o=o<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var u=vz(e,o,a);return s?u.then((function(e){return mz(e,t,n)})):u},vz=function(e,t,n){return new tA((function(r){var i=IR(e),o=RR(e),a=Math.floor(i*t),s=Math.floor(o*n),u=MR(a,s),c=NR(u);c.drawImage(e,0,0,i,o,0,0,a,s),r(u)}))},gz=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),r=Math.round(e*n);return Math.ceil(r/n)},bz=function(e,t){return e.toCanvas().then((function(n){return yz(n,e.getType(),t)}))},yz=function(e,t,n){var r=n<0?360+n:n,i=r*Math.PI/180,o=e.width,a=e.height,s=Math.sin(i),u=Math.cos(i),c=gz(Math.abs(o*u)+Math.abs(a*s)),l=gz(Math.abs(o*s)+Math.abs(a*u)),f=MR(c,l),d=NR(f);return d.translate(c/2,l/2),d.rotate(i),d.drawImage(e,-o/2,-a/2),qR(f,t)},wz=function(e,t){return e.toCanvas().then((function(n){return xz(n,e.getType(),t)}))},xz=function(e,t,n){var r=MR(e.width,e.height),i=NR(r);return"v"===n?(i.scale(1,-1),i.drawImage(e,0,-r.height)):(i.scale(-1,1),i.drawImage(e,-r.width,0)),qR(r,t)},_z=function(e,t,n,r,i){return e.toCanvas().then((function(o){return Cz(o,e.getType(),t,n,r,i)}))},Cz=function(e,t,n,r,i,o){var a=MR(i,o),s=NR(a);return s.drawImage(e,-n,-r),qR(a,t)},kz=function(e,t,n){return e.toCanvas().then((function(r){return mz(r,t,n).then((function(t){return qR(t,e.getType())}))}))},Sz=function(e){return cz(e)},Oz=function(e){return hz(e)},Ez=function(e,t){return pz(e,t)},Tz=function(e,t,n,r){return dz(e,t,n,r)},Dz=function(e,t){return lz(e,t)},Mz=function(e,t){return fz(e,t)},Az=function(e,t){return wz(e,t)},Nz=function(e,t,n,r,i){return _z(e,t,n,r,i)},Pz=function(e,t,n){return kz(e,t,n)},Iz=function(e,t){return bz(e,t)},Rz=function(e,t,n){return UC(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t)},zz=function(e,t){return Rz(e,t,[])},Bz=function(e,t){return Rz(e,t,[$w.config({})])},Lz=function(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:hf([$w.config({})])}},$z=iu("toolbar.button.execute"),Fz=function(e){return Us((function(t,n){CE(e,t)((function(n){Cs(t,$z,{buttonApi:n}),e.onAction(n)}))}))},jz=(MA={},MA[ts()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],MA),Vz=iu("update-menu-text"),Hz=iu("update-menu-icon"),Wz=function(e,t,n){var r=ia(v),i=e.text.map((function(e){return E_(Lz(e,t,n.providers))})),o=e.icon.map((function(e){return E_(Bz(e,n.providers.icons))})),a=function(e,t){var n=ev.getValue(e);return Xw.focus(n),Cs(n,"keydown",{raw:t.event.raw}),qA.close(n),z.some(!0)},s=e.role.fold((function(){return{}}),(function(e){return{role:e}})),u=e.tooltip.fold((function(){return{}}),(function(e){var t=n.providers.translate(e);return{title:t,"aria-label":t}})),c=UC("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},n.providers.icons),l=E_(qA.sketch(D(D(D({},e.uid?{uid:e.uid}:{}),s),{dom:{tag:"button",classes:[t,t+"--select"].concat(q(e.classes,(function(e){return t+"--"+e}))),attributes:D({},u)},components:TE([o.map((function(e){return e.asSpec()})),i.map((function(e){return e.asSpec()})),z.some(c)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:hf(A(A([],e.dropdownBehaviours,!0),[_E.button((function(){return e.disabled||n.providers.isDisabled()})),gE(),XA.config({}),$w.config({}),jw("dropdown-events",[kE(e,r),SE(e,r)]),jw("menubutton-update-display-text",[Ns(Vz,(function(e,t){i.bind((function(t){return t.getOpt(e)})).each((function(e){$w.set(e,[Cc(n.providers.translate(t.event.text))])}))})),Ns(Hz,(function(e,t){o.bind((function(t){return t.getOpt(e)})).each((function(e){$w.set(e,[Bz(t.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:xi(jz,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:hf([Dw.config({mode:"special",onLeft:a,onRight:a})]),lazySink:n.getSink,toggleClass:t+"--active",parts:{menu:SS(!1,e.columns,e.presets)},fetch:function(t){return cA.nu(C(e.fetch,t))}})));return l.asSpec()},Uz=function(e){return o(e)},qz=function(e){return"separator"===e.type},Gz=function(e){return Ee(e,"getSubmenuItems")},Kz={type:"separator"},Yz=function(e,t){var n=Z(e,(function(e,n){return Uz(n)?""===n?e:"|"===n?e.length>0&&!qz(e[e.length-1])?e.concat([Kz]):e:Ee(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n])}),[]);return n.length>0&&qz(n[n.length-1])&&n.pop(),n},Xz=function(e,t){var n=e.getSubmenuItems(),r=Qz(n,t),i=xi(r.menus,ha(e.value,r.items)),o=xi(r.expansions,ha(e.value,e.value));return{item:e,menus:i,expansions:o}},Jz=function(e,t){return Gz(e)?Xz(e,t):{item:e,menus:{},expansions:{}}},Zz=function(e){if(qz(e))return e;var t=Oe(e,"value").getOrThunk((function(){return iu("generated-menu-item")}));return xi({value:t},e)},Qz=function(e,t){var n=Yz(o(e)?e.split(" "):e,t);return J(n,(function(e,n){var r=Zz(n),i=Jz(r,t);return{menus:xi(e.menus,i.menus),items:[i.item].concat(e.items),expansions:xi(e.expansions,i.expansions)}}),{menus:{},expansions:{},items:[]})},eB=function(e,t,n,r){var i=iu("primary-menu"),o=Qz(e,n.shared.providers.menuItems());if(0===o.items.length)return z.none();var a=FD(i,o.items,t,n,r),s=be(o.menus,(function(e,r){return FD(r,e,t,n,!1)})),u=xi(s,ha(i,a));return z.from(Zx.tieredData(i,u,o.expansions))},tB=function(e){return{isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){return Bg.set(e,t)},setActive:function(t){var n=e.element;t?(oc(n,"tox-tbtn--enabled"),Fn(n,"aria-pressed",!0)):(sc(n,"tox-tbtn--enabled"),Un(n,"aria-pressed"))},isActive:function(){return uc(e.element,"tox-tbtn--enabled")}}},nB=function(e,t,n,r){return Wz({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t,r){e.fetch((function(e){r(eB(e,Zk.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:tB,columns:1,presets:"normal",classes:[],dropdownBehaviours:[TM.config({})]},t,n.shared)},rB=function(e,t,n){var r=function(e){return function(r){var i=!r.isActive();r.setActive(i),e.storage.set(i),n.shared.getSink().each((function(n){t().getOpt(n).each((function(t){Cf(t.element),Cs(t,$M,{name:e.name,value:e.storage.get()})}))}))}},i=function(e){return function(t){t.setActive(e.storage.get())}};return function(t){t(q(e,(function(e){var t=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return D(D({type:e.type,active:!1},t),{onAction:r(e),onSetup:i(e)})})))}},iB=function(e,t,n,r,i,o){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),s=D({buttonBehaviours:hf([_E.button((function(){return e.disabled||o.isDisabled()})),gE(),TM.config({}),jw("button press",[As("click"),As("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),u=xi(s,{dom:r});return xi(u,{components:i})},oB=function(e,t,n,r){void 0===r&&(r=[]);var i=e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({}),o={tag:"button",classes:["tox-tbtn"],attributes:i},a=e.icon.map((function(e){return zz(e,n.icons)})),s=TE([a]);return iB(e,t,r,o,s,n)},aB=function(e,t,n,r){void 0===r&&(r=[]);var i=oB(e,z.some(t),n,r);return C_.sketch(i)},sB=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=n.translate(e.text),a=e.icon?e.icon.map((function(e){return zz(e,n.icons)})):z.none(),s=a.isSome()?TE([a]):[],u=a.isSome()?{}:{innerHtml:o},c=A(A(A(A([],e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),e.borderless?["tox-button--naked"]:[],!0),i,!0),l=D(D({tag:"button",classes:c},u),{attributes:{title:o}});return iB(e,t,r,l,s,n)},uB=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=sB(e,z.some(t),n,r,i);return C_.sketch(o)},cB=function(e,t){return function(n){"custom"===t?Cs(n,$M,{name:e,value:{}}):"submit"===t?_s(n,FM):"cancel"===t?_s(n,LM):console.error("Unknown button type: ",t)}},lB=function(e,t){return"menu"===t},fB=function(e,t){return"custom"===t||"cancel"===t||"submit"===t},dB=function(e,t,n){if(lB(e,t)){var r=function(){return a},i=e,o=D(D({},e),{onSetup:function(t){return t.setDisabled(e.disabled),v},fetch:rB(i.items,r,n)}),a=E_(nB(o,"tox-tbtn",n,z.none()));return a.asSpec()}if(fB(e,t)){var s=cB(e.name,t),u=D(D({},e),{borderless:!1});return uB(u,s,n.shared.providers,[])}console.error("Unknown footer button type: ",t)},hB=function(e,t){var n=cB(e.name,"custom");return AM(z.none(),kM.parts.field(D({factory:C_},sB(e,z.some(n),t,[mR.memory(""),QI.self()]))))},pB=w([Ko("field1Name","field1"),Ko("field2Name","field2"),cl("onLockedChange"),ol(["lockClass"]),Ko("locked",!1),iv.field("coupledFieldBehaviours",[bg,ev])]),mB=function(e,t,n){return Kv(e,t,n).bind(bg.getCurrent)},vB=function(e,t){return Pv({factory:kM,name:e,overrides:function(e){return{fieldBehaviours:hf([jw("coupled-input-behaviour",[Ns(Va(),(function(n){mB(n,e,t).each((function(t){Kv(n,e,"lock").each((function(r){mx.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})},gB=w([vB("field1","field2"),vB("field2","field1"),Pv({factory:C_,schema:[Do("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:hf([mx.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),bB=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:iv.augment(e.coupledFieldBehaviours,[bg.config({find:z.some}),ev.config({store:{mode:"manual",getValue:function(t){var n,r=Qv(t,e,["field1","field2"]);return n={},n[e.field1Name]=ev.getValue(r.field1()),n[e.field2Name]=ev.getValue(r.field2()),n},setValue:function(t,n){var r=Qv(t,e,["field1","field2"]);Te(n,e.field1Name)&&ev.setValue(r.field1(),n[e.field1Name]),Te(n,e.field2Name)&&ev.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return Kv(t,e,"field1")},getField2:function(t){return Kv(t,e,"field2")},getLock:function(t){return Kv(t,e,"lock")}}}},yB=hg({name:"FormCoupledInputs",configFields:pB(),partFields:gB(),factory:bB,apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),wB=function(e){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(e){return e in t?t[e]:1},r=e.value.toFixed(n(e.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+e.unit},xB=function(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=t.exec(e);if(null!==n){var r=parseFloat(n[1]),i=n[2];return ri.value({value:r,unit:i})}return ri.error(e)},_B=function(e,t){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(e){return Ee(n,e)};return e.unit===t?z.some(e.value):r(e.unit)&&r(t)?n[e.unit]===n[t]?z.some(e.value):z.some(e.value/n[e.unit]*n[t]):z.none()},CB=function(e){return z.none()},kB=function(e,t){return function(n){return _B(n,t).map((function(n){return{value:n*e,unit:t}}))}},SB=function(e,t){var n=xB(e).toOptional(),r=xB(t).toOptional();return Pe(n,r,(function(e,t){return _B(e,t.unit).map((function(e){return t.value/e})).map((function(e){return kB(e,t.unit)})).getOr(CB)})).getOr(CB)},OB=function(e,t){var n=CB,r=iu("ratio-event"),i=function(e){return UC(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons)},o=yB.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[i("lock"),i("unlock")],buttonBehaviours:hf([Bg.config({disabled:function(){return e.disabled||t.isDisabled()}}),gE(),TM.config({})])}),a=function(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}},s=function(n){return kM.parts.field({factory:JM,inputClasses:["tox-textfield"],inputBehaviours:hf([Bg.config({disabled:function(){return e.disabled||t.isDisabled()}}),gE(),TM.config({}),jw("size-input-events",[Ns(La(),(function(e,t){Cs(e,r,{isField1:n})})),Ns(Ha(),(function(t,n){Cs(t,zM,{name:e.name})}))])]),selectOnFocus:!1})},u=function(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}},c=yB.parts.field1(a([kM.parts.label(u("Width")),s(!0)])),l=yB.parts.field2(a([kM.parts.label(u("Height")),s(!1)]));return yB.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[c,l,a([u("&nbsp;"),o])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,r){xB(ev.getValue(e)).each((function(e){n(e).each((function(e){ev.setValue(t,wB(e))}))}))},coupledFieldBehaviours:hf([Bg.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){yB.getField1(e).bind(kM.getField).each(Bg.disable),yB.getField2(e).bind(kM.getField).each(Bg.disable),yB.getLock(e).each(Bg.disable)},onEnabled:function(e){yB.getField1(e).bind(kM.getField).each(Bg.enable),yB.getField2(e).bind(kM.getField).each(Bg.enable),yB.getLock(e).each(Bg.enable)}}),gE(),jw("size-input-events2",[Ns(r,(function(e,t){var r=t.event.isField1,i=r?yB.getField1(e):yB.getField2(e),o=r?yB.getField2(e):yB.getField1(e),a=i.map(ev.getValue).getOr(""),s=o.map(ev.getValue).getOr("");n=SB(a,s)}))])])})},EB=w(iu("undo")),TB=w(iu("redo")),DB=w(iu("zoom")),MB=w(iu("back")),AB=w(iu("apply")),NB=w(iu("swap")),PB=w(iu("transform")),IB=w(iu("temp-transform")),RB=w(iu("transform-apply")),zB={undo:EB,redo:TB,zoom:DB,back:MB,apply:AB,swap:NB,transform:PB,tempTransform:IB,transformApply:RB},BB=w("save-state"),LB=w("disable"),$B=w("enable"),FB={formActionEvent:$M,saveState:BB,disable:LB,enable:$B},jB=function(e,t){var n=function(e,n,r,i){return E_(uB({name:e,text:e,disabled:r,primary:i,icon:z.none(),borderless:!1},n,t))},r=function(e,n,r,i){return E_(aB({name:e,icon:z.some(e),tooltip:z.some(n),disabled:i,primary:!1,borderless:!1},r,t))},i=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Bg)&&Bg.disable(n)}))},o=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Bg)&&Bg.enable(n)}))},a={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},s=v,u=function(e,t,n){Cs(e,t,n)},c=function(e){return _s(e,FB.disable())},l=function(e){return _s(e,FB.enable())},f=function(e,t){c(e),u(e,zB.transform(),{transform:t}),l(e)},d=function(e,t){c(e),u(e,zB.tempTransform(),{transform:t}),l(e)},h=function(e){return function(){ae.getOpt(e).each((function(e){$w.set(e,[ie])}))}},p=function(e,t){c(e),u(e,zB.transformApply(),{transform:t,swap:h(e)}),l(e)},m=function(){return n("Back",(function(e){return u(e,zB.back(),{swap:h(e)})}),!1,!1)},g=function(){return E_({dom:{tag:"div",classes:["tox-spacer"]},behaviours:hf([Bg.config({})])})},b=function(){return n("Apply",(function(e){return u(e,zB.apply(),{swap:h(e)})}),!0,!0)},y=function(){return function(t){var n=e.getRect();return Nz(t,n.x,n.y,n.w,n.h)}},x=[m(),g(),n("Apply",(function(t){var n=y();p(t,n),e.hideCrop()}),!1,!0)],_=bM.sketch({dom:a,components:x.map((function(e){return e.asSpec()})),containerBehaviours:hf([jw("image-tools-crop-buttons-events",[Ns(FB.disable(),(function(e,t){i(x,e)})),Ns(FB.enable(),(function(e,t){o(x,e)}))])])}),C=E_(OB({name:"size",label:z.none(),constrain:!0,disabled:!1},t)),k=function(e,t){return function(n){return Pz(n,e,t)}},S=[m(),g(),C,g(),n("Apply",(function(e){C.getOpt(e).each((function(t){var n=ev.getValue(t),r=parseInt(n.width,10),i=parseInt(n.height,10),o=k(r,i);p(e,o)}))}),!1,!0)],O=bM.sketch({dom:a,components:S.map((function(e){return e.asSpec()})),containerBehaviours:hf([jw("image-tools-resize-buttons-events",[Ns(FB.disable(),(function(e,t){i(S,e)})),Ns(FB.enable(),(function(e,t){o(S,e)}))])])}),E=function(e,t){return function(n){return e(n,t)}},T=E(Az,"h"),D=E(Az,"v"),M=E(Iz,-90),A=E(Iz,90),N=function(e,t){d(e,t)},P=[m(),g(),r("flip-horizontally","Flip horizontally",(function(e){N(e,T)}),!1),r("flip-vertically","Flip vertically",(function(e){N(e,D)}),!1),r("rotate-left","Rotate counterclockwise",(function(e){N(e,M)}),!1),r("rotate-right","Rotate clockwise",(function(e){N(e,A)}),!1),g(),b()],I=bM.sketch({dom:a,components:P.map((function(e){return e.asSpec()})),containerBehaviours:hf([jw("image-tools-fliprotate-buttons-events",[Ns(FB.disable(),(function(e,t){i(P,e)})),Ns(FB.enable(),(function(e,t){o(P,e)}))])])}),R=function(e,n,r,i,o){var a=AI.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),s=AI.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),u=AI.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return E_(AI.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:o,getInitialValue:w({x:i})},components:[a,s,u],sliderBehaviours:hf([Xw.config({})]),onChoose:n}))},B=function(e,t,n,r,i){var o=function(e,n,r){var i=E(t,r.x/100);f(e,i)};return R(e,o,n,r,i)},L=function(e,t,n,r,i){return[m(),B(e,t,n,r,i),b()]},$=function(e,t,n,r,s){var u=L(e,t,n,r,s);return bM.sketch({dom:a,components:u.map((function(e){return e.asSpec()})),containerBehaviours:hf([jw("image-tools-filter-panel-buttons-events",[Ns(FB.disable(),(function(e,t){i(u,e)})),Ns(FB.enable(),(function(e,t){o(u,e)}))])])})},F=[m(),g(),b()],j=bM.sketch({dom:a,components:F.map((function(e){return e.asSpec()}))}),V=$("Brightness",Dz,-100,0,100),H=$("Contrast",Mz,-100,0,100),W=$("Gamma",Ez,-100,0,100),U=function(e,t,n){return function(r){return Tz(r,e,t,n)}},q=function(e){var t=function(e,t,n){var r=G.getOpt(e),i=Y.getOpt(e),o=K.getOpt(e);r.each((function(t){i.each((function(n){o.each((function(r){var i=ev.getValue(t).x/100,o=ev.getValue(r).x/100,a=ev.getValue(n).x/100,s=U(i,o,a);f(e,s)}))}))}))};return R(e,t,0,100,200)},G=q("R"),K=q("G"),Y=q("B"),X=[m(),G,K,Y,b()],J=bM.sketch({dom:a,components:X.map((function(e){return e.asSpec()}))}),Z=function(e,t,n){return function(r){var i=function(){ae.getOpt(r).each((function(t){$w.set(t,[e]),n(t)}))};u(r,zB.swap(),{transform:t,swap:i})}},Q=function(t){e.showCrop()},ee=function(t){C.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,i=n.height;ev.setValue(t,{width:r,height:i})}))},te=z.some(Oz),ne=z.some(Sz),re=[r("crop","Crop",Z(_,z.none(),Q),!1),r("resize","Resize",Z(O,z.none(),ee),!1),r("orientation","Orientation",Z(I,z.none(),s),!1),r("brightness","Brightness",Z(V,z.none(),s),!1),r("sharpen","Sharpen",Z(j,te,s),!1),r("contrast","Contrast",Z(H,z.none(),s),!1),r("color-levels","Color levels",Z(J,z.none(),s),!1),r("gamma","Gamma",Z(W,z.none(),s),!1),r("invert","Invert",Z(j,ne,s),!1)],ie=bM.sketch({dom:a,components:re.map((function(e){return e.asSpec()}))}),oe=bM.sketch({dom:{tag:"div"},components:[ie],containerBehaviours:hf([$w.config({})])}),ae=E_(oe),se=function(e){return ae.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))};return{memContainer:ae,getApplyButton:se}},VB=tinymce.util.Tools.resolve("tinymce.geom.Rect"),HB=tinymce.util.Tools.resolve("tinymce.util.Observable"),WB=tinymce.util.Tools.resolve("tinymce.util.VK"),UB=function(e){var t=Math.max,n=e.documentElement,r=e.body,i=t(n.scrollWidth,r.scrollWidth),o=t(n.clientWidth,r.clientWidth),a=t(n.offsetWidth,r.offsetWidth),s=t(n.scrollHeight,r.scrollHeight),u=t(n.clientHeight,r.clientHeight),c=t(n.offsetHeight,r.offsetHeight);return{width:i<a?o:i,height:s<c?u:s}},qB=function(e){return d(e.changedTouches)},GB=function(e){if(qB(e))for(var t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]};function KB(e,t){var n,r,i,o,a,s,u,c=[],l=[],f=null!==(n=t.document)&&void 0!==n?n:document,h=null!==(r=t.root)&&void 0!==r?r:f,p=tt.fromDom(f),m=tt.fromDom(h.getElementById(null!==(i=t.handle)&&void 0!==i?i:e)),v=function(e){var n=e.raw,r=UB(f);GB(n),e.prevent(),a=n.button,s=n.screenX,u=n.screenY;var i=Jn(m,"cursor");o=tt.fromTag("div",f),Yn(o,{position:"absolute",top:"0",left:"0",width:r.width+"px",height:r.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:i}),Mr(Ln(p),o),l.push(ad(p,"mousemove",g),ad(p,"touchmove",g),ad(p,"mouseup",b),ad(p,"touchend",b)),t.start(n)},g=function(e){var n=e.raw;if(GB(n),n.button!==a)return b(e);n.deltaX=n.screenX-s,n.deltaY=n.screenY-u,e.prevent(),t.drag(n)},b=function(e){GB(e.raw),G(l,(function(e){return e.unbind()})),l=[],Rr(o),t.stop&&t.stop(e.raw)},y=function(){G(l.concat(c),(function(e){return e.unbind()})),l=[],c=[],d(o)&&Rr(o)};return c.push(ad(m,"mousedown",v),ad(m,"touchstart",v)),{destroy:y}}var YB=0,XB=function(e,t,n,r,i){var o,a=[],s="tox-",u=s+"crid-"+YB++,c=tt.fromDom(r),l=[{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"}],f=["top","right","bottom","left"],d=function(e,t){return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},h=function(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}},p=function(){return h(n,e)},m=function(t,r,i,o){var a=r.x+i*t.deltaX,s=r.y+o*t.deltaY,u=Math.max(20,r.w+i*t.deltaW),c=Math.max(20,r.h+o*t.deltaH),l=e=VB.clamp({x:a,y:s,w:u,h:c},n,"move"===t.name);l=h(n,l),k.fire("updateRect",{rect:l}),x(l)},v=function(){var t=function(t){var n;return KB(u,{document:r.ownerDocument,root:Dn(c).dom,handle:u+"-"+t.name,start:function(){n=e},drag:function(e){m(t,n,e.deltaX,e.deltaY)}})},n=tt.fromTag("div");jn(n,{id:u,class:s+"croprect-container",role:"grid","aria-dropeffect":"execute"}),Mr(c,n),G(f,(function(e){Lc(c,"#"+u).each((function(t){var n=tt.fromTag("div");jn(n,{id:u+"-"+e,class:s+"croprect-block","data-mce-bogus":"all"}),Kn(n,"display","none"),Mr(t,n)}))})),G(l,(function(e){Lc(c,"#"+u).each((function(t){var n=tt.fromTag("div");jn(n,{id:u+"-"+e.name,"aria-label":e.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:e.label}),cc(n,[s+"croprect-handle",s+"croprect-handle-"+e.name]),Kn(n,"display","none"),Mr(t,n)}))})),o=q(l,t),b(e);var d=function(e){Fn(e.target,"aria-grabbed","focus"===e.raw.type?"true":"false")},h=function(t){var n;G(l,(function(e){if(Vn(t.target,"id")===u+"-"+e.name)return n=e,!1}));var r=function(e,t,r,i,o){e.stopPropagation(),e.preventDefault(),m(n,r,i,o)};switch(t.raw.keyCode){case WB.LEFT:r(t,n,e,-10,0);break;case WB.RIGHT:r(t,n,e,10,0);break;case WB.UP:r(t,n,e,0,-10);break;case WB.DOWN:r(t,n,e,0,10);break;case WB.ENTER:case WB.SPACEBAR:t.prevent(),i();break}};a.push(ad(c,"focusin",d),ad(c,"focusout",d),ad(c,"keydown",h))},g=function(e){var t=A(A([],q(l,(function(e){return"#"+u+"-"+e.name})),!0),q(f,(function(e){return"#"+u+"-"+e})),!0).join(","),n=Yh(c,t);G(n,e?function(e){return nr(e,"display")}:function(e){return Kn(e,"display","none")})},b=function(e){var n=function(e,t){Lc(c,"#"+u+"-"+e).each((function(e){Yn(e,{left:t.x+"px",top:t.y+"px",width:Math.max(0,t.w)+"px",height:Math.max(0,t.h)+"px"})}))};G(l,(function(t){Lc(c,"#"+u+"-"+t.name).each((function(n){Yn(n,{left:e.w*t.xMul+e.x+"px",top:e.h*t.yMul+e.y+"px"})}))})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)},y=function(t){e=t,b(e)},w=function(n){t=n,b(e)},x=function(e){y(d(n,e))},_=function(t){n=t,b(e)},C=function(){G(o,(function(e){return e.destroy()})),o=[],G(a,(function(e){return e.unbind()})),a=[]};v();var k=D(D({},HB),{toggleVisibility:g,setClampRect:_,setRect:y,getInnerRect:p,setInnerRect:x,setViewPortRect:w,destroy:C});return k},JB={create:XB},ZB=function(e){return new mk((function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)}))},QB=function(e){var t=E_({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=ia(1),r=rd(),i=ia({x:0,y:0,w:1,h:1}),o=ia({x:0,y:0,w:1,h:1}),a=function(e,o){p.getOpt(e).each((function(e){var a=n.get(),s=gr(e.element),u=ar(e.element),c=o.dom.naturalWidth*a,l=o.dom.naturalHeight*a,f=Math.max(0,s/2-c/2),d=Math.max(0,u/2-l/2),h={left:f.toString()+"px",top:d.toString()+"px",width:c.toString()+"px",height:l.toString()+"px",position:"absolute"};Yn(o,h),t.getOpt(e).each((function(e){Yn(e.element,h)})),r.run((function(e){var t=i.get();e.setRect({x:t.x*a+f,y:t.y*a+d,w:t.w*a,h:t.h*a}),e.setClampRect({x:f,y:d,w:c,h:l}),e.setViewPortRect({x:0,y:0,w:s,h:u})}))}))},s=function(e,t){p.getOpt(e).each((function(e){var r=gr(e.element),i=ar(e.element),o=t.dom.naturalWidth,a=t.dom.naturalHeight,s=Math.min(r/o,i/a);s>=1?n.set(1):n.set(s)}))},u=function(e,t){var n=tt.fromTag("img");return Fn(n,"src",t),ZB(n.dom).then((function(){e.getSystem().isConnected()&&p.getOpt(e).map((function(e){var t=kc({element:n});$w.replaceAt(e,1,z.some(t));var r=o.get(),u={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};o.set(u);var c=VB.inflate(u,-20,-20);i.set(c),r.w===u.w&&r.h===u.h||s(e,n),a(e,n)}))}))},c=function(e,t){var r=n.get(),i=t>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(i),p.getOpt(e).each((function(e){var t=e.components()[1].element;a(e,t)}))},l=function(){r.run((function(e){e.toggleVisibility(!0)}))},f=function(){r.run((function(e){e.toggleVisibility(!1)}))},d=function(){return i.get()},h=bM.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[t.asSpec(),{dom:{tag:"img",attributes:{src:e}}},{dom:{tag:"div"},behaviours:hf([jw("image-panel-crop-events",[Vs((function(e){p.getOpt(e).each((function(e){var t=e.element.dom,o=JB.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},t,v);o.toggleVisibility(!1),o.on("updateRect",(function(e){var t=e.rect,r=n.get(),o={x:Math.round(t.x/r),y:Math.round(t.y/r),w:Math.round(t.w/r),h:Math.round(t.h/r)};i.set(o)})),r.set(o)}))})),Hs((function(){r.clear()}))])])}],containerBehaviours:hf([$w.config({}),jw("image-panel-events",[Vs((function(t){u(t,e)}))])])}),p=E_(h),m=function(){var e=o.get();return{width:e.w,height:e.h}};return{memContainer:p,updateSrc:u,zoom:c,showCrop:l,hideCrop:f,getRect:d,getMeasurements:m}},eL=function(e,t,n,r,i){return aB({name:e,icon:z.some(t),disabled:n,tooltip:z.some(e),primary:!1,borderless:!1},r,i)},tL=function(e,t){t?Bg.enable(e):Bg.disable(e)},nL=function(e){var t=function(e,t,i){n.getOpt(e).each((function(e){tL(e,t)})),r.getOpt(e).each((function(e){tL(e,i)}))},n=E_(eL("Undo","undo",!0,(function(e){Cs(e,zB.undo(),{direction:1})}),e)),r=E_(eL("Redo","redo",!0,(function(e){Cs(e,zB.redo(),{direction:1})}),e)),i=bM.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),eL("Zoom in","zoom-in",!1,(function(e){Cs(e,zB.zoom(),{direction:1})}),e),eL("Zoom out","zoom-out",!1,(function(e){Cs(e,zB.zoom(),{direction:-1})}),e)]});return{container:i,updateButtonUndoStates:t}};function rL(){var e=[],t=-1,n=function(n){var r=e.splice(++t);return e.push(n),{state:n,removed:r}},r=function(){if(o())return e[--t]},i=function(){if(a())return e[++t]},o=function(){return t>0},a=function(){return-1!==t&&t<e.length-1};return{data:e,add:n,undo:r,redo:i,canUndo:o,canRedo:a}}var iL,oL=function(e){var t=ia(e),n=id(),r=rL();r.add(e);var i=function(){return t.get()},o=function(e){t.set(e)},a=function(){return n.get().getOrThunk(t.get)},s=function(e){var t=u(e);return f(),n.set(t),t.url},u=function(e){return{blob:e,url:URL.createObjectURL(e)}},c=function(e){URL.revokeObjectURL(e.url)},l=function(e){sR.each(e,c)},f=function(){n.on(c),n.clear()},d=function(e){var t=u(e);o(t);var n=r.add(t).removed;return l(n),t.url},h=function(e){var t=u(e);return n.set(t),t.url},p=function(e){return n.get().fold(v,(function(t){d(t.blob),e()}))},m=function(){var e=r.undo();return o(e),e.url},g=function(){var e=r.redo();return o(e),e.url},b=function(){var e=r.canUndo(),t=r.canRedo();return{undoEnabled:e,redoEnabled:t}};return{getBlobState:i,setBlobState:o,addBlobState:d,getTempState:a,updateTempState:s,addTempState:h,applyTempState:p,destroyTempState:f,undo:m,redo:g,getHistoryStates:b}},aL=function(e,t){var n=oL(e.currentState),r=function(e,t){var n=t.event.direction;k.zoom(e,n)},i=function(e){var t=n.getHistoryStates();S.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),Cs(e,FB.formActionEvent,{name:FB.saveState(),value:t.undoEnabled})},o=function(e){S.updateButtonUndoStates(e,!1,!1)},a=function(e,t){var r=n.undo();f(e,r).then((function(t){l(e),i(e)}))},s=function(e,t){var r=n.redo();f(e,r).then((function(t){l(e),i(e)}))},u=function(e){return e.toBlob()},c=function(e){Cs(e,FB.formActionEvent,{name:FB.disable(),value:{}})},l=function(e){O.getApplyButton(e).each((function(e){Bg.enable(e)})),Cs(e,FB.formActionEvent,{name:FB.enable(),value:{}})},f=function(e,t){return c(e),k.updateSrc(e,t)},d=function(e,t,n,r,o){c(e),GR(t).then(n).then(u).then(r).then((function(t){return f(e,t)})).then((function(){i(e),o(),l(e)})).catch((function(t){console.log(t),e.getSystem().isConnected()&&l(e)}))},h=function(e,t,r){var i=n.getBlobState().blob,o=function(e){return n.updateTempState(e)};d(e,i,t,o,r)},p=function(e,t){var r=n.getTempState().blob,i=function(e){return n.addTempState(e)};d(e,r,t,i,v)},m=function(e,t,r){var i=n.getBlobState().blob,o=function(t){var r=n.addBlobState(t);return b(e),r};d(e,i,t,o,r)},g=function(e,t){var r=function(){b(e);var n=t.event.swap;n()};n.applyTempState(r)},b=function(e){var t=n.getBlobState().url;return n.destroyTempState(),i(e),t},y=function(e){var t=b(e);f(e,t).then((function(t){l(e)}))},w=function(e,t){y(e);var n=t.event.swap;n(),k.hideCrop()},x=function(e,t){return h(e,t.event.transform,v)},_=function(e,t){return p(e,t.event.transform)},C=function(e,t){return m(e,t.event.transform,t.event.swap)},k=QB(e.currentState.url),S=nL(t),O=jB(k,t),E=function(e,t){o(e);var n=t.event.transform,r=t.event.swap;n.fold((function(){r()}),(function(t){h(e,t,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[O.memContainer.asSpec(),k.memContainer.asSpec(),S.container],behaviours:hf([ev.config({store:{mode:"manual",getValue:function(){return n.getBlobState()}}}),jw("image-tools-events",[Ns(zB.undo(),a),Ns(zB.redo(),s),Ns(zB.zoom(),r),Ns(zB.back(),w),Ns(zB.apply(),g),Ns(zB.transform(),x),Ns(zB.tempTransform(),_),Ns(zB.transformApply(),C),Ns(zB.swap(),E)]),QI.self()])}},sL=function(e,t){var n={dom:{tag:"label",innerHtml:t.providers.translate(e.label),classes:["tox-label"]}},r=q(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:hf([QI.self(),$w.config({}),mR.domHtml(z.none()),Dw.config({mode:"acyclic"})])}},uL=function(e){return!Ee(e,"items")},cL="data-value",lL=function(e,t,n,r){return q(n,(function(n){return uL(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){ev.setValue(e,n.value),Cs(e,zM,{name:t}),Xw.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return lL(e,t,n.items,r)}}}))},fL=function(e,t){return pe(e,(function(e){return uL(e)?ze(e.value===t,e):fL(e.items,t)}))},dL=function(e,t){var n=t.shared.providers,r=fe(e.items).filter(uL),i=e.label.map((function(e){return RM(e,n)})),o=kM.parts.field({dom:{},factory:{sketch:function(n){return Wz({uid:n.uid,text:r.map((function(e){return e.text})),icon:z.none(),tooltip:e.label,role:z.none(),fetch:function(n,r){var i=lL(n,e.name,e.items,ev.getValue(n));r(eB(i,Zk.CLOSE_ON_EXECUTE,t,!1))},onSetup:w(v),getApi:w({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[TM.config({}),ev.config({store:{mode:"manual",initialValue:r.map((function(e){return e.value})).getOr(""),getValue:function(e){return Vn(e.element,cL)},setValue:function(t,n){fL(e.items,n).each((function(e){Fn(t.element,cL,e.value),Cs(t,Vz,{text:e.text})}))}}})]},"tox-listbox",t.shared)}}}),a={dom:{tag:"div",classes:["tox-listboxfield"]},components:[o]};return kM.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([i.toArray(),[a]]),fieldBehaviours:hf([Bg.config({disabled:w(e.disabled),onDisabled:function(e){kM.getField(e).each(Bg.disable)},onEnabled:function(e){kM.getField(e).each(Bg.enable)}})])})},hL=function(e,t){return{dom:{tag:"div",classes:e.classes},components:q(e.items,t.shared.interpreter)}},pL=function(e,t){var n=q(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return ha("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:rv(e.selectBehaviours,[Xw.config({}),ev.config({store:D({mode:"manual",getValue:function(e){return dc(e.element)},setValue:function(t,n){var r=ee(e.options,(function(e){return e.value===n}));r.isSome()&&hc(t.element,n)}},r)})])}},mL=dg({name:"HtmlSelect",configFields:[Do("options"),tv("selectBehaviours",[Xw,ev]),Ko("selectClasses",[]),Ko("selectAttributes",{}),Fo("data")],factory:pL}),vL=function(e,t){var n=q(e.items,(function(e){return{text:t.translate(e.text),value:e.value}})),r=e.label.map((function(e){return RM(e,t)})),i=kM.parts.field({dom:{},selectAttributes:{size:e.size},options:n,factory:mL,selectBehaviours:hf([Bg.config({disabled:function(){return e.disabled||t.isDisabled()}}),TM.config({}),jw("selectbox-change",[Ns(Ha(),(function(t,n){Cs(t,zM,{name:e.name})}))])])}),o=e.size>1?z.none():z.some(UC("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},t.icons)),a={dom:{tag:"div",classes:["tox-selectfield"]},components:ne([[i],o.toArray()])};return kM.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([r.toArray(),[a]]),fieldBehaviours:hf([Bg.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){kM.getField(e).each(Bg.disable)},onEnabled:function(e){kM.getField(e).each(Bg.enable)}}),gE()])})},gL=function(e,t){var n=function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}},r=function(e){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:q(e,n)}]}},i=function(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}},o=function(e){return{dom:{tag:"tr"},components:q(e,i)}},a=function(e){return{dom:{tag:"tbody"},components:q(e,o)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(e.header),a(e.cells)],behaviours:hf([TM.config({}),Xw.config({})])}},bL=function(e,t){var n=e.label.map((function(e){return RM(e,t)})),r=[Bg.config({disabled:function(){return e.disabled||t.isDisabled()}}),gE(),Dw.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return _s(e,FM),z.some(!0)}}),jw("textfield-change",[Ns(Va(),(function(t,n){Cs(t,zM,{name:e.name})})),Ns(Qa(),(function(t,n){Cs(t,zM,{name:e.name})}))]),TM.config({})],i=e.validation.map((function(e){return xA.config({getRoot:function(e){return gn(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=ev.getValue(t),r=e.validator(n);return cA.pure(!0===r?ri.value(n):ri.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),o=e.placeholder.fold(w({}),(function(e){return{placeholder:t.translate(e)}})),a=e.inputMode.fold(w({}),(function(e){return{inputmode:e}})),s=D(D({},o),a),u=kM.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:s,inputClasses:[e.classname],inputBehaviours:hf(ne([r,i])),selectOnFocus:!1,factory:JM}),c=e.flex?["tox-form__group--stretched"]:[],l=c.concat(e.maximized?["tox-form-group--maximize"]:[]),f=[Bg.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){kM.getField(e).each(Bg.disable)},onEnabled:function(e){kM.getField(e).each(Bg.enable)}}),gE()];return MM(n,u,l,f)},yL=function(e,t){return bL({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:e.disabled,classname:"tox-textfield",validation:z.none(),maximized:e.maximized},t)},wL=function(e,t){return bL({name:e.name,multiline:!0,label:e.label,inputMode:z.none(),placeholder:e.placeholder,flex:!0,disabled:e.disabled,classname:"tox-textarea",validation:z.none(),maximized:e.maximized},t)},xL=function(e,t){var n=e.stream.streams,r=n.setup(e,t);return Ts([Ns(e.event,r),Hs((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[Ns(e,(function(){return t.cancel()}))]})).getOr([])))},_L=Object.freeze({__proto__:null,events:xL}),CL=function(e){var t=ia(null),n=function(){return{timer:null!==t.get()?"set":"unset"}},r=function(e){t.set(e)},i=function(){var e=t.get();null!==e&&e.cancel()};return Su({readState:n,setTimer:r,cancel:i})},kL=function(e){return e.stream.streams.state(e)},SL=Object.freeze({__proto__:null,throttle:CL,init:kL}),OL=function(e,t){var n=e.stream,r=QC(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},EL=[Mo("stream",ko("mode",{throttle:[Do("delay"),Ko("stopEvent",!0),fl("streams",{setup:OL,state:CL})]})),Ko("event","input"),Fo("cancelEvent"),cl("onStream")],TL=mf({fields:EL,name:"streaming",active:_L,state:SL}),DL=function(e,t,n){var r=ev.getValue(n);ev.setValue(t,r),AL(t)},ML=function(e,t){var n=e.element,r=dc(n),i=n.dom;"number"!==Vn(n,"type")&&t(i,r)},AL=function(e){ML(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},NL=function(e,t){ML(e,(function(e,n){return e.setSelectionRange(t,n.length)}))},PL=function(e,t,n){if(e.selectsOver){var r=ev.getValue(t),i=e.getDisplayText(r),o=ev.getValue(n),a=e.getDisplayText(o);return 0===a.indexOf(i)?z.some((function(){DL(e,t,n),NL(t,i.length)})):z.none()}return z.none()},IL=w("alloy.typeahead.itemexecute"),RL=function(e,t,n,r){var i=function(t,n,i){e.previewing.set(!1);var o=EA.getCoupled(t,"sandbox");if(bm.isOpen(o))bg.getCurrent(o).each((function(e){rb.getHighlighted(e).fold((function(){i(e)}),(function(){Es(o,e.element,"keydown",n)}))}));else{var s=function(e){bg.getCurrent(e).each(i)};IA(e,a(t),t,o,r,s,eA.HighlightFirst).get(v)}},o=GM(e),a=function(e){return function(t){return t.map((function(t){var n=Se(t.menus),r=re(n,(function(e){return X(e.items,(function(e){return"item"===e.type}))})),i=ev.getState(e);return i.update(q(r,(function(e){return e.data}))),t}))}},s=[Xw.config({}),ev.config({onSetValue:e.onSetValue,store:D({mode:"dataset",getDataKey:function(e){return dc(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){hc(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return ha("initialValue",e)})).getOr({}))}),TL.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,n){var i=EA.getCoupled(t,"sandbox"),o=Xw.isFocused(t);if(o&&dc(t.element).length>=e.minChars){var s=bg.getCurrent(i).bind((function(e){return rb.getHighlighted(e).map(ev.getValue)}));e.previewing.set(!0);var u=function(t){bg.getCurrent(i).each((function(t){s.fold((function(){e.model.selectsOver&&rb.highlightFirst(t)}),(function(e){rb.highlightBy(t,(function(t){var n=ev.getValue(t);return n.value===e.value})),rb.getHighlighted(t).orThunk((function(){return rb.highlightFirst(t),z.none()}))}))}))};IA(e,a(t),t,i,r,u,eA.HighlightFirst).get(v)}},cancelEvent:as()}),Dw.config({mode:"special",onDown:function(e,t){return i(e,t,rb.highlightFirst),z.some(!0)},onEscape:function(e){var t=EA.getCoupled(e,"sandbox");return bm.isOpen(t)?(bm.close(t),z.some(!0)):z.none()},onUp:function(e,t){return i(e,t,rb.highlightLast),z.some(!0)},onEnter:function(t){var n=EA.getCoupled(t,"sandbox"),r=bm.isOpen(n);if(r&&!e.previewing.get())return bg.getCurrent(n).bind((function(e){return rb.getHighlighted(e)})).map((function(e){return Cs(t,IL(),{item:e}),!0}));var i=ev.getValue(t);return _s(t,as()),e.onExecute(n,t,i),r&&bm.close(n),z.some(!0)}}),mx.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),EA.config({others:{sandbox:function(t){return FA(e,t,{onOpen:function(){return mx.on(t)},onClose:function(){return mx.off(t)}})}}}),jw("typeaheadevents",[Us((function(t){var n=v;zA(e,a(t),t,r,n,eA.HighlightFirst).get(v)})),Ns(IL(),(function(t,n){var r=EA.getCoupled(t,"sandbox");DL(e.model,t,n.event.item),_s(t,as()),e.onItemExecute(t,r,n.event.item,ev.getValue(t)),bm.close(r),AL(t)}))].concat(e.dismissOnBlur?[Ns(Za(),(function(e){var t=EA.getCoupled(e,"sandbox");Ef(t.element).isNone()&&bm.close(t)}))]:[]))];return{uid:e.uid,dom:YM(xi(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:D(D({},o),rv(e.typeaheadBehaviours,s)),eventOrder:e.eventOrder}},zL=w([Fo("lazySink"),Do("fetch"),Ko("minChars",5),Ko("responseTime",1e3),sl("onOpen"),Ko("getHotspot",z.some),Ko("getAnchorOverrides",w({})),Ko("layouts",z.none()),Ko("eventOrder",{}),ra("model",{},[Ko("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),Ko("selectsOver",!0),Ko("populateFromBrowse",!0)]),sl("onSetValue"),ul("onExecute"),sl("onItemExecute"),Ko("inputClasses",[]),Ko("inputAttributes",{}),Ko("inputStyles",{}),Ko("matchWidth",!0),Ko("useMinWidth",!1),Ko("dismissOnBlur",!0),ol(["openClass"]),Fo("initialData"),tv("typeaheadBehaviours",[Xw,ev,TL,Dw,mx,EA]),Eo("previewing",(function(){return ia(!0)}))].concat(qM()).concat(VA())),BL=w([Iv({schema:[il()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){PL(e.model,r,n).fold((function(){return rb.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&DL(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return Cs(e,IL(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&DL(e.model,t,n)}))}}}})]),LL=hg({name:"Typeahead",configFields:zL(),partFields:BL(),factory:RL}),$L=function(e){var t=function(){return $L(e.toCached())},n=function(t){return $L(e.bind((function(e){return e.fold((function(e){return cA.pure(ri.error(e))}),(function(e){return t(e)}))})))},r=function(t){return $L(e.map((function(e){return e.bind(t)})))},i=function(t){return $L(e.map((function(e){return e.map(t)})))},o=function(t){return $L(e.map((function(e){return e.mapError(t)})))},a=function(t,n){return e.map((function(e){return e.fold(t,n)}))},s=function(t,n){return $L(cA.nu((function(r){var i=!1,o=setTimeout((function(){i=!0,r(ri.error(n()))}),t);e.get((function(e){i||(clearTimeout(o),r(e))}))})))};return D(D({},e),{toCached:t,bindFuture:n,bindResult:r,mapResult:i,mapError:o,foldResult:a,withTimeout:s})},FL=function(e){return $L(cA.nu(e))},jL=function(e){return $L(cA.pure(ri.value(e)))},VL=function(e){return $L(cA.pure(ri.error(e)))},HL=function(e){return $L(cA.pure(e))},WL=function(e){return $L(e.map(ri.value))},UL=function(e){return FL((function(t){e.then((function(e){t(ri.value(e))}),(function(e){t(ri.error(e))}))}))},qL={nu:FL,wrap:$L,pure:jL,value:jL,error:VL,fromResult:HL,fromFuture:WL,fromPromise:UL},GL={type:"separator"},KL=function(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:v}},YL=function(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:v}},XL=function(e){return q(e,KL)},JL=function(e,t){return X(t,(function(t){return t.type===e}))},ZL=function(e,t){return XL(JL(e,t))},QL=function(e){return ZL("header",e.targets)},e$=function(e){return ZL("anchor",e.targets)},t$=function(e){return z.from(e.anchorTop).map((function(e){return YL("<top>",e)})).toArray()},n$=function(e){return z.from(e.anchorBottom).map((function(e){return YL("<bottom>",e)})).toArray()},r$=function(e){return q(e,(function(e){return YL(e,e)}))},i$=function(e){return Z(e,(function(e,t){var n=0===e.length||0===t.length;return n?e.concat(t):e.concat(GL,t)}),[])},o$=function(e,t){var n=e.toLowerCase();return X(t,(function(e){var t=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text;return Ve(t.toLowerCase(),n)||Ve(e.value.toLowerCase(),n)}))},a$=function(e,t,n){var r=ev.getValue(t),i=void 0!==r.meta.text?r.meta.text:r.value,o=n.getLinkInformation();return o.fold((function(){return[]}),(function(t){var r=o$(i,r$(n.getHistory(e)));return"file"===e?i$([r,o$(i,QL(t)),o$(i,ne([t$(t),e$(t),n$(t)]))]):r}))},s$=iu("aria-invalid"),u$=function(e,t,n){var r,i=t.shared.providers,o=function(t){var r=ev.getValue(t);n.addToHistory(r.value,e.filetype)},a=kM.parts.field({factory:LL,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":s$,type:"url"},minChars:0,responseTime:0,fetch:function(r){var i=a$(e.filetype,r,n),o=eB(i,Zk.BUBBLE_TO_SANDBOX,t,!1);return cA.pure(o)},getHotspot:function(e){return h.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(xA)&&xA.run(e).get(v)},typeaheadBehaviours:hf(ne([n.getValidationHandler().map((function(t){return xA.config({getRoot:function(e){return gn(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){c.getOpt(e).each((function(e){Fn(e.element,"title",i.translate(t))}))}},validator:{validate:function(n){var r=ev.getValue(n);return qL.nu((function(n){t({type:e.filetype,url:r.value},(function(e){if("invalid"===e.status){var t=ri.error(e.message);n(t)}else{var r=ri.value(e.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[Bg.config({disabled:function(){return e.disabled||i.isDisabled()}}),TM.config({}),jw("urlinput-events",ne(["file"===e.filetype?[Ns(Va(),(function(t){Cs(t,zM,{name:e.name})}))]:[],[Ns(Ha(),(function(t){Cs(t,zM,{name:e.name}),o(t)})),Ns(Qa(),(function(t){Cs(t,zM,{name:e.name}),o(t)}))]]))]])),eventOrder:(r={},r[Va()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:SS(!1,1,"normal")},onExecute:function(e,t,n){Cs(t,FM,{})},onItemExecute:function(t,n,r,i){o(t),Cs(t,zM,{name:e.name})}}),s=e.label.map((function(e){return RM(e,i)})),u=function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=e),UC(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:D({title:i.translate(r),"aria-live":"polite"},t.fold((function(){return{}}),(function(e){return{id:e}})))},i.icons)},c=E_(u("invalid",z.some(s$),"warning")),l=E_({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[c.asSpec()]}),f=n.getUrlPicker(e.filetype),d=iu("browser.url.event"),h=E_({dom:{tag:"div",classes:["tox-control-wrap"]},components:[a,l.asSpec()],behaviours:hf([Bg.config({disabled:function(){return e.disabled||i.isDisabled()}})])}),p=E_(uB({name:e.name,icon:z.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return _s(e,d)}),i,[],["tox-browse-url"])),m=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ne([[h.asSpec()],f.map((function(){return p.asSpec()})).toArray()])}},g=function(t){bg.getCurrent(t).each((function(n){var r=ev.getValue(n),i=D({fieldname:e.name},r);f.each((function(r){r(i).get((function(r){ev.setValue(n,r),Cs(t,zM,{name:e.name})}))}))}))};return kM.sketch({dom:PM(),components:s.toArray().concat([m()]),fieldBehaviours:hf([Bg.config({disabled:function(){return e.disabled||i.isDisabled()},onDisabled:function(e){kM.getField(e).each(Bg.disable),p.getOpt(e).each(Bg.disable)},onEnabled:function(e){kM.getField(e).each(Bg.enable),p.getOpt(e).each(Bg.enable)}}),gE(),jw("url-input-events",[Ns(d,g)])])})},c$=function(e,t){return bM.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[C_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:FC(e.icon,t.icons),attributes:{title:t.translate(e.iconTooltip)}},action:function(t){Cs(t,$M,{name:"alert-banner",value:e.url})},buttonBehaviours:hf([HC()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})},l$=function(e,t){var n=ev.config({store:{mode:"manual",getValue:function(e){var t=e.element.dom;return t.checked},setValue:function(e,t){var n=e.element.dom;n.checked=t}}}),r=function(e){return e.element.dom.click(),z.some(!0)},i=kM.parts.field({factory:{sketch:x},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:hf([QI.self(),Bg.config({disabled:function(){return e.disabled||t.isDisabled()}}),TM.config({}),Xw.config({}),n,Dw.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),jw("checkbox-events",[Ns(Ha(),(function(t,n){Cs(t,zM,{name:e.name})}))])])}),o=kM.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(e.label)},behaviours:hf([XA.config({})])}),a=function(e){var n="checked"===e?"selected":"unselected";return UC(n,{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},t.icons)},s=E_({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[a("checked"),a("unchecked")]});return kM.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[i,s.asSpec(),o],fieldBehaviours:hf([Bg.config({disabled:function(){return e.disabled||t.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){kM.getField(e).each(Bg.disable)},onEnabled:function(e){kM.getField(e).each(Bg.enable)}}),gE()])})},f$=function(e){return"presentation"===e.presets?bM.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):bM.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:hf([TM.config({}),Xw.config({})])})},d$=function(e){return function(t,n,r){return Oe(n,"name").fold((function(){return e(n,r)}),(function(i){return t.field(i,e(n,r))}))}},h$=function(e){return function(t,n,r){var i=xi(n,{source:"dynamic"});return d$(e)(t,i,r)}},p$={bar:d$((function(e,t){return wM(e,t.shared)})),collection:d$((function(e,t){return UM(e,t.shared.providers)})),alertbanner:d$((function(e,t){return c$(e,t.shared.providers)})),input:d$((function(e,t){return yL(e,t.shared.providers)})),textarea:d$((function(e,t){return wL(e,t.shared.providers)})),label:d$((function(e,t){return sL(e,t.shared)})),iframe:h$((function(e,t){return DR(e,t.shared.providers)})),button:d$((function(e,t){return hB(e,t.shared.providers)})),checkbox:d$((function(e,t){return l$(e,t.shared.providers)})),colorinput:d$((function(e,t){return tN(e,t.shared,t.colorinput)})),colorpicker:d$(rR),dropzone:d$((function(e,t){return bR(e,t.shared.providers)})),grid:d$((function(e,t){return yR(e,t.shared)})),listbox:d$((function(e,t){return dL(e,t)})),selectbox:d$((function(e,t){return vL(e,t.shared.providers)})),sizeinput:d$((function(e,t){return OB(e,t.shared.providers)})),urlinput:d$((function(e,t){return u$(e,t,t.urlinput)})),customeditor:d$(aR),htmlpanel:d$(f$),imagetools:d$((function(e,t){return aL(e,t.shared.providers)})),table:d$((function(e,t){return gL(e,t.shared.providers)})),panel:d$((function(e,t){return hL(e,t)}))},m$={field:function(e,t){return t}},v$=function(e,t,n){var r=xi(n,{shared:{interpreter:function(t){return g$(e,t,r)}}});return g$(e,t,r)},g$=function(e,t,n){return Oe(p$,t.type).fold((function(){return console.error('Unknown factory type "'+t.type+'", defaulting to container: ',t),t}),(function(r){return r(e,t,n)}))},b$=function(e,t){var n=m$;return g$(n,e,t)},y$={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},w$=function(e,t,n){var r=12,i={maxHeightFunction:Ed()},o=function(){return{type:"node",root:Mn(e()),node:z.from(e()),bubble:Nd(r,r,y$),layouts:{onRtl:function(){return[d_]},onLtr:function(){return[f_]}},overrides:i}},a=function(){return{type:"hotspot",hotspot:t(),bubble:Nd(-r,r,y$),layouts:{onRtl:function(){return[jl]},onLtr:function(){return[Vl]}},overrides:i}};return function(){return n()?o():a()}},x$=function(e,t,n){var r=function(){return{type:"node",root:Mn(e()),node:z.from(e()),layouts:{onRtl:function(){return[h_]},onLtr:function(){return[h_]}}}},i=function(){return{type:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[ql]},onLtr:function(){return[ql]}}}};return function(){return n()?r():i()}},_$=function(e,t){return function(){return{type:"selection",root:t(),getSelection:function(){var t=e.selection.getRng();return z.some(kh.range(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(t.endContainer),t.endOffset))}}}},C$=function(e){return function(t){return{type:"node",root:e(),node:t}}},k$=function(e,t,n){var r=JO(e),i=function(){return tt.fromDom(e.getBody())},o=function(){return tt.fromDom(e.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:w$(o,t,a),banner:x$(o,t,a),cursor:_$(e,i),node:C$(i)}},S$=function(e){return function(t,n){var r=cD(e);r(t,n)}},O$=function(e){return function(){return WT(e)}},E$=function(e){return function(){return qT(e)}},T$=function(e){return function(){return tD(e)}},D$=function(e){return{colorPicker:S$(e),hasCustomColors:O$(e),getColors:E$(e),getColorCols:T$(e)}},M$=function(e){return function(){return nE(e)}},A$=function(e){return{isDraggableModal:M$(e)}},N$=function(e){var t=ia(qO(e)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===t.get()},getDockingMode:t.get,setDockingMode:t.set}},P$=[{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"}]}],I$=function(e){return Ee(e,"items")},R$=function(e){return Ee(e,"block")},z$=function(e){return Ee(e,"inline")},B$=function(e){return Ee(e,"selector")},L$=function(e){return Z(e,(function(e,t){if(I$(t)){var n=L$(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(z$(t)||R$(t)||B$(t)){var r=o(t.name)?t.name:t.title.toLowerCase(),i="custom-"+r;return{customFormats:e.customFormats.concat([{name:i,format:t}]),formats:e.formats.concat([{title:t.title,format:i,icon:t.icon}])}}return D(D({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},$$=function(e,t){var n=L$(t),r=function(t){G(t,(function(t){e.formatter.has(t.name)||e.formatter.register(t.name,t.format)}))};return e.formatter?r(n.customFormats):e.on("init",(function(){r(n.customFormats)})),n.formats},F$=function(e){return NO(e).map((function(t){var n=$$(e,t);return PO(e)?P$.concat(n):n})).getOr(P$)},j$=function(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return xi(e,r)},V$=function(e,t,n,r){var i=function(e){return j$(e,n,r)},a=function(e){var t={type:"submenu"};return xi(e,t)},s=function(t){var i=o(t.name)?t.name:iu(t.title),a="custom-"+i,s={type:"formatter",format:a,isSelected:n(a),getStylePreview:r(a)},u=xi(t,s);return e.formatter.register(i,u),u},u=function(e){return q(e,(function(e){var t=me(e);if(Te(e,"items")){var n=u(e.items);return xi(a(e),{getStyleItems:w(n)})}return Te(e,"format")?i(e):1===t.length&&V(t,"title")?xi(e,{type:"separator"}):s(e)}))};return u(t)},H$=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?z.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):z.none()}},r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[e.format]},i=ia([]),o=ia([]),a=ia([]),s=ia([]),u=ia(!1);e.on("PreInit",(function(a){var s=F$(e),u=V$(e,s,t,n);i.set(u),o.set(re(u,r))})),e.on("addStyleModifications",(function(i){var o=V$(e,i.items,t,n);a.set(o),u.set(i.replace),s.set(re(o,r))}));var c=function(){var e=u.get()?[]:i.get(),t=a.get();return e.concat(t)},l=function(){var e=u.get()?[]:o.get(),t=s.get();return e.concat(t)};return{getData:c,getFlattenedKeys:l}},W$=function(e){return d(e)&&1===e.nodeType},U$=sR.trim,q$=function(e){return function(t){if(W$(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},G$=q$("true"),K$=q$("false"),Y$=function(e,t,n,r,i){return{type:e,title:t,url:n,level:r,attach:i}},X$=function(e){while(e=e.parentNode){var t=e.contentEditable;if(t&&"inherit"!==t)return G$(e)}return!1},J$=function(e,t){return q(Yh(tt.fromDom(t),e),(function(e){return e.dom}))},Z$=function(e){return e.innerText||e.textContent},Q$=function(e){return e.id?e.id:iu("h")},eF=function(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)},tF=function(e){return eF(e)&&rF(e)},nF=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},rF=function(e){return X$(e)&&!K$(e)},iF=function(e){return nF(e)&&rF(e)},oF=function(e){return nF(e)?parseInt(e.nodeName.substr(1),10):0},aF=function(e){var t=Q$(e),n=function(){e.id=t};return Y$("header",Z$(e),"#"+t,oF(e),n)},sF=function(e){var t=e.id||e.name,n=Z$(e);return Y$("anchor",n||"#"+t,"#"+t,0,v)},uF=function(e){return q(X(e,iF),aF)},cF=function(e){return q(X(e,tF),sF)},lF=function(e){var t=J$("h1,h2,h3,h4,h5,h6,a:not([href])",e);return t},fF=function(e){return U$(e.title).length>0},dF=function(e){var t=lF(e);return X(uF(t).concat(cF(t)),fF)},hF={find:dF},pF="tinymce-url-history",mF=5,vF=function(e){return o(e)&&/^https?/.test(e)},gF=function(e){return s(e)&&e.length<=mF&&ie(e,vF)},bF=function(e){return a(e)&&ke(e,(function(e){return!gF(e)})).isNone()},yF=function(){var e,t=RT.getItem(pF);if(null===t)return{};try{e=JSON.parse(t)}catch(n){if(n instanceof SyntaxError)return console.log("Local storage "+pF+" was not valid JSON",n),{};throw n}return bF(e)?e:(console.log("Local storage "+pF+" was not valid format",e),{})},wF=function(e){if(!bF(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));RT.setItem(pF,JSON.stringify(e))},xF=function(e){var t=yF();return Oe(t,e).getOr([])},_F=function(e,t){if(vF(e)){var n=yF(),r=Oe(n,t).getOr([]),i=X(r,(function(t){return t!==e}));n[t]=[e].concat(i).slice(0,mF),wF(n)}},CF=function(e){return!!e},kF=function(e){return be(sR.makeMap(e,/[, ]/),CF)},SF=function(e){return z.from(aE(e)).filter(h)},OF=function(e){var t=z.some(sE(e)).filter(CF),n=z.some(uE(e)).filter(CF),r=t.or(n).map(kF);return SF(e).fold(O,(function(e){return r.fold(E,(function(e){return me(e).length>0&&e}))}))},EF=function(e,t){var n=OF(e);return c(n)?n?SF(e):z.none():n[t]?SF(e):z.none()},TF=function(e,t){return EF(e,t).map((function(n){return function(r){return cA.nu((function(i){var s=function(e,t){if(!o(e))throw new Error("Expected value to be string");if(void 0!==t&&!a(t))throw new Error("Expected meta to be a object");var n={value:e,meta:t};i(n)},u=D({filetype:t,fieldname:r.fieldname},z.from(r.meta).getOr({}));n.call(e,s,r.value,u)}))}}))},DF=function(e){return z.from(e).filter(o).getOrUndefined()},MF=function(e){return cE(e)?z.none():z.some({targets:hF.find(e.getBody()),anchorTop:DF(lE(e)),anchorBottom:DF(fE(e))})},AF=function(e){return z.from(dE(e))},NF=function(e){return{getHistory:xF,addToHistory:_F,getLinkInformation:function(){return MF(e)},getValidationHandler:function(){return AF(e)},getUrlPicker:function(t){return TF(e,t)}}},PF=function(e,t,n){var r=ia(!1),i=N$(t),o={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:IC.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return b$(e,o)},anchors:k$(t,n,i.isPositionedAtTop),header:i,getSink:function(){return ri.value(e)}},urlinput:NF(t),styleselect:H$(t),colorinput:D$(t),dialog:A$(t),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(e){return r.set(e)}};return o},IF=function(e,t,n){var r=function(e,r){G([t,n],(function(t){t.broadcastEvent(e,r)}))},i=function(e,r){G([t,n],(function(t){t.broadcastOn([e],r)}))},o=function(e){return i(ym(),{target:e.target})},a=_f(),s=ad(a,"touchstart",o),u=ad(a,"touchmove",(function(e){return r(us(),e)})),c=ad(a,"touchend",(function(e){return r(cs(),e)})),l=ad(a,"mousedown",o),f=ad(a,"mouseup",(function(e){0===e.raw.button&&i(xm(),{target:e.target})})),d=function(e){return i(ym(),{target:tt.fromDom(e.target)})},h=function(e){0===e.button&&i(xm(),{target:tt.fromDom(e.target)})},p=function(){G(e.editorManager.get(),(function(t){e!==t&&t.fire("DismissPopups",{relatedTarget:e})}))},m=function(e){return r(ls(),ud(e))},v=function(e){i(wm(),{}),r(fs(),ud(e))},g=function(){return i(wm(),{})},b=function(t){t.state&&i(ym(),{target:tt.fromDom(e.getContainer())})},y=function(e){i(ym(),{target:tt.fromDom(e.relatedTarget.getContainer())})};e.on("PostRender",(function(){e.on("click",d),e.on("tap",d),e.on("mouseup",h),e.on("mousedown",p),e.on("ScrollWindow",m),e.on("ResizeWindow",v),e.on("ResizeEditor",g),e.on("AfterProgressState",b),e.on("DismissPopups",y)})),e.on("remove",(function(){e.off("click",d),e.off("tap",d),e.off("mouseup",h),e.off("mousedown",p),e.off("ScrollWindow",m),e.off("ResizeWindow",v),e.off("ResizeEditor",g),e.off("AfterProgressState",b),e.off("DismissPopups",y),l.unbind(),s.unbind(),u.unbind(),c.unbind(),f.unbind()})),e.on("detach",(function(){Zp(t),Zp(n),t.destroy(),n.destroy()}))},RF=ng,zF=Lv,BF=w([Ko("shell",!1),Do("makeItem"),Ko("setupItem",v),iv.field("listBehaviours",[$w])]),LF=function(){return{behaviours:hf([$w.config({})])}},$F=Rv({name:"items",overrides:LF}),FF=w([$F]),jF=w("CustomList"),VF=function(e,t,n,r){var i=function(t,n){a(t).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 i=$w.contents(r),o=n.length,a=o-i.length,s=a>0?W(a,(function(){return e.makeItem()})):[],u=i.slice(o);G(u,(function(e){return $w.remove(r,e)})),G(s,(function(e){return $w.append(r,e)}));var c=$w.contents(r);G(c,(function(r,i){e.setupItem(t,r,n[i],i)}))}))},o=e.shell?{behaviours:[$w.config({})],components:[]}:{behaviours:[],components:t},a=function(t){return e.shell?z.some(t):Kv(t,e,"items")};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:rv(e.listBehaviours,o.behaviours),apis:{setItems:i}}},HF=hg({name:jF(),configFields:BF(),partFields:FF(),factory:VF,apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),WF=w([Do("dom"),Ko("shell",!0),tv("toolbarBehaviours",[$w])]),UF=function(){return{behaviours:hf([$w.config({})])}},qF=w([Rv({name:"groups",overrides:UF})]),GF=function(e,t,n,r){var i=function(e,t){o(e).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(e){$w.set(e,t)}))},o=function(t){return e.shell?z.some(t):Kv(t,e,"groups")},a=e.shell?{behaviours:[$w.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:a.components,behaviours:rv(e.toolbarBehaviours,a.behaviours),apis:{setGroups:i},domModification:{attributes:{role:"group"}}}},KF=hg({name:"Toolbar",configFields:WF(),partFields:qF(),factory:GF,apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),YF=v,XF=O,JF=w([]),ZF=Object.freeze({__proto__:null,setup:YF,isDocked:XF,getBehaviours:JF}),QF=function(e){var t=De(Qn(e,"position"),"fixed"),n=t?z.none():yn(e);return n.orThunk((function(){var t=tt.fromTag("span");return gn(e).bind((function(e){Mr(e,t);var n=yn(t);return Rr(t),n}))}))},ej=function(e){return QF(e).map(hr).getOrThunk((function(){return lr(0,0)}))},tj=aa.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),nj=function(e,t){var n=e.element;oc(n,t.transitionClass),sc(n,t.fadeOutClass),oc(n,t.fadeInClass),t.onShow(e)},rj=function(e,t){var n=e.element;oc(n,t.transitionClass),sc(n,t.fadeInClass),oc(n,t.fadeOutClass),t.onHide(e)},ij=function(e,t){return e.y<t.bottom&&e.bottom>t.y},oj=function(e,t){return e.y>=t.y},aj=function(e,t){return e.bottom<=t.bottom},sj=function(e,t,n){return ie(e,(function(e){switch(e){case"bottom":return aj(t,n);case"top":return oj(t,n)}}))},uj=function(e,t){return t.getInitialPos().map((function(t){return Xr(t.bounds.x,t.bounds.y,gr(e),ar(e))}))},cj=function(e,t,n){n.setInitialPos({style:er(e),position:Jn(e,"position")||"static",bounds:t})},lj=function(e,t,n){return n.getInitialPos().bind((function(r){switch(n.clearInitialPos(),r.position){case"static":return z.some(tj.static());case"absolute":var i=QF(e).map(Jr).getOrThunk((function(){return Jr(Bn())}));return z.some(tj.absolute(Df("absolute",Oe(r.style,"left").map((function(e){return t.x-i.x})),Oe(r.style,"top").map((function(e){return t.y-i.y})),Oe(r.style,"right").map((function(e){return i.right-t.right})),Oe(r.style,"bottom").map((function(e){return i.bottom-t.bottom})))));default:return z.none()}}))},fj=function(e,t,n){return uj(e,n).filter((function(e){return sj(n.getModes(),e,t)})).bind((function(t){return lj(e,t,n)}))},dj=function(e,t,n){var r=Jr(e);if(sj(n.getModes(),r,t))return z.none();cj(e,r,n);var i=Qr(),o=r.x-i.x,a=t.y-i.y,s=i.bottom-t.bottom,u=r.y<=t.y;return z.some(tj.fixed(Df("fixed",z.some(o),u?z.some(a):z.none(),z.none(),u?z.none():z.some(s))))},hj=function(e,t,n){var r=e.element,i=De(Qn(r,"position"),"fixed");return i?fj(r,t,n):dj(r,t,n)},pj=function(e,t){var n=e.element;return uj(n,t).bind((function(e){return lj(n,e,t)}))},mj=function(e,t,n){n.setDocked(!1),G(["left","right","top","bottom","position"],(function(t){return nr(e.element,t)})),t.onUndocked(e)},vj=function(e,t,n,r){var i="fixed"===r.position;n.setDocked(i),Af(e.element,r);var o=i?t.onDocked:t.onUndocked;o(e)},gj=function(e,t,n,r,i){void 0===i&&(i=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(o){var a=ij(o,r);if(a!==n.isVisible())if(n.setVisible(a),i&&!a)cc(e.element,[t.fadeOutClass]),t.onHide(e);else{var s=a?nj:rj;s(e,t)}}))}))},bj=function(e,t,n){var r=t.lazyViewport(e),i=n.isDocked();i&&gj(e,t,n,r),hj(e,r,n).each((function(i){i.fold((function(){return mj(e,t,n)}),(function(r){return vj(e,t,n,r)}),(function(i){gj(e,t,n,r,!0),vj(e,t,n,i)}))}))},yj=function(e,t,n){var r=e.element;n.setDocked(!1),pj(e,n).each((function(r){r.fold((function(){return mj(e,t,n)}),(function(r){return vj(e,t,n,r)}),v)})),n.setVisible(!0),t.contextual.each((function(t){lc(r,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)})),wj(e,t,n)},wj=function(e,t,n){e.getSystem().isConnected()&&bj(e,t,n)},xj=function(e,t,n){n.isDocked()&&yj(e,t,n)},_j=function(e,t,n){return n.isDocked()},Cj=function(e,t,n,r){return n.setModes(r)},kj=function(e,t,n){return n.getModes()},Sj=Object.freeze({__proto__:null,refresh:wj,reset:xj,isDocked:_j,getModes:kj,setModes:Cj}),Oj=function(e,t){return Ts([js(qa(),(function(n,r){e.contextual.each((function(e){if(uc(n.element,e.transitionClass)){lc(n.element,[e.transitionClass,e.fadeInClass]);var i=t.isVisible()?e.onShown:e.onHidden;i(n)}r.stop()}))})),Ns(ls(),(function(n,r){wj(n,e,t)})),Ns(fs(),(function(n,r){xj(n,e,t)}))])},Ej=Object.freeze({__proto__:null,events:Oj}),Tj=[qo("contextual",[No("fadeInClass"),No("fadeOutClass"),No("transitionClass"),Ro("lazyContext"),sl("onShow"),sl("onShown"),sl("onHide"),sl("onHidden")]),ea("lazyViewport",Qr),na("modes",["top","bottom"],uo),sl("onDocked"),sl("onUndocked")],Dj=function(e){var t=ia(!1),n=ia(!0),r=id(),i=ia(e.modes),o=function(){return"docked: "+t.get()+", visible: "+n.get()+", modes: "+i.get().join(",")};return Su({isDocked:t.get,setDocked:t.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:i.get,setModes:i.set,readState:o})},Mj=Object.freeze({__proto__:null,init:Dj}),Aj=mf({fields:Tj,name:"docking",active:Ej,apis:Sj,state:Mj}),Nj=w(iu("toolbar-height-change")),Pj={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},Ij="tox-tinymce--toolbar-sticky-on",Rj="tox-tinymce--toolbar-sticky-off",zj=function(e,t){var n=hn(t),r=n.dom.defaultView.innerHeight,i=Br(n),o=tt.fromDom(e.elm),a=Zr(o),s=ar(o),u=a.y,c=u+s,l=hr(t),f=ar(t),d=l.top,h=d+f,p=Math.abs(d-i.top)<2,m=Math.abs(h-(i.top+r))<2;if(p&&u<h)Lr(i.left,u-f,n);else if(m&&c>d){var v=u-r+s+f;Lr(i.left,v,n)}},Bj=function(e,t){return V(Aj.getModes(e),t)},Lj=function(e){var t=function(e){return sr(e)+(parseInt(Jn(e,"margin-top"),10)||0)+(parseInt(Jn(e,"margin-bottom"),10)||0)},n=e.element;gn(n).each((function(r){var i="padding-"+Aj.getModes(e)[0];if(Aj.isDocked(e)){var o=gr(r);Kn(n,"width",o+"px"),Kn(r,i,t(n)+"px")}else nr(n,"width"),nr(r,i)}))},$j=function(e,t){t?(sc(e,Pj.fadeOutClass),cc(e,[Pj.transitionClass,Pj.fadeInClass])):(sc(e,Pj.fadeInClass),cc(e,[Pj.fadeOutClass,Pj.transitionClass]))},Fj=function(e,t){var n=tt.fromDom(e.getContainer());t?(oc(n,Ij),sc(n,Rj)):(oc(n,Rj),sc(n,Ij))},jj=function(e,t){var n=hn(t);Of(n).filter((function(e){return!cn(t,e)})).filter((function(t){return cn(t,tt.fromDom(n.dom.body))||dn(e,t)})).each((function(){return Cf(t)}))},Vj=function(e,t){return Ef(e).orThunk((function(){return t().toOptional().bind((function(e){return Ef(e.element)}))}))},Hj=function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(Aj.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(Lj)})),e.on("SkinLoaded",(function(){n().each((function(e){Aj.isDocked(e)?Aj.reset(e):Aj.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(Aj.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){Aj.refresh(t);var n=t.element;Jb(n)&&zj(e,n)}))})),e.on("PostRender",(function(){Fj(e,!1)}))},Wj=function(e){return e().map(Aj.isDocked).getOr(!1)},Uj=function(){var e;return[yf.config({channels:(e={},e[Nj()]={onReceive:Lj},e)})]},qj=function(e,t){var n=id(),r=t.getSink,i=function(e){r().each((function(t){return e(t.element)}))},o=function(t){e.inline||Lj(t),Fj(e,Aj.isDocked(t)),t.getSystem().broadcastOn([wm()],{}),r().each((function(e){return e.getSystem().broadcastOn([wm()],{})}))},a=e.inline?[]:Uj();return A([Xw.config({}),Aj.config({contextual:D({lazyContext:function(t){var n=sr(t.element),r=e.inline?e.getContentAreaContainer():e.getContainer(),i=Jr(tt.fromDom(r)),o=i.height-n,a=i.y+(Bj(t,"top")?0:n);return z.some(Xr(i.x,a,i.width,o))},onShow:function(){i((function(e){return $j(e,!0)}))},onShown:function(e){i((function(e){return lc(e,[Pj.transitionClass,Pj.fadeInClass])})),n.get().each((function(t){jj(e.element,t),n.clear()}))},onHide:function(e){Vj(e.element,r).fold(n.clear,n.set),i((function(e){return $j(e,!1)}))},onHidden:function(){i((function(e){return lc(e,[Pj.transitionClass])}))}},Pj),lazyViewport:function(t){var n=Qr(),r=tE(e),i=n.y+(Bj(t,"top")?r:0),o=n.height-(Bj(t,"bottom")?r:0);return Xr(n.x,i,n.width,o)},modes:[t.header.getDockingMode()],onDocked:o,onUndocked:o})],a,!0)},Gj=Object.freeze({__proto__:null,setup:Hj,isDocked:Wj,getBehaviours:qj}),Kj=function(e){var t=e.editor,n=e.sticky?qj:JF;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:hf(n(t,e.sharedBackstage))}},Yj=Qi([No("type"),Mo("items",to([io([No("name"),$o("items",uo)]),uo]))].concat(Pk)),Xj=function(e){return wo("GroupToolbarButton",Yj,e)},Jj=[Ho("text"),Ho("tooltip"),Ho("icon"),Ro("fetch"),ea("onSetup",(function(){return v}))],Zj=Qi(A([No("type")],Jj,!0)),Qj=function(e){return wo("menubutton",Zj,e)},eV=Qi([No("type"),Ho("tooltip"),Ho("icon"),Ho("text"),Wo("select"),Ro("fetch"),ea("onSetup",(function(){return v})),Zo("presets","normal",["normal","color","listpreview"]),Ko("columns",1),Ro("onAction"),Ro("onItemAction")]),tV=function(e){return wo("SplitButton",eV,e)},nV=function(e,t){var n=function(e,n){var r=q(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},r=Qj(n).mapError((function(e){return Co(e)})).getOrDie();return nB(r,"tox-mbtn",t.backstage,z.some("menuitem"))}));$w.set(e,r)},r={focus:Dw.focusIn,setMenus:n};return{uid:e.uid,dom:e.dom,components:[],behaviours:hf([$w.config({}),jw("menubar-events",[Vs((function(t){e.onSetup(t)})),Ns(Ba(),(function(e,t){Lc(e.element,".tox-mbtn--active").each((function(n){$c(t.event.target,".tox-mbtn").each((function(t){cn(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){qA.expand(e),qA.close(n),Xw.focus(e)}))}))}))}))})),Ns(vs(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){qA.isOpen(n)&&(qA.expand(e),qA.close(n))}))}))}))]),Dw.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),z.some(!0)}}),TM.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},rV=dg({factory:nV,name:"silver.Menubar",configFields:[Do("dom"),Do("uid"),Do("onEscape"),Do("backstage"),Ko("onSetup",v)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),iV=function(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))},oV=function(e){return e.dimension.property},aV=function(e,t){return e.dimension.getDimension(t)},sV=function(e,t){var n=iV(e,t);lc(n,[t.shrinkingClass,t.growingClass])},uV=function(e,t){sc(e.element,t.openClass),oc(e.element,t.closedClass),Kn(e.element,oV(t),"0px"),rr(e.element)},cV=function(e,t){sc(e.element,t.closedClass),oc(e.element,t.openClass),nr(e.element,oV(t))},lV=function(e,t,n,r){n.setCollapsed(),Kn(e.element,oV(t),aV(t,e.element)),rr(e.element),sV(e,t),uV(e,t),t.onStartShrink(e),t.onShrunk(e)},fV=function(e,t,n,r){var i=r.getOrThunk((function(){return aV(t,e.element)}));n.setCollapsed(),Kn(e.element,oV(t),i),rr(e.element);var o=iV(e,t);sc(o,t.growingClass),oc(o,t.shrinkingClass),uV(e,t),t.onStartShrink(e)},dV=function(e,t,n){var r=aV(t,e.element),i="0px"===r?lV:fV;i(e,t,n,z.some(r))},hV=function(e,t,n){var r=iV(e,t),i=uc(r,t.shrinkingClass),o=aV(t,e.element);cV(e,t);var a=aV(t,e.element),s=function(){Kn(e.element,oV(t),o),rr(e.element)},u=function(){uV(e,t)},c=i?s:u;c(),sc(r,t.shrinkingClass),oc(r,t.growingClass),cV(e,t),Kn(e.element,oV(t),a),n.setExpanded(),t.onStartGrow(e)},pV=function(e,t,n){if(n.isExpanded()){nr(e.element,oV(t));var r=aV(t,e.element);Kn(e.element,oV(t),r)}},mV=function(e,t,n){n.isExpanded()||hV(e,t,n)},vV=function(e,t,n){n.isExpanded()&&dV(e,t,n)},gV=function(e,t,n){n.isExpanded()&&lV(e,t,n)},bV=function(e,t,n){return n.isExpanded()},yV=function(e,t,n){return n.isCollapsed()},wV=function(e,t,n){var r=iV(e,t);return!0===uc(r,t.growingClass)},xV=function(e,t,n){var r=iV(e,t);return!0===uc(r,t.shrinkingClass)},_V=function(e,t,n){return wV(e,t)||xV(e,t)},CV=function(e,t,n){var r=n.isExpanded()?dV:hV;r(e,t,n)},kV=Object.freeze({__proto__:null,refresh:pV,grow:mV,shrink:vV,immediateShrink:gV,hasGrown:bV,hasShrunk:yV,isGrowing:wV,isShrinking:xV,isTransitioning:_V,toggleGrow:CV,disableTransitions:sV}),SV=function(e,t,n){var r=t.expanded;return Mu(r?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:ha(t.dimension.property,"0px")})},OV=function(e,t){return Ts([js(qa(),(function(n,r){var i=r.event.raw;if(i.propertyName===e.dimension.property){sV(n,e),t.isExpanded()&&nr(n.element,e.dimension.property);var o=t.isExpanded()?e.onGrown:e.onShrunk;o(n)}}))])},EV=Object.freeze({__proto__:null,exhibit:SV,events:OV}),TV=[Do("closedClass"),Do("openClass"),Do("shrinkingClass"),Do("growingClass"),Fo("getAnimationRoot"),sl("onShrunk"),sl("onStartShrink"),sl("onGrown"),sl("onStartGrow"),Ko("expanded",!1),Mo("dimension",ko("property",{width:[fl("property","width"),fl("getDimension",(function(e){return gr(e)+"px"}))],height:[fl("property","height"),fl("getDimension",(function(e){return ar(e)+"px"}))]}))],DV=function(e){var t=ia(e.expanded),n=function(){return"expanded: "+t.get()};return Su({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:C(t.set,!1),setExpanded:C(t.set,!0),readState:n})},MV=Object.freeze({__proto__:null,init:DV}),AV=mf({fields:TV,name:"sliding",active:EV,apis:kV,state:MV}),NV="container",PV=[tv("slotBehaviours",[])],IV=function(e){return"<alloy.field."+e+">"},RV=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Hv(NV,IV(t),n)};return{slot:t,record:w(e)}}(),n=e(t),r=t.record(),i=q(r,(function(e){return Pv({name:e,pname:IV(e)})}));return ag(NV,PV,i,zV,n)},zV=function(e,t){var n=function(t){return Zv(e)},r=function(t,n){return Kv(t,e,n)},i=function(t,n){return function(r,i){return Kv(r,e,i).map((function(e){return t(e,i)})).getOr(n)}},o=function(e){return function(t,n){G(n,(function(n){return e(t,n)}))}},a=function(e,t){return"true"!==Vn(e.element,"aria-hidden")},s=function(e,t){if(!a(e)){var n=e.element;nr(n,"display"),Un(n,"aria-hidden"),Cs(e,gs(),{name:t,visible:!0})}},u=function(e,t){if(a(e)){var n=e.element;Kn(n,"display","none"),Fn(n,"aria-hidden","true"),Cs(e,gs(),{name:t,visible:!1})}},c=i(a,!1),l=i(u),f=o(l),d=function(e){return f(e,n())},h=i(s),p={getSlotNames:n,getSlot:r,isShowing:c,hideSlot:l,hideAllSlots:d,showSlot:h};return{uid:e.uid,dom:e.dom,components:t,behaviours:nv(e.slotBehaviours),apis:p}},BV=be({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},(function(e){return Cu(e)})),LV=D(D({},BV),{sketch:RV}),$V=Qi([Ho("icon"),Ho("tooltip"),ea("onShow",v),ea("onHide",v),ea("onSetup",(function(){return v}))]),FV=function(e){return wo("sidebar",$V,e)},jV=function(e){var t=e.ui.registry.getAll().sidebars;G(me(t),(function(n){var r=t[n],i=function(){return De(z.from(e.queryCommandValue("ToggleSidebar")),n)};e.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(t){e.execCommand("ToggleSidebar",!1,n),t.setActive(i())},onSetup:function(t){var n=function(){return t.setActive(i())};return e.on("ToggleSidebar",n),function(){e.off("ToggleSidebar",n)}}})}))},VV=function(e){return{element:function(){return e.element.dom}}},HV=function(e,t){var n=q(me(t),(function(e){var n=t[e],r=xo(FV(n));return{name:e,getApi:VV,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return q(n,(function(t){var r=ia(v);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:sO.unnamedEvents([kE(t,r),SE(t,r),Ns(gs(),(function(e,t){var r=t.event,i=ee(n,(function(e){return e.name===r.name}));i.each((function(t){var n=r.visible?t.onShow:t.onHide;n(t.getApi(e))}))}))])})}))},WV=function(e){return LV.sketch((function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:HV(t,e),slotBehaviours:sO.unnamedEvents([Vs((function(e){return LV.hideAllSlots(e)}))])}}))},UV=function(e,t){var n=bg.getCurrent(e);n.each((function(e){return $w.set(e,[WV(t)])}))},qV=function(e,t){var n=bg.getCurrent(e);n.each((function(e){var n=bg.getCurrent(e);n.each((function(n){AV.hasGrown(e)?LV.isShowing(n,t)?AV.shrink(e):(LV.hideAllSlots(n),LV.showSlot(n,t)):(LV.hideAllSlots(n),LV.showSlot(n,t),AV.grow(e))}))}))},GV=function(e){var t=bg.getCurrent(e);return t.bind((function(e){var t=AV.isGrowing(e)||AV.hasGrown(e);if(t){var n=bg.getCurrent(e);return n.bind((function(e){return ee(LV.getSlotNames(e),(function(t){return LV.isShowing(e,t)}))}))}return z.none()}))},KV=iu("FixSizeEvent"),YV=iu("AutoSizeEvent"),XV=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:hf([TM.config({}),Xw.config({}),AV.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(e){var t=bg.getCurrent(e);t.each(LV.hideAllSlots),_s(e,YV)},onGrown:function(e){_s(e,YV)},onStartGrow:function(e){Cs(e,KV,{width:Qn(e.element,"width").getOr("")})},onStartShrink:function(e){Cs(e,KV,{width:gr(e.element)+"px"})}}),$w.config({}),bg.config({find:function(e){var t=$w.contents(e);return fe(t)}})])}],behaviours:hf([QI.childAt(0),jw("sidebar-sliding-events",[Ns(KV,(function(e,t){Kn(e.element,"width",t.event.width)})),Ns(YV,(function(e,t){nr(e.element,"width")}))])])}},JV=function(e,t,n,r){Fn(e.element,"aria-busy",!0);var i=t.getRoot(e).getOr(e),o=hf([Dw.config({mode:"special",onTab:function(){return z.some(!0)},onShiftTab:function(){return z.some(!0)}}),Xw.config({})]),a=r(i,o),s=i.getSystem().build(a);$w.append(i,Tc(s)),s.hasConfigured(Dw)&&t.focus&&Dw.focusIn(s),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return $w.remove(i,s)}))},ZV=function(e,t,n){Un(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()},QV=Object.freeze({__proto__:null,block:JV,unblock:ZV}),eH=[ea("getRoot",z.none),Qo("focus",!0),sl("onBlock"),sl("onUnblock")],tH=function(){var e=td(),t=function(t){e.set({destroy:t})};return Su({readState:e.isSet,blockWith:t,clear:e.clear,isBlocked:e.isSet})},nH=Object.freeze({__proto__:null,init:tH}),rH=mf({fields:eH,name:"blocking",apis:QV,state:nH}),iH=function(e){return function(t,n){return{dom:{tag:"div",attributes:{"aria-label":e.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:O_('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}},oH=function(e){return bg.getCurrent(e).each((function(e){return Cf(e.element)}))},aH=function(e,t){var n="tabindex",r="data-mce-"+n;z.from(e.iframeElement).map(tt.fromDom).each((function(e){t?(Hn(e,n).each((function(t){return Fn(e,r,t)})),Fn(e,n,-1)):(Un(e,n),Hn(e,r).each((function(t){Fn(e,n,t),Un(e,r)})))}))},sH=function(e,t,n,r){var i=t.element;if(aH(e,n),n)rH.block(t,iH(r)),nr(i,"display"),Un(i,"aria-hidden"),e.hasFocus()&&oH(t);else{var o=bg.getCurrent(t).exists((function(e){return Sf(e.element)}));rH.unblock(t),Kn(i,"display","none"),Fn(i,"aria-hidden","true"),o&&e.focus()}},uH=function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:hf([$w.config({}),rH.config({focus:!1}),bg.config({find:function(e){return fe(e.components())}})]),components:[]}},cH=function(e){return"focusin"===e.type},lH=function(e){if(cH(e)){var t=e.composed?fe(e.composedPath()):z.from(e.target);return t.map(tt.fromDom).filter(lt).exists((function(e){return uc(e,"mce-pastebin")}))}return!1},fH=function(e,t,n){var r=ia(!1),i=id(),o=function(n){r.get()&&!lH(n)&&(n.preventDefault(),oH(t()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",(function(){e.dom.bind(e.getWin(),"focusin",o),e.on("BeforeExecCommand",(function(e){"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&o(e)}))}));var a=function(i){i!==r.get()&&(r.set(i),sH(e,t(),i,n.providers),e.fire("AfterProgressState",{state:i}))};e.on("ProgressState",(function(t){if(i.on(x_.clearTimeout),p(t.time)){var n=x_.setEditorTimeout(e,(function(){return a(t.state)}),t.time);i.set(n)}else a(t.state),i.clear()}))},dH=function(e,t){var n={len:0,list:[]},r=Z(e,(function(e,n){var r=t(n,e.len);return r.fold(w(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}))}),n);return r.list},hH=function(e,t,n){return{within:e,extra:t,withinWidth:n}},pH=function(e,t,n){var r=dH(e,(function(e,t){var r=n(e);return z.some({element:e,start:t,finish:t+r,width:r})})),i=X(r,(function(e){return e.finish<=t})),o=J(i,(function(e,t){return e+t.width}),0),a=r.slice(i.length);return{within:i,extra:a,withinWidth:o}},mH=function(e){return q(e,(function(e){return e.element}))},vH=function(e,t,n){var r=mH(e.concat(t));return hH(r,[],n)},gH=function(e,t,n,r){var i=mH(e).concat([n]);return hH(i,mH(t),r)},bH=function(e,t,n){return hH(mH(e),[],n)},yH=function(e,t,n){var r=pH(t,e,n);return 0===r.extra.length?z.some(r):z.none()},wH=function(e,t,n,r){var i=yH(e,t,n).getOrThunk((function(){return pH(t,e-n(r),n)})),o=i.within,a=i.extra,s=i.withinWidth;return 1===a.length&&a[0].width<=n(r)?vH(o,a,s):a.length>=1?gH(o,a,r,s):bH(o,a,s)},xH=function(e,t){var n=q(t,(function(e){return Tc(e)}));KF.setGroups(e,n)},_H=function(e){return pe(e,(function(e){return Ef(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}))},CH=function(e,t,n){var r=t.builtGroups.get();if(0!==r.length){var i=Yv(e,t,"primary"),o=EA.getCoupled(e,"overflowGroup");Kn(i.element,"visibility","hidden");var a=r.concat([o]),s=_H(a);n([]),xH(i,a);var u=gr(i.element),c=wH(u,t.builtGroups.get(),(function(e){return gr(e.element)}),o);0===c.extra.length?($w.remove(i,o),n([])):(xH(i,c.within),n(c.extra)),nr(i.element,"visibility"),rr(i.element),s.each(Xw.focus)}},kH=w([tv("splitToolbarBehaviours",[EA]),Eo("builtGroups",(function(){return ia([])}))]),SH=w([ol(["overflowToggledClass"]),Wo("getOverflowBounds"),Do("lazySink"),Eo("overflowGroups",(function(){return ia([])}))].concat(kH())),OH=w([Pv({factory:KF,schema:WF(),name:"primary"}),Iv({schema:WF(),name:"overflow"}),Iv({name:"overflow-button"}),Iv({name:"overflow-group"})]),EH=w((function(e,t){yr(e,Math.floor(t))})),TH=w([ol(["toggledClass"]),Do("lazySink"),Ro("fetch"),Wo("getBounds"),qo("fireDismissalEventInstead",[Ko("event",ps())]),$d()]),DH=w([Iv({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:hf([mx.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Iv({factory:KF,schema:WF(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:hf([Dw.config({mode:"cyclic",onEscape:function(t){return Kv(t,e,"button").each(Xw.focus),z.none()}})])}}})]),MH=function(e,t){var n=EA.getCoupled(e,"toolbarSandbox");bm.isOpen(n)?bm.close(n):bm.open(n,t.toolbar())},AH=function(e,t,n,r){var i=n.getBounds.map((function(e){return e()})),o=n.lazySink(e).getOrDie();Lp.positionWithinBounds(o,t,{anchor:{type:"hotspot",hotspot:e,layouts:r,overrides:{maxWidthFunction:EH()}}},i)},NH=function(e,t,n,r,i){KF.setGroups(t,i),AH(e,t,n,r),mx.on(e)},PH=function(e,t,n){var r=jc(),i=function(i,o){n.fetch().get((function(i){NH(e,o,n,t.layouts,i),r.link(e.element),Dw.focusIn(o)}))},o=function(){mx.off(e),Xw.focus(e),r.unlink(e.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:hf([Dw.config({mode:"special",onEscape:function(e){return bm.close(e),z.some(!0)}}),bm.config({onOpen:i,onClose:o,isPartOf:function(t,n,r){return Hc(n,r)||Hc(e,r)},getAttachPoint:function(){return n.lazySink(e).getOrDie()}}),yf.config({channels:D(D({},Cm(D({isExtraPart:O},n.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Sm({doReposition:function(){bm.getState(EA.getCoupled(e,"toolbarSandbox")).each((function(r){AH(e,r,n,t.layouts)}))}}))})])}},IH=function(e,t,n,r){return D(D({},C_.sketch(D(D({},r.button()),{action:function(e){MH(e,r)},buttonBehaviours:iv.augment({dump:r.button().buttonBehaviours},[EA.config({others:{toolbarSandbox:function(t){return PH(t,n,e)}}})])}))),{apis:{setGroups:function(t,r){bm.getState(EA.getCoupled(t,"toolbarSandbox")).each((function(i){NH(t,i,e,n.layouts,r)}))},reposition:function(t){bm.getState(EA.getCoupled(t,"toolbarSandbox")).each((function(r){AH(t,r,e,n.layouts)}))},toggle:function(e){MH(e,r)},getToolbar:function(e){return bm.getState(EA.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return bm.isOpen(EA.getCoupled(e,"toolbarSandbox"))}}})},RH=hg({name:"FloatingToolbarButton",factory:IH,configFields:TH(),partFields:DH(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),zH=w([Do("items"),ol(["itemSelector"]),tv("tgroupBehaviours",[Dw])]),BH=w([zv({name:"items",unit:"item"})]),LH=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:rv(e.tgroupBehaviours,[Dw.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},$H=hg({name:"ToolbarGroup",configFields:zH(),partFields:BH(),factory:LH}),FH=function(e){return q(e,(function(e){return Tc(e)}))},jH=function(e,t,n){CH(e,n,(function(r){n.overflowGroups.set(r),t.getOpt(e).each((function(e){RH.setGroups(e,FH(r))}))}))},VH=function(e,t,n,r){var i=E_(RH.sketch({fetch:function(){return cA.nu((function(t){t(FH(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[Vl,jl]},onRtl:function(){return[jl,Vl]},onBottomLtr:function(){return[Wl,Hl]},onBottomRtl:function(){return[Hl,Wl]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:rv(e.splitToolbarBehaviours,[EA.config({others:{overflowGroup:function(){return $H.sketch(D(D({},r["overflow-group"]()),{items:[i.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set(q(n,t.getSystem().build)),jH(t,i,e)},refresh:function(t){return jH(t,i,e)},toggle:function(e){i.getOpt(e).each((function(e){RH.toggle(e)}))},isOpen:function(e){return i.getOpt(e).map(RH.isOpen).getOr(!1)},reposition:function(e){i.getOpt(e).each((function(e){RH.reposition(e)}))},getOverflow:function(e){return i.getOpt(e).bind(RH.getToolbar)}},domModification:{attributes:{role:"group"}}}},HH=hg({name:"SplitFloatingToolbar",configFields:SH(),partFields:OH(),factory:VH,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),WH=w([ol(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),sl("onOpened"),sl("onClosed")].concat(kH())),UH=w([Pv({factory:KF,schema:WF(),name:"primary"}),Pv({factory:KF,schema:WF(),name:"overflow",overrides:function(e){return{toolbarBehaviours:hf([AV.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){Kv(t,e,"overflow-button").each((function(e){mx.off(e),Xw.focus(e)})),e.onClosed(t)},onGrown:function(t){Dw.focusIn(t),e.onOpened(t)},onStartGrow:function(t){Kv(t,e,"overflow-button").each(mx.on)}}),Dw.config({mode:"acyclic",onEscape:function(t){return Kv(t,e,"overflow-button").each(Xw.focus),z.some(!0)}})])}}}),Iv({name:"overflow-button",overrides:function(e){return{buttonBehaviours:hf([mx.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Iv({name:"overflow-group"})]),qH=function(e,t){return Kv(e,t,"overflow").map(AV.hasGrown).getOr(!1)},GH=function(e,t){Kv(e,t,"overflow-button").bind((function(){return Kv(e,t,"overflow")})).each((function(n){KH(e,t),AV.toggleGrow(n)}))},KH=function(e,t){Kv(e,t,"overflow").each((function(n){CH(e,t,(function(e){var t=q(e,(function(e){return Tc(e)}));KF.setGroups(n,t)})),Kv(e,t,"overflow-button").each((function(e){AV.hasGrown(n)&&mx.on(e)})),AV.refresh(n)}))},YH=function(e,t,n,r){var i="alloy.toolbar.toggle",o=function(t,n){var r=q(n,t.getSystem().build);e.builtGroups.set(r)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rv(e.splitToolbarBehaviours,[EA.config({others:{overflowGroup:function(e){return $H.sketch(D(D({},r["overflow-group"]()),{items:[C_.sketch(D(D({},r["overflow-button"]()),{action:function(t){_s(e,i)}}))]}))}}}),jw("toolbar-toggle-events",[Ns(i,(function(t){GH(t,e)}))])]),apis:{setGroups:function(t,n){o(t,n),KH(t,e)},refresh:function(t){return KH(t,e)},toggle:function(t){return GH(t,e)},isOpen:function(t){return qH(t,e)}},domModification:{attributes:{role:"group"}}}},XH=hg({name:"SplitSlidingToolbar",configFields:WH(),partFields:UH(),factory:YH,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),JH=function(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:D({tag:"div",classes:["tox-toolbar__group"]},t),components:[$H.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:hf([TM.config({}),Xw.config({})])}},ZH=function(e){return $H.sketch(JH(e))},QH=function(e,t){var n=Vs((function(t){var n=q(e.initGroups,ZH);KF.setGroups(t,n)}));return hf([_E.toolbarButton(e.providers.isDisabled),gE(),Dw.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),jw("toolbar-events",[n])])},eW=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":JH({title:z.none(),items:[]}),"overflow-button":oB({name:"more",icon:z.some("more-drawer"),disabled:!1,tooltip:z.some("More..."),primary:!1,borderless:!1},z.none(),e.providers)},splitToolbarBehaviours:QH(e,t)}},tW=function(e){var t=eW(e),n=4,r=HH.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return HH.sketch(D(D({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,r=Zr(t),i=mn(t),o=Zr(i),a=Math.max(i.dom.scrollHeight,o.height);return Xr(r.x+n,o.y,r.width-2*n,a)},parts:D(D({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},nW=function(e){var t=XH.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=XH.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=eW(e);return XH.sketch(D(D({},r),{components:[t,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(e){e.getSystem().broadcastOn([Nj()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([Nj()],{type:"closed"})}}))},rW=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return KF.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===Jk.scrolling?["tox-toolbar--scrolling"]:[])},components:[KF.parts.groups({})],toolbarBehaviours:QH(e,t)})},iW=function(e,t,n){var r={getSocket:function(t){return RF.getPart(t,e,"socket")},setSidebar:function(t,n){RF.getPart(t,e,"sidebar").each((function(e){return UV(e,n)}))},toggleSidebar:function(t,n){RF.getPart(t,e,"sidebar").each((function(e){return qV(e,n)}))},whichSidebar:function(t){return RF.getPart(t,e,"sidebar").bind(GV).getOrNull()},getHeader:function(t){return RF.getPart(t,e,"header")},getToolbar:function(t){return RF.getPart(t,e,"toolbar")},setToolbar:function(t,n){RF.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){RF.getPart(t,e,"multiple-toolbar").each((function(e){HF.setItems(e,n)}))},refreshToolbar:function(t){var n=RF.getPart(t,e,"toolbar");n.each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){RF.getPart(t,e,"toolbar").each((function(e){Re(e.getApis().toggle,(function(t){return t(e)}))}))},isToolbarDrawerToggled:function(t){return RF.getPart(t,e,"toolbar").bind((function(e){return z.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return RF.getPart(t,e,"throbber")},focusToolbar:function(t){var n=RF.getPart(t,e,"toolbar").orThunk((function(){return RF.getPart(t,e,"multiple-toolbar")}));n.each((function(e){Dw.focusIn(e)}))},setMenubar:function(t,n){RF.getPart(t,e,"menubar").each((function(e){rV.setMenus(e,n)}))},focusMenubar:function(t){RF.getPart(t,e,"menubar").each((function(e){rV.focus(e)}))}};return{uid:e.uid,dom:e.dom,components:t,apis:r,behaviours:e.behaviours}},oW=zF.optional({factory:rV,name:"menubar",schema:[Do("backstage")]}),aW=function(e){return e.type===Jk.sliding?nW:e.type===Jk.floating?tW:rW},sW=zF.optional({factory:{sketch:function(e){return HF.sketch({uid:e.uid,dom:e.dom,listBehaviours:hf([Dw.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return rW({type:e.type,uid:iu("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),z.some(!0)}})},setupItem:function(e,t,n,r){KF.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[Do("dom"),Do("onEscape")]}),uW=zF.optional({factory:{sketch:function(e){var t=aW(e),n={type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),z.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes};return t(n)}},name:"toolbar",schema:[Do("dom"),Do("onEscape"),Do("getSink")]}),cW=zF.optional({factory:{sketch:Kj},name:"header",schema:[Do("dom")]}),lW=zF.optional({name:"socket",schema:[Do("dom")]}),fW=zF.optional({factory:{sketch:XV},name:"sidebar",schema:[Do("dom")]}),dW=zF.optional({factory:{sketch:uH},name:"throbber",schema:[Do("dom")]}),hW=hg({name:"OuterContainer",factory:iW,configFields:[Do("dom"),Do("behaviours")],partFields:[cW,oW,uW,sW,lW,fW,dW],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=q(n,(function(e){return ZH(e)}));e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=q(n,(function(e){return q(e,ZH)}));e.setToolbars(t,r)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),pW="file edit view insert format tools table help",mW={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 | language | 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"}},vW=function(e,t,n){var r=zO(n).split(/[ ,]/);return{text:e.title,getItems:function(){return re(e.items,(function(e){var n=e.toLowerCase();return 0===n.trim().length||H(r,(function(e){return e===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]}))}}},gW=function(e){return"string"===typeof e?e.split(" "):e},bW=function(e,t){var n=D(D({},mW),t.menus),r=me(t.menus).length>0,i=void 0===t.menubar||!0===t.menubar?gW(pW):gW(!1===t.menubar?"":t.menubar),o=X(i,(function(e){var n=Ee(mW,e);return r?n||Oe(t.menus,e).exists((function(e){return Ee(e,"items")})):n})),a=q(o,(function(r){var i=n[r];return vW({title:i.title,items:gW(i.items)},t,e)}));return X(a,(function(e){var t=function(e){return"separator"!==e.type};return e.getItems().length>0&&H(e.getItems(),t)}))},yW=function(e){var t=function(){e._skinLoaded=!0,kT(e)};return function(){e.initialized?t():e.on("init",t)}},wW=function(e,t){return function(){return ST(e,{message:t})}},xW=function(e,t,n){return new mk((function(r,i){n.load(t,r,i),e.on("remove",(function(){return n.unload(t)}))}))},_W=function(e,t){var n=t+"/skin.min.css";return xW(e,n,e.ui.styleSheetLoader)},CW=function(e,t){var n=An(tt.fromDom(e.getElement()));if(n){var r=t+"/skin.shadowdom.min.css";return xW(e,r,xO.DOM.styleSheetLoader)}return mk.resolve()},kW=function(e,t){var n=CO(t);n&&t.contentCSS.push(n+(e?"/content.inline":"/content")+".min.css"),!1===SO(t)&&o(n)?mk.all([_W(t,n),CW(t,n)]).then(yW(t),wW(t,"Skin could not be loaded")):yW(t)()},SW=C(kW,!1),OW=C(kW,!0),EW=function(e,t){return function(n){var r=nd(),i=function(){n.setActive(e.formatter.match(t));var i=e.formatter.formatChanged(t,n.setActive);r.set(i)};return e.initialized?i():e.once("init",i),function(){e.off("init",i),r.clear()}}},TW=function(e,t,n){return function(r){var i=function(){return n(r)},o=function(){n(r),e.on(t,i)};return e.initialized?o():e.once("init",o),function(){e.off("init",o),e.off(t,i)}}},DW=function(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}},MW=function(e,t){return function(){return e.execCommand(t)}},AW=function(e,t,n){var r=function(e,r,o,a){var s=t.shared.providers.translate(e.title);if("separator"===e.type)return z.some({type:"separator",text:s});if("submenu"===e.type){var u=re(e.getStyleItems(),(function(e){return i(e,r,a)}));return 0===r&&u.length<=0?z.none():z.some({type:"nestedmenuitem",text:s,disabled:u.length<=0,getSubmenuItems:function(){return re(e.getStyleItems(),(function(e){return i(e,r,a)}))}})}return z.some(D({type:"togglemenuitem",text:s,icon:e.icon,active:e.isSelected(a),disabled:o,onAction:n.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))))},i=function(e,t,i){var o="formatter"===e.type&&n.isInvalid(e);return 0===t?o?[]:r(e,t,!1,i).toArray():r(e,t,o,i).toArray()},o=function(e){var t=n.getCurrentValue(),r=n.shouldHide?0:1;return re(e,(function(e){return i(e,r,t)}))},a=function(e,t){return function(n,r){var i=t(),a=o(i),s=eB(a,Zk.CLOSE_ON_EXECUTE,e,!1);r(s)}};return{validateItems:o,getFetch:a}},NW=function(e,t,n){var r=n.dataset,i="basic"===r.type?function(){return q(r.data,(function(e){return j$(e,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:AW(e,t,n),getStyleItems:i}},PW=function(e,t,n){var r=NW(e,t,n),i=r.items,o=r.getStyleItems,a=function(e){return{getComponent:w(e)}},s=TW(e,"NodeChange",(function(e){var t=e.getComponent();n.updateText(t)}));return Wz({text:n.icon.isSome()?z.none():n.text,icon:n.icon,tooltip:z.from(n.tooltip),role:z.none(),fetch:i.getFetch(t,o),onSetup:s,getApi:a,columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},IW=function(e){return q(e,(function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{title:t,format:n}}))},RW=function(e){return{type:"basic",data:e}};(function(e){e[e["SemiColon"]=0]="SemiColon",e[e["Space"]=1]="Space"})(iL||(iL={}));var zW,BW=function(e,t){return t===iL.SemiColon?e.replace(/;$/,"").split(";"):e.split(" ")},LW=function(e,t,n,r){var i=e.getParam(t,n,"string"),o=IW(BW(i,r));return{type:"basic",data:o}},$W=[{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"}],FW=function(e){var t=function(){return ee($W,(function(t){return e.formatter.match(t.format)}))},n=function(t){return function(){return e.formatter.match(t)}},r=function(e){return z.none},i=function(e){var n=t(),r=n.fold(w("left"),(function(e){return e.title.toLowerCase()}));Cs(e,Hz,{icon:"align-"+r})},o=RW($W),a=function(t){return function(){return ee($W,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}};return{tooltip:"Align",text:z.none(),icon:z.some("align-left"),isSelectedFor:n,getCurrentValue:z.none,getPreviewFor:r,onAction:a,updateText:i,dataset:o,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},jW=function(e,t){return PW(e,t,FW(e))},VW=function(e,t){var n=NW(e,t,FW(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},HW="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",WW=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],UW=function(e){var t=e.split(/\s*,\s*/);return q(t,(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))},qW=function(e){var t=function(){var t=UW(e.toLowerCase());return ie(WW,(function(e){return t.indexOf(e.toLowerCase())>-1}))};return 0===e.indexOf("-apple-system")&&t()},GW=function(e){var t="System Font",n=function(){var n=function(e){return e?UW(e)[0]:""},r=e.queryCommandValue("FontName"),i=u.data,o=r?r.toLowerCase():"",a=ee(i,(function(e){var t=e.format;return t.toLowerCase()===o||n(t).toLowerCase()===n(o).toLowerCase()})).orThunk((function(){return ze(qW(o),{title:t,format:o})}));return{matchOpt:a,font:r}},r=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},i=function(){var e=n().matchOpt;return e},o=function(e){return function(){return z.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},a=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},s=function(e){var t=n(),r=t.matchOpt,i=t.font,o=r.fold(w(i),(function(e){return e.title}));Cs(e,Vz,{text:o})},u=LW(e,"font_formats",HW,iL.SemiColon);return{tooltip:"Fonts",text:z.some(t),icon:z.none(),isSelectedFor:r,getCurrentValue:i,getPreviewFor:o,onAction:a,updateText:s,dataset:u,shouldHide:!1,isInvalid:O}},KW=function(e,t){return PW(e,t,GW(e))},YW=function(e,t){var n=NW(e,t,GW(e));e.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},XW="8pt 10pt 12pt 14pt 18pt 24pt 36pt",JW={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},ZW={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},QW=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},eU=function(e,t){return/[0-9.]+px$/.test(e)?QW(72*parseInt(e,10)/96,t||0)+"pt":Oe(ZW,e).getOr(e)},tU=function(e){return Oe(JW,e).getOr("")},nU=function(e){var t=function(){var t=z.none(),n=s.data,r=e.queryCommandValue("FontSize");if(r)for(var i=function(e){var i=eU(r,e),o=tU(i);t=ee(n,(function(e){return e.format===r||e.format===i||e.format===o}))},o=3;t.isNone()&&o>=0;o--)i(o);return{matchOpt:t,size:r}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},i=w(z.none),o=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},a=function(e){var n=t(),r=n.matchOpt,i=n.size,o=r.fold(w(i),(function(e){return e.title}));Cs(e,Vz,{text:o})},s=LW(e,"fontsize_formats",XW,iL.Space);return{tooltip:"Font sizes",text:z.some("12pt"),icon:z.none(),isSelectedFor:n,getPreviewFor:i,getCurrentValue:r,onAction:o,updateText:a,dataset:s,shouldHide:!1,isInvalid:O}},rU=function(e,t){return PW(e,t,nU(e))},iU=function(e,t){var n=NW(e,t,nU(e));e.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},oU=function(e,t){var n=t(),r=q(n,(function(e){return e.format}));return z.from(e.formatter.closest(r)).bind((function(e){return ee(n,(function(t){return t.format===e}))})).orThunk((function(){return ze(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))},aU="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",sU=function(e){var t="Paragraph",n=function(t){return function(){return e.formatter.match(t)}},r=function(t){return function(){var n=e.formatter.get(t);return z.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},i=function(n){var r=oU(e,(function(){return o.data})),i=r.fold(w(t),(function(e){return e.title}));Cs(n,Vz,{text:i})},o=LW(e,"block_formats",aU,iL.SemiColon);return{tooltip:"Blocks",text:z.some(t),icon:z.none(),isSelectedFor:n,getCurrentValue:z.none,getPreviewFor:r,onAction:DW(e),updateText:i,dataset:o,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},uU=function(e,t){return PW(e,t,sU(e))},cU=function(e,t){var n=NW(e,t,sU(e));e.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},lU=function(e,t){var n="Paragraph",r=function(t){return function(){return e.formatter.match(t)}},i=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?z.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):z.none()}},o=function(t){var r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[{title:e.title,format:e.format}]},i=re(F$(e),r),o=oU(e,w(i)),a=o.fold(w(n),(function(e){return e.title}));Cs(t,Vz,{text:a})};return{tooltip:"Formats",text:z.some(n),icon:z.none(),isSelectedFor:r,getCurrentValue:z.none,getPreviewFor:i,onAction:DW(e),updateText:o,shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}},fU=function(e,t){var n=D({type:"advanced"},t.styleselect);return PW(e,t,lU(e,n))},dU=function(e,t){var n=D({type:"advanced"},t.styleselect),r=NW(e,t,lU(e,n));e.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},hU=function(e,t){var n=function(n,r){e.updateState.each((function(e){var i=e(n,r);t.set(i)})),e.renderComponents.each((function(e){var i=e(r,t.get()),o=q(i,n.getSystem().build);Hp(n,o)}))};return Ts([Ns(es(),(function(t,r){var i=r;if(!i.universal){var o=e.channel;V(i.channels,o)&&n(t,i.data)}})),Vs((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])},pU=Object.freeze({__proto__:null,events:hU}),mU=function(e,t,n){return n},vU=Object.freeze({__proto__:null,getState:mU}),gU=[Do("channel"),Fo("renderComponents"),Fo("updateState"),Fo("initialData")],bU=function(){var e=ia(z.none()),t=function(){return e.set(z.none())},n=function(){return e.get().getOr("none")};return{readState:n,get:e.get,set:e.set,clear:t}},yU=Object.freeze({__proto__:null,init:bU}),wU=mf({fields:gU,name:"reflecting",active:pU,apis:vU,state:yU}),xU=w([Do("toggleClass"),Do("fetch"),cl("onExecute"),Ko("getHotspot",z.some),Ko("getAnchorOverrides",w({})),$d(),cl("onItemExecute"),Fo("lazySink"),Do("dom"),sl("onOpen"),tv("splitDropdownBehaviours",[EA,Dw,Xw]),Ko("matchWidth",!1),Ko("useMinWidth",!1),Ko("eventOrder",{}),Fo("role")].concat(VA())),_U=Pv({factory:C_,schema:[Do("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:hf([Xw.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(ks)},buttonBehaviours:hf([mx.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),CU=Pv({factory:C_,schema:[Do("dom")],name:"button",defaults:function(){return{buttonBehaviours:hf([Xw.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),kU=w([_U,CU,Rv({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Do("text")],name:"aria-descriptor"}),Iv({schema:[il()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),DA()]),SU=function(e,t,n,r){var i,o=function(e){bg.getCurrent(e).each((function(e){rb.highlightFirst(e),Dw.focusIn(e)}))},a=function(t){var n=o;zA(e,x,t,r,n,eA.HighlightFirst).get(v)},s=function(e){return a(e),z.some(!0)},u=function(t){var n=Yv(t,e,"button");return ks(n),z.some(!0)},c=D(D({},Ts([Vs((function(t,n){var r=Kv(t,e,"aria-descriptor");r.each((function(e){var n=iu("aria");Fn(e.element,"id",n),Fn(t.element,"aria-describedby",n)}))}))])),gx(z.some(a))),l={repositionMenus:function(e){mx.isOn(e)&&jA(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:l,eventOrder:D(D({},e.eventOrder),(i={},i[ts()]=["disabling","toggling","alloy.base.behaviour"],i)),events:c,behaviours:rv(e.splitDropdownBehaviours,[EA.config({others:{sandbox:function(t){var n=Yv(t,e,"arrow"),r={onOpen:function(){mx.on(n),mx.on(t)},onClose:function(){mx.off(n),mx.off(t)}};return FA(e,t,r)}}}),Dw.config({mode:"special",onSpace:u,onEnter:u,onDown:s}),Xw.config({}),mx.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},OU=hg({name:"SplitDropdown",configFields:xU(),partFields:kU(),factory:SU,apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),EU=function(e){return{isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){return Bg.set(e,t)}}},TU=function(e){return{setActive:function(t){mx.set(e,t)},isActive:function(){return mx.isOn(e)},isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){return Bg.set(e,t)}}},DU=function(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})},MU=iu("focus-button"),AU=function(e,t,n,r,i,o){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:DU(n,o)},components:TE([e.map((function(e){return zz(e,o.icons)})),t.map((function(e){return Lz(e,"tox-tbtn",o)}))]),eventOrder:(a={},a[Pa()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:hf([_E.toolbarButton(o.isDisabled),gE(),jw("common-button-display-events",[Ns(Pa(),(function(e,t){t.event.prevent(),_s(e,MU)}))])].concat(r.map((function(n){return wU.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return TE([e.icon.map((function(e){return zz(e,o.icons)})),e.text.map((function(e){return Lz(e,"tox-tbtn",o)}))])}})})).toArray()).concat(i.getOr([])))}},NU=function(e,t,n,r){var i=t.shared;return RH.sketch({lazySink:i.getSink,fetch:function(){return cA.nu((function(t){t(q(n(e.items),ZH))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:AU(e.icon,e.text,e.tooltip,z.none(),z.none(),i.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},PU=function(e,t,n){var r=ia(v),i=AU(e.icon,e.text,e.tooltip,z.none(),z.none(),n);return C_.sketch({dom:i.dom,components:i.components,eventOrder:jz,buttonBehaviours:hf([jw("toolbar-button-events",[Fz({onAction:e.onAction,getApi:t.getApi}),kE(t,r),SE(t,r)]),_E.toolbarButton((function(){return e.disabled||n.isDisabled()})),gE()].concat(t.toolbarButtonBehaviours))})},IU=function(e,t){return RU(e,t,[])},RU=function(e,t,n){return PU(e,{toolbarButtonBehaviours:[].concat(n.length>0?[jw("toolbarButtonWith",n)]:[]),getApi:EU,onSetup:e.onSetup},t)},zU=function(e,t){return BU(e,t,[])},BU=function(e,t,n){return xi(PU(e,{toolbarButtonBehaviours:[$w.config({}),mx.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[jw("toolbarToggleButtonWith",n)]:[]),getApi:TU,onSetup:e.onSetup},t))},LU=function(e,t,n){return function(r){return cA.nu((function(e){return t.fetch(e)})).map((function(i){return z.from(jD(xi(fD(iu("menu-value"),i,(function(n){t.onItemAction(e(r),n)}),t.columns,t.presets,Zk.CLOSE_ON_EXECUTE,t.select.getOr(O),n),{movement:hD(t.columns,t.presets),menuBehaviours:sO.unnamedEvents("auto"!==t.columns?[]:[Vs((function(e,n){iO(e,4,yS(t.presets)).each((function(t){var n=t.numRows,r=t.numColumns;Dw.setGridSize(e,n,r)}))}))])})))}))}},$U=function(e,t){var n,r=iu("channel-update-split-dropdown-display"),i=function(e){return{isDisabled:function(){return Bg.isDisabled(e)},setDisabled:function(t){return Bg.set(e,t)},setIconFill:function(t,n){Lc(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){Fn(e,"fill",n)}))},setIconStroke:function(t,n){Lc(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){Fn(e,"stroke",n)}))},setActive:function(t){Fn(e.element,"aria-pressed",t),Lc(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return mx.set(e,t)}))}))},isActive:function(){return Lc(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(mx.isOn)}))}}},o=ia(v),a={getApi:i,onSetup:e.onSetup};return OU.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:D({"aria-pressed":!1},DU(e.tooltip,t.providers))},onExecute:function(t){e.onAction(i(t))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:hf([_E.splitButton(t.providers.isDisabled),gE(),jw("split-dropdown-events",[Ns(MU,Xw.focus),kE(a,o),SE(a,o)]),XA.config({})]),eventOrder:(n={},n[ds()]=["alloy.base.behaviour","split-dropdown-events"],n),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:LU(i,e,t.providers),parts:{menu:SS(!1,e.columns,e.presets)},components:[OU.parts.button(AU(e.icon,e.text,z.none(),z.some(r),z.some([mx.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),OU.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:FC("chevron-down",t.providers.icons)},buttonBehaviours:hf([_E.splitButton(t.providers.isDisabled),gE(),HC()])}),OU.parts["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},FU=[{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"]}],jU=function(e,t){return function(n,r,i){var o=e(n).mapError((function(e){return Co(e)})).getOrDie();return t(o,r,i)}},VU={button:jU(Rk,(function(e,t){return IU(e,t.backstage.shared.providers)})),togglebutton:jU(Lk,(function(e,t){return zU(e,t.backstage.shared.providers)})),menubutton:jU(Qj,(function(e,t){return nB(e,"tox-tbtn",t.backstage,z.none())})),splitbutton:jU(tV,(function(e,t){return $U(e,t.backstage.shared)})),grouptoolbarbutton:jU(Xj,(function(e,t,n){var r,i=n.ui.registry.getAll().buttons,o=function(e){return XU(n,{buttons:i,toolbar:e,allowToolbarGroups:!1},t,z.none())},a=(r={},r[Bd]=t.backstage.shared.header.isPositionedAtTop()?$f.TopToBottom:$f.BottomToTop,r);switch(VO(n)){case Jk.floating:return NU(e,t.backstage,o,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(e,t){return fU(e,t.backstage)},fontsizeSelectButton:function(e,t){return rU(e,t.backstage)},fontSelectButton:function(e,t){return KW(e,t.backstage)},formatButton:function(e,t){return uU(e,t.backstage)},alignMenuButton:function(e,t){return jW(e,t.backstage)}},HU=function(e,t,n){return Oe(VU,e.type).fold((function(){return console.error("skipping button defined by",e),z.none()}),(function(r){return z.some(r(e,t,n))}))},WU={styleselect:VU.styleSelectButton,fontsizeselect:VU.fontsizeSelectButton,fontselect:VU.fontSelectButton,formatselect:VU.formatButton,align:VU.alignMenuButton},UU=function(e){var t=q(FU,(function(t){var n=X(t.items,(function(t){return Ee(e,t)||Ee(WU,t)}));return{name:t.name,items:n}}));return X(t,(function(e){return e.items.length>0}))},qU=function(e){var t=e.split("|");return q(t,(function(e){return{items:e.trim().split(" ")}}))},GU=function(e){return m(e,(function(e){return Ee(e,"name")&&Ee(e,"items")}))},KU=function(e){var t=e.toolbar,n=e.buttons;return!1===t?[]:void 0===t||!0===t?UU(n):o(t)?qU(t):GU(t)?t:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},YU=function(e,t,n,r,i,o){return Oe(t,n.toLowerCase()).orThunk((function(){return o.bind((function(e){return pe(e,(function(e){return Oe(t,e+n.toLowerCase())}))}))})).fold((function(){return Oe(WU,n.toLowerCase()).map((function(t){return t(e,i)})).orThunk((function(){return z.none()}))}),(function(t){return"grouptoolbarbutton"!==t.type||r?HU(t,i,e):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),z.none())}))},XU=function(e,t,n,r){var i=KU(t),o=q(i,(function(i){var o=re(i.items,(function(i){return 0===i.trim().length?[]:YU(e,t.buttons,i,t.allowToolbarGroups,n,r).toArray()}));return{title:z.from(e.translate(i.name)),items:o}}));return X(o,(function(e){return e.items.length>0}))},JU=function(e,t,n,r){var i=t.outerContainer,a=n.toolbar,s=n.buttons;if(m(a,o)){var u=a.map((function(t){var i={toolbar:t,buttons:s,allowToolbarGroups:n.allowToolbarGroups};return XU(e,i,{backstage:r},z.none())}));hW.setToolbars(i,u)}else hW.setToolbar(i,XU(e,n,{backstage:r},z.none()))},ZU=tn(),QU=ZU.os.isiOS()&&ZU.os.version.major<=12,eq=function(e,t){var n=e.dom,r=e.getWin(),i=e.getDoc().documentElement,o=ia(lr(r.innerWidth,r.innerHeight)),a=ia(lr(i.offsetWidth,i.offsetHeight)),s=function(){var t=o.get();t.left===r.innerWidth&&t.top===r.innerHeight||(o.set(lr(r.innerWidth,r.innerHeight)),ET(e))},u=function(){var t=e.getDoc().documentElement,n=a.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(a.set(lr(t.offsetWidth,t.offsetHeight)),ET(e))},c=function(t){return TT(e,t)};n.bind(r,"resize",s),n.bind(r,"scroll",c);var l=sd(tt.fromDom(e.getBody()),"load",u),f=t.uiMothership.element;e.on("hide",(function(){Kn(f,"display","none")})),e.on("show",(function(){nr(f,"display")})),e.on("NodeChange",u),e.on("remove",(function(){l.unbind(),n.unbind(r,"resize",s),n.unbind(r,"scroll",c),r=null}))},tq=function(e,t,n,r,i){var o=ia(0),a=t.outerContainer;SW(e);var s=tt.fromDom(i.targetNode),u=Mn(Dn(s));Xp(s,t.mothership),Yp(u,t.uiMothership),e.on("PostRender",(function(){JU(e,t,n,r),o.set(e.getWin().innerWidth),hW.setMenubar(a,bW(e,n)),hW.setSidebar(a,n.sidebar),eq(e,t)}));var c=hW.getSocket(a).getOrDie("Could not find expected socket element");if(QU){Yn(c.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var l=ZC((function(){e.fire("ScrollContent")}),20),f=ad(c.element,"scroll",l.throttle);e.on("remove",f.unbind)}vE(e,t),e.addCommand("ToggleSidebar",(function(t,n){hW.toggleSidebar(a,n),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return hW.whichSidebar(a)}));var d=VO(e),h=function(){hW.refreshToolbar(t.outerContainer)};d!==Jk.sliding&&d!==Jk.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var t=e.getWin().innerWidth;t!==o.get()&&(h(),o.set(t))}));var p={enable:function(){mE(t,!1)},disable:function(){mE(t,!0)},isDisabled:function(){return Bg.isDisabled(a)}};return{iframeContainer:c.element.dom,editorContainer:a.element.dom,api:p}},nq=Object.freeze({__proto__:null,render:tq}),rq=function(e){var t=/^[0-9\.]+(|px)$/i;return t.test(""+e)?z.some(parseInt(""+e,10)):z.none()},iq=function(e){return p(e)?e+"px":e},oq=function(e,t,n){var r=t.filter((function(t){return e<t})),i=n.filter((function(t){return e>t}));return r.or(i).getOr(e)},aq=function(e){var t=OO(e),n=DO(e),r=AO(e);return rq(t).map((function(e){return oq(e,n,r)}))},sq=function(e){var t=aq(e);return t.getOr(OO(e))},uq=function(e){var t=EO(e),n=TO(e),r=MO(e);return rq(t).map((function(e){return oq(e,n,r)}))},cq=function(e){var t=uq(e);return t.getOr(EO(e))},lq=function(e,t,n,r,i){var o=n.uiMothership,a=n.outerContainer,s=xO.DOM,u=JO(e),c=eE(e),l=MO(e).or(uq(e)),f=r.shared.header,d=f.isPositionedAtTop,h=VO(e),p=h===Jk.sliding||h===Jk.floating,m=ia(!1),v=function(){return m.get()&&!e.removed},g=function(e){return p?e.fold(w(0),(function(e){return e.components().length>1?ar(e.components()[1].element):0})):0},b=function(n){switch(UO(e)){case jO.auto:var r=hW.getToolbar(a),i=g(r),o=ar(n.element)-i,s=Jr(t),u=s.y>o;if(u)return"top";var c=mn(t),l=Math.max(c.dom.scrollHeight,ar(c)),f=s.bottom<l-o;if(f)return"bottom";var d=Qr(),h=d.bottom<s.bottom-o;return h?"bottom":"top";case jO.bottom:return"bottom";case jO.top:default:return"top"}},y=function(e){var t=i.get();Aj.setModes(t,[e]),f.setDockingMode(e);var n=d()?$f.TopToBottom:$f.BottomToTop;Fn(t.element,Bd,n)},x=function(){var e=l.getOrThunk((function(){var e=rq(Jn(Bn(),"margin-left")).getOr(0);return gr(Bn())-hr(t).left+e}));Kn(i.get().element,"max-width",e+"px")},_=function(){var e=hW.getToolbar(a),n=g(e),r=Jr(t),o=d()?Math.max(r.y-ar(i.get().element)+n,0):r.bottom;Yn(a.element,{position:"absolute",top:Math.round(o)+"px",left:Math.round(r.x)+"px"})},C=function(){o.broadcastOn([wm()],{})},k=function(e){if(void 0===e&&(e=!1),v()){if(u||x(),p&&hW.refreshToolbar(a),u||_(),c){var t=i.get();e?Aj.reset(t):Aj.refresh(t)}C()}},S=function(e){if(void 0===e&&(e=!0),!u&&c&&v()){var t=f.getDockingMode(),n=b(i.get());n!==t&&(y(n),e&&k(!0))}},O=function(){m.set(!0),Kn(a.element,"display","flex"),s.addClass(e.getBody(),"mce-edit-focus"),nr(o.element,"display"),S(!1),k()},E=function(){m.set(!1),n.outerContainer&&(Kn(a.element,"display","none"),s.removeClass(e.getBody(),"mce-edit-focus")),Kn(o.element,"display","none")};return{isVisible:v,isPositionedAtTop:d,show:O,hide:E,update:k,updateMode:S,repositionPopups:C}},fq=function(e,t){var n=Jr(e);return{pos:t?n.y:n.bottom,bounds:n}},dq=function(e,t,n,r){var i=ia(fq(t,n.isPositionedAtTop())),o=function(r){var o=fq(t,n.isPositionedAtTop()),a=o.pos,s=o.bounds,u=i.get(),c=u.pos,l=u.bounds,f=s.height!==l.height||s.width!==l.width;i.set({pos:a,bounds:s}),f&&ET(e,r),n.isVisible()&&(c!==a?n.update(!0):f&&(n.updateMode(),n.repositionPopups()))};r||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),e.on("NodeChange keydown",(function(e){x_.requestAnimationFrame((function(){return o(e)}))})),e.on("ScrollWindow",(function(){return n.updateMode()}));var a=nd();a.set(sd(tt.fromDom(e.getBody()),"load",o)),e.on("remove",(function(){a.clear()}))},hq=function(e,t,n,r,i){var o=t.mothership,a=t.uiMothership,s=t.outerContainer,u=ia(null),c=tt.fromDom(i.targetNode),l=lq(e,c,t,r,u),f=YO(e);OW(e);var d=function(){if(u.get())l.show();else{u.set(hW.getHeader(s).getOrDie());var i=ZO(e);Yp(i,o),Yp(i,a),JU(e,t,n,r),hW.setMenubar(s,bW(e,n)),l.show(),dq(e,c,l,f),e.nodeChanged()}};e.on("show",d),e.on("hide",l.hide),f||(e.on("focus",d),e.on("blur",l.hide)),e.on("init",(function(){(e.hasFocus()||f)&&d()})),vE(e,t);var h={show:function(){l.show()},hide:function(){l.hide()},enable:function(){mE(t,!1)},disable:function(){mE(t,!0)},isDisabled:function(){return Bg.isDisabled(s)}};return{editorContainer:s.element.dom,api:h}},pq=Object.freeze({__proto__:null,render:hq}),mq="contexttoolbar-show",vq="contexttoolbar-hide",gq=function(e){return{hide:function(){return _s(e,os())},getValue:function(){return ev.getValue(e)}}},bq=function(e,t){return Ns($z,(function(n,r){var i=e.get(n),o=gq(i);t.onAction(o,r.event.buttonApi)}))},yq=function(e,t,n){var r=t.original;r.primary;var i=M(r,["primary"]),o=xo(Rk(D(D({},i),{type:"button",onAction:v})));return RU(o,n.backstage.shared.providers,[bq(e,t)])},wq=function(e,t,n){var r=t.original;r.primary;var i=M(r,["primary"]),o=xo(Lk(D(D({},i),{type:"togglebutton",onAction:v})));return BU(o,n.backstage.shared.providers,[bq(e,t)])},xq=function(e,t,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===t.type?wq(e,t,r):yq(e,t,r)},_q=function(e,t,n){var r=q(t,(function(t){return E_(xq(e,t,n))})),i=function(){return q(r,(function(e){return e.asSpec()}))},o=function(e){return pe(t,(function(t,n){return t.primary?z.from(r[n]).bind((function(t){return t.getOpt(e)})).filter(k(Bg.isDisabled)):z.none()}))};return{asSpecs:i,findPrimary:o}},Cq=function(e,t){var n=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),r=E_(JM.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:hf([Dw.config({mode:"special",onEnter:function(e){return i.findPrimary(e).map((function(e){return ks(e),!0}))},onLeft:function(e,t){return t.cut(),z.none()},onRight:function(e,t){return t.cut(),z.none()}})])})),i=_q(r,e.commands,t);return[{title:z.none(),items:[r.asSpec()]},{title:z.none(),items:i.asSpecs()}]},kq=function(e,t,n){return rW({type:e,uid:iu("context-toolbar"),initGroups:Cq(t,n),onEscape:z.none,cyclicKeying:!0,providers:n})},Sq={renderContextForm:kq,buildInitGroups:Cq},Oq=function(e,t,n){return void 0===n&&(n=.01),t.bottom-e.y>=n&&e.bottom-t.y>=n},Eq=function(e){var t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){var n=Sn(tt.fromDom(e.startContainer),e.startOffset).element,r=ft(n)?gn(n):z.some(n);return r.filter(lt).map((function(e){return e.dom.getBoundingClientRect()})).getOr(t)}return t},Tq=function(e){var t=e.selection.getRng(),n=Eq(t);if(e.inline){var r=Br();return Xr(r.left+n.left,r.top+n.top,n.width,n.height)}var i=Zr(tt.fromDom(e.getBody()));return Xr(i.x+n.left,i.y+n.top,n.width,n.height)},Dq=function(e,t){return t.filter(zn).map(Zr).getOrThunk((function(){return Tq(e)}))},Mq=function(e,t,n){var r=Math.max(e.x+n,t.x),i=Math.min(e.right-n,t.right);return{x:r,width:i-r}},Aq=function(e,t,n,r,i,o){var a=tt.fromDom(e.getContainer()),s=Lc(a,".tox-editor-header").getOr(a),u=Jr(s),c=u.y>=t.bottom,l=r&&!c;if(e.inline&&l)return{y:Math.max(u.bottom+o,n.y),bottom:n.bottom};if(e.inline&&!l)return{y:n.y,bottom:Math.min(u.y-o,n.bottom)};var f="line"===i?Jr(a):t;return l?{y:Math.max(u.bottom+o,n.y),bottom:Math.min(f.bottom-o,n.bottom)}:{y:Math.max(f.y+o,n.y),bottom:Math.min(u.y-o,n.bottom)}},Nq=function(e,t,n,r){void 0===r&&(r=0);var i=jr(window),o=Jr(tt.fromDom(e.getContentAreaContainer())),a=BO(e)||LO(e)||FO(e),s=Mq(o,i,r),u=s.x,c=s.width;if(e.inline&&!a)return Xr(u,i.y,c,i.height);var l=t.header.isPositionedAtTop(),f=Aq(e,o,i,l,n,r),d=f.y,h=f.bottom;return Xr(u,d,c,h-d)},Pq=12,Iq={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"],inset:["tox-pop--inset"]},Rq={maxHeightFunction:Ed(),maxWidthFunction:EH()},zq=function(e,t){var n=e.selection.getRng(),r=Sn(tt.fromDom(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&cn(r.element,t)},Bq=function(e,t,n){var r=Qn(e,"position");Kn(e,"position",t);var i=n(e);return r.each((function(t){return Kn(e,"position",t)})),i},Lq=function(e){return"node"===e},$q=function(e,t,n,r,i){var o=Tq(e),a=r.lastElement().exists((function(e){return cn(n,e)}));if(zq(e,n))return a?b_:h_;if(a)return Bq(t,r.getMode(),(function(){var e=Oq(o,Jr(t));return e&&!r.isReposition()?w_:b_}));var s="fixed"===r.getMode()?i.y+Br().top:i.y,u=ar(t)+Pq;return s+u<=o.y?h_:p_},Fq=function(e,t,n,r){var i=function(t){return function(r,i,o,a,s){var u=$q(e,a,t,n,s),c=D(D({},r),{y:s.y,height:s.height});return D(D({},u(c,i,o,a,s)),{alwaysFit:!0})}},o=function(e){return Lq(r)?[i(e)]:[]},a={onLtr:function(e){return[Ul,ql,Hl,jl,Wl,Vl].concat(o(e))},onRtl:function(e){return[Ul,ql,Wl,Vl,Hl,jl].concat(o(e))}},s={onLtr:function(e){return[ql,jl,Vl,Hl,Wl,Ul].concat(o(e))},onRtl:function(e){return[ql,Vl,jl,Wl,Hl,Ul].concat(o(e))}};return t?s:a},jq=function(e,t,n,r){return"line"===t?{bubble:Nd(Pq,0,Iq),layouts:{onLtr:function(){return[Gl]},onRtl:function(){return[Kl]}},overrides:Rq}:{bubble:Nd(0,Pq,Iq,1/Pq),layouts:Fq(e,n,r,t),overrides:Rq}},Vq=function(e,t){var n=X(t,(function(t){return t.predicate(e.dom)})),r=Y(n,(function(e){return"contexttoolbar"===e.type})),i=r.pass,o=r.fail;return{contextToolbars:i,contextForms:o}},Hq=function(e){if(e.length<=1)return e;var t=function(t){return H(e,(function(e){return e.position===t}))},n=function(t){return X(e,(function(e){return e.position===t}))},r=t("selection"),i=t("node");if(r||i){if(i&&r){var o=n("node"),a=q(n("selection"),(function(e){return D(D({},e),{position:"node"})}));return o.concat(a)}return n(r?"selection":"node")}return n("line")},Wq=function(e){if(e.length<=1)return e;var t=function(t){return ee(e,(function(e){return e.position===t}))},n=t("selection").orThunk((function(){return t("node")})).orThunk((function(){return t("line")})).map((function(e){return e.position}));return n.fold((function(){return[]}),(function(t){return X(e,(function(e){return e.position===t}))}))},Uq=function(e,t,n){var r=Vq(e,t);if(r.contextForms.length>0)return z.some({elem:e,toolbars:[r.contextForms[0]]});var i=Vq(e,n);if(i.contextForms.length>0)return z.some({elem:e,toolbars:[i.contextForms[0]]});if(r.contextToolbars.length>0||i.contextToolbars.length>0){var o=Hq(r.contextToolbars.concat(i.contextToolbars));return z.some({elem:e,toolbars:o})}return z.none()},qq=function(e,t,n){return e(t)?z.none():ya(t,(function(e){if(lt(e)){var t=Vq(e,n.inNodeScope),r=t.contextToolbars,i=t.contextForms,o=i.length>0?i:Wq(r);return o.length>0?z.some({elem:e,toolbars:o}):z.none()}return z.none()}),e)},Gq=function(e,t){var n=tt.fromDom(t.getBody()),r=function(e){return cn(e,n)},i=function(e){return!r(e)&&!dn(n,e)},o=tt.fromDom(t.selection.getNode());return i(o)?z.none():Uq(o,e.inNodeScope,e.inEditorScope).orThunk((function(){return qq(r,o,e)}))},Kq=function(e,t){var n={},r=[],i=[],o={},a={},s=function(e,s){var u=xo(qk(s));n[e]=u,u.launch.map((function(n){o["form:"+e]=D(D({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){t(u)}})})),"editor"===u.scope?i.push(u):r.push(u),a[e]=u},u=function(e,t){Kk(t).each((function(n){"editor"===t.scope?i.push(n):r.push(n),a[e]=n}))},c=me(e);return G(c,(function(t){var n=e[t];"contextform"===n.type?s(t,n):"contexttoolbar"===n.type&&u(t,n)})),{forms:n,inNodeScope:r,inEditorScope:i,lookupTable:a,formNavigators:o}},Yq=iu("forward-slide"),Xq=iu("backward-slide"),Jq=iu("change-slide-event"),Zq="tox-pop--resizing",Qq=function(e){var t=ia([]);return t_.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){t.set([]),t_.getContent(e).each((function(e){nr(e.element,"visibility")})),sc(e.element,Zq),nr(e.element,"width")},inlineBehaviours:hf([jw("context-toolbar-events",[js(qa(),(function(e,t){"width"===t.event.raw.propertyName&&(sc(e.element,Zq),nr(e.element,"width"))})),Ns(Jq,(function(e,t){var n=e.element;nr(n,"width");var r=gr(n);t_.setContent(e,t.event.contents),oc(n,Zq);var i=gr(n);Kn(n,"width",r+"px"),t_.getContent(e).each((function(e){t.event.focus.bind((function(e){return Cf(e),Ef(n)})).orThunk((function(){return Dw.focusIn(e),Of(Dn(n))}))})),x_.setTimeout((function(){Kn(e.element,"width",i+"px")}),0)})),Ns(Yq,(function(e,n){t_.getContent(e).each((function(n){t.set(t.get().concat([{bar:n,focus:Of(Dn(e.element))}]))})),Cs(e,Jq,{contents:n.event.forwardContents,focus:z.none()})})),Ns(Xq,(function(e,n){de(t.get()).each((function(n){t.set(t.get().slice(0,t.get().length-1)),Cs(e,Jq,{contents:Tc(n.bar),focus:n.focus})}))}))]),Dw.config({mode:"special",onEscape:function(n){return de(t.get()).fold((function(){return e.onEscape()}),(function(e){return _s(n,Xq),z.some(!0)}))}})]),lazySink:function(){return ri.value(e.sink)}})},eG="tox-pop--transition",tG=function(e,t,n,r){var i=r.backstage,o=i.shared,a=tn().deviceType.isTouch,s=id(),u=id(),c=id(),l=Ec(Qq({sink:n,onEscape:function(){return e.focus(),z.some(!0)}})),f=function(){var t=c.get().getOr("node"),n=Lq(t)?1:0;return Nq(e,o,t,n)},d=function(){return!e.removed&&!(a()&&i.isContextMenuOpen())},h=function(e){return De(Pe(e,s.get(),cn),!0)},p=function(){if(d()){var t=f(),n=De(c.get(),"node")?Dq(e,s.get()):Tq(e);return t.height<=0||!Oq(n,t)}return!0},m=function(){s.clear(),u.clear(),c.clear(),t_.hide(l)},g=function(){if(t_.isOpen(l)){var e=l.element;nr(e,"display"),p()?Kn(e,"display","none"):(u.set(0),t_.reposition(l))}},b=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:hf([Dw.config({mode:"acyclic"}),jw("pop-dialog-wrap-events",[Vs((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return Dw.focusIn(t)}))})),Hs((function(t){e.shortcuts.remove("ctrl+F9")}))])])}},y=pt((function(){return Kq(t,(function(e){var t=_([e]);Cs(l,Yq,{forwardContents:b(t)})}))})),w=function(t,n){return XU(e,{buttons:t,toolbar:n.items,allowToolbarGroups:!1},r,z.some(["form:"]))},x=function(e,t){return Sq.buildInitGroups(e,t)},_=function(t){var n=e.ui.registry.getAll().buttons,r=y(),i=D(D({},n),r.formNavigators),a=VO(e)===Jk.scrolling?Jk.scrolling:Jk.default,s=ne(q(t,(function(e){return"contexttoolbar"===e.type?w(i,e):x(e,o.providers)})));return rW({type:a,uid:iu("context-toolbar"),initGroups:s,onEscape:z.none,cyclicKeying:!0,providers:o.providers})},C=function(t,r){var i="node"===t?o.anchors.node(r):o.anchors.cursor(),c=jq(e,t,a(),{lastElement:s.get,isReposition:function(){return De(u.get(),0)},getMode:function(){return Lp.getMode(n)}});return xi(i,c)},k=function(e,t){if(S.cancel(),d()){var r=_(e),i=e[0].position,o=C(i,t);c.set(i),u.set(1);var a=l.element;nr(a,"display"),h(t)||(sc(a,eG),Lp.reset(n,l)),t_.showWithinBounds(l,b(r),{anchor:o,transition:{classes:[eG],mode:"placement"}},(function(){return z.some(f())})),t.fold(s.clear,s.set),p()&&Kn(a,"display","none")}},S=QC((function(){if(e.hasFocus()&&!e.removed)if(uc(l.element,eG))S.throttle();else{var t=y();Gq(t,e).fold(m,(function(e){k(e.toolbars,z.some(e.elem))}))}}),17);e.on("init",(function(){e.on("remove",m),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",g),e.on("click keyup focus SetContent",S.throttle),e.on(vq,m),e.on(mq,(function(t){var n=y();Oe(n.lookupTable,t.toolbarKey).each((function(n){k([n],ze(t.target!==e,t.target)),t_.getContent(l).each(Dw.focusIn)}))})),e.on("focusout",(function(t){x_.setEditorTimeout(e,(function(){Ef(n.element).isNone()&&Ef(l.element).isNone()&&m()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&m()})),e.on("AfterProgressState",(function(t){t.state?m():e.hasFocus()&&S.throttle()})),e.on("NodeChange",(function(e){Ef(l.element).fold(S.throttle,v)}))}))},nG=function(e){var t=[{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"}];G(t,(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:MW(e,t.cmd),onSetup:EW(e,t.name)})})),e.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:MW(e,"JustifyNone")})},rG={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:[""]},iG=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),oG=function(e,t){return H(t,(function(t){return H(rG[t],(function(t){return e===t}))}))},aG=function(e,t){var n=z.from(iG.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return oG(r,t)?z.some({value:n,unit:r}):z.none()}))},sG=function(e,t){return aG(e,t).map((function(e){var t=e.value,n=e.unit;return t+n}))},uG=function(e,t){var n=function(){var n=t.getOptions(e),r=t.getCurrent(e).map(t.hash),i=id();return q(n,(function(n){return{type:"togglemenuitem",text:t.display(n),onSetup:function(o){var a=function(e){e&&(i.on((function(e){return e.setActive(!1)})),i.set(o)),o.setActive(e)};a(De(r,t.hash(n)));var s=t.watcher(e,n,a);return function(){i.clear(),s()}},onAction:function(){return t.setCurrent(e,n)}}}))};e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:function(e){return e(n())},onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})},cG={name:"lineheight",text:"Line height",icon:"line-height",getOptions:IO,hash:function(e){return sG(e,["fixed","relative","empty"]).getOr(e)},display:x,watcher:function(e,t,n){return e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind},getCurrent:function(e){return z.from(e.queryCommandValue("LineHeight"))},setCurrent:function(e,t){return e.execCommand("LineHeight",!1,t)}},lG=function(e){var t=z.from(RO(e));return t.map((function(t){return{name:"language",text:"Language",icon:"language",getOptions:w(t),hash:function(e){return l(e.customCode)?e.code:e.code+"/"+e.customCode},display:function(e){return e.title},watcher:function(e,t,n){return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:t.customCode}).unbind},getCurrent:function(e){var t=tt.fromDom(e.selection.getNode());return wa(t,(function(e){return z.some(e).filter(lt).bind((function(e){var t=Hn(e,"lang");return t.map((function(t){var n=Hn(e,"data-mce-lang").getOrUndefined();return{code:t,customCode:n,title:""}}))}))}))},setCurrent:function(e,t){return e.execCommand("Lang",!1,t)},onToolbarSetup:function(t){var n=nd();return t.setActive(e.formatter.match("lang",{},void 0,!0)),n.set(e.formatter.formatChanged("lang",t.setActive,!0)),n.clear}}}))},fG=function(e){uG(e,cG),lG(e).each((function(t){return uG(e,t)}))},dG=function(e,t){VW(e,t),YW(e,t),dU(e,t),cU(e,t),iU(e,t)},hG=function(e){return TW(e,"NodeChange",(function(t){t.setDisabled(!e.queryCommandState("outdent"))}))},pG=function(e){e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:hG(e),onAction:MW(e,"outdent")}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:MW(e,"indent")})},mG=function(e){pG(e)},vG=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},gG=function(e){sR.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(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:EW(e,t.name),onAction:vG(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:EW(e,n),onAction:vG(e,n)})}},bG=function(e){sR.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(t){e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:MW(e,t.action)})}))},yG=function(e){sR.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:MW(e,t.action),onSetup:EW(e,t.name)})}))},wG=function(e){gG(e),bG(e),yG(e)},xG=function(e){sR.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(t){e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:MW(e,t.action)})})),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:vG(e,"code")})},_G=function(e){wG(e),xG(e)},CG=function(e,t){return TW(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(e.mode.isReadOnly()||!e.undoManager[t]())}))},kG=function(e){e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:CG(e,"hasUndo"),onAction:MW(e,"undo")}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:CG(e,"hasRedo"),onAction:MW(e,"redo")})},SG=function(e){e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:CG(e,"hasUndo"),onAction:MW(e,"undo")}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:CG(e,"hasRedo"),onAction:MW(e,"redo")})},OG=function(e){kG(e),SG(e)},EG=function(e){return TW(e,"VisualAid",(function(t){t.setActive(e.hasVisual)}))},TG=function(e){e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:EG(e),onAction:MW(e,"mceToggleVisualAid")})},DG=function(e){e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:MW(e,"mceToggleVisualAid")})},MG=function(e){DG(e),TG(e)},AG=function(e,t){nG(e),_G(e),dG(e,t),OG(e),lD(e),MG(e),mG(e),fG(e)},NG=function(e,t){return{type:"makeshift",x:e,y:t}},PG=function(e,t,n){return NG(e.x+t,e.y+n)},IG=function(e){return"longpress"===e.type||0===e.type.indexOf("touch")},RG=function(e){if(IG(e)){var t=e.touches[0];return NG(t.pageX,t.pageY)}return NG(e.pageX,e.pageY)},zG=function(e){if(IG(e)){var t=e.touches[0];return NG(t.clientX,t.clientY)}return NG(e.clientX,e.clientY)},BG=function(e,t){var n=xO.DOM.getPos(e);return PG(t,n.x,n.y)},LG=function(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?RG(t):BG(e.getContentAreaContainer(),zG(t)):$G(e)},$G=function(e){return{type:"selection",root:tt.fromDom(e.selection.getNode())}},FG=function(e){return{type:"node",node:z.some(tt.fromDom(e.selection.getNode())),root:tt.fromDom(e.getBody())}},jG=function(e,t,n){switch(n){case"node":return FG(e);case"point":return LG(e,t);case"selection":return $G(e)}},VG=function(e,t,n,r,i,o){var a=n(),s=jG(e,t,o);eB(a,Zk.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),t_.showMenuAt(i,{anchor:s},{menu:{markers:_S("normal")},data:e})}))},HG={onLtr:function(){return[ql,jl,Vl,Hl,Wl,Ul,h_,p_,d_,l_,f_,c_]},onRtl:function(){return[ql,Vl,jl,Wl,Hl,Ul,h_,p_,f_,c_,d_,l_]}},WG=12,UG={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"]},qG=function(e,t){var n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;var r=t.touches[0],i=n.getRng(),o=np(e.getWin(),kh.domRange(i));return o.exists((function(e){return e.left<=r.clientX&&e.right>=r.clientX&&e.top<=r.clientY&&e.bottom>=r.clientY}))},GG=function(e){var t=e.selection.getRng(),n=function(){x_.setEditorTimeout(e,(function(){e.selection.setRng(t)}),10),o()};e.once("touchend",n);var r=function(e){e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",r,!0);var i=function(){return o()};e.once("longpresscancel",i);var o=function(){e.off("touchend",n),e.off("longpresscancel",i),e.off("mousedown",r)}},KG=function(e,t,n){var r=jG(e,t,n),i="point"===n?WG:0;return D({bubble:Nd(0,i,UG),layouts:HG,overrides:{maxWidthFunction:EH(),maxHeightFunction:Ed()}},r)},YG=function(e,t,n,r,i,o,a){var s=KG(e,t,o);eB(n,Zk.CLOSE_ON_EXECUTE,r,!0).map((function(n){t.preventDefault(),t_.showMenuWithinBounds(i,{anchor:s},{menu:{markers:_S("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return z.some(Nq(e,r.shared,"node"===o?"node":"selection"))})),e.fire(vq)}))},XG=function(e,t,n,r,i,o){var a=tn(),s=a.os.isiOS(),u=a.os.isOSX(),c=a.os.isAndroid(),l=a.deviceType.isTouch(),f=function(){return!(c||s||u&&l)},d=function(){var a=n();YG(e,t,a,r,i,o,f())};if((u||s)&&"node"!==o){var h=function(){GG(e),d()};qG(e,t)?h():(e.once("selectionchange",h),e.once("touchend",(function(){return e.off("selectionchange",h)})))}else d()},JG=function(e){return"string"===typeof e?e.split(/[ ,]/):e},ZG=function(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")},QG=function(e,t,n){var r=e.ui.registry.getAll().contextMenus;return z.from(e.getParam(t)).map(JG).getOrThunk((function(){return X(JG(n),(function(e){return Ee(r,e)}))}))},eK=function(e){return!1===e.getParam("contextmenu")},tK=function(e){return QG(e,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},nK=function(e){return e.getParam("contextmenu_avoid_overlap","","string")},rK=function(e){return o(e)?"|"===e:"separator"===e.type},iK={type:"separator"},oK=function(e){var t=function(e){return{text:e.text,icon:e.icon,disabled:e.disabled,shortcut:e.shortcut}};if(o(e))return e;switch(e.type){case"separator":return iK;case"submenu":return D(D({type:"nestedmenuitem"},t(e)),{getSubmenuItems:function(){var t=e.getSubmenuItems();return o(t)?t:q(t,oK)}});default:return D(D({type:"menuitem"},t(e)),{onAction:g(e.onAction)})}},aK=function(e,t){if(0===t.length)return e;var n=de(e).filter((function(e){return!rK(e)})),r=n.fold((function(){return[]}),(function(e){return[iK]}));return e.concat(r).concat(t).concat([iK])},sK=function(e,t,n){var r=Z(t,(function(t,r){return Oe(e,r.toLowerCase()).map((function(e){var r=e.update(n);if(o(r))return aK(t,r.split(" "));if(r.length>0){var i=q(r,oK);return aK(t,i)}return t})).getOrThunk((function(){return t.concat([r])}))}),[]);return r.length>0&&rK(r[r.length-1])&&r.pop(),r},uK=function(e,t){return t.ctrlKey&&!ZG(e)},cK=function(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)},lK=function(e,t){return cK(e,t)?e.selection.getStart(!0):t.target},fK=function(e,t){var n=nK(e),r=cK(e,t)?"selection":"point";if(Ge(n)){var i=lK(e,t),o=UD(tt.fromDom(i),n);return o?"node":r}return r},dK=function(e,t,n){var r=tn(),i=r.deviceType.isTouch,o=Ec(t_.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:hf([jw("dismissContextMenu",[Ns(ps(),(function(t,n){bm.close(t),e.focus()}))])])})),a=function(e){return t_.hide(o)},s=function(t){if(ZG(e)&&t.preventDefault(),!uK(e,t)&&!eK(e)){var r=fK(e,t),a=function(){var n=lK(e,t),r=e.ui.registry.getAll(),i=tK(e);return sK(r.contextMenus,i,n)},s=i()?XG:VG;s(e,t,a,n,o,r)}};e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");e.on(t,a),e.on("longpress contextmenu",s)}))},hK=aa.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),pK=function(e){return function(t){return t.translate(-e.left,-e.top)}},mK=function(e){return function(t){return t.translate(e.left,e.top)}},vK=function(e){return function(t,n){return Z(e,(function(e,t){return t(e)}),lr(t,n))}},gK=function(e,t,n){return e.fold(vK([mK(n),pK(t)]),vK([pK(t)]),vK([]))},bK=function(e,t,n){return e.fold(vK([mK(n)]),vK([]),vK([mK(t)]))},yK=function(e,t,n){return e.fold(vK([]),vK([pK(n)]),vK([mK(t),pK(n)]))},wK=function(e,t,n,r,i,o){var a=bK(e,i,o),s=bK(t,i,o);return Math.abs(a.left-s.left)<=n&&Math.abs(a.top-s.top)<=r},xK=function(e,t,n,r,i,o){var a=bK(e,i,o),s=bK(t,i,o),u=Math.abs(a.left-s.left),c=Math.abs(a.top-s.top);return lr(u,c)},_K=function(e,t,n){var r=e.fold((function(e,t){return{position:z.some("absolute"),left:z.some(e+"px"),top:z.some(t+"px")}}),(function(e,t){return{position:z.some("absolute"),left:z.some(e-n.left+"px"),top:z.some(t-n.top+"px")}}),(function(e,t){return{position:z.some("fixed"),left:z.some(e+"px"),top:z.some(t+"px")}}));return D({right:z.none(),bottom:z.none()},r)},CK=function(e,t,n){return e.fold((function(e,r){return SK(e+t,r+n)}),(function(e,r){return OK(e+t,r+n)}),(function(e,r){return EK(e+t,r+n)}))},kK=function(e,t,n,r){var i=function(e,i){return function(o,a){var s=e(t,n,r);return i(o.getOr(s.left),a.getOr(s.top))}};return e.fold(i(yK,SK),i(bK,OK),i(gK,EK))},SK=hK.offset,OK=hK.absolute,EK=hK.fixed,TK=function(e,t){var n=Vn(e,t);return l(n)?NaN:parseInt(n,10)},DK=function(e,t){var n=e.element,r=TK(n,t.leftAttr),i=TK(n,t.topAttr);return isNaN(r)||isNaN(i)?z.none():z.some(lr(r,i))},MK=function(e,t,n){var r=e.element;Fn(r,t.leftAttr,n.left+"px"),Fn(r,t.topAttr,n.top+"px")},AK=function(e,t){var n=e.element;Un(n,t.leftAttr),Un(n,t.topAttr)},NK=function(e,t,n,r){return DK(e,t).fold((function(){return n}),(function(e){return EK(e.left+r.left,e.top+r.top)}))},PK=function(e,t,n,r,i,o){var a=NK(e,t,n,r),s=t.mustSnap?zK(e,t,a,i,o):BK(e,t,a,i,o),u=gK(a,i,o);return MK(e,t,u),s.fold((function(){return{coord:EK(u.left,u.top),extra:z.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))},IK=function(e,t){AK(e,t)},RK=function(e,t,n,r){return pe(e,(function(e){var i=e.sensor,o=wK(t,i,e.range.left,e.range.top,n,r);return o?z.some({output:kK(e.output,t,n,r),extra:e.extra}):z.none()}))},zK=function(e,t,n,r,i){var o=t.getSnapPoints(e),a=RK(o,n,r,i);return a.orThunk((function(){var e=Z(o,(function(e,t){var o=t.sensor,a=xK(n,o,t.range.left,t.range.top,r,i);return e.deltas.fold((function(){return{deltas:z.some(a),snap:z.some(t)}}),(function(n){var r=(a.left+a.top)/2,i=(n.left+n.top)/2;return r<=i?{deltas:z.some(a),snap:z.some(t)}:e}))}),{deltas:z.none(),snap:z.none()});return e.snap.map((function(e){return{output:kK(e.output,n,r,i),extra:e.extra}}))}))},BK=function(e,t,n,r,i){var o=t.getSnapPoints(e);return RK(o,n,r,i)},LK=function(e,t,n){return{coord:kK(e.output,e.output,t,n),extra:e.extra}},$K=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=hn(e.element),a=Br(o),s=ej(i),u=LK(r,a,s),c=_K(u.coord,a,s);Xn(i,c)}},FK=Object.freeze({__proto__:null,snapTo:$K}),jK="data-initial-z-index",VK=function(e){gn(e.element).filter(lt).each((function(e){Hn(e,jK).fold((function(){return nr(e,"z-index")}),(function(t){return Kn(e,"z-index",t)})),Un(e,jK)}))},HK=function(e){gn(e.element).filter(lt).each((function(t){Qn(t,"z-index").each((function(e){Fn(t,jK,e)})),Kn(t,"z-index",Jn(e.element,"z-index"))}))},WK=function(e,t){e.getSystem().addToGui(t),HK(t)},UK=function(e){VK(e),e.getSystem().removeFromGui(e)},qK=function(e,t,n){return e.getSystem().build(bM.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))},GK=qo("snaps",[Do("getSnapPoints"),sl("onSensor"),Do("leftAttr"),Do("topAttr"),Ko("lazyViewport",Qr),Ko("mustSnap",!1)]),KK=[Ko("useFixed",O),Do("blockerClass"),Ko("getTarget",x),Ko("onDrag",v),Ko("repositionTarget",!0),Ko("onDrop",v),ea("getBounds",Qr),GK],YK=function(e){return Ie(Qn(e,"left"),Qn(e,"top"),Qn(e,"position"),(function(e,t,n){var r="fixed"===n?EK:SK;return r(parseInt(e,10),parseInt(t,10))})).getOrThunk((function(){var t=hr(e);return OK(t.left,t.top)}))},XK=function(e,t,n,r,i){var o=i.bounds,a=bK(t,n,r),s=Tl(a.left,o.x,o.x+o.width-i.width),u=Tl(a.top,o.y,o.y+o.height-i.height),c=OK(s,u);return t.fold((function(){var e=yK(c,n,r);return SK(e.left,e.top)}),w(c),(function(){var e=gK(c,n,r);return EK(e.left,e.top)}))},JK=function(e,t,n,r,i,o,a){var s=t.fold((function(){var e=CK(n,o.left,o.top),t=gK(e,r,i);return EK(t.left,t.top)}),(function(t){var a=PK(e,t,n,o,r,i);return a.extra.each((function(n){t.onSensor(e,n)})),a.coord}));return XK(e,s,r,i,a)},ZK=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=hn(e.element),a=Br(o),s=ej(i),u=YK(i),c=JK(e,t.snaps,u,a,s,r,n),l=_K(c,a,s);Xn(i,l)}t.onDrag(e,i,r)},QK=function(e,t){return{bounds:e.getBounds(),height:sr(t.element),width:br(t.element)}},eY=function(e,t,n,r,i){var o=n.update(r,i),a=n.getStartData().getOrThunk((function(){return QK(t,e)}));o.each((function(n){ZK(e,t,a,n)}))},tY=function(e,t,n,r){t.each(UK),n.snaps.each((function(t){IK(e,t)}));var i=n.getTarget(e.element);r.reset(),n.onDrop(e,i)},nY=function(e){return function(t,n){var r=function(e){n.setStartData(QK(t,e))};return Ts(A([Ns(ls(),(function(e){n.getStartData().each((function(){return r(e)}))}))],e(t,n,r),!0))}},rY=function(e){return Ts([Ns(Pa(),e.forceDrop),Ns(za(),e.drop),Ns(Ia(),(function(t,n){e.move(n.event)})),Ns(Ra(),e.delayDrop)])},iY=function(e){return z.from(lr(e.x,e.y))},oY=function(e,t){return lr(t.left-e.left,t.top-e.top)},aY=Object.freeze({__proto__:null,getData:iY,getDelta:oY}),sY=function(e,t,n){return[Ns(Pa(),(function(r,i){var o=i.event.raw;if(0===o.button){i.stop();var a=function(){return tY(r,z.some(c),e,t)},s=qD(a,200),u={drop:a,delayDrop:s.schedule,forceDrop:a,move:function(n){s.cancel(),eY(r,e,t,aY,n)}},c=qK(r,e.blockerClass,rY(u)),l=function(){n(r),WK(r,c)};l()}}))]},uY=A(A([],KK,!0),[fl("dragger",{handlers:nY(sY)})],!1),cY=function(e){return Ts([Ns(Da(),e.forceDrop),Ns(Aa(),e.drop),Ns(Na(),e.drop),Ns(Ma(),(function(t,n){e.move(n.event)}))])},lY=function(e){var t=e[0];return z.some(lr(t.clientX,t.clientY))},fY=function(e){var t=e.raw,n=t.touches;return 1===n.length?lY(n):z.none()},dY=function(e,t){return lr(t.left-e.left,t.top-e.top)},hY=Object.freeze({__proto__:null,getData:fY,getDelta:dY}),pY=function(e,t,n){var r=id(),i=function(n){tY(n,r.get(),e,t),r.clear()};return[Ns(Da(),(function(o,a){a.stop();var s=function(){return i(o)},u={drop:s,delayDrop:v,forceDrop:s,move:function(n){eY(o,e,t,hY,n)}},c=qK(o,e.blockerClass,cY(u));r.set(c);var l=function(){n(o),WK(o,c)};l()})),Ns(Ma(),(function(n,r){r.stop(),eY(n,e,t,hY,r.event)})),Ns(Aa(),(function(e,t){t.stop(),i(e)})),Ns(Na(),i)]},mY=A(A([],KK,!0),[fl("dragger",{handlers:nY(pY)})],!1),vY=function(e,t,n){return A(A([],sY(e,t,n),!0),pY(e,t,n),!0)},gY=A(A([],KK,!0),[fl("dragger",{handlers:nY(vY)})],!1),bY=uY,yY=mY,wY=gY,xY=Object.freeze({__proto__:null,mouse:bY,touch:yY,mouseOrTouch:wY}),_Y=function(){var e=z.none(),t=z.none(),n=function(){e=z.none(),t=z.none()},r=function(t,n){var r=e.map((function(e){return t.getDelta(e,n)}));return e=z.some(n),r},i=function(e,t){return e.getData(t).bind((function(t){return r(e,t)}))},o=function(e){t=z.some(e)},a=function(){return t},s=w({});return Su({readState:s,reset:n,update:i,getStartData:a,setStartData:o})},CY=Object.freeze({__proto__:null,init:_Y}),kY=gf({branchKey:"mode",branches:xY,name:"dragging",active:{events:function(e,t){var n=e.dragger;return n.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:z.from(e.extra)}}},state:CY,apis:FK}),SY=40,OY=SY/2,EY=function(e,t,n,r,i,o){return e.fold((function(){return kY.snap({sensor:OK(n-OY,r-OY),range:lr(i,o),output:OK(z.some(n),z.some(r)),extra:{td:t}})}),(function(e){var i=n-OY,o=r-OY,a=SY,s=SY,u=e.element.dom.getBoundingClientRect();return kY.snap({sensor:OK(i,o),range:lr(a,s),output:OK(z.some(n-u.width/2),z.some(r-u.height/2)),extra:{td:t}})}))},TY=function(e,t,n){var r=function(e,t){return e.exists((function(e){return cn(e,t)}))};return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,i){var o=i.td;r(t.get(),o)||(t.set(o),n(o))},mustSnap:!0}},DY=function(e){return E_(C_.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:hf([kY.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),XA.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},MY=function(e,t){var n=ia([]),r=ia([]),i=ia(!1),o=id(),a=id(),s=function(e){var n=Zr(e);return EY(h.getOpt(t),e,n.x,n.y,n.width,n.height)},u=function(){return q(n.get(),(function(e){return s(e)}))},c=function(e){var n=Zr(e);return EY(p.getOpt(t),e,n.right,n.bottom,n.width,n.height)},l=function(){return q(r.get(),(function(e){return c(e)}))},f=TY(u,o,(function(t){a.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),d=TY(l,a,(function(t){o.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),h=DY(f),p=DY(d),m=Ec(h.asSpec()),v=Ec(p.asSpec()),g=function(t,n,r,i){var o=n.dom.getBoundingClientRect();nr(t.element,"display");var a=vn(tt.fromDom(e.getBody())).dom.innerHeight,s=r(o),u=i(o,a);(s||u)&&Kn(t.element,"display","none")},b=function(e,t,n,r){var i=n(t);kY.snapTo(e,i);var o=function(e){return e[r]<0},a=function(e,t){return e[r]>t};g(e,t,o,a)},y=function(e){return b(m,e,s,"top")},w=function(){return o.get().each(y)},x=function(e){return b(v,e,c,"bottom")},_=function(){return a.get().each(x)};tn().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){i.get()||(Wp(t,m),Wp(t,v),i.set(!0)),o.set(e.start),a.set(e.finish),e.otherCells.each((function(t){n.set(t.upOrLeftCells),r.set(t.downOrRightCells),y(e.start),x(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){w(),_()})),e.on("TableSelectionClear",(function(){i.get()&&(Gp(m),Gp(v),i.set(!1)),o.clear(),a.clear()})))},AY=function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1},NY=function(e,t,n){t.delimiter||(t.delimiter="»");var r=function(r){var i=r||[],o=q(i,(function(t,r){return C_.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:t.name},action:function(n){e.focus(),e.selection.select(t.element),e.nodeChanged()},buttonBehaviours:hf([_E.button(n.isDisabled),gE()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return Z(o.slice(1),(function(e,t){var n=e;return n.push(a),n.push(t),n}),[o[0]])},i=function(t){var n=[],r=t.length;while(r-- >0){var i=t[r];if(1===i.nodeType&&!AY(i)){var o=e.fire("ResolveName",{name:i.nodeName.toLowerCase(),target:i});if(o.isDefaultPrevented()||n.push({name:o.name,element:i}),o.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:hf([Dw.config({mode:"flow",selector:"div[role=button]"}),Bg.config({disabled:n.isDisabled}),gE(),TM.config({}),$w.config({}),jw("elementPathEvents",[Vs((function(t,n){e.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return Dw.focusIn(t)})),e.on("NodeChange",(function(e){var n=i(e.parents);n.length>0?$w.set(t,r(n)):$w.set(t,[])}))}))])]),components:[]}};(function(e){e[e["None"]=0]="None",e[e["Both"]=1]="Both",e[e["Vertical"]=2]="Vertical"})(zW||(zW={}));var PY=function(e,t,n,r,i){var o={};return o.height=oq(r+t.top,DO(e),AO(e)),n===zW.Both&&(o.width=oq(i+t.left,TO(e),MO(e))),o},IY=function(e,t,n){var r=tt.fromDom(e.getContainer()),i=PY(e,t,n,ar(r),gr(r));ge(i,(function(e,t){return Kn(r,t,iq(e))})),OT(e)},RY=function(e){var t=!e.hasPlugin("autoresize"),n=e.getParam("resize",t);return!1===n?zW.None:"both"===n?zW.Both:zW.Vertical},zY=function(e,t,n,r){var i=20,o=lr(n*i,r*i);return IY(e,o,t),z.some(!0)},BY=function(e,t){var n=RY(e);return n===zW.None?z.none():z.some(UC("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize")},behaviours:[kY.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,r,i){return IY(e,i,n)},blockerClass:"tox-blocker"}),Dw.config({mode:"special",onLeft:function(){return zY(e,n,-1,0)},onRight:function(){return zY(e,n,1,0)},onUp:function(){return zY(e,n,0,-1)},onDown:function(){return zY(e,n,0,1)}}),TM.config({}),Xw.config({})]},t.icons))},LY=function(e,t){var n,r=function(e,n,r){return $w.set(e,[Cc(t.translate(["{0} "+r,n[r]]))])};return C_.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:hf([_E.button(t.isDisabled),gE(),TM.config({}),$w.config({}),ev.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),jw("wordcount-events",[Us((function(e){var t=ev.getValue(e),n="words"===t.mode?"characters":"words";ev.setValue(e,{mode:n,count:t.count}),r(e,t.count,n)})),Vs((function(t){e.on("wordCountUpdate",(function(e){var n=ev.getValue(t).mode;ev.setValue(t,{mode:n,count:e.wordCount}),r(t,e.wordCount,n)}))}))])]),eventOrder:(n={},n[ts()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},$Y=function(e,t){var n=function(){var e=IC.translate(["Powered by {0}","Tiny"]),t='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+e+'">'+e+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},r=function(){var r=[];return e.getParam("elementpath",!0,"boolean")&&r.push(NY(e,{},t)),e.hasPlugin("wordcount")&&r.push(LY(e,t)),e.getParam("branding",!0,"boolean")&&r.push(n()),r.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:r}]:[]},i=function(){var n=r(),i=BY(e,t);return n.concat(i.toArray())};return{dom:{tag:"div",classes:["tox-statusbar"]},components:i()}},FY=function(e){var t,n=e.inline,r=n?pq:nq,i=eE(e)?Gj:ZF,o=z.none(),a=tn(),s=a.browser.isIE(),u=s?["tox-platform-ie"]:[],c=a.deviceType.isTouch(),l="tox-platform-touch",f=c?[l]:[],d=qO(e),h=ZO(e),p=IC.isRtl()?{attributes:{dir:"rtl"}}:{},m={attributes:(t={},t[Bd]=d?$f.BottomToTop:$f.TopToBottom,t)},g=function(){return o.bind(hW.getHeader)},b=function(){return i.isDocked(g)},y=function(){Kn(Z.element,"width",document.body.clientWidth+"px")},w=function(){var e=cn(Bn(),h)&&"grid"===Jn(h,"display"),t={dom:D({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(u).concat(f)},p),behaviours:hf([Lp.config({useFixed:function(){return b()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:Ts([Ns(fs(),y)])};return xi(t,e?n:{})},x=Ec(w()),_=function(){return ri.value(x)},C=E_({dom:{tag:"div",classes:["tox-anchorbar"]}}),k=function(){return o.bind((function(e){return C.getOpt(e)})).getOrDie("Could not find a anchor bar element")},S=function(){return o.bind((function(e){return hW.getToolbar(e)})).getOrDie("Could not find more toolbar element")},O=function(){return o.bind((function(e){return hW.getThrobber(e)})).getOrDie("Could not find throbber element")},E=PF(x,e,k),T=hW.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:E,onEscape:function(){e.focus()}}),M=VO(e),A=hW.parts.toolbar(D({dom:{tag:"div",classes:["tox-toolbar"]},getSink:_,providers:E.shared.providers,onEscape:function(){e.focus()},type:M,lazyToolbar:S,lazyHeader:function(){return g().getOrDie("Could not find header element")}},m)),N=hW.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:E.shared.providers,onEscape:function(){e.focus()},type:M}),P=hW.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),I=hW.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),R=hW.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:E}),B=e.getParam("statusbar",!0,"boolean"),L=B&&!n?z.some($Y(e,E.shared.providers)):z.none(),$={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[P,I]},F=FO(e),j=LO(e),V=BO(e),H=function(){return F?[N]:j?[A]:[]},W=hW.parts.header({dom:D({tag:"div",classes:["tox-editor-header"]},m),components:ne([V?[T]:[],H(),JO(e)?[]:[C.asSpec()]]),sticky:eE(e),editor:e,sharedBackstage:E.shared}),U=ne([d?[]:[W],n?[]:[$],d?[W]:[]]),q={dom:{tag:"div",classes:["tox-editor-container"]},components:U},G=ne([[q],n?[]:L.toArray(),[R]]),K=QO(e),Y=D(D({role:"application"},IC.isRtl()?{dir:"rtl"}:{}),K?{"aria-hidden":"true"}:{}),X=Ec(hW.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(d?["tox-tinymce--toolbar-bottom"]:[]).concat(f).concat(u),styles:D({visibility:"hidden"},K?{opacity:"0",border:"0"}:{}),attributes:Y},components:G,behaviours:hf([gE(),Bg.config({disableClass:"tox-tinymce--disabled"}),Dw.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, .tox-statusbar__resize-handle"})])}));o=z.some(X),e.shortcuts.add("alt+F9","focus menubar",(function(){hW.focusMenubar(X)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){hW.focusToolbar(X)})),e.addCommand("ToggleToolbarDrawer",(function(){hW.toggleToolbarDrawer(X)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return hW.isToolbarDrawerToggled(X)}));var J=yM(X),Z=yM(x);IF(e,J,Z);var Q=function(){var e={broadcastAll:Z.broadcast,broadcastOn:Z.broadcastOn,register:v};return{channels:e}},ee=function(){var t=iq(sq(e)),n=iq(cq(e));return e.inline||(tr("div","width",n)&&Kn(X.element,"width",n),tr("div","height",t)?Kn(X.element,"height",t):Kn(X.element,"height","200px")),t},te=function(){i.setup(e,E.shared,g),AG(e,E),dK(e,_,E),jV(e),fH(e,O,E.shared),be(WO(e),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var t=e.ui.registry.getAll(),n=t.buttons,o=t.menuItems,a=t.contextToolbars,s=t.sidebars,u=$O(e),c={menuItems:o,menus:rE(e),menubar:iE(e),toolbar:u.getOrThunk((function(){return oE(e)})),allowToolbarGroups:M===Jk.floating,buttons:n,sidebar:s};tG(e,a,x,{backstage:E}),MY(e,x);var l=e.getElement(),f=ee(),d={mothership:J,uiMothership:Z,outerContainer:X},h={targetNode:l,height:f};return r.render(e,d,c,E,h)};return{mothership:J,uiMothership:Z,backstage:E,renderUI:te,getUi:Q}},jY=function(e,t){var n=z.from(Vn(e,"id")).fold((function(){var e=iu("dialog-describe");return Fn(t,"id",e),e}),x);Fn(e,"aria-describedby",n)},VY=function(e,t){var n=Hn(e,"id").fold((function(){var e=iu("dialog-label");return Fn(t,"id",e),e}),x);Fn(e,"aria-labelledby",n)},HY=w([Do("lazySink"),Fo("dragBlockClass"),ea("getBounds",Qr),Ko("useTabstopAt",E),Ko("eventOrder",{}),tv("modalBehaviours",[Dw]),ul("onExecute"),ll("onEscape")]),WY={sketch:x},UY=w([Rv({name:"draghandle",overrides:function(e,t){return{behaviours:hf([kY.config({mode:"mouse",getTarget:function(e){return zc(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),Pv({schema:[Do("dom")],name:"title"}),Pv({factory:WY,schema:[Do("dom")],name:"close"}),Pv({factory:WY,schema:[Do("dom")],name:"body"}),Rv({factory:WY,schema:[Do("dom")],name:"footer"}),Iv({factory:{sketch:function(e,t){return D(D({},e),{dom:t.dom,components:t.components})}},schema:[Ko("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Ko("components",[])],name:"blocker"})]),qY=function(e,t,n,r){var i,o=id(),a=function(t){o.set(t);var n=e.lazySink(t).getOrDie(),i=r.blocker(),a=n.getSystem().build(D(D({},i),{components:i.components.concat([Tc(t)]),behaviours:hf([Xw.config({}),jw("dialog-blocker-events",[js(La(),(function(){Dw.focusIn(t)}))])])}));Wp(n,a),Dw.focusIn(t)},s=function(e){o.clear(),gn(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){Gp(e)}))}))},u=function(t){return Yv(t,e,"body")},c=function(t){return Yv(t,e,"footer")},l=function(e,t){rH.block(e,t)},f=function(e){rH.unblock(e)},d=iu("modal-events"),h=D(D({},e.eventOrder),(i={},i[ds()]=[d].concat(e.eventOrder["alloy.system.attached"]||[]),i));return{uid:e.uid,dom:e.dom,components:t,apis:{show:a,hide:s,getBody:u,getFooter:c,setIdle:f,setBusy:l},eventOrder:h,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:rv(e.modalBehaviours,[$w.config({}),Dw.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),rH.config({getRoot:o.get}),jw(d,[Vs((function(t){VY(t.element,Yv(t,e,"title").element),jY(t.element,Yv(t,e,"body").element)}))])])}},GY=hg({name:"ModalDialog",configFields:HY(),partFields:UY(),factory:qY,apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),KY=Qi([No("type"),No("name")].concat(VS)),YY=co,XY=[Oo("name","name",ki((function(){return iu("button-name")})),uo),Ho("icon"),Zo("align","end",["start","end"]),Qo("primary",!1),Qo("disabled",!1)],JY=A(A([],XY,!0),[No("text")],!1),ZY=A([Po("type",["submit","cancel","custom"])],JY,!0),QY=A([Po("type",["menu"]),Ho("text"),Ho("tooltip"),Ho("icon"),$o("items",KY)],XY,!0),eX=ko("type",{submit:ZY,cancel:ZY,custom:ZY,menu:QY}),tX=[No("type"),No("text"),Po("level",["info","warn","error","success"]),No("icon"),Ko("url","")],nX=Qi(tX),rX=function(e){return[No("type"),e]},iX=[No("type"),No("text"),Qo("disabled",!1),Qo("primary",!1),Oo("name","name",ki((function(){return iu("button-name")})),uo),Ho("icon"),Qo("borderless",!1)],oX=Qi(iX),aX=[No("type"),No("name"),No("label"),Qo("disabled",!1)],sX=Qi(aX),uX=co,cX=[No("type"),No("name")],lX=cX.concat([Ho("label")]),fX=lX.concat([Ko("columns","auto")]),dX=Qi(fX),hX=io([No("value"),No("text"),No("icon")]),pX=lX,mX=Qi(pX),vX=uo,gX=lX,bX=Qi(gX),yX=uo,wX=cX.concat([Jo("tag","textarea"),No("scriptId"),No("scriptUrl"),ta("settings",void 0)]),xX=cX.concat([Jo("tag","textarea"),Ro("init")]),_X=go((function(e){return wo("customeditor.old",Zi(xX),e).orThunk((function(){return wo("customeditor.new",Zi(wX),e)}))})),CX=uo,kX=lX,SX=Qi(kX),OX=vo(),EX=function(e){return[No("type"),Ao("columns"),e]},TX=[No("type"),No("html"),Zo("presets","presentation",["presentation","document"])],DX=Qi(TX),MX=lX.concat([Qo("sandboxed",!0)]),AX=Qi(MX),NX=uo,PX=lX.concat([Mo("currentState",Qi([Do("blob"),No("url")]))]),IX=Qi(PX),RX=lX.concat([Ho("inputMode"),Ho("placeholder"),Qo("maximized",!1),Qo("disabled",!1)]),zX=Qi(RX),BX=uo,LX=function(e){return[No("type"),No("label"),e]},$X=[No("text"),No("value")],FX=[No("text"),$o("items",So("items",(function(){return jX})))],jX=to([Qi($X),Qi(FX)]),VX=lX.concat([$o("items",jX),Qo("disabled",!1)]),HX=Qi(VX),WX=uo,UX=lX.concat([Lo("items",[No("text"),No("value")]),Xo("size",1),Qo("disabled",!1)]),qX=Qi(UX),GX=uo,KX=lX.concat([Qo("constrain",!0),Qo("disabled",!1)]),YX=Qi(KX),XX=Qi([No("width"),No("height")]),JX=[No("type"),$o("header",uo),$o("cells",eo(uo))],ZX=Qi(JX),QX=lX.concat([Ho("placeholder"),Qo("maximized",!1),Qo("disabled",!1)]),eJ=Qi(QX),tJ=uo,nJ=lX.concat([Zo("filetype","file",["image","media","file"]),Ko("disabled",!1)]),rJ=Qi(nJ),iJ=Qi([No("value"),Ko("meta",{})]),oJ=function(e){return Oo("items","items",Ci(),eo(go((function(t){return wo("Checking item of "+e,aJ,t).fold((function(e){return ri.error(Co(e))}),(function(e){return ri.value(e)}))}))))},aJ=Xi((function(){return mo("type",{alertbanner:nX,bar:Qi(rX(oJ("bar"))),button:oX,checkbox:sX,colorinput:mX,colorpicker:bX,dropzone:SX,grid:Qi(EX(oJ("grid"))),iframe:AX,input:zX,listbox:HX,selectbox:qX,sizeinput:YX,textarea:eJ,urlinput:rJ,customeditor:_X,htmlpanel:DX,imagetools:IX,collection:dX,label:Qi(LX(oJ("label"))),table:ZX,panel:uJ})})),sJ=[No("type"),Ko("classes",[]),$o("items",aJ)],uJ=Qi(sJ),cJ=[Oo("name","name",ki((function(){return iu("tab-name")})),uo),No("title"),$o("items",aJ)],lJ=[No("type"),Lo("tabs",cJ)],fJ=Qi(lJ),dJ=JY,hJ=eX,pJ=Qi([No("title"),Mo("body",mo("type",{panel:uJ,tabpanel:fJ})),Jo("size","normal"),$o("buttons",hJ),Ko("initialData",{}),ea("onAction",v),ea("onChange",v),ea("onSubmit",v),ea("onClose",v),ea("onCancel",v),Ko("onTabChange",v)]),mJ=function(e){return wo("dialog",pJ,e)},vJ=Qi(A([Po("type",["cancel","custom"])],dJ,!0)),gJ=Qi([No("title"),No("url"),Vo("height"),Vo("width"),Uo("buttons",vJ),ea("onAction",v),ea("onCancel",v),ea("onClose",v),ea("onMessage",v)]),bJ=function(e){return wo("dialog",gJ,e)},yJ=function(e){return a(e)?[e].concat(re(Se(e),yJ)):s(e)?re(e,yJ):[]},wJ=function(e){return o(e.type)&&o(e.name)},xJ={checkbox:uX,colorinput:vX,colorpicker:yX,dropzone:OX,input:BX,iframe:NX,sizeinput:XX,selectbox:GX,listbox:WX,size:XX,textarea:tJ,urlinput:iJ,customeditor:CX,collection:hX,togglemenuitem:YY},_J=function(e){return z.from(xJ[e.type])},CJ=function(e){return X(yJ(e),wJ)},kJ=function(e){var t=CJ(e),n=re(t,(function(e){return _J(e).fold((function(){return[]}),(function(t){return[Mo(e.name,t)]}))}));return Qi(n)},SJ=function(e){var t=xo(mJ(e)),n=kJ(e),r=e.initialData;return{internalDialog:t,dataValidator:n,initialData:r}},OJ={open:function(e,t){var n=SJ(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){var n=xo(bJ(t));return e(n)},redial:function(e){return SJ(e)}},EJ=function(e){var t=[],n={};return ge(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),t.length>0?ri.error(t):ri.value(n)},TJ=function(e,t){var n=E_(VI.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:q(e.items,(function(e){return v$(n,e,t)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:hf([Dw.config({mode:"acyclic",useTabstopAt:k(OR)}),QI.memento(n),mR.memento(n,{postprocess:function(e){return EJ(e).fold((function(e){return console.error(e),{}}),x)}})])}},DJ=function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:gx(e.action),behaviours:rv(e.tabButtonBehaviours,[Xw.config({}),Dw.config({mode:"execution",useSpace:!0,useEnter:!0}),ev.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}},MJ=dg({name:"TabButton",configFields:[Ko("uid",void 0),Do("value"),Oo("dom","dom",Ei((function(){return{attributes:{role:"tab",id:iu("aria"),"aria-selected":"false"}}})),oo()),Fo("action"),Ko("domModification",{}),tv("tabButtonBehaviours",[Xw,Dw,ev]),Do("view")],factory:DJ}),AJ=w([Do("tabs"),Do("dom"),Ko("clickToDismiss",!1),tv("tabbarBehaviours",[rb,Dw]),ol(["tabClass","selectedClass"])]),NJ=zv({factory:MJ,name:"tabs",unit:"tab",overrides:function(e){var t=function(e,t){rb.dehighlight(e,t),Cs(e,ys(),{tabbar:e,button:t})},n=function(e,t){rb.highlight(e,t),Cs(e,bs(),{tabbar:e,button:t})};return{action:function(r){var i=r.getSystem().getByUid(e.uid).getOrDie(),o=rb.isHighlighted(i,r),a=function(){return o&&e.clickToDismiss?t:o?v:n}();a(i,r)},domModification:{classes:[e.markers.tabClass]}}}}),PJ=w([NJ]),IJ=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:rv(e.tabbarBehaviours,[rb.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){Fn(t.element,"aria-selected","true")},onDehighlight:function(e,t){Fn(t.element,"aria-selected","false")}}),Dw.config({mode:"flow",getInitial:function(e){return rb.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}},RJ=hg({name:"Tabbar",configFields:AJ(),partFields:PJ(),factory:IJ}),zJ=function(e,t){return{uid:e.uid,dom:e.dom,behaviours:rv(e.tabviewBehaviours,[$w.config({})]),domModification:{attributes:{role:"tabpanel"}}}},BJ=dg({name:"Tabview",configFields:[tv("tabviewBehaviours",[$w])],factory:zJ}),LJ=w([Ko("selectFirst",!0),sl("onChangeTab"),sl("onDismissTab"),Ko("tabs",[]),tv("tabSectionBehaviours",[])]),$J=Pv({factory:RJ,schema:[Do("dom"),Bo("markers",[Do("tabClass"),Do("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),FJ=Pv({factory:BJ,name:"tabview"}),jJ=w([$J,FJ]),VJ=function(e,t,n,r){var i=function(t){var n=ev.getValue(t);Kv(t,e,"tabview").each((function(r){var i=ee(e.tabs,(function(e){return e.value===n}));i.each((function(n){var i=n.view();Hn(t.element,"id").each((function(e){Fn(r.element,"aria-labelledby",e)})),$w.set(r,i),e.onChangeTab(r,t,i)}))}))},o=function(t,n){Kv(t,e,"tabbar").each((function(e){n(e).each(ks)}))};return{uid:e.uid,dom:e.dom,components:t,behaviours:nv(e.tabSectionBehaviours),events:Ts(ne([e.selectFirst?[Vs((function(e,t){o(e,rb.getFirst)}))]:[],[Ns(bs(),(function(e,t){var n=t.event.button;i(n)})),Ns(ys(),(function(t,n){var r=n.event.button;e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return Kv(t,e,"tabview").map((function(e){return $w.contents(e)})).getOr([])},showTab:function(e,t){var n=function(e){var n=rb.getCandidates(e),r=ee(n,(function(e){return ev.getValue(e)===t}));return r.filter((function(t){return!rb.isHighlighted(e,t)}))};o(e,n)}}}},HJ=hg({name:"TabSection",configFields:LJ(),partFields:jJ(),factory:VJ,apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),WJ=function(e,t,n){return q(e,(function(r,i){$w.set(n,e[i].view());var o=t.dom.getBoundingClientRect();return $w.set(n,[]),o.height}))},UJ=function(e){return fe(ce(e,(function(e,t){return e>t?-1:e<t?1:0})))},qJ=function(e,t,n){var r,i=mn(e).dom,o=zc(e,".tox-dialog-wrap").getOr(e),a="fixed"===Jn(o,"position");r=a?Math.max(i.clientHeight,window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var s=ar(t),u=t.dom.offsetLeft>=n.dom.offsetLeft+gr(n),c=u?Math.max(ar(n),s):s,l=parseInt(Jn(e,"margin-top"),10)||0,f=parseInt(Jn(e,"margin-bottom"),10)||0,d=ar(e)+l+f,h=d-c;return r-h},GJ=function(e,t){fe(e).each((function(e){return HJ.showTab(t,e.value)}))},KJ=function(e,t){Kn(e,"height",t+"px"),tn().browser.isIE()?nr(e,"flex-basis"):Kn(e,"flex-basis",t+"px")},YJ=function(e,t,n){zc(e,'[role="dialog"]').each((function(e){Lc(e,'[role="tablist"]').each((function(r){n.get().map((function(n){return Kn(t,"height","0"),Kn(t,"flex-basis","0"),Math.min(n,qJ(e,t,r))})).each((function(e){KJ(t,e)}))}))}))},XJ=function(e){return Lc(e,'[role="tabpanel"]')},JJ=function(e){var t=function(){var t=id(),n=[Vs((function(n){var r=n.element;XJ(r).each((function(i){Kn(i,"visibility","hidden"),n.getSystem().getByDom(i).toOptional().each((function(n){var r=WJ(e,i,n),o=UJ(r);o.fold(t.clear,t.set)})),YJ(r,i,t),nr(i,"visibility"),GJ(e,n),x_.requestAnimationFrame((function(){YJ(r,i,t)}))}))})),Ns(fs(),(function(e){var n=e.element;XJ(n).each((function(e){YJ(n,e,t)}))})),Ns(WM,(function(e,n){var r=e.element;XJ(r).each((function(e){var n=Of(Dn(e));Kn(e,"visibility","hidden");var i=Qn(e,"height").map((function(e){return parseInt(e,10)}));nr(e,"height"),nr(e,"flex-basis");var o=e.dom.getBoundingClientRect().height,a=i.forall((function(e){return o>e}));a?(t.set(o),YJ(r,e,t)):i.each((function(t){KJ(e,t)})),nr(e,"visibility"),n.each(Cf)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var e=[],t=!0;return{extraEvents:e,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:n}},ZJ="send-data-to-section",QJ="send-data-to-view",eZ=function(e,t){var n=ia({}),r=function(e){var t=ev.getValue(e),r=EJ(t).getOr({}),i=n.get(),o=xi(i,r);n.set(o)},i=function(e){var t=n.get();ev.setValue(e,t)},o=ia(null),a=q(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[VI.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:q(e.items,(function(e){return v$(n,e,t)})),formBehaviours:hf([Dw.config({mode:"acyclic",useTabstopAt:k(OR)}),jw("TabView.form.events",[Vs(i),Hs(r)]),yf.config({channels:pa([{key:ZJ,value:{onReceive:r}},{key:QJ,value:{onReceive:i}}])})])}}))]}}})),s=JJ(a).smartTabHeight;return HJ.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=ev.getValue(t);Cs(e,HM,{name:r,oldName:o.get()}),o.set(r)},tabs:a,components:[HJ.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[RJ.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:hf([TM.config({})])}),HJ.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:hf([jw("tabpanel",s.extraEvents),Dw.config({mode:"acyclic"}),bg.config({find:function(e){return fe(HJ.getViewItems(e))}}),ev.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([ZJ],{}),n.get()},setValue:function(e,t){n.set(t),e.getSystem().broadcastOn([QJ],{})}}})])})},tZ=iu("update-dialog"),nZ=iu("update-title"),rZ=iu("update-body"),iZ=iu("update-footer"),oZ=iu("body-send-message"),aZ=function(e,t,n,r){var i=function(e){switch(e.body.type){case"tabpanel":return[eZ(e.body,n)];default:return[TJ(e.body,n)]}},o=function(e,t){return z.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:D(D({},t.map((function(e){return{id:e}})).getOr({})),r?a:{})},components:[],behaviours:hf([QI.childAt(0),wU.config({channel:rZ,updateState:o,renderComponents:i,initialData:e})])}},sZ=function(e,t,n,r){return aZ(e,z.some(t),n,r)},uZ=function(e,t){var n=aZ(e,z.none(),t,!1);return GY.parts.body(n)},cZ=function(e){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[CR({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:hf([TM.config({}),Xw.config({})])})]}],behaviours:hf([Dw.config({mode:"acyclic",useTabstopAt:k(OR)})])};return GY.parts.body(t)},lZ=AE.deviceType.isTouch(),fZ=function(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}},dZ=function(e,t){return GY.parts.close(C_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:hf([TM.config({})])}))},hZ=function(){return GY.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},pZ=function(e,t){return GY.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:O_("<p>"+PC(t.translate(e))+"</p>")}]}]})},mZ=function(e){return GY.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})},vZ=function(e,t){return[bM.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),bM.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},gZ=function(e){var t,n="tox-dialog",r=n+"-wrap",i=r+"__backdrop",o=n+"__disable-scroll";return GY.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),z.some(!0)},useTabstopAt:function(e){return!OR(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:D({position:"relative"},e.extraStyles)},components:A([e.header,e.body],e.footer.toArray(),!0),parts:{blocker:{dom:O_('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:lZ?[i,i+"--opaque"]:[i]}}]}},dragBlockClass:r,modalBehaviours:hf(A([Xw.config({}),jw("dialog-events",e.dialogEvents.concat([js(La(),(function(e,t){Dw.focusIn(e)}))])),jw("scroll-lock",[Vs((function(){oc(Bn(),o)})),Hs((function(){sc(Bn(),o)}))])],e.extraBehaviours,!0)),eventOrder:D((t={},t[ts()]=["dialog-events"],t[ds()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[hs()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})},bZ=function(e){return C_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[UC("close",{tag:"div",classes:["tox-icon"]},e.icons)],action:function(e){_s(e,LM)}})},yZ=function(e,t,n){var r=function(e){return[Cc(n.translate(e.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:D({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:hf([wU.config({channel:nZ,renderComponents:r})])}},wZ=function(){return{dom:O_('<div class="tox-dialog__draghandle"></div>')}},xZ=function(e,t,n){return bM.sketch({dom:O_('<div class="tox-dialog__header"></div>'),components:[yZ(e,z.some(t),n),wZ(),bZ(n)],containerBehaviours:hf([kY.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return $c(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},_Z=function(e,t){var n=GY.parts.title(yZ(e,z.none(),t)),r=GY.parts.draghandle(wZ()),i=GY.parts.close(bZ(t)),o=[n].concat(e.draggable?[r]:[]).concat([i]);return bM.sketch({dom:O_('<div class="tox-dialog__header"></div>'),components:o})},CZ=function(e,t){return _Z({title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},t.shared.providers)},kZ=function(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:O_('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},SZ=function(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){GY.setBusy(e(),(function(e,r){return kZ(n.message,r,t)}))},onUnblock:function(){GY.setIdle(e())}}},OZ=function(e,t,n,r){var i,o=function(e,t){return z.some(t)};return Ec(gZ(D(D({},e),{lazySink:r.shared.getSink,extraBehaviours:A([wU.config({channel:tZ,updateState:o,initialData:t}),mR.memory({})],e.extraBehaviours,!0),onEscape:function(e){_s(e,LM)},dialogEvents:n,eventOrder:(i={},i[es()]=[wU.name(),yf.name()],i[ds()]=["scroll-lock",wU.name(),"messages","dialog-events","alloy.base.behaviour"],i[hs()]=["alloy.base.behaviour","dialog-events","messages",wU.name(),"scroll-lock"],i)})))},EZ=function(e){var t=function(e){var t=q(e.items,(function(e){var t=ia(!1);return D(D({},e),{storage:t})}));return D(D({},e),{items:t})};return q(e,(function(e){return"menu"===e.type?t(e):e}))},TZ=function(e){return Z(e,(function(e,t){if("menu"===t.type){var n=t;return Z(n.items,(function(e,t){return e[t.name]=t.storage,e}),e)}return e}),{})},DZ=function(e,t){return[Ls(La(),SR),e(BM,(function(e,n){t.onClose(),n.onClose()})),e(LM,(function(e,t,n,r){t.onCancel(e),_s(r,BM)})),Ns(VM,(function(e,n){return t.onUnblock()})),Ns(jM,(function(e,n){return t.onBlock(n.event)}))]},MZ=function(e,t){var n=function(t,n){return Ns(t,(function(t,i){r(t,(function(r,o){n(e(),r,i.event,t)}))}))},r=function(e,t){wU.getState(e).get().each((function(n){t(n,e)}))};return A(A([],DZ(n,t),!0),[n($M,(function(e,t,n){t.onAction(e,{name:n.name})}))],!1)},AZ=function(e,t,n){var r=function(t,n){return Ns(t,(function(t,r){i(t,(function(i,o){n(e(),i,r.event,t)}))}))},i=function(e,t){wU.getState(e).get().each((function(n){t(n.internalDialog,e)}))};return A(A([],DZ(r,t),!0),[r(FM,(function(e,t){return t.onSubmit(e)})),r(zM,(function(e,t,n){t.onChange(e,{name:n.name})})),r($M,(function(e,t,r,i){var o=function(){return Dw.focusIn(i)},a=function(e){return Wn(e,"disabled")||Hn(e,"aria-disabled").exists((function(e){return"true"===e}))},s=Dn(i.element),u=Of(s);t.onAction(e,{name:r.name,value:r.value}),Of(s).fold(o,(function(e){a(e)||u.exists((function(t){return dn(e,t)&&a(t)}))?o():n().toOptional().filter((function(t){return!dn(t.element,e)})).each(o)}))})),r(HM,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),Hs((function(t){var n=e();ev.setValue(t,n.getData())}))],!1)},NZ={initUrlDialog:MZ,initDialog:AZ},PZ=function(e,t){return dB(e,e.type,t)},IZ=function(e,t,n){return ee(t,(function(e){return e.name===n})).bind((function(t){return t.memento.getOpt(e)}))},RZ=function(e,t){var n=t.map((function(e){return e.footerButtons})).getOr([]),r=Y(n,(function(e){return"start"===e.align})),i=function(e,t){return bM.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:q(t,(function(e){return e.memento.asSpec()}))})},o=i("start",r.pass),a=i("end",r.fail);return[o,a]},zZ=function(e,t){var n=function(e,n){var r=q(n.buttons,(function(e){var n=E_(PZ(e,t));return{name:e.name,align:e.align,memento:n}})),i=function(e,t){return IZ(e,r,t)};return z.some({lookupByName:i,footerButtons:r})};return{dom:O_('<div class="tox-dialog__footer"></div>'),components:[],behaviours:hf([wU.config({channel:iZ,initialData:e,updateState:n,renderComponents:RZ})])}},BZ=function(e,t){return zZ(e,t)},LZ=function(e,t){return GY.parts.footer(zZ(e,t))},$Z=function(e,t){var n=e.getRoot();if(n.getSystem().isConnected()){var r=bg.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return VI.getField(r,t).fold((function(){var n=e.getFooter(),i=wU.getState(n);return i.get().bind((function(e){return e.lookupByName(r,t)}))}),(function(e){return z.some(e)}))}return z.none()},FZ=function(e,t){var n=e.getRoot();return wU.getState(n).get().map((function(e){return xo(wo("data",e.dataValidator,t))})).getOr(t)},jZ=function(e,t,n){var r=function(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)},i=function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,i=ev.getValue(r),o=be(n,(function(e){return e.get()}));return D(D({},i),o)},a=function(t){r((function(r){var i=m.getData(),o=D(D({},i),t),a=FZ(e,o),s=e.getFormWrapper();ev.setValue(s,a),ge(n,(function(e,t){Ee(o,t)&&e.set(o[t])}))}))},s=function(t){$Z(e,t).each(Bg.disable)},u=function(t){$Z(e,t).each(Bg.enable)},c=function(t){$Z(e,t).each(Xw.focus)},l=function(e){if(!o(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){Cs(t,jM,{message:e})}))},f=function(){r((function(e){_s(e,VM)}))},d=function(t){r((function(n){var r=e.getBody(),i=wU.getState(r);i.get().exists((function(e){return e.isTabPanel()}))&&bg.getCurrent(r).each((function(e){HJ.showTab(e,t)}))}))},h=function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([tZ],r),n.getSystem().broadcastOn([nZ],r.internalDialog),n.getSystem().broadcastOn([rZ],r.internalDialog),n.getSystem().broadcastOn([iZ],r.internalDialog),m.setData(r.initialData)}))},p=function(){r((function(e){_s(e,BM)}))},m={getData:i,setData:a,disable:s,enable:u,focus:c,block:l,unblock:f,showTab:d,redial:h,close:p};return m},VZ=function(e){switch(e){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},HZ=function(e,t,n){var r=CZ(e.internalDialog.title,n),i=uZ({body:e.internalDialog.body},n),o=EZ(e.internalDialog.buttons),a=TZ(o),s=LZ({buttons:o},n),u=NZ.initDialog((function(){return h}),SZ((function(){return f}),n.shared.providers,t),n.shared.getSink),c=VZ(e.internalDialog.size),l={header:r,body:i,footer:z.some(s),extraClasses:c,extraBehaviours:[],extraStyles:{}},f=OZ(l,e,u,n),d=function(){var e=function(){var e=GY.getBody(f);return bg.getCurrent(e).getOr(e)};return{getRoot:w(f),getBody:function(){return GY.getBody(f)},getFooter:function(){return GY.getFooter(f)},getFormWrapper:e}}(),h=jZ(d,t.redial,a);return{dialog:f,instanceApi:h}},WZ=function(e,t,n,r){var i,o,a=iu("dialog-label"),s=iu("dialog-content"),u=function(e,t){return z.some(t)},c=E_(xZ({title:e.internalDialog.title,draggable:!0},a,n.shared.providers)),l=E_(sZ({body:e.internalDialog.body},s,n,r)),f=EZ(e.internalDialog.buttons),d=TZ(f),h=E_(BZ({buttons:f},n)),p=NZ.initDialog((function(){return v}),{onBlock:function(e){rH.block(m,(function(t,r){return kZ(e.message,r,n.shared.providers)}))},onUnblock:function(){rH.unblock(m)},onClose:function(){return t.closeWindow()}},n.shared.getSink),m=Ec({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(i={role:"dialog"},i["aria-labelledby"]=a,i["aria-describedby"]=s,i)},eventOrder:(o={},o[es()]=[wU.name(),yf.name()],o[ts()]=["execute-on-form"],o[ds()]=["reflecting","execute-on-form"],o),behaviours:hf([Dw.config({mode:"cyclic",onEscape:function(e){return _s(e,BM),z.some(!0)},useTabstopAt:function(e){return!OR(e)&&("button"!==st(e)||"disabled"!==Vn(e,"disabled"))}}),wU.config({channel:tZ,updateState:u,initialData:e}),Xw.config({}),jw("execute-on-form",p.concat([js(La(),(function(e,t){Dw.focusIn(e)}))])),rH.config({getRoot:function(){return z.some(m)}}),$w.config({}),mR.memory({})]),components:[c.asSpec(),l.asSpec(),h.asSpec()]}),v=jZ({getRoot:w(m),getFooter:function(){return h.get(m)},getBody:function(){return l.get(m)},getFormWrapper:function(){var e=l.get(m);return bg.getCurrent(e).getOr(e)}},t.redial,d);return{dialog:m,instanceApi:v}},UZ=tinymce.util.Tools.resolve("tinymce.util.URI"),qZ=function(e){var t=function(t){e.getSystem().isConnected()&&t(e)},n=function(e){if(!o(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t((function(t){Cs(t,jM,{message:e})}))},r=function(){t((function(e){_s(e,VM)}))},i=function(){t((function(e){_s(e,BM)}))},a=function(e){t((function(t){t.getSystem().broadcastOn([oZ],e)}))};return{block:n,unblock:r,close:i,sendMessage:a}},GZ=["insertContent","setContent","execCommand","close","block","unblock"],KZ=function(e){return a(e)&&-1!==GZ.indexOf(e.mceAction)},YZ=function(e){return!KZ(e)&&a(e)&&Ee(e,"mceAction")},XZ=function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!c(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock();break}},JZ=function(e,t,n,r){var i,o=CZ(e.title,r),a=cZ(e),s=e.buttons.bind((function(e){return 0===e.length?z.none():z.some(LZ({buttons:e},r))})),u=NZ.initUrlDialog((function(){return g}),SZ((function(){return v}),r.shared.providers,t)),c=D(D({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),l=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],f=new UZ(e.url,{base_uri:new UZ(window.location.href)}),d=f.protocol+"://"+f.host+(f.port?":"+f.port:""),h=nd(),p=[jw("messages",[Vs((function(){var t=ad(tt.fromDom(window),"message",(function(t){if(f.isSameOrigin(new UZ(t.raw.origin))){var r=t.raw.data;KZ(r)?XZ(n,g,r):YZ(r)&&e.onMessage(g,r)}}));h.set(t)})),Hs(h.clear)]),yf.config({channels:(i={},i[oZ]={onReceive:function(e,t){Lc(e.element,"iframe").each((function(e){var n=e.dom.contentWindow;n.postMessage(t,d)}))}},i)})],m={header:o,body:a,footer:s,extraClasses:l,extraBehaviours:p,extraStyles:c},v=OZ(m,e,u,r),g=qZ(v);return{dialog:v,instanceApi:g}},ZZ=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(){GY.hide(u),r()},o=E_(dB({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:z.none()},"cancel",e.backstage)),a=hZ(),s=dZ(i,t.providers),u=Ec(gZ({lazySink:function(){return t.getSink()},header:fZ(a,s),body:pZ(n,t.providers),footer:z.some(mZ(vZ([],[o.asSpec()]))),onEscape:i,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Ns(LM,i)],eventOrder:{}}));GY.show(u);var c=o.get(u);Xw.focus(c)};return{open:n}},QZ=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(e){GY.hide(c),r(e)},o=E_(dB({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:z.none()},"submit",e.backstage)),a=dB({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:z.none()},"cancel",e.backstage),s=hZ(),u=dZ((function(){return i(!1)}),t.providers),c=Ec(gZ({lazySink:function(){return t.getSink()},header:fZ(s,u),body:pZ(n,t.providers),footer:z.some(mZ(vZ([],[a,o.asSpec()]))),onEscape:function(){return i(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Ns(LM,(function(){return i(!1)})),Ns(FM,(function(){return i(!0)}))],eventOrder:{}}));GY.show(c);var l=o.get(c);Xw.focus(l)};return{open:n}},eQ=function(e,t){return xo(wo("data",t,e))},tQ=function(e){return UD(e,".tox-alert-dialog")||UD(e,".tox-confirm-dialog")},nQ=function(e,t,n){return t&&n?[]:[Aj.config({contextual:{lazyContext:function(){return z.some(Jr(tt.fromDom(e.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},rQ=function(e){var t=e.backstage,n=e.editor,r=eE(n),i=ZZ(e),o=QZ(e),a=function(e,n,r){return void 0!==n&&"toolbar"===n.inline?l(e,t.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?l(e,t.shared.anchors.cursor(),r,n.ariaAttrs):c(e,r)},s=function(e,t){return u(e,t)},u=function(e,r){var i=function(e){var i=JZ(e,{closeWindow:function(){GY.hide(i.dialog),r(i.instanceApi)}},n,t);return GY.show(i.dialog),i.instanceApi};return OJ.openUrl(i,e)},c=function(e,n){var r=function(e,r,i){var o=r,a={dataValidator:i,initialData:o,internalDialog:e},s=HZ(a,{redial:OJ.redial,closeWindow:function(){GY.hide(s.dialog),n(s.instanceApi)}},t);return GY.show(s.dialog),s.instanceApi.setData(o),s.instanceApi};return OJ.open(r,e)},l=function(e,i,o,a){var s=function(e,s,u){var c=eQ(s,u),l=id(),f=t.shared.header.isPositionedAtTop(),d={dataValidator:u,initialData:c,internalDialog:e},h=function(){return l.on((function(e){t_.reposition(e),Aj.refresh(e)}))},p=WZ(d,{redial:OJ.redial,closeWindow:function(){l.on(t_.hide),n.off("ResizeEditor",h),l.clear(),o(p.instanceApi)}},t,a),m=Ec(t_.sketch(D(D({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},f?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:hf(A([jw("window-manager-inline-events",[Ns(ps(),(function(e,t){_s(p.dialog,LM)}))])],nQ(n,r,f),!0)),isExtraPart:function(e,t){return tQ(t)}})));return l.set(m),t_.showWithin(m,Tc(p.dialog),{anchor:i},z.some(Bn())),r&&f||(Aj.refresh(m),n.on("ResizeEditor",h)),p.instanceApi.setData(c),Dw.focusIn(p.dialog),p.instanceApi};return OJ.open(s,e)},f=function(e,t){o.open(e,(function(e){t(e)}))},d=function(e,t){i.open(e,(function(){t()}))},h=function(e){e.close()};return{open:a,openUrl:s,alert:d,close:h,confirm:f}};function iQ(){T.add("silver",(function(e){var t=FY(e),n=t.uiMothership,r=t.backstage,i=t.renderUI,o=t.getUi;WD.register(e,r.shared);var a=rQ({editor:e,backstage:r});return{renderUI:i,getWindowManagerImpl:w(a),getNotificationManagerImpl:function(){return XC(e,{backstage:r},n)},ui:o()}}))}iQ()})()}).call(this,n("c8ba"))},"0366":function(e,t,n){"use strict";var r=n("4625"),i=n("59ed"),o=n("40d5"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"03d6":function(e,t,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(t.length>u)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},"04f8":function(e,t,n){"use strict";var r=n("1212"),i=n("d039"),o=n("cfe9"),a=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"051b":function(e,t,n){var r=n("1a14"),i=n("10db");e.exports=n("0bad")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"0538":function(e,t,n){"use strict";var r=n("e330"),i=n("59ed"),o=n("861d"),a=n("1a2d"),s=n("f36a"),u=n("40d5"),c=Function,l=r([].concat),f=r([].join),d={},h=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=c("C,a","return new C("+f(r,",")+")")}return d[t](e,n)};e.exports=u?c.bind:function(e){var t=i(this),n=t.prototype,r=s(arguments,1),a=function(){var n=l(r,s(arguments));return this instanceof a?h(t,n.length,n):t.apply(e,n)};return o(n)&&(a.prototype=n),a}},"057f":function(e,t,n){"use strict";var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("f36a"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(t){return a(s)}};e.exports.f=function(e){return s&&"Window"===r(e)?u(e):o(i(e))}},"05f5":function(e,t,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("3ca3");var r=n("6b75");function i(e,t){if(e){if("string"==typeof e)return Object(r["a"])(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"06cf":function(e,t,n){"use strict";var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(n){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},"072d":function(e,t,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),u=n("9fbb"),c=Object.assign;e.exports=!c||n("4b8b")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){var n=s(e),c=arguments.length,l=1,f=o.f,d=a.f;while(c>l){var h,p=u(arguments[l++]),m=f?i(p).concat(f(p)):i(p),v=m.length,g=0;while(v>g)h=m[g++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},"07ac":function(e,t,n){"use strict";var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},"07d1":function(e,t,n){n("94ce")},"07fa":function(e,t,n){"use strict";var r=n("50c4");e.exports=function(e){return r(e.length)}},"083a":function(e,t,n){"use strict";var r=n("0d51"),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},"0983":function(e,t,n){var r=n("c901");e.exports=function(e){return Object(r(e))}},"09cf":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");function t(){e.add("textcolor",(function(){}))}t()})()},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=u},"0ae2":function(e,t,n){var r=n("9876"),i=n("fed5"),o=n("1917");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),u=o.f,c=0;while(s.length>c)u.call(e,a=s[c++])&&t.push(a)}return t}},"0b42":function(e,t,n){"use strict";var r=n("e8b5"),i=n("68ee"),o=n("861d"),a=n("b622"),s=a("species"),u=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,i(t)&&(t===u||r(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?u:t}},"0b43":function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"0b99":function(e,t,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0cb2":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var h=n+e.length,p=r.length,m=l;return void 0!==f&&(f=i(f),m=c),s(d,m,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,h);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},"0cfb":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(e,t,n){"use strict";var r=n("e330"),i=Error,o=r("".replace),a=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"0d51":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0d68":function(e,t,n){n("030f")},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"107c":function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),i=u(r),o=n("f893"),a=u(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function u(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(i.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10b7":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){
  2. /** @preserve
  3. (c) 2012 by Cédric Mesnil. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  5. - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  6. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  7. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  8. */
  9. return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,h,w,x,_,C,k,S,O,E,T=this._hash.words,D=f.words,M=d.words,A=s.words,N=u.words,P=c.words,I=l.words;_=o=T[0],C=a=T[1],k=h=T[2],S=w=T[3],O=x=T[4];for(n=0;n<80;n+=1)E=o+e[t+A[n]]|0,E+=n<16?p(a,h,w)+D[0]:n<32?m(a,h,w)+D[1]:n<48?v(a,h,w)+D[2]:n<64?g(a,h,w)+D[3]:b(a,h,w)+D[4],E|=0,E=y(E,P[n]),E=E+x|0,o=x,x=w,w=y(h,10),h=a,a=E,E=_+e[t+N[n]]|0,E+=n<16?b(C,k,S)+M[0]:n<32?g(C,k,S)+M[1]:n<48?v(C,k,S)+M[2]:n<64?m(C,k,S)+M[3]:p(C,k,S)+M[4],E|=0,E=y(E,I[n]),E=E+O|0,_=O,O=S,S=y(k,10),k=C,C=E;E=T[1]+h+S|0,T[1]=T[2]+w+O|0,T[2]=T[3]+x+_|0,T[3]=T[4]+o+C|0,T[4]=T[0]+a+k|0,T[0]=E},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function v(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}n.RIPEMD160=o._createHelper(h),n.HmacRIPEMD160=o._createHmacHelper(h)}(Math),e.RIPEMD160}))},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1132:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc;i.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,u=t[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|u,l=0;l<4&&o+.75*l<n;l++)i.push(r.charAt(c>>>6*(3-l)&63));var f=r.charAt(64);if(f)while(i.length%4)i.push(f);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return o(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,u=n[e.charCodeAt(a)]>>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return r.create(i,o)}}(),e.enc.Base64}))},1148:function(e,t,n){"use strict";var r=n("5926"),i=n("577e"),o=n("1d80"),a=RangeError;e.exports=function(e){var t=i(o(this)),n="",s=r(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},1212:function(e,t,n){"use strict";var r,i,o=n("cfe9"),a=n("b5db"),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"129f":function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}},"12f2":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"131a":function(e,t,n){"use strict";var r=n("23e7"),i=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:i})},1382:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.StreamCipher,i=t.algo,o=[],a=[],s=[],u=i.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=u>>>16|4294901760&l,d=l<<16|65535&u;i[0]^=u,i[1]^=f,i[2]^=l,i[3]^=d,i[4]^=u,i[5]^=f,i[6]^=l,i[7]^=d;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,o=r>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=r._createHelper(u)}(),e.Rabbit}))},"13d2":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("1626"),a=n("1a2d"),s=n("83ab"),u=n("5e77").CONFIGURABLE,c=n("8925"),l=n("69f3"),f=l.enforce,d=l.get,h=String,p=Object.defineProperty,m=r("".slice),v=r("".replace),g=r([].join),b=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(h(t),0,7)&&(t="["+v(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=f(e);return a(r,"source")||(r.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&d(this).source||c(this)}),"toString")},"14c3":function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),o=n("1626"),a=n("c6b6"),s=n("9263"),u=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===a(e))return r(s,e,t);throw new u("RegExp#exec called on incompatible receiver")}},"14d9":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),u=n("d039"),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=c||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return a(t,n),n}})},"14e5":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),u=n("2266"),c=n("5eed");r({target:"Promise",stat:!0,forced:c},{all:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,l=1;u(e,(function(e){var o=s++,u=!1;l++,i(n,t,e).then((function(e){u||(u=!0,a[o]=e,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},"14e9":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=133)}({133:function(e,t,n){"use strict";n.r(t);var r=n(16),i=n(39),o=n.n(i),a=n(3),s=n(2),u={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function c(e){var t=e.move,n=e.size,r=e.bar,i={},o="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var l={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return u[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:c({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-t,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},f={name:"ElScrollbar",components:{Bar:l},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),u=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),c=void 0;return c=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[u,e(l,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(l,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},c)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(f.name,f)}};t["default"]=f},16:function(e,t){e.exports=n("4010")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},39:function(e,t){e.exports=n("e62d")}})},"157a":function(e,t,n){"use strict";var r=n("cfe9"),i=n("83ab"),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},"159b":function(e,t,n){"use strict";var r=n("cfe9"),i=n("fdbc"),o=n("785a"),a=n("17c2"),s=n("9112"),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},1609:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},1626:function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports="undefined"==typeof r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},1787:function(e,t,n){"use strict";var r=n("861d");e.exports=function(e){return r(e)||null===e}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"17e1":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,i=r.init,o=r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r<t;r++)n[r>>>2]|=e[r]<<24-r%4*8;i.call(this,n,t)}else i.apply(this,arguments)};o.prototype=r}}(),e.lib.WordArray}))},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1836:function(e,t,n){var r=n("6ca1"),i=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},1917:function(e,t){t.f={}.propertyIsEnumerable},"191b":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("94f8"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.algo,o=i.SHA256,a=i.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(a),t.HmacSHA224=o._createHmacHelper(a)}(),e.SHA224}))},"19aa":function(e,t,n){"use strict";var r=n("3a9b"),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},"19fa":function(e,t,n){var r=n("fc5e"),i=n("c901");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(e,t,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"1a2d":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1be4":function(e,t,n){"use strict";var r=n("d066");e.exports=r("document","documentElement")},"1c7e":function(e,t,n){"use strict";var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(u){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1d80":function(e,t,n){"use strict";var r=n("7234"),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("d3b7");function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}},"1dde":function(e,t,n){"use strict";var r=n("d039"),i=n("b622"),o=n("1212"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1f38":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=function(){return"undefined"!==typeof window?window:e},i=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(this,n("c8ba"))},"1f68":function(e,t,n){"use strict";var r=n("83ab"),i=n("edd0"),o=n("861d"),a=n("1787"),s=n("7b0b"),u=n("1d80"),c=Object.getPrototypeOf,l=Object.setPrototypeOf,f=Object.prototype,d="__proto__";if(r&&c&&l&&!(d in f))try{i(f,d,{configurable:!0,get:function(){return c(s(this))},set:function(e){var t=u(this);a(e)&&o(t)&&l(t,e)}})}catch(h){}},"21bf":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){var e=e||function(e,r){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof t&&t.crypto&&(i=t.crypto),!i)try{i=n(1)}catch(g){}var o=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},u=s.lib={},c=u.Base=function(){return{extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=u.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=r?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new l.init(t,e)}}),f=s.enc={},d=f.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},h=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},m=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=4*a,u=o/s;u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);var c=u*a,f=e.min(4*c,o);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(i,d);n=i.splice(0,c),r.sigBytes-=f}return new l.init(n,f)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),v=(u.Hasher=m.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new v.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}(Math);return e}))}).call(this,n("c8ba"))},2266:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("825a"),a=n("0d51"),s=n("e95a"),u=n("07fa"),c=n("3a9b"),l=n("9a1f"),f=n("35a1"),d=n("2a62"),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var v,g,b,y,w,x,_,C=n&&n.that,k=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),T=r(t,C),D=function(e){return v&&d(v,"normal",e),new p(!0,e)},M=function(e){return k?(o(e),E?T(e[0],e[1],D):T(e[0],e[1])):E?T(e,D):T(e)};if(S)v=e.iterator;else if(O)v=e;else{if(g=f(e),!g)throw new h(a(e)+" is not iterable");if(s(g)){for(b=0,y=u(e);y>b;b++)if(w=M(e[b]),w&&c(m,w))return w;return new p(!1)}v=l(e,g)}x=S?e.next:v.next;while(!(_=i(x,v)).done){try{w=M(_.value)}catch(A){d(v,"throw",A)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},"23cb":function(e,t,n){"use strict";var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){"use strict";var r=n("cfe9"),i=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),u=n("e893"),c=n("94ca");e.exports=function(e,t){var n,l,f,d,h,p,m=e.target,v=e.global,g=e.stat;if(l=v?r:g?r[m]||s(m,{}):r[m]&&r[m].prototype,l)for(f in t){if(h=t[f],e.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=c(v?f:m+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(l,f,h,e)}}},2401:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=n("string"),o=n("object"),a=n("array"),s=r("boolean"),u=r("function"),c=r("number"),l=function(){},f=function(e){return function(){return e}},d=function(e){return e},h=function(e,t){return e===t},p=function(e){return function(t){return!e(t)}},m=f(!1),v=f(!0),g=function(){return b},b=function(){var e=function(e){return e()},t=d,n={fold:function(e,t){return e()},isSome:m,isNone:v,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:g,each:l,bind:g,exists:m,forall:v,filter:function(){return g()},toArray:function(){return[]},toString:f("none()")};return n}(),y=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:v,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},w=function(e){return null===e||void 0===e?b:y(e)},x={some:y,none:g,from:w},_=Array.prototype.slice,C=Array.prototype.push,k=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},S=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},O=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},E=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],i=[],o=0,a=e.length;o<a;o++){var s=e[o],u=t(s);u!==n&&(r.push(i),i=[]),n=u,i.push(s)}return 0!==i.length&&r.push(i),r},T=function(e,t,n){return S(e,(function(e,r){n=t(n,e,r)})),n},D=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return x.some(o);if(n(o,r))break}return x.none()},M=function(e,t){return D(e,t,m)},A=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);C.apply(t,e[n])}return t},N=function(e,t){return A(k(e,t))},P=function(e){var t=_.call(e,0);return t.reverse(),t},I=function(e,t){return t>=0&&t<e.length?x.some(e[t]):x.none()},R=function(e){return I(e,0)},z=function(e){return I(e,e.length-1)},B=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return x.none()},L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},L.apply(this,arguments)};function $(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var F=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},j=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),c=o||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!u&&!l;return{isiPad:f(i),isiPhone:f(o),isTablet:f(u),isPhone:f(c),isTouch:f(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:f(l),isDesktop:f(d)}},V=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},H=function(e,t){var n=V(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return q(r(1),r(2))},W=function(e,t){var n=String(t).toLowerCase();return 0===e.length?U():H(e,n)},U=function(){return q(0,0)},q=function(e,t){return{major:e,minor:t}},G={nu:q,detect:W,unknown:U},K=function(e,t){return B(t.brands,(function(t){var n=t.brand.toLowerCase();return M(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:G.nu(parseInt(t.version,10),0)}}))}))},Y=function(e,t){var n=String(t).toLowerCase();return M(e,(function(e){return e.search(n)}))},X=function(e,t){return Y(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},J=function(e,t){return Y(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Z=function(e,t){return-1!==e.indexOf(t)},Q=function(e){return function(t){return t.replace(e,"")}},ee=Q(/^\s+|\s+$/g),te=function(e){return e.length>0},ne=function(e){return!te(e)},re=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ie=function(e){return function(t){return Z(t,e)}},oe=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Z(e,"edge/")&&Z(e,"chrome")&&Z(e,"safari")&&Z(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,re],search:function(e){return Z(e,"chrome")&&!Z(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Z(e,"msie")||Z(e,"trident")}},{name:"Opera",versionRegexes:[re,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ie("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ie("firefox")},{name:"Safari",versionRegexes:[re,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Z(e,"safari")||Z(e,"mobile/"))&&Z(e,"applewebkit")}}],ae=[{name:"Windows",search:ie("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Z(e,"iphone")||Z(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ie("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ie("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ie("linux"),versionRegexes:[]},{name:"Solaris",search:ie("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ie("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ie("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],se={browsers:f(oe),oses:f(ae)},ue="Edge",ce="Chrome",le="IE",fe="Opera",de="Firefox",he="Safari",pe=function(){return me({current:void 0,version:G.unknown()})},me=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(ue),isChrome:r(ce),isIE:r(le),isOpera:r(fe),isFirefox:r(de),isSafari:r(he)}},ve={unknown:pe,nu:me,edge:f(ue),chrome:f(ce),ie:f(le),opera:f(fe),firefox:f(de),safari:f(he)},ge="Windows",be="iOS",ye="Android",we="Linux",xe="OSX",_e="Solaris",Ce="FreeBSD",ke="ChromeOS",Se=function(){return Oe({current:void 0,version:G.unknown()})},Oe=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(ge),isiOS:r(be),isAndroid:r(ye),isOSX:r(xe),isLinux:r(we),isSolaris:r(_e),isFreeBSD:r(Ce),isChromeOS:r(ke)}},Ee={unknown:Se,nu:Oe,windows:f(ge),ios:f(be),android:f(ye),linux:f(we),osx:f(xe),solaris:f(_e),freebsd:f(Ce),chromeos:f(ke)},Te=function(e,t,n){var r=se.browsers(),i=se.oses(),o=t.bind((function(e){return K(r,e)})).orThunk((function(){return X(r,e)})).fold(ve.unknown,ve.nu),a=J(i,e).fold(Ee.unknown,Ee.nu),s=j(a,o,e,n);return{browser:o,os:a,deviceType:s}},De={detect:Te},Me=function(e){return window.matchMedia(e).matches},Ae=F((function(){return De.detect(navigator.userAgent,x.from(navigator.userAgentData),Me)})),Ne=function(){return Ae()},Pe=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Ie=function(e,t){return Pe(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Re=1,ze=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return $e(r.childNodes[0])},Be=function(e,t){var n=t||document,r=n.createElement(e);return $e(r)},Le=function(e,t){var n=t||document,r=n.createTextNode(e);return $e(r)},$e=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Fe=function(e,t,n){return x.from(e.dom.elementFromPoint(t,n)).map($e)},je={fromHtml:ze,fromTag:Be,fromText:Le,fromDom:$e,fromPoint:Fe},Ve=function(e,t){var n=e.dom;if(n.nodeType!==Re)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},He=function(e,t){return e.dom===t.dom},We=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Ue=function(e,t){return Ie(e.dom,t.dom)},qe=function(e,t){return Ne().browser.isIE()?Ue(e,t):We(e,t)},Ge=Ve,Ke=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ye=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Xe=tinymce.util.Tools.resolve("tinymce.util.VK"),Je=Object.keys,Ze=function(e,t){for(var n=Je(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Qe=function(e){return function(t,n){e[n]=t}},et=function(e,t,n,r){var i={};return Ze(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},tt=function(e,t){var n={};return et(e,t,Qe(n),l),n};"undefined"!==typeof window?window:Function("return this;")();var nt=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rt=function(e){return e.dom.nodeType},it=function(e){return function(t){return rt(t)===e}},ot=it(Re),at=function(e){return function(t){return ot(t)&&nt(t)===e}},st=function(e,t,n){if(!(i(n)||s(n)||c(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},ut=function(e,t){var n=e.dom;Ze(t,(function(e,t){st(n,t,e)}))},ct=function(e){return T(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},lt=function(e){return x.from(e.dom.parentNode).map(je.fromDom)},ft=function(e){return k(e.dom.childNodes,je.fromDom)},dt=function(e,t){var n=e.dom.childNodes;return x.from(n[t]).map(je.fromDom)},ht=function(e){return dt(e,0)},pt=function(e){return dt(e,e.dom.childNodes.length-1)},mt=function(e,t){var n=lt(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},vt=function(e,t){e.dom.appendChild(t.dom)},gt=function(e,t){S(t,(function(t){mt(e,t)}))},bt=function(e,t){S(t,(function(t){vt(e,t)}))},yt=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},wt=function(e,t){return je.fromDom(e.dom.cloneNode(t))},xt=function(e){return wt(e,!0)},_t=function(e,t){var n=je.fromTag(t),r=ct(e);return ut(n,r),n},Ct=function(e,t){var n=_t(e,t);mt(e,n);var r=ft(e);return bt(n,r),yt(e),n},kt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),St=tinymce.util.Tools.resolve("tinymce.util.Tools"),Ot=function(e){return function(t){return t&&t.nodeName.toLowerCase()===e}},Et=function(e){return function(t){return t&&e.test(t.nodeName)}},Tt=function(e){return e&&3===e.nodeType},Dt=Et(/^(OL|UL|DL)$/),Mt=Et(/^(OL|UL)$/),At=Ot("ol"),Nt=Et(/^(LI|DT|DD)$/),Pt=Et(/^(DT|DD)$/),It=Et(/^(TH|TD)$/),Rt=Ot("br"),zt=function(e){return e.parentNode.firstChild===e},Bt=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},Lt=function(e,t){return e&&e.nodeName in t},$t=function(e,t){return!!Rt(t)&&(e.isBlock(t.nextSibling)&&!Rt(t.previousSibling))},Ft=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},jt=function(e,t){return e.isChildOf(t,e.getRoot())},Vt=function(e){return e.getParam("lists_indent_on_tab",!0)},Ht=function(e){var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Wt=function(e){return e.getParam("forced_root_block_attrs",{})},Ut=function(e,t){var n,r,i,o=e.dom,a=e.schema.getBlockElements(),s=o.createFragment(),u=Ht(e);if(u&&(r=o.create(u),r.tagName===u.toUpperCase()&&o.setAttribs(r,Wt(e)),Lt(t.firstChild,a)||s.appendChild(r)),t)while(n=t.firstChild){var c=n.nodeName;i||"SPAN"===c&&"bookmark"===n.getAttribute("data-mce-type")||(i=!0),Lt(n,a)?(s.appendChild(n),r=null):u?(r||(r=o.create(u),s.appendChild(r)),r.appendChild(n)):s.appendChild(n)}return u?i||r.appendChild(o.create("br",{"data-mce-bogus":"1"})):s.appendChild(o.create("br")),s},qt=kt.DOM,Gt=function(e,t,n){var r=function(e){St.each(i,(function(t){e.parentNode.insertBefore(t,n.parentNode)})),qt.remove(e)},i=qt.select('span[data-mce-type="bookmark"]',t),o=Ut(e,n),a=qt.createRng();a.setStartAfter(n),a.setEndAfter(t);for(var s=a.extractContents(),u=s.firstChild;u;u=u.firstChild)if("LI"===u.nodeName&&e.dom.isEmpty(u)){qt.remove(u);break}e.dom.isEmpty(s)||qt.insertAfter(s,t),qt.insertAfter(o,t),Ft(e.dom,n.parentNode)&&r(n.parentNode),qt.remove(n),Ft(e.dom,t)&&qt.remove(t)},Kt=at("dd"),Yt=at("dt"),Xt=function(e,t){Kt(t)?Ct(t,"dt"):Yt(t)&&lt(t).each((function(n){return Gt(e,n.dom,t.dom)}))},Jt=function(e){Yt(e)&&Ct(e,"dd")},Zt=function(e,t,n){S(n,"Indent"===t?Jt:function(t){return Xt(e,t)})},Qt=function(e,t){if(Tt(e))return{container:e,offset:t};var n=Ke.getNode(e,t);return Tt(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&Tt(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Tt(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},en=function(e){var t=e.cloneRange(),n=Qt(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=Qt(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},tn=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),nn=function(e,t){var n=t||e.selection.getStart(!0);return e.dom.getParent(n,"OL,UL,DL",ln(e,n))},rn=function(e,t){return e&&1===t.length&&t[0]===e},on=function(e){return O(e.querySelectorAll("ol,ul,dl"),Dt)},an=function(e){var t=nn(e),n=e.selection.getSelectedBlocks();return rn(t,n)?on(t):O(n,(function(e){return Dt(e)&&t!==e}))},sn=function(e,t){var n=St.map(t,(function(t){var n=e.dom.getParent(t,"li,dd,dt",ln(e,t));return n||t}));return tn.unique(n)},un=function(e){var t=e.selection.getSelectedBlocks();return O(sn(e,t),Nt)},cn=function(e){return O(un(e),Pt)},ln=function(e,t){var n=e.dom.getParents(t,"TD,TH");return n.length>0?n[0]:e.getBody()},fn=function(e,t){var n=e.dom.getParents(t,"ol,ul",ln(e,t));return z(n)},dn=function(e){var t=fn(e,e.selection.getStart()),n=O(e.selection.getSelectedBlocks(),Mt);return t.toArray().concat(n)},hn=function(e){var t=dn(e);return pn(e,t)},pn=function(e,t){var n=k(t,(function(t){return fn(e,t).getOr(t)}));return tn.unique(n)},mn=function(e,t,n){return void 0===n&&(n=h),e.exists((function(e){return n(e,t)}))},vn=function(e,t,n){return e.isSome()&&t.isSome()?x.some(n(e.getOrDie(),t.getOrDie())):x.none()},gn=function(e,t){var n=t||document,r=n.createDocumentFragment();return S(e,(function(e){r.appendChild(e.dom)})),je.fromDom(r)},bn=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},yn=function(e){return void 0!==e.style&&u(e.style.getPropertyValue)},wn=function(e,t,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);yn(e)&&e.style.setProperty(t,n)},xn=function(e,t,n){var r=e.dom;wn(r,t,n)},_n=function(e,t){vt(e.item,t.list)},Cn=function(e){for(var t=1;t<e.length;t++)_n(e[t-1],e[t])},kn=function(e,t){vn(z(e),R(t),_n)},Sn=function(e,t){var n={list:je.fromTag(t,e),item:je.fromTag("li",e)};return vt(n.list,n.item),n},On=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(Sn(e,t.listType));return r},En=function(e,t){for(var n=0;n<e.length-1;n++)xn(e[n].item,"list-style-type","none");z(e).each((function(e){ut(e.list,t.listAttributes),ut(e.item,t.itemAttributes),bt(e.item,t.content)}))},Tn=function(e,t){nt(e.list)!==t.listType&&(e.list=Ct(e.list,t.listType)),ut(e.list,t.listAttributes)},Dn=function(e,t,n){var r=je.fromTag("li",e);return ut(r,t),bt(r,n),r},Mn=function(e,t){vt(e.list,t),e.item=t},An=function(e,t,n){var r=t.slice(0,n.depth);return z(r).each((function(t){var r=Dn(e,n.itemAttributes,n.content);Mn(t,r),Tn(t,n)})),r},Nn=function(e,t,n){var r=On(e,n,n.depth-t.length);return Cn(r),En(r,n),kn(t,r),t.concat(r)},Pn=function(e,t){var n=T(t,(function(t,n){return n.depth>t.length?Nn(e,t,n):An(e,t,n)}),[]);return R(n).map((function(e){return e.list}))},In=function(e){return Ge(e,"OL,UL")},Rn=function(e){return ht(e).exists(In)},zn=function(e){return pt(e).exists(In)},Bn=function(e){return e.depth>0},Ln=function(e){return e.isSelected},$n=function(e){var t=ft(e),n=zn(e)?t.slice(0,-1):t;return k(n,xt)},Fn=function(e,t,n){return lt(e).filter(ot).map((function(r){return{depth:t,dirty:!1,isSelected:n,content:$n(e),itemAttributes:ct(e),listAttributes:ct(r),listType:nt(r)}}))},jn=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}t.dirty=!0},Vn=function(e,t){e.listType=t.listType,e.listAttributes=L({},t.listAttributes)},Hn=function(e){e.listAttributes=tt(e.listAttributes,(function(e,t){return"start"!==t}))},Wn=function(e,t){var n=e[t].depth,r=function(e){return e.depth===n&&!e.dirty},i=function(e){return e.depth<n};return D(P(e.slice(0,t)),r,i).orThunk((function(){return D(e.slice(t+1),r,i)}))},Un=function(e){return S(e,(function(t,n){Wn(e,n).fold((function(){t.dirty&&Hn(t)}),(function(e){return Vn(t,e)}))})),e},qn=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Gn=function(e,t,n,r){return ht(r).filter(In).fold((function(){t.each((function(e){He(e.start,r)&&n.set(!0)}));var i=Fn(r,e,n.get());t.each((function(e){He(e.end,r)&&n.set(!1)}));var o=pt(r).filter(In).map((function(r){return Kn(e,t,n,r)})).getOr([]);return i.toArray().concat(o)}),(function(r){return Kn(e,t,n,r)}))},Kn=function(e,t,n,r){return N(ft(r),(function(r){var i=In(r)?Kn:Gn,o=e+1;return i(o,t,n,r)}))},Yn=function(e,t){var n=qn(!1),r=0;return k(e,(function(e){return{sourceList:e,entries:Kn(r,t,n,e)}}))},Xn=function(e,t){var n=Un(t);return k(n,(function(t){var n=gn(t.content);return je.fromDom(Ut(e,n.dom))}))},Jn=function(e,t){var n=Un(t);return Pn(e.contentDocument,n).toArray()},Zn=function(e,t){return N(E(t,Bn),(function(t){var n=R(t).exists(Bn);return n?Jn(e,t):Xn(e,t)}))},Qn=function(e,t){S(O(e,Ln),(function(e){return jn(t,e)}))},er=function(e){var t=k(un(e),je.fromDom);return vn(M(t,p(Rn)),M(P(t),p(Rn)),(function(e,t){return{start:e,end:t}}))},tr=function(e,t,n){var r=Yn(t,er(e));S(r,(function(t){Qn(t.entries,n);var r=Zn(e,t.entries);S(r,(function(t){bn(e,"Indent"===n?"IndentList":"OutdentList",t.dom)})),gt(t.sourceList,r),yt(t.sourceList)}))},nr=function(e,t){var n=k(hn(e),je.fromDom),r=k(cn(e),je.fromDom),i=!1;if(n.length||r.length){var o=e.selection.getBookmark();tr(e,n,t),Zt(e,t,r),e.selection.moveToBookmark(o),e.selection.setRng(en(e.selection.getRng())),e.nodeChanged(),i=!0}return i},rr=function(e){return nr(e,"Indent")},ir=function(e){return nr(e,"Outdent")},or=function(e){return nr(e,"Flatten")},ar=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),sr=kt.DOM,ur=function(e){var t={},n=function(n){var r=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];if(1===r.nodeType){var o=sr.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(i=Math.min(i,r.childNodes.length-1),n?r.insertBefore(o,r.childNodes[i]):sr.insertAfter(o,r.childNodes[i])):r.appendChild(o),r=o,i=0}t[n?"startContainer":"endContainer"]=r,t[n?"startOffset":"endOffset"]=i};return n(!0),e.collapsed||n(),t},cr=function(e){var t=function(t){var n,r=function(e){var t=e.parentNode.firstChild,n=0;while(t){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1},i=n=e[t?"startContainer":"endContainer"],o=e[t?"startOffset":"endOffset"];i&&(1===i.nodeType&&(o=r(i),i=i.parentNode,sr.remove(n),!i.hasChildNodes()&&sr.isBlock(i)&&i.appendChild(sr.create("br"))),e[t?"startContainer":"endContainer"]=i,e[t?"startOffset":"endOffset"]=o)};t(!0),t();var n=sr.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),en(n)},lr=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},fr=function(e){return/\btox\-/.test(e.className)},dr=function(e,t,n){var r=function(e){var r=D(e.parents,Dt,It).filter((function(e){return e.nodeName===t&&!fr(e)})).isSome();n(r)},i=e.dom.getParents(e.selection.getNode());return r({parents:i}),e.on("NodeChange",r),function(){return e.off("NodeChange",r)}},hr=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},pr=function(e,t){St.each(t,(function(t,n){e.setAttribute(n,t)}))},mr=function(e,t,n){pr(t,n["list-attributes"]),St.each(e.select("li",t),(function(e){pr(e,n["list-item-attributes"])}))},vr=function(e,t,n){hr(e,t,n),mr(e,t,n)},gr=function(e,t,n){St.each(n,(function(n){var r;return e.setStyle(t,(r={},r[n]="",r))}))},br=function(e,t,n,r){var i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];1===i.nodeType&&(i=i.childNodes[Math.min(o,i.childNodes.length-1)]||i),!n&&Rt(i.nextSibling)&&(i=i.nextSibling);while(i.parentNode!==r){if(Bt(e,i))return i;if(/^(TD|TH)$/.test(i.parentNode.nodeName))return i;i=i.parentNode}return i},yr=function(e,t,n){for(var r,i=[],o=e.dom,a=br(e,t,!0,n),s=br(e,t,!1,n),u=[],c=a;c;c=c.nextSibling)if(u.push(c),c===s)break;return St.each(u,(function(t){if(Bt(e,t))return i.push(t),void(r=null);if(o.isBlock(t)||Rt(t))return Rt(t)&&o.remove(t),void(r=null);var a=t.nextSibling;ar.isBookmarkNode(t)&&(Dt(a)||Bt(e,a)||!a&&t.parentNode===n)?r=null:(r||(r=o.create("p"),t.parentNode.insertBefore(r,t),i.push(r)),r.appendChild(t))})),i},wr=function(e,t,n){var r=e.getStyle(t,"list-style-type"),i=n?n["list-style-type"]:"";return i=null===i?"":i,r===i},xr=function(e,t,n){var r=e.selection.getRng(),i="LI",o=ln(e,e.selection.getStart(!0)),a=e.dom;if("false"!==a.getContentEditable(e.selection.getNode())){t=t.toUpperCase(),"DL"===t&&(i="DT");var s=ur(r),u=yr(e,r,o);St.each(u,(function(r){var o,s=r.previousSibling,u=r.parentNode;Nt(u)||(s&&Dt(s)&&s.nodeName===t&&wr(a,s,n)?(o=s,r=a.rename(r,i),s.appendChild(r)):(o=a.create(t),r.parentNode.insertBefore(o,r),o.appendChild(r),r=a.rename(r,i)),gr(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),vr(a,o,n),Or(e.dom,o))})),e.selection.setRng(cr(s))}},_r=function(e,t){return e&&t&&Dt(e)&&e.nodeName===t.nodeName},Cr=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),i=e.getStyle(n,"list-style-type",!0);return r===i},kr=function(e,t){return e.className===t.className},Sr=function(e,t,n){return _r(t,n)&&Cr(e,t,n)&&kr(t,n)},Or=function(e,t){var n,r;if(n=t.nextSibling,Sr(e,t,n)){while(r=n.firstChild)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,Sr(e,t,n)){while(r=n.lastChild)t.insertBefore(r,t.firstChild);e.remove(n)}},Er=function(e,t,n,r){if(t.nodeName!==n){var i=e.dom.rename(t,n);vr(e.dom,i,r),bn(e,lr(n),i)}else vr(e.dom,t,r),bn(e,lr(n),t)},Tr=function(e,t,n,r,i){var o=Dt(t);if(o&&t.nodeName===r&&!Dr(i))or(e);else{xr(e,r,i);var a=ur(e.selection.getRng()),s=o?$([t],n,!0):n;St.each(s,(function(t){Er(e,t,r,i)})),e.selection.setRng(cr(a))}},Dr=function(e){return"list-style-type"in e},Mr=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||Dr(r)||fr(t)){var i=ur(e.selection.getRng());vr(e.dom,t,r);var o=e.dom.rename(t,n);Or(e.dom,o),e.selection.setRng(cr(i)),xr(e,n,r),bn(e,lr(n),o)}else or(e);else xr(e,n,r),bn(e,lr(n),t)},Ar=function(e,t,n){var r=nn(e),i=an(e),a=o(n)?n:{};i.length>0?Tr(e,r,i,t,a):Mr(e,r,t,a)},Nr=kt.DOM,Pr=function(e,t){var n=t.parentNode;if("LI"===n.nodeName&&n.firstChild===t){var r=n.previousSibling;r&&"LI"===r.nodeName?(r.appendChild(t),Ft(e,n)&&Nr.remove(n)):Nr.setStyle(n,"listStyleType","none")}if(Dt(n)){r=n.previousSibling;r&&"LI"===r.nodeName&&r.appendChild(t)}},Ir=function(e,t){var n=St.grep(e.select("ol,ul",t));St.each(n,(function(t){Pr(e,t)}))},Rr=function(e,t,n,r){var i=t.startContainer,o=t.startOffset;if(Tt(i)&&(n?o<i.data.length:o>0))return i;var a=e.schema.getNonEmptyElements();1===i.nodeType&&(i=Ke.getNode(i,o));var s=new Ye(i,r);n&&$t(e.dom,i)&&s.next();while(i=s[n?"next":"prev2"]()){if("LI"===i.nodeName&&!i.hasChildNodes())return i;if(a[i.nodeName])return i;if(Tt(i)&&i.data.length>0)return i}},zr=function(e,t){var n=t.childNodes;return 1===n.length&&!Dt(n[0])&&e.isBlock(n[0])},Br=function(e,t){zr(e,t)&&e.remove(t.firstChild,!0)},Lr=function(e,t,n){var r,i=zr(e,n)?n.firstChild:n;if(Br(e,t),!Ft(e,t,!0))while(r=t.firstChild)i.appendChild(r)},$r=function(e,t,n){var r,i=t.parentNode;if(jt(e,t)&&jt(e,n)){Dt(n.lastChild)&&(r=n.lastChild),i===n.lastChild&&Rt(i.previousSibling)&&e.remove(i.previousSibling);var o=n.lastChild;o&&Rt(o)&&t.hasChildNodes()&&e.remove(o),Ft(e,n,!0)&&e.$(n).empty(),Lr(e,t,n),r&&n.appendChild(r);var a=qe(je.fromDom(n),je.fromDom(t)),s=a?e.getParents(t,Dt,n):[];e.remove(t),S(s,(function(t){Ft(e,t)&&t!==e.getRoot()&&e.remove(t)}))}},Fr=function(e,t,n){e.dom.$(n).empty(),$r(e.dom,t,n),e.selection.setCursorLocation(n,0)},jr=function(e,t,n,r){var i=e.dom;if(i.isEmpty(r))Fr(e,n,r);else{var o=ur(t);$r(i,n,r),e.selection.setRng(cr(o))}},Vr=function(e,t,n,r){var i=ur(t);$r(e.dom,n,r);var o=cr(i);e.selection.setRng(o)},Hr=function(e,t){var n=e.dom,r=e.selection,i=r.getStart(),o=ln(e,i),a=n.getParent(r.getStart(),"LI",o);if(a){var s=a.parentNode;if(s===e.getBody()&&Ft(n,s))return!0;var u=en(r.getRng()),c=n.getParent(Rr(e,u,t,o),"LI",o);if(c&&c!==a)return e.undoManager.transact((function(){t?jr(e,u,c,a):zt(a)?ir(e):Vr(e,u,a,c)})),!0;if(!c&&!t&&0===u.startOffset&&0===u.endOffset)return e.undoManager.transact((function(){or(e)})),!0}return!1},Wr=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Ur=function(e,t){var n=e.dom,r=e.selection.getStart(),i=ln(e,r),o=n.getParent(r,n.isBlock,i);if(o&&n.isEmpty(o)){var a=en(e.selection.getRng()),s=n.getParent(Rr(e,a,t,i),"LI",i);if(s)return e.undoManager.transact((function(){Wr(n,o,i),Or(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)})),!0}return!1},qr=function(e,t){return Hr(e,t)||Ur(e,t)},Gr=function(e){var t=e.selection.getStart(),n=ln(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return!!(r||un(e).length>0)&&(e.undoManager.transact((function(){e.execCommand("Delete"),Ir(e.dom,e.getBody())})),!0)},Kr=function(e,t){return e.selection.isCollapsed()?qr(e,t):Gr(e)},Yr=function(e){e.on("keydown",(function(t){t.keyCode===Xe.BACKSPACE?Kr(e,!1)&&t.preventDefault():t.keyCode===Xe.DELETE&&Kr(e,!0)&&t.preventDefault()}))},Xr=function(e){return{backspaceDelete:function(t){Kr(e,t)}}},Jr=function(e,t){var n=nn(e);e.undoManager.transact((function(){o(t.styles)&&e.dom.setStyles(n,t.styles),o(t.attrs)&&Ze(t.attrs,(function(t,r){return e.dom.setAttrib(n,r,t)}))}))},Zr=function(e){var t=P(ee(e).split("")),n=k(t,(function(e,t){var n=e.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,t)*n}));return T(n,(function(e,t){return e+t}),0)},Qr=function(e){if(e--,e<0)return"";var t=e%26,n=Math.floor(e/26),r=Qr(n),i=String.fromCharCode("A".charCodeAt(0)+t);return r+i},ei=function(e){return/^[A-Z]+$/.test(e)},ti=function(e){return/^[a-z]+$/.test(e)},ni=function(e){return/^[0-9]+$/.test(e)},ri=function(e){return ni(e)?2:ei(e)?0:ti(e)?1:ne(e)?3:4},ii=function(e){switch(ri(e)){case 2:return x.some({listStyleType:x.none(),start:e});case 0:return x.some({listStyleType:x.some("upper-alpha"),start:Zr(e).toString()});case 1:return x.some({listStyleType:x.some("lower-alpha"),start:Zr(e).toString()});case 3:return x.some({listStyleType:x.none(),start:""});case 4:return x.none()}},oi=function(e){var t=parseInt(e.start,10);return mn(e.listStyleType,"upper-alpha")?Qr(t):mn(e.listStyleType,"lower-alpha")?Qr(t).toLowerCase():e.start},ai=function(e){var t=nn(e);At(t)&&e.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:oi({start:e.dom.getAttrib(t,"start","1"),listStyleType:x.some(e.dom.getStyle(t,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=t.getData();ii(n.start).each((function(t){e.execCommand("mceListUpdate",!1,{attrs:{start:"1"===t.start?"":t.start},styles:{"list-style-type":t.listStyleType.getOr("")}})})),t.close()}})},si=function(e,t){return function(){var n=nn(e);return n&&n.nodeName===t}},ui=function(e){e.addCommand("mceListProps",(function(){ai(e)}))},ci=function(e){e.on("BeforeExecCommand",(function(t){var n=t.command.toLowerCase();"indent"===n?rr(e):"outdent"===n&&ir(e)})),e.addCommand("InsertUnorderedList",(function(t,n){Ar(e,"UL",n)})),e.addCommand("InsertOrderedList",(function(t,n){Ar(e,"OL",n)})),e.addCommand("InsertDefinitionList",(function(t,n){Ar(e,"DL",n)})),e.addCommand("RemoveList",(function(){or(e)})),ui(e),e.addCommand("mceListUpdate",(function(t,n){o(n)&&Jr(e,n)})),e.addQueryStateHandler("InsertUnorderedList",si(e,"UL")),e.addQueryStateHandler("InsertOrderedList",si(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",si(e,"DL"))},li=function(e){e.on("keydown",(function(t){t.keyCode!==Xe.TAB||Xe.metaKeyPressed(t)||e.undoManager.transact((function(){(t.shiftKey?ir(e):rr(e))&&t.preventDefault()}))}))},fi=function(e){Vt(e)&&li(e),Yr(e)},di=function(e){var t=function(t){return function(){return e.execCommand(t)}};e.hasPlugin("advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:t("InsertOrderedList"),onSetup:function(t){return dr(e,"OL",t.setActive)}}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:t("InsertUnorderedList"),onSetup:function(t){return dr(e,"UL",t.setActive)}}))},hi=function(e){var t={text:"List properties...",icon:"ordered-list",onAction:function(){return e.execCommand("mceListProps")},onSetup:function(t){return dr(e,"OL",(function(e){return t.setDisabled(!e)}))}};e.ui.registry.addMenuItem("listprops",t),e.ui.registry.addContextMenu("lists",{update:function(t){var n=nn(e,t);return At(n)?["listprops"]:[]}})};function pi(){e.add("lists",(function(e){return!1===e.hasPlugin("rtc",!0)?(fi(e),ci(e)):ui(e),di(e),hi(e),Xr(e)}))}pi()})()},"241c":function(e,t,n){"use strict";var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var u={adapter:s(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u}).call(this,n("4362"))},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),u=n("ab13"),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),o=n("825a"),a=n("577e"),s=n("d039"),u=n("90d8"),c="toString",l=RegExp.prototype,f=l[c],d=s((function(){return"/a/b"!==f.call({source:"a",flags:"b"})})),h=r&&f.name!==c;(d||h)&&i(l,c,(function(){var e=o(this),t=a(e.source),n=a(u(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("edd0"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},"262e":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("d9e2"),n("1f68"),n("131a");function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}},"26dd":function(e,t,n){"use strict";var r=n("6f4f"),i=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},"299c":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=138)}({138:function(e,t,n){"use strict";n.r(t);var r=n(5),i=n.n(r),o=n(19),a=n.n(o),s=n(2),u=n(3),c=n(7),l=n.n(c),f={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(u["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new l.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)if(e[n]&&e[n].tag){t=e[n];break}return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s["off"])(e,"mouseenter",this.show),Object(s["off"])(e,"mouseleave",this.hide),Object(s["off"])(e,"focus",this.handleFocus),Object(s["off"])(e,"blur",this.handleBlur),Object(s["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(f.name,f)}};t["default"]=f},19:function(e,t){e.exports=n("0e15")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},5:function(e,t){e.exports=n("e974")},7:function(e,t){e.exports=n("2b0e")}})},"2a5e":function(e,t,n){"use strict";t.__esModule=!0,t.default=a;var r=n("2b0e"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!i.default.prototype.$isServer)if(t){var n=[],r=t.offsetParent;while(r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;var o=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),a=o+t.offsetHeight,s=e.scrollTop,u=s+e.clientHeight;o<s?e.scrollTop=o:a>u&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},"2a62":function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),o=n("dc4a");e.exports=function(e,t,n){var a,s;i(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=r(a,e)}catch(u){s=!0,a=u}if("throw"===t)throw n;if(s)throw a;return i(a),n}},"2a66":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}))},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"EffectScope",(function(){return Dt})),n.d(t,"computed",(function(){return gt})),n.d(t,"customRef",(function(){return ut})),n.d(t,"default",(function(){return io})),n.d(t,"defineAsyncComponent",(function(){return nr})),n.d(t,"defineComponent",(function(){return yr})),n.d(t,"del",(function(){return Ve})),n.d(t,"effectScope",(function(){return Mt})),n.d(t,"getCurrentInstance",(function(){return ge})),n.d(t,"getCurrentScope",(function(){return Nt})),n.d(t,"h",(function(){return $n})),n.d(t,"inject",(function(){return zt})),n.d(t,"isProxy",(function(){return Xe})),n.d(t,"isReactive",(function(){return Ge})),n.d(t,"isReadonly",(function(){return Ye})),n.d(t,"isRef",(function(){return et})),n.d(t,"isShallow",(function(){return Ke})),n.d(t,"markRaw",(function(){return Ze})),n.d(t,"mergeDefaults",(function(){return Sn})),n.d(t,"nextTick",(function(){return Qn})),n.d(t,"onActivated",(function(){return fr})),n.d(t,"onBeforeMount",(function(){return or})),n.d(t,"onBeforeUnmount",(function(){return cr})),n.d(t,"onBeforeUpdate",(function(){return sr})),n.d(t,"onDeactivated",(function(){return dr})),n.d(t,"onErrorCaptured",(function(){return gr})),n.d(t,"onMounted",(function(){return ar})),n.d(t,"onRenderTracked",(function(){return pr})),n.d(t,"onRenderTriggered",(function(){return mr})),n.d(t,"onScopeDispose",(function(){return Pt})),n.d(t,"onServerPrefetch",(function(){return hr})),n.d(t,"onUnmounted",(function(){return lr})),n.d(t,"onUpdated",(function(){return ur})),n.d(t,"provide",(function(){return It})),n.d(t,"proxyRefs",(function(){return at})),n.d(t,"reactive",(function(){return We})),n.d(t,"readonly",(function(){return ht})),n.d(t,"ref",(function(){return tt})),n.d(t,"set",(function(){return je})),n.d(t,"shallowReactive",(function(){return Ue})),n.d(t,"shallowReadonly",(function(){return vt})),n.d(t,"shallowRef",(function(){return nt})),n.d(t,"toRaw",(function(){return Je})),n.d(t,"toRef",(function(){return lt})),n.d(t,"toRefs",(function(){return ct})),n.d(t,"triggerRef",(function(){return it})),n.d(t,"unref",(function(){return ot})),n.d(t,"useAttrs",(function(){return _n})),n.d(t,"useCssModule",(function(){return er})),n.d(t,"useCssVars",(function(){return tr})),n.d(t,"useListeners",(function(){return Cn})),n.d(t,"useSlots",(function(){return xn})),n.d(t,"version",(function(){return br})),n.d(t,"watch",(function(){return Et})),n.d(t,"watchEffect",(function(){return _t})),n.d(t,"watchPostEffect",(function(){return Ct})),n.d(t,"watchSyncEffect",(function(){return kt}));
  10. /*!
  11. * Vue.js v2.7.16
  12. * (c) 2014-2023 Evan You
  13. * Released under the MIT License.
  14. */
  15. var r=Object.freeze({}),i=Array.isArray;function o(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function s(e){return!0===e}function u(e){return!1===e}function c(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return"function"===typeof e}function f(e){return null!==e&&"object"===typeof e}var d=Object.prototype.toString;function h(e){return"[object Object]"===d.call(e)}function p(e){return"[object RegExp]"===d.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function v(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||h(e)&&e.toString===d?JSON.stringify(e,b,2):String(e)}function b(e,t){return t&&t.__v_isRef?t.value:t}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function w(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}w("slot,component",!0);var x=w("key,ref,slot,slot-scope,is");function _(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var C=Object.prototype.hasOwnProperty;function k(e,t){return C.call(e,t)}function S(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var O=/-(\w)/g,E=S((function(e){return e.replace(O,(function(e,t){return t?t.toUpperCase():""}))})),T=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),D=/\B([A-Z])/g,M=S((function(e){return e.replace(D,"-$1").toLowerCase()}));function A(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function N(e,t){return e.bind(t)}var P=Function.prototype.bind?N:A;function I(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function R(e,t){for(var n in t)e[n]=t[n];return e}function z(e){for(var t={},n=0;n<e.length;n++)e[n]&&R(t,e[n]);return t}function B(e,t,n){}var L=function(e,t,n){return!1},$=function(e){return e};function F(e,t){if(e===t)return!0;var n=f(e),r=f(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return F(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return F(e[n],t[n])}))}catch(u){return!1}}function j(e,t){for(var n=0;n<e.length;n++)if(F(e[n],t))return n;return-1}function V(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function H(e,t){return e===t?0===e&&1/e!==1/t:e===e||t===t}var W="data-server-rendered",U=["component","directive","filter"],q=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],G={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:B,parsePlatformTagName:$,mustUseProp:L,async:!0,_lifecycleHooks:q},K=/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 Y(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function X(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var J=new RegExp("[^".concat(K.source,".$_\\d]"));function Z(e){if(!J.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Q="__proto__"in{},ee="undefined"!==typeof window,te=ee&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),re=te&&te.indexOf("msie 9.0")>0,ie=te&&te.indexOf("edge/")>0;te&&te.indexOf("android");var oe=te&&/iphone|ipad|ipod|ios/.test(te);te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te);var ae,se=te&&te.match(/firefox\/(\d+)/),ue={}.watch,ce=!1;if(ee)try{var le={};Object.defineProperty(le,"passive",{get:function(){ce=!0}}),window.addEventListener("test-passive",null,le)}catch(ou){}var fe=function(){return void 0===ae&&(ae=!ee&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),ae},de=ee&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"===typeof e&&/native code/.test(e.toString())}var pe,me="undefined"!==typeof Symbol&&he(Symbol)&&"undefined"!==typeof Reflect&&he(Reflect.ownKeys);pe="undefined"!==typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ve=null;function ge(){return ve&&{proxy:ve}}function be(e){void 0===e&&(e=null),e||ve&&ve._scope.off(),ve=e,e&&e._scope.on()}var ye=function(){function e(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),we=function(e){void 0===e&&(e="");var t=new ye;return t.text=e,t.isComment=!0,t};function xe(e){return new ye(void 0,void 0,void 0,String(e))}function _e(e){var t=new ye(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}"function"===typeof SuppressedError&&SuppressedError;var Ce=0,ke=[],Se=function(){for(var e=0;e<ke.length;e++){var t=ke[e];t.subs=t.subs.filter((function(e){return e})),t._pending=!1}ke.length=0},Oe=function(){function e(){this._pending=!1,this.id=Ce++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,ke.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter((function(e){return e}));for(var n=0,r=t.length;n<r;n++){var i=t[n];0,i.update()}},e}();Oe.target=null;var Ee=[];function Te(e){Ee.push(e),Oe.target=e}function De(){Ee.pop(),Oe.target=Ee[Ee.length-1]}var Me=Array.prototype,Ae=Object.create(Me),Ne=["push","pop","shift","unshift","splice","sort","reverse"];Ne.forEach((function(e){var t=Me[e];X(Ae,e,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Pe=Object.getOwnPropertyNames(Ae),Ie={},Re=!0;function ze(e){Re=e}var Be={notify:B,depend:B,addSub:B,removeSub:B},Le=function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.value=e,this.shallow=t,this.mock=n,this.dep=n?Be:new Oe,this.vmCount=0,X(e,"__ob__",this),i(e)){if(!n)if(Q)e.__proto__=Ae;else for(var r=0,o=Pe.length;r<o;r++){var a=Pe[r];X(e,a,Ae[a])}t||this.observeArray(e)}else{var s=Object.keys(e);for(r=0;r<s.length;r++){a=s[r];Fe(e,a,Ie,void 0,t,n)}}}return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)$e(e[t],!1,this.mock)},e}();function $e(e,t,n){return e&&k(e,"__ob__")&&e.__ob__ instanceof Le?e.__ob__:!Re||!n&&fe()||!i(e)&&!h(e)||!Object.isExtensible(e)||e.__v_skip||et(e)||e instanceof ye?void 0:new Le(e,t,n)}function Fe(e,t,n,r,o,a,s){void 0===s&&(s=!1);var u=new Oe,c=Object.getOwnPropertyDescriptor(e,t);if(!c||!1!==c.configurable){var l=c&&c.get,f=c&&c.set;l&&!f||n!==Ie&&2!==arguments.length||(n=e[t]);var d=o?n&&n.__ob__:$e(n,!1,a);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=l?l.call(e):n;return Oe.target&&(u.depend(),d&&(d.dep.depend(),i(t)&&He(t))),et(t)&&!o?t.value:t},set:function(t){var r=l?l.call(e):n;if(H(r,t)){if(f)f.call(e,t);else{if(l)return;if(!o&&et(r)&&!et(t))return void(r.value=t);n=t}d=o?t&&t.__ob__:$e(t,!1,a),u.notify()}}}),u}}function je(e,t,n){if(!Ye(e)){var r=e.__ob__;return i(e)&&m(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),r&&!r.shallow&&r.mock&&$e(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(Fe(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}}function Ve(e,t){if(i(e)&&m(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Ye(e)||k(e,t)&&(delete e[t],n&&n.dep.notify())}}function He(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),i(t)&&He(t)}function We(e){return qe(e,!1),e}function Ue(e){return qe(e,!0),X(e,"__v_isShallow",!0),e}function qe(e,t){if(!Ye(e)){$e(e,t,fe());0}}function Ge(e){return Ye(e)?Ge(e["__v_raw"]):!(!e||!e.__ob__)}function Ke(e){return!(!e||!e.__v_isShallow)}function Ye(e){return!(!e||!e.__v_isReadonly)}function Xe(e){return Ge(e)||Ye(e)}function Je(e){var t=e&&e["__v_raw"];return t?Je(t):e}function Ze(e){return Object.isExtensible(e)&&X(e,"__v_skip",!0),e}var Qe="__v_isRef";function et(e){return!(!e||!0!==e.__v_isRef)}function tt(e){return rt(e,!1)}function nt(e){return rt(e,!0)}function rt(e,t){if(et(e))return e;var n={};return X(n,Qe,!0),X(n,"__v_isShallow",t),X(n,"dep",Fe(n,"value",e,null,t,fe())),n}function it(e){e.dep&&e.dep.notify()}function ot(e){return et(e)?e.value:e}function at(e){if(Ge(e))return e;for(var t={},n=Object.keys(e),r=0;r<n.length;r++)st(t,e,n[r]);return t}function st(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if(et(e))return e.value;var r=e&&e.__ob__;return r&&r.dep.depend(),e},set:function(e){var r=t[n];et(r)&&!et(e)?r.value=e:t[n]=e}})}function ut(e){var t=new Oe,n=e((function(){t.depend()}),(function(){t.notify()})),r=n.get,i=n.set,o={get value(){return r()},set value(e){i(e)}};return X(o,Qe,!0),o}function ct(e){var t=i(e)?new Array(e.length):{};for(var n in e)t[n]=lt(e,n);return t}function lt(e,t,n){var r=e[t];if(et(r))return r;var i={get value(){var r=e[t];return void 0===r?n:r},set value(n){e[t]=n}};return X(i,Qe,!0),i}var ft="__v_rawToReadonly",dt="__v_rawToShallowReadonly";function ht(e){return pt(e,!1)}function pt(e,t){if(!h(e))return e;if(Ye(e))return e;var n=t?dt:ft,r=e[n];if(r)return r;var i=Object.create(Object.getPrototypeOf(e));X(e,n,i),X(i,"__v_isReadonly",!0),X(i,"__v_raw",e),et(e)&&X(i,Qe,!0),(t||Ke(e))&&X(i,"__v_isShallow",!0);for(var o=Object.keys(e),a=0;a<o.length;a++)mt(i,e,o[a],t);return i}function mt(e,t,n,r){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return r||!h(e)?e:ht(e)},set:function(){}})}function vt(e){return pt(e,!0)}function gt(e,t){var n,r,i=l(e);i?(n=e,r=B):(n=e.get,r=e.set);var o=fe()?null:new Sr(ve,n,B,{lazy:!0});var a={effect:o,get value(){return o?(o.dirty&&o.evaluate(),Oe.target&&o.depend(),o.value):n()},set value(e){r(e)}};return X(a,Qe,!0),X(a,"__v_isReadonly",i),a}var bt="watcher",yt="".concat(bt," callback"),wt="".concat(bt," getter"),xt="".concat(bt," cleanup");function _t(e,t){return Tt(e,null,t)}function Ct(e,t){return Tt(e,null,{flush:"post"})}function kt(e,t){return Tt(e,null,{flush:"sync"})}var St,Ot={};function Et(e,t,n){return Tt(e,t,n)}function Tt(e,t,n){var o=void 0===n?r:n,a=o.immediate,s=o.deep,u=o.flush,c=void 0===u?"pre":u;o.onTrack,o.onTrigger;var f,d,h=ve,p=function(e,t,n){void 0===n&&(n=null);var r=jn(e,null,n,h,t);return s&&r&&r.__ob__&&r.__ob__.dep.depend(),r},m=!1,v=!1;if(et(e)?(f=function(){return e.value},m=Ke(e)):Ge(e)?(f=function(){return e.__ob__.dep.depend(),e},s=!0):i(e)?(v=!0,m=e.some((function(e){return Ge(e)||Ke(e)})),f=function(){return e.map((function(e){return et(e)?e.value:Ge(e)?(e.__ob__.dep.depend(),xr(e)):l(e)?p(e,wt):void 0}))}):f=l(e)?t?function(){return p(e,wt)}:function(){if(!h||!h._isDestroyed)return d&&d(),p(e,bt,[b])}:B,t&&s){var g=f;f=function(){return xr(g())}}var b=function(e){d=y.onStop=function(){p(e,xt)}};if(fe())return b=B,t?a&&p(t,yt,[f(),v?[]:void 0,b]):f(),B;var y=new Sr(ve,f,B,{lazy:!0});y.noRecurse=!t;var w=v?[]:Ot;return y.run=function(){if(y.active)if(t){var e=y.get();(s||m||(v?e.some((function(e,t){return H(e,w[t])})):H(e,w)))&&(d&&d(),p(t,yt,[e,w===Ot?void 0:w,b]),w=e)}else y.get()},"sync"===c?y.update=y.run:"post"===c?(y.post=!0,y.update=function(){return ri(y)}):y.update=function(){if(h&&h===ve&&!h._isMounted){var e=h._preWatchers||(h._preWatchers=[]);e.indexOf(y)<0&&e.push(y)}else ri(y)},t?a?y.run():w=y.get():"post"===c&&h?h.$once("hook:mounted",(function(){return y.get()})):y.get(),function(){y.teardown()}}var Dt=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=St,!e&&St&&(this.index=(St.scopes||(St.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=St;try{return St=this,e()}finally{St=t}}else 0},e.prototype.on=function(){St=this},e.prototype.off=function(){St=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},e}();function Mt(e){return new Dt(e)}function At(e,t){void 0===t&&(t=St),t&&t.active&&t.effects.push(e)}function Nt(){return St}function Pt(e){St&&St.cleanups.push(e)}function It(e,t){ve&&(Rt(ve)[e]=t)}function Rt(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function zt(e,t,n){void 0===n&&(n=!1);var r=ve;if(r){var i=r.$parent&&r.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&l(t)?t.call(r):t}else 0}var Bt=S((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function Lt(e,t){function n(){var e=n.fns;if(!i(e))return jn(e,null,arguments,t,"v-on handler");for(var r=e.slice(),o=0;o<r.length;o++)jn(r[o],null,arguments,t,"v-on handler")}return n.fns=e,n}function $t(e,t,n,r,i,a){var u,c,l,f;for(u in e)c=e[u],l=t[u],f=Bt(u),o(c)||(o(l)?(o(c.fns)&&(c=e[u]=Lt(c,a)),s(f.once)&&(c=e[u]=i(f.name,c,f.capture)),n(f.name,c,f.capture,f.passive,f.params)):c!==l&&(l.fns=c,e[u]=l));for(u in t)o(e[u])&&(f=Bt(u),r(f.name,t[u],f.capture))}function Ft(e,t,n){var r;e instanceof ye&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function u(){n.apply(this,arguments),_(r.fns,u)}o(i)?r=Lt([u]):a(i.fns)&&s(i.merged)?(r=i,r.fns.push(u)):r=Lt([i,u]),r.merged=!0,e[t]=r}function jt(e,t,n){var r=t.options.props;if(!o(r)){var i={},s=e.attrs,u=e.props;if(a(s)||a(u))for(var c in r){var l=M(c);Vt(i,u,c,l,!0)||Vt(i,s,c,l,!1)}return i}}function Vt(e,t,n,r,i){if(a(t)){if(k(t,n))return e[n]=t[n],i||delete t[n],!0;if(k(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Ht(e){for(var t=0;t<e.length;t++)if(i(e[t]))return Array.prototype.concat.apply([],e);return e}function Wt(e){return c(e)?[xe(e)]:i(e)?qt(e):void 0}function Ut(e){return a(e)&&a(e.text)&&u(e.isComment)}function qt(e,t){var n,r,u,l,f=[];for(n=0;n<e.length;n++)r=e[n],o(r)||"boolean"===typeof r||(u=f.length-1,l=f[u],i(r)?r.length>0&&(r=qt(r,"".concat(t||"","_").concat(n)),Ut(r[0])&&Ut(l)&&(f[u]=xe(l.text+r[0].text),r.shift()),f.push.apply(f,r)):c(r)?Ut(l)?f[u]=xe(l.text+r):""!==r&&f.push(xe(r)):Ut(r)&&Ut(l)?f[u]=xe(l.text+r.text):(s(e._isVList)&&a(r.tag)&&o(r.key)&&a(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),f.push(r)));return f}function Gt(e,t){var n,r,o,s,u=null;if(i(e)||"string"===typeof e)for(u=new Array(e.length),n=0,r=e.length;n<r;n++)u[n]=t(e[n],n);else if("number"===typeof e)for(u=new Array(e),n=0;n<e;n++)u[n]=t(n+1,n);else if(f(e))if(me&&e[Symbol.iterator]){u=[];var c=e[Symbol.iterator](),l=c.next();while(!l.done)u.push(t(l.value,u.length)),l=c.next()}else for(o=Object.keys(e),u=new Array(o.length),n=0,r=o.length;n<r;n++)s=o[n],u[n]=t(e[s],s,n);return a(u)||(u=[]),u._isVList=!0,u}function Kt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=R(R({},r),n)),i=o(n)||(l(t)?t():t)):i=this.$slots[e]||(l(t)?t():t);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Yt(e){return Ai(this.$options,"filters",e,!0)||$}function Xt(e,t){return i(e)?-1===e.indexOf(t):e!==t}function Jt(e,t,n,r,i){var o=G.keyCodes[t]||n;return i&&r&&!G.keyCodes[t]?Xt(i,r):o?Xt(o,e):r?M(r)!==t:void 0===e}function Zt(e,t,n,r,o){if(n)if(f(n)){i(n)&&(n=z(n));var a=void 0,s=function(i){if("class"===i||"style"===i||x(i))a=e;else{var s=e.attrs&&e.attrs.type;a=r||G.mustUseProp(t,s,i)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=E(i),c=M(i);if(!(u in a)&&!(c in a)&&(a[i]=n[i],o)){var l=e.on||(e.on={});l["update:".concat(i)]=function(e){n[i]=e}}};for(var u in n)s(u)}else;return e}function Qt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),tn(r,"__static__".concat(e),!1)),r}function en(e,t,n){return tn(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function tn(e,t,n){if(i(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&nn(e[r],"".concat(t,"_").concat(r),n);else nn(e,t,n)}function nn(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function rn(e,t){if(t)if(h(t)){var n=e.on=e.on?R({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function on(e,t,n,r){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var a=e[o];i(a)?on(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function an(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function sn(e,t){return"string"===typeof e?t+e:e}function un(e){e._o=en,e._n=y,e._s=g,e._l=Gt,e._t=Kt,e._q=F,e._i=j,e._m=Qt,e._f=Yt,e._k=Jt,e._b=Zt,e._v=xe,e._e=we,e._u=on,e._g=rn,e._d=an,e._p=sn}function cn(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var c in n)n[c].every(ln)&&delete n[c];return n}function ln(e){return e.isComment&&!e.asyncFactory||" "===e.text}function fn(e){return e.isComment&&e.asyncFactory}function dn(e,t,n,i){var o,a=Object.keys(n).length>0,s=t?!!t.$stable:!a,u=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==r&&u===i.$key&&!a&&!i.$hasNormal)return i;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=hn(e,n,c,t[c]))}else o={};for(var l in n)l in o||(o[l]=pn(n,l));return t&&Object.isExtensible(t)&&(t._normalized=o),X(o,"$stable",s),X(o,"$key",u),X(o,"$hasNormal",a),o}function hn(e,t,n,r){var o=function(){var t=ve;be(e);var n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"===typeof n&&!i(n)?[n]:Wt(n);var o=n&&n[0];return be(t),n&&(!o||1===n.length&&o.isComment&&!fn(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function pn(e,t){return function(){return e[t]}}function mn(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=vn(e);be(e),Te();var i=jn(n,null,[e._props||Ue({}),r],e,"setup");if(De(),be(),l(i))t.render=i;else if(f(i))if(e._setupState=i,i.__sfc){var o=e._setupProxy={};for(var a in i)"__sfc"!==a&&st(o,i,a)}else for(var a in i)Y(a)||st(e,i,a);else 0}}function vn(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};X(t,"_v_attr_proxy",!0),gn(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};gn(t,e.$listeners,r,e,"$listeners")}return e._listenersProxy},get slots(){return yn(e)},emit:P(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return st(e,t,n)}))}}}function gn(e,t,n,r,i){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,bn(e,a,r,i));for(var a in e)a in t||(o=!0,delete e[a]);return o}function bn(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function yn(e){return e._slotsProxy||wn(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function wn(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function xn(){return kn().slots}function _n(){return kn().attrs}function Cn(){return kn().listeners}function kn(){var e=ve;return e._setupContext||(e._setupContext=vn(e))}function Sn(e,t){var n=i(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var r in t){var o=n[r];o?i(o)||l(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(n[r]={default:t[r]})}return n}function On(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=cn(t._renderChildren,i),e.$scopedSlots=n?dn(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=function(t,n,r,i){return Rn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Rn(e,t,n,r,i,!0)};var o=n&&n.data;Fe(e,"$attrs",o&&o.attrs||r,null,!0),Fe(e,"$listeners",t._parentListeners||r,null,!0)}var En=null;function Tn(e){un(e.prototype),e.prototype.$nextTick=function(e){return Qn(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t._parentVnode;r&&e._isMounted&&(e.$scopedSlots=dn(e.$parent,r.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&wn(e._slotsProxy,e.$scopedSlots)),e.$vnode=r;var o,a=ve,s=En;try{be(e),En=e,o=n.call(e._renderProxy,e.$createElement)}catch(ou){Fn(ou,e,"render"),o=e._vnode}finally{En=s,be(a)}return i(o)&&1===o.length&&(o=o[0]),o instanceof ye||(o=we()),o.parent=r,o}}function Dn(e,t){return(e.__esModule||me&&"Module"===e[Symbol.toStringTag])&&(e=e.default),f(e)?t.extend(e):e}function Mn(e,t,n,r,i){var o=we();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function An(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=En;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],i=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return _(r,n)}));var l=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},d=V((function(n){e.resolved=Dn(n,t),i?r.length=0:l(!0)})),h=V((function(t){a(e.errorComp)&&(e.error=!0,l(!0))})),p=e(d,h);return f(p)&&(v(p)?o(e.resolved)&&p.then(d,h):v(p.component)&&(p.component.then(d,h),a(p.error)&&(e.errorComp=Dn(p.error,t)),a(p.loading)&&(e.loadingComp=Dn(p.loading,t),0===p.delay?e.loading=!0:u=setTimeout((function(){u=null,o(e.resolved)&&o(e.error)&&(e.loading=!0,l(!1))}),p.delay||200)),a(p.timeout)&&(c=setTimeout((function(){c=null,o(e.resolved)&&h(null)}),p.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}function Nn(e){if(i(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||fn(n)))return n}}var Pn=1,In=2;function Rn(e,t,n,r,o,a){return(i(n)||c(n))&&(o=r,r=n,n=void 0),s(a)&&(o=In),zn(e,t,n,r,o)}function zn(e,t,n,r,o){if(a(n)&&a(n.__ob__))return we();if(a(n)&&a(n.is)&&(t=n.is),!t)return we();var s,u;if(i(r)&&l(r[0])&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===In?r=Wt(r):o===Pn&&(r=Ht(r)),"string"===typeof t){var c=void 0;u=e.$vnode&&e.$vnode.ns||G.getTagNamespace(t),s=G.isReservedTag(t)?new ye(G.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!a(c=Ai(e.$options,"components",t))?new ye(t,n,r,void 0,void 0,e):pi(c,n,e,r,t)}else s=pi(t,n,e,r);return i(s)?s:a(s)?(a(u)&&Bn(s,u),a(n)&&Ln(n),s):we()}function Bn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),a(e.children))for(var r=0,i=e.children.length;r<i;r++){var u=e.children[r];a(u.tag)&&(o(u.ns)||s(n)&&"svg"!==u.tag)&&Bn(u,t,n)}}function Ln(e){f(e.style)&&xr(e.style),f(e.class)&&xr(e.class)}function $n(e,t,n){return Rn(ve,e,t,n,2,!0)}function Fn(e,t,n){Te();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(ou){Vn(ou,r,"errorCaptured hook")}}}Vn(e,t,n)}finally{De()}}function jn(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&v(o)&&!o._handled&&(o.catch((function(e){return Fn(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(ou){Fn(ou,r,i)}return o}function Vn(e,t,n){if(G.errorHandler)try{return G.errorHandler.call(null,e,t,n)}catch(ou){ou!==e&&Hn(ou,null,"config.errorHandler")}Hn(e,t,n)}function Hn(e,t,n){if(!ee||"undefined"===typeof console)throw e;console.error(e)}var Wn,Un=!1,qn=[],Gn=!1;function Kn(){Gn=!1;var e=qn.slice(0);qn.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&he(Promise)){var Yn=Promise.resolve();Wn=function(){Yn.then(Kn),oe&&setTimeout(B)},Un=!0}else if(ne||"undefined"===typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Wn="undefined"!==typeof setImmediate&&he(setImmediate)?function(){setImmediate(Kn)}:function(){setTimeout(Kn,0)};else{var Xn=1,Jn=new MutationObserver(Kn),Zn=document.createTextNode(String(Xn));Jn.observe(Zn,{characterData:!0}),Wn=function(){Xn=(Xn+1)%2,Zn.data=String(Xn)},Un=!0}function Qn(e,t){var n;if(qn.push((function(){if(e)try{e.call(t)}catch(ou){Fn(ou,t,"nextTick")}else n&&n(t)})),Gn||(Gn=!0,Wn()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}function er(e){if(void 0===e&&(e="$style"),!ve)return r;var t=ve[e];return t||r}function tr(e){if(ee){var t=ve;t&&Ct((function(){var n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){var i=n.style;for(var o in r)i.setProperty("--".concat(o),r[o])}}))}}function nr(e){l(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,r=e.errorComponent,i=e.delay,o=void 0===i?200:i,a=e.timeout,s=(e.suspensible,e.onError);var u=null,c=0,f=function(){return c++,u=null,d()},d=function(){var e;return u||(e=u=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise((function(t,n){var r=function(){return t(f())},i=function(){return n(e)};s(e,r,i,c+1)}));throw e})).then((function(t){return e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){var e=d();return{component:e,delay:o,timeout:a,error:r,loading:n}}}function rr(e){return function(t,n){if(void 0===n&&(n=ve),n)return ir(n,e,t)}}function ir(e,t,n){var r=e.$options;r[t]=Ci(r[t],n)}var or=rr("beforeMount"),ar=rr("mounted"),sr=rr("beforeUpdate"),ur=rr("updated"),cr=rr("beforeDestroy"),lr=rr("destroyed"),fr=rr("activated"),dr=rr("deactivated"),hr=rr("serverPrefetch"),pr=rr("renderTracked"),mr=rr("renderTriggered"),vr=rr("errorCaptured");function gr(e,t){void 0===t&&(t=ve),vr(e,t)}var br="2.7.16";function yr(e){return e}var wr=new pe;function xr(e){return _r(e,wr),wr.clear(),e}function _r(e,t){var n,r,o=i(e);if(!(!o&&!f(e)||e.__v_skip||Object.isFrozen(e)||e instanceof ye)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o){n=e.length;while(n--)_r(e[n],t)}else if(et(e))_r(e.value,t);else{r=Object.keys(e),n=r.length;while(n--)_r(e[r[n]],t)}}}var Cr,kr=0,Sr=function(){function e(e,t,n,r,i){At(this,St&&!St._vm?St:e?e._scope:void 0),(this.vm=e)&&i&&(e._watcher=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=++kr,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new pe,this.newDepIds=new pe,this.expression="",l(t)?this.getter=t:(this.getter=Z(t),this.getter||(this.getter=B)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;Te(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(ou){if(!this.user)throw ou;Fn(ou,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&xr(e),De(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.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},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ri(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||f(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');jn(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&_(this.vm._scope.effects,this),this.active){var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}();function Or(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Mr(e,t)}function Er(e,t){Cr.$on(e,t)}function Tr(e,t){Cr.$off(e,t)}function Dr(e,t){var n=Cr;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Mr(e,t,n){Cr=e,$t(t,n||{},Er,Tr,Dr,e),Cr=void 0}function Ar(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(i(e))for(var o=0,a=e.length;o<a;o++)r.$on(e[o],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(i(e)){for(var r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var a,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var u=s.length;while(u--)if(a=s[u],a===t||a.fn===t){s.splice(u,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?I(n):n;for(var r=I(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;o<a;o++)jn(n[o],t,r,t,i)}return t}}var Nr=null;function Pr(e){var t=Nr;return Nr=e,function(){Nr=t}}function Ir(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Rr(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Pr(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);var a=n;while(a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode)a.$parent.$el=a.$el,a=a.$parent},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){jr(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),jr(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function zr(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=we),jr(e,"beforeMount"),r=function(){e._update(e._render(),n)};var i={before:function(){e._isMounted&&!e._isDestroyed&&jr(e,"beforeUpdate")}};new Sr(e,r,B,i,!0),n=!1;var o=e._preWatchers;if(o)for(var a=0;a<o.length;a++)o[a].run();return null==e.$vnode&&(e._isMounted=!0,jr(e,"mounted")),e}function Br(e,t,n,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,u=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),c=!!(o||e.$options._renderChildren||u),l=e.$vnode;e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o;var f=i.data.attrs||r;e._attrsProxy&&gn(e._attrsProxy,f,l.data&&l.data.attrs||r,e,"$attrs")&&(c=!0),e.$attrs=f,n=n||r;var d=e.$options._parentListeners;if(e._listenersProxy&&gn(e._listenersProxy,n,d||r,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,Mr(e,n,d),t&&e.$options.props){ze(!1);for(var h=e._props,p=e.$options._propKeys||[],m=0;m<p.length;m++){var v=p[m],g=e.$options.props;h[v]=Ni(v,g,t,e)}ze(!0),e.$options.propsData=t}c&&(e.$slots=cn(o,i.context),e.$forceUpdate())}function Lr(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function $r(e,t){if(t){if(e._directInactive=!1,Lr(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)$r(e.$children[n]);jr(e,"activated")}}function Fr(e,t){if((!t||(e._directInactive=!0,!Lr(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Fr(e.$children[n]);jr(e,"deactivated")}}function jr(e,t,n,r){void 0===r&&(r=!0),Te();var i=ve,o=Nt();r&&be(e);var a=e.$options[t],s="".concat(t," hook");if(a)for(var u=0,c=a.length;u<c;u++)jn(a[u],e,n||null,e,s);e._hasHookEvent&&e.$emit("hook:"+t),r&&(be(i),o&&o.on()),De()}var Vr=[],Hr=[],Wr={},Ur=!1,qr=!1,Gr=0;function Kr(){Gr=Vr.length=Hr.length=0,Wr={},Ur=qr=!1}var Yr=0,Xr=Date.now;if(ee&&!ne){var Jr=window.performance;Jr&&"function"===typeof Jr.now&&Xr()>document.createEvent("Event").timeStamp&&(Xr=function(){return Jr.now()})}var Zr=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Qr(){var e,t;for(Yr=Xr(),qr=!0,Vr.sort(Zr),Gr=0;Gr<Vr.length;Gr++)e=Vr[Gr],e.before&&e.before(),t=e.id,Wr[t]=null,e.run();var n=Hr.slice(),r=Vr.slice();Kr(),ni(n),ei(r),Se(),de&&G.devtools&&de.emit("flush")}function ei(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&jr(r,"updated")}}function ti(e){e._inactive=!1,Hr.push(e)}function ni(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,$r(e[t],!0)}function ri(e){var t=e.id;if(null==Wr[t]&&(e!==Oe.target||!e.noRecurse)){if(Wr[t]=!0,qr){var n=Vr.length-1;while(n>Gr&&Vr[n].id>e.id)n--;Vr.splice(n+1,0,e)}else Vr.push(e);Ur||(Ur=!0,Qn(Qr))}}function ii(e){var t=e.$options.provide;if(t){var n=l(t)?t.call(e):t;if(!f(n))return;for(var r=Rt(e),i=me?Reflect.ownKeys(n):Object.keys(n),o=0;o<i.length;o++){var a=i[o];Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))}}}function oi(e){var t=ai(e.$options.inject,e);t&&(ze(!1),Object.keys(t).forEach((function(n){Fe(e,n,t[n])})),ze(!0))}function ai(e,t){if(e){for(var n=Object.create(null),r=me?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from;if(a in t._provided)n[o]=t._provided[a];else if("default"in e[o]){var s=e[o].default;n[o]=l(s)?s.call(t):s}else 0}}return n}}function si(e,t,n,o,a){var u,c=this,l=a.options;k(o,"_uid")?(u=Object.create(o),u._original=o):(u=o,o=o._original);var f=s(l._compiled),d=!f;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||r,this.injections=ai(l.inject,o),this.slots=function(){return c.$slots||dn(o,e.scopedSlots,c.$slots=cn(n,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return dn(o,e.scopedSlots,this.slots())}}),f&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=dn(o,e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var a=Rn(u,e,t,n,r,d);return a&&!i(a)&&(a.fnScopeId=l._scopeId,a.fnContext=o),a}:this._c=function(e,t,n,r){return Rn(u,e,t,n,r,d)}}function ui(e,t,n,o,s){var u=e.options,c={},l=u.props;if(a(l))for(var f in l)c[f]=Ni(f,l,t||r);else a(n.attrs)&&li(c,n.attrs),a(n.props)&&li(c,n.props);var d=new si(n,c,s,o,e),h=u.render.call(null,d._c,d);if(h instanceof ye)return ci(h,n,d.parent,u,d);if(i(h)){for(var p=Wt(h)||[],m=new Array(p.length),v=0;v<p.length;v++)m[v]=ci(p[v],n,d.parent,u,d);return m}}function ci(e,t,n,r,i){var o=_e(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function li(e,t){for(var n in t)e[E(n)]=t[n]}function fi(e){return e.name||e.__name||e._componentTag}un(si.prototype);var di={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;di.prepatch(n,n)}else{var r=e.componentInstance=mi(e,Nr);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Br(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,jr(n,"mounted")),e.data.keepAlive&&(t._isMounted?ti(n):$r(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Fr(t,!0):t.$destroy())}},hi=Object.keys(di);function pi(e,t,n,r,i){if(!o(e)){var u=n.$options._base;if(f(e)&&(e=u.extend(e)),"function"===typeof e){var c;if(o(e.cid)&&(c=e,e=An(c,u),void 0===e))return Mn(c,t,n,r,i);t=t||{},no(e),a(t.model)&&bi(e.options,t);var l=jt(t,e,i);if(s(e.options.functional))return ui(e,l,t,n,r);var d=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}vi(t);var p=fi(e.options)||i,m=new ye("vue-component-".concat(e.cid).concat(p?"-".concat(p):""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:l,listeners:d,tag:i,children:r},c);return m}}}function mi(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function vi(e){for(var t=e.hook||(e.hook={}),n=0;n<hi.length;n++){var r=hi[n],i=t[r],o=di[r];i===o||i&&i._merged||(t[r]=i?gi(o,i):o)}}function gi(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function bi(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[r],u=t.model.callback;a(s)?(i(s)?-1===s.indexOf(u):s!==u)&&(o[r]=[u].concat(s)):o[r]=u}var yi=B,wi=G.optionMergeStrategies;function xi(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var r,i,o,a=me?Reflect.ownKeys(t):Object.keys(t),s=0;s<a.length;s++)r=a[s],"__ob__"!==r&&(i=e[r],o=t[r],n&&k(e,r)?i!==o&&h(i)&&h(o)&&xi(i,o):je(e,r,o));return e}function _i(e,t,n){return n?function(){var r=l(t)?t.call(n,n):t,i=l(e)?e.call(n,n):e;return r?xi(r,i):i}:t?e?function(){return xi(l(t)?t.call(this,this):t,l(e)?e.call(this,this):e)}:t:e}function Ci(e,t){var n=t?e?e.concat(t):i(t)?t:[t]:e;return n?ki(n):n}function ki(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Si(e,t,n,r){var i=Object.create(e||null);return t?R(i,t):i}wi.data=function(e,t,n){return n?_i(e,t,n):t&&"function"!==typeof t?e:_i(e,t)},q.forEach((function(e){wi[e]=Ci})),U.forEach((function(e){wi[e+"s"]=Si})),wi.watch=function(e,t,n,r){if(e===ue&&(e=void 0),t===ue&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var a in R(o,e),t){var s=o[a],u=t[a];s&&!i(s)&&(s=[s]),o[a]=s?s.concat(u):i(u)?u:[u]}return o},wi.props=wi.methods=wi.inject=wi.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return R(i,e),t&&R(i,t),i},wi.provide=function(e,t){return e?function(){var n=Object.create(null);return xi(n,l(e)?e.call(this):e),t&&xi(n,l(t)?t.call(this):t,!1),n}:t};var Oi=function(e,t){return void 0===t?e:t};function Ei(e,t){var n=e.props;if(n){var r,o,a,s={};if(i(n)){r=n.length;while(r--)o=n[r],"string"===typeof o&&(a=E(o),s[a]={type:null})}else if(h(n))for(var u in n)o=n[u],a=E(u),s[a]=h(o)?o:{type:o};else 0;e.props=s}}function Ti(e,t){var n=e.inject;if(n){var r=e.inject={};if(i(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(h(n))for(var a in n){var s=n[a];r[a]=h(s)?R({from:a},s):{from:s}}else 0}}function Di(e){var t=e.directives;if(t)for(var n in t){var r=t[n];l(r)&&(t[n]={bind:r,update:r})}}function Mi(e,t,n){if(l(t)&&(t=t.options),Ei(t,n),Ti(t,n),Di(t),!t._base&&(t.extends&&(e=Mi(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Mi(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)k(e,o)||s(o);function s(r){var i=wi[r]||Oi;a[r]=i(e[r],t[r],n,r)}return a}function Ai(e,t,n,r){if("string"===typeof n){var i=e[t];if(k(i,n))return i[n];var o=E(n);if(k(i,o))return i[o];var a=T(o);if(k(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Ni(e,t,n,r){var i=t[e],o=!k(n,e),a=n[e],s=Bi(Boolean,i.type);if(s>-1)if(o&&!k(i,"default"))a=!1;else if(""===a||a===M(e)){var u=Bi(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=Pi(r,i,e);var c=Re;ze(!0),$e(a),ze(c)}return a}function Pi(e,t,n){if(k(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:l(r)&&"Function"!==Ri(t.type)?r.call(e):r}}var Ii=/^\s*function (\w+)/;function Ri(e){var t=e&&e.toString().match(Ii);return t?t[1]:""}function zi(e,t){return Ri(e)===Ri(t)}function Bi(e,t){if(!i(t))return zi(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(zi(t[n],e))return n;return-1}var Li={enumerable:!0,configurable:!0,get:B,set:B};function $i(e,t,n){Li.get=function(){return this[t][n]},Li.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Li)}function Fi(e){var t=e.$options;if(t.props&&ji(e,t.props),mn(e),t.methods&&Yi(e,t.methods),t.data)Vi(e);else{var n=$e(e._data={});n&&n.vmCount++}t.computed&&Ui(e,t.computed),t.watch&&t.watch!==ue&&Xi(e,t.watch)}function ji(e,t){var n=e.$options.propsData||{},r=e._props=Ue({}),i=e.$options._propKeys=[],o=!e.$parent;o||ze(!1);var a=function(o){i.push(o);var a=Ni(o,t,n,e);Fe(r,o,a,void 0,!0),o in e||$i(e,"_props",o)};for(var s in t)a(s);ze(!0)}function Vi(e){var t=e.$options.data;t=e._data=l(t)?Hi(t,e):t||{},h(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&k(r,o)||Y(o)||$i(e,"_data",o)}var a=$e(t);a&&a.vmCount++}function Hi(e,t){Te();try{return e.call(t,t)}catch(ou){return Fn(ou,t,"data()"),{}}finally{De()}}var Wi={lazy:!0};function Ui(e,t){var n=e._computedWatchers=Object.create(null),r=fe();for(var i in t){var o=t[i],a=l(o)?o:o.get;0,r||(n[i]=new Sr(e,a||B,B,Wi)),i in e||qi(e,i,o)}}function qi(e,t,n){var r=!fe();l(n)?(Li.get=r?Gi(t):Ki(n),Li.set=B):(Li.get=n.get?r&&!1!==n.cache?Gi(t):Ki(n.get):B,Li.set=n.set||B),Object.defineProperty(e,t,Li)}function Gi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Oe.target&&t.depend(),t.value}}function Ki(e){return function(){return e.call(this,this)}}function Yi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?B:P(t[n],e)}function Xi(e,t){for(var n in t){var r=t[n];if(i(r))for(var o=0;o<r.length;o++)Ji(e,n,r[o]);else Ji(e,n,r)}}function Ji(e,t,n,r){return h(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function Zi(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=je,e.prototype.$delete=Ve,e.prototype.$watch=function(e,t,n){var r=this;if(h(t))return Ji(r,e,t,n);n=n||{},n.user=!0;var i=new Sr(r,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(i.expression,'"');Te(),jn(t,r,[i.value],r,o),De()}return function(){i.teardown()}}}var Qi=0;function eo(e){e.prototype._init=function(e){var t=this;t._uid=Qi++,t._isVue=!0,t.__v_skip=!0,t._scope=new Dt(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?to(t,e):t.$options=Mi(no(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Ir(t),Or(t),On(t),jr(t,"beforeCreate",void 0,!1),oi(t),Fi(t),ii(t),jr(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function to(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function no(e){var t=e.options;if(e.super){var n=no(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=ro(e);i&&R(e.extendOptions,i),t=e.options=Mi(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function ro(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function io(e){this._init(e)}function oo(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=I(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}function ao(e){e.mixin=function(e){return this.options=Mi(this.options,e),this}}function so(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=fi(e)||fi(n.options);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Mi(n.options,e),a["super"]=n,a.options.props&&uo(a),a.options.computed&&co(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=R({},a.options),i[r]=a,a}}function uo(e){var t=e.options.props;for(var n in t)$i(e.prototype,"_props",n)}function co(e){var t=e.options.computed;for(var n in t)qi(e.prototype,n,t[n])}function lo(e){U.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&h(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function fo(e){return e&&(fi(e.Ctor.options)||e.tag)}function ho(e,t){return i(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function po(e,t){var n=e.cache,r=e.keys,i=e._vnode,o=e.$vnode;for(var a in n){var s=n[a];if(s){var u=s.name;u&&!t(u)&&mo(n,a,r,i)}}o.componentOptions.children=void 0}function mo(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,_(n,t)}eo(io),Zi(io),Ar(io),Rr(io),Tn(io);var vo=[String,RegExp,Array],go={name:"keep-alive",abstract:!0,props:{include:vo,exclude:vo,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:fo(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&mo(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)mo(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){po(e,(function(e){return ho(t,e)}))})),this.$watch("exclude",(function(t){po(e,(function(e){return!ho(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Nn(e),n=t&&t.componentOptions;if(n){var r=fo(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!ho(o,r))||a&&r&&ho(a,r))return t;var s=this,u=s.cache,c=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;u[l]?(t.componentInstance=u[l].componentInstance,_(c,l),c.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}},bo={KeepAlive:go};function yo(e){var t={get:function(){return G}};Object.defineProperty(e,"config",t),e.util={warn:yi,extend:R,mergeOptions:Mi,defineReactive:Fe},e.set=je,e.delete=Ve,e.nextTick=Qn,e.observable=function(e){return $e(e),e},e.options=Object.create(null),U.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,R(e.options.components,bo),oo(e),ao(e),so(e),lo(e)}yo(io),Object.defineProperty(io.prototype,"$isServer",{get:fe}),Object.defineProperty(io.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(io,"FunctionalRenderContext",{value:si}),io.version=br;var wo=w("style,class"),xo=w("input,textarea,option,select,progress"),_o=function(e,t,n){return"value"===n&&xo(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Co=w("contenteditable,draggable,spellcheck"),ko=w("events,caret,typing,plaintext-only"),So=function(e,t){return Mo(t)||"false"===t?"false":"contenteditable"===e&&ko(t)?t:"true"},Oo=w("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,truespeed,typemustmatch,visible"),Eo="http://www.w3.org/1999/xlink",To=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Do=function(e){return To(e)?e.slice(6,e.length):""},Mo=function(e){return null==e||!1===e};function Ao(e){var t=e.data,n=e,r=e;while(a(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=No(r.data,t));while(a(n=n.parent))n&&n.data&&(t=No(t,n.data));return Po(t.staticClass,t.class)}function No(e,t){return{staticClass:Io(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Po(e,t){return a(e)||a(t)?Io(e,Ro(t)):""}function Io(e,t){return e?t?e+" "+t:e:t||""}function Ro(e){return Array.isArray(e)?zo(e):f(e)?Bo(e):"string"===typeof e?e:""}function zo(e){for(var t,n="",r=0,i=e.length;r<i;r++)a(t=Ro(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Bo(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Lo={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},$o=w("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"),Fo=w("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),jo=function(e){return $o(e)||Fo(e)};function Vo(e){return Fo(e)?"svg":"math"===e?"math":void 0}var Ho=Object.create(null);function Wo(e){if(!ee)return!0;if(jo(e))return!1;if(e=e.toLowerCase(),null!=Ho[e])return Ho[e];var t=document.createElement(e);return e.indexOf("-")>-1?Ho[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Ho[e]=/HTMLUnknownElement/.test(t.toString())}var Uo=w("text,number,password,search,email,tel,url");function qo(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Go(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Ko(e,t){return document.createElementNS(Lo[e],t)}function Yo(e){return document.createTextNode(e)}function Xo(e){return document.createComment(e)}function Jo(e,t,n){e.insertBefore(t,n)}function Zo(e,t){e.removeChild(t)}function Qo(e,t){e.appendChild(t)}function ea(e){return e.parentNode}function ta(e){return e.nextSibling}function na(e){return e.tagName}function ra(e,t){e.textContent=t}function ia(e,t){e.setAttribute(t,"")}var oa=Object.freeze({__proto__:null,createElement:Go,createElementNS:Ko,createTextNode:Yo,createComment:Xo,insertBefore:Jo,removeChild:Zo,appendChild:Qo,parentNode:ea,nextSibling:ta,tagName:na,setTextContent:ra,setStyleScope:ia}),aa={create:function(e,t){sa(t)},update:function(e,t){e.data.ref!==t.data.ref&&(sa(e,!0),sa(t))},destroy:function(e){sa(e,!0)}};function sa(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,s=t?null:o,u=t?void 0:o;if(l(n))jn(n,r,[s],r,"template ref function");else{var c=e.data.refInFor,f="string"===typeof n||"number"===typeof n,d=et(n),h=r.$refs;if(f||d)if(c){var p=f?h[n]:n.value;t?i(p)&&_(p,o):i(p)?p.includes(o)||p.push(o):f?(h[n]=[o],ua(r,n,h[n])):n.value=[o]}else if(f){if(t&&h[n]!==o)return;h[n]=u,ua(r,n,s)}else if(d){if(t&&n.value!==o)return;n.value=s}else 0}}}function ua(e,t,n){var r=e._setupState;r&&k(r,t)&&(et(r[t])?r[t].value=n:r[t]=n)}var ca=new ye("",{},[]),la=["create","activate","update","remove","destroy"];function fa(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&da(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function da(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||Uo(r)&&Uo(i)}function ha(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,a(i)&&(o[i]=r);return o}function pa(e){var t,n,r={},u=e.modules,l=e.nodeOps;for(t=0;t<la.length;++t)for(r[la[t]]=[],n=0;n<u.length;++n)a(u[n][la[t]])&&r[la[t]].push(u[n][la[t]]);function f(e){return new ye(l.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=l.parentNode(e);a(t)&&l.removeChild(t,e)}function p(e,t,n,r,i,o,u){if(a(e.elm)&&a(o)&&(e=o[u]=_e(e)),e.isRootInsert=!i,!m(e,t,n,r)){var c=e.data,f=e.children,d=e.tag;a(d)?(e.elm=e.ns?l.createElementNS(e.ns,d):l.createElement(d,e),C(e),y(e,f,t),a(c)&&_(e,t),b(n,e.elm,r)):s(e.isComment)?(e.elm=l.createComment(e.text),b(n,e.elm,r)):(e.elm=l.createTextNode(e.text),b(n,e.elm,r))}}function m(e,t,n,r){var i=e.data;if(a(i)){var o=a(e.componentInstance)&&i.keepAlive;if(a(i=i.hook)&&a(i=i.init)&&i(e,!1),a(e.componentInstance))return v(e,t),b(n,e.elm,r),s(o)&&g(e,t,n,r),!0}}function v(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,x(e)?(_(e,t),C(e)):(sa(e),t.push(e))}function g(e,t,n,i){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](ca,s);t.push(s);break}b(n,e.elm,i)}function b(e,t,n){a(e)&&(a(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function y(e,t,n){if(i(t)){0;for(var r=0;r<t.length;++r)p(t[r],n,e.elm,null,!0,t,r)}else c(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function x(e){while(e.componentInstance)e=e.componentInstance._vnode;return a(e.tag)}function _(e,n){for(var i=0;i<r.create.length;++i)r.create[i](ca,e);t=e.data.hook,a(t)&&(a(t.create)&&t.create(ca,e),a(t.insert)&&n.push(e))}function C(e){var t;if(a(t=e.fnScopeId))l.setStyleScope(e.elm,t);else{var n=e;while(n)a(t=n.context)&&a(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent}a(t=Nr)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function k(e,t,n,r,i,o){for(;r<=i;++r)p(n[r],o,e,t,!1,n,r)}function S(e){var t,n,i=e.data;if(a(i))for(a(t=i.hook)&&a(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)S(e.children[n])}function O(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(a(r.tag)?(E(r),S(r)):h(r.elm))}}function E(e,t){if(a(t)||a(e.data)){var n,i=r.remove.length+1;for(a(t)?t.listeners+=i:t=d(e.elm,i),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&E(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else h(e.elm)}function T(e,t,n,r,i){var s,u,c,f,d=0,h=0,m=t.length-1,v=t[0],g=t[m],b=n.length-1,y=n[0],w=n[b],x=!i;while(d<=m&&h<=b)o(v)?v=t[++d]:o(g)?g=t[--m]:fa(v,y)?(M(v,y,r,n,h),v=t[++d],y=n[++h]):fa(g,w)?(M(g,w,r,n,b),g=t[--m],w=n[--b]):fa(v,w)?(M(v,w,r,n,b),x&&l.insertBefore(e,v.elm,l.nextSibling(g.elm)),v=t[++d],w=n[--b]):fa(g,y)?(M(g,y,r,n,h),x&&l.insertBefore(e,g.elm,v.elm),g=t[--m],y=n[++h]):(o(s)&&(s=ha(t,d,m)),u=a(y.key)?s[y.key]:D(y,t,d,m),o(u)?p(y,r,e,v.elm,!1,n,h):(c=t[u],fa(c,y)?(M(c,y,r,n,h),t[u]=void 0,x&&l.insertBefore(e,c.elm,v.elm)):p(y,r,e,v.elm,!1,n,h)),y=n[++h]);d>m?(f=o(n[b+1])?null:n[b+1].elm,k(e,f,n,h,b,r)):h>b&&O(t,d,m)}function D(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(a(o)&&fa(e,o))return i}}function M(e,t,n,i,u,c){if(e!==t){a(t.elm)&&a(i)&&(t=i[u]=_e(t));var f=t.elm=e.elm;if(s(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?P(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,h=t.data;a(h)&&a(d=h.hook)&&a(d=d.prepatch)&&d(e,t);var p=e.children,m=t.children;if(a(h)&&x(t)){for(d=0;d<r.update.length;++d)r.update[d](e,t);a(d=h.hook)&&a(d=d.update)&&d(e,t)}o(t.text)?a(p)&&a(m)?p!==m&&T(f,p,m,n,c):a(m)?(a(e.text)&&l.setTextContent(f,""),k(f,null,m,0,m.length-1,n)):a(p)?O(p,0,p.length-1):a(e.text)&&l.setTextContent(f,""):e.text!==t.text&&l.setTextContent(f,t.text),a(h)&&a(d=h.hook)&&a(d=d.postpatch)&&d(e,t)}}}function A(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var N=w("attrs,class,staticClass,staticStyle,key");function P(e,t,n,r){var i,o=t.tag,u=t.data,c=t.children;if(r=r||u&&u.pre,t.elm=e,s(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(u)&&(a(i=u.hook)&&a(i=i.init)&&i(t,!0),a(i=t.componentInstance)))return v(t,n),!0;if(a(o)){if(a(c))if(e.hasChildNodes())if(a(i=u)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,d=0;d<c.length;d++){if(!f||!P(f,c[d],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else y(t,c,n);if(a(u)){var h=!1;for(var p in u)if(!N(p)){h=!0,_(t,n);break}!h&&u["class"]&&xr(u["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!o(t)){var u=!1,c=[];if(o(e))u=!0,p(t,c);else{var d=a(e.nodeType);if(!d&&fa(e,t))M(e,t,c,null,null,i);else{if(d){if(1===e.nodeType&&e.hasAttribute(W)&&(e.removeAttribute(W),n=!0),s(n)&&P(e,t,c))return A(t,c,!0),e;e=f(e)}var h=e.elm,m=l.parentNode(h);if(p(t,c,h._leaveCb?null:m,l.nextSibling(h)),a(t.parent)){var v=t.parent,g=x(t);while(v){for(var b=0;b<r.destroy.length;++b)r.destroy[b](v);if(v.elm=t.elm,g){for(var y=0;y<r.create.length;++y)r.create[y](ca,v);var w=v.data.hook.insert;if(w.merged)for(var _=w.fns.slice(1),C=0;C<_.length;C++)_[C]()}else sa(v);v=v.parent}}a(m)?O([e],0,0):a(e.tag)&&S(e)}}return A(t,c,u),t.elm}a(e)&&S(e)}}var ma={create:va,update:va,destroy:function(e){va(e,ca)}};function va(e,t){(e.data.directives||t.data.directives)&&ga(e,t)}function ga(e,t){var n,r,i,o=e===ca,a=t===ca,s=ya(e.data.directives,e.context),u=ya(t.data.directives,t.context),c=[],l=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,i.oldArg=r.arg,xa(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(xa(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var f=function(){for(var n=0;n<c.length;n++)xa(c[n],"inserted",t,e)};o?Ft(t,"insert",f):f()}if(l.length&&Ft(t,"postpatch",(function(){for(var n=0;n<l.length;n++)xa(l[n],"componentUpdated",t,e)})),!o)for(n in s)u[n]||xa(s[n],"unbind",e,e,a)}var ba=Object.create(null);function ya(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++){if(r=e[n],r.modifiers||(r.modifiers=ba),i[wa(r)]=r,t._setupState&&t._setupState.__sfc){var o=r.def||Ai(t,"_setupState","v-"+r.name);r.def="function"===typeof o?{bind:o,update:o}:o}r.def=r.def||Ai(t.$options,"directives",r.name,!0)}return i}function wa(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function xa(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(ou){Fn(ou,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var _a=[aa,ma];function Ca(e,t){var n=t.componentOptions;if((!a(n)||!1!==n.Ctor.options.inheritAttrs)&&(!o(e.data.attrs)||!o(t.data.attrs))){var r,i,u,c=t.elm,l=e.data.attrs||{},f=t.data.attrs||{};for(r in(a(f.__ob__)||s(f._v_attr_proxy))&&(f=t.data.attrs=R({},f)),f)i=f[r],u=l[r],u!==i&&ka(c,r,i,t.data.pre);for(r in(ne||ie)&&f.value!==l.value&&ka(c,"value",f.value),l)o(f[r])&&(To(r)?c.removeAttributeNS(Eo,Do(r)):Co(r)||c.removeAttribute(r))}}function ka(e,t,n,r){r||e.tagName.indexOf("-")>-1?Sa(e,t,n):Oo(t)?Mo(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Co(t)?e.setAttribute(t,So(t,n)):To(t)?Mo(n)?e.removeAttributeNS(Eo,Do(t)):e.setAttributeNS(Eo,t,n):Sa(e,t,n)}function Sa(e,t,n){if(Mo(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Oa={create:Ca,update:Ca};function Ea(e,t){var n=t.elm,r=t.data,i=e.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=Ao(t),u=n._transitionClasses;a(u)&&(s=Io(s,Ro(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Ta,Da={create:Ea,update:Ea},Ma="__r",Aa="__c";function Na(e){if(a(e[Ma])){var t=ne?"change":"input";e[t]=[].concat(e[Ma],e[t]||[]),delete e[Ma]}a(e[Aa])&&(e.change=[].concat(e[Aa],e.change||[]),delete e[Aa])}function Pa(e,t,n){var r=Ta;return function i(){var o=t.apply(null,arguments);null!==o&&za(e,i,n,r)}}var Ia=Un&&!(se&&Number(se[1])<=53);function Ra(e,t,n,r){if(Ia){var i=Yr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ta.addEventListener(e,t,ce?{capture:n,passive:r}:n)}function za(e,t,n,r){(r||Ta).removeEventListener(e,t._wrapper||t,n)}function Ba(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ta=t.elm||e.elm,Na(n),$t(n,r,Ra,za,Pa,t.context),Ta=void 0}}var La,$a={create:Ba,update:Ba,destroy:function(e){return Ba(e,ca)}};function Fa(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,i=t.elm,u=e.data.domProps||{},c=t.data.domProps||{};for(n in(a(c.__ob__)||s(c._v_attr_proxy))&&(c=t.data.domProps=R({},c)),u)n in c||(i[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===u[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var l=o(r)?"":String(r);ja(i,l)&&(i.value=l)}else if("innerHTML"===n&&Fo(i.tagName)&&o(i.innerHTML)){La=La||document.createElement("div"),La.innerHTML="<svg>".concat(r,"</svg>");var f=La.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(f.firstChild)i.appendChild(f.firstChild)}else if(r!==u[n])try{i[n]=r}catch(ou){}}}}function ja(e,t){return!e.composing&&("OPTION"===e.tagName||Va(e,t)||Ha(e,t))}function Va(e,t){var n=!0;try{n=document.activeElement!==e}catch(ou){}return n&&e.value!==t}function Ha(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return y(n)!==y(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var Wa={create:Fa,update:Fa},Ua=S((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function qa(e){var t=Ga(e.style);return e.staticStyle?R(e.staticStyle,t):t}function Ga(e){return Array.isArray(e)?z(e):"string"===typeof e?Ua(e):e}function Ka(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=qa(i.data))&&R(r,n)}(n=qa(e.data))&&R(r,n);var o=e;while(o=o.parent)o.data&&(n=qa(o.data))&&R(r,n);return r}var Ya,Xa=/^--/,Ja=/\s*!important$/,Za=function(e,t,n){if(Xa.test(t))e.style.setProperty(t,n);else if(Ja.test(n))e.style.setProperty(M(t),n.replace(Ja,""),"important");else{var r=es(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Qa=["Webkit","Moz","ms"],es=S((function(e){if(Ya=Ya||document.createElement("div").style,e=E(e),"filter"!==e&&e in Ya)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Qa.length;n++){var r=Qa[n]+t;if(r in Ya)return r}}));function ts(e,t){var n=t.data,r=e.data;if(!(o(n.staticStyle)&&o(n.style)&&o(r.staticStyle)&&o(r.style))){var i,s,u=t.elm,c=r.staticStyle,l=r.normalizedStyle||r.style||{},f=c||l,d=Ga(t.data.style)||{};t.data.normalizedStyle=a(d.__ob__)?R({},d):d;var h=Ka(t,!0);for(s in f)o(h[s])&&Za(u,s,"");for(s in h)i=h[s],Za(u,s,null==i?"":i)}}var ns={create:ts,update:ts},rs=/\s+/;function is(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(rs).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function os(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(rs).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function as(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&R(t,ss(e.name||"v")),R(t,e),t}return"string"===typeof e?ss(e):void 0}}var ss=S((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),us=ee&&!re,cs="transition",ls="animation",fs="transition",ds="transitionend",hs="animation",ps="animationend";us&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fs="WebkitTransition",ds="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(hs="WebkitAnimation",ps="webkitAnimationEnd"));var ms=ee?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function vs(e){ms((function(){ms(e)}))}function gs(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),is(e,t))}function bs(e,t){e._transitionClasses&&_(e._transitionClasses,t),os(e,t)}function ys(e,t,n){var r=xs(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===cs?ds:ps,u=0,c=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++u>=a&&c()};setTimeout((function(){u<a&&c()}),o+1),e.addEventListener(s,l)}var ws=/\b(transform|all)(,|$)/;function xs(e,t){var n,r=window.getComputedStyle(e),i=(r[fs+"Delay"]||"").split(", "),o=(r[fs+"Duration"]||"").split(", "),a=_s(i,o),s=(r[hs+"Delay"]||"").split(", "),u=(r[hs+"Duration"]||"").split(", "),c=_s(s,u),l=0,f=0;t===cs?a>0&&(n=cs,l=a,f=o.length):t===ls?c>0&&(n=ls,l=c,f=u.length):(l=Math.max(a,c),n=l>0?a>c?cs:ls:null,f=n?n===cs?o.length:u.length:0);var d=n===cs&&ws.test(r[fs+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function _s(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Cs(t)+Cs(e[n])})))}function Cs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ks(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=as(e.data.transition);if(!o(r)&&!a(n._enterCb)&&1===n.nodeType){var i=r.css,s=r.type,u=r.enterClass,c=r.enterToClass,d=r.enterActiveClass,h=r.appearClass,p=r.appearToClass,m=r.appearActiveClass,v=r.beforeEnter,g=r.enter,b=r.afterEnter,w=r.enterCancelled,x=r.beforeAppear,_=r.appear,C=r.afterAppear,k=r.appearCancelled,S=r.duration,O=Nr,E=Nr.$vnode;while(E&&E.parent)O=E.context,E=E.parent;var T=!O._isMounted||!e.isRootInsert;if(!T||_||""===_){var D=T&&h?h:u,M=T&&m?m:d,A=T&&p?p:c,N=T&&x||v,P=T&&l(_)?_:g,I=T&&C||b,R=T&&k||w,z=y(f(S)?S.enter:S);0;var B=!1!==i&&!re,L=Es(P),$=n._enterCb=V((function(){B&&(bs(n,A),bs(n,M)),$.cancelled?(B&&bs(n,D),R&&R(n)):I&&I(n),n._enterCb=null}));e.data.show||Ft(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),P&&P(n,$)})),N&&N(n),B&&(gs(n,D),gs(n,M),vs((function(){bs(n,D),$.cancelled||(gs(n,A),L||(Os(z)?setTimeout($,z):ys(n,s,$)))}))),e.data.show&&(t&&t(),P&&P(n,$)),B||L||$()}}}function Ss(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=as(e.data.transition);if(o(r)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var i=r.css,s=r.type,u=r.leaveClass,c=r.leaveToClass,l=r.leaveActiveClass,d=r.beforeLeave,h=r.leave,p=r.afterLeave,m=r.leaveCancelled,v=r.delayLeave,g=r.duration,b=!1!==i&&!re,w=Es(h),x=y(f(g)?g.leave:g);0;var _=n._leaveCb=V((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(bs(n,c),bs(n,l)),_.cancelled?(b&&bs(n,u),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(C):C()}function C(){_.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),b&&(gs(n,u),gs(n,l),vs((function(){bs(n,u),_.cancelled||(gs(n,c),w||(Os(x)?setTimeout(_,x):ys(n,s,_)))}))),h&&h(n,_),b||w||_())}}function Os(e){return"number"===typeof e&&!isNaN(e)}function Es(e){if(o(e))return!1;var t=e.fns;return a(t)?Es(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ts(e,t){!0!==t.data.show&&ks(t)}var Ds=ee?{create:Ts,activate:Ts,remove:function(e,t){!0!==e.data.show?Ss(e,t):t()}}:{},Ms=[Oa,Da,$a,Wa,ns,Ds],As=Ms.concat(_a),Ns=pa({nodeOps:oa,modules:As});re&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Fs(e,"input")}));var Ps={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Ft(n,"postpatch",(function(){Ps.componentUpdated(e,t,n)})):Is(e,t,n.context),e._vOptions=[].map.call(e.options,Bs)):("textarea"===n.tag||Uo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Ls),e.addEventListener("compositionend",$s),e.addEventListener("change",$s),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Is(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Bs);if(i.some((function(e,t){return!F(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return zs(e,i)})):t.value!==t.oldValue&&zs(t.value,i);o&&Fs(e,"change")}}}};function Is(e,t,n){Rs(e,t,n),(ne||ie)&&setTimeout((function(){Rs(e,t,n)}),0)}function Rs(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=e.options.length;s<u;s++)if(a=e.options[s],i)o=j(r,Bs(a))>-1,a.selected!==o&&(a.selected=o);else if(F(Bs(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function zs(e,t){return t.every((function(t){return!F(t,e)}))}function Bs(e){return"_value"in e?e._value:e.value}function Ls(e){e.target.composing=!0}function $s(e){e.target.composing&&(e.target.composing=!1,Fs(e.target,"input"))}function Fs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function js(e){return!e.componentInstance||e.data&&e.data.transition?e:js(e.componentInstance._vnode)}var Vs={bind:function(e,t,n){var r=t.value;n=js(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ks(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=js(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?ks(n,(function(){e.style.display=e.__vOriginalDisplay})):Ss(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Hs={model:Ps,show:Vs},Ws={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 Us(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Us(Nn(t.children)):e}function qs(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[E(r)]=i[r];return t}function Gs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Ks(e){while(e=e.parent)if(e.data.transition)return!0}function Ys(e,t){return t.key===e.key&&t.tag===e.tag}var Xs=function(e){return e.tag||fn(e)},Js=function(e){return"show"===e.name},Zs={name:"transition",props:Ws,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Xs),n.length)){0;var r=this.mode;0;var i=n[0];if(Ks(this.$vnode))return i;var o=Us(i);if(!o)return i;if(this._leaving)return Gs(e,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:c(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=qs(this),u=this._vnode,l=Us(u);if(o.data.directives&&o.data.directives.some(Js)&&(o.data.show=!0),l&&l.data&&!Ys(o,l)&&!fn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=R({},s);if("out-in"===r)return this._leaving=!0,Ft(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Gs(e,i);if("in-out"===r){if(fn(o))return u;var d,h=function(){d()};Ft(s,"afterEnter",h),Ft(s,"enterCancelled",h),Ft(f,"delayLeave",(function(e){d=e}))}}return i}}},Qs=R({tag:String,moveClass:String},Ws);delete Qs.mode;var eu={props:Qs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Pr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=qs(this),s=0;s<i.length;s++){var u=i[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(r){var c=[],l=[];for(s=0;s<r.length;s++){u=r[s];u.data.transition=a,u.data.pos=u.elm.getBoundingClientRect(),n[u.key]?c.push(u):l.push(u)}this.kept=e(t,null,c),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(tu),e.forEach(nu),e.forEach(ru),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;gs(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ds,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ds,e),n._moveCb=null,bs(n,t))})}})))},methods:{hasMove:function(e,t){if(!us)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){os(n,e)})),is(n,t),n.style.display="none",this.$el.appendChild(n);var r=xs(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function tu(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function nu(e){e.data.newPos=e.elm.getBoundingClientRect()}function ru(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}var iu={Transition:Zs,TransitionGroup:eu};io.config.mustUseProp=_o,io.config.isReservedTag=jo,io.config.isReservedAttr=wo,io.config.getTagNamespace=Vo,io.config.isUnknownElement=Wo,R(io.options.directives,Hs),R(io.options.components,iu),io.prototype.__patch__=ee?Ns:B,io.prototype.$mount=function(e,t){return e=e&&ee?qo(e):void 0,zr(this,e,t)},ee&&setTimeout((function(){G.devtools&&de&&de.emit("init",io)}),0)}.call(this,n("c8ba"))},"2b79":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("df2f"),n("5980"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,u=r.keySize,c=r.iterations;while(s.length<u){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var l=1;l<c;l++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*u,a}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF}))},"2ba4":function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"2bb5":function(e,t,n){"use strict";t.__esModule=!0;n("8122");t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),o=n("06cf").f,a=n("50c4"),s=n("577e"),u=n("5a34"),c=n("1d80"),l=n("ab13"),f=n("c430"),d=i("".slice),h=Math.min,p=l("startsWith"),m=!f&&!p&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!m&&!p},{startsWith:function(e){var t=s(c(this));u(e);var n=a(h(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return d(t,n,n+r.length)===r}})},"2cf4":function(e,t,n){"use strict";var r,i,o,a,s=n("cfe9"),u=n("2ba4"),c=n("0366"),l=n("1626"),f=n("1a2d"),d=n("d039"),h=n("1be4"),p=n("f36a"),m=n("cc12"),v=n("d6d6"),g=n("52c8"),b=n("9adc"),y=s.setImmediate,w=s.clearImmediate,x=s.process,_=s.Dispatch,C=s.Function,k=s.MessageChannel,S=s.String,O=0,E={},T="onreadystatechange";d((function(){r=s.location}));var D=function(e){if(f(E,e)){var t=E[e];delete E[e],t()}},M=function(e){return function(){D(e)}},A=function(e){D(e.data)},N=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};y&&w||(y=function(e){v(arguments.length,1);var t=l(e)?e:C(e),n=p(arguments,1);return E[++O]=function(){u(t,void 0,n)},i(O),O},w=function(e){delete E[e]},b?i=function(e){x.nextTick(M(e))}:_&&_.now?i=function(e){_.now(M(e))}:k&&!g?(o=new k,a=o.port2,o.port1.onmessage=A,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(N)?(i=N,s.addEventListener("message",A,!1)):i=T in m("script")?function(e){h.appendChild(m("script"))[T]=function(){h.removeChild(this),D(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:y,clear:w}},"2d33":function(e,t,n){n("303c")},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f62":function(e,t,n){"use strict";(function(e){
  16. /*!
  17. * vuex v3.6.2
  18. * (c) 2021 Evan You
  19. * @license MIT
  20. */
  21. function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return P}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function u(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=u(e[n],t)})),r}function c(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function l(e){return null!==e&&"object"===typeof e}function f(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){c(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,p);var m=function(e){this.register([],e,!1)};function v(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;v(e.concat(r),t.getChild(r),n.modules[r])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){v([],this.root,e)},m.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&c(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g;var b=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&N(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,u=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return u.call(i,e,t,n)},this.strict=r;var c=this._modules.root.state;C(this,c,[],this._modules.root),_(this,c),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:g.config.devtools;l&&a(this)},y={state:{configurable:!0}};function w(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function x(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;C(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};c(i,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=g.config.silent;g.config.silent=!0,e._vm=new g({data:{$$state:t},computed:o}),g.config.silent=a,e.strict&&D(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),g.nextTick((function(){return r.$destroy()})))}function C(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=M(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){g.set(s,u,r.state)}))}var c=r.context=k(e,a,n);r.forEachMutation((function(t,n){var r=a+n;O(e,r,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;E(e,r,i,c)})),r.forEachGetter((function(t,n){var r=a+n;T(e,r,t,c)})),r.forEachChild((function(r,o){C(e,t,n.concat(o),r,i)}))}function k(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=A(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:r?e.commit:function(n,r,i){var o=A(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return S(e,t)}},state:{get:function(){return M(e.state,n)}}}),i}function S(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function O(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function E(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return f(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function T(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function D(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function M(e,t){return t.reduce((function(e,t){return e[t]}),e)}function A(e,t,n){return l(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function N(e){g&&e===g||(g=e,r(g))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},b.prototype.commit=function(e,t,n){var r=this,i=A(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},b.prototype.dispatch=function(e,t){var n=this,r=A(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(c){0}t(e)}))}))}},b.prototype.subscribe=function(e,t){return w(e,this._subscribers,t)},b.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return w(n,this._actionSubscribers,t)},b.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},b.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},b.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),C(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},b.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=M(t.state,e.slice(0,-1));g.delete(n,e[e.length-1])})),x(this)},b.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},b.prototype.hotUpdate=function(e){this._modules.update(e),x(this,!0)},b.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(b.prototype,y);var P=F((function(e,t){var n={};return L(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=j(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),I=F((function(e,t){var n={};return L(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=j(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=F((function(e,t){var n={};return L(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||j(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),z=F((function(e,t){var n={};return L(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=j(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),B=function(e){return{mapState:P.bind(null,e),mapGetters:R.bind(null,e),mapMutations:I.bind(null,e),mapActions:z.bind(null,e)}};function L(e){return $(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function $(e){return Array.isArray(e)||l(e)}function F(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function j(e,t,n){var r=e._modulesNamespaceMap[n];return r}function V(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var c=e.logActions;void 0===c&&(c=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var f=u(e.state);"undefined"!==typeof l&&(s&&e.subscribe((function(e,o){var a=u(o);if(n(e,f,a)){var s=U(),c=i(e),d="mutation "+e.type+s;H(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),W(l)}f=a})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var r=U(),i=a(e),s="action "+e.type+r;H(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),W(l)}})))}}function H(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function W(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function U(){var e=new Date;return" @ "+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)}function q(e,t){return new Array(t+1).join(e)}function G(e,t){return q("0",t-e.toString().length)+e}var K={Store:b,install:N,version:"3.6.2",mapState:P,mapMutations:I,mapGetters:R,mapActions:z,createNamespacedHelpers:B,createLogger:V};t["a"]=K}).call(this,n("c8ba"))},"2f9a":function(e,t){e.exports=function(){}},"301c":function(e,t,n){n("e198")("asyncIterator")},"303c":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");function t(){e.add("colorpicker",(function(){}))}t()})()},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},3252:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,a=n.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e}))},3397:function(e,t,n){var r=n("7a41");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3410:function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},3452:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"),n("af5b"))})(0,(function(e){return e}))},"34de":function(e,t,n){n("09cf")},3511:function(e,t,n){"use strict";var r=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw r("Maximum allowed index exceeded");return e}},3529:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),u=n("2266"),c=n("5eed");r({target:"Promise",stat:!0,forced:c},{race:function(e){var t=this,n=a.f(t),r=n.reject,c=s((function(){var a=o(t.resolve);u(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},"35a1":function(e,t,n){"use strict";var r=n("f5df"),i=n("dc4a"),o=n("7234"),a=n("3f8c"),s=n("b622"),u=s("iterator");e.exports=function(e){if(!o(e))return i(e,u)||i(e,"@@iterator")||a[r(e)]}},"37e8":function(e,t,n){"use strict";var r=n("83ab"),i=n("aed9"),o=n("9bf2"),a=n("825a"),s=n("fc6a"),u=n("df75");t.f=r&&!i?Object.defineProperties:function(e,t){a(e);var n,r=s(t),i=u(t),c=i.length,l=0;while(c>l)o.f(e,n=i[l++],r[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.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}},e}},"38ba":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("2b79"))})(0,(function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,u=(s.Utf8,s.Base64),c=n.algo,l=c.EvpKDF,f=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?C:w}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),d=(r.StreamCipher=f.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),h=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=h.extend();function n(e,n,r){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),e}(),m=n.pad={},v=m.Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var u=o.create(a,r);e.concat(u)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},g=(r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:p,padding:v}),reset:function(){var e;f.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),b=n.format={},y=b.OpenSSL={stringify:function(e){var t,n=e.ciphertext,r=e.salt;return t=r?o.create([1398893684,1701076831]).concat(r).concat(n):n,t.toString(u)},parse:function(e){var t,n=u.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return g.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=e.createDecryptor(n,r).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),x=n.kdf={},_=x.OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=l.create({keySize:t+n,hasher:i}).compute(e,r);else var a=l.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,g.create({key:a,iv:s,salt:r})}},C=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);r.iv=i.iv;var o=w.decrypt.call(this,e,t,i.key,r);return o}})}()}))},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(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 e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"393a":function(e,t,n){"use strict";var r=n("e444"),i=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),u=n("26dd"),c=n("92f0"),l=n("ce7a"),f=n("cc15")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,b,y,w){u(n,t,g);var x,_,C,k=function(e){if(!d&&e in T)return T[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",O=b==m,E=!1,T=e.prototype,D=T[f]||T[h]||b&&T[b],M=D||k(b),A=b?O?k("entries"):M:void 0,N="Array"==t&&T.entries||D;if(N&&(C=l(N.call(new e)),C!==Object.prototype&&C.next&&(c(C,S,!0),r||"function"==typeof C[f]||a(C,f,v))),O&&D&&D.name!==m&&(E=!0,M=function(){return D.call(this)}),r&&!w||!d&&!E&&T[f]||a(T,f,M),s[t]=M,s[S]=v,b)if(x={values:O?M:k(m),keys:y?M:k(p),entries:A},w)for(_ in x)_ in T||o(T,_,x[_]);else i(i.P+i.F*(d||E),t,x);return x}},"39ad":function(e,t,n){var r=n("6ca1"),i=n("d16a"),o=n("9d11");e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},"3a34":function(e,t,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a9b":function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},"3bbe":function(e,t,n){"use strict";var r=n("1787"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||u(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function u(e){return e.$$typeof===s}function c(e){return Array.isArray(e)?[]:{}}function l(e,t){var n=t&&!0===t.clone;return n&&r(e)?h(c(e),e,t):e}function f(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=l(t,n):r(t)?i[o]=h(e[o],t,n):-1===e.indexOf(t)&&i.push(l(t,n))})),i}function d(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=l(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=h(e[o],t[o],n):i[o]=l(t[o],n)})),i}function h(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:f},a=r===i;if(a){if(r){var s=o.arrayMerge||f;return s(e,t,n)}return d(e,t,n)}return l(t,n)}h.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return h(e,n,t)}))};var p=h;e.exports=p},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),a=n("c6d2"),s=n("4754"),u="String Iterator",c=o.set,l=o.getterFor(u);a(String,"String",(function(e){c(this,{type:u,string:i(e),index:0})}),(function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},"3d5a":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.StreamCipher,i=t.algo,o=[],a=[],s=[],u=i.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=u>>>16|4294901760&l,d=l<<16|65535&u;r[0]^=u,r[1]^=f,r[2]^=l,r[3]^=d,r[4]^=u,r[5]^=f,r[6]^=l,r[7]^=d;for(i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,o=r>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=r._createHelper(u)}(),e.RabbitLegacy}))},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(e,t,n){"use strict";e.exports={}},4010:function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var r=n("6dd8"),i=a(r),o=n("9619");function a(e){return e&&e.__esModule?e:{default:e}}var s="undefined"===typeof window,u=function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){s||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new i.default((0,o.debounce)(16,u)),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"408a":function(e,t,n){"use strict";var r=n("e330");e.exports=r(1..valueOf)},"40d5":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"417f":function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],u="@@clickoutsideContext",c=void 0,l=0;function f(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||e.contains(r.target)||e.contains(i.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[u].methodName&&n.context[e[u].methodName]?n.context[e[u].methodName]():e[u].bindingFn&&e[u].bindingFn())}}!i.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return c=e})),!i.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[u].documentHandler(e,c)}))})),t.default={bind:function(e,t,n){s.push(e);var r=l++;e[u]={id:r,documentHandler:f(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[u].documentHandler=f(e,t,n),e[u].methodName=t.expression,e[u].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][u].id===e[u].id){s.splice(n,1);break}delete e[u]}}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},"41f8":function(e,t,n){"use strict";t.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=o;var i=n("8122");function o(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":r(e))&&(0,i.hasOwn)(e,"componentOptions")}},4237:function(e,t,n){n("be7f")},"428f":function(e,t,n){"use strict";var r=n("cfe9");e.exports=r},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("c6b6"),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},"44d2":function(e,t,n){"use strict";var r=n("b622"),i=n("7c73"),o=n("9bf2").f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},"44e7":function(e,t,n){"use strict";var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},4625:function(e,t,n){"use strict";var r=n("c6b6"),i=n("e330");e.exports=function(e){if("Function"===r(e))return i(e)}},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("861d"),s=n("50c4"),u=n("577e"),c=n("1d80"),l=n("dc4a"),f=n("8aa5"),d=n("14c3");i("match",(function(e,t,n){return[function(t){var n=c(this),i=a(t)?l(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](u(n))},function(e){var r=o(this),i=u(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return d(r,i);var c=r.unicode;r.lastIndex=0;var l,h=[],p=0;while(null!==(l=d(r,i))){var m=u(l[0]);h[p]=m,""===m&&(r.lastIndex=f(i,s(r.lastIndex),c)),p++}return 0===p?null:h}]}))},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},"46c4":function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},4726:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},15:function(e,t){e.exports=n("14e9")},18:function(e,t){e.exports=n("dcdc")},21:function(e,t){e.exports=n("d397")},26:function(e,t){e.exports=n("92fa")},3:function(e,t){e.exports=n("8122")},31:function(e,t){e.exports=n("2a5e")},41:function(e,t){e.exports=n("e452")},52:function(e,t){e.exports=n("f494")},6:function(e,t){e.exports=n("6b7c")},61:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},i=[];r._withStripped=!0;var o,a,s=n(26),u=n.n(s),c=n(15),l=n.n(c),f=n(18),d=n.n(f),h=n(52),p=n.n(h),m=n(3),v=function(e){return e.stopPropagation()},g={inject:["panel"],components:{ElCheckbox:d.a,ElRadio:p.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple,a=i.checkStrictly;!a&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly,o=r.multiple;return o?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=v),e("el-checkbox",u()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(m["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:v}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn,i=r?r({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,c=this.nodeId,l=s.expandTrigger,f=s.checkStrictly,d=s.multiple,h=!f&&a,p={on:{}};return"click"===l?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||f||d||(p.on.click=this.handleCheckChange),e("li",u()([{attrs:{role:"menuitem",id:c,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":f,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":h}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},b=g,y=n(0),w=Object(y["a"])(b,o,a,!1,null,null,null);w.options.__file="packages/cascader-panel/src/cascader-node.vue";var x,_,C=w.exports,k=n(6),S=n.n(k),O={name:"ElCascaderMenu",mixins:[S.a],inject:["panel"],components:{ElScrollbar:l.a,CascaderNode:C},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(m["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=e.clientX-o,s=this.$el,u=s.offsetWidth,c=s.offsetHeight,l=t.offsetTop,f=l+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+l+" L"+u+" 0 V"+l+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+f+" L"+u+" "+c+" V"+f+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return e("cascader-node",u()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":o,"aria-owns":o?t:null}},r]))}));return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",u()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},E=O,T=Object(y["a"])(E,x,_,!1,null,null,null);T.options.__file="packages/cascader-panel/src/cascader-menu.vue";var D=T.exports,M=n(21),A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var P=0,I=function(){function e(t,n,r){N(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=P++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new e(r,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(m["isEqual"])(e,t)})):Object(m["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(m["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(m["capitalize"])(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},A(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(M["isDef"])(e[a])?e[a]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),R=I;function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var B=function e(t,n){return t.reduce((function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},L=function(){function e(t,n){z(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(m["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new R(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new R(e,this.config,t),r=t?t.children:this.nodes;r.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(m["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:B(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(m["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),$=L,F=n(9),j=n.n(F),V=n(41),H=n.n(V),W=n(31),U=n.n(W),q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G=H.a.keys,K={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:m["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Y=function(e){return!e.getAttribute("aria-owns")},X=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),i=Array.prototype.indexOf.call(r,e);return r[i+t]||null}return null},J=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},Z=function(e){e&&(e.focus(),!Y(e)&&e.click())},Q=function(e){if(e){var t=e.querySelector("input");t?t.click():Y(e)&&e.click()}},ee={name:"ElCascaderPanel",components:{CascaderMenu:D},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return j()(q({},K),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(e){Object(m["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(m["isEmpty"])(t)?this.lazyLoad():(this.store=new $(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(m["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,r=n.emitPath;return!(!t&&!r)&&Object(m["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(m["isEmpty"])(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?i[0]:i,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var u=r.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(u)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,r=n?Object(m["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=r.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case G.up:var r=X(t,-1);Z(r);break;case G.down:var i=X(t,1);Z(i);break;case G.left:var o=this.$refs.menu[J(t)-1];if(o){var a=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Z(a)}break;case G.right:var s=this.$refs.menu[J(t)+1];if(s){var u=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');Z(u)}break;case G.enter:Q(t);break;case G.esc:case G.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),o.push(e.children)),this.activePath=i,this.menus=o,!t){var a=i.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(m["valueEquals"])(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new $([],r),this.menus=[this.store.getNodes()]),e.loading=!0;var i=function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(e){return e[a]===o})).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,(function(){n.handleExpand(u)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)};r.lazyLoad(e,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");U()(n,r)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var r=this.getFlattedNodes(e);return r.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},te=ee,ne=Object(y["a"])(te,r,i,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var re=ne.exports;re.install=function(e){e.component(re.name,re)};t["default"]=re},9:function(e,t){e.exports=n("7f4d")}})},4738:function(e,t,n){"use strict";var r=n("cfe9"),i=n("d256"),o=n("1626"),a=n("94ca"),s=n("8925"),u=n("b622"),c=n("8558"),l=n("c430"),f=n("1212"),d=i&&i.prototype,h=u("species"),p=!1,m=o(r.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(l&&(!d["catch"]||!d["finally"]))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};if(o[h]=r,p=n.then((function(){}))instanceof r,!p)return!0}return!t&&("BROWSER"===c||"DENO"===c)&&!m}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:p}},4754:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},4840:function(e,t,n){"use strict";var r=n("825a"),i=n("5087"),o=n("7234"),a=n("b622"),s=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},"485a":function(e,t,n){"use strict";var r=n("c65b"),i=n("1626"),o=n("861d"),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=n("f0d9"),i=f(r),o=n("2b0e"),a=f(o),s=n("3c4e"),u=f(s),c=n("9d7e"),l=f(c);function f(e){return e&&e.__esModule?e:{default:e}}var d=(0,l.default)(a.default),h=i.default,p=!1,m=function(){var e=Object.getPrototypeOf(this||a.default).$t;if("function"===typeof e&&a.default.locale)return p||(p=!0,a.default.locale(a.default.config.lang,(0,u.default)(h,a.default.locale(a.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},v=t.t=function(e,t){var n=m.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=e.split("."),i=h,o=0,a=r.length;o<a;o++){var s=r[o];if(n=i[s],o===a-1)return d(n,t);if(!n)return"";i=n}return""},g=t.use=function(e){h=e||h},b=t.i18n=function(e){m=e||m};t.default={use:g,t:v,i18n:b}},"498a":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["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(i,(function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):"undefined"!==typeof t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):"undefined"!==typeof e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),u=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(u,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])})),n}},"4ae1":function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("0538"),s=n("5087"),u=n("825a"),c=n("861d"),l=n("7c73"),f=n("d039"),d=i("Reflect","construct"),h=Object.prototype,p=[].push,m=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),v=!f((function(){d((function(){}))})),g=m||v;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(v&&!m)return d(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(p,r,t),new(o(a,e,r))}var i=n.prototype,f=l(c(i)?i:h),g=o(e,f,t);return c(g)?g:f}})},"4b26":function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,u=!1,c=void 0,l=function(){if(!i.default.prototype.$isServer){var e=d.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),d.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),e}},f={},d={modalFade:!0,getInstance:function(e){return f[e]},register:function(e,t){e&&t&&(f[e]=t)},deregister:function(e){e&&(f[e]=null,delete f[e])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var e=d.modalStack[d.modalStack.length-1];if(e){var t=d.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,a){if(!i.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=a;for(var u=this.modalStack,c=0,f=u.length;c<f;c++){var d=u[c];if(d.id===e)return}var h=l();if((0,o.addClass)(h,"v-modal"),this.modalFade&&!s&&(0,o.addClass)(h,"v-modal-enter"),r){var p=r.trim().split(/\s+/);p.forEach((function(e){return(0,o.addClass)(h,e)}))}setTimeout((function(){(0,o.removeClass)(h,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(h):document.body.appendChild(h),t&&(h.style.zIndex=t),h.tabIndex=0,h.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=l();if(t.length>0){var r=t[t.length-1];if(r.id===e){if(r.modalClass){var i=r.modalClass.trim().split(/\s+/);i.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return u||(c=c||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,u=!0),c},set:function(e){c=e}});var h=function(){if(!i.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;var t=d.getInstance(e.id);return t}};i.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=h();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=d},"4b8b":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"4ba9":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}});return t.Decryptor=n,t}(),e.mode.OFB}))},"4d20":function(e,t,n){var r=n("1917"),i=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),u=n("faf5"),c=Object.getOwnPropertyDescriptor;t.f=n("0bad")?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},"4d64":function(e,t,n){"use strict";var r=n("fc6a"),i=n("23cb"),o=n("07fa"),a=function(e){return function(t,n,a){var s=r(t),u=o(s);if(0===u)return!e&&-1;var c,l=i(a,u);if(e&&n!==n){while(u>l)if(c=s[l++],c!==c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d88":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("7b0b"),a=n("9bdd"),s=n("e95a"),u=n("68ee"),c=n("07fa"),l=n("8418"),f=n("9a1f"),d=n("35a1"),h=Array;e.exports=function(e){var t=o(e),n=u(this),p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m;v&&(m=r(m,p>2?arguments[2]:void 0));var g,b,y,w,x,_,C=d(t),k=0;if(!C||this===h&&s(C))for(g=c(t),b=n?new this(g):h(g);g>k;k++)_=v?m(t[k],k):t[k],l(b,k,_);else for(b=n?new this:[],w=f(t,C),x=w.next;!(y=i(x,w)).done;k++)_=v?a(w,m,[y.value,k],!0):y.value,l(b,k,_);return b.length=k,b}},"4e4b":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=62)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},12:function(e,t){e.exports=n("417f")},15:function(e,t){e.exports=n("14e9")},16:function(e,t){e.exports=n("4010")},19:function(e,t){e.exports=n("0e15")},21:function(e,t){e.exports=n("d397")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},31:function(e,t){e.exports=n("2a5e")},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":u(e))&&"object"===("undefined"===typeof t?"undefined":u(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},l=c,f=n(0),d=Object(f["a"])(l,r,i,!1,null,null,null);d.options.__file="packages/select/src/option.vue";t["a"]=d.exports},38:function(e,t){e.exports=n("8bbc")},4:function(e,t){e.exports=n("d010")},5:function(e,t){e.exports=n("e974")},6:function(e,t){e.exports=n("6b7c")},62:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),u=n.n(s),c=n(6),l=n.n(c),f=n(10),d=n.n(f),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},p=[];h._withStripped=!0;var m=n(5),v=n.n(m),g={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[v.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},b=g,y=n(0),w=Object(y["a"])(b,h,p,!1,null,null,null);w.options.__file="packages/select/src/select-dropdown.vue";var x=w.exports,_=n(33),C=n(38),k=n.n(C),S=n(15),O=n.n(S),E=n(19),T=n.n(E),D=n(12),M=n.n(D),A=n(16),N=n(31),P=n.n(N),I=n(3),R={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},z=n(21),B={mixins:[a.a,l.a,u()("reference"),R],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(I["isIE"])()&&!Object(I["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:d.a,ElSelectMenu:x,ElOption:_["a"],ElTag:k.a,ElScrollbar:O.a},directives:{Clickoutside:M.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(I["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(z["isKorean"])(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");P()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(I["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(I["getValueByPath"])(a.value,this.valueKey)===Object(I["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var u=n||r||i?"":String(e),c={value:e,currentLabel:u};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,i=-1;return e.some((function(e,n){return Object(I["getValueByPath"])(e,r)===Object(I["getValueByPath"])(t,r)&&(i=n,!0)})),i}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(I["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=T()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=T()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(A["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},r=t.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(A["removeResizeListener"])(this.$el,this.handleResize)}},L=B,$=Object(y["a"])(L,r,i,!1,null,null,null);$.options.__file="packages/select/src/select.vue";var F=$.exports;F.install=function(e){e.component(F.name,F)};t["default"]=F}})},"4e71":function(e,t,n){n("e198")("observable")},"4ea8":function(e,t,n){n("cdd9")},"4ebc":function(e,t,n){var r=n("4d88");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"4fad":function(e,t,n){"use strict";var r=n("d039"),i=n("861d"),o=n("c6b6"),a=n("d86b"),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!i(e)&&((!a||"ArrayBuffer"!==o(e))&&(!s||s(e)))}:s},5087:function(e,t,n){"use strict";var r=n("68ee"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},"50c4":function(e,t,n){"use strict";var r=n("5926"),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},"511f":function(e,t,n){n("0b99"),n("658f"),e.exports=n("fcd4").f("iterator")},5128:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=n("2b0e"),i=d(r),o=n("7f4d"),a=d(o),s=n("4b26"),u=d(s),c=n("e62d"),l=d(c),f=n("5924");function d(e){return e&&e.__esModule?e:{default:e}}var h=1,p=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+h++,u.default.register(this._popupId,this)},beforeDestroy:function(){u.default.deregister(this._popupId),u.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,i.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(u.default.zIndex=r),n&&(this._closing&&(u.default.closeModal(this._popupId),this._closing=!1),u.default.openModal(this._popupId,u.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,f.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,f.getStyle)(document.body,"paddingRight"),10)),p=(0,l.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,f.getStyle)(document.body,"overflowY");p>0&&(i||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,f.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=u.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){u.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,f.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=u.default},"512c":function(e,t,n){var r=n("ef08"),i=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),u="prototype",c=function(e,t,n){var l,f,d,h=e&c.F,p=e&c.G,m=e&c.S,v=e&c.P,g=e&c.B,b=e&c.W,y=p?i:i[t]||(i[t]={}),w=y[u],x=p?r:m?r[t]:(r[t]||{})[u];for(l in p&&(n=t),n)f=!h&&x&&void 0!==x[l],f&&s(y,l)||(d=f?x[l]:n[l],y[l]=p&&"function"!=typeof x[l]?n[l]:g&&f?o(d,r):b&&x[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((y.virtual||(y.virtual={}))[l]=d,e&c.R&&w&&!w[l]&&a(w,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"51eb":function(e,t,n){"use strict";var r=n("825a"),i=n("485a"),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"52c8":function(e,t,n){"use strict";var r=n("b5db");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),u=n("825a"),c=n("1626"),l=n("861d"),f=n("5926"),d=n("50c4"),h=n("577e"),p=n("1d80"),m=n("8aa5"),v=n("dc4a"),g=n("0cb2"),b=n("14c3"),y=n("b622"),w=y("replace"),x=Math.max,_=Math.min,C=o([].concat),k=o([].push),S=o("".indexOf),O=o("".slice),E=function(e){return void 0===e?e:String(e)},T=function(){return"$0"==="a".replace(/./,"$0")}(),D=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),M=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));a("replace",(function(e,t,n){var o=D?"$":"$0";return[function(e,n){var r=p(this),o=l(e)?v(e,w):void 0;return o?i(o,e,r,n):i(t,h(r),e,n)},function(e,i){var a=u(this),s=h(e);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var l=n(t,a,s,i);if(l.done)return l.value}var p=c(i);p||(i=h(i));var v,y=a.global;y&&(v=a.unicode,a.lastIndex=0);var w,T=[];while(1){if(w=b(a,s),null===w)break;if(k(T,w),!y)break;var D=h(w[0]);""===D&&(a.lastIndex=m(s,d(a.lastIndex),v))}for(var M="",A=0,N=0;N<T.length;N++){w=T[N];for(var P,I=h(w[0]),R=x(_(f(w.index),s.length),0),z=[],B=1;B<w.length;B++)k(z,E(w[B]));var L=w.groups;if(p){var $=C([I],z,R,s);void 0!==L&&k($,L),P=h(r(i,void 0,$))}else P=g(I,s,R,z,L,i);R>=A&&(M+=O(s,A,R)+P,A=R+I.length)}return M+O(s,A)}]}),!M||!T||D)},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}},5488:function(e,t,n){"use strict";t.__esModule=!0;var r=n("5924");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e)}return e.prototype.beforeEnter=function(e){(0,r.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,r.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t.default={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children,r={on:new o};return e("transition",r,n)}}},5524:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a4d3"),n("4de4"),n("14d9"),n("e9f5"),n("910d"),n("7d54"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("159b");var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5692:function(e,t,n){"use strict";var r=n("c6cd");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},"56ef":function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},"577e":function(e,t,n){"use strict";var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},"57b9":function(e,t,n){"use strict";var r=n("c65b"),i=n("d066"),o=n("b622"),a=n("cb2d");e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},5858:function(e,t,n){"use strict";(function(e,r){var i,o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};
  22. /**
  23. * @license
  24. * Lodash <https://lodash.com/>
  25. * Copyright JS Foundation and other contributors <https://js.foundation/>
  26. * Released under MIT license <https://lodash.com/license>
  27. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  28. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  29. */(function(){var a,s="4.17.10",u=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,m=2,v=4,g=1,b=2,y=1,w=2,x=4,_=8,C=16,k=32,S=64,O=128,E=256,T=512,D=30,M="...",A=800,N=16,P=1,I=2,R=3,z=1/0,B=9007199254740991,L=17976931348623157e292,$=NaN,F=4294967295,j=F-1,V=F>>>1,H=[["ary",O],["bind",y],["bindKey",w],["curry",_],["curryRight",C],["flip",T],["partial",k],["partialRight",S],["rearg",E]],W="[object Arguments]",U="[object Array]",q="[object AsyncFunction]",G="[object Boolean]",K="[object Date]",Y="[object DOMException]",X="[object Error]",J="[object Function]",Z="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",ie="[object Proxy]",oe="[object RegExp]",ae="[object Set]",se="[object String]",ue="[object Symbol]",ce="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",me="[object Float64Array]",ve="[object Int8Array]",ge="[object Int16Array]",be="[object Int32Array]",ye="[object Uint8Array]",we="[object Uint8ClampedArray]",xe="[object Uint16Array]",_e="[object Uint32Array]",Ce=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oe=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Te=RegExp(Oe.source),De=RegExp(Ee.source),Me=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Ne=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ze=/[\\^$.*+?()[\]{}|]/g,Be=RegExp(ze.source),Le=/^\s+|\s+$/g,$e=/^\s+/,Fe=/\s+$/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ve=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",at=rt+it+ot,st="\\u2700-\\u27bf",ut="a-z\\xdf-\\xf6\\xf8-\\xff",ct="\\xac\\xb1\\xd7\\xf7",lt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ft="\\u2000-\\u206f",dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",mt=ct+lt+ft+dt,vt="['’]",gt="["+nt+"]",bt="["+mt+"]",yt="["+at+"]",wt="\\d+",xt="["+st+"]",_t="["+ut+"]",Ct="[^"+nt+mt+wt+st+ut+ht+"]",kt="\\ud83c[\\udffb-\\udfff]",St="(?:"+yt+"|"+kt+")",Ot="[^"+nt+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Dt="["+ht+"]",Mt="\\u200d",At="(?:"+_t+"|"+Ct+")",Nt="(?:"+Dt+"|"+Ct+")",Pt="(?:"+vt+"(?:d|ll|m|re|s|t|ve))?",It="(?:"+vt+"(?:D|LL|M|RE|S|T|VE))?",Rt=St+"?",zt="["+pt+"]?",Bt="(?:"+Mt+"(?:"+[Ot,Et,Tt].join("|")+")"+zt+Rt+")*",Lt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$t="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ft=zt+Rt+Bt,jt="(?:"+[xt,Et,Tt].join("|")+")"+Ft,Vt="(?:"+[Ot+yt+"?",yt,Et,Tt,gt].join("|")+")",Ht=RegExp(vt,"g"),Wt=RegExp(yt,"g"),Ut=RegExp(kt+"(?="+kt+")|"+Vt+Ft,"g"),qt=RegExp([Dt+"?"+_t+"+"+Pt+"(?="+[bt,Dt,"$"].join("|")+")",Nt+"+"+It+"(?="+[bt,Dt+At,"$"].join("|")+")",Dt+"?"+At+"+"+Pt,Dt+"+"+It,$t,Lt,wt,jt].join("|"),"g"),Gt=RegExp("["+Mt+nt+at+pt+"]"),Kt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Jt={};Jt[pe]=Jt[me]=Jt[ve]=Jt[ge]=Jt[be]=Jt[ye]=Jt[we]=Jt[xe]=Jt[_e]=!0,Jt[W]=Jt[U]=Jt[de]=Jt[G]=Jt[he]=Jt[K]=Jt[X]=Jt[J]=Jt[Q]=Jt[ee]=Jt[ne]=Jt[oe]=Jt[ae]=Jt[se]=Jt[le]=!1;var Zt={};Zt[W]=Zt[U]=Zt[de]=Zt[he]=Zt[G]=Zt[K]=Zt[pe]=Zt[me]=Zt[ve]=Zt[ge]=Zt[be]=Zt[Q]=Zt[ee]=Zt[ne]=Zt[oe]=Zt[ae]=Zt[se]=Zt[ue]=Zt[ye]=Zt[we]=Zt[xe]=Zt[_e]=!0,Zt[X]=Zt[J]=Zt[le]=!1;var Qt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"===("undefined"===typeof e?"undefined":o(e))&&e&&e.Object===Object&&e,sn="object"===("undefined"===typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,un=an||sn||Function("return this")(),cn="object"===o(t)&&t&&!t.nodeType&&t,ln=cn&&"object"===o(r)&&r&&!r.nodeType&&r,fn=ln&&ln.exports===cn,dn=fn&&an.process,hn=function(){try{var e=ln&&ln.require&&ln.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,mn=hn&&hn.isDate,vn=hn&&hn.isMap,gn=hn&&hn.isRegExp,bn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function wn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xn(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),e)}return r}function _n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function kn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function Sn(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function On(e,t){var n=null==e?0:e.length;return!!n&&Ln(e,t,0)>-1}function En(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function Tn(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function Dn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Mn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function An(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function Nn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Pn=Vn("length");function In(e){return e.split("")}function Rn(e){return e.match(We)||[]}function zn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Bn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function Ln(e,t,n){return t===t?pr(e,t,n):Bn(e,Fn,n)}function $n(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function Fn(e){return e!==e}function jn(e,t){var n=null==e?0:e.length;return n?qn(e,t)/n:$}function Vn(e){return function(t){return null==t?a:t[e]}}function Hn(e){return function(t){return null==e?a:e[t]}}function Wn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Un(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function qn(e,t){var n,r=-1,i=e.length;while(++r<i){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}function Gn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Kn(e,t){return Tn(t,(function(t){return[t,e[t]]}))}function Yn(e){return function(t){return e(t)}}function Xn(e,t){return Tn(t,(function(t){return e[t]}))}function Jn(e,t){return e.has(t)}function Zn(e,t){var n=-1,r=e.length;while(++n<r&&Ln(t,e[n],0)>-1);return n}function Qn(e,t){var n=e.length;while(n--&&Ln(t,e[n],0)>-1);return n}function er(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var tr=Hn(Qt),nr=Hn(en);function rr(e){return"\\"+nn[e]}function ir(e,t){return null==e?a:e[t]}function or(e){return Gt.test(e)}function ar(e){return Kt.test(e)}function sr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ur(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cr(e,t){return function(n){return e(t(n))}}function lr(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n];a!==t&&a!==h||(e[n]=h,o[i++]=n)}return o}function fr(e,t){return"__proto__"==t?a:e[t]}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function mr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function vr(e){return or(e)?yr(e):Pn(e)}function gr(e){return or(e)?wr(e):In(e)}var br=Hn(tn);function yr(e){var t=Ut.lastIndex=0;while(Ut.test(e))++t;return t}function wr(e){return e.match(Ut)||[]}function xr(e){return e.match(qt)||[]}var _r=function e(t){t=null==t?un:Cr.defaults(un.Object(),t,Cr.pick(un,Yt));var n=t.Array,r=t.Date,i=t.Error,We=t.Function,nt=t.Math,rt=t.Object,it=t.RegExp,ot=t.String,at=t.TypeError,st=n.prototype,ut=We.prototype,ct=rt.prototype,lt=t["__core-js_shared__"],ft=ut.toString,dt=ct.hasOwnProperty,ht=0,pt=function(){var e=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mt=ct.toString,vt=ft.call(rt),gt=un._,bt=it("^"+ft.call(dt).replace(ze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=fn?t.Buffer:a,wt=t.Symbol,xt=t.Uint8Array,_t=yt?yt.allocUnsafe:a,Ct=cr(rt.getPrototypeOf,rt),kt=rt.create,St=ct.propertyIsEnumerable,Ot=st.splice,Et=wt?wt.isConcatSpreadable:a,Tt=wt?wt.iterator:a,Dt=wt?wt.toStringTag:a,Mt=function(){try{var e=Ga(rt,"defineProperty");return e({},"",{}),e}catch(t){}}(),At=t.clearTimeout!==un.clearTimeout&&t.clearTimeout,Nt=r&&r.now!==un.Date.now&&r.now,Pt=t.setTimeout!==un.setTimeout&&t.setTimeout,It=nt.ceil,Rt=nt.floor,zt=rt.getOwnPropertySymbols,Bt=yt?yt.isBuffer:a,Lt=t.isFinite,$t=st.join,Ft=cr(rt.keys,rt),jt=nt.max,Vt=nt.min,Ut=r.now,qt=t.parseInt,Gt=nt.random,Kt=st.reverse,Qt=Ga(t,"DataView"),en=Ga(t,"Map"),tn=Ga(t,"Promise"),nn=Ga(t,"Set"),an=Ga(t,"WeakMap"),sn=Ga(rt,"create"),cn=an&&new an,ln={},dn=As(Qt),hn=As(en),Pn=As(tn),In=As(nn),Hn=As(an),pr=wt?wt.prototype:a,yr=pr?pr.valueOf:a,wr=pr?pr.toString:a;function _r(e){if(kl(e)&&!sl(e)&&!(e instanceof Er)){if(e instanceof Or)return e;if(dt.call(e,"__wrapped__"))return Ps(e)}return new Or(e)}var kr=function(){function e(){}return function(t){if(!Cl(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Sr(){}function Or(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function Tr(){var e=new Er(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e}function Dr(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Mr(){var e=this.__wrapped__.value(),t=this.__dir__,n=sl(e),r=t<0,i=n?e.length:0,o=Za(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,d=0,h=Vt(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return $o(e,this.__actions__);var p=[];e:while(u--&&d<h){c+=t;var m=-1,v=e[c];while(++m<f){var g=l[m],b=g.iteratee,y=g.type,w=b(v);if(y==I)v=w;else if(!w){if(y==P)continue e;break e}}p[d++]=v}return p}function Ar(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Nr(){this.__data__=sn?sn(null):{},this.size=0}function Pr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ir(e){var t=this.__data__;if(sn){var n=t[e];return n===f?a:n}return dt.call(t,e)?t[e]:a}function Rr(e){var t=this.__data__;return sn?t[e]!==a:dt.call(t,e)}function zr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===a?f:t,this}function Br(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Lr(){this.__data__=[],this.size=0}function $r(e){var t=this.__data__,n=li(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ot.call(t,n,1),--this.size,!0}function Fr(e){var t=this.__data__,n=li(t,e);return n<0?a:t[n][1]}function jr(e){return li(this.__data__,e)>-1}function Vr(e,t){var n=this.__data__,r=li(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Hr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Wr(){this.size=0,this.__data__={hash:new Ar,map:new(en||Br),string:new Ar}}function Ur(e){var t=Ua(this,e)["delete"](e);return this.size-=t?1:0,t}function qr(e){return Ua(this,e).get(e)}function Gr(e){return Ua(this,e).has(e)}function Kr(e,t){var n=Ua(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Hr;while(++t<n)this.add(e[t])}function Xr(e){return this.__data__.set(e,f),this}function Jr(e){return this.__data__.has(e)}function Zr(e){var t=this.__data__=new Br(e);this.size=t.size}function Qr(){this.__data__=new Br,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof Br){var r=n.__data__;if(!en||r.length<u-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=sl(e),r=!n&&al(e),i=!n&&!r&&dl(e),o=!n&&!r&&!i&&$l(e),a=n||r||i||o,s=a?Gn(e.length,ot):[],u=s.length;for(var c in e)!t&&!dt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||as(c,u))||s.push(c);return s}function oi(e){var t=e.length;return t?e[bo(0,t-1)]:a}function ai(e,t){return Ts(ia(e),vi(t,0,e.length))}function si(e){return Ts(ia(e))}function ui(e,t,n){(n!==a&&!rl(e[t],n)||n===a&&!(t in e))&&pi(e,t,n)}function ci(e,t,n){var r=e[t];dt.call(e,t)&&rl(r,n)&&(n!==a||t in e)||pi(e,t,n)}function li(e,t){var n=e.length;while(n--)if(rl(e[n][0],t))return n;return-1}function fi(e,t,n,r){return _i(e,(function(e,i,o){t(r,e,n(e),o)})),r}function di(e,t){return e&&oa(t,_f(t),e)}function hi(e,t){return e&&oa(t,Cf(t),e)}function pi(e,t,n){"__proto__"==t&&Mt?Mt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mi(e,t){var r=-1,i=t.length,o=n(i),s=null==e;while(++r<i)o[r]=s?a:vf(e,t[r]);return o}function vi(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function gi(e,t,n,r,i,o){var s,u=t&p,c=t&m,l=t&v;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!Cl(e))return e;var f=sl(e);if(f){if(s=ts(e),!u)return ia(e,s)}else{var d=Ja(e),h=d==J||d==Z;if(dl(e))return Ko(e,u);if(d==ne||d==W||h&&!i){if(s=c||h?{}:ns(e),!u)return c?sa(e,hi(s,e)):aa(e,di(s,e))}else{if(!Zt[d])return i?e:{};s=rs(e,d,u)}}o||(o=new Zr);var g=o.get(e);if(g)return g;if(o.set(e,s),zl(e))return e.forEach((function(r){s.add(gi(r,t,n,r,e,o))})),s;if(Sl(e))return e.forEach((function(r,i){s.set(i,gi(r,t,n,i,e,o))})),s;var b=l?c?Fa:$a:c?Cf:_f,y=f?a:b(e);return _n(y||e,(function(r,i){y&&(i=r,r=e[i]),ci(s,i,gi(r,t,n,i,e,o))})),s}function bi(e){var t=_f(e);return function(n){return yi(n,e,t)}}function yi(e,t,n){var r=n.length;if(null==e)return!r;e=rt(e);while(r--){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function wi(e,t,n){if("function"!==typeof e)throw new at(l);return ks((function(){e.apply(a,n)}),t)}function xi(e,t,n,r){var i=-1,o=On,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Tn(t,Yn(n))),r?(o=En,a=!1):t.length>=u&&(o=Jn,a=!1,t=new Yr(t));e:while(++i<s){var f=e[i],d=null==n?f:n(f);if(f=r||0!==f?f:0,a&&d===d){var h=l;while(h--)if(t[h]===d)continue e;c.push(f)}else o(t,d,r)||c.push(f)}return c}_r.templateSettings={escape:Me,evaluate:Ae,interpolate:Ne,variable:"",imports:{_:_r}},_r.prototype=Sr.prototype,_r.prototype.constructor=_r,Or.prototype=kr(Sr.prototype),Or.prototype.constructor=Or,Er.prototype=kr(Sr.prototype),Er.prototype.constructor=Er,Ar.prototype.clear=Nr,Ar.prototype["delete"]=Pr,Ar.prototype.get=Ir,Ar.prototype.has=Rr,Ar.prototype.set=zr,Br.prototype.clear=Lr,Br.prototype["delete"]=$r,Br.prototype.get=Fr,Br.prototype.has=jr,Br.prototype.set=Vr,Hr.prototype.clear=Wr,Hr.prototype["delete"]=Ur,Hr.prototype.get=qr,Hr.prototype.has=Gr,Hr.prototype.set=Kr,Yr.prototype.add=Yr.prototype.push=Xr,Yr.prototype.has=Jr,Zr.prototype.clear=Qr,Zr.prototype["delete"]=ei,Zr.prototype.get=ti,Zr.prototype.has=ni,Zr.prototype.set=ri;var _i=la(Ai),Ci=la(Ni,!0);function ki(e,t){var n=!0;return _i(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function Si(e,t,n){var r=-1,i=e.length;while(++r<i){var o=e[r],s=t(o);if(null!=s&&(u===a?s===s&&!Ll(s):n(s,u)))var u=s,c=o}return c}function Oi(e,t,n,r){var i=e.length;n=Gl(n),n<0&&(n=-n>i?0:i+n),r=r===a||r>i?i:Gl(r),r<0&&(r+=i),r=n>r?0:Kl(r);while(n<r)e[n++]=t;return e}function Ei(e,t){var n=[];return _i(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ti(e,t,n,r,i){var o=-1,a=e.length;n||(n=os),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?Ti(s,t-1,n,r,i):Dn(i,s):r||(i[i.length]=s)}return i}var Di=fa(),Mi=fa(!0);function Ai(e,t){return e&&Di(e,t,_f)}function Ni(e,t){return e&&Mi(e,t,_f)}function Pi(e,t){return Sn(t,(function(t){return wl(e[t])}))}function Ii(e,t){t=Wo(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ms(t[n++])];return n&&n==r?e:a}function Ri(e,t,n){var r=t(e);return sl(e)?r:Dn(r,n(e))}function zi(e){return null==e?e===a?ce:te:Dt&&Dt in rt(e)?Ka(e):ys(e)}function Bi(e,t){return e>t}function Li(e,t){return null!=e&&dt.call(e,t)}function $i(e,t){return null!=e&&t in rt(e)}function Fi(e,t,n){return e>=Vt(t,n)&&e<jt(t,n)}function ji(e,t,r){var i=r?En:On,o=e[0].length,s=e.length,u=s,c=n(s),l=1/0,f=[];while(u--){var d=e[u];u&&t&&(d=Tn(d,Yn(t))),l=Vt(d.length,l),c[u]=!r&&(t||o>=120&&d.length>=120)?new Yr(u&&d):a}d=e[0];var h=-1,p=c[0];e:while(++h<o&&f.length<l){var m=d[h],v=t?t(m):m;if(m=r||0!==m?m:0,!(p?Jn(p,v):i(f,v,r))){u=s;while(--u){var g=c[u];if(!(g?Jn(g,v):i(e[u],v,r)))continue e}p&&p.push(v),f.push(m)}}return f}function Vi(e,t,n,r){return Ai(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Hi(e,t,n){t=Wo(t,e),e=xs(e,t);var r=null==e?e:e[Ms(iu(t))];return null==r?a:wn(r,e,n)}function Wi(e){return kl(e)&&zi(e)==W}function Ui(e){return kl(e)&&zi(e)==de}function qi(e){return kl(e)&&zi(e)==K}function Gi(e,t,n,r,i){return e===t||(null==e||null==t||!kl(e)&&!kl(t)?e!==e&&t!==t:Ki(e,t,n,r,Gi,i))}function Ki(e,t,n,r,i,o){var a=sl(e),s=sl(t),u=a?U:Ja(e),c=s?U:Ja(t);u=u==W?ne:u,c=c==W?ne:c;var l=u==ne,f=c==ne,d=u==c;if(d&&dl(e)){if(!dl(t))return!1;a=!0,l=!1}if(d&&!l)return o||(o=new Zr),a||$l(e)?Ra(e,t,n,r,i,o):za(e,t,u,n,r,i,o);if(!(n&g)){var h=l&&dt.call(e,"__wrapped__"),p=f&&dt.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return o||(o=new Zr),i(m,v,n,r,o)}}return!!d&&(o||(o=new Zr),Ba(e,t,n,r,i,o))}function Yi(e){return kl(e)&&Ja(e)==Q}function Xi(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;e=rt(e);while(i--){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++i<o){u=n[i];var c=u[0],l=e[c],f=u[1];if(s&&u[2]){if(l===a&&!(c in e))return!1}else{var d=new Zr;if(r)var h=r(l,f,c,e,t,d);if(!(h===a?Gi(f,l,g|b,r,d):h))return!1}}return!0}function Ji(e){if(!Cl(e)||fs(e))return!1;var t=wl(e)?bt:Xe;return t.test(As(e))}function Zi(e){return kl(e)&&zi(e)==oe}function Qi(e){return kl(e)&&Ja(e)==ae}function eo(e){return kl(e)&&_l(e.length)&&!!Jt[zi(e)]}function to(e){return"function"===typeof e?e:null==e?Md:"object"===("undefined"===typeof e?"undefined":o(e))?sl(e)?so(e[0],e[1]):ao(e):Hd(e)}function no(e){if(!hs(e))return Ft(e);var t=[];for(var n in rt(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ro(e){if(!Cl(e))return bs(e);var t=hs(e),n=[];for(var r in e)("constructor"!=r||!t&&dt.call(e,r))&&n.push(r);return n}function io(e,t){return e<t}function oo(e,t){var r=-1,i=cl(e)?n(e.length):[];return _i(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function ao(e){var t=qa(e);return 1==t.length&&t[0][2]?ms(t[0][0],t[0][1]):function(n){return n===e||Xi(n,e,t)}}function so(e,t){return us(e)&&ps(t)?ms(Ms(e),t):function(n){var r=vf(n,e);return r===a&&r===t?bf(n,e):Gi(t,r,g|b)}}function uo(e,t,n,r,i){e!==t&&Di(t,(function(o,s){if(Cl(o))i||(i=new Zr),co(e,t,s,n,uo,r,i);else{var u=r?r(fr(e,s),o,s+"",e,t,i):a;u===a&&(u=o),ui(e,s,u)}}),Cf)}function co(e,t,n,r,i,o,s){var u=fr(e,n),c=fr(t,n),l=s.get(c);if(l)ui(e,n,l);else{var f=o?o(u,c,n+"",e,t,s):a,d=f===a;if(d){var h=sl(c),p=!h&&dl(c),m=!h&&!p&&$l(c);f=c,h||p||m?sl(u)?f=u:ll(u)?f=ia(u):p?(d=!1,f=Ko(c,!0)):m?(d=!1,f=Qo(c,!0)):f=[]:Pl(c)||al(c)?(f=u,al(u)?f=Xl(u):(!Cl(u)||r&&wl(u))&&(f=ns(c))):d=!1}d&&(s.set(c,f),i(f,c,r,o,s),s["delete"](c)),ui(e,n,f)}}function lo(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:a}function fo(e,t,n){var r=-1;t=Tn(t.length?t:[Md],Yn(Wa()));var i=oo(e,(function(e,n,i){var o=Tn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return Un(i,(function(e,t){return ta(e,t,n)}))}function ho(e,t){return po(e,t,(function(t,n){return bf(e,n)}))}function po(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=Ii(e,a);n(s,a)&&ko(o,Wo(a,e),s)}return o}function mo(e){return function(t){return Ii(t,e)}}function vo(e,t,n,r){var i=r?$n:Ln,o=-1,a=t.length,s=e;e===t&&(t=ia(t)),n&&(s=Tn(e,Yn(n)));while(++o<a){var u=0,c=t[o],l=n?n(c):c;while((u=i(s,l,u,r))>-1)s!==e&&Ot.call(s,u,1),Ot.call(e,u,1)}return e}function go(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;as(i)?Ot.call(e,i,1):zo(e,i)}}return e}function bo(e,t){return e+Rt(Gt()*(t-e+1))}function yo(e,t,r,i){var o=-1,a=jt(It((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function wo(e,t){var n="";if(!e||t<1||t>B)return n;do{t%2&&(n+=e),t=Rt(t/2),t&&(e+=e)}while(t);return n}function xo(e,t){return Ss(ws(e,t,Md),e+"")}function _o(e){return oi(jf(e))}function Co(e,t){var n=jf(e);return Ts(n,vi(t,0,n.length))}function ko(e,t,n,r){if(!Cl(e))return e;t=Wo(t,e);var i=-1,o=t.length,s=o-1,u=e;while(null!=u&&++i<o){var c=Ms(t[i]),l=n;if(i!=s){var f=u[c];l=r?r(f,c,u):a,l===a&&(l=Cl(f)?f:as(t[i+1])?[]:{})}ci(u,c,l),u=u[c]}return e}var So=cn?function(e,t){return cn.set(e,t),e}:Md,Oo=Mt?function(e,t){return Mt(e,"toString",{configurable:!0,enumerable:!1,value:Od(t),writable:!0})}:Md;function Eo(e){return Ts(jf(e))}function To(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var a=n(o);while(++i<o)a[i]=e[i+t];return a}function Do(e,t){var n;return _i(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Mo(e,t,n){var r=0,i=null==e?r:e.length;if("number"===typeof t&&t===t&&i<=V){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!Ll(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Ao(e,t,Md,n)}function Ao(e,t,n,r){t=n(t);var i=0,o=null==e?0:e.length,s=t!==t,u=null===t,c=Ll(t),l=t===a;while(i<o){var f=Rt((i+o)/2),d=n(e[f]),h=d!==a,p=null===d,m=d===d,v=Ll(d);if(s)var g=r||m;else g=l?m&&(r||h):u?m&&h&&(r||!p):c?m&&h&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);g?i=f+1:o=f}return Vt(o,j)}function No(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!rl(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Po(e){return"number"===typeof e?e:Ll(e)?$:+e}function Io(e){if("string"===typeof e)return e;if(sl(e))return Tn(e,Io)+"";if(Ll(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-z?"-0":t}function Ro(e,t,n){var r=-1,i=On,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=En;else if(o>=u){var l=t?null:Da(e);if(l)return dr(l);a=!1,i=Jn,c=new Yr}else c=t?[]:s;e:while(++r<o){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,a&&d===d){var h=c.length;while(h--)if(c[h]===d)continue e;t&&c.push(d),s.push(f)}else i(c,d,n)||(c!==s&&c.push(d),s.push(f))}return s}function zo(e,t){return t=Wo(t,e),e=xs(e,t),null==e||delete e[Ms(iu(t))]}function Bo(e,t,n,r){return ko(e,t,n(Ii(e,t)),r)}function Lo(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?To(e,r?0:o,r?o+1:i):To(e,r?o+1:0,r?i:o)}function $o(e,t){var n=e;return n instanceof Er&&(n=n.value()),Mn(t,(function(e,t){return t.func.apply(t.thisArg,Dn([e],t.args))}),n)}function Fo(e,t,r){var i=e.length;if(i<2)return i?Ro(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],u=-1;while(++u<i)u!=o&&(a[o]=xi(a[o]||s,e[u],t,r))}return Ro(Ti(a,1),t,r)}function jo(e,t,n){var r=-1,i=e.length,o=t.length,s={};while(++r<i){var u=r<o?t[r]:a;n(s,e[r],u)}return s}function Vo(e){return ll(e)?e:[]}function Ho(e){return"function"===typeof e?e:Md}function Wo(e,t){return sl(e)?e:us(e,t)?[e]:Ds(Zl(e))}var Uo=xo;function qo(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:To(e,t,n)}var Go=At||function(e){return un.clearTimeout(e)};function Ko(e,t){if(t)return e.slice();var n=e.length,r=_t?_t(n):new e.constructor(n);return e.copy(r),r}function Yo(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function Xo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Jo(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}function Zo(e){return yr?rt(yr.call(e)):{}}function Qo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==a,r=null===e,i=e===e,o=Ll(e),s=t!==a,u=null===t,c=t===t,l=Ll(t);if(!u&&!l&&!o&&e>t||o&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||u&&n&&i||!s&&i||!c)return-1}return 0}function ta(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var u=ea(i[r],o[r]);if(u){if(r>=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}function na(e,t,r,i){var o=-1,a=e.length,s=r.length,u=-1,c=t.length,l=jt(a-s,0),f=n(c+l),d=!i;while(++u<c)f[u]=t[u];while(++o<s)(d||o<a)&&(f[r[o]]=e[o]);while(l--)f[u++]=e[o++];return f}function ra(e,t,r,i){var o=-1,a=e.length,s=-1,u=r.length,c=-1,l=t.length,f=jt(a-u,0),d=n(f+l),h=!i;while(++o<f)d[o]=e[o];var p=o;while(++c<l)d[p+c]=t[c];while(++s<u)(h||o<a)&&(d[p+r[s]]=e[o++]);return d}function ia(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(e,t,n,r){var i=!n;n||(n={});var o=-1,s=t.length;while(++o<s){var u=t[o],c=r?r(n[u],e[u],u,n,e):a;c===a&&(c=e[u]),i?pi(n,u,c):ci(n,u,c)}return n}function aa(e,t){return oa(e,Ya(e),t)}function sa(e,t){return oa(e,Xa(e),t)}function ua(e,t){return function(n,r){var i=sl(n)?xn:fi,o=t?t():{};return i(n,e,Wa(r,2),o)}}function ca(e){return xo((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;o=e.length>3&&"function"===typeof o?(i--,o):a,s&&ss(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=rt(t);while(++r<i){var u=n[r];u&&e(t,u,r,o)}return t}))}function la(e,t){return function(n,r){if(null==n)return n;if(!cl(n))return e(n,r);var i=n.length,o=t?i:-1,a=rt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function fa(e){return function(t,n,r){var i=-1,o=rt(t),a=r(t),s=a.length;while(s--){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function da(e,t,n){var r=t&y,i=ma(e);function o(){var t=this&&this!==un&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function ha(e){return function(t){t=Zl(t);var n=or(t)?gr(t):a,r=n?n[0]:t.charAt(0),i=n?qo(n,1).join(""):t.slice(1);return r[e]()+i}}function pa(e){return function(t){return Mn(xd(Kf(t).replace(Ht,"")),e,"")}}function ma(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kr(e.prototype),r=e.apply(n,t);return Cl(r)?r:n}}function va(e,t,r){var i=ma(e);function o(){var s=arguments.length,u=n(s),c=s,l=Ha(o);while(c--)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:lr(u,l);if(s-=f.length,s<r)return Ea(e,t,ya,o.placeholder,a,u,f,a,a,r-s);var d=this&&this!==un&&this instanceof o?i:e;return wn(d,this,u)}return o}function ga(e){return function(t,n,r){var i=rt(t);if(!cl(t)){var o=Wa(n,3);t=_f(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}function ba(e){return La((function(t){var n=t.length,r=n,i=Or.prototype.thru;e&&t.reverse();while(r--){var o=t[r];if("function"!==typeof o)throw new at(l);if(i&&!s&&"wrapper"==Va(o))var s=new Or([],!0)}r=s?r:n;while(++r<n){o=t[r];var u=Va(o),c="wrapper"==u?ja(o):a;s=c&&ls(c[0])&&c[1]==(O|_|k|E)&&!c[4].length&&1==c[9]?s[Va(c[0])].apply(s,c[3]):1==o.length&&ls(o)?s[u]():s.thru(o)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&sl(r))return s.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function ya(e,t,r,i,o,s,u,c,l,f){var d=t&O,h=t&y,p=t&w,m=t&(_|C),v=t&T,g=p?a:ma(e);function b(){var a=arguments.length,y=n(a),w=a;while(w--)y[w]=arguments[w];if(m)var x=Ha(b),_=er(y,x);if(i&&(y=na(y,i,o,m)),s&&(y=ra(y,s,u,m)),a-=_,m&&a<f){var C=lr(y,x);return Ea(e,t,ya,b.placeholder,r,y,C,c,l,f-a)}var k=h?r:this,S=p?k[e]:e;return a=y.length,c?y=_s(y,c):v&&a>1&&y.reverse(),d&&l<a&&(y.length=l),this&&this!==un&&this instanceof b&&(S=g||ma(S)),S.apply(k,y)}return b}function wa(e,t){return function(n,r){return Vi(n,e,t(r),{})}}function xa(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"===typeof n||"string"===typeof r?(n=Io(n),r=Io(r)):(n=Po(n),r=Po(r)),i=e(n,r)}return i}}function _a(e){return La((function(t){return t=Tn(t,Yn(Wa())),xo((function(n){var r=this;return e(t,(function(e){return wn(e,r,n)}))}))}))}function Ca(e,t){t=t===a?" ":Io(t);var n=t.length;if(n<2)return n?wo(t,e):t;var r=wo(t,It(e/vr(t)));return or(t)?qo(gr(r),0,e).join(""):r.slice(0,e)}function ka(e,t,r,i){var o=t&y,a=ma(e);function s(){var t=-1,u=arguments.length,c=-1,l=i.length,f=n(l+u),d=this&&this!==un&&this instanceof s?a:e;while(++c<l)f[c]=i[c];while(u--)f[c++]=arguments[++t];return wn(d,o?r:this,f)}return s}function Sa(e){return function(t,n,r){return r&&"number"!==typeof r&&ss(t,n,r)&&(n=r=a),t=ql(t),n===a?(n=t,t=0):n=ql(n),r=r===a?t<n?1:-1:ql(r),yo(t,n,r,e)}}function Oa(e){return function(t,n){return"string"===typeof t&&"string"===typeof n||(t=Yl(t),n=Yl(n)),e(t,n)}}function Ea(e,t,n,r,i,o,s,u,c,l){var f=t&_,d=f?s:a,h=f?a:s,p=f?o:a,m=f?a:o;t|=f?k:S,t&=~(f?S:k),t&x||(t&=~(y|w));var v=[e,t,i,p,d,m,h,u,c,l],g=n.apply(a,v);return ls(e)&&Cs(g,v),g.placeholder=r,Os(g,e,t)}function Ta(e){var t=nt[e];return function(e,n){if(e=Yl(e),n=null==n?0:Vt(Gl(n),292),n){var r=(Zl(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Zl(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Da=nn&&1/dr(new nn([,-0]))[1]==z?function(e){return new nn(e)}:Ld;function Ma(e){return function(t){var n=Ja(t);return n==Q?ur(t):n==ae?hr(t):Kn(t,e(t))}}function Aa(e,t,n,r,i,o,s,u){var c=t&w;if(!c&&"function"!==typeof e)throw new at(l);var f=r?r.length:0;if(f||(t&=~(k|S),r=i=a),s=s===a?s:jt(Gl(s),0),u=u===a?u:Gl(u),f-=i?i.length:0,t&S){var d=r,h=i;r=i=a}var p=c?a:ja(e),m=[e,t,n,r,i,d,h,o,s,u];if(p&&gs(m,p),e=m[0],t=m[1],n=m[2],r=m[3],i=m[4],u=m[9]=m[9]===a?c?0:e.length:jt(m[9]-f,0),!u&&t&(_|C)&&(t&=~(_|C)),t&&t!=y)v=t==_||t==C?va(e,t,u):t!=k&&t!=(y|k)||i.length?ya.apply(a,m):ka(e,t,n,r);else var v=da(e,t,n);var g=p?So:Cs;return Os(g(v,m),e,t)}function Na(e,t,n,r){return e===a||rl(e,ct[n])&&!dt.call(r,n)?t:e}function Pa(e,t,n,r,i,o){return Cl(e)&&Cl(t)&&(o.set(t,e),uo(e,t,a,Pa,o),o["delete"](t)),e}function Ia(e){return Pl(e)?a:e}function Ra(e,t,n,r,i,o){var s=n&g,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var f=-1,d=!0,h=n&b?new Yr:a;o.set(e,t),o.set(t,e);while(++f<u){var p=e[f],m=t[f];if(r)var v=s?r(m,p,f,t,e,o):r(p,m,f,e,t,o);if(v!==a){if(v)continue;d=!1;break}if(h){if(!Nn(t,(function(e,t){if(!Jn(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){d=!1;break}}return o["delete"](e),o["delete"](t),d}function za(e,t,n,r,i,o,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case G:case K:case ee:return rl(+e,+t);case X:return e.name==t.name&&e.message==t.message;case oe:case se:return e==t+"";case Q:var s=ur;case ae:var u=r&g;if(s||(s=dr),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=b,a.set(e,t);var l=Ra(s(e),s(t),r,i,o,a);return a["delete"](e),l;case ue:if(yr)return yr.call(e)==yr.call(t)}return!1}function Ba(e,t,n,r,i,o){var s=n&g,u=$a(e),c=u.length,l=$a(t),f=l.length;if(c!=f&&!s)return!1;var d=c;while(d--){var h=u[d];if(!(s?h in t:dt.call(t,h)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var m=!0;o.set(e,t),o.set(t,e);var v=s;while(++d<c){h=u[d];var b=e[h],y=t[h];if(r)var w=s?r(y,b,h,t,e,o):r(b,y,h,e,t,o);if(!(w===a?b===y||i(b,y,n,r,o):w)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"===typeof x&&x instanceof x&&"function"===typeof _&&_ instanceof _||(m=!1)}return o["delete"](e),o["delete"](t),m}function La(e){return Ss(ws(e,a,Gs),e+"")}function $a(e){return Ri(e,_f,Ya)}function Fa(e){return Ri(e,Cf,Xa)}var ja=cn?function(e){return cn.get(e)}:Ld;function Va(e){var t=e.name+"",n=ln[t],r=dt.call(ln,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ha(e){var t=dt.call(_r,"placeholder")?_r:e;return t.placeholder}function Wa(){var e=_r.iteratee||Ad;return e=e===Ad?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Ua(e,t){var n=e.__data__;return cs(t)?n["string"===typeof t?"string":"hash"]:n.map}function qa(e){var t=_f(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,ps(i)]}return t}function Ga(e,t){var n=ir(e,t);return Ji(n)?n:a}function Ka(e){var t=dt.call(e,Dt),n=e[Dt];try{e[Dt]=a;var r=!0}catch(o){}var i=mt.call(e);return r&&(t?e[Dt]=n:delete e[Dt]),i}var Ya=zt?function(e){return null==e?[]:(e=rt(e),Sn(zt(e),(function(t){return St.call(e,t)})))}:Gd,Xa=zt?function(e){var t=[];while(e)Dn(t,Ya(e)),e=Ct(e);return t}:Gd,Ja=zi;function Za(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Vt(t,e+a);break;case"takeRight":e=jt(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(Ve);return t?t[1].split(He):[]}function es(e,t,n){t=Wo(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Ms(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&_l(i)&&as(a,i)&&(sl(e)||al(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"===typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!==typeof e.constructor||hs(e)?{}:kr(Ct(e))}function rs(e,t,n){var r=e.constructor;switch(t){case de:return Yo(e);case G:case K:return new r(+e);case he:return Xo(e,n);case pe:case me:case ve:case ge:case be:case ye:case we:case xe:case _e:return Qo(e,n);case Q:return new r;case ee:case se:return new r(e);case oe:return Jo(e);case ae:return new r;case ue:return Zo(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(je,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return sl(e)||al(e)||!!(Et&&e&&e[Et])}function as(e,t){var n="undefined"===typeof e?"undefined":o(e);return t=null==t?B:t,!!t&&("number"==n||"symbol"!=n&&Ze.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!Cl(n))return!1;var r="undefined"===typeof t?"undefined":o(t);return!!("number"==r?cl(n)&&as(t,n.length):"string"==r&&t in n)&&rl(n[t],e)}function us(e,t){if(sl(e))return!1;var n="undefined"===typeof e?"undefined":o(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ll(e))||(Ie.test(e)||!Pe.test(e)||null!=t&&e in rt(t))}function cs(e){var t="undefined"===typeof e?"undefined":o(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ls(e){var t=Va(e),n=_r[t];if("function"!==typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=ja(n);return!!r&&e===r[0]}function fs(e){return!!pt&&pt in e}(Qt&&Ja(new Qt(new ArrayBuffer(1)))!=he||en&&Ja(new en)!=Q||tn&&Ja(tn.resolve())!=re||nn&&Ja(new nn)!=ae||an&&Ja(new an)!=le)&&(Ja=function(e){var t=zi(e),n=t==ne?e.constructor:a,r=n?As(n):"";if(r)switch(r){case dn:return he;case hn:return Q;case Pn:return re;case In:return ae;case Hn:return le}return t});var ds=lt?wl:Kd;function hs(e){var t=e&&e.constructor,n="function"===typeof t&&t.prototype||ct;return e===n}function ps(e){return e===e&&!Cl(e)}function ms(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in rt(n)))}}function vs(e){var t=$c(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function gs(e,t){var n=e[1],r=t[1],i=n|r,o=i<(y|w|O),a=r==O&&n==_||r==O&&n==E&&e[7].length<=t[8]||r==(O|E)&&t[7].length<=t[8]&&n==_;if(!o&&!a)return e;r&y&&(e[2]=t[2],i|=n&y?0:x);var s=t[3];if(s){var u=e[3];e[3]=u?na(u,s,t[4]):s,e[4]=u?lr(e[3],h):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?ra(u,s,t[6]):s,e[6]=u?lr(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&O&&(e[8]=null==e[8]?t[8]:Vt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function bs(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}function ys(e){return mt.call(e)}function ws(e,t,r){return t=jt(t===a?e.length-1:t,0),function(){var i=arguments,o=-1,a=jt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var u=n(t+1);while(++o<t)u[o]=i[o];return u[t]=r(s),wn(e,this,u)}}function xs(e,t){return t.length<2?e:Ii(e,To(t,0,-1))}function _s(e,t){var n=e.length,r=Vt(t.length,n),i=ia(e);while(r--){var o=t[r];e[r]=as(o,n)?i[o]:a}return e}var Cs=Es(So),ks=Pt||function(e,t){return un.setTimeout(e,t)},Ss=Es(Oo);function Os(e,t,n){var r=t+"";return Ss(e,is(r,Ns(Qa(r),n)))}function Es(e){var t=0,n=0;return function(){var r=Ut(),i=N-(r-n);if(n=r,i>0){if(++t>=A)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ts(e,t){var n=-1,r=e.length,i=r-1;t=t===a?r:t;while(++n<t){var o=bo(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Ds=vs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Re,(function(e,n,r,i){t.push(r?i.replace(Ue,"$1"):n||e)})),t}));function Ms(e){if("string"===typeof e||Ll(e))return e;var t=e+"";return"0"==t&&1/e==-z?"-0":t}function As(e){if(null!=e){try{return ft.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ns(e,t){return _n(H,(function(n){var r="_."+n[0];t&n[1]&&!On(e,r)&&e.push(r)})),e.sort()}function Ps(e){if(e instanceof Er)return e.clone();var t=new Or(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Is(e,t,r){t=(r?ss(e,t,r):t===a)?1:jt(Gl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var o=0,s=0,u=n(It(i/t));while(o<i)u[s++]=To(e,o,o+=t);return u}function Rs(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function zs(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return Dn(sl(r)?ia(r):[r],Ti(t,1))}var Bs=xo((function(e,t){return ll(e)?xi(e,Ti(t,1,ll,!0)):[]})),Ls=xo((function(e,t){var n=iu(t);return ll(n)&&(n=a),ll(e)?xi(e,Ti(t,1,ll,!0),Wa(n,2)):[]})),$s=xo((function(e,t){var n=iu(t);return ll(n)&&(n=a),ll(e)?xi(e,Ti(t,1,ll,!0),a,n):[]}));function Fs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Gl(t),To(e,t<0?0:t,r)):[]}function js(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Gl(t),t=r-t,To(e,0,t<0?0:t)):[]}function Vs(e,t){return e&&e.length?Lo(e,Wa(t,3),!0,!0):[]}function Hs(e,t){return e&&e.length?Lo(e,Wa(t,3),!0):[]}function Ws(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!==typeof n&&ss(e,t,n)&&(n=0,r=i),Oi(e,t,n,r)):[]}function Us(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Gl(n);return i<0&&(i=jt(r+i,0)),Bn(e,Wa(t,3),i)}function qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=Gl(n),i=n<0?jt(r+i,0):Vt(i,r-1)),Bn(e,Wa(t,3),i,!0)}function Gs(e){var t=null==e?0:e.length;return t?Ti(e,1):[]}function Ks(e){var t=null==e?0:e.length;return t?Ti(e,z):[]}function Ys(e,t){var n=null==e?0:e.length;return n?(t=t===a?1:Gl(t),Ti(e,t)):[]}function Xs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Js(e){return e&&e.length?e[0]:a}function Zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Gl(n);return i<0&&(i=jt(r+i,0)),Ln(e,t,i)}function Qs(e){var t=null==e?0:e.length;return t?To(e,0,-1):[]}var eu=xo((function(e){var t=Tn(e,Vo);return t.length&&t[0]===e[0]?ji(t):[]})),tu=xo((function(e){var t=iu(e),n=Tn(e,Vo);return t===iu(n)?t=a:n.pop(),n.length&&n[0]===e[0]?ji(n,Wa(t,2)):[]})),nu=xo((function(e){var t=iu(e),n=Tn(e,Vo);return t="function"===typeof t?t:a,t&&n.pop(),n.length&&n[0]===e[0]?ji(n,a,t):[]}));function ru(e,t){return null==e?"":$t.call(e,t)}function iu(e){var t=null==e?0:e.length;return t?e[t-1]:a}function ou(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=Gl(n),i=i<0?jt(r+i,0):Vt(i,r-1)),t===t?mr(e,t,i):Bn(e,Fn,i,!0)}function au(e,t){return e&&e.length?lo(e,Gl(t)):a}var su=xo(uu);function uu(e,t){return e&&e.length&&t&&t.length?vo(e,t):e}function cu(e,t,n){return e&&e.length&&t&&t.length?vo(e,t,Wa(n,2)):e}function lu(e,t,n){return e&&e.length&&t&&t.length?vo(e,t,a,n):e}var fu=La((function(e,t){var n=null==e?0:e.length,r=mi(e,t);return go(e,Tn(t,(function(e){return as(e,n)?+e:e})).sort(ea)),r}));function du(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Wa(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return go(e,i),n}function hu(e){return null==e?e:Kt.call(e)}function pu(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!==typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:Gl(t),n=n===a?r:Gl(n)),To(e,t,n)):[]}function mu(e,t){return Mo(e,t)}function vu(e,t,n){return Ao(e,t,Wa(n,2))}function gu(e,t){var n=null==e?0:e.length;if(n){var r=Mo(e,t);if(r<n&&rl(e[r],t))return r}return-1}function bu(e,t){return Mo(e,t,!0)}function yu(e,t,n){return Ao(e,t,Wa(n,2),!0)}function wu(e,t){var n=null==e?0:e.length;if(n){var r=Mo(e,t,!0)-1;if(rl(e[r],t))return r}return-1}function xu(e){return e&&e.length?No(e):[]}function _u(e,t){return e&&e.length?No(e,Wa(t,2)):[]}function Cu(e){var t=null==e?0:e.length;return t?To(e,1,t):[]}function ku(e,t,n){return e&&e.length?(t=n||t===a?1:Gl(t),To(e,0,t<0?0:t)):[]}function Su(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Gl(t),t=r-t,To(e,t<0?0:t,r)):[]}function Ou(e,t){return e&&e.length?Lo(e,Wa(t,3),!1,!0):[]}function Eu(e,t){return e&&e.length?Lo(e,Wa(t,3)):[]}var Tu=xo((function(e){return Ro(Ti(e,1,ll,!0))})),Du=xo((function(e){var t=iu(e);return ll(t)&&(t=a),Ro(Ti(e,1,ll,!0),Wa(t,2))})),Mu=xo((function(e){var t=iu(e);return t="function"===typeof t?t:a,Ro(Ti(e,1,ll,!0),a,t)}));function Au(e){return e&&e.length?Ro(e):[]}function Nu(e,t){return e&&e.length?Ro(e,Wa(t,2)):[]}function Pu(e,t){return t="function"===typeof t?t:a,e&&e.length?Ro(e,a,t):[]}function Iu(e){if(!e||!e.length)return[];var t=0;return e=Sn(e,(function(e){if(ll(e))return t=jt(e.length,t),!0})),Gn(t,(function(t){return Tn(e,Vn(t))}))}function Ru(e,t){if(!e||!e.length)return[];var n=Iu(e);return null==t?n:Tn(n,(function(e){return wn(t,a,e)}))}var zu=xo((function(e,t){return ll(e)?xi(e,t):[]})),Bu=xo((function(e){return Fo(Sn(e,ll))})),Lu=xo((function(e){var t=iu(e);return ll(t)&&(t=a),Fo(Sn(e,ll),Wa(t,2))})),$u=xo((function(e){var t=iu(e);return t="function"===typeof t?t:a,Fo(Sn(e,ll),a,t)})),Fu=xo(Iu);function ju(e,t){return jo(e||[],t||[],ci)}function Vu(e,t){return jo(e||[],t||[],ko)}var Hu=xo((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"===typeof n?(e.pop(),n):a,Ru(e,n)}));function Wu(e){var t=_r(e);return t.__chain__=!0,t}function Uu(e,t){return t(e),e}function qu(e,t){return t(e)}var Gu=La((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return mi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Er&&as(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:qu,args:[i],thisArg:a}),new Or(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));function Ku(){return Wu(this)}function Yu(){return new Or(this.value(),this.__chain__)}function Xu(){this.__values__===a&&(this.__values__=Ul(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function Ju(){return this}function Zu(e){var t,n=this;while(n instanceof Sr){var r=Ps(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function Qu(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),t=t.reverse(),t.__actions__.push({func:qu,args:[hu],thisArg:a}),new Or(t,this.__chain__)}return this.thru(hu)}function ec(){return $o(this.__wrapped__,this.__actions__)}var tc=ua((function(e,t,n){dt.call(e,n)?++e[n]:pi(e,n,1)}));function nc(e,t,n){var r=sl(e)?kn:ki;return n&&ss(e,t,n)&&(t=a),r(e,Wa(t,3))}function rc(e,t){var n=sl(e)?Sn:Ei;return n(e,Wa(t,3))}var ic=ga(Us),oc=ga(qs);function ac(e,t){return Ti(mc(e,t),1)}function sc(e,t){return Ti(mc(e,t),z)}function uc(e,t,n){return n=n===a?1:Gl(n),Ti(mc(e,t),n)}function cc(e,t){var n=sl(e)?_n:_i;return n(e,Wa(t,3))}function lc(e,t){var n=sl(e)?Cn:Ci;return n(e,Wa(t,3))}var fc=ua((function(e,t,n){dt.call(e,n)?e[n].push(t):pi(e,n,[t])}));function dc(e,t,n,r){e=cl(e)?e:jf(e),n=n&&!r?Gl(n):0;var i=e.length;return n<0&&(n=jt(i+n,0)),Bl(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ln(e,t,n)>-1}var hc=xo((function(e,t,r){var i=-1,o="function"===typeof t,a=cl(e)?n(e.length):[];return _i(e,(function(e){a[++i]=o?wn(t,e,r):Hi(e,t,r)})),a})),pc=ua((function(e,t,n){pi(e,n,t)}));function mc(e,t){var n=sl(e)?Tn:oo;return n(e,Wa(t,3))}function vc(e,t,n,r){return null==e?[]:(sl(t)||(t=null==t?[]:[t]),n=r?a:n,sl(n)||(n=null==n?[]:[n]),fo(e,t,n))}var gc=ua((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bc(e,t,n){var r=sl(e)?Mn:Wn,i=arguments.length<3;return r(e,Wa(t,4),n,i,_i)}function yc(e,t,n){var r=sl(e)?An:Wn,i=arguments.length<3;return r(e,Wa(t,4),n,i,Ci)}function wc(e,t){var n=sl(e)?Sn:Ei;return n(e,Fc(Wa(t,3)))}function xc(e){var t=sl(e)?oi:_o;return t(e)}function _c(e,t,n){t=(n?ss(e,t,n):t===a)?1:Gl(t);var r=sl(e)?ai:Co;return r(e,t)}function Cc(e){var t=sl(e)?si:Eo;return t(e)}function kc(e){if(null==e)return 0;if(cl(e))return Bl(e)?vr(e):e.length;var t=Ja(e);return t==Q||t==ae?e.size:no(e).length}function Sc(e,t,n){var r=sl(e)?Nn:Do;return n&&ss(e,t,n)&&(t=a),r(e,Wa(t,3))}var Oc=xo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),fo(e,Ti(t,1),[])})),Ec=Nt||function(){return un.Date.now()};function Tc(e,t){if("function"!==typeof t)throw new at(l);return e=Gl(e),function(){if(--e<1)return t.apply(this,arguments)}}function Dc(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Aa(e,O,a,a,a,a,t)}function Mc(e,t){var n;if("function"!==typeof t)throw new at(l);return e=Gl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Ac=xo((function(e,t,n){var r=y;if(n.length){var i=lr(n,Ha(Ac));r|=k}return Aa(e,r,t,n,i)})),Nc=xo((function(e,t,n){var r=y|w;if(n.length){var i=lr(n,Ha(Nc));r|=k}return Aa(t,r,e,n,i)}));function Pc(e,t,n){t=n?a:t;var r=Aa(e,_,a,a,a,a,a,t);return r.placeholder=Pc.placeholder,r}function Ic(e,t,n){t=n?a:t;var r=Aa(e,C,a,a,a,a,a,t);return r.placeholder=Ic.placeholder,r}function Rc(e,t,n){var r,i,o,s,u,c,f=0,d=!1,h=!1,p=!0;if("function"!==typeof e)throw new at(l);function m(t){var n=r,o=i;return r=i=a,f=t,s=e.apply(o,n),s}function v(e){return f=e,u=ks(y,t),d?m(e):s}function g(e){var n=e-c,r=e-f,i=t-n;return h?Vt(i,o-r):i}function b(e){var n=e-c,r=e-f;return c===a||n>=t||n<0||h&&r>=o}function y(){var e=Ec();if(b(e))return w(e);u=ks(y,g(e))}function w(e){return u=a,p&&r?m(e):(r=i=a,s)}function x(){u!==a&&Go(u),f=0,r=c=i=u=a}function _(){return u===a?s:w(Ec())}function C(){var e=Ec(),n=b(e);if(r=arguments,i=this,c=e,n){if(u===a)return v(c);if(h)return u=ks(y,t),m(c)}return u===a&&(u=ks(y,t)),s}return t=Yl(t)||0,Cl(n)&&(d=!!n.leading,h="maxWait"in n,o=h?jt(Yl(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),C.cancel=x,C.flush=_,C}var zc=xo((function(e,t){return wi(e,1,t)})),Bc=xo((function(e,t,n){return wi(e,Yl(t)||0,n)}));function Lc(e){return Aa(e,T)}function $c(e,t){if("function"!==typeof e||null!=t&&"function"!==typeof t)throw new at(l);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new($c.Cache||Hr),n}function Fc(e){if("function"!==typeof e)throw new at(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function jc(e){return Mc(2,e)}$c.Cache=Hr;var Vc=Uo((function(e,t){t=1==t.length&&sl(t[0])?Tn(t[0],Yn(Wa())):Tn(Ti(t,1),Yn(Wa()));var n=t.length;return xo((function(r){var i=-1,o=Vt(r.length,n);while(++i<o)r[i]=t[i].call(this,r[i]);return wn(e,this,r)}))})),Hc=xo((function(e,t){var n=lr(t,Ha(Hc));return Aa(e,k,a,t,n)})),Wc=xo((function(e,t){var n=lr(t,Ha(Wc));return Aa(e,S,a,t,n)})),Uc=La((function(e,t){return Aa(e,E,a,a,a,t)}));function qc(e,t){if("function"!==typeof e)throw new at(l);return t=t===a?t:Gl(t),xo(e,t)}function Gc(e,t){if("function"!==typeof e)throw new at(l);return t=null==t?0:jt(Gl(t),0),xo((function(n){var r=n[t],i=qo(n,0,t);return r&&Dn(i,r),wn(e,this,i)}))}function Kc(e,t,n){var r=!0,i=!0;if("function"!==typeof e)throw new at(l);return Cl(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rc(e,t,{leading:r,maxWait:t,trailing:i})}function Yc(e){return Dc(e,1)}function Xc(e,t){return Hc(Ho(t),e)}function Jc(){if(!arguments.length)return[];var e=arguments[0];return sl(e)?e:[e]}function Zc(e){return gi(e,v)}function Qc(e,t){return t="function"===typeof t?t:a,gi(e,v,t)}function el(e){return gi(e,p|v)}function tl(e,t){return t="function"===typeof t?t:a,gi(e,p|v,t)}function nl(e,t){return null==t||yi(e,t,_f(t))}function rl(e,t){return e===t||e!==e&&t!==t}var il=Oa(Bi),ol=Oa((function(e,t){return e>=t})),al=Wi(function(){return arguments}())?Wi:function(e){return kl(e)&&dt.call(e,"callee")&&!St.call(e,"callee")},sl=n.isArray,ul=pn?Yn(pn):Ui;function cl(e){return null!=e&&_l(e.length)&&!wl(e)}function ll(e){return kl(e)&&cl(e)}function fl(e){return!0===e||!1===e||kl(e)&&zi(e)==G}var dl=Bt||Kd,hl=mn?Yn(mn):qi;function pl(e){return kl(e)&&1===e.nodeType&&!Pl(e)}function ml(e){if(null==e)return!0;if(cl(e)&&(sl(e)||"string"===typeof e||"function"===typeof e.splice||dl(e)||$l(e)||al(e)))return!e.length;var t=Ja(e);if(t==Q||t==ae)return!e.size;if(hs(e))return!no(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function vl(e,t){return Gi(e,t)}function gl(e,t,n){n="function"===typeof n?n:a;var r=n?n(e,t):a;return r===a?Gi(e,t,a,n):!!r}function bl(e){if(!kl(e))return!1;var t=zi(e);return t==X||t==Y||"string"===typeof e.message&&"string"===typeof e.name&&!Pl(e)}function yl(e){return"number"===typeof e&&Lt(e)}function wl(e){if(!Cl(e))return!1;var t=zi(e);return t==J||t==Z||t==q||t==ie}function xl(e){return"number"===typeof e&&e==Gl(e)}function _l(e){return"number"===typeof e&&e>-1&&e%1==0&&e<=B}function Cl(e){var t="undefined"===typeof e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)}function kl(e){return null!=e&&"object"===("undefined"===typeof e?"undefined":o(e))}var Sl=vn?Yn(vn):Yi;function Ol(e,t){return e===t||Xi(e,t,qa(t))}function El(e,t,n){return n="function"===typeof n?n:a,Xi(e,t,qa(t),n)}function Tl(e){return Nl(e)&&e!=+e}function Dl(e){if(ds(e))throw new i(c);return Ji(e)}function Ml(e){return null===e}function Al(e){return null==e}function Nl(e){return"number"===typeof e||kl(e)&&zi(e)==ee}function Pl(e){if(!kl(e)||zi(e)!=ne)return!1;var t=Ct(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"===typeof n&&n instanceof n&&ft.call(n)==vt}var Il=gn?Yn(gn):Zi;function Rl(e){return xl(e)&&e>=-B&&e<=B}var zl=bn?Yn(bn):Qi;function Bl(e){return"string"===typeof e||!sl(e)&&kl(e)&&zi(e)==se}function Ll(e){return"symbol"===("undefined"===typeof e?"undefined":o(e))||kl(e)&&zi(e)==ue}var $l=yn?Yn(yn):eo;function Fl(e){return e===a}function jl(e){return kl(e)&&Ja(e)==le}function Vl(e){return kl(e)&&zi(e)==fe}var Hl=Oa(io),Wl=Oa((function(e,t){return e<=t}));function Ul(e){if(!e)return[];if(cl(e))return Bl(e)?gr(e):ia(e);if(Tt&&e[Tt])return sr(e[Tt]());var t=Ja(e),n=t==Q?ur:t==ae?dr:jf;return n(e)}function ql(e){if(!e)return 0===e?e:0;if(e=Yl(e),e===z||e===-z){var t=e<0?-1:1;return t*L}return e===e?e:0}function Gl(e){var t=ql(e),n=t%1;return t===t?n?t-n:t:0}function Kl(e){return e?vi(Gl(e),0,F):0}function Yl(e){if("number"===typeof e)return e;if(Ll(e))return $;if(Cl(e)){var t="function"===typeof e.valueOf?e.valueOf():e;e=Cl(t)?t+"":t}if("string"!==typeof e)return 0===e?e:+e;e=e.replace(Le,"");var n=Ye.test(e);return n||Je.test(e)?on(e.slice(2),n?2:8):Ke.test(e)?$:+e}function Xl(e){return oa(e,Cf(e))}function Jl(e){return e?vi(Gl(e),-B,B):0===e?e:0}function Zl(e){return null==e?"":Io(e)}var Ql=ca((function(e,t){if(hs(t)||cl(t))oa(t,_f(t),e);else for(var n in t)dt.call(t,n)&&ci(e,n,t[n])})),ef=ca((function(e,t){oa(t,Cf(t),e)})),tf=ca((function(e,t,n,r){oa(t,Cf(t),e,r)})),nf=ca((function(e,t,n,r){oa(t,_f(t),e,r)})),rf=La(mi);function of(e,t){var n=kr(e);return null==t?n:di(n,t)}var af=xo((function(e,t){e=rt(e);var n=-1,r=t.length,i=r>2?t[2]:a;i&&ss(t[0],t[1],i)&&(r=1);while(++n<r){var o=t[n],s=Cf(o),u=-1,c=s.length;while(++u<c){var l=s[u],f=e[l];(f===a||rl(f,ct[l])&&!dt.call(e,l))&&(e[l]=o[l])}}return e})),sf=xo((function(e){return e.push(a,Pa),wn(Ef,a,e)}));function uf(e,t){return zn(e,Wa(t,3),Ai)}function cf(e,t){return zn(e,Wa(t,3),Ni)}function lf(e,t){return null==e?e:Di(e,Wa(t,3),Cf)}function ff(e,t){return null==e?e:Mi(e,Wa(t,3),Cf)}function df(e,t){return e&&Ai(e,Wa(t,3))}function hf(e,t){return e&&Ni(e,Wa(t,3))}function pf(e){return null==e?[]:Pi(e,_f(e))}function mf(e){return null==e?[]:Pi(e,Cf(e))}function vf(e,t,n){var r=null==e?a:Ii(e,t);return r===a?n:r}function gf(e,t){return null!=e&&es(e,t,Li)}function bf(e,t){return null!=e&&es(e,t,$i)}var yf=wa((function(e,t,n){null!=t&&"function"!==typeof t.toString&&(t=mt.call(t)),e[t]=n}),Od(Md)),wf=wa((function(e,t,n){null!=t&&"function"!==typeof t.toString&&(t=mt.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),Wa),xf=xo(Hi);function _f(e){return cl(e)?ii(e):no(e)}function Cf(e){return cl(e)?ii(e,!0):ro(e)}function kf(e,t){var n={};return t=Wa(t,3),Ai(e,(function(e,r,i){pi(n,t(e,r,i),e)})),n}function Sf(e,t){var n={};return t=Wa(t,3),Ai(e,(function(e,r,i){pi(n,r,t(e,r,i))})),n}var Of=ca((function(e,t,n){uo(e,t,n)})),Ef=ca((function(e,t,n,r){uo(e,t,n,r)})),Tf=La((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tn(t,(function(t){return t=Wo(t,e),r||(r=t.length>1),t})),oa(e,Fa(e),n),r&&(n=gi(n,p|m|v,Ia));var i=t.length;while(i--)zo(n,t[i]);return n}));function Df(e,t){return Af(e,Fc(Wa(t)))}var Mf=La((function(e,t){return null==e?{}:ho(e,t)}));function Af(e,t){if(null==e)return{};var n=Tn(Fa(e),(function(e){return[e]}));return t=Wa(t),po(e,n,(function(e,n){return t(e,n[0])}))}function Nf(e,t,n){t=Wo(t,e);var r=-1,i=t.length;i||(i=1,e=a);while(++r<i){var o=null==e?a:e[Ms(t[r])];o===a&&(r=i,o=n),e=wl(o)?o.call(e):o}return e}function Pf(e,t,n){return null==e?e:ko(e,t,n)}function If(e,t,n,r){return r="function"===typeof r?r:a,null==e?e:ko(e,t,n,r)}var Rf=Ma(_f),zf=Ma(Cf);function Bf(e,t,n){var r=sl(e),i=r||dl(e)||$l(e);if(t=Wa(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Cl(e)&&wl(o)?kr(Ct(e)):{}}return(i?_n:Ai)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Lf(e,t){return null==e||zo(e,t)}function $f(e,t,n){return null==e?e:Bo(e,t,Ho(n))}function Ff(e,t,n,r){return r="function"===typeof r?r:a,null==e?e:Bo(e,t,Ho(n),r)}function jf(e){return null==e?[]:Xn(e,_f(e))}function Vf(e){return null==e?[]:Xn(e,Cf(e))}function Hf(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=Yl(n),n=n===n?n:0),t!==a&&(t=Yl(t),t=t===t?t:0),vi(Yl(e),t,n)}function Wf(e,t,n){return t=ql(t),n===a?(n=t,t=0):n=ql(n),e=Yl(e),Fi(e,t,n)}function Uf(e,t,n){if(n&&"boolean"!==typeof n&&ss(e,t,n)&&(t=n=a),n===a&&("boolean"===typeof t?(n=t,t=a):"boolean"===typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=ql(e),t===a?(t=e,e=0):t=ql(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Gt();return Vt(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return bo(e,t)}var qf=pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Gf(t):t)}));function Gf(e){return wd(Zl(e).toLowerCase())}function Kf(e){return e=Zl(e),e&&e.replace(Qe,tr).replace(Wt,"")}function Yf(e,t,n){e=Zl(e),t=Io(t);var r=e.length;n=n===a?r:vi(Gl(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Xf(e){return e=Zl(e),e&&De.test(e)?e.replace(Ee,nr):e}function Jf(e){return e=Zl(e),e&&Be.test(e)?e.replace(ze,"\\$&"):e}var Zf=pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qf=pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ed=ha("toLowerCase");function td(e,t,n){e=Zl(e),t=Gl(t);var r=t?vr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ca(Rt(i),n)+e+Ca(It(i),n)}function nd(e,t,n){e=Zl(e),t=Gl(t);var r=t?vr(e):0;return t&&r<t?e+Ca(t-r,n):e}function rd(e,t,n){e=Zl(e),t=Gl(t);var r=t?vr(e):0;return t&&r<t?Ca(t-r,n)+e:e}function id(e,t,n){return n||null==t?t=0:t&&(t=+t),qt(Zl(e).replace($e,""),t||0)}function od(e,t,n){return t=(n?ss(e,t,n):t===a)?1:Gl(t),wo(Zl(e),t)}function ad(){var e=arguments,t=Zl(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sd=pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function ud(e,t,n){return n&&"number"!==typeof n&&ss(e,t,n)&&(t=n=a),n=n===a?F:n>>>0,n?(e=Zl(e),e&&("string"===typeof t||null!=t&&!Il(t))&&(t=Io(t),!t&&or(e))?qo(gr(e),0,n):e.split(t,n)):[]}var cd=pa((function(e,t,n){return e+(n?" ":"")+wd(t)}));function ld(e,t,n){return e=Zl(e),n=null==n?0:vi(Gl(n),0,e.length),t=Io(t),e.slice(n,n+t.length)==t}function fd(e,t,n){var r=_r.templateSettings;n&&ss(e,t,n)&&(t=a),e=Zl(e),t=tf({},t,r,Na);var i,o,s=tf({},t.imports,r.imports,Na),u=_f(s),c=Xn(s,u),l=0,f=t.interpolate||et,d="__p += '",h=it((t.escape||et).source+"|"+f.source+"|"+(f===Ne?qe:et).source+"|"+(t.evaluate||et).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(h,(function(t,n,r,a,s,u){return r||(r=a),d+=e.slice(l,u).replace(tt,rr),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),d+="';\n";var m=t.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(Ce,""):d).replace(ke,"$1").replace(Se,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=_d((function(){return We(u,p+"return "+d).apply(a,c)}));if(v.source=d,bl(v))throw v;return v}function dd(e){return Zl(e).toLowerCase()}function hd(e){return Zl(e).toUpperCase()}function pd(e,t,n){if(e=Zl(e),e&&(n||t===a))return e.replace(Le,"");if(!e||!(t=Io(t)))return e;var r=gr(e),i=gr(t),o=Zn(r,i),s=Qn(r,i)+1;return qo(r,o,s).join("")}function md(e,t,n){if(e=Zl(e),e&&(n||t===a))return e.replace(Fe,"");if(!e||!(t=Io(t)))return e;var r=gr(e),i=Qn(r,gr(t))+1;return qo(r,0,i).join("")}function vd(e,t,n){if(e=Zl(e),e&&(n||t===a))return e.replace($e,"");if(!e||!(t=Io(t)))return e;var r=gr(e),i=Zn(r,gr(t));return qo(r,i).join("")}function gd(e,t){var n=D,r=M;if(Cl(t)){var i="separator"in t?t.separator:i;n="length"in t?Gl(t.length):n,r="omission"in t?Io(t.omission):r}e=Zl(e);var o=e.length;if(or(e)){var s=gr(e);o=s.length}if(n>=o)return e;var u=n-vr(r);if(u<1)return r;var c=s?qo(s,0,u).join(""):e.slice(0,u);if(i===a)return c+r;if(s&&(u+=c.length-u),Il(i)){if(e.slice(u).search(i)){var l,f=c;i.global||(i=it(i.source,Zl(Ge.exec(i))+"g")),i.lastIndex=0;while(l=i.exec(f))var d=l.index;c=c.slice(0,d===a?u:d)}}else if(e.indexOf(Io(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r}function bd(e){return e=Zl(e),e&&Te.test(e)?e.replace(Oe,br):e}var yd=pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),wd=ha("toUpperCase");function xd(e,t,n){return e=Zl(e),t=n?a:t,t===a?ar(e)?xr(e):Rn(e):e.match(t)||[]}var _d=xo((function(e,t){try{return wn(e,a,t)}catch(n){return bl(n)?n:new i(n)}})),Cd=La((function(e,t){return _n(t,(function(t){t=Ms(t),pi(e,t,Ac(e[t],e))})),e}));function kd(e){var t=null==e?0:e.length,n=Wa();return e=t?Tn(e,(function(e){if("function"!==typeof e[1])throw new at(l);return[n(e[0]),e[1]]})):[],xo((function(n){var r=-1;while(++r<t){var i=e[r];if(wn(i[0],this,n))return wn(i[1],this,n)}}))}function Sd(e){return bi(gi(e,p))}function Od(e){return function(){return e}}function Ed(e,t){return null==e||e!==e?t:e}var Td=ba(),Dd=ba(!0);function Md(e){return e}function Ad(e){return to("function"===typeof e?e:gi(e,p))}function Nd(e){return ao(gi(e,p))}function Pd(e,t){return so(e,gi(t,p))}var Id=xo((function(e,t){return function(n){return Hi(n,e,t)}})),Rd=xo((function(e,t){return function(n){return Hi(e,n,t)}}));function zd(e,t,n){var r=_f(t),i=Pi(t,r);null!=n||Cl(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Pi(t,_f(t)));var o=!(Cl(n)&&"chain"in n)||!!n.chain,a=wl(e);return _n(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dn([this.value()],arguments))})})),e}function Bd(){return un._===this&&(un._=gt),this}function Ld(){}function $d(e){return e=Gl(e),xo((function(t){return lo(t,e)}))}var Fd=_a(Tn),jd=_a(kn),Vd=_a(Nn);function Hd(e){return us(e)?Vn(Ms(e)):mo(e)}function Wd(e){return function(t){return null==e?a:Ii(e,t)}}var Ud=Sa(),qd=Sa(!0);function Gd(){return[]}function Kd(){return!1}function Yd(){return{}}function Xd(){return""}function Jd(){return!0}function Zd(e,t){if(e=Gl(e),e<1||e>B)return[];var n=F,r=Vt(e,F);t=Wa(t),e-=F;var i=Gn(r,t);while(++n<e)t(n);return i}function Qd(e){return sl(e)?Tn(e,Ms):Ll(e)?[e]:ia(Ds(Zl(e)))}function eh(e){var t=++ht;return Zl(e)+t}var th=xa((function(e,t){return e+t}),0),nh=Ta("ceil"),rh=xa((function(e,t){return e/t}),1),ih=Ta("floor");function oh(e){return e&&e.length?Si(e,Md,Bi):a}function ah(e,t){return e&&e.length?Si(e,Wa(t,2),Bi):a}function sh(e){return jn(e,Md)}function uh(e,t){return jn(e,Wa(t,2))}function ch(e){return e&&e.length?Si(e,Md,io):a}function lh(e,t){return e&&e.length?Si(e,Wa(t,2),io):a}var fh=xa((function(e,t){return e*t}),1),dh=Ta("round"),hh=xa((function(e,t){return e-t}),0);function ph(e){return e&&e.length?qn(e,Md):0}function mh(e,t){return e&&e.length?qn(e,Wa(t,2)):0}return _r.after=Tc,_r.ary=Dc,_r.assign=Ql,_r.assignIn=ef,_r.assignInWith=tf,_r.assignWith=nf,_r.at=rf,_r.before=Mc,_r.bind=Ac,_r.bindAll=Cd,_r.bindKey=Nc,_r.castArray=Jc,_r.chain=Wu,_r.chunk=Is,_r.compact=Rs,_r.concat=zs,_r.cond=kd,_r.conforms=Sd,_r.constant=Od,_r.countBy=tc,_r.create=of,_r.curry=Pc,_r.curryRight=Ic,_r.debounce=Rc,_r.defaults=af,_r.defaultsDeep=sf,_r.defer=zc,_r.delay=Bc,_r.difference=Bs,_r.differenceBy=Ls,_r.differenceWith=$s,_r.drop=Fs,_r.dropRight=js,_r.dropRightWhile=Vs,_r.dropWhile=Hs,_r.fill=Ws,_r.filter=rc,_r.flatMap=ac,_r.flatMapDeep=sc,_r.flatMapDepth=uc,_r.flatten=Gs,_r.flattenDeep=Ks,_r.flattenDepth=Ys,_r.flip=Lc,_r.flow=Td,_r.flowRight=Dd,_r.fromPairs=Xs,_r.functions=pf,_r.functionsIn=mf,_r.groupBy=fc,_r.initial=Qs,_r.intersection=eu,_r.intersectionBy=tu,_r.intersectionWith=nu,_r.invert=yf,_r.invertBy=wf,_r.invokeMap=hc,_r.iteratee=Ad,_r.keyBy=pc,_r.keys=_f,_r.keysIn=Cf,_r.map=mc,_r.mapKeys=kf,_r.mapValues=Sf,_r.matches=Nd,_r.matchesProperty=Pd,_r.memoize=$c,_r.merge=Of,_r.mergeWith=Ef,_r.method=Id,_r.methodOf=Rd,_r.mixin=zd,_r.negate=Fc,_r.nthArg=$d,_r.omit=Tf,_r.omitBy=Df,_r.once=jc,_r.orderBy=vc,_r.over=Fd,_r.overArgs=Vc,_r.overEvery=jd,_r.overSome=Vd,_r.partial=Hc,_r.partialRight=Wc,_r.partition=gc,_r.pick=Mf,_r.pickBy=Af,_r.property=Hd,_r.propertyOf=Wd,_r.pull=su,_r.pullAll=uu,_r.pullAllBy=cu,_r.pullAllWith=lu,_r.pullAt=fu,_r.range=Ud,_r.rangeRight=qd,_r.rearg=Uc,_r.reject=wc,_r.remove=du,_r.rest=qc,_r.reverse=hu,_r.sampleSize=_c,_r.set=Pf,_r.setWith=If,_r.shuffle=Cc,_r.slice=pu,_r.sortBy=Oc,_r.sortedUniq=xu,_r.sortedUniqBy=_u,_r.split=ud,_r.spread=Gc,_r.tail=Cu,_r.take=ku,_r.takeRight=Su,_r.takeRightWhile=Ou,_r.takeWhile=Eu,_r.tap=Uu,_r.throttle=Kc,_r.thru=qu,_r.toArray=Ul,_r.toPairs=Rf,_r.toPairsIn=zf,_r.toPath=Qd,_r.toPlainObject=Xl,_r.transform=Bf,_r.unary=Yc,_r.union=Tu,_r.unionBy=Du,_r.unionWith=Mu,_r.uniq=Au,_r.uniqBy=Nu,_r.uniqWith=Pu,_r.unset=Lf,_r.unzip=Iu,_r.unzipWith=Ru,_r.update=$f,_r.updateWith=Ff,_r.values=jf,_r.valuesIn=Vf,_r.without=zu,_r.words=xd,_r.wrap=Xc,_r.xor=Bu,_r.xorBy=Lu,_r.xorWith=$u,_r.zip=Fu,_r.zipObject=ju,_r.zipObjectDeep=Vu,_r.zipWith=Hu,_r.entries=Rf,_r.entriesIn=zf,_r.extend=ef,_r.extendWith=tf,zd(_r,_r),_r.add=th,_r.attempt=_d,_r.camelCase=qf,_r.capitalize=Gf,_r.ceil=nh,_r.clamp=Hf,_r.clone=Zc,_r.cloneDeep=el,_r.cloneDeepWith=tl,_r.cloneWith=Qc,_r.conformsTo=nl,_r.deburr=Kf,_r.defaultTo=Ed,_r.divide=rh,_r.endsWith=Yf,_r.eq=rl,_r.escape=Xf,_r.escapeRegExp=Jf,_r.every=nc,_r.find=ic,_r.findIndex=Us,_r.findKey=uf,_r.findLast=oc,_r.findLastIndex=qs,_r.findLastKey=cf,_r.floor=ih,_r.forEach=cc,_r.forEachRight=lc,_r.forIn=lf,_r.forInRight=ff,_r.forOwn=df,_r.forOwnRight=hf,_r.get=vf,_r.gt=il,_r.gte=ol,_r.has=gf,_r.hasIn=bf,_r.head=Js,_r.identity=Md,_r.includes=dc,_r.indexOf=Zs,_r.inRange=Wf,_r.invoke=xf,_r.isArguments=al,_r.isArray=sl,_r.isArrayBuffer=ul,_r.isArrayLike=cl,_r.isArrayLikeObject=ll,_r.isBoolean=fl,_r.isBuffer=dl,_r.isDate=hl,_r.isElement=pl,_r.isEmpty=ml,_r.isEqual=vl,_r.isEqualWith=gl,_r.isError=bl,_r.isFinite=yl,_r.isFunction=wl,_r.isInteger=xl,_r.isLength=_l,_r.isMap=Sl,_r.isMatch=Ol,_r.isMatchWith=El,_r.isNaN=Tl,_r.isNative=Dl,_r.isNil=Al,_r.isNull=Ml,_r.isNumber=Nl,_r.isObject=Cl,_r.isObjectLike=kl,_r.isPlainObject=Pl,_r.isRegExp=Il,_r.isSafeInteger=Rl,_r.isSet=zl,_r.isString=Bl,_r.isSymbol=Ll,_r.isTypedArray=$l,_r.isUndefined=Fl,_r.isWeakMap=jl,_r.isWeakSet=Vl,_r.join=ru,_r.kebabCase=Zf,_r.last=iu,_r.lastIndexOf=ou,_r.lowerCase=Qf,_r.lowerFirst=ed,_r.lt=Hl,_r.lte=Wl,_r.max=oh,_r.maxBy=ah,_r.mean=sh,_r.meanBy=uh,_r.min=ch,_r.minBy=lh,_r.stubArray=Gd,_r.stubFalse=Kd,_r.stubObject=Yd,_r.stubString=Xd,_r.stubTrue=Jd,_r.multiply=fh,_r.nth=au,_r.noConflict=Bd,_r.noop=Ld,_r.now=Ec,_r.pad=td,_r.padEnd=nd,_r.padStart=rd,_r.parseInt=id,_r.random=Uf,_r.reduce=bc,_r.reduceRight=yc,_r.repeat=od,_r.replace=ad,_r.result=Nf,_r.round=dh,_r.runInContext=e,_r.sample=xc,_r.size=kc,_r.snakeCase=sd,_r.some=Sc,_r.sortedIndex=mu,_r.sortedIndexBy=vu,_r.sortedIndexOf=gu,_r.sortedLastIndex=bu,_r.sortedLastIndexBy=yu,_r.sortedLastIndexOf=wu,_r.startCase=cd,_r.startsWith=ld,_r.subtract=hh,_r.sum=ph,_r.sumBy=mh,_r.template=fd,_r.times=Zd,_r.toFinite=ql,_r.toInteger=Gl,_r.toLength=Kl,_r.toLower=dd,_r.toNumber=Yl,_r.toSafeInteger=Jl,_r.toString=Zl,_r.toUpper=hd,_r.trim=pd,_r.trimEnd=md,_r.trimStart=vd,_r.truncate=gd,_r.unescape=bd,_r.uniqueId=eh,_r.upperCase=yd,_r.upperFirst=wd,_r.each=cc,_r.eachRight=lc,_r.first=Js,zd(_r,function(){var e={};return Ai(_r,(function(t,n){dt.call(_r.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),_r.VERSION=s,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){_r[e].placeholder=_r})),_n(["drop","take"],(function(e,t){Er.prototype[e]=function(n){n=n===a?1:jt(Gl(n),0);var r=this.__filtered__&&!t?new Er(this):this.clone();return r.__filtered__?r.__takeCount__=Vt(n,r.__takeCount__):r.__views__.push({size:Vt(n,F),type:e+(r.__dir__<0?"Right":"")}),r},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_n(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==P||n==R;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Wa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_n(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),_n(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(Md)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=xo((function(e,t){return"function"===typeof e?new Er(this):this.map((function(n){return Hi(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(Fc(Wa(e)))},Er.prototype.slice=function(e,t){e=Gl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Er(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(t=Gl(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(F)},Ai(Er.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=_r[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(_r.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Er,c=s[0],l=u||sl(t),f=function(e){var t=i.apply(_r,Dn([e],s));return r&&d?t[0]:t};l&&n&&"function"===typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=o&&!d,m=u&&!h;if(!o&&l){t=m?t:new Er(this);var v=e.apply(t,s);return v.__actions__.push({func:qu,args:[f],thisArg:a}),new Or(v,d)}return p&&m?e.apply(this,s):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),_n(["pop","push","shift","sort","splice","unshift"],(function(e){var t=st[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);_r.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(sl(i)?i:[],e)}return this[n]((function(n){return t.apply(sl(n)?n:[],e)}))}})),Ai(Er.prototype,(function(e,t){var n=_r[t];if(n){var r=n.name+"",i=ln[r]||(ln[r]=[]);i.push({name:t,func:n})}})),ln[ya(a,w).name]=[{name:"wrapper",func:a}],Er.prototype.clone=Tr,Er.prototype.reverse=Dr,Er.prototype.value=Mr,_r.prototype.at=Gu,_r.prototype.chain=Ku,_r.prototype.commit=Yu,_r.prototype.next=Xu,_r.prototype.plant=Zu,_r.prototype.reverse=Qu,_r.prototype.toJSON=_r.prototype.valueOf=_r.prototype.value=ec,_r.prototype.first=_r.prototype.head,Tt&&(_r.prototype[Tt]=Ju),_r},Cr=_r();"object"===o(n("3c35"))&&n("3c35")?(un._=Cr,i=function(){return Cr}.call(t,n,t,r),i===a||(r.exports=i)):ln?((ln.exports=Cr)._=Cr,cn._=Cr):un._=Cr}).call(void 0)}).call(this,n("c8ba"),n("62e4")(e))},5899:function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},5924:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=m,t.addClass=v,t.removeClass=g,t.setStyle=y;var i=n("2b0e"),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=o.default.prototype.$isServer,u=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,l=s?0:Number(document.documentMode),f=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},d=function(e){return e.replace(u,(function(e,t,n,r){return r?n.toUpperCase():n})).replace(c,"Moz$1")},h=t.on=function(){return!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),p=t.off=function(){return!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var r=function r(){n&&n.apply(this,arguments),p(e,t,r)};h(e,t,r)};function m(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function v(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(e.classList?e.classList.add(a):m(e,a)||(n+=" "+a))}e.classList||e.setAttribute("class",n)}}function g(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):m(e,a)&&(r=r.replace(" "+a+" "," ")))}e.classList||e.setAttribute("class",f(r))}}var b=t.getStyle=l<9?function(e,t){if(!s){if(!e||!t)return null;t=d(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(n){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;t=d(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}};function y(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":r(t)))for(var i in t)t.hasOwnProperty(i)&&y(e,i,t[i]);else t=d(t),"opacity"===t&&l<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}var w=t.isScroll=function(e,t){if(!s){var n=null!==t&&void 0!==t,r=b(e,n?t?"overflow-y":"overflow-x":"overflow");return r.match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!s){var n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(w(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(s||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},5926:function(e,t,n){"use strict";var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,u=arguments;function c(){o=Number(new Date),n.apply(a,u)}function l(){i=void 0}r&&!i&&c(),i&&clearTimeout(i),void 0===r&&s>e?c():!0!==t&&(i=setTimeout(r?l:c,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},5980:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){(function(){var t=e,n=t.lib,r=n.Base,i=t.enc,o=i.Utf8,a=t.algo;a.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,c=0;c<n;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})})()}))},"59ed":function(e,t,n){"use strict";var r=n("1626"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},"5a34":function(e,t,n){"use strict";var r=n("44e7"),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},"5a47":function(e,t,n){"use strict";var r=n("23e7"),i=n("04f8"),o=n("d039"),a=n("7418"),s=n("7b0b"),u=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:u},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},"5a94":function(e,t,n){var r=n("b367")("keys"),i=n("8b1a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"5c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5c96":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=46)}([function(e,t){e.exports=n("d940")},function(e,t){e.exports=n("5924")},function(e,t){e.exports=n("8122")},function(e,t){e.exports=n("d010")},function(e,t){e.exports=n("6b7c")},function(e,t){e.exports=n("e974")},function(e,t){e.exports=n("2b0e")},function(e,t){e.exports=n("7f4d")},function(e,t){e.exports=n("f3ad")},function(e,t){e.exports=n("2bb5")},function(e,t){e.exports=n("417f")},function(e,t){e.exports=n("5128")},function(e,t){e.exports=n("4897")},function(e,t){e.exports=n("eedf")},function(e,t){e.exports=n("dcdc")},function(e,t){e.exports=n("4010")},function(e,t){e.exports=n("a742")},function(e,t){e.exports=n("0e15")},function(e,t){e.exports=n("14e9")},function(e,t){e.exports=n("d397")},function(e,t){e.exports=n("d7d1")},function(e,t){e.exports=n("5488")},function(e,t){e.exports=n("41f8")},function(e,t){e.exports=n("12f2")},function(e,t){e.exports=n("92fa")},function(e,t){e.exports=n("597f")},function(e,t){e.exports=n("299c")},function(e,t){e.exports=n("2a5e")},function(e,t){e.exports=n("5858")},function(e,t){e.exports=n("845f")},function(e,t){e.exports=n("8bbc")},function(e,t){e.exports=n("e62d")},function(e,t){e.exports=n("7fc1")},function(e,t){e.exports=n("c56a")},function(e,t){e.exports=n("c284")},function(e,t){e.exports=n("e452")},function(e,t){e.exports=n("9619")},function(e,t){e.exports=n("4e4b")},function(e,t){e.exports=n("e772")},function(e,t){e.exports=n("c098")},function(e,t){e.exports=n("722f")},function(e,t){e.exports=n("a15e")},function(e,t){e.exports=n("e450")},function(e,t){e.exports=n("4726")},function(e,t){e.exports=n("f494")},function(e,t){e.exports=n("6ac9")},function(e,t,n){e.exports=n(47)},function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"el-pager",on:{click:e.onPagerClick}},[e.pageCount>0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)},i=[];r._withStripped=!0;var o={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),r=this.pageCount,i=this.currentPage,o=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=i-o:-1!==t.className.indexOf("quicknext")&&(n=i+o)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,o=!1;r>e&&(n>e-t&&(i=!0),n<r-t&&(o=!0));var a=[];if(i&&!o)for(var s=r-(e-2),u=s;u<r;u++)a.push(u);else if(!i&&o)for(var c=2;c<e;c++)a.push(c);else if(i&&o)for(var l=Math.floor(e/2)-1,f=n-l;f<=n+l;f++)a.push(f);else for(var d=2;d<r;d++)a.push(d);return this.showPrevMore=i,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},a=o;function s(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}var u=s(a,r,i,!1,null,null,null);u.options.__file="packages/pagination/src/pager.vue";var c=u.exports,l=n(37),f=n.n(l),d=n(38),h=n.n(d),p=n(8),m=n.n(p),v=n(4),g=n.n(v),b=n(2),y={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&e>4&&e<22&&e%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),r={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},i=t.split(",").map((function(e){return e.trim()})),o=e("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],i.forEach((function(e){"->"!==e?a?o.children.push(r[e]):n.children.push(r[e]):a=!0})),a&&n.children.unshift(o),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[g.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(b["valueEquals"])(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:f.a,ElOption:h.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[g.a],components:{ElInput:m.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[g.a],render:function(e){return"number"===typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:c},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t="number"===typeof this.internalPageCount,n=void 0;return t?e<1?n=1:e>this.internalPageCount&&(n=this.internalPageCount):(isNaN(e)||e<1)&&(n=1),(void 0===n&&isNaN(e)||0===n)&&(n=1),void 0===n?e:n},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(y.name,y)}},w=y,x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},_=[];x._withStripped=!0;var C=n(11),k=n.n(C),S=n(9),O=n.n(S),E=n(3),T=n.n(E),D={name:"ElDialog",mixins:[k.a,T.a,O.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},M=D,A=s(M,x,_,!1,null,null,null);A.options.__file="packages/dialog/src/component.vue";var N=A.exports;N.install=function(e){e.component(N.name,N)};var P=N,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyEnter(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.close(t)}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,r){return n("li",{key:r,class:{highlighted:e.highlightedIndex===r},attrs:{id:e.id+"-item-"+r,role:"option","aria-selected":e.highlightedIndex===r},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)},R=[];I._withStripped=!0;var z=n(17),B=n.n(z),L=n(10),$=n.n(L),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},j=[];F._withStripped=!0;var V=n(5),H=n.n(V),W=n(18),U=n.n(W),q={components:{ElScrollbar:U.a},mixins:[H.a,T.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},G=q,K=s(G,F,j,!1,null,null,null);K.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var Y=K.exports,X=n(23),J=n.n(X),Z={name:"ElAutocomplete",mixins:[T.a,J()("input"),O.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:m.a,ElAutocompleteSuggestions:Y},directives:{Clickoutside:$.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(b["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1})))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1}))},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li"),r=n[e],i=t.scrollTop,o=r.offsetTop;o+r.scrollHeight>i+t.clientHeight&&(t.scrollTop+=r.scrollHeight),o<i&&(t.scrollTop-=r.scrollHeight),this.highlightedIndex=e;var a=this.getInput();a.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=B()(this.debounce,this.getData),this.$on("item-click",(function(t){e.select(t)}));var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},Q=Z,ee=s(Q,I,R,!1,null,null,null);ee.options.__file="packages/autocomplete/src/autocomplete.vue";var te=ee.exports;te.install=function(e){e.component(te.name,te)};var ne,re,ie=te,oe=n(13),ae=n.n(oe),se=n(29),ue=n.n(se),ce={name:"ElDropdown",componentName:"ElDropdown",mixins:[T.a,O.a],directives:{Clickoutside:$.a},components:{ElButton:ae.a,ElButtonGroup:ue.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(b["generateId"])()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(t)>-1?(o=38===t?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,r=this.hide,i=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var u=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),u.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),u.addEventListener("mouseenter",n),u.addEventListener("mouseleave",r)):"click"===t&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,r=this.splitButton,i=this.type,o=this.dropdownSize,a=this.disabled,s=function(e){t.$emit("click",e),n()},u=null;if(r)u=e("el-button-group",[e("el-button",{attrs:{type:i,size:o,disabled:a},nativeOn:{click:s}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:i,size:o,disabled:a},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{u=this.$slots.default;var c=u[0].data||{},l=c.attrs,f=void 0===l?{}:l;a&&!f.disabled&&(f.disabled=!0,c.attrs=f)}var d=a?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":a}},[u,d])}},le=ce,fe=s(le,ne,re,!1,null,null,null);fe.options.__file="packages/dropdown/src/dropdown.vue";var de=fe.exports;de.install=function(e){e.component(de.name,de)};var he=de,pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},me=[];pe._withStripped=!0;var ve={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[H.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},ge=ve,be=s(ge,pe,me,!1,null,null,null);be.options.__file="packages/dropdown/src/dropdown-menu.vue";var ye=be.exports;ye.install=function(e){e.component(ye.name,ye)};var we=ye,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},_e=[];xe._withStripped=!0;var Ce={name:"ElDropdownItem",mixins:[T.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},ke=Ce,Se=s(ke,xe,_e,!1,null,null,null);Se.options.__file="packages/dropdown/src/dropdown-item.vue";var Oe=Se.exports;Oe.install=function(e){e.component(Oe.name,Oe)};var Ee=Oe,Te=Te||{};Te.Utils=Te.Utils||{},Te.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(Te.Utils.attemptFocus(n)||Te.Utils.focusFirstDescendant(n))return!0}return!1},Te.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(Te.Utils.attemptFocus(n)||Te.Utils.focusLastDescendant(n))return!0}return!1},Te.Utils.attemptFocus=function(e){if(!Te.Utils.isFocusable(e))return!1;Te.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return Te.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},Te.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Te.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},Te.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var De=Te.Utils,Me=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};Me.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},Me.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},Me.prototype.addListeners=function(){var e=this,t=De.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(r){r.addEventListener("keydown",(function(r){var i=!1;switch(r.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),i=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),i=!0;break;case t.tab:De.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:i=!0,r.currentTarget.click();break}return i&&(r.preventDefault(),r.stopPropagation()),!1}))}))};var Ae=Me,Ne=function(e){this.domNode=e,this.submenu=null,this.init()};Ne.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new Ae(this,e)),this.addListeners()},Ne.prototype.addListeners=function(){var e=this,t=De.keys;this.domNode.addEventListener("keydown",(function(n){var r=!1;switch(n.keyCode){case t.down:De.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),r=!0;break;case t.up:De.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),r=!0;break;case t.tab:De.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:r=!0,n.currentTarget.click();break}r&&n.preventDefault()}))};var Pe=Ne,Ie=function(e){this.domNode=e,this.init()};Ie.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,(function(e){return 1===e.nodeType})).forEach((function(e){new Pe(e)}))};var Re,ze,Be=Ie,Le=n(1),$e={name:"ElMenu",render:function(e){var t=e("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?e("el-menu-collapse-transition",[t]):t},componentName:"ElMenu",mixins:[T.a,O.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(e,t){var n={props:{mode:"out-in"},on:{beforeEnter:function(e){e.style.opacity=.2},enter:function(e){Object(Le["addClass"])(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(Le["removeClass"])(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(Le["hasClass"])(e,"el-menu--collapse")?(Object(Le["removeClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Le["addClass"])(e,"el-menu--collapse")):(Object(Le["addClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Le["removeClass"])(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(Le["addClass"])(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}}};return e("transition",n,t.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(e){this.items[e]||(this.activeIndex=null),this.updateActiveIndex(e)},defaultOpeneds:function(e){this.collapse||(this.openedMenus=e)},collapse:function(e){e&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",e)}},methods:{updateActiveIndex:function(e){var t=this.items[e]||this.items[this.activeIndex]||this.items[this.defaultActive];t?(this.activeIndex=t.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(e){if(e=e.replace("#",""),/^[0-9a-fA-F]{3}$/.test(e)){e=e.split("");for(var t=2;t>=0;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),r=n.red,i=n.green,o=n.blue;return t>0?(r*=1-t,i*=1-t,o*=1-t):(r+=(255-r)*t,i+=(255-i)*t,o+=(255-o)*t),"rgb("+Math.round(r)+", "+Math.round(i)+", "+Math.round(o)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(e){return-1!==t.indexOf(e)}))),this.openedMenus.push(e))},closeMenu:function(e){var t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath,r=-1!==this.openedMenus.indexOf(t);r?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,r=e.indexPath,i=this.activeIndex,o=null!==e.index;o&&(this.activeIndex=e.index),this.$emit("select",n,r,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(e,(function(e){if(t.activeIndex=i,e){if("NavigationDuplicated"===e.name)return;console.error(e)}}))},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];if(n&&"horizontal"!==this.mode&&!this.collapse){var r=n.indexPath;r.forEach((function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)}))}},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,(function(){}),t)}catch(r){console.error(r)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach((function(e){return t.openMenu(e,n)}))},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new Be(this.$el),this.$watch("items",this.updateActiveIndex)}},Fe=$e,je=s(Fe,Re,ze,!1,null,null,null);je.options.__file="packages/menu/src/menu.vue";var Ve=je.exports;Ve.install=function(e){e.component(Ve.name,Ve)};var He,We,Ue=Ve,qe=n(21),Ge=n.n(qe),Ke={inject:["rootMenu"],computed:{indexPath:function(){var e=[this.index],t=this.$parent;while("ElMenu"!==t.$options.componentName)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){var e=this.$parent;while(e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName))e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},Ye={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:H.a.props.offset,boundariesPadding:H.a.props.boundariesPadding,popperOptions:H.a.props.popperOptions},data:H.a.data,methods:H.a.methods,beforeDestroy:H.a.beforeDestroy,deactivated:H.a.deactivated},Xe={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[Ke,T.a,Ye],components:{ElCollapseTransition:Ge.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick((function(e){t.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach((function(t){n[t].active&&(e=!0)})),Object.keys(t).forEach((function(n){t[n].active&&(e=!0)})),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){var e=!0,t=this.$parent;while(t&&t!==this.rootMenu){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var r=this.rootMenu,i=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||i||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.rootMenu.openMenu(t.index,t.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)}),this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){e.mouseInChild=!0,clearTimeout(e.timeout)})),this.$on("mouse-leave-child",(function(){e.mouseInChild=!1,clearTimeout(e.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,r=this.opened,i=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,u=this.currentPlacement,c=this.menuTransitionName,l=this.mode,f=this.disabled,d=this.popperClass,h=this.$slots,p=this.isFirstLevel,m=e("transition",{attrs:{name:c}},[e("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+l,d],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+u],style:{backgroundColor:s.backgroundColor||""}},[h.default])])]),v=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:s.backgroundColor||""}},[h.default])]),g="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":r,"is-disabled":f},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[i,o,{backgroundColor:a}]},[h.title,e("i",{class:["el-submenu__icon-arrow",g]})]),this.isMenuPopup?m:v])}},Je=Xe,Ze=s(Je,He,We,!1,null,null,null);Ze.options.__file="packages/menu/src/submenu.vue";var Qe=Ze.exports;Qe.install=function(e){e.component(Qe.name,Qe)};var et=Qe,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)},nt=[];tt._withStripped=!0;var rt=n(26),it=n.n(rt),ot={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[Ke,T.a],components:{ElTooltip:it.a},props:{index:{default:null,validator:function(e){return"string"===typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},at=ot,st=s(at,tt,nt,!1,null,null,null);st.options.__file="packages/menu/src/menu-item.vue";var ut=st.exports;ut.install=function(e){e.component(ut.name,ut)};var ct=ut,lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:e.levelPadding+"px"}},[e.$slots.title?e._t("title"):[e._v(e._s(e.title))]],2),n("ul",[e._t("default")],2)])},ft=[];lt._withStripped=!0;var dt={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},ht=dt,pt=s(ht,lt,ft,!1,null,null,null);pt.options.__file="packages/menu/src/menu-item-group.vue";var mt=pt.exports;mt.install=function(e){e.component(mt.name,mt)};var vt=mt,gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},bt=[];gt._withStripped=!0;var yt=void 0,wt="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",xt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function _t(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=xt.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:r,borderSize:i,boxSizing:n}}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;yt||(yt=document.createElement("textarea"),document.body.appendChild(yt));var r=_t(e),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;yt.setAttribute("style",s+";"+wt),yt.value=e.value||e.placeholder||"";var u=yt.scrollHeight,c={};"border-box"===a?u+=o:"content-box"===a&&(u-=i),yt.value="";var l=yt.scrollHeight-i;if(null!==t){var f=l*t;"border-box"===a&&(f=f+i+o),u=Math.max(f,u),c.minHeight=f+"px"}if(null!==n){var d=l*n;"border-box"===a&&(d=d+i+o),u=Math.min(d,u)}return c.height=u+"px",yt.parentNode&&yt.parentNode.removeChild(yt),yt=null,c}var kt=n(7),St=n.n(kt),Ot=n(19),Et={name:"ElInput",componentName:"ElInput",mixins:[T.a,O.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return St()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,r=e.maxRows;this.textareaCalcStyle=Ct(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:Ct(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(Ot["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},Tt=Et,Dt=s(Tt,gt,bt,!1,null,null,null);Dt.options.__file="packages/input/src/input.vue";var Mt=Dt.exports;Mt.install=function(e){e.component(Mt.name,Mt)};var At=Mt,Nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},Pt=[];Nt._withStripped=!0;var It={bind:function(e,t,n){var r=null,i=void 0,o=Object(b["isMac"])()?100:200,a=function(){return n.context[t.expression].apply()},s=function(){Date.now()-i<o&&a(),clearInterval(r),r=null};Object(Le["on"])(e,"mousedown",(function(e){0===e.button&&(i=Date.now(),Object(Le["once"])(document,"mouseup",s),clearInterval(r),r=setInterval(a,o))}))}},Rt={name:"ElInputNumber",mixins:[J()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:It},components:{ElInput:m.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},zt=Rt,Bt=s(zt,Nt,Pt,!1,null,null,null);Bt.options.__file="packages/input-number/src/input-number.vue";var Lt=Bt.exports;Lt.install=function(e){e.component(Lt.name,Lt)};var $t=Lt,Ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},jt=[];Ft._withStripped=!0;var Vt={name:"ElRadio",mixins:[T.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},Ht=Vt,Wt=s(Ht,Ft,jt,!1,null,null,null);Wt.options.__file="packages/radio/src/radio.vue";var Ut=Wt.exports;Ut.install=function(e){e.component(Ut.name,Ut)};var qt=Ut,Gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)},Kt=[];Gt._withStripped=!0;var Yt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Xt={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[T.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var e=(this.$vnode.data||{}).tag;return e&&"component"!==e||(e="div"),e},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),i=r.length,o=[].indexOf.call(r,t),a=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Yt.LEFT:case Yt.UP:e.stopPropagation(),e.preventDefault(),0===o?(a[i-1].click(),a[i-1].focus()):(a[o-1].click(),a[o-1].focus());break;case Yt.RIGHT:case Yt.DOWN:o===i-1?(e.stopPropagation(),e.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus());break;default:break}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},Jt=Xt,Zt=s(Jt,Gt,Kt,!1,null,null,null);Zt.options.__file="packages/radio/src/radio-group.vue";var Qt=Zt.exports;Qt.install=function(e){e.component(Qt.name,Qt)};var en=Qt,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},nn=[];tn._withStripped=!0;var rn={name:"ElRadioButton",mixins:[T.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.dispatch("ElRadioGroup","handleChange",e.value)}))}}},on=rn,an=s(on,tn,nn,!1,null,null,null);an.options.__file="packages/radio/src/radio-button.vue";var sn=an.exports;sn.install=function(e){e.component(sn.name,sn)};var un=sn,cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},ln=[];cn._withStripped=!0;var fn={name:"ElCheckbox",mixins:[T.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},dn=fn,hn=s(dn,cn,ln,!1,null,null,null);hn.options.__file="packages/checkbox/src/checkbox.vue";var pn=hn.exports;pn.install=function(e){e.component(pn.name,pn)};var mn=pn,vn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])},gn=[];vn._withStripped=!0;var bn={name:"ElCheckboxButton",mixins:[T.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},yn=bn,wn=s(yn,vn,gn,!1,null,null,null);wn.options.__file="packages/checkbox/src/checkbox-button.vue";var xn=wn.exports;xn.install=function(e){e.component(xn.name,xn)};var _n=xn,Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},kn=[];Cn._withStripped=!0;var Sn={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[T.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},On=Sn,En=s(On,Cn,kn,!1,null,null,null);En.options.__file="packages/checkbox/src/checkbox-group.vue";var Tn=En.exports;Tn.install=function(e){e.component(Tn.name,Tn)};var Dn=Tn,Mn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.switchValue(t)}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])},An=[];Mn._withStripped=!0;var Nn={name:"ElSwitch",mixins:[J()("input"),O.a,T.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){t.$refs.input&&(t.$refs.input.checked=t.checked)}))},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Pn=Nn,In=s(Pn,Mn,An,!1,null,null,null);In.options.__file="packages/switch/src/component.vue";var Rn=In.exports;Rn.install=function(e){e.component(Rn.name,Rn)};var zn=Rn,Bn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},Ln=[];Bn._withStripped=!0;var $n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},Fn=[];$n._withStripped=!0;var jn={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[H.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Vn=jn,Hn=s(Vn,$n,Fn,!1,null,null,null);Hn.options.__file="packages/select/src/select-dropdown.vue";var Wn=Hn.exports,Un=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},qn=[];Un._withStripped=!0;var Gn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn={mixins:[T.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":Gn(e))&&"object"===("undefined"===typeof t?"undefined":Gn(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(b["getValueByPath"])(e,n)===Object(b["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(b["getValueByPath"])(e,n)===Object(b["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(b["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Yn=Kn,Xn=s(Yn,Un,qn,!1,null,null,null);Xn.options.__file="packages/select/src/option.vue";var Jn=Xn.exports,Zn=n(30),Qn=n.n(Zn),er=n(15),tr=n(27),nr=n.n(tr),rr={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},ir={mixins:[T.a,g.a,J()("reference"),rr],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(b["isIE"])()&&!Object(b["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:m.a,ElSelectMenu:Wn,ElOption:Jn,ElTag:Qn.a,ElScrollbar:U.a},directives:{Clickoutside:$.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(b["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(Ot["isKorean"])(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");nr()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(b["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(b["getValueByPath"])(a.value,this.valueKey)===Object(b["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var u=n||r||i?"":String(e),c={value:e,currentLabel:u};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,i=-1;return e.some((function(e,n){return Object(b["getValueByPath"])(e,r)===Object(b["getValueByPath"])(t,r)&&(i=n,!0)})),i}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(b["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=B()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=B()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(er["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},r=t.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(er["removeResizeListener"])(this.$el,this.handleResize)}},or=ir,ar=s(or,Bn,Ln,!1,null,null,null);ar.options.__file="packages/select/src/select.vue";var sr=ar.exports;sr.install=function(e){e.component(sr.name,sr)};var ur=sr;Jn.install=function(e){e.component(Jn.name,Jn)};var cr=Jn,lr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])},fr=[];lr._withStripped=!0;var dr={mixins:[T.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(e){return!0===e.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},hr=dr,pr=s(hr,lr,fr,!1,null,null,null);pr.options.__file="packages/select/src/option-group.vue";var mr=pr.exports;mr.install=function(e){e.component(mr.name,mr)};var vr=mr,gr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},br=[];gr._withStripped=!0;var yr={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},wr=yr,xr=s(wr,gr,br,!1,null,null,null);xr.options.__file="packages/button/src/button.vue";var _r=xr.exports;_r.install=function(e){e.component(_r.name,_r)};var Cr=_r,kr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},Sr=[];kr._withStripped=!0;var Or={name:"ElButtonGroup"},Er=Or,Tr=s(Er,kr,Sr,!1,null,null,null);Tr.options.__file="packages/button/src/button-group.vue";var Dr=Tr.exports;Dr.install=function(e){e.component(Dr.name,Dr)};var Mr=Dr,Ar=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Nr=[];Ar._withStripped=!0;var Pr=n(14),Ir=n.n(Pr),Rr=n(36),zr=n(39),Br=n.n(zr),Lr="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,$r=function(e,t){e&&e.addEventListener&&e.addEventListener(Lr?"DOMMouseScroll":"mousewheel",(function(e){var n=Br()(e);t&&t.apply(this,[e,n])}))},Fr={bind:function(e,t){$r(e,t.value)}},jr=n(6),Vr=n.n(jr),Hr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},Ur=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":Hr(e))},qr=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map((function(t){return"string"===typeof t?Object(b["getValueByPath"])(n,t):t(n,r,e)}))):("$key"!==t&&Ur(n)&&"$value"in n&&(n=n.$value),[Ur(n)?Object(b["getValueByPath"])(n,t):n])},a=function(e,t){if(r)return r(e.value,t.value);for(var n=0,i=e.key.length;n<i;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:o?o(e,t):null}})).sort((function(e,t){var r=a(e,t);return r||(r=e.index-t.index),r*n})).map((function(e){return e.value}))},Gr=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},Kr=function(e,t){for(var n=null,r=0;r<e.columns.length;r++){var i=e.columns[r];if(i.columnKey===t){n=i;break}}return n},Yr=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?Gr(e,n[0]):null},Xr=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"===typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=e,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"===typeof t)return t.call(null,e)},Jr=function(e,t){var n={};return(e||[]).forEach((function(e,r){n[Xr(e,t)]={row:e,index:r}})),n};function Zr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qr(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(Zr(t,r)){var i=t[r];"undefined"!==typeof i&&(n[r]=i)}return n}function ei(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function ti(e){return"undefined"!==typeof e&&(e=ei(e),isNaN(e)&&(e=80)),e}function ni(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function ri(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function ii(e,t,n){var r=!1,i=e.indexOf(t),o=-1!==i,a=function(){e.push(t),r=!0},s=function(){e.splice(i,1),r=!0};return"boolean"===typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}function oi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(e){return!(Array.isArray(e)&&e.length)};function o(e,a,s){t(e,a,s),a.forEach((function(e){if(e[r])t(e,null,s+1);else{var a=e[n];i(a)||o(e,a,s+1)}}))}e.forEach((function(e){if(e[r])t(e,null,0);else{var a=e[n];i(a)||o(e,a,0)}}))}var ai=function(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0},si={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.rowKey,i=e.defaultExpandAll,o=e.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var a=Jr(o,r);this.states.expandRows=n.reduce((function(e,t){var n=Xr(t,r),i=a[n];return i&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=ii(this.states.expandRows,e,t);n&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,r=t.rowKey,i=Jr(n,r);this.states.expandRows=e.reduce((function(e,t){var n=i[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,r=void 0===n?[]:n,i=t.rowKey;if(i){var o=Jr(r,i);return!!o[Xr(e,i)]}return-1!==r.indexOf(e)}}},ui={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,r=void 0===n?[]:n,i=t.rowKey,o=null;i&&(o=Object(b["arrayFind"])(r,(function(t){return Xr(t,i)===e}))),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,n=this.table,r=t.currentRow;if(e&&e!==r)return t.currentRow=e,void n.$emit("current-change",e,r);!e&&r&&(t.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,r=e._currentRowKey,i=e.data||[],o=e.currentRow;if(-1===i.indexOf(o)&&o){if(n){var a=Xr(o,n);this.setCurrentRowByKey(a)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,o)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},li={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,r=e.lazyColumnIdentifier,i=Object.keys(n),o={};return i.length?(i.forEach((function(e){if(n[e].length){var i={children:[]};n[e].forEach((function(e){var n=Xr(e,t);i.children.push(n),e[r]&&!o[n]&&(o[n]={children:[]})})),o[e]=i}})),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,r=t.lazyColumnIdentifier,i=t.rowKey,o=t.lazy,a={};return oi(e,(function(e,t,n){var r=Xr(e,i);Array.isArray(t)?a[r]={children:t.map((function(e){return Xr(e,i)})),level:n}:o&&(a[r]={children:[],lazy:!0,level:n})}),n,r),a},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),r={};if(n.length){var i=this.states,o=i.treeData,a=i.defaultExpandAll,s=i.expandRowKeys,u=i.lazy,c=[],l=function(e,t){var n=a||s&&-1!==s.indexOf(t);return!!(e&&e.expanded||n)};n.forEach((function(t){var n=o[t],i=ci({},e[t]);if(i.expanded=l(n,t),i.lazy){var a=n||{},s=a.loaded,u=void 0!==s&&s,f=a.loading,d=void 0!==f&&f;i.loaded=!!u,i.loading=!!d,c.push(t)}r[t]=i}));var f=Object.keys(t);u&&f.length&&c.length&&f.forEach((function(e){var n=o[e],i=t[e].children;if(-1!==c.indexOf(e)){if(0!==r[e].children.length)throw new Error("[ElTable]children must be an empty array.");r[e].children=i}else{var a=n||{},s=a.loaded,u=void 0!==s&&s,f=a.loading,d=void 0!==f&&f;r[e]={lazy:!0,loaded:!!u,loading:!!d,expanded:l(n,e),children:i,level:""}}}))}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,o=Xr(e,r),a=o&&i[o];if(o&&a&&"expanded"in a){var s=a.expanded;t="undefined"===typeof t?!a.expanded:t,i[o].expanded=t,s!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY()}},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,r=t.treeData,i=t.rowKey,o=Xr(e,i),a=r[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(e,o,a):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var r=this,i=this.table.load,o=this.states.treeData;i&&!o[t].loaded&&(o[t].loading=!0,i(e,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var i=r.states,o=i.lazyTreeNodeMap,a=i.treeData;a[t].loading=!1,a[t].loaded=!0,a[t].expanded=!0,n.length&&r.$set(o,t,n),r.table.$emit("expand-change",e,!0)})))}}},fi=function(e,t){var n=t.sortingColumn;return n&&"string"!==typeof n.sortable?qr(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},di=function e(t){var n=[];return t.forEach((function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)})),n},hi=Vr.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[si,ui,li],methods:{assertRowKey:function(){var e=this.states.rowKey;if(!e)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter((function(e){return!0===e.fixed||"left"===e.fixed})),e.rightFixedColumns=t.filter((function(e){return"right"===e.fixed})),e.fixedColumns.length>0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var r=di(n),i=di(e.fixedColumns),o=di(e.rightFixedColumns);e.leafColumnsLength=r.length,e.fixedLeafColumnsLength=i.length,e.rightFixedLeafColumnsLength=o.length,e.columns=[].concat(i).concat(r).concat(o),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection,n=void 0===t?[]:t;return n.indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;t.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,r=e.selection,i=void 0;if(n){i=[];var o=Jr(r,n),a=Jr(t,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&i.push(o[s].row)}else i=r.filter((function(e){return-1===t.indexOf(e)}));if(i.length){var u=r.filter((function(e){return-1===i.indexOf(e)}));e.selection=u,this.table.$emit("selection-change",u.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=ii(this.states.selection,e,t);if(r){var i=(this.states.selection||[]).slice();n&&this.table.$emit("select",i,e),this.table.$emit("selection-change",i)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.selection,i=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||r.length);e.isAllSelected=i;var o=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&ii(r,t,i)&&(o=!0):ii(r,t,i)&&(o=!0)})),o&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.data,i=Jr(t,n);r.forEach((function(e){var r=Xr(e,n),o=i[r];o&&(t[o.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.selectable,i=e.data||[];if(0!==i.length){var o=void 0;n&&(o=Jr(t,n));for(var a=function(e){return o?!!o[Xr(e,n)]:-1!==t.indexOf(e)},s=!0,u=0,c=0,l=i.length;c<l;c++){var f=i[c],d=r&&r.call(null,f,c);if(a(f))u++;else if(!r||d){s=!1;break}}0===u&&(s=!1),e.isAllSelected=s}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,r={};return e.forEach((function(e){n.filters[e.id]=t,r[e.columnKey||e.id]=t})),r},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var e=this,t=this.states,n=t._data,r=t.filters,i=n;Object.keys(r).forEach((function(n){var r=t.filters[n];if(r&&0!==r.length){var o=Gr(e.states,n);o&&o.filterMethod&&(i=i.filter((function(e){return r.some((function(t){return o.filterMethod.call(null,t,e,o)}))})))}})),t.filteredData=i},execSort:function(){var e=this.states;e.data=fi(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};r&&(a=St()(a,r.filterPanels)),i&&(a=St()(a,i.filterPanels)),o&&(a=St()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if("string"===typeof e&&(e=[e]),Array.isArray(e)){var u=e.map((function(e){return Kr(t,e)}));s.forEach((function(e){var t=u.find((function(t){return t.id===e}));t&&(a[e].filteredValue=[])})),this.commit("filterChange",{column:u,values:[],silent:!0,multi:!0})}else s.forEach((function(e){a[e].filteredValue=[]})),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){var e=this.states;e.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){var n=this.states.columns.some((function(e){var t=e.type;return"expand"===t}));n?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});hi.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,r){var i=e._columns;r&&(i=r.children,i||(i=r.children=[])),"undefined"!==typeof n?i.splice(n,0,t):i.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){var r=e._columns;n&&(r=n.children,r||(r=n.children=[])),r&&r.splice(r.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,r=t.order,i=t.init;if(n){var o=Object(b["arrayFind"])(e.columns,(function(e){return e.property===n}));o&&(o.order=r,this.updateSort(o,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,r=e.sortProp,i=e.sortOrder;null===i&&(e.sortingColumn=null,e.sortProp=null);var o={filter:!0};this.execQuery(o),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:r,order:i}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,r=t.values,i=t.silent,o=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit("filter-change",o),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},hi.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t[e].apply(this,[this.states].concat(r))},hi.prototype.updateTableScrollY=function(){Vr.a.nextTick(this.table.updateScrollY)};var pi=hi;function mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new pi;return n.table=e,n.toggleAllSelection=B()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function vi(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n],i=void 0;"string"===typeof r?i=function(){return this.store.states[r]}:"function"===typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(t[n]=i)})),t}var gi=n(31),bi=n.n(gi);function yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var wi=function(){function e(t){for(var n in yi(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=bi()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){var e=this.height;if(null===e)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var n=t.querySelector(".el-table__body"),r=this.scrollY,i=n.offsetHeight>this.bodyHeight;return this.scrollY=i,r!==i}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!Vr.a.prototype.$isServer){var r=this.table.$el;if(e=ni(e),this.height=e,!r&&(e||0===e))return Vr.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(r.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(r.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.columns;return t.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return Vr.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,r=t.appendWrapper,i=t.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return Vr.a.nextTick((function(){return e.updateElsHeight()}));var u=this.tableHeight=this.table.$el.clientHeight,c=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=u-s-c+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var l=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?u-(l?0:this.gutterWidth):u,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;var t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!Vr.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter((function(e){return"number"!==typeof e.width}));if(r.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),i.length>0&&e){r.forEach((function(e){n+=e.width||e.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=t-o){this.scrollX=!1;var a=t-o-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+a;else{var s=i.reduce((function(e,t){return e+(t.minWidth||80)}),0),u=a/s,c=0;i.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*u);c+=n,e.realWidth=(e.minWidth||80)+n}})),i[0].realWidth=(i[0].minWidth||80)+a-c}}else this.scrollX=!0,i.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else r.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var l=this.store.states.fixedColumns;if(l.length>0){var f=0;l.forEach((function(e){f+=e.realWidth||e.width})),this.fixedWidth=f}var d=this.store.states.rightFixedColumns;if(d.length>0){var h=0;d.forEach((function(e){h+=e.realWidth||e.width})),this.rightFixedWidth=h}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;n.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),xi=wi,_i={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n=e.getFlattenColumns(),r={};n.forEach((function(e){r[e.id]=e}));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=a.getAttribute("name"),u=r[s];u&&a.setAttribute("width",u.realWidth||u.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=t.length;n<r;n++){var i=t[n];i.setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var o=this.$el.querySelectorAll("th.gutter"),a=0,s=o.length;a<s;a++){var u=o[a];u.style.width=e.scrollY?e.gutterWidth+"px":"0",u.style.display=e.scrollY?"":"none"}}}},Ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ki={name:"ElTableRow",props:["columns","row","index","isSelected","isExpanded","store","context","firstDefaultColumnIndex","treeRowData","treeIndent","columnsHidden","getSpan","getColspanRealWidth","getCellStyle","getCellClass","handleCellMouseLeave","handleCellMouseEnter","fixed"],components:{ElCheckbox:Ir.a},render:function(){var e=this,t=arguments[0],n=this.columns,r=this.row,i=this.index,o=this.store,a=this.context,s=this.firstDefaultColumnIndex,u=this.treeRowData,c=this.treeIndent,l=this.columnsHidden,f=void 0===l?[]:l,d=this.isSelected,h=this.isExpanded;return t("tr",[n.map((function(l,p){var m=e.getSpan(r,l,i,p),v=m.rowspan,g=m.colspan;if(!v||!g)return null;var b=Ci({},l);b.realWidth=e.getColspanRealWidth(n,g,p);var y={store:o,isSelected:d,isExpanded:h,_self:a,column:b,row:r,$index:i};return p===s&&u&&(y.treeNode={indent:u.level*c,level:u.level},"boolean"===typeof u.expanded&&(y.treeNode.expanded=u.expanded,"loading"in u&&(y.treeNode.loading=u.loading),"noLazyChildren"in u&&(y.treeNode.noLazyChildren=u.noLazyChildren))),t("td",{style:e.getCellStyle(i,p,r,l),class:e.getCellClass(i,p,r,l),attrs:{rowspan:v,colspan:g},on:{mouseenter:function(t){return e.handleCellMouseEnter(t,r)},mouseleave:e.handleCellMouseLeave}},[l.renderCell.call(e._renderProxy,e.$createElement,y,f[p])])}))])}},Si="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ei={name:"ElTableBody",mixins:[_i],components:{ElCheckbox:Ir.a,ElTooltip:it.a,TableRow:ki},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,n=this.data||[];return e("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})}))]),e("tbody",[n.reduce((function(e,n){return e.concat(t.wrappedRowRender(n,e.length))}),[]),e("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:Oi({table:function(){return this.$parent}},vi({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some((function(e){var t=e.type;return"expand"===t}))}}),{columnsHidden:function(){var e=this;return this.columns.map((function(t,n){return e.isColumnHidden(n)}))},firstDefaultColumnIndex:function(){return Object(b["arrayFindIndex"])(this.columns,(function(e){var t=e.type;return"default"===t}))}}),watch:{"store.states.hoverRow":function(e,t){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(e){return setTimeout(e,16)}),r((function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[t],o=r[e];i&&Object(Le["removeClass"])(i,"hover-row"),o&&Object(Le["addClass"])(o,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=B()(50,(function(e){return e.handleShowPopper()}))},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?Xr(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,r){var i=1,o=1,a=this.table.spanMethod;if("function"===typeof a){var s=a({row:e,column:t,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],o=s[1]):"object"===("undefined"===typeof s?"undefined":Si(s))&&(i=s.rowspan,o=s.colspan)}return{rowspan:i,colspan:o}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=this.store.states.selection,r=["el-table__row"];if(this.table.highlightCurrentRow&&e===this.store.states.currentRow&&r.push("current-row"),this.table.highlightSelectionRow)for(var i=0;i<n.length;i++)ai(e,n[i])&&r.push("selection-row");this.stripe&&t%2===1&&r.push("el-table__row--striped");var o=this.table.rowClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&r.push("expanded"),r},getCellStyle:function(e,t,n,r){var i=this.table.cellStyle;return"function"===typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getCellClass:function(e,t,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(t)&&i.push("is-hidden");var o=this.table.cellClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var r=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return r.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,r=Wr(e);if(r){var i=Yr(n,r),o=n.hoverState={cell:r,column:i,row:t};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var a=e.target.querySelector(".cell");if(Object(Le["hasClass"])(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();s.setStart(a,0),s.setEnd(a,a.childNodes.length);var u=s.getBoundingClientRect().width,c=(parseInt(Object(Le["getStyle"])(a,"paddingLeft"),10)||0)+(parseInt(Object(Le["getStyle"])(a,"paddingRight"),10)||0);if((u+c>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var l=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,l.referenceElm=r,l.$refs.popper&&(l.$refs.popper.style.display="none"),l.doDestroy(),l.setExpectedState(!0),this.activateTooltip(l)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=Wr(e);if(n){var r=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",r.row,r.column,r.cell,e)}},handleMouseEnter:B()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:B()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var r=this.table,i=Wr(e),o=void 0;i&&(o=Yr(r,i),o&&r.$emit("cell-"+n,t,o,i,e)),r.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var r=this,i=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,u=this.getRowClass(e,t),c=!0;n&&(u.push("el-table__row--level-"+n.level),c=n.display);var l=c?null:{display:"none"};return i(ki,{style:[l,this.getRowStyle(e,t)],class:u,key:this.getKeyOfRow(e,t),nativeOn:{dblclick:function(t){return r.handleDoubleClick(t,e)},click:function(t){return r.handleClick(t,e)},contextmenu:function(t){return r.handleContextMenu(t,e)},mouseenter:function(e){return r.handleMouseEnter(t)},mouseleave:this.handleMouseLeave},attrs:{columns:a,row:e,index:t,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:s,treeRowData:n,treeIndent:o,columnsHidden:this.columnsHidden,getSpan:this.getSpan,getColspanRealWidth:this.getColspanRealWidth,getCellStyle:this.getCellStyle,getCellClass:this.getCellClass,handleCellMouseEnter:this.handleCellMouseEnter,handleCellMouseLeave:this.handleCellMouseLeave,isSelected:this.store.isSelected(e),isExpanded:this.store.states.expandRows.indexOf(e)>-1,fixed:this.fixed}})},wrappedRowRender:function(e,t){var n=this,r=this.$createElement,i=this.store,o=i.isRowExpanded,a=i.assertRowKey,s=i.states,u=s.treeData,c=s.lazyTreeNodeMap,l=s.childrenColumnName,f=s.rowKey;if(this.hasExpandColumn&&o(e)){var d=this.table.renderExpanded,h=this.rowRender(e,t);return d?[[h,r("tr",{key:"expanded-row__"+h.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[d(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),h)}if(Object.keys(u).length){a();var p=Xr(e,f),m=u[p],v=null;m&&(v={expanded:m.expanded,level:m.level,display:!0},"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(v.noLazyChildren=!(m.children&&m.children.length)),v.loading=m.loading));var g=[this.rowRender(e,t,v)];if(m){var b=0,y=function e(r,i){r&&r.length&&i&&r.forEach((function(r){var o={display:i.display&&i.expanded,level:i.level+1},a=Xr(r,f);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if(m=Oi({},u[a]),m&&(o.expanded=m.expanded,m.level=m.level||o.level,m.display=!(!m.expanded||!o.display),"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(o.noLazyChildren=!(m.children&&m.children.length)),o.loading=m.loading)),b++,g.push(n.rowRender(r,t+b,o)),m){var s=c[a]||r[l];e(s,m)}}))};m.display=!0;var w=c[p]||e[l];y(w,m)}return g}return this.rowRender(e,t)}}},Ti=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])}))],2)])])},Di=[];Ti._withStripped=!0;var Mi=[];!Vr.a.prototype.$isServer&&document.addEventListener("click",(function(e){Mi.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var Ai={open:function(e){e&&Mi.push(e)},close:function(e){var t=Mi.indexOf(e);-1!==t&&Mi.splice(e,1)}},Ni=n(32),Pi=n.n(Ni),Ii={name:"ElTableFilterPanel",mixins:[H.a,g.a],directives:{Clickoutside:$.a},components:{ElCheckbox:Ir.a,ElCheckboxGroup:Pi.a,ElScrollbar:U.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,"undefined"!==typeof e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&("undefined"!==typeof e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?Ai.open(e):Ai.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<C["PopupManager"].zIndex&&(this.popperJS._popper.style.zIndex=C["PopupManager"].nextZIndex())}}},Ri=Ii,zi=s(Ri,Ti,Di,!1,null,null,null);zi.options.__file="packages/table/src/filter-panel.vue";var Bi=zi.exports,Li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$i=function e(t){var n=[];return t.forEach((function(t){t.children?(n.push(t),n.push.apply(n,e(t.children))):n.push(t)})),n},Fi=function(e){var t=1,n=function e(n,r){if(r&&(n.level=r.level+1,t<n.level&&(t=n.level)),n.children){var i=0;n.children.forEach((function(t){e(t,n),i+=t.colSpan})),n.colSpan=i}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var r=[],i=0;i<t;i++)r.push([]);var o=$i(e);return o.forEach((function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r},ji={name:"ElTableHeader",mixins:[_i],render:function(e){var t=this,n=this.store.states.originColumns,r=Fi(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":i,"has-gutter":this.hasGutter}]},[this._l(r,(function(n,r){return e("tr",{style:t.getHeaderRowStyle(r),class:t.getHeaderRowClass(r)},[n.map((function(i,o){return e("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,i)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,i)},click:function(e){return t.handleHeaderClick(e,i)},contextmenu:function(e){return t.handleHeaderContextMenu(e,i)}},style:t.getHeaderCellStyle(r,o,n,i),class:t.getHeaderCellClass(r,o,n,i),key:i.id},[e("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(t._renderProxy,e,{column:i,$index:o,store:t.store,_self:t.$parent.$vnode.context}):i.label,i.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,i)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,i,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,i,"descending")}}})]):"",i.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,i)}}},[e("i",{class:["el-icon-arrow-down",i.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"el-table__cell gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:Ir.a},computed:Li({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},vi({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,r=t.order,i=!0;e.store.commit("sort",{prop:n,order:r,init:i})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,r=0;r<e;r++)n+=t[r].colSpan;var i=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"===typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"===typeof n?t.push(n):"function"===typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,r){var i=this.table.headerCellStyle;return"function"===typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getHeaderCellClass:function(e,t,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===e&&this.isCellHidden(t,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var o=this.table.headerCellClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},toggleAllSelection:function(){this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(Le["hasClass"])(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new Vr.a(Bi),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=i,o.cell=r,o.column=t,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el,o=i.getBoundingClientRect().left,a=this.$el.querySelector("th."+t.id),s=a.getBoundingClientRect(),u=s.left-o+30;Object(Le["addClass"])(a,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:s.right-o,startColumnLeft:s.left-o,tableLeft:o};var c=r.$refs.resizeProxy;c.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var l=function(e){var t=e.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+t;c.style.left=Math.max(u,r)+"px"},f=function i(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,u=o.startLeft,f=parseInt(c.style.left,10),d=f-s;t.width=t.realWidth=d,r.$emit("header-dragend",t.width,u-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(Le["removeClass"])(a,"noclick")}),0)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",f)}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){var n=e.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-e.pageX<8?(i.cursor="col-resize",Object(Le["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(i.cursor="",Object(Le["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var r=n.indexOf(t||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(e,t,n){e.stopPropagation();var r=t.order===n?null:n||this.toggleOrder(t),i=e.target;while(i&&"TH"!==i.tagName)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(Le["hasClass"])(i,"noclick"))Object(Le["removeClass"])(i,"noclick");else if(t.sortable){var o=this.store.states,a=o.sortProp,s=void 0,u=o.sortingColumn;(u!==t||u===t&&null===u.order)&&(u&&(u.order=null),o.sortingColumn=t,a=t.property),s=t.order=r||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hi={name:"ElTableFooter",mixins:[_i],render:function(e){var t=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(e,r){if(0!==r){var i=t.store.states.data.map((function(t){return Number(t[e.property])})),o=[],a=!0;i.forEach((function(e){if(!isNaN(e)){a=!1;var t=(""+e).split(".")[1];o.push(t?t.length:0)}}));var s=Math.max.apply(null,o);n[r]=a?"":i.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(s,20)))}),0)}else n[r]=t.sumText})),e("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("tbody",{class:[{"has-gutter":this.hasGutter}]},[e("tr",[this.columns.map((function(r,i){return e("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:[].concat(t.getRowClasses(r,i),["el-table__cell"])},[e("div",{class:["cell",r.labelClassName]},[n[i]])])})),this.hasGutter?e("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Vi({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},vi({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<e;i++)r+=t[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ui=1,qi={name:"ElTable",mixins:[g.a,O.a],directives:{Mousewheel:Fr},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,highlightSelectionRow:{type:Boolean,default:!1},currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:ji,TableFooter:Hi,TableBody:Ei,ElCheckbox:Ir.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){var e=this.layout.updateScrollY();e&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n=this.bodyWrapper;if(Math.abs(t.spinY)>0){var r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,r=t.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,r=e.offsetWidth,i=e.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,u=o.fixedBodyWrapper,c=o.rightFixedBodyWrapper;a&&(a.scrollLeft=t),s&&(s.scrollLeft=t),u&&(u.scrollTop=n),c&&(c.scrollTop=n);var l=i-r-1;this.scrollPosition=t>=l?"right":0===t?"left":"middle"},throttleSyncPostion:Object(Rr["throttle"])(16,(function(){this.syncPostion()})),onScroll:function(e){var t=window.requestAnimationFrame;t?t(this.syncPostion):this.throttleSyncPostion()},bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(er["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(er["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,r=n.width,i=n.height,o=t.offsetWidth;r!==o&&(e=!0);var a=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==a&&(e=!0),e&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:Wi({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,r=e.gutterWidth;return t?t-(n?r:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,r=e.bodyHeight,i=e.footerHeight,o=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var a=ni(this.maxHeight);if("number"===typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=ni(this.maxHeight);if("number"===typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),e-=this.layout.footerHeight,{"max-height":e+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},vi({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+Ui++,this.debouncedUpdateLayout=Object(Rr["debounce"])(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,r=e.children,i=void 0===r?"children":r;this.store=mi(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i});var o=new xi({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:o,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},Gi=qi,Ki=s(Gi,Ar,Nr,!1,null,null,null);Ki.options.__file="packages/table/src/table.vue";var Yi=Ki.exports;Yi.install=function(e){e.component(Yi.name,Yi)};var Xi=Yi,Ji={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Zi={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},on:{input:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,r=t.column,i=t.isSelected,o=t.store,a=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:i,disabled:!!r.selectable&&!r.selectable.call(null,n,a)},on:{input:function(){o.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){var n=t.column;return n.label||"#"},renderCell:function(e,t){var n=t.$index,r=t.column,i=n+1,o=r.index;return"number"===typeof o?i=n+o:"function"===typeof o&&(i=o(n)),e("div",[i])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,r=t.store,i=t.isExpanded,o=["el-table__expand-icon"];i&&o.push("el-table__expand-icon--expanded");var a=function(e){e.stopPropagation(),r.toggleRowExpansion(n)};return e("div",{class:o,on:{click:a}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Qi(e,t){var n=t.row,r=t.column,i=t.$index,o=r.property,a=o&&Object(b["getPropByPath"])(n,o).v;return r&&r.formatter?r.formatter(n,r,a,i):a}function eo(e,t){var n=t.row,r=t.treeNode,i=t.store;if(!r)return null;var o=[],a=function(e){e.stopPropagation(),i.loadOrToggle(n)};if(r.indent&&o.push(e("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!==typeof r.expanded||r.noLazyChildren)o.push(e("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],u=["el-icon-arrow-right"];r.loading&&(u=["el-icon-loading"]),o.push(e("div",{class:s,on:{click:a}},[e("i",{class:u})]))}return o}var to=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no=1,ro={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every((function(e){return["ascending","descending",null].indexOf(e)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var e=this.$parent;while(e&&!e.tableId)e=e.$parent;return e},columnOrTableParent:function(){var e=this.$parent;while(e&&!e.tableId&&!e.columnId)e=e.$parent;return e},realWidth:function(){return ei(this.width)},realMinWidth:function(){return ti(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){return Array.isArray(n)&&n.forEach((function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(e){var t=e.type,n=Zi[t]||{};return Object.keys(n).forEach((function(t){var r=n[t];void 0!==r&&(e[t]="className"===t?e[t]+" "+r:r)})),e},setColumnRenders:function(e){var t=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==e.type&&(e.renderHeader=function(n,r){var i=t.$scopedSlots.header;return i?i(r):e.label});var n=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,t){return e("div",{class:"cell"},[n(e,t)])},this.owner.renderExpanded=function(e,n){return t.$scopedSlots.default?t.$scopedSlots.default(n):t.$slots.default}):(n=n||Qi,e.renderCell=function(r,i){var o=null;o=t.$scopedSlots.default?t.$scopedSlots.default(i):n(r,i);var a=eo(r,i),s={class:"cell",style:{}};return e.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("div",s,[a,o])}),e},registerNormalWatchers:function(){var e=this,t=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],n={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},r=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(r).forEach((function(t){var r=n[t];e.$watch(t,(function(t){e.columnConfig[r]=t}))}))},registerComplexWatchers:function(){var e=this,t=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},r=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(r).forEach((function(t){var r=n[t];e.$watch(t,(function(t){e.columnConfig[r]=t;var n="fixed"===r;e.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:Ir.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+no++;var t=this.type||"default",n=""===this.sortable||this.sortable,r=to({},Ji[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),i=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],o=["sortMethod","sortBy","sortOrders"],a=["selectable","reserveSelection"],s=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"],u=this.getPropsData(i,o,a,s);u=Qr(r,u);var c=ri(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);u=c(u),this.columnConfig=u,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?t.columnConfig:null)},destroyed:function(){if(this.$parent){var e=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null)}},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(ro.name,ro)}},io=ro,oo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[n("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):n("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type||"years"===e.type||"months"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?n("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])},ao=[];oo._withStripped=!0;var so=n(0),uo={props:{appendToBody:H.a.props.appendToBody,offset:H.a.props.offset,boundariesPadding:H.a.props.boundariesPadding,arrowOffset:H.a.props.arrowOffset,transformOrigin:H.a.props.transformOrigin},methods:H.a.methods,data:function(){return St()({visibleArrow:!0},H.a.data)},beforeDestroy:H.a.beforeDestroy},co={date:"yyyy-MM-dd",month:"yyyy-MM",months:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy",years:"yyyy"},lo=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates","months","years"],fo=function(e,t){return"timestamp"===t?e.getTime():Object(so["formatDate"])(e,t)},ho=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(so["parseDate"])(e,t)},po=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return[fo(n,t),fo(r,t)]}return""},mo=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var r=e[0],i=e[1];return[ho(r,t),ho(i,t)]}return[]},vo={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=Object(so["getWeekNumber"])(e),r=e.getMonth(),i=new Date(e);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var o=Object(so["formatDate"])(i,t);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n),o},parser:function(e,t){return vo.date.parser(e,t)}},date:{formatter:fo,parser:ho},datetime:{formatter:fo,parser:ho},daterange:{formatter:po,parser:mo},monthrange:{formatter:po,parser:mo},datetimerange:{formatter:po,parser:mo},timerange:{formatter:po,parser:mo},time:{formatter:fo,parser:ho},month:{formatter:fo,parser:ho},year:{formatter:fo,parser:ho},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map((function(e){return fo(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:ho(e,t)}))}},months:{formatter:function(e,t){return e.map((function(e){return fo(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:ho(e,t)}))}},years:{formatter:function(e,t){return e.map((function(e){return fo(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:ho(e,t)}))}}},go={left:"bottom-start",center:"bottom",right:"bottom-end"},bo=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var i=(vo[n]||vo["default"]).parser,o=t||co[n];return i(e,o,r)},yo=function(e,t,n){if(!e)return null;var r=(vo[n]||vo["default"]).formatter,i=t||co[n];return r(e,i)},wo=function(e,t){var n=function(e,t){var n=e instanceof Date,r=t instanceof Date;return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},r=e instanceof Array,i=t instanceof Array;return r&&i?e.length===t.length&&e.every((function(e,r){return n(e,t[r])})):!r&&!i&&n(e,t)},xo=function(e){return"string"===typeof e||e instanceof String},_o=function(e){return null===e||void 0===e||xo(e)||Array.isArray(e)&&2===e.length&&e.every(xo)},Co={mixins:[T.a,uo],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:_o},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:_o},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:m.a},directives:{Clickoutside:$.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){wo(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"months"===this.type?"months":"years"===this.type?"years":"day"},haveTrigger:function(){return"undefined"!==typeof this.showTrigger?this.showTrigger:-1!==lo.indexOf(this.type)},displayValue:function(){var e=yo(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type||"years"===this.type||"months"===this.type?e.join(", "):e:""},parsedValue:function(){if(!this.value)return this.value;if("time-select"===this.type)return this.value;var e=Object(so["isDateObject"])(this.value)||Array.isArray(this.value)&&this.value.every(so["isDateObject"]);return e?this.value:this.valueFormat?bo(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(e){return new Date(e)})):new Date(this.value)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return t=this.ranged?this.id&&this.id[0]:this.id,t&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return this.ranged&&(t=this.id&&this.id[1]),t&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=go[this.align]||go.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(e){return e.blur()}))},parseValue:function(e){var t=Object(so["isDateObject"])(e)||Array.isArray(e)&&e.every(so["isDateObject"]);return this.valueFormat&&!t&&bo(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(so["isDateObject"])(e)||Array.isArray(e)&&e.every(so["isDateObject"]);return this.valueFormat&&t?yo(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return bo(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return yo(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var e=this.parseString(this.displayValue);e&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);if(t){this.userInput=[this.formatToString(t),this.displayValue[1]];var n=[t,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);if(t){this.userInput=[this.displayValue[0],this.formatToString(t)];var n=[this.picker.value&&this.picker.value[0],t];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"===typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type||"years"===this.type||"months"===this.type)){var e=bo(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(e)}},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===lo.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout((function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===lo.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()})))},mountPicker:function(){var e=this;this.picker=new Vr.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(t){e.picker.format=t}));var t=function(){var t=e.pickerOptions;if(t&&t.selectableRange){var n=t.selectableRange,r=vo.datetimerange.parser,i=co.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map((function(t){return r(t,i,e.rangeSeparator)}))}for(var o in t)t.hasOwnProperty(o)&&"selectableRange"!==o&&(e.picker[o]=t[o]);e.format&&(e.picker.format=e.format)};t(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return t()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,r){0!==e.refInput.length&&(r&&"min"!==r?"max"===r&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){wo(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);wo(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},ko=Co,So=s(ko,oo,ao,!1,null,null,null);So.options.__file="packages/date-picker/src/picker.vue";var Oo=So.exports,Eo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{"selection-mode":e.selectionMode,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{"selection-mode":e.selectionMode,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&("date"===e.currentView||"month"===e.currentView||"year"===e.currentView),expression:"footerVisible && (currentView === 'date' || currentView === 'month' || currentView === 'year')"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode&&"months"!==e.selectionMode&&"years"!==e.selectionMode,expression:"selectionMode !== 'dates' && selectionMode !== 'months' && selectionMode !== 'years'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n "+e._s(e.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1)])])},To=[];Eo._withStripped=!0;var Do=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Mo=[];Do._withStripped=!0;var Ao=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:r,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?r%12||12:r)).slice(-2))+e._s(e.amPm(r)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]):e._e()]:e._e()],2)},No=[];Ao._withStripped=!0;var Po={components:{ElScrollbar:U.a},directives:{repeatClick:It},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(so["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(so["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(so["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(so["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(so["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,r=t.disabled;r||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=e>0?1:-1;var a=r.length;while(a--&&o)i=(i+e+r.length)%r.length,r[i]||o--;if(r[i])return}else i=(i+e+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick((function(){return t.emitSelectRange(t.currentScrollbar)}))},amPm:function(e){var t="a"===this.amPmMode.toLowerCase();if(!t)return"";var n="A"===this.amPmMode,r=e<12?" am":" pm";return n&&(r=r.toUpperCase()),r},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Io=Po,Ro=s(Io,Ao,No,!1,null,null,null);Ro.options.__file="packages/date-picker/src/basic/time-spinner.vue";var zo=Ro.exports,Bo={mixins:[g.a],components:{TimeSpinner:zo},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(so["limitTimeRange"])(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(so["isDate"])(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(so["clearMilliseconds"])(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(so["clearMilliseconds"])(Object(so["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.$refs.spinner.scrollDown(i),void e.preventDefault()}},isValidValue:function(e){return Object(so["timeWithinRange"])(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=t.indexOf(this.selectionRange[0]),i=(r+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[i])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},Lo=Bo,$o=s(Lo,Do,Mo,!1,null,null,null);$o.options.__file="packages/date-picker/src/panel/time.vue";var Fo=$o.exports,jo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])},Vo=[];jo._withStripped=!0;var Ho=function(e){var t=Object(so["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(so["range"])(t).map((function(e){return Object(so["nextDate"])(n,e)}))},Wo={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(so["isDate"])(e)}},date:{},selectionMode:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"===typeof this.disabledDate&&Ho(e).every(this.disabledDate),t.current=Object(b["arrayFindIndex"])(Object(b["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===e}))>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(Le["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;if("years"===this.selectionMode){var r=this.value||[],i=Object(b["arrayFindIndex"])(r,(function(e){return e.getFullYear()===Number(n)})),o=i>-1?[].concat(r.slice(0,i),r.slice(i+1)):[].concat(r,[new Date(n)]);this.$emit("pick",o)}else this.$emit("pick",Number(n))}}}},Uo=Wo,qo=s(Uo,jo,Vo,!1,null,null,null);qo.options.__file="packages/date-picker/src/basic/year-table.vue";var Go=qo.exports,Ko=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,r){return n("tr",{key:r},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])},Yo=[];Ko._withStripped=!0;var Xo=function(e,t){var n=Object(so["getDayCountOfMonth"])(e,t),r=new Date(e,t,1);return Object(so["range"])(n).map((function(e){return Object(so["nextDate"])(r,e)}))},Jo=function(e){return new Date(e.getFullYear(),e.getMonth())},Zo=function(e){return"number"===typeof e||"string"===typeof e?Jo(new Date(e)).getTime():e instanceof Date?Jo(e).getTime():NaN},Qo=function(e,t){var n="function"===typeof t?Object(b["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},ea={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(so["isDate"])(e)||Array.isArray(e)&&e.every(so["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[g.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Zo(e)!==Zo(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Zo(e)!==Zo(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},r=this.date.getFullYear(),i=new Date,o=e.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Xo(r,o).every(this.disabledDate),n.current=Object(b["arrayFindIndex"])(Object(b["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===r&&e.getMonth()===o}))>=0,n.today=i.getFullYear()===r&&i.getMonth()===o,n.default=a.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=Zo(e),t=Zo(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var a=r[i],s=0,u=a.length;s<u;s++){var c=a[s],l=4*i+s,f=new Date(this.date.getFullYear(),l).getTime();c.inRange=e&&f>=e&&f<=t,c.start=e&&f===e,c.end=t&&f===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(Le["hasClass"])(t,"disabled")){var n=t.cellIndex,r=t.parentNode.rowIndex,i=4*r+n,o=this.getMonthOfCell(i);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("months"===this.selectionMode){var a=this.value||[],s=this.date.getFullYear(),u=Object(b["arrayFindIndex"])(a,(function(e){return e.getFullYear()===s&&e.getMonth()===i}))>=0?Qo(a,(function(e){return e.getTime()===o.getTime()})):[].concat(a,[o]);this.$emit("pick",u)}else this.$emit("pick",i)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,r=[],i=Zo(new Date),o=0;o<3;o++)for(var a=t[o],s=function(t){var s=a[t];s||(s={row:o,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var u=4*o+t,c=new Date(e.date.getFullYear(),u).getTime();s.inRange=c>=Zo(e.minDate)&&c<=Zo(e.maxDate),s.start=e.minDate&&c===Zo(e.minDate),s.end=e.maxDate&&c===Zo(e.maxDate);var l=c===i;l&&(s.type="today"),s.text=u;var f=new Date(c);s.disabled="function"===typeof n&&n(f),s.selected=Object(b["arrayFind"])(r,(function(e){return e.getTime()===f.getTime()})),e.$set(a,t,s)},u=0;u<4;u++)s(u);return t}}},ta=ea,na=s(ta,Ko,Yo,!1,null,null,null);na.options.__file="packages/date-picker/src/basic/month-table.vue";var ra=na.exports,ia=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,r){return n("th",{key:r},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])})),0)}))],2)])},oa=[];ia._withStripped=!0;var aa=["sun","mon","tue","wed","thu","fri","sat"],sa=function(e){return"number"===typeof e||"string"===typeof e?Object(so["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(so["clearTime"])(e).getTime():NaN},ua=function(e,t){var n="function"===typeof t?Object(b["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},ca={mixins:[g.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(so["isDate"])(e)||Array.isArray(e)&&e.every(so["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return aa.concat(aa).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(so["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(so["getFirstDayOfMonth"])(t),r=Object(so["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),i=Object(so["getDayCountOfMonth"])(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,u=this.startDate,c=this.disabledDate,l=this.cellClassName,f="dates"===this.selectionMode?Object(b["coerceTruthyValueToArray"])(this.value):[],d=sa(new Date),h=0;h<6;h++){var p=a[h];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(so["getWeekNumber"])(Object(so["nextDate"])(u,7*h+1))}));for(var m=function(t){var a=p[e.showWeekNumber?t+1:t];a||(a={row:h,column:t,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var m=7*h+t,v=Object(so["nextDate"])(u,m-o).getTime();a.inRange=v>=sa(e.minDate)&&v<=sa(e.maxDate),a.start=e.minDate&&v===sa(e.minDate),a.end=e.maxDate&&v===sa(e.maxDate);var g=v===d;if(g&&(a.type="today"),h>=0&&h<=1){var y=n+o<0?7+n+o:n+o;t+7*h>=y?a.text=s++:(a.text=i-(y-t%7)+1+7*h,a.type="prev-month")}else s<=r?a.text=s++:(a.text=s++-r,a.type="next-month");var w=new Date(v);a.disabled="function"===typeof c&&c(w),a.selected=Object(b["arrayFind"])(f,(function(e){return e.getTime()===w.getTime()})),a.customClass="function"===typeof l&&l(w),e.$set(p,e.showWeekNumber?t+1:t,a)},v=0;v<7;v++)m(v);if("week"===this.selectionMode){var g=this.showWeekNumber?1:0,y=this.showWeekNumber?7:6,w=this.isWeekActive(p[g+1]);p[g].inRange=w,p[g].start=w,p[y].inRange=w,p[y].end=w}}return a}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){sa(e)!==sa(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){sa(e)!==sa(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?i.push(e.type):(i.push("available"),"today"===e.type&&i.push("today")),"normal"===e.type&&r.some((function(n){return t.cellMatchesDate(e,n)}))&&i.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||i.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(i.push("in-range"),e.start&&i.push("start-date"),e.end&&i.push("end-date")),e.disabled&&i.push("disabled"),e.selected&&i.push("selected"),e.customClass&&i.push(e.customClass),i.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(so["nextDate"])(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),r=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===r?11:r-1),t.setFullYear(0===r?n-1:n)),"next-month"===e.type&&(t.setMonth(11===r?0:r+1),t.setFullYear(11===r?n+1:n)),t.setDate(parseInt(e.text,10)),Object(so["isDate"])(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,o=Object(so["prevDate"])(this.value,i);return o.getTime()===t.getTime()}return!1},markRange:function(e,t){e=sa(e),t=sa(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.startDate,i=this.rows,o=0,a=i.length;o<a;o++)for(var s=i[o],u=0,c=s.length;u<c;u++)if(!this.showWeekNumber||0!==u){var l=s[u],f=7*o+u+(this.showWeekNumber?-1:0),d=Object(so["nextDate"])(r,f-this.offsetDay).getTime();l.inRange=e&&d>=e&&d<=t,l.start=e&&d===e,l.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r="week"===this.selectionMode?1:t.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var o=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var a=Object(so["getWeekNumber"])(o),s=o.getFullYear()+"w"+a;this.$emit("pick",{year:o.getFullYear(),week:a,value:s,date:o})}else if("dates"===this.selectionMode){var u=this.value||[],c=i.selected?ua(u,(function(e){return e.getTime()===o.getTime()})):[].concat(u,[o]);this.$emit("pick",c)}}}}}},la=ca,fa=s(la,ia,oa,!1,null,null,null);fa.options.__file="packages/date-picker/src/basic/date-table.vue";var da=fa.exports,ha={mixins:[g.a],directives:{Clickoutside:$.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||"months"===this.selectionMode&&this.value||"years"===this.selectionMode&&this.value||(Object(so["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(so["isDate"])(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e?this.currentView="date":"years"===e?this.currentView="year":"months"===e&&(this.currentView="month")}},methods:{proxyTimePickerDataProperties:function(){var e=this,t=function(t){e.$refs.timepicker.format=t},n=function(t){e.$refs.timepicker.value=t},r=function(t){e.$refs.timepicker.date=t},i=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",i),t(this.timeFormat),n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(e)if(Array.isArray(e)){var o=e.map((function(e){return t.showTime?Object(so["clearMilliseconds"])(e):Object(so["clearTime"])(e)}));this.$emit.apply(this,["pick",o].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(so["clearMilliseconds"])(e):Object(so["clearTime"])(e)].concat(r));else this.$emit.apply(this,["pick",e].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(so["prevMonth"])(this.date)},nextMonth:function(){this.date=Object(so["nextMonth"])(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(so["prevYear"])(this.date,10):this.date=Object(so["prevYear"])(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(so["nextYear"])(this.date,10):this.date=Object(so["nextYear"])(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(so["isDate"])(e)){var r=this.value?Object(so["modifyTime"])(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(so["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(e,!0);n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Object(so["modifyDate"])(this.date,this.year,e,1),this.emit(this.date)):"months"===this.selectionMode?this.emit(e,!0):(this.date=Object(so["changeYearMonthAndClampDate"])(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(so["modifyDate"])(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(so["modifyWithTimeString"])(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(so["modifyDate"])(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Object(so["modifyDate"])(this.date,e,0,1),this.emit(this.date)):"years"===this.selectionMode?this.emit(e,!0):(this.date=Object(so["changeYearMonthAndClampDate"])(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode||"months"===this.selectionMode||"years"===this.selectionMode)this.emit(this.value);else{var e=this.value?this.value:Object(so["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=new Date(e),this.emit(e)}},resetView:function(){"month"===this.selectionMode||"months"===this.selectionMode?this.currentView="month":"year"===this.selectionMode||"years"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode,n=[38,40,37,39];this.visible&&!this.timePickerVisible&&(-1!==n.indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,r=31536e6,i=this.date.getTime(),o=new Date(this.date.getTime());while(Math.abs(i-o.getTime())<=r){var a=t[n];if(a.offset(o,a[e]),"function"!==typeof this.disabledDate||!this.disabledDate(o)){this.date=o,this.$emit("pick",o,!0);break}}},handleVisibleTimeChange:function(e){var t=Object(so["parseDate"])(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(so["modifyDate"])(t,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){var t=Object(so["parseDate"])(e,this.dateFormat);if(t){if("function"===typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(so["modifyTime"])(t,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(e){return e&&!isNaN(e)&&("function"!==typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(this.selectableRange.length>0)||Object(so["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Fo,YearTable:Go,MonthTable:ra,DateTable:da,ElInput:m.a,ElButton:ae.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(so["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode||"months"===this.selectionMode||"years"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(so["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(so["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(so["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(so["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},pa=ha,ma=s(pa,Eo,To,!1,null,null,null);ma.options.__file="packages/date-picker/src/panel/date.vue";var va=ma.exports,ga=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n "+e._s(e.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1):e._e()])])},ba=[];ga._withStripped=!0;var ya=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(so["nextDate"])(new Date(e),1)]:[new Date,Object(so["nextDate"])(new Date,1)]},wa={mixins:[g.a],directives:{Clickoutside:$.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(so["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(so["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(so["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(so["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(so["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(so["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(so["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate){var e="HH:mm:ss";t.$refs.maxTimePicker.selectableRange=[[Object(so["parseDate"])(Object(so["formatDate"])(t.minDate,e),e),Object(so["parseDate"])("23:59:59",e)]]}})),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()}))},value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(so["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(so["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=t===r&&n===i?Object(so["nextMonth"])(this.maxDate):this.maxDate}else this.rightDate=Object(so["nextMonth"])(this.leftDate);else this.leftDate=ya(this.defaultValue)[0],this.rightDate=Object(so["nextMonth"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=ya(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?r:Object(so["nextMonth"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ya(this.defaultValue)[0],this.rightDate=Object(so["nextMonth"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){if(this.dateUserInput[t]=e,e.length===this.dateFormat.length){var n=Object(so["parseDate"])(e,this.dateFormat);if(n){if("function"===typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(so["modifyDate"])(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(so["nextMonth"])(this.leftDate))):(this.maxDate=Object(so["modifyDate"])(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(so["prevMonth"])(n)))}}},handleDateChange:function(e,t){var n=Object(so["parseDate"])(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(so["modifyDate"])(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(so["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;if(this.timeUserInput[t]=e,e.length===this.timeFormat.length){var r=Object(so["parseDate"])(e,this.timeFormat);r&&("min"===t?(this.minDate=Object(so["modifyTime"])(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(so["modifyTime"])(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(e,t){var n=Object(so["parseDate"])(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(so["modifyTime"])(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(so["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(so["modifyWithTimeString"])(e.minDate,r[0]),o=Object(so["modifyWithTimeString"])(e.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=i,setTimeout((function(){t.maxDate=o,t.minDate=i}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(so["modifyTime"])(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Object(so["modifyTime"])(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(so["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(so["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(so["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(so["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(so["nextYear"])(this.rightDate):(this.leftDate=Object(so["nextYear"])(this.leftDate),this.rightDate=Object(so["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(so["nextMonth"])(this.rightDate):(this.leftDate=Object(so["nextMonth"])(this.leftDate),this.rightDate=Object(so["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(so["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(so["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(so["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(so["prevMonth"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(so["isDate"])(e[0])&&Object(so["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(so["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(so["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Fo,DateTable:da,ElInput:m.a,ElButton:ae.a}},xa=wa,_a=s(xa,ga,ba,!1,null,null,null);_a.options.__file="packages/date-picker/src/panel/date-range.vue";var Ca=_a.exports,ka=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])},Sa=[];ka._withStripped=!0;var Oa=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(so["nextMonth"])(new Date(e))]:[new Date,Object(so["nextMonth"])(new Date)]},Ea={mixins:[g.a],directives:{Clickoutside:$.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(so["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(so["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(so["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(so["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(so["nextYear"])(this.leftDate);else this.leftDate=Oa(this.defaultValue)[0],this.rightDate=Object(so["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Oa(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(so["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Oa(this.defaultValue)[0],this.rightDate=Object(so["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(so["modifyWithTimeString"])(e.minDate,r[0]),o=Object(so["modifyWithTimeString"])(e.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=i,setTimeout((function(){t.maxDate=o,t.minDate=i}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(so["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(so["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(so["nextYear"])(this.leftDate)),this.rightDate=Object(so["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(so["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(so["prevYear"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(so["isDate"])(e[0])&&Object(so["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(so["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(so["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:ra,ElInput:m.a,ElButton:ae.a}},Ta=Ea,Da=s(Ta,ka,Sa,!1,null,null,null);Da.options.__file="packages/date-picker/src/panel/month-range.vue";var Ma=Da.exports,Aa=function(e){return"daterange"===e||"datetimerange"===e?Ca:"monthrange"===e?Ma:va},Na={mixins:[Oo],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=Aa(e),this.mountPicker()):this.panel=Aa(e)}},created:function(){this.panel=Aa(this.type)},install:function(e){e.component(Na.name,Na)}},Pa=Na,Ia=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,(function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])})),0)],1)])},Ra=[];Ia._withStripped=!0;var za=function(e){var t=(e||"").split(":");if(t.length>=2){var n=parseInt(t[0],10),r=parseInt(t[1],10);return{hours:n,minutes:r}}return null},Ba=function(e,t){var n=za(e),r=za(t),i=n.minutes+60*n.hours,o=r.minutes+60*r.hours;return i===o?0:i>o?1:-1},La=function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)},$a=function(e,t){var n=za(e),r=za(t),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,La(i)},Fa={components:{ElScrollbar:U.a},watch:{value:function(e){var t=this;e&&this.$nextTick((function(){return t.scrollToOption()}))}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");nr()(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map((function(e){return e.value})).indexOf(this.value),n=-1!==this.items.map((function(e){return e.value})).indexOf(this.defaultValue),r=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(r)}))},scrollDown:function(e){var t=this.items,n=t.length,r=t.length,i=t.map((function(e){return e.value})).indexOf(this.value);while(r--)if(i=(i+e+n)%n,!t[i].disabled)return void this.$emit("pick",t[i].value,!0)},isValidValue:function(e){return-1!==this.items.filter((function(e){return!e.disabled})).map((function(e){return e.value})).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1},r=n[t.toString()];return this.scrollDown(r),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,r=[];if(e&&t&&n){var i=e;while(Ba(i,t)<=0)r.push({value:i,disabled:Ba(i,this.minTime||"-1:-1")<=0||Ba(i,this.maxTime||"100:100")>=0}),i=$a(i,n)}return r}}},ja=Fa,Va=s(ja,Ia,Ra,!1,null,null,null);Va.options.__file="packages/date-picker/src/panel/time-select.vue";var Ha=Va.exports,Wa={mixins:[Oo],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=Ha},install:function(e){e.component(Wa.name,Wa)}},Ua=Wa,qa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Ga=[];qa._withStripped=!0;var Ka=Object(so["parseDate"])("00:00:00","HH:mm:ss"),Ya=Object(so["parseDate"])("23:59:59","HH:mm:ss"),Xa=function(e){return Object(so["modifyDate"])(Ka,e.getFullYear(),e.getMonth(),e.getDate())},Ja=function(e){return Object(so["modifyDate"])(Ya,e.getFullYear(),e.getMonth(),e.getDate())},Za=function(e,t){return new Date(Math.min(e.getTime()+t,Ja(e).getTime()))},Qa={mixins:[g.a],components:{TimeSpinner:zo},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=Za(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=Za(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(so["clearMilliseconds"])(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(so["clearMilliseconds"])(e),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Xa(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Ja(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(so["limitTimeRange"])(this.minDate,t,this.format),this.maxDate=Object(so["limitTimeRange"])(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=t.indexOf(this.selectionRange[0]),i=(r+e+t.length)%t.length,o=t.length/2;i<o?this.$refs.minSpinner.emitSelectRange(n[i]):this.$refs.maxSpinner.emitSelectRange(n[i-o])},isValidValue:function(e){return Array.isArray(e)&&Object(so["timeWithinRange"])(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(so["timeWithinRange"])(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.spinner.scrollDown(i),void e.preventDefault()}}}},es=Qa,ts=s(es,qa,Ga,!1,null,null,null);ts.options.__file="packages/date-picker/src/panel/time-range.vue";var ns=ts.exports,rs={mixins:[Oo],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(e){this.picker?(this.unmountPicker(),this.type=e?"timerange":"time",this.panel=e?ns:Fo,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?ns:Fo)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?ns:Fo},install:function(e){e.component(rs.name,rs)}},is=rs,os=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},as=[];os._withStripped=!0;var ss={name:"ElPopover",mixins:[H.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(b["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(Le["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(Le["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(Le["on"])(n,"focusin",this.handleFocus),Object(Le["on"])(t,"focusout",this.handleBlur),Object(Le["on"])(n,"focusout",this.handleBlur)),Object(Le["on"])(t,"keydown",this.handleKeydown),Object(Le["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(Le["on"])(t,"click",this.doToggle),Object(Le["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(Le["on"])(t,"mouseenter",this.handleMouseEnter),Object(Le["on"])(n,"mouseenter",this.handleMouseEnter),Object(Le["on"])(t,"mouseleave",this.handleMouseLeave),Object(Le["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(Le["on"])(t,"focusin",this.doShow),Object(Le["on"])(t,"focusout",this.doClose)):(Object(Le["on"])(t,"mousedown",this.doShow),Object(Le["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(Le["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(Le["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(Le["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(Le["off"])(e,"click",this.doToggle),Object(Le["off"])(e,"mouseup",this.doClose),Object(Le["off"])(e,"mousedown",this.doShow),Object(Le["off"])(e,"focusin",this.doShow),Object(Le["off"])(e,"focusout",this.doClose),Object(Le["off"])(e,"mousedown",this.doShow),Object(Le["off"])(e,"mouseup",this.doClose),Object(Le["off"])(e,"mouseleave",this.handleMouseLeave),Object(Le["off"])(e,"mouseenter",this.handleMouseEnter),Object(Le["off"])(document,"click",this.handleDocumentClick)}},us=ss,cs=s(us,os,as,!1,null,null,null);cs.options.__file="packages/popover/src/main.vue";var ls=cs.exports,fs=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},ds={bind:function(e,t,n){fs(e,t,n)},inserted:function(e,t,n){fs(e,t,n)}};Vr.a.directive("popover",ds),ls.install=function(e){e.directive("popover",ds),e.component(ls.name,ls)},ls.directive=ds;var hs=ls,ps={name:"ElTooltip",mixins:[H.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(b["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new Vr.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=B()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(Le["on"])(this.referenceElm,"mouseenter",this.show),Object(Le["on"])(this.referenceElm,"mouseleave",this.hide),Object(Le["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(Le["on"])(this.referenceElm,"blur",this.handleBlur),Object(Le["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(Le["addClass"])(this.referenceElm,"focusing"):Object(Le["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)if(e[n]&&e[n].tag){t=e[n];break}return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(Le["off"])(e,"mouseenter",this.show),Object(Le["off"])(e,"mouseleave",this.hide),Object(Le["off"])(e,"focus",this.handleFocus),Object(Le["off"])(e,"blur",this.handleBlur),Object(Le["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(ps.name,ps)}},ms=ps,vs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n ")])],1)])])])},gs=[];vs._withStripped=!0;var bs=n(12),ys=n.n(bs),ws=n(40),xs=n.n(ws),_s=void 0,Cs={success:"success",info:"info",warning:"warning",error:"error"},ks={mixins:[k.a,g.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:m.a,ElButton:ae.a},computed:{icon:function(){var e=this.type,t=this.iconClass;return t||(e&&Cs[e]?"el-icon-"+Cs[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick((function(){t===e.uid&&e.doClose()}))}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),_s.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){e.action&&e.callback(e.action,e)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"===typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(bs["t"])("el.messagebox.error"),Object(Le["addClass"])(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"===typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(bs["t"])("el.messagebox.error"),Object(Le["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(Le["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(Le["removeClass"])(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(n){"prompt"===t.$type&&null!==e&&t.validate()}))}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){t.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,_s=new xs.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout((function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(Le["removeClass"])(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick((function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){_s.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Ss=ks,Os=s(Ss,vs,gs,!1,null,null,null);Os.options.__file="packages/message-box/src/main.vue";var Es=Os.exports,Ts=n(22),Ds="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ms={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},As=Vr.a.extend(Es),Ns=void 0,Ps=void 0,Is=[],Rs=function(e){if(Ns){var t=Ns.callback;"function"===typeof t&&(Ps.showInput?t(Ps.inputValue,e):t(e)),Ns.resolve&&("confirm"===e?Ps.showInput?Ns.resolve({value:Ps.inputValue,action:e}):Ns.resolve(e):!Ns.reject||"cancel"!==e&&"close"!==e||Ns.reject(e))}},zs=function(){Ps=new As({el:document.createElement("div")}),Ps.callback=Rs},Bs=function e(){if(Ps||zs(),Ps.action="",(!Ps.visible||Ps.closeTimer)&&Is.length>0){Ns=Is.shift();var t=Ns.options;for(var n in t)t.hasOwnProperty(n)&&(Ps[n]=t[n]);void 0===t.callback&&(Ps.callback=Rs);var r=Ps.callback;Ps.callback=function(t,n){r(t,n),e()},Object(Ts["isVNode"])(Ps.message)?(Ps.$slots.default=[Ps.message],Ps.message=null):delete Ps.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===Ps[e]&&(Ps[e]=!0)})),document.body.appendChild(Ps.$el),Vr.a.nextTick((function(){Ps.visible=!0}))}},Ls=function e(t,n){if(!Vr.a.prototype.$isServer){if("string"===typeof t||Object(Ts["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(r,i){Is.push({options:St()({},Ms,e.defaults,t),callback:n,resolve:r,reject:i}),Bs()}));Is.push({options:St()({},Ms,e.defaults,t),callback:n}),Bs()}};Ls.setDefaults=function(e){Ls.defaults=e},Ls.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ds(t))?(n=t,t=""):void 0===t&&(t=""),Ls(St()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Ls.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ds(t))?(n=t,t=""):void 0===t&&(t=""),Ls(St()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},Ls.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ds(t))?(n=t,t=""):void 0===t&&(t=""),Ls(St()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Ls.close=function(){Ps.doClose(),Ps.visible=!1,Is=[],Ns=null};var $s=Ls,Fs=$s,js=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[e._t("default")],2)},Vs=[];js._withStripped=!0;var Hs={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},Ws=Hs,Us=s(Ws,js,Vs,!1,null,null,null);Us.options.__file="packages/breadcrumb/src/breadcrumb.vue";var qs=Us.exports;qs.install=function(e){e.component(qs.name,qs)};var Gs=qs,Ks=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",e.to?"is-link":""],attrs:{role:"link"}},[e._t("default")],2),e.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:e.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[e._v(e._s(e.separator))])])},Ys=[];Ks._withStripped=!0;var Xs={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",(function(t){var n=e.to,r=e.$router;n&&r&&(e.replace?r.replace(n):r.push(n))}))}},Js=Xs,Zs=s(Js,Ks,Ys,!1,null,null,null);Zs.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Qs=Zs.exports;Qs.install=function(e){e.component(Qs.name,Qs)};var eu=Qs,tu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"el-form",class:[e.labelPosition?"el-form--label-"+e.labelPosition:"",{"el-form--inline":e.inline}]},[e._t("default")],2)},nu=[];tu._withStripped=!0;var ru={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length?"string"===typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields;t.forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!==typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e,r){e?t(e):n(r)}})));var r=!0,i=0;0===this.fields.length&&e&&e(!0);var o={};return this.fields.forEach((function(n){n.validate("",(function(n,a){n&&(r=!1),o=St()({},o,a),"function"===typeof e&&++i===t.fields.length&&e(r,o)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},iu=ru,ou=s(iu,tu,nu,!1,null,null,null);ou.options.__file="packages/form/src/form.vue";var au=ou.exports;au.install=function(e){e.component(au.name,au)};var su=au,uu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"===typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)},cu=[];uu._withStripped=!0;var lu,fu,du=n(41),hu=n.n(du),pu={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,r={};if(n&&"auto"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+"px")}return e("div",{class:"el-form-item__label-wrap",style:r},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},mu=pu,vu=s(mu,lu,fu,!1,null,null,null);vu.options.__file="packages/form/src/label-wrap.vue";var gu=vu.exports,bu={name:"ElFormItem",componentName:"ElFormItem",mixins:[T.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:gu},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e},rules:function(e){e&&0!==e.length||void 0!==this.required||this.clearValidate()}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,e},form:function(){var e=this.$parent,t=e.$options.componentName;while("ElForm"!==t)"ElFormItem"===t&&(this.isNested=!0),e=e.$parent,t=e.$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(b["getPropByPath"])(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b["noop"];this.validateDisabled=!1;var r=this.getFilteredRule(e);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach((function(e){delete e.trigger})),i[this.prop]=r;var o=new hu.a(i),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},(function(e,r){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,r),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Object(b["getPropByPath"])(t,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick((function(){e.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(b["getPropByPath"])(e,this.prop||"");return e=e?r.o[this.prop||""]||r.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){var t=this.getRules();return t.filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return St()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){var e=this.getRules();(e.length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},yu=bu,wu=s(yu,uu,cu,!1,null,null,null);wu.options.__file="packages/form/src/form-item.vue";var xu=wu.exports;xu.install=function(e){e.component(xu.name,xu)};var _u=xu,Cu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tabs__active-bar",class:"is-"+e.rootTabs.tabPosition,style:e.barStyle})},ku=[];Cu._withStripped=!0;var Su={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,r=0,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===i?"x":"y",a=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))};this.tabs.every((function(t,o){var s=Object(b["arrayFind"])(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===t.paneName}));if(!s)return!1;if(t.active){r=s["client"+a(i)];var u=window.getComputedStyle(s);return"width"===i&&e.tabs.length>1&&(r-=parseFloat(u.paddingLeft)+parseFloat(u.paddingRight)),"width"===i&&(n+=parseFloat(u.paddingLeft)),!1}return n+=s["client"+a(i)],!0}));var s="translate"+a(o)+"("+n+"px)";return t[i]=r+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},Ou=Su,Eu=s(Ou,Cu,ku,!1,null,null,null);Eu.options.__file="packages/tabs/src/tab-bar.vue";var Tu=Eu.exports;function Du(){}var Mu,Au,Nu=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},Pu={name:"TabNav",components:{TabBar:Tu},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:Du},onTabRemove:{type:Function,default:Du},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var e=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y";return{transform:"translate"+e+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+Nu(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+Nu(this.sizeName)],t=this.$refs.navScroll["offset"+Nu(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=r?e.offsetWidth-o.width:e.offsetHeight-o.height,s=this.navOffset,u=s;r?(i.left<o.left&&(u=s-(o.left-i.left)),i.right>o.right&&(u=s+i.right-o.right)):(i.top<o.top&&(u=s-(o.top-i.top)),i.bottom>o.bottom&&(u=s+(i.bottom-o.bottom))),u=Math.max(u,0),this.navOffset=Math.min(u,a)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+Nu(e)],n=this.$refs.navScroll["offset"+Nu(e)],r=this.navOffset;if(n<t){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<t,t-i<n&&(this.navOffset=t-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(t)&&(i=e.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(i,e.target),n=37===t||38===t?0===r?i.length-1:r-1:r<i.length-1?r+1:0,i[n].focus(),i[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var e=this,t=document.visibilityState;"hidden"===t?this.focusable=!1:"visible"===t&&setTimeout((function(){e.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var e=this;setTimeout((function(){e.focusable=!0}),50)}},updated:function(){this.update()},render:function(e){var t=this,n=this.type,r=this.panes,i=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,u=this.navStyle,c=this.scrollable,l=this.scrollNext,f=this.scrollPrev,d=this.changeTab,h=this.setFocus,p=this.removeFocus,m=c?[e("span",{class:["el-tabs__nav-prev",c.prev?"":"is-disabled"],on:{click:f}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",c.next?"":"is-disabled"],on:{click:l}},[e("i",{class:"el-icon-arrow-right"})])]:null,v=this._l(r,(function(n,r){var o,u=n.name||n.index||r,c=n.isClosable||i;n.index=""+r;var l=c?e("span",{class:"el-icon-close",on:{click:function(e){s(n,e)}}}):null,f=n.$slots.label||n.label,d=n.active?0:-1;return e("div",{class:(o={"el-tabs__item":!0},o["is-"+t.rootTabs.tabPosition]=!0,o["is-active"]=n.active,o["is-disabled"]=n.disabled,o["is-closable"]=c,o["is-focus"]=t.isFocus,o),attrs:{id:"tab-"+u,"aria-controls":"pane-"+u,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+u,ref:"tabs",refInFor:!0,on:{focus:function(){h()},blur:function(){p()},click:function(e){p(),a(n,u,e)},keydown:function(e){!c||46!==e.keyCode&&8!==e.keyCode||s(n,e)}}},[f,l])}));return e("div",{class:["el-tabs__nav-wrap",c?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[m,e("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[e("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,o&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:u,attrs:{role:"tablist"},on:{keydown:d}},[n?null:e("tab-bar",{attrs:{tabs:r}}),v])])])},mounted:function(){var e=this;Object(er["addResizeListener"])(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout((function(){e.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(er["removeResizeListener"])(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},Iu=Pu,Ru=s(Iu,Mu,Au,!1,null,null,null);Ru.options.__file="packages/tabs/src/tab-nav.vue";var zu,Bu,Lu=Ru.exports,$u={name:"ElTabs",components:{TabNav:Lu},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(e){this.setCurrentName(e)},value:function(e){this.setCurrentName(e)},currentName:function(e){var t=this;this.$refs.nav&&this.$nextTick((function(){t.$refs.nav.$nextTick((function(e){t.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name})),r=n.map((function(e){var t=e.componentInstance;return t})),i=!(r.length===this.panes.length&&r.every((function(t,n){return t===e.panes[n]})));(t||i)&&(this.panes=r)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var r=this.beforeLeave(e,this.currentName);r&&r.then?r.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==r&&n()}else n()}},render:function(e){var t,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,u=this.editable,c=this.addable,l=this.tabPosition,f=this.stretch,d=u||c?e("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(e){13===e.keyCode&&o()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,h={props:{currentName:a,onTabClick:r,onTabRemove:i,editable:u,type:n,panes:s,stretch:f},ref:"nav"},p=e("div",{class:["el-tabs__header","is-"+l]},[d,e("tab-nav",h)]),m=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+l]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==l?[p,m]:[m,p]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Fu=$u,ju=s(Fu,zu,Bu,!1,null,null,null);ju.options.__file="packages/tabs/src/tabs.vue";var Vu=ju.exports;Vu.install=function(e){e.component(Vu.name,Vu)};var Hu=Vu,Wu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()},Uu=[];Wu._withStripped=!0;var qu={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},Gu=qu,Ku=s(Gu,Wu,Uu,!1,null,null,null);Ku.options.__file="packages/tabs/src/tab-pane.vue";var Yu=Ku.exports;Yu.install=function(e){e.component(Yu.name,Yu)};var Xu,Ju,Zu=Yu,Qu={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},ec=Qu,tc=s(ec,Xu,Ju,!1,null,null,null);tc.options.__file="packages/tag/src/tag.vue";var nc=tc.exports;nc.install=function(e){e.component(nc.name,nc)};var rc=nc,ic=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},oc=[];ic._withStripped=!0;var ac="$treeNodeId",sc=function(e,t){t&&!t[ac]&&Object.defineProperty(t,ac,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},uc=function(e,t){return e?t[e]:t[ac]},cc=function(e,t){var n=e;while(n&&"BODY"!==n.tagName){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null},lc=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function fc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var dc=function(e){for(var t=!0,n=!0,r=!0,i=0,o=e.length;i<o;i++){var a=e[i];(!0!==a.checked||a.indeterminate)&&(t=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},hc=function e(t){if(0!==t.childNodes.length&&!t.loading){var n=dc(t.childNodes),r=n.all,i=n.none,o=n.half;r?(t.checked=!0,t.indeterminate=!1):o?(t.checked=!1,t.indeterminate=!0):i&&(t.checked=!1,t.indeterminate=!1);var a=t.parent;a&&0!==a.level&&(t.store.checkStrictly||e(a))}},pc=function(e,t){var n=e.store.props,r=e.data||{},i=n[t];if("function"===typeof i)return i(r,e);if("string"===typeof i)return r[i];if("undefined"===typeof i){var o=r[t];return void 0===o?"":o}},mc=0,vc=function(){function e(t){for(var n in fc(this,e),this.id=mc++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var i=r.props;if(i&&"undefined"!==typeof i.isLeaf){var o=pc(this,"isLeaf");"boolean"===typeof o&&(this.isLeafByUser=o)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||sc(this,this.data),this.data){var a=r.defaultExpandedKeys,s=r.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||sc(this,e),this.data=e,this.childNodes=[];var t=void 0;t=0===this.level&&this.data instanceof Array?this.data:pc(this,"children")||[];for(var n=0,r=t.length;n<r;n++)this.insertChild({data:t[n]})},e.prototype.contains=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(r){for(var i=r.childNodes||[],o=!1,a=0,s=i.length;a<s;a++){var u=i[a];if(u===e||t&&n(u)){o=!0;break}}return o};return n(this)},e.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},e.prototype.insertChild=function(t,n,r){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!r){var i=this.getChildren(!0)||[];-1===i.indexOf(t.data)&&("undefined"===typeof n||n<0?i.push(t.data):i.splice(n,0,t.data))}St()(t,{parent:this,store:this.store}),t=new e(t)}t.level=this.level+1,"undefined"===typeof n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()},e.prototype.insertBefore=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)},e.prototype.insertAfter=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)},e.prototype.removeChild=function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);var r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)},e.prototype.expand=function(e,t){var n=this,r=function(){if(t){var r=n.parent;while(r.level>0)r.expanded=!0,r=r.parent}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||hc(n),r())})):r()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(St()({data:e},n),void 0,!0)}))},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,r){var i=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=dc(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,e=!1);var u=function(){if(t){for(var n=i.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];r=r||!1!==e;var u=s.disabled?s.checked:r;s.setChecked(u,t,!0,r)}var c=dc(n),l=c.half,f=c.all;f||(i.checked=f,i.indeterminate=l)}};if(this.shouldLoadData())return void this.loadData((function(){u(),hc(i)}),{checked:!1!==e});u()}var c=this.parent;c&&0!==c.level&&(n||hc(c))}},e.prototype.getChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),r={},i=[];t.forEach((function(e,t){var o=e[ac],a=!!o&&Object(b["arrayFindIndex"])(n,(function(e){return e[ac]===o}))>=0;a?r[o]={index:t,data:e}:i.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){r[t[ac]]||e.removeChildByData(t)})),i.forEach((function(t){var n=t.index,r=t.data;e.insertChild({data:r},n)})),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var r=function(r){t.childNodes=[],t.doCreateChildren(r,n),t.loaded=!0,t.loading=!1,t.updateLeafState(),e&&e.call(t,r)};this.store.load(this,r)}},lc(e,[{key:"label",get:function(){return pc(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return pc(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),gc=vc,bc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var wc=function(){function e(t){var n=this;for(var r in yc(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(r)&&(this[r]=t[r]);if(this.nodesMap={},this.root=new gc({data:this.data,store:this}),this.lazy&&this.load){var i=this.load;i(this.root,(function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy,r=function r(i){var o=i.root?i.root.childNodes:i.childNodes;if(o.forEach((function(n){n.visible=t.call(n,e,n.data,n),r(n)})),!i.visible&&o.length){var a=!0;a=!o.some((function(e){return e.visible})),i.root?i.root.visible=!1===a:i.visible=!1===a}e&&(!i.visible||i.isLeaf||n||i.expand())};r(this)},e.prototype.setData=function(e){var t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof gc)return e;var t="object"!==("undefined"===typeof e?"undefined":bc(e))?e:uc(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach((function(t){var r=n[t];r&&r.setChecked(!0,!e.checkStrictly)}))},e.prototype._initDefaultCheckedNode=function(e){var t=this.defaultCheckedKeys||[];-1!==t.indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){var t=this.key;if(t&&e&&e.data){var n=e.key;void 0!==n&&(this.nodesMap[e.key]=e)}},e.prototype.deregisterNode=function(e){var t=this,n=this.key;n&&e&&e.data&&(e.childNodes.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=function r(i){var o=i.root?i.root.childNodes:i.childNodes;o.forEach((function(i){(i.checked||t&&i.indeterminate)&&(!e||e&&i.isLeaf)&&n.push(i.data),r(i)}))};return r(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map((function(t){return(t||{})[e.key]}))},e.prototype.getHalfCheckedNodes=function(){var e=[],t=function t(n){var r=n.root?n.root.childNodes:n.childNodes;r.forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map((function(t){return(t||{})[e.key]}))},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var r=n.childNodes,i=r.length-1;i>=0;i--){var o=r[i];this.remove(o.data)}for(var a=0,s=t.length;a<s;a++){var u=t[a];this.append(u,n.data)}}},e.prototype._setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort((function(e,t){return t.level-e.level})),i=Object.create(null),o=Object.keys(n);r.forEach((function(e){return e.setChecked(!1,!1)}));for(var a=0,s=r.length;a<s;a++){var u=r[a],c=u.data[e].toString(),l=o.indexOf(c)>-1;if(l){var f=u.parent;while(f&&f.level>0)i[f.data[e]]=!0,f=f.parent;u.isLeaf||this.checkStrictly?u.setChecked(!0,!1):(u.setChecked(!0,!0),t&&function(){u.setChecked(!1,!1);var e=function e(t){var n=t.childNodes;n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(u)}())}else u.checked&&!i[c]&&u.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};e.forEach((function(e){r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,r={};e.forEach((function(e){r[e]=!0})),this._setCheckedKeys(n,t,r)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(e,t,n){var r=this.getNode(e);r&&r.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),xc=wc,_c=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[r("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?r("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),r("node-content",{attrs:{node:t.node}})],1),r("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?r("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return r("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)},Cc=[];_c._withStripped=!0;var kc={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[T.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Ge.a,ElCheckbox:Ir.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,r=this.node,i=r.data,o=r.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:r,data:i,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):e("span",{class:"el-tree-node__label"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return uc(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var r=n.props||{},i=r["children"]||"children";this.$watch("node.data."+i,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Sc=kc,Oc=s(Sc,_c,Cc,!1,null,null,null);Oc.options.__file="packages/tree/src/tree-node.vue";var Ec=Oc.exports,Tc={name:"ElTree",mixins:[T.a],components:{ElTreeNode:Ec},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(bs["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){var t=e.visible;return!t}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return uc(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];var n=[t.data],r=t.parent;while(r&&r!==this.root)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var r=this.treeItemArray.indexOf(t),i=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].focus()),[37,39].indexOf(n)>-1&&(e.preventDefault(),t.click());var o=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(e.preventDefault(),o.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new xc({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",(function(n,r){if("function"===typeof e.allowDrag&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(i){}t.draggingNode=r,e.$emit("node-drag-start",r.node,n)})),this.$on("tree-node-drag-over",(function(n,r){var i=cc(n.target,"ElTreeNode"),o=t.dropNode;o&&o!==i&&Object(Le["removeClass"])(o.$el,"is-drop-inner");var a=t.draggingNode;if(a&&i){var s=!0,u=!0,c=!0,l=!0;"function"===typeof e.allowDrop&&(s=e.allowDrop(a.node,i.node,"prev"),l=u=e.allowDrop(a.node,i.node,"inner"),c=e.allowDrop(a.node,i.node,"next")),n.dataTransfer.dropEffect=u?"move":"none",(s||u||c)&&o!==i&&(o&&e.$emit("node-drag-leave",a.node,o.node,n),e.$emit("node-drag-enter",a.node,i.node,n)),(s||u||c)&&(t.dropNode=i),i.node.nextSibling===a.node&&(c=!1),i.node.previousSibling===a.node&&(s=!1),i.node.contains(a.node,!1)&&(u=!1),(a.node===i.node||a.node.contains(i.node))&&(s=!1,u=!1,c=!1);var f=i.$el.getBoundingClientRect(),d=e.$el.getBoundingClientRect(),h=void 0,p=s?u?.25:c?.45:1:-1,m=c?u?.75:s?.55:0:1,v=-9999,g=n.clientY-f.top;h=g<f.height*p?"before":g>f.height*m?"after":u?"inner":"none";var b=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),y=e.$refs.dropIndicator;"before"===h?v=b.top-d.top:"after"===h&&(v=b.bottom-d.top),y.style.top=v+"px",y.style.left=b.right-d.left+"px","inner"===h?Object(Le["addClass"])(i.$el,"is-drop-inner"):Object(Le["removeClass"])(i.$el,"is-drop-inner"),t.showDropIndicator="before"===h||"after"===h,t.allowDrop=t.showDropIndicator||l,t.dropType=h,e.$emit("node-drag-over",a.node,i.node,n)}})),this.$on("tree-node-drag-end",(function(n){var r=t.draggingNode,i=t.dropType,o=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&o){var a={data:r.node.data};"none"!==i&&r.node.remove(),"before"===i?o.node.parent.insertBefore(a,o.node):"after"===i?o.node.parent.insertAfter(a,o.node):"inner"===i&&o.node.insertChild(a),"none"!==i&&e.store.registerNode(a),Object(Le["removeClass"])(o.$el,"is-drop-inner"),e.$emit("node-drag-end",r.node,o.node,i,n),"none"!==i&&e.$emit("node-drop",r.node,o.node,i,n)}r&&!o&&e.$emit("node-drag-end",r.node,null,i,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},Dc=Tc,Mc=s(Dc,ic,oc,!1,null,null,null);Mc.options.__file="packages/tree/src/tree.vue";var Ac=Mc.exports;Ac.install=function(e){e.component(Ac.name,Ac)};var Nc=Ac,Pc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])},Ic=[];Pc._withStripped=!0;var Rc={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},zc={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Rc[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Bc=zc,Lc=s(Bc,Pc,Ic,!1,null,null,null);Lc.options.__file="packages/alert/src/main.vue";var $c=Lc.exports;$c.install=function(e){e.component($c.name,$c)};var Fc=$c,jc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])},Vc=[];jc._withStripped=!0;var Hc={success:"success",info:"info",warning:"warning",error:"error"},Wc={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&Hc[this.type]?"el-icon-"+Hc[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return e={},e[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"===typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Uc=Wc,qc=s(Uc,jc,Vc,!1,null,null,null);qc.options.__file="packages/notification/src/main.vue";var Gc=qc.exports,Kc=Vr.a.extend(Gc),Yc=void 0,Xc=[],Jc=1,Zc=function e(t){if(!Vr.a.prototype.$isServer){t=St()({},t);var n=t.onClose,r="notification_"+Jc++,i=t.position||"top-right";t.onClose=function(){e.close(r,n)},Yc=new Kc({data:t}),Object(Ts["isVNode"])(t.message)&&(Yc.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),Yc.id=r,Yc.$mount(),document.body.appendChild(Yc.$el),Yc.visible=!0,Yc.dom=Yc.$el,Yc.dom.style.zIndex=C["PopupManager"].nextZIndex();var o=t.offset||0;return Xc.filter((function(e){return e.position===i})).forEach((function(e){o+=e.$el.offsetHeight+16})),o+=16,Yc.verticalOffset=o,Xc.push(Yc),Yc}};["success","warning","info","error"].forEach((function(e){Zc[e]=function(t){return("string"===typeof t||Object(Ts["isVNode"])(t))&&(t={message:t}),t.type=e,Zc(t)}})),Zc.close=function(e,t){var n=-1,r=Xc.length,i=Xc.filter((function(t,r){return t.id===e&&(n=r,!0)}))[0];if(i&&("function"===typeof t&&t(i),Xc.splice(n,1),!(r<=1)))for(var o=i.position,a=i.dom.offsetHeight,s=n;s<r-1;s++)Xc[s].position===o&&(Xc[s].dom.style[i.verticalProperty]=parseInt(Xc[s].dom.style[i.verticalProperty],10)-a-16+"px")},Zc.closeAll=function(){for(var e=Xc.length-1;e>=0;e--)Xc[e].close()};var Qc=Zc,el=Qc,tl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,(function(t,r){return e.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,r){return n("div",{key:r,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})})),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,(function(t,r){return n("slider-marker",{key:r,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)},nl=[];tl._withStripped=!0;var rl=n(42),il=n.n(rl),ol=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onLeftKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:e.onRightKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onLeftKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onRightKeyDown(t))}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)},al=[];ol._withStripped=!0;var sl={name:"ElSliderButton",components:{ElTooltip:it.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout((function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),r=Math.round(e/n),i=r*n*(this.max-this.min)*.01+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},ul=sl,cl=s(ul,ol,al,!1,null,null,null);cl.options.__file="packages/slider/src/button.vue";var ll=cl.exports,fl={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"===typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},dl={name:"ElSlider",mixins:[T.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:il.a,SliderButton:ll,SliderMarker:fl},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every((function(e,n){return e===t[n]}))||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every((function(t,n){return t===e.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]<this.min?this.$emit("input",[this.min,this.min]):e[0]>this.max?this.$emit("input",[this.max,this.max]):e[0]<this.min?this.$emit("input",[this.min,e[1]]):e[1]>this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!==typeof e||isNaN(e)||(e<this.min?this.$emit("input",this.min):e>this.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-t)<Math.abs(this.maxValue-t)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<t;i++)r.push(i*n);return this.range?r.filter((function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)})):r.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;if(!this.marks)return[];var t=Object.keys(this.marks);return t.map(parseFloat).sort((function(e,t){return e-t})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}}))},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){var t=(""+e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!==typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},hl=dl,pl=s(hl,tl,nl,!1,null,null,null);pl.options.__file="packages/slider/src/main.vue";var ml=pl.exports;ml.install=function(e){e.component(ml.name,ml)};var vl=ml,gl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},bl=[];gl._withStripped=!0;var yl={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},wl=yl,xl=s(wl,gl,bl,!1,null,null,null);xl.options.__file="packages/loading/src/loading.vue";var _l=xl.exports,Cl=n(33),kl=n.n(Cl),Sl=Vr.a.extend(_l),Ol={install:function(e){if(!e.prototype.$isServer){var t=function(t,r){r.value?e.nextTick((function(){r.modifiers.fullscreen?(t.originalPosition=Object(Le["getStyle"])(document.body,"position"),t.originalOverflow=Object(Le["getStyle"])(document.body,"overflow"),t.maskStyle.zIndex=C["PopupManager"].nextZIndex(),Object(Le["addClass"])(t.mask,"is-fullscreen"),n(document.body,t,r)):(Object(Le["removeClass"])(t.mask,"is-fullscreen"),r.modifiers.body?(t.originalPosition=Object(Le["getStyle"])(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(Le["getStyle"])(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,r)):(t.originalPosition=Object(Le["getStyle"])(t,"position"),n(t,t,r)))})):(kl()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:t;Object(Le["removeClass"])(n,"el-loading-parent--relative"),Object(Le["removeClass"])(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,r){n.domVisible||"none"===Object(Le["getStyle"])(n,"display")||"hidden"===Object(Le["getStyle"])(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(e){n.mask.style[e]=n.maskStyle[e]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(Le["addClass"])(t,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(Le["addClass"])(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,r){var i=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),a=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),u=r.context,c=new Sl({el:document.createElement("div"),data:{text:u&&u[i]||i,spinner:u&&u[o]||o,background:u&&u[a]||a,customClass:u&&u[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=c,e.mask=c.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},El=Ol,Tl=Vr.a.extend(_l),Dl={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Ml=void 0;Tl.prototype.originalPosition="",Tl.prototype.originalOverflow="",Tl.prototype.close=function(){var e=this;this.fullscreen&&(Ml=void 0),kl()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(Le["removeClass"])(n,"el-loading-parent--relative"),Object(Le["removeClass"])(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var Al=function(e,t,n){var r={};e.fullscreen?(n.originalPosition=Object(Le["getStyle"])(document.body,"position"),n.originalOverflow=Object(Le["getStyle"])(document.body,"overflow"),r.zIndex=C["PopupManager"].nextZIndex()):e.body?(n.originalPosition=Object(Le["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";r[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){r[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(Le["getStyle"])(t,"position"),Object.keys(r).forEach((function(e){n.$el.style[e]=r[e]}))},Nl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Vr.a.prototype.$isServer){if(e=St()({},Dl,e),"string"===typeof e.target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Ml)return Ml;var t=e.body?document.body:e.target,n=new Tl({el:document.createElement("div"),data:e});return Al(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(Le["addClass"])(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(Le["addClass"])(t,"el-loading-parent--hidden"),t.appendChild(n.$el),Vr.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(Ml=n),n}},Pl=Nl,Il={install:function(e){e.use(El),e.prototype.$loading=Pl},directive:El,service:Pl},Rl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"el-icon-"+e.name})},zl=[];Rl._withStripped=!0;var Bl={name:"ElIcon",props:{name:String}},Ll=Bl,$l=s(Ll,Rl,zl,!1,null,null,null);$l.options.__file="packages/icon/src/icon.vue";var Fl=$l.exports;Fl.install=function(e){e.component(Fl.name,Fl)};var jl=Fl,Vl={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Vl.name,Vl)}},Hl=Vl,Wl="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ul={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){var e=this.$parent;while(e&&"ElRow"!==e.$options.componentName)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+"px",r.paddingRight=r.paddingLeft),["span","offset","pull","push"].forEach((function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){if("number"===typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===Wl(t[e])){var r=t[e];Object.keys(r).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+r[t]:"el-col-"+e+"-"+r[t])}))}})),e(this.tag,{class:["el-col",n],style:r},this.$slots.default)},install:function(e){e.component(Ul.name,Ul)}},ql=Ul,Gl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)})),0)},Kl=[];Gl._withStripped=!0;var Yl=n(34),Xl=n.n(Yl),Jl={name:"ElUploadList",mixins:[g.a],data:function(){return{focusing:!1}},components:{ElProgress:Xl.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},Zl=Jl,Ql=s(Zl,Gl,Kl,!1,null,null,null);Ql.options.__file="packages/upload/src/upload-list.vue";var ef=Ql.exports,tf=n(24),nf=n.n(tf);function rf(e,t,n){var r=void 0;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var i=new Error(r);return i.status=n.status,i.method="post",i.url=e,i}function of(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function af(e){if("undefined"!==typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach((function(t){r.append(t,e.data[t])})),r.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(rf(n,e,t));e.onSuccess(of(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};for(var o in i)i.hasOwnProperty(o)&&null!==i[o]&&t.setRequestHeader(o,i[o]);return t.send(r),t}}var sf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)},uf=[];sf._withStripped=!0;var cf={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,r=e.name,i=r.indexOf(".")>-1?"."+r.split(".").pop():"",o=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?i===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},lf=cf,ff=s(lf,sf,uf,!1,null,null,null);ff.options.__file="packages/upload/src/upload-dragger.vue";var df,hf,pf=ff.exports,mf={inject:["uploader"],components:{UploadDragger:pf},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:af},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var i in"[object Blob]"===r&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(i)&&(n[i]=e[i]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort(),delete t[e]}))},post:function(e){var t=this,n=e.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(r){t.onSuccess(r,e),delete t.reqs[n]},onError:function(r){t.onError(r,e),delete t.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,u=this.uploadFiles,c=this.disabled,l=this.handleKeydown,f={class:{"el-upload":!0},on:{click:t,keydown:l}};return f.class["el-upload--"+s]=!0,e("div",nf()([f,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:c},on:{file:u}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:o,accept:a},ref:"input",on:{change:i}})])}},vf=mf,gf=s(vf,df,hf,!1,null,null,null);gf.options.__file="packages/upload/src/upload.vue";var bf=gf.exports;function yf(){}var wf,xf,_f={name:"ElUpload",mixins:[O.a],components:{ElProgress:Xl.a,UploadList:ef,Upload:bf},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:yf},onChange:{type:Function,default:yf},onPreview:{type:Function},onSuccess:{type:Function,default:yf},onProgress:{type:Function,default:yf},onError:{type:Function,default:yf},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:yf}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(t){console.error("[Element Error][Upload]",t)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(n){return void console.error("[Element Error][Upload]",n)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),r=this.uploadFiles;n.status="fail",r.splice(r.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var r=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"===typeof this.beforeRemove){var i=this.beforeRemove(e,this.uploadFiles);i&&i.then?i.then((function(){r()}),yf):!1!==i&&r()}}else r()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return n=e.uid===t.uid?t:null,!n})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(ef,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var r={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},i=this.$slots.trigger||this.$slots.default,o=e("upload",r,[i]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[o,this.$slots.default]:o,this.$slots.tip,"picture-card"!==this.listType?n:""])}},Cf=_f,kf=s(Cf,wf,xf,!1,null,null,null);kf.options.__file="packages/upload/src/index.vue";var Sf=kf.exports;Sf.install=function(e){e.component(Sf.name,Sf)};var Of=Sf,Ef=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px",backgroundColor:e.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:e.textColor}},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:e.defineBackColor,"stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px",color:e.textColor}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},Tf=[];Ef._withStripped=!0;var Df={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},Mf=Df,Af=s(Mf,Ef,Tf,!1,null,null,null);Af.options.__file="packages/progress/src/progress.vue";var Nf=Af.exports;Nf.install=function(e){e.component(Nf.name,Nf)};var Pf=Nf,If=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:e.radius/2+"px",height:e.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:e.strokeColor,"stroke-width":e.strokeWidth}})])])},Rf=[];If._withStripped=!0;var zf={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Bf=zf,Lf=s(Bf,If,Rf,!1,null,null,null);Lf.options.__file="packages/spinner/src/spinner.vue";var $f=Lf.exports;$f.install=function(e){e.component($f.name,$f)};var Ff=$f,jf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},Vf=[];jf._withStripped=!0;var Hf={success:"success",info:"info",warning:"warning",error:"error"},Wf={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+Hf[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Uf=Wf,qf=s(Uf,jf,Vf,!1,null,null,null);qf.options.__file="packages/message/src/main.vue";var Gf=qf.exports,Kf=n(16),Yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xf=Vr.a.extend(Gf),Jf=void 0,Zf=[],Qf=1,ed=function e(t){if(!Vr.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,r="message_"+Qf++;t.onClose=function(){e.close(r,n)},Jf=new Xf({data:t}),Jf.id=r,Object(Ts["isVNode"])(Jf.message)&&(Jf.$slots.default=[Jf.message],Jf.message=null),Jf.$mount(),document.body.appendChild(Jf.$el);var i=t.offset||20;return Zf.forEach((function(e){i+=e.$el.offsetHeight+16})),Jf.verticalOffset=i,Jf.visible=!0,Jf.$el.style.zIndex=C["PopupManager"].nextZIndex(),Zf.push(Jf),Jf}};["success","warning","info","error"].forEach((function(e){ed[e]=function(t){return Object(Kf["isObject"])(t)&&!Object(Ts["isVNode"])(t)?ed(Yf({},t,{type:e})):ed({type:e,message:t})}})),ed.close=function(e,t){for(var n=Zf.length,r=-1,i=void 0,o=0;o<n;o++)if(e===Zf[o].id){i=Zf[o].$el.offsetHeight,r=o,"function"===typeof t&&t(Zf[o]),Zf.splice(o,1);break}if(!(n<=1||-1===r||r>Zf.length-1))for(var a=r;a<n-1;a++){var s=Zf[a].$el;s.style["top"]=parseInt(s.style["top"],10)-i-16+"px"}},ed.closeAll=function(){for(var e=Zf.length-1;e>=0;e--)Zf[e].close()};var td=ed,nd=td,rd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[e.type?"el-badge__content--"+e.type:null,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)},id=[];rd._withStripped=!0;var od={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"===typeof e&&"number"===typeof t&&t<e?t+"+":e}}}},ad=od,sd=s(ad,rd,id,!1,null,null,null);sd.options.__file="packages/badge/src/main.vue";var ud=sd.exports;ud.install=function(e){e.component(ud.name,ud)};var cd=ud,ld=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?n("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),n("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])},fd=[];ld._withStripped=!0;var dd={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},hd=dd,pd=s(hd,ld,fd,!1,null,null,null);pd.options.__file="packages/card/src/main.vue";var md=pd.exports;md.install=function(e){e.component(md.name,md)};var vd=md,gd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":e.currentValue,"aria-valuetext":e.text,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0"},on:{keydown:e.handleKey}},[e._l(e.max,(function(t,r){return n("span",{key:r,staticClass:"el-rate__item",style:{cursor:e.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){e.setCurrentValue(t,n)},mouseleave:e.resetCurrentValue,click:function(n){e.selectValue(t)}}},[n("i",{staticClass:"el-rate__icon",class:[e.classes[t-1],{hover:e.hoverIndex===t}],style:e.getIconStyle(t)},[e.showDecimalIcon(t)?n("i",{staticClass:"el-rate__decimal",class:e.decimalIconClass,style:e.decimalStyle}):e._e()])])})),e.showText||e.showScore?n("span",{staticClass:"el-rate__text",style:{color:e.textColor}},[e._v(e._s(e.text))]):e._e()],2)},bd=[];gd._withStripped=!0;var yd={name:"ElRate",mixins:[O.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var e="";return this.showScore?e=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(e=this.texts[Math.ceil(this.currentValue)-1]),e},decimalStyle:function(){var e="";return this.rateDisabled?e=this.valueDecimal+"%":this.allowHalf&&(e="50%"),{color:this.activeColor,width:e}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var e;return Array.isArray(this.iconClasses)?(e={},e[this.lowThreshold]=this.iconClasses[0],e[this.highThreshold]={value:this.iconClasses[1],excluded:!0},e[this.max]=this.iconClasses[2],e):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var e;return Array.isArray(this.colors)?(e={},e[this.lowThreshold]=this.colors[0],e[this.highThreshold]={value:this.colors[1],excluded:!0},e[this.max]=this.colors[2],e):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var e=[],t=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;t<n;t++)e.push(this.activeClass);for(;t<this.max;t++)e.push(this.voidClass);return e},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){this.currentValue=e,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(e,t){var n=Object.keys(t).filter((function(n){var r=t[n],i=!!Object(Kf["isObject"])(r)&&r.excluded;return i?e<n:e<=n})).sort((function(e,t){return e-t})),r=t[n[0]];return Object(Kf["isObject"])(r)?r.value:r||""},showDecimalIcon:function(e){var t=this.rateDisabled&&this.valueDecimal>0&&e-1<this.value&&e>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(Le["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(Le["hasClass"])(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},wd=yd,xd=s(wd,gd,bd,!1,null,null,null);xd.options.__file="packages/rate/src/main.vue";var _d=xd.exports;_d.install=function(e){e.component(_d.name,_d)};var Cd=_d,kd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-steps",class:[!e.simple&&"el-steps--"+e.direction,e.simple&&"el-steps--simple"]},[e._t("default")],2)},Sd=[];kd._withStripped=!0;var Od={name:"ElSteps",mixins:[O.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach((function(e,t){e.index=t}))}}},Ed=Od,Td=s(Ed,kd,Sd,!1,null,null,null);Td.options.__file="packages/steps/src/steps.vue";var Dd=Td.exports;Dd.install=function(e){e.component(Dd.name,Dd)};var Md=Dd,Ad=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])},Nd=[];Ad._withStripped=!0;var Pd={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,n=t.steps.length,r="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return e.flexBasis=r,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},Id=Pd,Rd=s(Id,Ad,Nd,!1,null,null,null);Rd.options.__file="packages/steps/src/step.vue";var zd=Rd.exports;zd.install=function(e){e.component(zd.name,zd)};var Bd=zd,Ld=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex<e.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("right")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):e._e(),e._t("default")],2),"none"!==e.indicatorPosition?n("ul",{class:e.indicatorsClasses},e._l(e.items,(function(t,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":r===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(r)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])})),0):e._e()])},$d=[];Ld._withStripped=!0;var Fd=n(25),jd=n.n(Fd),Vd={name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some((function(e){return e.label.toString().length>0}))},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach((function(n,r){e===t.itemInStage(n,r)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(e){e.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(e){return"ElCarouselItem"===e.$options.name}))},resetItemPosition:function(e){var t=this;this.items.forEach((function(n,r){n.translateItem(r,t.activeIndex,e)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(e){if("string"===typeof e){var t=this.items.filter((function(t){return t.name===e}));t.length>0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,r=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,r===this.activeIndex&&this.resetItemPosition(r),this.resetTimer()}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=jd()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=jd()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(er["addResizeListener"])(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(er["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},Hd=Vd,Wd=s(Hd,Ld,$d,!1,null,null,null);Wd.options.__file="packages/carousel/src/main.vue";var Ud=Wd.exports;Ud.install=function(e){e.component(Ud.name,Ud)};var qd=Ud,Gd={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function Kd(e){var t=e.move,n=e.size,r=e.bar,i={},o="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var Yd={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Gd[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Kd({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(Le["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(Le["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-t,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(Le["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Le["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},Xd={name:"ElScrollbar",components:{Bar:Yd},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=bi()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(b["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}var o=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),s=void 0;return s=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,e(Yd,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(Yd,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(er["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(er["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(Xd.name,Xd)}},Jd=Xd,Zd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)},Qd=[];Zd._withStripped=!0;var eh=.83,th={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e<t-1&&t-e>=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*((2-eh)*(e-t)+1)/4:e<t?-(1+eh)*n/4:(3+eh)*n/4},calcTranslate:function(e,t,n){var r=this.$parent.$el[n?"offsetHeight":"offsetWidth"];return r*(e-t)},translateItem:function(e,t,n){var r=this.$parent.type,i=this.parentDirection,o=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&o>2&&this.$parent.loop&&(e=this.processIndex(e,t,o)),"card"===r)"vertical"===i&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:eh;else{this.active=e===t;var a="vertical"===i;this.translate=this.calcTranslate(e,t,a),this.scale=1}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e="vertical"===this.parentDirection?"translateY":"translateX",t=e+"("+this.translate+"px) scale("+this.scale+")",n={transform:t};return Object(b["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},nh=th,rh=s(nh,Zd,Qd,!1,null,null,null);rh.options.__file="packages/carousel/src/item.vue";var ih=rh.exports;ih.install=function(e){e.component(ih.name,ih)};var oh=ih,ah=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},sh=[];ah._withStripped=!0;var uh={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},ch=uh,lh=s(ch,ah,sh,!1,null,null,null);lh.options.__file="packages/collapse/src/collapse.vue";var fh=lh.exports;fh.install=function(e){e.component(fh.name,fh)};var dh=fh,hh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnterClick(t))},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)},ph=[];hh._withStripped=!0;var mh={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[T.a],components:{ElCollapseTransition:Ge.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(b["generateId"])()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},vh=mh,gh=s(vh,hh,ph,!1,null,null,null);gh.options.__file="packages/collapse/src/collapse-item.vue";var bh=gh.exports;bh.install=function(e){e.component(bh.name,bh)};var yh=bh,wh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(n){e.deleteTag(t)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleDelete(t)},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,r){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(r)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)},xh=[];wh._withStripped=!0;var _h=n(43),Ch=n.n(_h),kh=n(35),Sh=n.n(kh),Oh=Sh.a.keys,Eh={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Th={props:{placement:{type:String,default:"bottom-start"},appendToBody:H.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:H.a.props.arrowOffset,offset:H.a.props.offset,boundariesPadding:H.a.props.boundariesPadding,popperOptions:H.a.props.popperOptions,transformOrigin:H.a.props.transformOrigin},methods:H.a.methods,data:H.a.data,beforeDestroy:H.a.beforeDestroy},Dh={medium:36,small:32,mini:28},Mh={name:"ElCascader",directives:{Clickoutside:$.a},mixins:[Th,T.a,g.a,O.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:m.a,ElTag:Qn.a,ElScrollbar:U.a,ElCascaderPanel:Ch.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(bs["t"])("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(Eh).forEach((function(n){var r=Eh[n],i=r.newProp,o=r.type,a=t[n]||t[Object(b["kebabCase"])(n)];Object(Ot["isDef"])(n)&&!Object(Ot["isDef"])(e[i])&&(o===Boolean&&""===a&&(a=!0),e[i]=a)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(b["isEqual"])(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,o=r.multiple;Object(b["isEqual"])(e,t)&&!Object(Kf["isUndefined"])(t)||(this.computePresentContent(),o||i||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||Dh[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=B()(this.debounce,(function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1})),Object(er["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(er["removeResizeListener"])(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,r=this.$refs.input;e=Object(Ot["isDef"])(e)?e:!n,e!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),r.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(e){switch(e.keyCode){case Oh.enter:this.toggleDropDownVisible();break;case Oh.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case Oh.esc:case Oh.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,r=n.popper,i=n.suggestionPanel,o=null;if(t&&i)o=i.$el.querySelector(".el-cascader__suggestion-item");else{var a=r.querySelector(".el-cascader-menu");o=a.querySelector('.el-cascader-node[tabindex="-1"]')}o&&(o.focus(),!t&&o.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},isEmptyValue:function(e){var t=this.multiple,n=this.panel.config.emitPath;return!(!t&&!n)&&Object(b["isEmpty"])(e)},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!this.isEmptyValue(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,o=this.getCheckedNodes(t),a=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,r),hitState:!1,closable:!e&&!t.isDisabled}};if(o.length){var u=o[0],c=o.slice(1),l=c.length;a.push(s(u)),l&&(i?a.push({key:-1,text:"+ "+l,closable:!1}):c.forEach((function(e){return a.push(s(e))})))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var e=this,t=this.filterMethod;Object(Kf["isFunction"])(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))}));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(b["isEqual"])(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case Oh.enter:n.click();break;case Oh.up:var r=n.previousElementSibling;r&&r.focus();break;case Oh.down:var i=n.nextElementSibling;i&&i.focus();break;case Oh.esc:case Oh.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,r=n.length-1,i=n[r];this.pressDeleteCount=e?0:t+1,i&&this.pressDeleteCount&&(i.hitState?this.deleteTag(i):i.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption(),r=t.find((function(e){return Object(b["isEqual"])(e,n)}));this.checkedValue=t.filter((function(e){return!Object(b["isEqual"])(e,n)})),this.$emit("remove-tag",r)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,r=e.querySelector(".el-input__inner");if(r){var i=e.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el)){var a=o.querySelector(".el-cascader__suggestion-list");a.style.minWidth=r.offsetWidth+"px"}if(i){var s=Math.round(i.getBoundingClientRect().height),u=Math.max(s+6,t)+"px";r.style.height=u,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},Ah=Mh,Nh=s(Ah,wh,xh,!1,null,null,null);Nh.options.__file="packages/cascader/src/cascader.vue";var Ph=Nh.exports;Ph.install=function(e){e.component(Ph.name,Ph)};var Ih=Ph,Rh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)},zh=[];Rh._withStripped=!0;var Bh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Lh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var $h=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Fh=function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)},jh=function(e){return"string"===typeof e&&-1!==e.indexOf("%")},Vh=function(e,t){Fh(e)&&(e="100%");var n=jh(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},Hh={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Wh=function(e){var t=e.r,n=e.g,r=e.b,i=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Hh[t]||t)+(Hh[n]||n)};return isNaN(t)||isNaN(n)||isNaN(r)?"":"#"+i(t)+i(n)+i(r)},Uh={A:10,B:11,C:12,D:13,E:14,F:15},qh=function(e){return 2===e.length?16*(Uh[e[0].toUpperCase()]||+e[0])+(Uh[e[1].toUpperCase()]||+e[1]):Uh[e[1].toUpperCase()]||+e[1]},Gh=function(e,t,n){t/=100,n/=100;var r=t,i=Math.max(n,.01),o=void 0,a=void 0;return n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i,a=(n+t)/2,o=0===n?2*r/(i+r):2*t/(n+t),{h:e,s:100*o,v:100*a}},Kh=function(e,t,n){e=Vh(e,255),t=Vh(t,255),n=Vh(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=void 0,a=void 0,s=r,u=r-i;if(a=0===r?0:u/r,r===i)o=0;else{switch(r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:360*o,s:100*a,v:100*s}},Yh=function(e,t,n){e=6*Vh(e,360),t=Vh(t,100),n=Vh(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6,c=[n,a,o,o,s,n][u],l=[s,n,n,a,o,o][u],f=[o,o,s,n,n,a][u];return{r:Math.round(255*c),g:Math.round(255*l),b:Math.round(255*f)}},Xh=function(){function e(t){for(var n in Lh(this,e),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{},t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.doOnChange()}return e.prototype.set=function(e,t){if(1!==arguments.length||"object"!==("undefined"===typeof e?"undefined":Bh(e)))this["_"+e]=t,this.doOnChange();else for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},e.prototype.get=function(e){return this["_"+e]},e.prototype.toRgb=function(){return Yh(this._hue,this._saturation,this._value)},e.prototype.fromString=function(e){var t=this;if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(e,n,r){t._hue=Math.max(0,Math.min(360,e)),t._saturation=Math.max(0,Math.min(100,n)),t._value=Math.max(0,Math.min(100,r)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=Gh(r[0],r[1],r[2]),o=i.h,a=i.s,s=i.v;n(o,a,s)}}else if(-1!==e.indexOf("hsv")){var u=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));4===u.length?this._alpha=Math.floor(100*parseFloat(u[3])):3===u.length&&(this._alpha=100),u.length>=3&&n(u[0],u[1],u[2])}else if(-1!==e.indexOf("rgb")){var c=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===c.length?this._alpha=Math.floor(100*parseFloat(c[3])):3===c.length&&(this._alpha=100),c.length>=3){var l=Kh(c[0],c[1],c[2]),f=l.h,d=l.s,h=l.v;n(f,d,h)}}else if(-1!==e.indexOf("#")){var p=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(p))return;var m=void 0,v=void 0,g=void 0;3===p.length?(m=qh(p[0]+p[0]),v=qh(p[1]+p[1]),g=qh(p[2]+p[2])):6!==p.length&&8!==p.length||(m=qh(p.substring(0,2)),v=qh(p.substring(2,4)),g=qh(p.substring(4,6))),8===p.length?this._alpha=Math.floor(qh(p.substring(6))/255*100):3!==p.length&&6!==p.length||(this._alpha=100);var b=Kh(m,v,g),y=b.h,w=b.s,x=b.v;n(y,w,x)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case"hsl":var o=$h(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var a=Yh(e,t,n),s=a.r,u=a.g,c=a.b;this.value="rgba("+s+", "+u+", "+c+", "+r/100+")"}else switch(i){case"hsl":var l=$h(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*l[1])+"%, "+Math.round(100*l[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var f=Yh(e,t,n),d=f.r,h=f.g,p=f.b;this.value="rgb("+d+", "+h+", "+p+")";break;default:this.value=Wh(Yh(e,t,n))}},e}(),Jh=Xh,Zh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleConfirm(t)}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n "+e._s(e.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n "+e._s(e.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},Qh=[];Zh._withStripped=!0;var ep=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:e.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:e.cursorTop+"px",left:e.cursorLeft+"px"}},[n("div")])])},tp=[];ep._withStripped=!0;var np=!1,rp=function(e,t){if(!Vr.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},r=function e(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,np=!1,t.end&&t.end(r)};e.addEventListener("mousedown",(function(e){np||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),np=!0,t.start&&t.start(e))}))}},ip={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var e=this.color.get("hue"),t=this.color.get("value");return{hue:e,value:t}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=e*r/100,this.cursorTop=(100-t)*i/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;r=Math.max(0,r),r=Math.min(r,n.width),i=Math.max(0,i),i=Math.min(i,n.height),this.cursorLeft=r,this.cursorTop=i,this.color.set({saturation:r/n.width*100,value:100-i/n.height*100})}},mounted:function(){var e=this;rp(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},op=ip,ap=s(op,ep,tp,!1,null,null,null);ap.options.__file="packages/color-picker/src/components/sv-panel.vue";var sp=ap.exports,up=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},cp=[];up._withStripped=!0;var lp={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var e=this.color.get("hue");return e}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,r=void 0;if(this.vertical){var i=e.clientY-t.top;i=Math.min(i,t.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var o=e.clientX-t.left;o=Math.min(o,t.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),r=Math.round((o-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",r)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,r=t.thumb,i={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};rp(n,i),rp(r,i),this.update()}},fp=lp,dp=s(fp,up,cp,!1,null,null,null);dp.options.__file="packages/color-picker/src/components/hue-slider.vue";var hp=dp.exports,pp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:e.background},on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},mp=[];pp._withStripped=!0;var vp={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var r=e.clientY-t.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var i=e.clientX-t.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((i-n.offsetWidth/2)/(t.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,r=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+r+", 0) 0%, rgba("+t+", "+n+", "+r+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,r=t.thumb,i={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};rp(n,i),rp(r,i),this.update()}},gp=vp,bp=s(gp,pp,mp,!1,null,null,null);bp.options.__file="packages/color-picker/src/components/alpha-slider.vue";var yp=bp.exports,wp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,(function(t,r){return n("div",{key:e.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(r)}}},[n("div",{style:{"background-color":t.value}})])})),0)])},xp=[];wp._withStripped=!0;var _p={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map((function(e){var n=new Jh;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}},watch:{"$parent.currentColor":function(e){var t=new Jh;t.fromString(e),this.rgbaColors.forEach((function(e){e.selected=t.compare(e)}))},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},Cp=_p,kp=s(Cp,wp,xp,!1,null,null,null);kp.options.__file="packages/color-picker/src/components/predefine.vue";var Sp=kp.exports,Op={name:"el-color-picker-dropdown",mixins:[H.a,g.a],components:{SvPanel:sp,HueSlider:hp,AlphaSlider:yp,ElInput:m.a,ElButton:ae.a,Predefine:Sp},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick((function(){var e=t.$refs,n=e.sl,r=e.hue,i=e.alpha;n&&n.update(),r&&r.update(),i&&i.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Ep=Op,Tp=s(Ep,Zh,Qh,!1,null,null,null);Tp.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Dp=Tp.exports,Mp={name:"ElColorPicker",mixins:[T.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:$.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Jh({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value);var n=this.displayedRgb(t,this.showAlpha);e!==n&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick((function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1}))},displayedRgb:function(e,t){if(!(e instanceof Jh))throw Error("color should be instance of Color Class");var n=e.toRgb(),r=n.r,i=n.g,o=n.b;return t?"rgba("+r+", "+i+", "+o+", "+e.get("alpha")/100+")":"rgb("+r+", "+i+", "+o+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){var e=new Jh({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:e,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Dp}},Ap=Mp,Np=s(Ap,Rh,zh,!1,null,null,null);Np.options.__file="packages/color-picker/src/main.vue";var Pp=Np.exports;Pp.install=function(e){e.component(Pp.name,Pp)};var Ip=Pp,Rp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)},zp=[];Rp._withStripped=!0;var Bp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])},Lp=[];Bp._withStripped=!0;var $p={mixins:[g.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Pi.a,ElCheckbox:Ir.a,ElInput:m.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t},n=t(this),r=n.$parent||n;return n.renderContent?n.renderContent(e,this.option):r.$scopedSlots.default?r.$scopedSlots.default({option:this.option}):e("span",[this.option[n.labelProp]||this.option[n.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)}));this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){n.indexOf(e)>-1&&t.push(e)})),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every((function(e){return t.indexOf(e)>-1}))){var r=[],i=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){i.indexOf(e)>-1&&r.push(e)})),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var e=this;return this.data.filter((function(t){if("function"===typeof e.filterMethod)return e.filterMethod(e.query,t);var n=t[e.labelProp]||t[e.keyProp].toString();return n.toLowerCase().indexOf(e.query.toLowerCase())>-1}))},checkableData:function(){var e=this;return this.filteredData.filter((function(t){return!t[e.disabledProp]}))},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,r=n.noChecked,i=n.hasChecked;return r&&i?e>0?i.replace(/\${checked}/g,e).replace(/\${total}/g,t):r.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map((function(t){return t[e.keyProp]}));this.allChecked=t.length>0&&t.every((function(t){return e.checked.indexOf(t)>-1}))},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map((function(e){return e[t.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Fp=$p,jp=s(Fp,Bp,Lp,!1,null,null,null);jp.options.__file="packages/transfer/src/transfer-panel.vue";var Vp=jp.exports,Hp={name:"ElTransfer",mixins:[T.a,g.a,O.a],components:{TransferPanel:Vp,ElButton:ae.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce((function(t,n){return(t[n[e]]=n)&&t}),{})},sourceData:function(){var e=this;return this.data.filter((function(t){return-1===e.value.indexOf(t[e.props.key])}))},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter((function(t){return e.value.indexOf(t[e.props.key])>-1})):this.value.reduce((function(t,n){var r=e.dataObj[n];return r&&t.push(r),t}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],r=this.props.key;this.data.forEach((function(t){var i=t[r];e.leftChecked.indexOf(i)>-1&&-1===e.value.indexOf(i)&&n.push(i)})),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},Wp=Hp,Up=s(Wp,Rp,zp,!1,null,null,null);Up.options.__file="packages/transfer/src/main.vue";var qp=Up.exports;qp.install=function(e){e.component(qp.name,qp)};var Gp=qp,Kp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"el-container",class:{"is-vertical":e.isVertical}},[e._t("default")],2)},Yp=[];Kp._withStripped=!0;var Xp={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t})))}}},Jp=Xp,Zp=s(Jp,Kp,Yp,!1,null,null,null);Zp.options.__file="packages/container/src/main.vue";var Qp=Zp.exports;Qp.install=function(e){e.component(Qp.name,Qp)};var em=Qp,tm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"el-header",style:{height:e.height}},[e._t("default")],2)},nm=[];tm._withStripped=!0;var rm={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},im=rm,om=s(im,tm,nm,!1,null,null,null);om.options.__file="packages/header/src/main.vue";var am=om.exports;am.install=function(e){e.component(am.name,am)};var sm=am,um=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"el-aside",style:{width:e.width}},[e._t("default")],2)},cm=[];um._withStripped=!0;var lm={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},fm=lm,dm=s(fm,um,cm,!1,null,null,null);dm.options.__file="packages/aside/src/main.vue";var hm=dm.exports;hm.install=function(e){e.component(hm.name,hm)};var pm=hm,mm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"el-main"},[e._t("default")],2)},vm=[];mm._withStripped=!0;var gm={name:"ElMain",componentName:"ElMain"},bm=gm,ym=s(bm,mm,vm,!1,null,null,null);ym.options.__file="packages/main/src/main.vue";var wm=ym.exports;wm.install=function(e){e.component(wm.name,wm)};var xm=wm,_m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"el-footer",style:{height:e.height}},[e._t("default")],2)},Cm=[];_m._withStripped=!0;var km={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},Sm=km,Om=s(Sm,_m,Cm,!1,null,null,null);Om.options.__file="packages/footer/src/main.vue";var Em=Om.exports;Em.install=function(e){e.component(Em.name,Em)};var Tm,Dm,Mm=Em,Am={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},r=this.$slots.default||[];return t&&(r=r.reverse()),e("ul",{class:n},[r])}},Nm=Am,Pm=s(Nm,Tm,Dm,!1,null,null,null);Pm.options.__file="packages/timeline/src/main.vue";var Im=Pm.exports;Im.install=function(e){e.component(Im.name,Im)};var Rm=Im,zm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])},Bm=[];zm._withStripped=!0;var Lm={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},$m=Lm,Fm=s($m,zm,Bm,!1,null,null,null);Fm.options.__file="packages/timeline/src/item.vue";var jm=Fm.exports;jm.install=function(e){e.component(jm.name,jm)};var Vm=jm,Hm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)},Wm=[];Hm._withStripped=!0;var Um={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},qm=Um,Gm=s(qm,Hm,Wm,!1,null,null,null);Gm.options.__file="packages/link/src/main.vue";var Km=Gm.exports;Km.install=function(e){e.component(Km.name,Km)};var Ym=Km,Xm=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},Jm=[];Xm._withStripped=!0;var Zm={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},Qm=Zm,ev=s(Qm,Xm,Jm,!0,null,null,null);ev.options.__file="packages/divider/src/main.vue";var tv=ev.exports;tv.install=function(e){e.component(tv.name,tv)};var nv=tv,rv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)},iv=[];rv._withStripped=!0;var ov=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(t,r){return r===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},av=[];ov._withStripped=!0;var sv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uv={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},cv=Object(b["isFirefox"])()?"DOMMouseScroll":"mousewheel",lv={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:uv.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var e=this.transform,t=e.scale,n=e.deg,r=e.offsetX,i=e.offsetY,o=e.enableTransition,a={transform:"scale("+t+") rotate("+n+"deg)",transition:o?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===uv.CONTAIN&&(a.maxWidth=a.maxHeight="100%"),a},viewerZIndex:function(){var e=C["PopupManager"].nextZIndex();return this.zIndex>e?this.zIndex:e}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick((function(e){var n=t.$refs.img[0];n.complete||(t.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var n=t.keyCode;switch(n){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(b["rafThrottle"])((function(t){var n=t.wheelDelta?t.wheelDelta:-t.detail;n>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(Le["on"])(document,"keydown",this._keyDownHandler),Object(Le["on"])(document,cv,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(Le["off"])(document,"keydown",this._keyDownHandler),Object(Le["off"])(document,cv,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,r=n.offsetX,i=n.offsetY,o=e.pageX,a=e.pageY;this._dragHandler=Object(b["rafThrottle"])((function(e){t.transform.offsetX=r+e.pageX-o,t.transform.offsetY=i+e.pageY-a})),Object(Le["on"])(document,"mousemove",this._dragHandler),Object(Le["on"])(document,"mouseup",(function(e){Object(Le["off"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(uv),t=Object.values(uv),n=t.indexOf(this.mode),r=(n+1)%e.length;this.mode=uv[e[r]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=sv({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),r=n.zoomRate,i=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(e){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-r).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+r).toFixed(3));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i;break}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},fv=lv,dv=s(fv,ov,av,!1,null,null,null);dv.options.__file="packages/image/src/image-viewer.vue";var hv=dv.exports,pv=function(){return void 0!==document.documentElement.style.objectFit},mv={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},vv="",gv={name:"ElImage",mixins:[g.a],inheritAttrs:!1,components:{ImageViewer:hv},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},initialIndex:Number},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?pv()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!pv()&&this.fit!==mv.FILL},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.initialIndex;if(t>=0)return e=t,e;var n=this.previewSrcList.indexOf(this.src);return n>=0?(e=n,e):e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var r=e.$attrs[n];t.setAttribute(n,r)})),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(Le["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;t=Object(Kf["isHtmlElement"])(e)?e:Object(Kf["isString"])(e)?document.querySelector(e):Object(Le["getScrollContainer"])(this.$el),t&&(this._scrollContainer=t,this._lazyLoadHandler=jd()(200,this.handleLazyLoad),Object(Le["on"])(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(Le["off"])(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,o=r.clientHeight;if(!t||!n||!i||!o)return{};var a=t/n,s=i/o;if(e===mv.SCALE_DOWN){var u=t<i&&n<o;e=u?mv.NONE:mv.CONTAIN}switch(e){case mv.NONE:return{width:"auto",height:"auto"};case mv.CONTAIN:return a<s?{width:"auto"}:{height:"auto"};case mv.COVER:return a<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(vv=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=vv,this.showViewer=!1}}},bv=gv,yv=s(bv,rv,iv,!1,null,null,null);yv.options.__file="packages/image/src/main.vue";var wv=yv.exports;wv.install=function(e){e.component(wv.name,wv)};var xv=wv,_v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[e._v("\n "+e._s(e.i18nDate)+"\n ")]),0===e.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("prev-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("today")}}},[e._v("\n "+e._s(e.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("next-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):e._e()]),0===e.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:e.date,"selected-day":e.realSelectedDay,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},e._l(e.validatedRange,(function(t,r){return n("date-table",{key:r,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==r,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})})),1)])},Cv=[];_v._withStripped=!0;var kv,Sv,Ov=n(20),Ev=n.n(Ov),Tv={props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(so["validateRangeInOneMonth"])(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(so["range"])(e.length/7).map((function(t,n){var r=7*n;return e.slice(r,r+7)}))},getFormateDate:function(e,t){if(!e||-1===["prev","current","next"].indexOf(t))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===t?n=this.prevMonthDatePrefix:"next"===t&&(n=this.nextMonthDatePrefix),e=("00"+e).slice(-2),n+"-"+e},getCellClass:function(e){var t=e.text,n=e.type,r=[n];if("current"===n){var i=this.getFormateDate(t,n);i===this.selectedDay&&r.push("is-selected"),i===this.formatedToday&&r.push("is-today")}return r},pickDay:function(e){var t=e.text,n=e.type,r=this.getFormateDate(t,n);this.$emit("pick",r)},cellRenderProxy:function(e){var t=e.text,n=e.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r("span",[t]);var o=this.getFormateDate(t,n),a=new Date(o),s={isSelected:this.selectedDay===o,type:n+"-month",day:o};return i({date:a,data:s})}},computed:{WEEK_DAYS:function(){return Object(so["getI18nSettings"])().dayNames},prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Ev.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Ev.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Ev.a.format(e,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var e=[];if(this.isInRange){var t=this.range,n=t[0],r=t[1],i=Object(so["range"])(r.getDate()-n.getDate()+1).map((function(e,t){return{text:n.getDate()+t,type:"current"}})),o=i.length%7;o=0===o?0:7-o;var a=Object(so["range"])(o).map((function(e,t){return{text:t+1,type:"next"}}));e=i.concat(a)}else{var s=this.date,u=Object(so["getFirstDayOfMonth"])(s);u=0===u?7:u;var c="number"===typeof this.firstDayOfWeek?this.firstDayOfWeek:1,l=(7+u-c)%7,f=Object(so["getPrevMonthLastDays"])(s,l).map((function(e){return{text:e,type:"prev"}})),d=Object(so["getMonthDays"])(s).map((function(e){return{text:e,type:"current"}}));e=[].concat(f,d);var h=Object(so["range"])(42-e.length).map((function(e,t){return{text:t+1,type:"next"}}));e=e.concat(h)}return this.toNestedArr(e)},weekDays:function(){var e=this.firstDayOfWeek,t=this.WEEK_DAYS;return"number"!==typeof e||0===e?t.slice():t.slice(e).concat(t.slice(0,e))}},render:function(){var e=this,t=arguments[0],n=this.hideHeader?null:t("thead",[this.weekDays.map((function(e){return t("th",{key:e},[e])}))]);return t("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,t("tbody",[this.rows.map((function(n,r){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&e.hideHeader},key:r},[n.map((function(n,r){return t("td",{key:r,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])}))])}))])])}},Dv=Tv,Mv=s(Dv,kv,Sv,!1,null,null,null);Mv.options.__file="packages/calendar/src/date-table.vue";var Av=Mv.exports,Nv=["prev-month","today","next-month"],Pv=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Iv=864e5,Rv={name:"ElCalendar",mixins:[g.a],components:{DateTable:Av,ElButton:ae.a,ElButtonGroup:ue.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(e){return!Array.isArray(e)||2===e.length&&e.every((function(e){return"string"===typeof e||"number"===typeof e||e instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(e){this.realSelectedDay=e},selectDate:function(e){if(-1===Nv.indexOf(e))throw new Error("invalid type "+e);var t="";t="prev-month"===e?this.prevMonthDatePrefix+"-01":"next-month"===e?this.nextMonthDatePrefix+"-01":this.formatedToday,t!==this.formatedDate&&this.pickDay(t)},toDate:function(e){if(!e)throw new Error("invalid val");return e instanceof Date?e:new Date(e)},rangeValidator:function(e,t){var n=this.realFirstDayOfWeek,r=t?n:0===n?6:n-1,i=(t?"start":"end")+" of range should be "+Pv[r]+".";return e.getDay()===r||(console.warn("[ElementCalendar]",i,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Ev.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Ev.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Ev.a.format(e,"yyyy-MM")},formatedDate:function(){return Ev.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var e=this.date.getFullYear(),t=this.date.getMonth()+1;return e+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+t)},formatedToday:function(){return Ev.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(e){this.selectedDay=e;var t=new Date(e);this.$emit("input",t)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var e=this.selectedDay.split("-");return new Date(e[0],e[1]-1,e[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var e=this,t=this.range;if(!t)return[];if(t=t.reduce((function(t,n,r){var i=e.toDate(n);return e.rangeValidator(i,0===r)&&(t=t.concat(i)),t}),[]),2===t.length){var n=t,r=n[0],i=n[1];if(r>i)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(so["validateRangeInOneMonth"])(r,i))return[[r,i]];var o=[],a=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(a.getTime()-Iv);if(!Object(so["validateRangeInOneMonth"])(a,i))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([r,s]);var u=this.realFirstDayOfWeek,c=a.getDay(),l=0;return c!==u&&(0===u?l=7-c:(l=u-c,l=l>0?l:7+l)),a=this.toDate(a.getTime()+l*Iv),a.getDate()<i.getDate()&&o.push([a,i]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},zv=Rv,Bv=s(zv,_v,Cv,!1,null,null,null);Bv.options.__file="packages/calendar/src/main.vue";var Lv=Bv.exports;Lv.install=function(e){e.component(Lv.name,Lv)};var $v=Lv,Fv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])},jv=[];Fv._withStripped=!0;var Vv=function(e){return Math.pow(e,3)},Hv=function(e){return e<.5?Vv(2*e)/2:1-Vv(2*(1-e))/2},Wv={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=jd()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,r=window.requestAnimationFrame||function(e){return setTimeout(e,16)},i=function i(){var o=(Date.now()-t)/500;o<1?(e.scrollTop=n*(1-Hv(o)),r(i)):e.scrollTop=0};r(i)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},Uv=Wv,qv=s(Uv,Fv,jv,!1,null,null,null);qv.options.__file="packages/backtop/src/main.vue";var Gv=qv.exports;Gv.install=function(e){e.component(Gv.name,Gv)};var Kv=Gv,Yv=function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n},Xv=function(e){return Object.keys(e||{}).map((function(t){return[t,e[t]]}))},Jv=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Zv=function(e){return Jv(e,"offsetHeight")},Qv=function(e){return Jv(e,"clientHeight")},eg="ElInfiniteScroll",tg={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},ng=function(e,t){return Object(Kf["isHtmlElement"])(e)?Xv(tg).reduce((function(n,r){var i=r[0],o=r[1],a=o.type,s=o.default,u=e.getAttribute("infinite-scroll-"+i);switch(u=Object(Kf["isUndefined"])(t[u])?u:t[u],a){case Number:u=Number(u),u=Number.isNaN(u)?s:u;break;case Boolean:u=Object(Kf["isDefined"])(u)?"false"!==u&&Boolean(u):s;break;default:u=a(u)}return n[i]=u,n}),{}):{}},rg=function(e){return e.getBoundingClientRect().top},ig=function(e){var t=this[eg],n=t.el,r=t.vm,i=t.container,o=t.observer,a=ng(n,r),s=a.distance,u=a.disabled;if(!u){var c=i.getBoundingClientRect();if(c.width||c.height){var l=!1;if(i===n){var f=i.scrollTop+Qv(i);l=i.scrollHeight-f<=s}else{var d=Zv(n)+rg(n)-rg(i),h=Zv(i),p=Number.parseFloat(Yv(i,"borderBottomWidth"));l=d-h+p<=s}l&&Object(Kf["isFunction"])(e)?e.call(r):o&&(o.disconnect(),this[eg].observer=null)}}},og={name:"InfiniteScroll",inserted:function(e,t,n){var r=t.value,i=n.context,o=Object(Le["getScrollContainer"])(e,!0),a=ng(e,i),s=a.delay,u=a.immediate,c=B()(s,ig.bind(e,r));if(e[eg]={el:e,vm:i,container:o,onScroll:c},o&&(o.addEventListener("scroll",c),u)){var l=e[eg].observer=new MutationObserver(c);l.observe(o,{childList:!0,subtree:!0}),c()}},unbind:function(e){var t=e[eg],n=t.container,r=t.onScroll;n&&n.removeEventListener("scroll",r)},install:function(e){e.directive(og.name,og)}},ag=og,sg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])},ug=[];sg._withStripped=!0;var cg={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(bs["t"])("el.pageHeader.title")}},content:String}},lg=cg,fg=s(lg,sg,ug,!1,null,null,null);fg.options.__file="packages/page-header/src/main.vue";var dg=fg.exports;dg.install=function(e){e.component(dg.name,dg)};var hg=dg,pg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},mg=[];pg._withStripped=!0;var vg,gg,bg=n(44),yg=n.n(bg),wg=function(e){return e.stopPropagation()},xg={inject:["panel"],components:{ElCheckbox:Ir.a,ElRadio:yg.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple,a=i.checkStrictly;!a&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly,o=r.multiple;return o?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=wg),e("el-checkbox",nf()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(b["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:wg}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn,i=r?r({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,u=this.nodeId,c=s.expandTrigger,l=s.checkStrictly,f=s.multiple,d=!l&&a,h={on:{}};return"click"===c?h.on.click=this.handleExpand:(h.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},h.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||l||f||(h.on.click=this.handleCheckChange),e("li",nf()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":l,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},h]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},_g=xg,Cg=s(_g,vg,gg,!1,null,null,null);Cg.options.__file="packages/cascader-panel/src/cascader-node.vue";var kg,Sg,Og=Cg.exports,Eg={name:"ElCascaderMenu",mixins:[g.a],inject:["panel"],components:{ElScrollbar:U.a,CascaderNode:Og},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(b["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=e.clientX-o,s=this.$el,u=s.offsetWidth,c=s.offsetHeight,l=t.offsetTop,f=l+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+l+" L"+u+" 0 V"+l+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+f+" L"+u+" "+c+" V"+f+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return e("cascader-node",nf()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":o,"aria-owns":o?t:null}},r]))}));return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",nf()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},Tg=Eg,Dg=s(Tg,kg,Sg,!1,null,null,null);Dg.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Mg=Dg.exports,Ag=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Ng(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Pg=0,Ig=function(){function e(t,n,r){Ng(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=Pg++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new e(r,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(b["isEqual"])(e,t)})):Object(b["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(b["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(b["capitalize"])(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},Ag(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(Ot["isDef"])(e[a])?e[a]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),Rg=Ig;function zg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Bg=function e(t,n){return t.reduce((function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},Lg=function(){function e(t,n){zg(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(b["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new Rg(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Rg(e,this.config,t),r=t?t.children:this.nodes;r.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(b["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:Bg(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(b["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),$g=Lg,Fg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jg=Sh.a.keys,Vg={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:b["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Hg=function(e){return!e.getAttribute("aria-owns")},Wg=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),i=Array.prototype.indexOf.call(r,e);return r[i+t]||null}return null},Ug=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},qg=function(e){e&&(e.focus(),!Hg(e)&&e.click())},Gg=function(e){if(e){var t=e.querySelector("input");t?t.click():Hg(e)&&e.click()}},Kg={name:"ElCascaderPanel",components:{CascaderMenu:Mg},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return St()(Fg({},Vg),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(e){Object(b["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(b["isEmpty"])(t)?this.lazyLoad():(this.store=new $g(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(b["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,r=n.emitPath;return!(!t&&!r)&&Object(b["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(b["isEmpty"])(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?i[0]:i,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var u=r.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(u)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,r=n?Object(b["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=r.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case jg.up:var r=Wg(t,-1);qg(r);break;case jg.down:var i=Wg(t,1);qg(i);break;case jg.left:var o=this.$refs.menu[Ug(t)-1];if(o){var a=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');qg(a)}break;case jg.right:var s=this.$refs.menu[Ug(t)+1];if(s){var u=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');qg(u)}break;case jg.enter:Gg(t);break;case jg.esc:case jg.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),o.push(e.children)),this.activePath=i,this.menus=o,!t){var a=i.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(b["valueEquals"])(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new $g([],r),this.menus=[this.store.getNodes()]),e.loading=!0;var i=function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(e){return e[a]===o})).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,(function(){n.handleExpand(u)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)};r.lazyLoad(e,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");nr()(n,r)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var r=this.getFlattedNodes(e);return r.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Yg=Kg,Xg=s(Yg,pg,mg,!1,null,null,null);Xg.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Jg=Xg.exports;Jg.install=function(e){e.component(Jg.name,Jg)};var Zg,Qg,eb=Jg,tb={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"===typeof e?["large","medium","small"].includes(e):"number"===typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,r=["el-avatar"];return e&&"string"===typeof e&&r.push("el-avatar--"+e),t&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.join(" ")}},methods:{handleError:function(){var e=this.error,t=e?e():void 0;!1!==t&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,r=this.alt,i=this.isImageExist,o=this.srcSet,a=this.fit;return i&&n?e("img",{attrs:{src:n,alt:r,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size,r="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:r},[this.renderAvatar()])}},nb=tb,rb=s(nb,Zg,Qg,!1,null,null,null);rb.options.__file="packages/avatar/src/main.vue";var ib=rb.exports;ib.install=function(e){e.component(ib.name,ib)};var ob=ib,ab=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2):e._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])},sb=[];ab._withStripped=!0;var ub={name:"ElDrawer",mixins:[k.a,T.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"===typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick((function(){t.prevActiveElement&&t.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},cb=ub,lb=s(cb,ab,sb,!1,null,null,null);lb.options.__file="packages/drawer/src/main.vue";var fb=lb.exports;fb.install=function(e){e.component(fb.name,fb)};var db=fb,hb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-statistic"},[e.title||e.$slots.title?n("div",{staticClass:"head"},[e._t("title",[n("span",{staticClass:"title"},[e._v("\n "+e._s(e.title)+"\n ")])])],2):e._e(),n("div",{staticClass:"con"},[e.prefix||e.$slots.prefix?n("span",{staticClass:"prefix"},[e._t("prefix",[e._v("\n "+e._s(e.prefix)+"\n ")])],2):e._e(),n("span",{staticClass:"number",style:e.valueStyle},[e._t("formatter",[e._v(" "+e._s(e.disposeValue))])],2),e.suffix||e.$slots.suffix?n("span",{staticClass:"suffix"},[e._t("suffix",[e._v("\n "+e._s(e.suffix)+"\n ")])],2):e._e()])])},pb=[];hb._withStripped=!0;var mb=n(28),vb={name:"ElStatistic",data:function(){return{disposeValue:"",timeTask:null,REFRESH_INTERVAL:1e3/30}},props:{decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:""},precision:{type:Number,default:null},value:{type:[String,Number,Date],default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},title:{type:[String,Number],default:""},timeIndices:{type:Boolean,default:!1},valueStyle:{type:Object,default:function(){return{}}},format:{type:String,default:"HH:mm:ss:SSS"},rate:{type:Number,default:1e3}},created:function(){this.branch()},watch:{value:function(){this.branch()},groupSeparator:function(){this.dispose()},mulriple:function(){this.dispose()}},methods:{branch:function(){var e=this.timeIndices,t=this.countDown,n=this.dispose;e?t(this.value.valueOf()||this.value):n()},magnification:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",",r=String(t).length;return e.replace(new RegExp("(\\d)(?=(\\d{"+(r-1)+"})+$)","g"),"$1"+n)},dispose:function(){var e=this.value,t=this.rate,n=this.groupSeparator;if(!Object(mb["isNumber"])(e))return!1;this.precision&&(e=e.toFixed(this.precision));var r=String(e).split("."),i=r[0],o=r[1];n&&(i=this.magnification(i,t,n));var a=""+i+(o?this.decimalSeparator+o:"");return this.disposeValue=a,a},diffDate:function(e,t){return Math.max(e-t,0)},suspend:function(e){return e?this.timeTask&&(clearInterval(this.timeTask),this.timeTask=null):this.branch(),this.disposeValue},formatTimeStr:function(e){var t=this.format,n=/\[[^\]]*]/g,r=(t.match(n)||[]).map((function(e){return e.slice(1,-1)})),i=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],o=Object(mb["reduce"])(i,(function(t,n){var r=n[0];return t.replace(new RegExp(r+"+","g"),(function(t){var r=Object(mb["chain"])(e).divide(n[1]).floor(0).value();return e-=Object(mb["multiply"])(r,n[1]),Object(mb["padStart"])(String(r),String(t).length,0)}))}),t),a=0;return o.replace(n,(function(){var e=r[a];return a+=1,e}))},stopTime:function(e){var t=!0;return e?(this.$emit("change",e),t=!1):(t=!0,this.suspend(!0),this.$emit("finish",!0)),t},countDown:function(e){var t=this.REFRESH_INTERVAL,n=this.timeTask,r=this.diffDate,i=this.formatTimeStr,o=this.stopTime,a=this.suspend;if(!n){var s=this;this.timeTask=setInterval((function(){var t=r(e,Date.now());s.disposeValue=i(t),o(t)}),t),this.$once("hook:beforeDestroy",(function(){a(!0)}))}}}},gb=vb,bb=s(gb,hb,pb,!1,null,null,null);bb.options.__file="packages/statistic/src/main.vue";var yb=bb.exports;yb.install=function(e){e.component(yb.name,yb)};var wb=yb,xb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n "+e._s(e.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n "+e._s(e.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n "+e._s(e.displayConfirmButtonText)+"\n ")])],1)]),e._t("reference",null,{slot:"reference"})],2)},_b=[];xb._withStripped=!0;var Cb=n(45),kb=n.n(Cb),Sb={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:kb.a,ElButton:ae.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(bs["t"])("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(bs["t"])("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},Ob=Sb,Eb=s(Ob,xb,_b,!1,null,null,null);Eb.options.__file="packages/popconfirm/src/main.vue";var Tb=Eb.exports;Tb.install=function(e){e.component(Tb.name,Tb)};var Db=Tb,Mb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.uiLoading?[n("div",e._b({class:["el-skeleton",e.animated?"is-animated":""]},"div",e.$attrs,!1),[e._l(e.count,(function(t){return[e.loading?e._t("template",e._l(e.rows,(function(r){return n("el-skeleton-item",{key:t+"-"+r,class:{"el-skeleton__paragraph":1!==r,"is-first":1===r,"is-last":r===e.rows&&e.rows>1},attrs:{variant:"p"}})}))):e._e()]}))],2)]:[e._t("default",null,null,e.$attrs)]],2)},Ab=[];Mb._withStripped=!0;var Nb={name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(e){var t=this;this.throttle<=0?this.uiLoading=e:e?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout((function(){t.uiLoading=t.loading}),this.throttle)):this.uiLoading=e},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},Pb=Nb,Ib=s(Pb,Mb,Ab,!1,null,null,null);Ib.options.__file="packages/skeleton/src/index.vue";var Rb=Ib.exports;Rb.install=function(e){e.component(Rb.name,Rb)};var zb=Rb,Bb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-skeleton__item","el-skeleton__"+e.variant]},["image"===e.variant?n("img-placeholder"):e._e()],1)},Lb=[];Bb._withStripped=!0;var $b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])},Fb=[];$b._withStripped=!0;var jb={name:"ImgPlaceholder"},Vb=jb,Hb=s(Vb,$b,Fb,!1,null,null,null);Hb.options.__file="packages/skeleton/src/img-placeholder.vue";var Wb,Ub=Hb.exports,qb={name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(Wb={},Wb[Ub.name]=Ub,Wb)},Gb=qb,Kb=s(Gb,Bb,Lb,!1,null,null,null);Kb.options.__file="packages/skeleton/src/item.vue";var Yb=Kb.exports;Yb.install=function(e){e.component(Yb.name,Yb)};var Xb=Yb,Jb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:e.imageStyle},[e.image?n("img",{attrs:{src:e.image,ondragstart:"return false"}}):e._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[e.$slots.description?e._t("description"):n("p",[e._v(e._s(e.emptyDescription))])],2),e.$slots.default?n("div",{staticClass:"el-empty__bottom"},[e._t("default")],2):e._e()])},Zb=[];Jb._withStripped=!0;var Qb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+e.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+e.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+e.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+e.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+e.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+e.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+e.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+e.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+e.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])},ey=[];Qb._withStripped=!0;var ty=0,ny={name:"ImgEmpty",data:function(){return{id:++ty}}},ry=ny,iy=s(ry,Qb,ey,!1,null,null,null);iy.options.__file="packages/empty/src/img-empty.vue";var oy,ay=iy.exports,sy={name:"ElEmpty",components:(oy={},oy[ay.name]=ay,oy),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(bs["t"])("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},uy=sy,cy=s(uy,Jb,Zb,!1,null,null,null);cy.options.__file="packages/empty/src/index.vue";var ly=cy.exports;ly.install=function(e){e.component(ly.name,ly)};var fy,dy=ly,hy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},py={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(e){var t=this.elDescriptions,n=(this.row||[]).map((function(e){return hy({},e,{label:e.slots.label||e.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce((function(n,r){return n[r]=e.props[r]||t[r],n}),{}))}));return"vertical"===t.direction?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return e("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!t.border&&t.colon,"is-bordered-label":t.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])}))]),e("tr",{class:"el-descriptions-row"},[n.map((function(t){return e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",t.contentClassName],style:t.contentStyle,attrs:{colSpan:t.props.span}},[t.slots.default])}))])]):t.border?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return[e("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":t.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]}))])]):e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return e("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[e("div",{class:"el-descriptions-item__container"},[e("span",{class:(r={"el-descriptions-item__label":!0,"has-colon":t.colon},r[n.labelClassName]=!0,r),style:n.labelStyle},[n.label]),e("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])}))])])}},my=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vy={name:"ElDescriptions",components:(fy={},fy[py.name]=py,fy),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(e){if(e.componentOptions){var t=e.componentOptions,n=t.propsData,r=void 0===n?{}:n,i=t.Ctor,o=void 0===i?{}:i,a=(o.options||{}).props||{},s={};for(var u in a){var c=a[u],l=c.default;void 0!==l&&(s[u]=Object(Kf["isFunction"])(l)?l.call(e):l)}return my({},s,r)}return{}},getSlots:function(e){var t=this,n=e.componentOptions||{},r=e.children||n.children||[],i={};return r.forEach((function(e){if(!t.isEmptyElement(e)){var n=e.data&&e.data.slot||"default";i[n]=i[n]||[],"template"===e.tag?i[n].push(e.children):i[n].push(e)}})),my({},i)},isEmptyElement:function(e){return!(e.tag||e.text&&""!==e.text.trim())},filledNode:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=n),e},getRows:function(){var e=this,t=(this.$slots.default||[]).filter((function(e){return e.tag&&e.componentOptions&&"ElDescriptionsItem"===e.componentOptions.Ctor.options.name})),n=t.map((function(t){return{props:e.getOptionProps(t),slots:e.getSlots(t),vnode:t}})),r=[],i=[],o=this.column;return n.forEach((function(n,a){var s=n.props.span||1;if(a===t.length-1)return i.push(e.filledNode(n,s,o,!0)),void r.push(i);s<o?(o-=s,i.push(n)):(i.push(e.filledNode(n,s,o)),r.push(i),o=e.column,i=[])})),r}},render:function(){var e=arguments[0],t=this.title,n=this.extra,r=this.border,i=this.descriptionsSize,o=this.$slots,a=this.getRows();return e("div",{class:"el-descriptions"},[t||n||o.title||o.extra?e("div",{class:"el-descriptions__header"},[e("div",{class:"el-descriptions__title"},[o.title?o.title:t]),e("div",{class:"el-descriptions__extra"},[o.extra?o.extra:n])]):null,e("div",{class:"el-descriptions__body"},[e("table",{class:["el-descriptions__table",{"is-bordered":r},i?"el-descriptions--"+i:""]},[a.map((function(t){return e(py,{attrs:{row:t}})}))])])])},install:function(e){e.component(vy.name,vy)}},gy=vy,by={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null},install:function(e){e.component(by.name,by)}},yy=by,wy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[e._t("icon",[n(e.iconElement,{tag:"component",class:e.iconElement})])],2),e.title||e.$slots.title?n("div",{staticClass:"el-result__title"},[e._t("title",[n("p",[e._v(e._s(e.title))])])],2):e._e(),e.subTitle||e.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[e._t("subTitle",[n("p",[e._v(e._s(e.subTitle))])])],2):e._e(),e.$slots.extra?n("div",{staticClass:"el-result__extra"},[e._t("extra")],2):e._e()])},xy=[];wy._withStripped=!0;var _y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])},Cy=[];_y._withStripped=!0;var ky={name:"IconSuccess"},Sy=ky,Oy=s(Sy,_y,Cy,!1,null,null,null);Oy.options.__file="packages/result/src/icon-success.vue";var Ey=Oy.exports,Ty=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])},Dy=[];Ty._withStripped=!0;var My={name:"IconError"},Ay=My,Ny=s(Ay,Ty,Dy,!1,null,null,null);Ny.options.__file="packages/result/src/icon-error.vue";var Py=Ny.exports,Iy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])},Ry=[];Iy._withStripped=!0;var zy={name:"IconWarning"},By=zy,Ly=s(By,Iy,Ry,!1,null,null,null);Ly.options.__file="packages/result/src/icon-warning.vue";var $y=Ly.exports,Fy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])},jy=[];Fy._withStripped=!0;var Vy={name:"IconInfo"},Hy=Vy,Wy=s(Hy,Fy,jy,!1,null,null,null);Wy.options.__file="packages/result/src/icon-info.vue";var Uy,qy=Wy.exports,Gy={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Ky={name:"ElResult",components:(Uy={},Uy[Ey.name]=Ey,Uy[Py.name]=Py,Uy[$y.name]=$y,Uy[qy.name]=qy,Uy),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var e=this.icon;return e&&Gy[e]?Gy[e]:"icon-info"}}},Yy=Ky,Xy=s(Yy,wy,xy,!1,null,null,null);Xy.options.__file="packages/result/src/index.vue";var Jy=Xy.exports;Jy.install=function(e){e.component(Jy.name,Jy)};var Zy=Jy,Qy=[w,P,ie,he,we,Ee,Ue,et,ct,vt,At,$t,qt,en,un,mn,_n,Dn,zn,ur,cr,vr,Cr,Mr,Xi,io,Pa,Ua,is,hs,ms,Gs,eu,su,_u,Hu,Zu,rc,Nc,Fc,vl,jl,Hl,ql,Of,Pf,Ff,cd,vd,Cd,Md,Bd,qd,Jd,oh,dh,yh,Ih,Ip,Gp,em,sm,pm,xm,Mm,Rm,Vm,Ym,nv,xv,$v,Kv,hg,eb,ob,db,wb,Db,zb,Xb,dy,gy,yy,Zy,Ge.a],ew=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ys.a.use(t.locale),ys.a.i18n(t.i18n),Qy.forEach((function(t){e.component(t.name,t)})),e.use(ag),e.use(Il.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=Il.service,e.prototype.$msgbox=Fs,e.prototype.$alert=Fs.alert,e.prototype.$confirm=Fs.confirm,e.prototype.$prompt=Fs.prompt,e.prototype.$notify=el,e.prototype.$message=nd};"undefined"!==typeof window&&window.Vue&&ew(window.Vue);t["default"]={version:"2.15.14",locale:ys.a.use,i18n:ys.a.i18n,install:ew,CollapseTransition:Ge.a,Loading:Il,Pagination:w,Dialog:P,Autocomplete:ie,Dropdown:he,DropdownMenu:we,DropdownItem:Ee,Menu:Ue,Submenu:et,MenuItem:ct,MenuItemGroup:vt,Input:At,InputNumber:$t,Radio:qt,RadioGroup:en,RadioButton:un,Checkbox:mn,CheckboxButton:_n,CheckboxGroup:Dn,Switch:zn,Select:ur,Option:cr,OptionGroup:vr,Button:Cr,ButtonGroup:Mr,Table:Xi,TableColumn:io,DatePicker:Pa,TimeSelect:Ua,TimePicker:is,Popover:hs,Tooltip:ms,MessageBox:Fs,Breadcrumb:Gs,BreadcrumbItem:eu,Form:su,FormItem:_u,Tabs:Hu,TabPane:Zu,Tag:rc,Tree:Nc,Alert:Fc,Notification:el,Slider:vl,Icon:jl,Row:Hl,Col:ql,Upload:Of,Progress:Pf,Spinner:Ff,Message:nd,Badge:cd,Card:vd,Rate:Cd,Steps:Md,Step:Bd,Carousel:qd,Scrollbar:Jd,CarouselItem:oh,Collapse:dh,CollapseItem:yh,Cascader:Ih,ColorPicker:Ip,Transfer:Gp,Container:em,Header:sm,Aside:pm,Main:xm,Footer:Mm,Timeline:Rm,TimelineItem:Vm,Link:Ym,Divider:nv,Image:xv,Calendar:$v,Backtop:Kv,InfiniteScroll:ag,PageHeader:hg,CascaderPanel:eb,Avatar:ob,Drawer:db,Statistic:wb,Popconfirm:Db,Skeleton:zb,SkeletonItem:Xb,Empty:dy,Descriptions:gy,DescriptionsItem:yy,Result:Zy}}])["default"]},"5d41":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("861d"),a=n("825a"),s=n("c60d"),u=n("06cf"),c=n("e163");function l(e,t){var n,r,f=arguments.length<3?e:arguments[2];return a(e)===f?e[t]:(n=u.f(e,t),n?s(n)?n.value:void 0===n.get?void 0:i(n.get,f):o(r=c(e))?l(r,t,f):void 0)}r({target:"Reflect",stat:!0},{get:l})},"5e4c":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");function t(){e.add("contextmenu",(function(){}))}t()})()},"5e77":function(e,t,n){"use strict";var r=n("83ab"),i=n("1a2d"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},"5e7e":function(e,t,n){"use strict";var r,i,o,a,s=n("23e7"),u=n("c430"),c=n("9adc"),l=n("cfe9"),f=n("c65b"),d=n("cb2d"),h=n("d2bb"),p=n("d44e"),m=n("2626"),v=n("59ed"),g=n("1626"),b=n("861d"),y=n("19aa"),w=n("4840"),x=n("2cf4").set,_=n("b575"),C=n("44de"),k=n("e667"),S=n("01b4"),O=n("69f3"),E=n("d256"),T=n("4738"),D=n("f069"),M="Promise",A=T.CONSTRUCTOR,N=T.REJECTION_EVENT,P=T.SUBCLASSING,I=O.getterFor(M),R=O.set,z=E&&E.prototype,B=E,L=z,$=l.TypeError,F=l.document,j=l.process,V=D.f,H=V,W=!!(F&&F.createEvent&&l.dispatchEvent),U="unhandledrejection",q="rejectionhandled",G=0,K=1,Y=2,X=1,J=2,Z=function(e){var t;return!(!b(e)||!g(t=e.then))&&t},Q=function(e,t){var n,r,i,o=t.value,a=t.state===K,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(t.rejection===J&&ie(t),t.rejection=X),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===e.promise?c(new $("Promise-chain cycle")):(r=Z(n))?f(r,n,u,c):u(n)):c(o)}catch(d){l&&!i&&l.exit(),c(d)}},ee=function(e,t){e.notified||(e.notified=!0,_((function(){var n,r=e.reactions;while(n=r.get())Q(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var r,i;W?(r=F.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!N&&(i=l["on"+e])?i(r):e===U&&C("Unhandled promise rejection",n)},ne=function(e){f(x,l,(function(){var t,n=e.facade,r=e.value,i=re(e);if(i&&(t=k((function(){c?j.emit("unhandledRejection",r,n):te(U,n,r)})),e.rejection=c||re(e)?J:X,t.error))throw t.value}))},re=function(e){return e.rejection!==X&&!e.parent},ie=function(e){f(x,l,(function(){var t=e.facade;c?j.emit("rejectionHandled",t):te(q,t,e.value)}))},oe=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=Y,ee(e,!0))},se=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new $("Promise can't be resolved itself");var r=Z(t);r?_((function(){var n={done:!1};try{f(r,t,oe(se,n,e),oe(ae,n,e))}catch(i){ae(n,i,e)}})):(e.value=t,e.state=K,ee(e,!1))}catch(i){ae({done:!1},i,e)}}};if(A&&(B=function(e){y(this,L),v(e),f(r,this);var t=I(this);try{e(oe(se,t),oe(ae,t))}catch(n){ae(t,n)}},L=B.prototype,r=function(e){R(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:G,value:null})},r.prototype=d(L,"then",(function(e,t){var n=I(this),r=V(w(this,B));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=c?j.domain:void 0,n.state===G?n.reactions.add(r):_((function(){Q(r,n)})),r.promise})),i=function(){var e=new r,t=I(e);this.promise=e,this.resolve=oe(se,t),this.reject=oe(ae,t)},D.f=V=function(e){return e===B||e===o?new i(e):H(e)},!u&&g(E)&&z!==Object.prototype)){a=z.then,P||d(z,"then",(function(e,t){var n=this;return new B((function(e,t){f(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete z.constructor}catch(ue){}h&&h(z,L)}s({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:B}),p(B,M,!1,!0),m(M)},"5eed":function(e,t,n){"use strict";var r=n("d256"),i=n("1c7e"),o=n("4738").CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),a=n("d039"),s=n("df75"),u=n("7418"),c=n("d1e7"),l=n("7b0b"),f=n("44ad"),d=Object.assign,h=Object.defineProperty,p=i([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==d({},e)[n]||s(d({},t)).join("")!==i}))?function(e,t){var n=l(e),i=arguments.length,a=1,d=u.f,h=c.f;while(i>a){var m,v=f(arguments[a++]),g=d?p(s(v),d(v)):s(v),b=g.length,y=0;while(b>y)m=g[y++],r&&!o(h,v,m)||(n[m]=v[m])}return n}:d},6167:function(e,t,n){"use strict";var r,i;"function"===typeof Symbol&&Symbol.iterator;(function(o,a){r=a,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),f(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var i=e.getComputedStyle(t),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=r,s}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function a(e,t){var n,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function s(t,n){var r=e.getComputedStyle(t,null);return r[n]}function u(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(t.parentNode):t}function l(t){return t!==e.document.body&&("fixed"===s(t,"position")||(t.parentNode?l(t.parentNode):t))}function f(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&n(t[r])&&(i="px"),e.style[r]=t[r]+i}))}function d(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function h(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function p(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),r=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:r,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-r}}function m(e,t,n){var r=p(e),i=p(t);if(n){var o=c(t);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}var a={top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height};return a}function v(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[v("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),u(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var o=r.createElement(t.arrowTagName);s(o,t.arrowClassNames),u(o,t.arrowAttributes),i.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof a){if(a=r.querySelectorAll(t.parent),a.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function u(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=u(t);if(this._options.forceAbsolute)return"absolute";var r=l(t,n);return r?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=m(t,u(e),o),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,o,a={};if("window"===r){var s=e.document.body,l=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),i=Math.max(s.scrollWidth,s.offsetWidth,l.clientWidth,l.scrollWidth,l.offsetWidth),a={top:0,right:i,bottom:o,left:0}}else if("viewport"===r){var f=u(this._popper),d=c(this._popper),p=h(f),m=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},v=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},g="fixed"===t.offsets.popper.position?0:m(d),b="fixed"===t.offsets.popper.position?0:v(d);a={top:0-(p.top-g),right:e.document.documentElement.clientWidth-(p.left-b),bottom:e.document.documentElement.clientHeight-(p.top-g),left:0-(p.left-b)}}else a=u(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:h(r);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(t){d(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=v("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,e.styles),f(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&f(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},u=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[u][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),r={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,r[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,a.forEach(function(s,u){if(t===s&&a.length!==u+1){t=e.placement.split("-")[0],n=i(t);var c=o(e.offsets.popper),l=-1!==["right","bottom"].indexOf(t);(l&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!l&&Math.floor(e.offsets.reference[t])<Math.floor(c[n]))&&(e.flipped=!0,e.placement=a[u+1],r&&(e.placement+="-"+r),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var i={},a=e.placement.split("-")[0],s=o(e.offsets.popper),u=e.offsets.reference,c=-1!==["left","right"].indexOf(a),l=c?"height":"width",f=c?"top":"left",d=c?"left":"top",h=c?"bottom":"right",p=r(t)[l];u[h]-p<s[f]&&(e.offsets.popper[f]-=s[f]-(u[h]-p)),u[f]+p>s[h]&&(e.offsets.popper[f]+=u[f]+p-s[h]);var m=u[f]+(n||u[l]/2-p/2),v=m-s[f];return v=Math.max(Math.min(s[l]-p-8,v),8),i[f]=v,i[d]="",e.offsets.arrow=i,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(t[s]=r[s])}}}return t}}),n}))},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6374:function(e,t,n){"use strict";var r=n("cfe9"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6438:function(e,t,n){var r=n("03d6"),i=n("9742").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"64d8":function(e,t,n){n("ef1f")},6547:function(e,t,n){"use strict";var r=n("e330"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,f=o(a(t)),d=i(n),h=f.length;return d<0||d>=h?e?"":void 0:(r=u(f,d),r<55296||r>56319||d+1===h||(l=u(f,d+1))<56320||l>57343?e?s(f,d):r:e?c(f,d,d+2):l-56320+(r-55296<<10)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},"658f":function(e,t,n){n("6858");for(var r=n("ef08"),i=n("051b"),o=n("8a0d"),a=n("cc15")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},"65f0":function(e,t,n){"use strict";var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},6858:function(e,t,n){"use strict";var r=n("2f9a"),i=n("ea34"),o=n("8a0d"),a=n("6ca1");e.exports=n("393a")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"68ee":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("1626"),a=n("f5df"),s=n("d066"),u=n("8925"),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.test(c),p=function(e){if(!o(e))return!1;try{return l(c,[],e),!0}catch(t){return!1}},m=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,u(e))}catch(t){return!0}};m.sham=!0,e.exports=!l||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},"693d":function(e,t,n){"use strict";var r=n("ef08"),i=n("9c0e"),o=n("0bad"),a=n("512c"),s=n("ba01"),u=n("e34a").KEY,c=n("4b8b"),l=n("b367"),f=n("92f0"),d=n("8b1a"),h=n("cc15"),p=n("fcd4"),m=n("e198"),v=n("0ae2"),g=n("4ebc"),b=n("77e9"),y=n("7a41"),w=n("0983"),x=n("6ca1"),_=n("3397"),C=n("10db"),k=n("6f4f"),S=n("1836"),O=n("4d20"),E=n("fed5"),T=n("1a14"),D=n("9876"),M=O.f,A=T.f,N=S.f,P=r.Symbol,I=r.JSON,R=I&&I.stringify,z="prototype",B=h("_hidden"),L=h("toPrimitive"),$={}.propertyIsEnumerable,F=l("symbol-registry"),j=l("symbols"),V=l("op-symbols"),H=Object[z],W="function"==typeof P&&!!E.f,U=r.QObject,q=!U||!U[z]||!U[z].findChild,G=o&&c((function(){return 7!=k(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=M(H,t);r&&delete H[t],A(e,t,n),r&&e!==H&&A(H,t,r)}:A,K=function(e){var t=j[e]=k(P[z]);return t._k=e,t},Y=W&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},X=function(e,t,n){return e===H&&X(V,t,n),b(e),t=_(t,!0),b(n),i(j,t)?(n.enumerable?(i(e,B)&&e[B][t]&&(e[B][t]=!1),n=k(n,{enumerable:C(0,!1)})):(i(e,B)||A(e,B,C(1,{})),e[B][t]=!0),G(e,t,n)):A(e,t,n)},J=function(e,t){b(e);var n,r=v(t=x(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?k(e):J(k(e),t)},Q=function(e){var t=$.call(this,e=_(e,!0));return!(this===H&&i(j,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,B)&&this[B][e])||t)},ee=function(e,t){if(e=x(e),t=_(t,!0),e!==H||!i(j,t)||i(V,t)){var n=M(e,t);return!n||!i(j,t)||i(e,B)&&e[B][t]||(n.enumerable=!0),n}},te=function(e){var t,n=N(x(e)),r=[],o=0;while(n.length>o)i(j,t=n[o++])||t==B||t==u||r.push(t);return r},ne=function(e){var t,n=e===H,r=N(n?V:x(e)),o=[],a=0;while(r.length>a)!i(j,t=r[a++])||n&&!i(H,t)||o.push(j[t]);return o};W||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(V,n),i(this,B)&&i(this[B],e)&&(this[B][e]=!1),G(this,e,C(1,n))};return o&&q&&G(H,e,{configurable:!0,set:t}),K(e)},s(P[z],"toString",(function(){return this._k})),O.f=ee,T.f=X,n("6438").f=S.f=te,n("1917").f=Q,E.f=ne,o&&!n("e444")&&s(H,"propertyIsEnumerable",Q,!0),p.f=function(e){return K(h(e))}),a(a.G+a.W+a.F*!W,{Symbol:P});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=D(h.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=P(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!W,"Object",{create:Z,defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c((function(){E.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return E.f(w(e))}}),I&&a(a.S+a.F*(!W||c((function(){var e=P();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(y(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,R.apply(I,r)}}),P[z][L]||n("051b")(P[z],L,P[z].valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},6964:function(e,t,n){"use strict";var r=n("cb2d");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},"69f3":function(e,t,n){"use strict";var r,i,o,a=n("cdce"),s=n("cfe9"),u=n("861d"),c=n("9112"),l=n("1a2d"),f=n("c6cd"),d=n("f772"),h=n("d012"),p="Object already initialized",m=s.TypeError,v=s.WeakMap,g=function(e){return o(e)?i(e):r(e,{})},b=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}};if(a||f.state){var y=f.state||(f.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new m(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var w=d("state");h[w]=!0,r=function(e,t){if(l(e,w))throw new m(p);return t.facade=e,c(e,w,t),t},i=function(e){return l(e,w)?e[w]:{}},o=function(e){return l(e,w)}}e.exports={set:r,get:i,has:o,enforce:g,getterFor:b}},"6ac9":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=78)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},5:function(e,t){e.exports=n("e974")},7:function(e,t){e.exports=n("2b0e")},78:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},i=[];r._withStripped=!0;var o=n(5),a=n.n(o),s=n(2),u=n(3),c={name:"ElPopover",mixins:[a.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(u["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(s["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(s["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(s["on"])(n,"focusin",this.handleFocus),Object(s["on"])(t,"focusout",this.handleBlur),Object(s["on"])(n,"focusout",this.handleBlur)),Object(s["on"])(t,"keydown",this.handleKeydown),Object(s["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(s["on"])(t,"click",this.doToggle),Object(s["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(s["on"])(t,"mouseenter",this.handleMouseEnter),Object(s["on"])(n,"mouseenter",this.handleMouseEnter),Object(s["on"])(t,"mouseleave",this.handleMouseLeave),Object(s["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(s["on"])(t,"focusin",this.doShow),Object(s["on"])(t,"focusout",this.doClose)):(Object(s["on"])(t,"mousedown",this.doShow),Object(s["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(s["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(s["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(s["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(s["off"])(e,"click",this.doToggle),Object(s["off"])(e,"mouseup",this.doClose),Object(s["off"])(e,"mousedown",this.doShow),Object(s["off"])(e,"focusin",this.doShow),Object(s["off"])(e,"focusout",this.doClose),Object(s["off"])(e,"mousedown",this.doShow),Object(s["off"])(e,"mouseup",this.doClose),Object(s["off"])(e,"mouseleave",this.handleMouseLeave),Object(s["off"])(e,"mouseenter",this.handleMouseEnter),Object(s["off"])(document,"click",this.handleDocumentClick)}},l=c,f=n(0),d=Object(f["a"])(l,r,i,!1,null,null,null);d.options.__file="packages/popover/src/main.vue";var h=d.exports,p=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},m={bind:function(e,t,n){p(e,t,n)},inserted:function(e,t,n){p(e,t,n)}},v=n(7),g=n.n(v);g.a.directive("popover",m),h.install=function(e){e.directive("popover",m),e.component(h.name,h)},h.directive=m;t["default"]=h}})},"6b75":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},"6b7c":function(e,t,n){"use strict";t.__esModule=!0;var r=n("4897");t.default={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.t.apply(this,t)}}}},"6ca1":function(e,t,n){var r=n("9fbb"),i=n("c901");e.exports=function(e){return r(i(e))}},"6d08":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.CipherParams,o=n.enc,a=o.Hex,s=n.format;s.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return i.create({ciphertext:t})}}}(),e.format.Hex}))},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&c()}function u(){o(s)}function c(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,t);i=e}return c}var u=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=k(0,0,0,0);function m(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+m(r)}),0)}function g(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=m(a)}return n}function b(e){var t=e.getBBox();return k(0,0,t.width,t.height)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=h(e).getComputedStyle(e),i=g(r),o=i.left+i.right,a=i.top+i.bottom,s=m(r.width),u=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=v(r,"left","right")+o),Math.round(u+a)!==n&&(u-=v(r,"top","bottom")+a)),!x(e)){var c=Math.round(s+o)-t,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return k(i.left,i.top,s,u)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"===typeof e.getBBox}}();function x(e){return e===h(e).document.documentElement}function _(e){return r?w(e)?b(e):y(e):p}function C(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return d(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function k(e,t,n,r){return{x:e,y:t,width:n,height:r}}var S=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(){function e(e,t){var n=C(t);d(this,{target:e,contentRect:n})}return e}(),E=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new S(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),T="undefined"!==typeof WeakMap?new WeakMap:new n,D=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new E(t,n,this);T.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){D.prototype[e]=function(){var t;return(t=T.get(this))[e].apply(t,arguments)}}));var M=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:D}();t["default"]=M}.call(this,n("c8ba"))},"6f19":function(e,t,n){"use strict";var r=n("9112"),i=n("0d26"),o=n("b980"),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},"6f4f":function(e,t,n){var r=n("77e9"),i=n("85e7"),o=n("9742"),a=n("5a94")("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=n("05f5")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("9141").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),c=e.F;while(r--)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},"6f53":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("e330"),a=n("e163"),s=n("df75"),u=n("fc6a"),c=n("d1e7").f,l=o(c),f=o([].push),d=r&&i((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),h=function(e){return function(t){var n,i=u(t),o=s(i),c=d&&null===a(i),h=o.length,p=0,m=[];while(h>p)n=o[p++],r&&!(c?n in i:l(i,n))||f(m,e?[n,i[n]]:i[n]);return m}};e.exports={entries:h(!0),values:h(!1)}},7149:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("c430"),a=n("d256"),s=n("4738").CONSTRUCTOR,u=n("cdf9"),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return u(l&&this===c?a:this,e)}})},7156:function(e,t,n){"use strict";var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},7193:function(e,t,n){n("ae68")},"722f":function(e,t,n){"use strict";t.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n("e452"),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s,u=u||{};u.Dialog=function(e,t,n){var i=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":r(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":r(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():o.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){i.trapFocus(e)},this.addListeners()},u.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},u.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},u.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},u.Dialog.prototype.trapFocus=function(e){o.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(o.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&o.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=u.Dialog},7234:function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},7282:function(e,t,n){"use strict";var r=n("e330"),i=n("59ed");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},"72fe":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0})();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],b=e[t+7],y=e[t+8],w=e[t+9],x=e[t+10],_=e[t+11],C=e[t+12],k=e[t+13],S=e[t+14],O=e[t+15],E=o[0],T=o[1],D=o[2],M=o[3];E=c(E,T,D,M,a,7,s[0]),M=c(M,E,T,D,u,12,s[1]),D=c(D,M,E,T,h,17,s[2]),T=c(T,D,M,E,p,22,s[3]),E=c(E,T,D,M,m,7,s[4]),M=c(M,E,T,D,v,12,s[5]),D=c(D,M,E,T,g,17,s[6]),T=c(T,D,M,E,b,22,s[7]),E=c(E,T,D,M,y,7,s[8]),M=c(M,E,T,D,w,12,s[9]),D=c(D,M,E,T,x,17,s[10]),T=c(T,D,M,E,_,22,s[11]),E=c(E,T,D,M,C,7,s[12]),M=c(M,E,T,D,k,12,s[13]),D=c(D,M,E,T,S,17,s[14]),T=c(T,D,M,E,O,22,s[15]),E=l(E,T,D,M,u,5,s[16]),M=l(M,E,T,D,g,9,s[17]),D=l(D,M,E,T,_,14,s[18]),T=l(T,D,M,E,a,20,s[19]),E=l(E,T,D,M,v,5,s[20]),M=l(M,E,T,D,x,9,s[21]),D=l(D,M,E,T,O,14,s[22]),T=l(T,D,M,E,m,20,s[23]),E=l(E,T,D,M,w,5,s[24]),M=l(M,E,T,D,S,9,s[25]),D=l(D,M,E,T,p,14,s[26]),T=l(T,D,M,E,y,20,s[27]),E=l(E,T,D,M,k,5,s[28]),M=l(M,E,T,D,h,9,s[29]),D=l(D,M,E,T,b,14,s[30]),T=l(T,D,M,E,C,20,s[31]),E=f(E,T,D,M,v,4,s[32]),M=f(M,E,T,D,y,11,s[33]),D=f(D,M,E,T,_,16,s[34]),T=f(T,D,M,E,S,23,s[35]),E=f(E,T,D,M,u,4,s[36]),M=f(M,E,T,D,m,11,s[37]),D=f(D,M,E,T,b,16,s[38]),T=f(T,D,M,E,x,23,s[39]),E=f(E,T,D,M,k,4,s[40]),M=f(M,E,T,D,a,11,s[41]),D=f(D,M,E,T,p,16,s[42]),T=f(T,D,M,E,g,23,s[43]),E=f(E,T,D,M,w,4,s[44]),M=f(M,E,T,D,C,11,s[45]),D=f(D,M,E,T,O,16,s[46]),T=f(T,D,M,E,h,23,s[47]),E=d(E,T,D,M,a,6,s[48]),M=d(M,E,T,D,b,10,s[49]),D=d(D,M,E,T,S,15,s[50]),T=d(T,D,M,E,v,21,s[51]),E=d(E,T,D,M,C,6,s[52]),M=d(M,E,T,D,p,10,s[53]),D=d(D,M,E,T,x,15,s[54]),T=d(T,D,M,E,u,21,s[55]),E=d(E,T,D,M,y,6,s[56]),M=d(M,E,T,D,O,10,s[57]),D=d(D,M,E,T,g,15,s[58]),T=d(T,D,M,E,k,21,s[59]),E=d(E,T,D,M,m,6,s[60]),M=d(M,E,T,D,_,10,s[61]),D=d(D,M,E,T,h,15,s[62]),T=d(T,D,M,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+T|0,o[2]=o[2]+D|0,o[3]=o[3]+M|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(u),n.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5}))},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},"77e9":function(e,t,n){var r=n("7a41");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){"use strict";var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"7a41":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
  30. /**
  31. * Checks if an event is supported in the current execution environment.
  32. *
  33. * NOTE: This will not work correctly for non-generic events such as `change`,
  34. * `reset`, `load`, `error`, and `select`.
  35. *
  36. * Borrows from Modernizr.
  37. *
  38. * @param {string} eventNameSuffix Event name, e.g. "click".
  39. * @param {?boolean} capture Check if the capture phase is supported.
  40. * @return {boolean} True if the event is supported.
  41. * @internal
  42. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  43. */
  44. function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7bbc":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("94f8"),n("5980"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,o=t.algo,a=o.SHA256,s=o.HMAC,u=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,r=s.create(n.hasher,e),o=i.create(),a=i.create([1]),u=o.words,c=a.words,l=n.keySize,f=n.iterations;while(u.length<l){var d=r.update(t).finalize(a);r.reset();for(var h=d.words,p=h.length,m=d,v=1;v<f;v++){m=r.finalize(m),r.reset();for(var g=m.words,b=0;b<p;b++)h[b]^=g[b]}o.concat(d),c[0]++}return o.sigBytes=4*l,o}});t.PBKDF2=function(e,t,n){return u.create(n).compute(e,t)}}(),e.PBKDF2}))},"7c73":function(e,t,n){"use strict";var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),u=n("1be4"),c=n("cc12"),l=n("f772"),f=">",d="<",h="prototype",p="script",m=l("IE_PROTO"),v=function(){},g=function(e){return d+p+f+e+d+"/"+p+f},b=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&r?b(r):y():b(r);var e=a.length;while(e--)delete w[h][a[e]];return w()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[h]=i(e),n=new v,v[h]=null,n[m]=e):n=w(),void 0===t?n:o.f(n,t)}},"7d54":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),a=n("59ed"),s=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),f=l("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(e){s(this);try{a(e)}catch(r){c(this,"throw",r)}if(f)return i(f,this,e);var t=u(this),n=0;o(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},"7db0":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7f4d":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(e[i]=o)}}return e}},"7fc1":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=93)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},93:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[a.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},u=s,c=n(0),l=Object(c["a"])(u,r,i,!1,null,null,null);l.options.__file="packages/checkbox/src/checkbox-group.vue";var f=l.exports;f.install=function(e){e.component(f.name,f)};t["default"]=f}})},8119:function(e,t,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),e.exports=n("5524").Symbol},8122:function(e,t,n){"use strict";t.__esModule=!0,t.isMac=t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.noop=c,t.hasOwn=l,t.toObject=d,t.getPropByPath=h,t.rafThrottle=b,t.objToArray=y;var i=n("2b0e"),o=s(i),a=n("a742");function s(e){return e&&e.__esModule?e:{default:e}}var u=Object.prototype.hasOwnProperty;function c(){}function l(e,t){return u.call(e,t)}function f(e,t){for(var n in t)e[n]=t[n];return e}function d(e){for(var t={},n=0;n<e.length;n++)e[n]&&f(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),r=e,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};function h(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var i=t.split("."),o=0,a=i.length;o<a-1;++o){if(!r&&!n)break;var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},m=(t.arrayFind=function(e,t){var n=p(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":r(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var r=e[t];t&&r&&n.forEach((function(n){e[n+t]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,a.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,a.isObject)(e),r=(0,a.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),v=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!m(e[n],t[n]))return!1;return!0},g=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?v(e,t):m(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function b(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];t||(t=!0,window.requestAnimationFrame((function(r){e.apply(n,i),t=!1})))}}function y(e){return Array.isArray(e)?e:g(e)?[]:[e]}t.isMac=function(){return!o.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},8172:function(e,t,n){"use strict";var r=n("e065"),i=n("57b9");r("toPrimitive"),i()},"81bf":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}))},"825a":function(e,t,n){"use strict";var r=n("861d"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},"83ab":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},8418:function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},"841c":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("861d"),s=n("1d80"),u=n("129f"),c=n("577e"),l=n("dc4a"),f=n("14c3");i("search",(function(e,t,n){return[function(t){var n=s(this),i=a(t)?l(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),a=n(t,r,i);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},"845f":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=97)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},97:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},i=[];r._withStripped=!0;var o={name:"ElButtonGroup"},a=o,s=n(0),u=Object(s["a"])(a,r,i,!1,null,null,null);u.options.__file="packages/button/src/button-group.vue";var c=u.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},"84ec":function(e,t,n){n("2401")},8558:function(e,t,n){"use strict";var r=n("cfe9"),i=n("b5db"),o=n("c6b6"),a=function(e){return i.slice(0,e.length)===e};e.exports=function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},"857a":function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),o=n("577e"),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var u=o(i(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+s(o(r),a,"&quot;")+'"'),c+">"+u+"</"+t+">"}},"85e7":function(e,t,n){var r=n("1a14"),i=n("77e9"),o=n("9876");e.exports=n("0bad")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,u=0;while(s>u)r.f(e,n=a[u++],t[n]);return e}},"861d":function(e,t,n){"use strict";var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},8925:function(e,t,n){"use strict";var r=n("e330"),i=n("1626"),o=n("c6cd"),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},"8a0d":function(e,t){e.exports={}},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8b1a":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"8bbc":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=132)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},132:function(e,t,n){"use strict";n.r(t);var r,i,o={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},a=o,s=n(0),u=Object(s["a"])(a,r,i,!1,null,null,null);u.options.__file="packages/tag/src/tag.vue";var c=u.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},"8c4f":function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}n.d(t,"a",(function(){return _t}));var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,s=function(e){return encodeURIComponent(e).replace(i,o).replace(a,",")};function u(e){try{return decodeURIComponent(e)}catch(t){0}return e}function c(e,t,n){void 0===t&&(t={});var r,i=n||f;try{r=i(e||"")}catch(s){r={}}for(var o in t){var a=t[o];r[o]=Array.isArray(a)?a.map(l):l(a)}return r}var l=function(e){return null==e||"object"===typeof e?e:String(e)};function f(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=u(n.shift()),i=n.length>0?u(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function d(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(s(t)):r.push(s(t)+"="+s(e)))})),r.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function p(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:b(t,i),matched:e?g(e):[]};return n&&(a.redirectedFrom=b(n,i)),Object.freeze(a)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var v=p(null,{path:"/"});function g(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||d;return(n||"/")+o(r)+i}function y(e,t,n){return t===v?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&(n||e.hash===t.hash&&w(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&w(e.query,t.query)&&w(e.params,t.params))))}function w(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,i){var o=e[n],a=r[i];if(a!==n)return!1;var s=t[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?w(o,s):String(o)===String(s)}))}function x(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&_(e.query,t.query)}function _(e,t){for(var n in t)if(!(n in e))return!1;return!0}function C(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var k={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,o=t.parent,a=t.data;a.routerView=!0;var s=o.$createElement,u=n.name,c=o.$route,l=o._routerViewCache||(o._routerViewCache={}),f=0,d=!1;while(o&&o._routerRoot!==o){var h=o.$vnode?o.$vnode.data:{};h.routerView&&f++,h.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(a.routerViewDepth=f,d){var p=l[u],m=p&&p.component;return m?(p.configProps&&S(m,a,p.route,p.configProps),s(m,a,i)):s()}var v=c.matched[f],g=v&&v.components[u];if(!v||!g)return l[u]=null,s();l[u]={component:g},a.registerRouteInstance=function(e,t){var n=v.instances[u];(t&&n!==e||!t&&n===e)&&(v.instances[u]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){v.instances[u]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==v.instances[u]&&(v.instances[u]=e.componentInstance),C(c)};var b=v.props&&v.props[u];return b&&(r(l[u],{route:c,configProps:b}),S(g,a,c,b)),s(g,a,i)}};function S(e,t,n,i){var o=t.props=O(n,i);if(o){o=t.props=r({},o);var a=t.attrs=t.attrs||{};for(var s in o)e.props&&s in e.props||(a[s]=o[s],delete o[s])}}function O(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function E(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function T(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function D(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var M=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},A=X,N=B,P=L,I=j,R=Y,z=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=z.exec(e))){var u=n[0],c=n[1],l=n.index;if(a+=e.slice(o,l),o=l+u.length,c)a+=c[1];else{var f=e[o],d=n[2],h=n[3],p=n[4],m=n[5],v=n[6],g=n[7];a&&(r.push(a),a="");var b=null!=d&&null!=f&&f!==d,y="+"===v||"*"===v,w="?"===v||"*"===v,x=n[2]||s,_=p||m;r.push({name:h||i++,prefix:d||"",delimiter:x,optional:w,repeat:y,partial:b,asterisk:!!g,pattern:_?H(_):g?".*":"[^"+V(x)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&r.push(a),r}function L(e,t){return j(B(e,t),t)}function $(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function F(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function j(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",U(t)));return function(t,r){for(var i="",o=t||{},a=r||{},s=a.pretty?$:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!==typeof c){var l,f=o[c.name];if(null==f){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(M(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=s(f[d]),!n[u].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===d?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?F(f):s(f),!n[u].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function V(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function W(e,t){return e.keys=t,e}function U(e){return e&&e.sensitive?"":"i"}function q(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return W(e,t)}function G(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(X(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",U(n));return W(o,t)}function K(e,t,n){return Y(B(e,n),t,n)}function Y(e,t,n){M(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)o+=V(s);else{var u=V(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+u+c+")*"),c=s.optional?s.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")",o+=c}}var l=V(n.delimiter||"/"),f=o.slice(-l.length)===l;return r||(o=(f?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+l+"|$)",W(new RegExp("^"+o,U(n)),t)}function X(e,t,n){return M(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?q(e,t):M(e)?G(e,t,n):K(e,t,n)}A.parse=N,A.compile=P,A.tokensToFunction=I,A.tokensToRegExp=R;var J=Object.create(null);function Z(e,t,n){t=t||{};try{var r=J[e]||(J[e]=A.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(i){return""}finally{delete t[0]}}function Q(e,t,n,i){var o="string"===typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){o=r({},e);var a=o.params;return a&&"object"===typeof a&&(o.params=r({},a)),o}if(!o.path&&o.params&&t){o=r({},o),o._normalized=!0;var s=r(r({},t.params),o.params);if(t.name)o.name=t.name,o.params=s;else if(t.matched.length){var u=t.matched[t.matched.length-1].path;o.path=Z(u,s,"path "+t.path)}else 0;return o}var l=T(o.path||""),f=t&&t.path||"/",d=l.path?E(l.path,f,n||o.append):f,h=c(l.query,o.query,i&&i.options.parseQuery),p=o.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:h,hash:p}}var ee,te=[String,Object],ne=[String,Array],re=function(){},ie={name:"RouterLink",props:{to:{type:te,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ne,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,u=o.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,m=null==this.activeClass?d:this.activeClass,v=null==this.exactActiveClass?h:this.exactActiveClass,g=s.redirectedFrom?p(null,Q(s.redirectedFrom),null,n):s;c[v]=y(i,g,this.exactPath),c[m]=this.exact||this.exactPath?c[v]:x(i,g);var b=c[v]?this.ariaCurrentValue:null,w=function(e){oe(e)&&(t.replace?n.replace(a,re):n.push(a,re))},_={click:oe};Array.isArray(this.event)?this.event.forEach((function(e){_[e]=w})):_[this.event]=w;var C={class:c},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:s,navigate:w,isActive:c[m],isExactActive:c[v]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)C.on=_,C.attrs={href:u,"aria-current":b};else{var S=ae(this.$slots.default);if(S){S.isStatic=!1;var O=S.data=r({},S.data);for(var E in O.on=O.on||{},O.on){var T=O.on[E];E in _&&(O.on[E]=Array.isArray(T)?T:[T])}for(var D in _)D in O.on?O.on[D].push(_[D]):O.on[D]=w;var M=S.data.attrs=r({},S.data.attrs);M.href=u,M["aria-current"]=b}else C.on=_}return e(this.tag,C,this.$slots.default)}};function oe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=ae(t.children)))return t}}function se(e){if(!se.installed||ee!==e){se.installed=!0,ee=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.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(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",k),e.component("RouterLink",ie);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ue="undefined"!==typeof window;function ce(e,t,n,r,i){var o=t||[],a=n||Object.create(null),s=r||Object.create(null);e.forEach((function(e){le(o,a,s,e,i)}));for(var u=0,c=o.length;u<c;u++)"*"===o[u]&&(o.push(o.splice(u,1)[0]),c--,u--);return{pathList:o,pathMap:a,nameMap:s}}function le(e,t,n,r,i,o){var a=r.path,s=r.name;var u=r.pathToRegexpOptions||{},c=de(a,i,u.strict);"boolean"===typeof r.caseSensitive&&(u.sensitive=r.caseSensitive);var l={path:c,regex:fe(c,u),components:r.components||{default:r.component},alias:r.alias?"string"===typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:s,parent:i,matchAs:o,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 i=o?D(o+"/"+r.path):void 0;le(e,t,n,r,l,i)})),t[l.path]||(e.push(l.path),t[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};le(e,t,n,p,i,l.path||"/")}s&&(n[s]||(n[s]=l))}function fe(e,t){var n=A(e,[],t);return n}function de(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:D(t.path+"/"+e)}function he(e,t){var n=ce(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(e){ce(e,r,i,o)}function s(e,t){var n="object"!==typeof e?o[e]:void 0;ce([t||e],r,i,o,n),n&&n.alias.length&&ce(n.alias.map((function(e){return{path:e,children:[t]}})),r,i,o,n)}function u(){return r.map((function(e){return i[e]}))}function c(e,n,a){var s=Q(e,n,!1,t),u=s.name;if(u){var c=o[u];if(!c)return d(null,s);var l=c.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in s.params)&&l.indexOf(f)>-1&&(s.params[f]=n.params[f]);return s.path=Z(c.path,s.params,'named route "'+u+'"'),d(c,s,a)}if(s.path){s.params={};for(var h=0;h<r.length;h++){var p=r[h],m=i[p];if(pe(m.regex,s.path,s.params))return d(m,s,a)}}return d(null,s)}function l(e,n){var r=e.redirect,i="function"===typeof r?r(p(e,n,null,t)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return d(null,n);var a=i,s=a.name,u=a.path,l=n.query,f=n.hash,h=n.params;if(l=a.hasOwnProperty("query")?a.query:l,f=a.hasOwnProperty("hash")?a.hash:f,h=a.hasOwnProperty("params")?a.params:h,s){o[s];return c({_normalized:!0,name:s,query:l,hash:f,params:h},void 0,n)}if(u){var m=me(u,e),v=Z(m,h,'redirect route with path "'+m+'"');return c({_normalized:!0,path:v,query:l,hash:f},void 0,n)}return d(null,n)}function f(e,t,n){var r=Z(n,t.params,'aliased route with path "'+n+'"'),i=c({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return t.params=i.params,d(a,t)}return d(null,t)}function d(e,n,r){return e&&e.redirect?l(e,r||n):e&&e.matchAs?f(e,n,e.matchAs):p(e,n,r,t)}return{match:c,addRoute:s,getRoutes:u,addRoutes:a}}function pe(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=e.keys[i-1];a&&(n[a.name||"pathMatch"]="string"===typeof r[i]?u(r[i]):r[i])}return!0}function me(e,t){return E(e,t.parent?t.parent.path:"/",!0)}var ve=ue&&window.performance&&window.performance.now?window.performance:Date;function ge(){return ve.now().toFixed(3)}var be=ge();function ye(){return be}function we(e){return be=e}var xe=Object.create(null);function _e(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=r({},window.history.state);return n.key=ye(),window.history.replaceState(n,"",t),window.addEventListener("popstate",Se),function(){window.removeEventListener("popstate",Se)}}function Ce(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick((function(){var o=Oe(),a=i.call(e,t,n,r?o:null);a&&("function"===typeof a.then?a.then((function(e){Pe(e,o)})).catch((function(e){0})):Pe(a,o))}))}}function ke(){var e=ye();e&&(xe[e]={x:window.pageXOffset,y:window.pageYOffset})}function Se(e){ke(),e.state&&e.state.key&&we(e.state.key)}function Oe(){var e=ye();if(e)return xe[e]}function Ee(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function Te(e){return Ae(e.x)||Ae(e.y)}function De(e){return{x:Ae(e.x)?e.x:window.pageXOffset,y:Ae(e.y)?e.y:window.pageYOffset}}function Me(e){return{x:Ae(e.x)?e.x:0,y:Ae(e.y)?e.y:0}}function Ae(e){return"number"===typeof e}var Ne=/^#\d/;function Pe(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=Ne.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var i=e.offset&&"object"===typeof e.offset?e.offset:{};i=Me(i),t=Ee(r,i)}else Te(e)&&(t=De(e))}else n&&Te(e)&&(t=De(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Ie=ue&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Re(e,t){ke();var n=window.history;try{if(t){var i=r({},n.state);i.key=ye(),n.replaceState(i,"",e)}else n.pushState({key:we(ge())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function ze(e){Re(e,!0)}var Be={redirected:2,aborted:4,cancelled:8,duplicated:16};function Le(e,t){return Ve(e,t,Be.redirected,'Redirected when going from "'+e.fullPath+'" to "'+We(t)+'" via a navigation guard.')}function $e(e,t){var n=Ve(e,t,Be.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function Fe(e,t){return Ve(e,t,Be.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function je(e,t){return Ve(e,t,Be.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function Ve(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var He=["params","query","hash"];function We(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return He.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function Ue(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function qe(e,t){return Ue(e)&&e._isRouter&&(null==t||e.type===t)}function Ge(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ke(e){return function(t,n,r){var i=!1,o=0,a=null;Ye(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){i=!0,o++;var u,c=Qe((function(t){Ze(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[s]=t,o--,o<=0&&r()})),l=Qe((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=Ue(e)?e:new Error(t),r(a))}));try{u=e(c,l)}catch(d){l(d)}if(u)if("function"===typeof u.then)u.then(c,l);else{var f=u.component;f&&"function"===typeof f.then&&f.then(c,l)}}})),i||r()}}function Ye(e,t){return Xe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Xe(e){return Array.prototype.concat.apply([],e)}var Je="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ze(e){return e.__esModule||Je&&"Module"===e[Symbol.toStringTag]}function Qe(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(ue){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function rt(e,t,n,r){var i=Ye(e,(function(e,r,i,o){var a=it(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,i,o)})):n(a,r,i,o)}));return Xe(r?i.reverse():i)}function it(e,t){return"function"!==typeof e&&(e=ee.extend(e)),e.options[t]}function ot(e){return rt(e,"beforeRouteLeave",st,!0)}function at(e){return rt(e,"beforeRouteUpdate",st)}function st(e,t){if(t)return function(){return e.apply(t,arguments)}}function ut(e){return rt(e,"beforeRouteEnter",(function(e,t,n,r){return ct(e,n,r)}))}function ct(e,t,n){return function(r,i,o){return e(r,i,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)}))}}et.prototype.listen=function(e){this.cb=e},et.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},et.prototype.onError=function(e){this.errorCbs.push(e)},et.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach((function(e){e(a)})),a}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!i.ready&&(qe(e,Be.redirected)&&o===v||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)}))))}))},et.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current;this.pending=e;var o=function(e){!qe(e)&&Ue(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},a=e.matched.length-1,s=i.matched.length-1;if(y(e,i)&&a===s&&e.matched[a]===i.matched[s])return this.ensureURL(),e.hash&&Ce(this.router,i,e,!1),o($e(i,e));var u=nt(this.current.matched,e.matched),c=u.updated,l=u.deactivated,f=u.activated,d=[].concat(ot(l),this.router.beforeHooks,at(c),f.map((function(e){return e.beforeEnter})),Ke(f)),h=function(t,n){if(r.pending!==e)return o(Fe(i,e));try{t(e,i,(function(t){!1===t?(r.ensureURL(!0),o(je(i,e))):Ue(t)?(r.ensureURL(!0),o(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(o(Le(i,e)),"object"===typeof t&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(a){o(a)}};Ge(d,h,(function(){var n=ut(f),a=n.concat(r.router.resolveHooks);Ge(a,h,(function(){if(r.pending!==e)return o(Fe(i,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){C(e)}))}))}))},et.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},et.prototype.setupListeners=function(){},et.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=v,this.pending=null};var lt=function(e){function t(t,n){e.call(this,t,n),this._startLocation=ft(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Ie&&n;r&&this.listeners.push(_e());var i=function(){var n=e.current,i=ft(e.base);e.current===v&&i===e._startLocation||e.transitionTo(i,(function(e){r&&Ce(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Re(D(r.base+e.fullPath)),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){ze(D(r.base+e.fullPath)),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ft(this.base)!==this.current.fullPath){var t=D(this.base+this.current.fullPath);e?Re(t):ze(t)}},t.prototype.getCurrentLocation=function(){return ft(this.base)},t}(et);function ft(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(D(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var dt=function(e){function t(t,n,r){e.call(this,t,n),r&&ht(this.base)||pt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Ie&&n;r&&this.listeners.push(_e());var i=function(){var t=e.current;pt()&&e.transitionTo(mt(),(function(n){r&&Ce(e.router,n,t,!0),Ie||bt(n.fullPath)}))},o=Ie?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){gt(e.fullPath),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){bt(e.fullPath),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;mt()!==t&&(e?gt(t):bt(t))},t.prototype.getCurrentLocation=function(){return mt()},t}(et);function ht(e){var t=ft(e);if(!/^\/#/.test(t))return window.location.replace(D(e+"/#"+t)),!0}function pt(){var e=mt();return"/"===e.charAt(0)||(bt("/"+e),!1)}function mt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function vt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function gt(e){Ie?Re(vt(e)):window.location.hash=e}function bt(e){Ie?ze(vt(e)):window.location.replace(vt(e))}var yt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){qe(e,Be.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),wt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=he(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ie&&!1!==e.fallback,this.fallback&&(t="hash"),ue||(t="abstract"),this.mode=t,t){case"history":this.history=new lt(this,e.base);break;case"hash":this.history=new dt(this,e.base,this.fallback);break;case"abstract":this.history=new yt(this,e.base);break;default:0}},xt={currentRoute:{configurable:!0}};wt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},xt.currentRoute.get=function(){return this.history&&this.history.current},wt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof lt||n instanceof dt){var r=function(e){var r=n.current,i=t.options.scrollBehavior,o=Ie&&i;o&&"fullPath"in e&&Ce(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},wt.prototype.beforeEach=function(e){return Ct(this.beforeHooks,e)},wt.prototype.beforeResolve=function(e){return Ct(this.resolveHooks,e)},wt.prototype.afterEach=function(e){return Ct(this.afterHooks,e)},wt.prototype.onReady=function(e,t){this.history.onReady(e,t)},wt.prototype.onError=function(e){this.history.onError(e)},wt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},wt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},wt.prototype.go=function(e){this.history.go(e)},wt.prototype.back=function(){this.go(-1)},wt.prototype.forward=function(){this.go(1)},wt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},wt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=Q(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=kt(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},wt.prototype.getRoutes=function(){return this.matcher.getRoutes()},wt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},wt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(wt.prototype,xt);var _t=wt;function Ct(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function kt(e,t,n){var r="hash"===n?"#"+t:t;return e?D(e+"/"+r):r}wt.install=se,wt.version="3.6.5",wt.isNavigationFailure=qe,wt.NavigationFailureType=Be,wt.START_LOCATION=v,ue&&window.Vue&&window.Vue.use(wt)},"8cef":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}))},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8eb7":function(e,t){var n,r,i,o,a,s,u,c,l,f,d,h,p,m,v,g=!1;function b(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);s=y?parseFloat(y[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);u=!w||parseFloat(w[1].replace("_","."))}else u=!1;c=!!b[2],l=!!b[3]}else u=c=l=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||s>n},ie64:function(){return y.ie()&&d},firefox:function(){return b()||r},opera:function(){return b()||i},webkit:function(){return b()||o},safari:function(){return y.webkit()},chrome:function(){return b()||a},windows:function(){return b()||c},osx:function(){return b()||u},linux:function(){return b()||l},iphone:function(){return b()||h},mobile:function(){return b()||h||p||f||v},nativeApp:function(){return b()||m},android:function(){return b()||f},ipad:function(){return b()||p}};e.exports=y},"8f33":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("4ae1"),n("3410"),n("1f68"),n("131a");function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}n("d9e2");var o=n("53ca");function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){if(t&&("object"==Object(o["a"])(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}function u(e,t,n){return t=r(t),s(e,i()?Reflect.construct(t,n||[],r(e).constructor):t.apply(e,n))}},"90d8":function(e,t,n){"use strict";var r=n("c65b"),i=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},"90e3":function(e,t,n){"use strict";var r=n("e330"),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},"910d":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("825a"),s=n("46c4"),u=n("c5cc"),c=n("9bdd"),l=n("c430"),f=n("2a62"),d=n("f99f"),h=!l&&d("filter",TypeError),p=u((function(){var e,t,n,r=this.iterator,o=this.predicate,s=this.next;while(1){if(e=a(i(s,r)),t=this.done=!!e.done,t)return;if(n=e.value,c(r,o,[n,this.counter++],!0))return n}}));r({target:"Iterator",proto:!0,real:!0,forced:l||h},{filter:function(e){a(this);try{o(e)}catch(t){f(this,"throw",t)}return h?i(h,this,e):new p(s(this),{predicate:e})}})},9112:function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9141:function(e,t,n){var r=n("ef08").document;e.exports=r&&r.documentElement},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),u=n("5692"),c=n("7c73"),l=n("69f3").get,f=n("fce3"),d=n("107c"),h=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,v=i("".charAt),g=i("".indexOf),b=i("".replace),y=i("".slice),w=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),x=s.BROKEN_CARET,_=void 0!==/()??/.exec("")[1],C=w||_||x||f||d;C&&(m=function(e){var t,n,i,s,u,f,d,C=this,k=l(C),S=o(e),O=k.raw;if(O)return O.lastIndex=C.lastIndex,t=r(m,O,S),C.lastIndex=O.lastIndex,t;var E=k.groups,T=x&&C.sticky,D=r(a,C),M=C.source,A=0,N=S;if(T&&(D=b(D,"y",""),-1===g(D,"g")&&(D+="g"),N=y(S,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(S,C.lastIndex-1))&&(M="(?: "+M+")",N=" "+N,A++),n=new RegExp("^(?:"+M+")",D)),_&&(n=new RegExp("^"+M+"$(?!\\s)",D)),w&&(i=C.lastIndex),s=r(p,T?n:C,N),T?s?(s.input=y(s.input,A),s[0]=y(s[0],A),s.index=C.lastIndex,C.lastIndex+=s[0].length):C.lastIndex=0:w&&s&&(C.lastIndex=C.global?s.index+s[0].length:i),_&&s&&s.length>1&&r(h,s[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s&&E)for(s.groups=f=c(null),u=0;u<E.length;u++)d=E[u],f[d[0]]=s[d[1]];return s}),e.exports=m},"92f0":function(e,t,n){var r=n("1a14").f,i=n("9c0e"),o=n("cc15")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var i,o,a,s,u;for(a in t)if(i=e[a],o=t[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(u=i,e[a]=i={},i[u]=!0),"string"===typeof o&&(u=o,t[a]=o={},o[u]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))e[a]=i.concat(o);else if(Array.isArray(o))e[a]=[i].concat(o);else for(s in o)i[s]=o[s];else e[a]=t[a];return e}),{})}},9434:function(e,t,n){n("e8b0")},"94ca":function(e,t,n){"use strict";var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n===l||n!==c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},"94ce":function(e,t){(function(){"use strict";var e=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(t){return function(n){return e(n)===t}},n=function(e){return function(t){return typeof t===e}},r=function(e){return function(t){return e===t}},i=t("string"),o=t("object"),a=t("array"),s=r(null),u=n("boolean"),c=r(void 0),l=function(e){return null===e||void 0===e},f=function(e){return!l(e)},d=n("function"),h=n("number"),p=function(){},m=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},v=function(e,t){return function(n){return e(t(n))}},g=function(e){return function(){return e}},b=function(e){return e},y=function(e,t){return e===t};function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var x=function(e){return function(t){return!e(t)}},_=function(e){return function(){throw new Error(e)}},C=g(!1),k=g(!0),S=function(){return O},O=function(){var e=function(e){return e()},t=b,n={fold:function(e,t){return e()},isSome:C,isNone:k,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:t,orThunk:e,map:S,each:p,bind:S,exists:C,forall:k,filter:function(){return S()},toArray:function(){return[]},toString:g("none()")};return n}(),E=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:k,isNone:C,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return E(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:O},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},T=function(e){return null===e||void 0===e?O:E(e)},D={some:E,none:S,from:T},M=Array.prototype.slice,A=Array.prototype.indexOf,N=Array.prototype.push,P=function(e,t){return A.call(e,t)},I=function(e,t){return P(e,t)>-1},R=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},z=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},B=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},L=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},$=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},F=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},j=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},V=function(e,t,n){return $(e,(function(e,r){n=t(n,e,r)})),n},H=function(e,t,n){return L(e,(function(e,r){n=t(n,e,r)})),n},W=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return D.some(o);if(n(o,r))break}return D.none()},U=function(e,t){return W(e,t,C)},q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return D.some(n)}return D.none()},G=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);N.apply(t,e[n])}return t},K=function(e,t){return G(B(e,t))},Y=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},X=function(e){var t=M.call(e,0);return t.reverse(),t},J=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},Z=function(e){return[e]},Q=function(e,t){var n=M.call(e,0);return n.sort(t),n},ee=function(e,t){return t>=0&&t<e.length?D.some(e[t]):D.none()},te=function(e){return ee(e,0)},ne=function(e){return ee(e,e.length-1)},re=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return D.none()},ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ie.apply(this,arguments)};function oe(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var ae=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},se=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),c=o||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!c&&!u&&!l;return{isiPad:g(i),isiPhone:g(o),isTablet:g(u),isPhone:g(c),isTouch:g(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:g(l),isDesktop:g(f)}},ue=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ce=function(e,t){var n=ue(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return de(r(1),r(2))},le=function(e,t){var n=String(t).toLowerCase();return 0===e.length?fe():ce(e,n)},fe=function(){return de(0,0)},de=function(e,t){return{major:e,minor:t}},he={nu:de,detect:le,unknown:fe},pe=function(e,t){return re(t.brands,(function(t){var n=t.brand.toLowerCase();return U(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:he.nu(parseInt(t.version,10),0)}}))}))},me=function(e,t){var n=String(t).toLowerCase();return U(e,(function(e){return e.search(n)}))},ve=function(e,t){return me(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ge=function(e,t){return me(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return e.substring(t)},ye=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},we=function(e,t){return _e(e,t)?be(e,t.length):e},xe=function(e,t){return-1!==e.indexOf(t)},_e=function(e,t){return ye(e,t,0)},Ce=function(e,t){return ye(e,t,e.length-t.length)},ke=function(e){return function(t){return t.replace(e,"")}},Se=ke(/^\s+|\s+$/g),Oe=function(e){return e.length>0},Ee=function(e){return!Oe(e)},Te=function(e){var t=parseFloat(e);return isNaN(t)?D.none():D.some(t)},De=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Me=function(e){return function(t){return xe(t,e)}},Ae=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return xe(e,"edge/")&&xe(e,"chrome")&&xe(e,"safari")&&xe(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,De],search:function(e){return xe(e,"chrome")&&!xe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return xe(e,"msie")||xe(e,"trident")}},{name:"Opera",versionRegexes:[De,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Me("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Me("firefox")},{name:"Safari",versionRegexes:[De,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(xe(e,"safari")||xe(e,"mobile/"))&&xe(e,"applewebkit")}}],Ne=[{name:"Windows",search:Me("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return xe(e,"iphone")||xe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Me("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Me("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Me("linux"),versionRegexes:[]},{name:"Solaris",search:Me("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Me("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Me("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Pe={browsers:g(Ae),oses:g(Ne)},Ie="Edge",Re="Chrome",ze="IE",Be="Opera",Le="Firefox",$e="Safari",Fe=function(){return je({current:void 0,version:he.unknown()})},je=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ie),isChrome:r(Re),isIE:r(ze),isOpera:r(Be),isFirefox:r(Le),isSafari:r($e)}},Ve={unknown:Fe,nu:je,edge:g(Ie),chrome:g(Re),ie:g(ze),opera:g(Be),firefox:g(Le),safari:g($e)},He="Windows",We="iOS",Ue="Android",qe="Linux",Ge="OSX",Ke="Solaris",Ye="FreeBSD",Xe="ChromeOS",Je=function(){return Ze({current:void 0,version:he.unknown()})},Ze=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(He),isiOS:r(We),isAndroid:r(Ue),isOSX:r(Ge),isLinux:r(qe),isSolaris:r(Ke),isFreeBSD:r(Ye),isChromeOS:r(Xe)}},Qe={unknown:Je,nu:Ze,windows:g(He),ios:g(We),android:g(Ue),linux:g(qe),osx:g(Ge),solaris:g(Ke),freebsd:g(Ye),chromeos:g(Xe)},et=function(e,t,n){var r=Pe.browsers(),i=Pe.oses(),o=t.bind((function(e){return pe(r,e)})).orThunk((function(){return ve(r,e)})).fold(Ve.unknown,Ve.nu),a=ge(i,e).fold(Qe.unknown,Qe.nu),s=se(a,o,e,n);return{browser:o,os:a,deviceType:s}},tt={detect:et},nt=function(e){return window.matchMedia(e).matches},rt=ae((function(){return tt.detect(navigator.userAgent,D.from(navigator.userAgentData),nt)})),it=function(){return rt()},ot=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},at=function(e,t){return ot(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},st=8,ut=9,ct=11,lt=1,ft=3,dt=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return mt(r.childNodes[0])},ht=function(e,t){var n=t||document,r=n.createElement(e);return mt(r)},pt=function(e,t){var n=t||document,r=n.createTextNode(e);return mt(r)},mt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},vt=function(e,t,n){return D.from(e.dom.elementFromPoint(t,n)).map(mt)},gt={fromHtml:dt,fromTag:ht,fromText:pt,fromDom:mt,fromPoint:vt},bt=function(e,t){var n=e.dom;if(n.nodeType!==lt)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},yt=function(e){return e.nodeType!==lt&&e.nodeType!==ut&&e.nodeType!==ct||0===e.childElementCount},wt=function(e,t){var n=void 0===t?document:t.dom;return yt(n)?[]:B(n.querySelectorAll(e),gt.fromDom)},xt=function(e,t){var n=void 0===t?document:t.dom;return yt(n)?D.none():D.from(n.querySelector(e)).map(gt.fromDom)},_t=function(e,t){return e.dom===t.dom},Ct=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},kt=function(e,t){return at(e.dom,t.dom)},St=function(e,t){return it().browser.isIE()?kt(e,t):Ct(e,t)},Ot=bt,Et=Object.keys,Tt=Object.hasOwnProperty,Dt=function(e,t){for(var n=Et(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Mt=function(e,t){return At(e,(function(e,n){return{k:n,v:t(e,n)}}))},At=function(e,t){var n={};return Dt(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Nt=function(e){return function(t,n){e[n]=t}},Pt=function(e,t,n,r){var i={};return Dt(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},It=function(e,t){var n={};return Pt(e,t,Nt(n),p),n},Rt=function(e,t){var n=[];return Dt(e,(function(e,r){n.push(t(e,r))})),n},zt=function(e){return Rt(e,b)},Bt=function(e){return Et(e).length},Lt=function(e,t){return $t(e,t)?D.from(e[t]):D.none()},$t=function(e,t){return Tt.call(e,t)},Ft=function(e,t){return $t(e,t)&&void 0!==e[t]&&null!==e[t]},jt=function(e){for(var t in e)if(Tt.call(e,t))return!1;return!0},Vt=["tfoot","thead","tbody","colgroup"],Ht=function(e){return I(Vt,e)},Wt=function(e,t){return{rows:e,columns:t}},Ut=function(e,t){return{row:e,column:t}},qt=function(e,t,n){return{element:e,rowspan:t,colspan:n}},Gt=function(e,t,n,r){return{element:e,rowspan:t,colspan:n,isNew:r}},Kt=function(e,t,n,r,i,o){return{element:e,rowspan:t,colspan:n,row:r,column:i,isLocked:o}},Yt=function(e,t,n){return{element:e,cells:t,section:n}},Xt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Jt=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Zt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Qt=function(e,t,n,r){return{startRow:e,startCol:t,finishRow:n,finishCol:r}},en=function(e,t,n){return{element:e,colspan:t,column:n}},tn=function(e,t){return{element:e,columns:t}};"undefined"!==typeof window?window:Function("return this;")();var nn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rn=function(e){return e.dom.nodeType},on=function(e){return function(t){return rn(t)===e}},an=function(e){return rn(e)===st||"#comment"===nn(e)},sn=on(lt),un=on(ft),cn=on(ut),ln=on(ct),fn=function(e){return function(t){return sn(t)&&nn(t)===e}},dn=function(e){return gt.fromDom(e.dom.ownerDocument)},hn=function(e){return cn(e)?e:dn(e)},pn=function(e){return gt.fromDom(hn(e).dom.defaultView)},mn=function(e){return D.from(e.dom.parentNode).map(gt.fromDom)},vn=function(e){return D.from(e.dom.parentElement).map(gt.fromDom)},gn=function(e,t){var n=d(t)?t:C,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=gt.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},bn=function(e){return D.from(e.dom.previousSibling).map(gt.fromDom)},yn=function(e){return D.from(e.dom.nextSibling).map(gt.fromDom)},wn=function(e){return B(e.dom.childNodes,gt.fromDom)},xn=function(e,t){var n=e.dom.childNodes;return D.from(n[t]).map(gt.fromDom)},_n=function(e){return xn(e,0)},Cn=function(e){return ln(e)&&f(e.dom.host)},kn=d(Element.prototype.attachShadow)&&d(Node.prototype.getRootNode),Sn=g(kn),On=kn?function(e){return gt.fromDom(e.dom.getRootNode())}:hn,En=function(e){var t=On(e);return Cn(t)?D.some(t):D.none()},Tn=function(e){return gt.fromDom(e.dom.host)},Dn=function(e){if(Sn()&&f(e.target)){var t=gt.fromDom(e.target);if(sn(t)&&Mn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return D.from(e.target)},Mn=function(e){return f(e.dom.shadowRoot)},An=function(e){var t=un(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return En(gt.fromDom(t)).fold((function(){return n.body.contains(t)}),v(An,Tn))},Nn=function(){return Pn(gt.fromDom(document))},Pn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return gt.fromDom(t)},In=function(e,t,n){return j(gn(e,n),t)},Rn=function(e,t){return j(wn(e),t)},zn=function(e,t){var n=[];return L(wn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(zn(e,t))})),n},Bn=function(e,t,n){return In(e,(function(e){return bt(e,t)}),n)},Ln=function(e,t){return Rn(e,(function(e){return bt(e,t)}))},$n=function(e,t){return wt(t,e)};function Fn(e,t,n,r,i){return e(n,r)?D.some(n):d(i)&&i(n)?D.none():t(n,r,i)}var jn=function(e,t,n){var r=e.dom,i=d(n)?n:C;while(r.parentNode){r=r.parentNode;var o=gt.fromDom(r);if(t(o))return D.some(o);if(i(o))break}return D.none()},Vn=function(e,t,n){var r=function(e,t){return t(e)};return Fn(r,jn,e,t,n)},Hn=function(e,t){var n=function(e){return t(gt.fromDom(e))},r=U(e.dom.childNodes,n);return r.map(gt.fromDom)},Wn=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=gt.fromDom(e.childNodes[r]);if(t(i))return D.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return D.none()};return n(e.dom)},Un=function(e,t,n){return jn(e,(function(e){return bt(e,t)}),n)},qn=function(e,t){return Hn(e,(function(e){return bt(e,t)}))},Gn=function(e,t){return xt(t,e)},Kn=function(e,t,n){var r=function(e,t){return bt(e,t)};return Fn(r,Un,e,t,n)},Yn=function(e,t,n){if(!(i(n)||u(n)||h(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Xn=function(e,t,n){Yn(e.dom,t,n)},Jn=function(e,t){var n=e.dom;Dt(t,(function(e,t){Yn(n,t,e)}))},Zn=function(e,t){Dt(t,(function(t,n){t.fold((function(){tr(e,n)}),(function(t){Yn(e.dom,n,t)}))}))},Qn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},er=function(e,t){return D.from(Qn(e,t))},tr=function(e,t){e.dom.removeAttribute(t)},nr=function(e){return H(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},rr=function(e,t,n){return void 0===n&&(n=y),e.exists((function(e){return n(e,t)}))},ir=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},or=function(e,t,n){return e.isSome()&&t.isSome()?D.some(n(e.getOrDie(),t.getOrDie())):D.none()},ar=function(e,t){return void 0!==e&&null!==e?t(e):D.none()},sr=function(e){return e.bind(b)},ur=function(e,t){return e?D.some(t):D.none()},cr=function(e){return void 0!==e.style&&d(e.style.getPropertyValue)},lr=function(e,t,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);cr(e)&&e.style.setProperty(t,n)},fr=function(e,t){cr(e)&&e.style.removeProperty(t)},dr=function(e,t,n){var r=e.dom;lr(r,t,n)},hr=function(e,t){var n=e.dom;Dt(t,(function(e,t){lr(n,t,e)}))},pr=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||An(e)?i:mr(n,t)},mr=function(e,t){return cr(e)?e.style.getPropertyValue(t):""},vr=function(e,t){var n=e.dom,r=mr(n,t);return D.from(r).filter((function(e){return e.length>0}))},gr=function(e,t){var n=e.dom;fr(n,t),rr(er(e,"style").map(Se),"")&&tr(e,"style")},br=function(e,t){var n=e.dom,r=t.dom;cr(n)&&cr(r)&&(r.style.cssText=n.style.cssText)},yr=function(e,t,n){return void 0===n&&(n=0),er(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},wr=function(e,t){return yr(e,t,1)},xr=function(e){return fn("col")(e)?yr(e,"span",1)>1:wr(e,"colspan")>1},_r=function(e){return wr(e,"rowspan")>1},Cr=function(e,t){return parseInt(pr(e,t),10)},kr=g(10),Sr=g(10),Or=function(e,t){return Er(e,t,k)},Er=function(e,t,n){return K(wn(e),(function(e){return bt(e,t)?n(e)?[e]:[]:Er(e,t,n)}))},Tr=function(e,t,n){if(void 0===n&&(n=C),n(t))return D.none();if(I(e,nn(t)))return D.some(t);var r=function(e){return bt(e,"table")||n(e)};return Un(t,e.join(","),r)},Dr=function(e,t){return Tr(["td","th"],e,t)},Mr=function(e){return Or(e,"th,td")},Ar=function(e){return bt(e,"colgroup")?Ln(e,"col"):K(Ir(e),(function(e){return Ln(e,"col")}))},Nr=function(e,t){return Kn(e,"table",t)},Pr=function(e){return Or(e,"tr")},Ir=function(e){return Nr(e).fold(g([]),(function(e){return Ln(e,"colgroup")}))},Rr=function(e,t){return B(e,(function(e){if("colgroup"===nn(e)){var n=B(Ar(e),(function(e){var t=yr(e,"span",1);return qt(e,1,t)}));return Yt(e,n,"colgroup")}n=B(Mr(e),(function(e){var t=yr(e,"rowspan",1),n=yr(e,"colspan",1);return qt(e,t,n)}));return Yt(e,n,t(e))}))},zr=function(e){return mn(e).map((function(e){var t=nn(e);return Ht(t)?t:"tbody"})).getOr("tbody")},Br=function(e){var t=Pr(e),n=Ir(e),r=oe(oe([],n,!0),t,!0);return Rr(r,zr)},Lr=function(e,t){return Rr(e,(function(){return t}))},$r=function(e,t,n){var r=e.cells,i=r.slice(0,t),o=r.slice(t),a=i.concat(n).concat(o);return Vr(e,a)},Fr=function(e,t,n){return $r(e,t,[n])},jr=function(e,t,n){var r=e.cells;r[t]=n},Vr=function(e,t){return Zt(e.element,t,e.section,e.isNew)},Hr=function(e,t){var n=e.cells,r=B(n,t);return Zt(e.element,r,e.section,e.isNew)},Wr=function(e,t){return e.cells[t]},Ur=function(e,t){return Wr(e,t).element},qr=function(e){return e.cells.length},Gr=function(e){var t=F(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},Kr=function(e,t,n){var r=B(e.cells,n);return Zt(t(e.element),r,e.section,!0)},Yr="data-snooker-locked-cols",Xr=function(e){return er(e,Yr).bind((function(e){return D.from(e.match(/\d+/g))})).map((function(e){return J(e,k)}))},Jr=function(e){var t=H(Gr(e).rows,(function(e,t){return L(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{}),n=Rt(t,(function(e,t){return parseInt(t,10)}));return Q(n)},Zr=function(e,t){return e+","+t},Qr=function(e,t,n){return D.from(e.access[Zr(t,n)])},ei=function(e,t,n){var r=ti(e,(function(e){return n(t,e.element)}));return r.length>0?D.some(r[0]):D.none()},ti=function(e,t){var n=K(e.all,(function(e){return e.cells}));return j(n,t)},ni=function(e){var t={},n=0;return L(e.cells,(function(e){var r=e.colspan;z(r,(function(i){var o=n+i;t[o]=en(e.element,r,o)})),n+=r})),t},ri=function(e){var t={},n=[],r=te(e).map((function(e){return e.element})).bind(Nr),i=r.bind(Xr).getOr({}),o=0,a=0,s=0,u=F(e,(function(e){return"colgroup"===e.section})),c=u.pass,l=u.fail;L(l,(function(e){var r=[];L(e.cells,(function(e){var n=0;while(void 0!==t[Zr(s,n)])n++;for(var o=Ft(i,n.toString()),u=Kt(e.element,e.rowspan,e.colspan,s,n,o),c=0;c<e.colspan;c++)for(var l=0;l<e.rowspan;l++){var f=s+l,d=n+c,h=Zr(f,d);t[h]=u,a=Math.max(a,d+1)}r.push(u)})),o++,n.push(Yt(e.element,r,e.section)),s++}));var f=ne(c).map((function(e){var t=ni(e),n=tn(e.element,zt(t));return{colgroups:[n],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),d=f.columns,h=f.colgroups,p=Wt(o,a);return{grid:p,access:t,all:n,columns:d,colgroups:h}},ii=function(e){var t=Br(e);return ri(t)},oi=function(e){return K(e.all,(function(e){return e.cells}))},ai=function(e){return zt(e.columns)},si=function(e){return Et(e.columns).length>0},ui=function(e,t){return D.from(e.columns[t])},ci={fromTable:ii,generate:ri,getAt:Qr,findItem:ei,filterItems:ti,justCells:oi,justColumns:ai,hasColumns:si,getColumnAt:ui},li=function(e,t){var n=t.column,r=t.column+t.colspan-1,i=t.row,o=t.row+t.rowspan-1;return n<=e.finishCol&&r>=e.startCol&&i<=e.finishRow&&o>=e.startRow},fi=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},di=function(e,t){for(var n=!0,r=w(fi,t),i=t.startRow;i<=t.finishRow;i++)for(var o=t.startCol;o<=t.finishCol;o++)n=n&&ci.getAt(e,i,o).exists(r);return n?D.some(t):D.none()},hi=function(e,t){return Qt(Math.min(e.row,t.row),Math.min(e.column,t.column),Math.max(e.row+e.rowspan-1,t.row+t.rowspan-1),Math.max(e.column+e.colspan-1,t.column+t.colspan-1))},pi=function(e,t,n){var r=ci.findItem(e,t,_t),i=ci.findItem(e,n,_t);return r.bind((function(e){return i.map((function(t){return hi(e,t)}))}))},mi=function(e,t,n){return pi(e,t,n).bind((function(t){return di(e,t)}))},vi=function(e,t,n,r){return ci.findItem(e,t,_t).bind((function(t){var i=n>0?t.row+t.rowspan-1:t.row,o=r>0?t.column+t.colspan-1:t.column,a=ci.getAt(e,i+n,o+r);return a.map((function(e){return e.element}))}))},gi=function(e,t,n){return pi(e,t,n).map((function(t){var n=ci.filterItems(e,w(li,t));return B(n,(function(e){return e.element}))}))},bi=function(e,t){var n=function(e,t){return St(t,e)};return ci.findItem(e,t,n).map((function(e){return e.element}))},yi=function(e,t,n){return Nr(e).bind((function(r){var i=Ci(r);return vi(i,e,t,n)}))},wi=function(e,t,n){var r=Ci(e);return gi(r,t,n)},xi=function(e,t,n,r,i){var o=Ci(e),a=_t(e,n)?D.some(t):bi(o,t),s=_t(e,i)?D.some(r):bi(o,r);return a.bind((function(e){return s.bind((function(t){return gi(o,e,t)}))}))},_i=function(e,t,n){var r=Ci(e);return mi(r,t,n)},Ci=ci.fromTable,ki=function(e,t){var n=mn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Si=function(e,t){var n=yn(e);n.fold((function(){var n=mn(e);n.each((function(e){Ei(e,t)}))}),(function(e){ki(e,t)}))},Oi=function(e,t){var n=_n(e);n.fold((function(){Ei(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Ei=function(e,t){e.dom.appendChild(t.dom)},Ti=function(e,t,n){xn(e,n).fold((function(){Ei(e,t)}),(function(e){ki(e,t)}))},Di=function(e,t){ki(e,t),Ei(t,e)},Mi=function(e,t){L(t,(function(t){ki(e,t)}))},Ai=function(e,t){L(t,(function(n,r){var i=0===r?e:t[r-1];Si(i,n)}))},Ni=function(e,t){L(t,(function(t){Ei(e,t)}))},Pi=function(e){e.dom.textContent="",L(wn(e),(function(e){Ii(e)}))},Ii=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Ri=function(e){var t=wn(e);t.length>0&&Mi(e,t),Ii(e)},zi=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?D.from(t.dom.nodeValue):D.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Bi=zi(un,"text"),Li=function(e){return Bi.get(e)},$i=function(e){return Bi.getOption(e)},Fi=function(e,t){return Bi.set(e,t)},ji=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function Vi(){var e=function(e){return gt.fromDom(e.dom.cloneNode(!1))},t=function(e){return hn(e).dom},n=function(e){return!!sn(e)&&("body"===nn(e)||I(ji,nn(e)))},r=function(e){return!!sn(e)&&I(["br","img","hr","input"],nn(e))},i=function(e){return sn(e)&&"false"===Qn(e,"contenteditable")},o=function(e,t){return e.dom.compareDocumentPosition(t.dom)},a=function(e,t){var n=nr(e);Jn(t,n)},s=function(e){var t=nn(e);return I(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},u=function(e){return sn(e)?er(e,"lang"):D.none()};return{up:g({selector:Un,closest:Kn,predicate:jn,all:gn}),down:g({selector:$n,predicate:zn}),styles:g({get:pr,getRaw:vr,set:dr,remove:gr}),attrs:g({get:Qn,set:Xn,remove:tr,copyTo:a}),insert:g({before:ki,after:Si,afterAll:Ai,append:Ei,appendAll:Ni,prepend:Oi,wrap:Di}),remove:g({unwrap:Ri,remove:Ii}),create:g({nu:gt.fromTag,clone:e,text:gt.fromText}),query:g({comparePosition:o,prevSibling:bn,nextSibling:yn}),property:g({children:wn,name:nn,parent:mn,document:t,isText:un,isComment:an,isElement:sn,isSpecial:s,getLanguage:u,getText:Li,setText:Fi,isBoundary:n,isEmptyTag:r,isNonEditable:i}),eq:_t,is:Ot}}var Hi=function(e,t,n,r){var i=n[0],o=n.slice(1);return r(e,t,i,o)},Wi=function(e,t,n){return n.length>0?Hi(e,t,n,Ui):D.none()},Ui=function(e,t,n,r){var i=t(e,n);return V(r,(function(n,r){var i=t(e,r);return qi(e,n,i)}),i)},qi=function(e,t,n){return t.bind((function(t){return n.filter(w(e.eq,t))}))},Gi=function(e,t){return w(e.eq,t)},Ki=function(e,t,n,r){void 0===r&&(r=C);var i=[t].concat(e.up().all(t)),o=[n].concat(e.up().all(n)),a=function(e){var t=q(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},s=a(i),u=a(o),c=U(s,(function(t){return R(u,Gi(e,t))}));return{firstpath:s,secondpath:u,shared:c}},Yi=Wi,Xi=Ki,Ji=Vi(),Zi=function(e,t){return Yi(Ji,(function(t,n){return e(n)}),t)},Qi=function(e,t,n){return Xi(Ji,e,t,n)},eo=function(e){return Un(e,"table")},to=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||_t(t,e)}};return _t(e,t)?D.some({boxes:D.some([e]),start:e,finish:t}):eo(e).bind((function(i){return eo(t).bind((function(o){if(_t(i,o))return D.some({boxes:wi(i,e,t),start:e,finish:t});if(St(i,o)){var a=Bn(t,"td,th",r(i)),s=a.length>0?a[a.length-1]:t;return D.some({boxes:xi(i,e,i,t,o),start:e,finish:s})}if(St(o,i)){a=Bn(e,"td,th",r(o));var u=a.length>0?a[a.length-1]:e;return D.some({boxes:xi(o,e,i,t,o),start:e,finish:u})}return Qi(e,t).shared.bind((function(a){return Kn(a,"table",n).bind((function(n){var a=Bn(t,"td,th",r(n)),s=a.length>0?a[a.length-1]:t,u=Bn(e,"td,th",r(n)),c=u.length>0?u[u.length-1]:e;return D.some({boxes:xi(n,e,i,t,o),start:c,finish:s})}))}))}))}))},no=function(e,t){var n=$n(e,t);return n.length>0?D.some(n):D.none()},ro=function(e,t){return U(e,(function(e){return bt(e,t)}))},io=function(e,t,n){return Gn(e,t).bind((function(t){return Gn(e,n).bind((function(e){return Zi(eo,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},oo=function(e,t){return Un(e,"table").bind((function(n){return Gn(n,t).bind((function(t){return to(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))},ao=function(e,t,n,r,i){return ro(e,i).bind((function(e){return yi(e,t,n).bind((function(e){return oo(e,r)}))}))},so=function(e,t){return no(e,t)},uo=function(e,t,n){return io(e,t,n).bind((function(t){var n=function(t){return _t(e,t)},r="thead,tfoot,tbody,table",i=Un(t.first,r,n),o=Un(t.last,r,n);return i.bind((function(e){return o.bind((function(n){return _t(e,n)?_i(t.table,t.first,t.last):D.none()}))}))}))},co=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return L(e,(function(r,i){var o=Et(r);if(1!==o.length)throw new Error("one and only one name per case");var s=o[0],u=r[s];if(void 0!==n[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!a(u))throw new Error("case arguments must be an array");t.push(s),n[s]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==u.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+u.length+" ("+u+"), got "+o);var a=function(e){var r=Et(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=Y(t,(function(e){return I(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:a,log:function(e){console.log(e,{constructors:t,constructor:s,params:n})}}}})),n},lo={generate:co},fo=lo.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),ho=function(e,t,n,r){return e.fold(t,n,r)},po=fo.none,mo=fo.multiple,vo=fo.single,go=function(e,t,n){var r=function(){return so(e(),n).fold((function(){return t().fold(po,vo)}),(function(e){return mo(e)}))};return{get:r}},bo=tinymce.util.Tools.resolve("tinymce.PluginManager"),yo=function(e,t){return gt.fromDom(e.dom.cloneNode(t))},wo=function(e){return yo(e,!1)},xo=function(e){return yo(e,!0)},_o=function(e,t){var n=gt.fromTag(t),r=nr(e);return Jn(n,r),n},Co=function(e,t){var n=_o(e,t),r=wn(xo(e));return Ni(n,r),n},ko=function(e,t){var n=_o(e,t);ki(e,n);var r=wn(e);return Ni(n,r),Ii(e),n},So=function(e,t){var n=function(t,n){if(!h(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;cr(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=pr(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return H(t,(function(t,n){var r=pr(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},Oo=function(){var e=it().browser;return e.isIE()||e.isEdge()},Eo=function(e,t){return Te(e).getOr(t)},To=function(e,t,n){return Eo(pr(e,t),n)},Do=function(e){return pr(e,"box-sizing")},Mo=function(e,t,n,r){var i=To(e,"padding-"+n,0),o=To(e,"padding-"+r,0),a=To(e,"border-"+n+"-width",0),s=To(e,"border-"+r+"-width",0);return t-i-o-a-s},Ao=function(e,t){var n=e.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?r:Mo(e,r,"top","bottom")},No=function(e,t){var n=e.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?r:Mo(e,r,"left","right")},Po=function(e){return Oo()?Ao(e,Do(e)):To(e,"height",e.dom.offsetHeight)},Io=function(e){return Oo()?No(e,Do(e)):To(e,"width",e.dom.offsetWidth)},Ro=function(e){return No(e,"content-box")},zo=So("width",(function(e){return e.dom.offsetWidth})),Bo=function(e){return zo.get(e)},Lo=function(e){return zo.getOuter(e)},$o=Ro,Fo=Io,jo=function(e,t){void 0===t&&(t=k);var n=e.grid,r=z(n.columns,b),i=z(n.rows,b);return B(r,(function(n){var r=function(){return K(i,(function(t){return ci.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))},o=function(e){return 1===e.colspan&&t(e.element)},a=function(){return ci.getAt(e,0,n)};return Vo(r,o,a)}))},Vo=function(e,t,n){var r=e(),i=U(r,t),o=i.orThunk((function(){return D.from(r[0]).orThunk(n)}));return o.map((function(e){return e.element}))},Ho=function(e){var t=e.grid,n=z(t.rows,b),r=z(t.columns,b);return B(n,(function(t){var n=function(){return K(r,(function(n){return ci.getAt(e,t,n).filter((function(e){return e.row===t})).fold(g([]),(function(e){return[e]}))}))},i=function(e){return 1===e.rowspan},o=function(){return ci.getAt(e,t,0)};return Vo(n,i,o)}))},Wo=function(e,t){if(t<0||t>=e.length-1)return D.none();var n=e[t].fold((function(){var n=X(e.slice(0,t));return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return D.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return D.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},Uo=function(e,t){return function(n){return"rtl"===qo(n)?t:e}},qo=function(e){return"rtl"===pr(e,"direction")?"rtl":"ltr"},Go=So("height",(function(e){var t=e.dom;return An(e)?t.getBoundingClientRect().height:t.offsetHeight})),Ko=function(e){return Go.get(e)},Yo=function(e){return Go.getOuter(e)},Xo=Po,Jo=function(e,t){var n=function(n,r){return Jo(e+n,t+r)};return{left:e,top:t,translate:n}},Zo=Jo,Qo=function(e){var t=e.getBoundingClientRect();return Zo(t.left,t.top)},ea=function(e,t){return void 0!==e?e:void 0!==t?t:0},ta=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Zo(n.offsetLeft,n.offsetTop);var o=ea(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=ea(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=ea(i.clientTop,n.clientTop),u=ea(i.clientLeft,n.clientLeft);return na(e).translate(a-u,o-s)},na=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Zo(r.offsetLeft,r.offsetTop):An(e)?Qo(t):Zo(0,0)},ra=function(e,t){return{row:e,y:t}},ia=function(e,t){return{col:e,x:t}},oa=function(e){var t=ta(e);return t.left+Lo(e)},aa=function(e){return ta(e).left},sa=function(e,t){return ia(e,aa(t))},ua=function(e,t){return ia(e,oa(t))},ca=function(e){return ta(e).top},la=function(e,t){return ra(e,ca(t))},fa=function(e,t){return ra(e,ca(t)+Yo(t))},da=function(e,t,n){if(0===n.length)return[];var r=B(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),i=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([i])},ha=function(e){return-e},pa={delta:b,positions:function(e){return da(la,fa,e)},edge:ca},ma={delta:b,edge:aa,positions:function(e){return da(sa,ua,e)}},va={delta:ha,edge:oa,positions:function(e){return da(ua,sa,e)}},ga=Uo(ma,va),ba={delta:function(e,t){return ga(t).delta(e,t)},positions:function(e,t){return ga(t).positions(e,t)},edge:function(e){return ga(e).edge(e)}},ya={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:[""]},wa=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),xa=function(e,t){return R(t,(function(t){return R(ya[t],(function(t){return e===t}))}))},_a=function(e,t){var n=D.from(wa.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return xa(r,t)?D.some({value:n,unit:r}):D.none()}))},Ca=/(\d+(\.\d+)?)%/,ka=/(\d+(\.\d+)?)px|em/,Sa=fn("col"),Oa=function(e,t,n){var r=vn(e).getOrThunk((function(){return Pn(dn(e))}));return t(e)/n(r)*100},Ea=function(e,t){dr(e,"width",t+"px")},Ta=function(e,t){dr(e,"width",t+"%")},Da=function(e,t){dr(e,"height",t+"px")},Ma=function(e){return Xo(e)+"px"},Aa=function(e,t,n,r){var i=Nr(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,i),i},Na=function(e,t,n,r){var i=parseFloat(e);return Ce(e,"%")&&"table"!==nn(t)?Aa(t,i,n,r):i},Pa=function(e){var t=Ma(e);return t?Na(t,e,Ko,Da):Ko(e)},Ia=function(e,t,n){var r=n(e),i=wr(e,t);return r/i},Ra=function(e,t){return vr(e,t).orThunk((function(){return er(e,t).map((function(e){return e+"px"}))}))},za=function(e){return Ra(e,"width")},Ba=function(e){return Ra(e,"height")},La=function(e){return Oa(e,Bo,$o)},$a=function(e){return Sa(e)?Bo(e):Fo(e)},Fa=function(e){return Ia(e,"rowspan",Pa)},ja=function(e){var t=za(e);return t.bind((function(e){return _a(e,["fixed","relative","empty"])}))},Va=function(e,t,n){dr(e,"width",t+n)},Ha=function(e){return Bo(e)+"px"},Wa=function(e){return Oa(e,Bo,$o)+"%"},Ua=function(e){return za(e).exists((function(e){return Ca.test(e)}))},qa=function(e){return za(e).exists((function(e){return ka.test(e)}))},Ga=function(e){return za(e).isNone()},Ka=g(Ca),Ya=fn("col"),Xa=function(e){return za(e).getOrThunk((function(){return $a(e)+"px"}))},Ja=function(e){return Ba(e).getOrThunk((function(){return Fa(e)+"px"}))},Za=function(e){return B(ci.justColumns(e),(function(e){return D.from(e.element)}))},Qa=function(e){var t=it().browser,n=t.isChrome()||t.isFirefox();return!Ya(e)||n},es=function(e,t,n,r,i,o){return e.filter(r).fold((function(){return o(Wo(n,t))}),(function(e){return i(e)}))},ts=function(e,t,n,r){var i=jo(e),o=ci.hasColumns(e)?Za(e):i,a=[D.some(ba.edge(t))].concat(B(ba.positions(i,t),(function(e){return e.map((function(e){return e.x}))}))),s=x(xr);return B(o,(function(e,t){return es(e,t,a,s,(function(e){if(Qa(e))return n(e);var o=ar(i[t],b);return es(o,t,a,s,(function(e){return r(D.some(Bo(e)))}),r)}),r)}))},ns=function(e){return e.map((function(e){return e+"px"})).getOr("")},rs=function(e,t){return ts(e,t,Xa,ns)},is=function(e,t,n){return ts(e,t,La,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))},os=function(e,t,n){return ts(e,t,$a,(function(e){return e.getOrThunk(n.minCellWidth)}))},as=function(e,t,n,r,i){var o=Ho(e),a=[D.some(n.edge(t))].concat(B(n.positions(o,t),(function(e){return e.map((function(e){return e.y}))})));return B(o,(function(e,t){return es(e,t,a,x(_r),r,i)}))},ss=function(e,t,n){return as(e,t,n,Fa,(function(e){return e.getOrThunk(Sr)}))},us=function(e,t,n){return as(e,t,n,Ja,ns)},cs=function(e,t){return function(){return An(e)?t(e):parseFloat(vr(e,"width").getOr("0"))}},ls=function(e){var t=cs(e,Bo),n=g(0),r=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:r,getCellDelta:n,singleColumnWidth:g([0]),minCellWidth:n,setElementWidth:p,adjustTableWidth:p,isRelative:!0,label:"none"}},fs=function(e){var t=cs(e,(function(e){return parseFloat(Wa(e))})),n=cs(e,Bo),r=function(e){return e/n()*100},i=function(e,t){return[100-e]},o=function(){return kr()/n()*100},a=function(n){var r=t(),i=n/100*r,o=r+i;Ta(e,o)},s=function(t,n){return is(t,e,n)};return{width:t,pixelWidth:n,getWidths:s,getCellDelta:r,singleColumnWidth:i,minCellWidth:o,setElementWidth:Ta,adjustTableWidth:a,isRelative:!0,label:"percent"}},ds=function(e){var t=cs(e,Bo),n=b,r=function(e,t){var n=Math.max(kr(),e+t);return[n-e]},i=function(n){var r=t()+n;Ea(e,r)},o=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:o,getCellDelta:n,singleColumnWidth:r,minCellWidth:kr,setElementWidth:Ea,adjustTableWidth:i,isRelative:!1,label:"pixel"}},hs=function(e,t){var n=Ka().exec(t);return null!==n?fs(e):ds(e)},ps=function(e){var t=za(e);return t.fold((function(){return ls(e)}),(function(t){return hs(e,t)}))},ms={getTableSize:ps,pixelSize:ds,percentageSize:fs,noneSize:ls},vs=function(e,t,n,r,i,o){return{minRow:e,minCol:t,maxRow:n,maxCol:r,allCells:i,selectedCells:o}},gs=function(e,t){var n=e.grid.columns,r=e.grid.rows,i=r,o=n,a=0,s=0,u=[],c=[];return Dt(e.access,(function(e){if(u.push(e),t(e)){c.push(e);var n=e.row,r=n+e.rowspan-1,l=e.column,f=l+e.colspan-1;n<i?i=n:r>a&&(a=r),l<o?o=l:f>s&&(s=f)}})),vs(i,o,a,s,u,c)},bs=function(e,t,n){var r=e[n].element,i=gt.fromTag("td");Ei(i,gt.fromTag("br"));var o=t?Ei:Oi;o(r,i)},ys=function(e,t,n,r){for(var i=t.grid.columns,o=t.grid.rows,a=0;a<o;a++)for(var s=!1,u=0;u<i;u++)if(!(a<n.minRow||a>n.maxRow||u<n.minCol||u>n.maxCol)){var c=ci.getAt(t,a,u).filter(r).isNone();c?bs(e,s,a):s=!0}},ws=function(e,t,n,r){Dt(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Ii(e.element)}));var i=j(Or(e,"tr"),(function(e){return 0===e.dom.childElementCount}));L(i,Ii),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||L(Or(e,"th,td"),(function(e){tr(e,"rowspan"),tr(e,"colspan")})),tr(e,Yr),tr(e,"data-snooker-col-series");var o=ms.getTableSize(e);o.adjustTableWidth(r)},xs=function(e,t,n,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var i=os(t,e,n),o=H(i,(function(e,t){return e+t}),0),a=H(i.slice(r.minCol,r.maxCol+1),(function(e,t){return e+t}),0),s=a/o*n.pixelWidth(),u=s-n.pixelWidth();return n.getCellDelta(u)},_s=function(e,t){var n=function(e){return bt(e.element,t)},r=xo(e),i=Br(r),o=ms.getTableSize(e),a=ci.generate(i),s=gs(a,n),u="th:not("+t+"),td:not("+t+")",c=Er(r,"th,td",(function(e){return bt(e,u)}));L(c,Ii),ys(i,a,s,n);var l=ci.fromTable(e),f=xs(e,l,o,s);return ws(r,s,a,f),r},Cs=" ",ks=function(e){return"img"===nn(e)?1:$i(e).fold((function(){return wn(e).length}),(function(e){return e.length}))},Ss=function(e){return $i(e).filter((function(e){return 0!==e.trim().length||e.indexOf(Cs)>-1})).isSome()},Os=["img","br"],Es=function(e){var t=Ss(e);return t||I(Os,nn(e))},Ts=function(e){return Wn(e,Es)},Ds=function(e){return Ms(e,Es)},Ms=function(e,t){var n=function(e){for(var r=wn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return D.some(o);var a=n(o);if(a.isSome())return a}return D.none()};return n(e)},As={scope:["row","col"]},Ns=function(e){return function(){var t=gt.fromTag("td",e.dom);return Ei(t,gt.fromTag("br",e.dom)),t}},Ps=function(e){return function(){return gt.fromTag("col",e.dom)}},Is=function(e){return function(){return gt.fromTag("colgroup",e.dom)}},Rs=function(e){return function(){return gt.fromTag("tr",e.dom)}},zs=function(e,t,n){var r=Co(e,t);return Dt(n,(function(e,t){null===e?tr(r,t):Xn(r,t,e)})),r},Bs=function(e){return e},Ls=function(e,t,n){var r=Ts(e);return r.map((function(r){var i=n.join(","),o=Bn(r,i,(function(t){return _t(t,e)}));return V(o,(function(e,t){var n=wo(t);return tr(n,"contenteditable"),Ei(e,n),n}),t)})).getOr(t)},$s=function(e,t){Dt(As,(function(n,r){return er(e,r).filter((function(e){return I(n,e)})).each((function(e){return Xn(t,r,e)}))}))},Fs=function(e,t,n){var r=function(e,t){br(e.element,t),gr(t,"height"),1!==e.colspan&&gr(t,"width")},i=function(i){var o=gt.fromTag(nn(i.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?Ls(i.element,o,a):o;return Ei(s,gt.fromTag("br")),r(i,o),$s(i.element,o),e(i.element,o),o},o=function(n){var i=gt.fromTag(nn(n.element),t.dom);return r(n,i),e(n.element,i),i};return{col:o,colgroup:Is(t),row:Rs(t),cell:i,replace:zs,colGap:Ps(t),gap:Ns(t)}},js=function(e){return{col:Ps(e),colgroup:Is(e),row:Rs(e),cell:Ns(e),replace:Bs,colGap:Ps(e),gap:Ns(e)}},Vs=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,wn(gt.fromDom(r))},Hs=function(e){return B(e,gt.fromDom)},Ws=function(e){return e.nodeName.toLowerCase()},Us=function(e){return gt.fromDom(e.getBody())},qs=function(e){return e.getBoundingClientRect().width},Gs=function(e){return e.getBoundingClientRect().height},Ks=function(e){return function(t){return _t(t,Us(e))}},Ys=function(e){return e?e.replace(/px$/,""):""},Xs=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},Js=function(e){tr(e,"data-mce-style");var t=function(e){return tr(e,"data-mce-style")};L(Mr(e),t),L(Ar(e),t),L(Pr(e),t)},Zs=function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return D.from(n).filter(Oe)},Qs=function(e){return/^(\d+(\.\d+)?)%$/.test(e)},eu=function(e){return/^(\d+(\.\d+)?)px$/.test(e)},tu=function(e){return gt.fromDom(e.selection.getStart())},nu=function(e){return gt.fromDom(e.selection.getEnd())},ru=function(e){return ho(e.get(),g([]),b,Z)},iu=function(e){var t=function(e,t){return er(e,t).exists((function(e){return parseInt(e,10)>1}))},n=function(e){return t(e,"rowspan")||t(e,"colspan")},r=ru(e);return r.length>0&&Y(r,n)?D.some(r):D.none()},ou=function(e,t,n){return ho(t.get(),D.none,(function(t){return t.length<=1?D.none():uo(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),D.none)},au="data-mce-selected",su="td["+au+"],th["+au+"]",uu="["+au+"]",cu="data-mce-first-selected",lu="td["+cu+"],th["+cu+"]",fu="data-mce-last-selected",du="td["+fu+"],th["+fu+"]",hu=uu,pu={selected:au,selectedSelector:su,firstSelected:cu,firstSelectedSelector:lu,lastSelected:fu,lastSelectedSelector:du},mu=function(e){return{element:e,mergable:D.none(),unmergable:D.none(),selection:[e]}},vu=function(e,t,n){return{element:n,mergable:ou(t,e,pu),unmergable:iu(e),selection:ru(e)}},gu=function(e,t,n){return{element:e,clipboard:t,generators:n}},bu=function(e,t,n,r){return{selection:ru(e),clipboard:n,generators:r}},yu=function(e){return Nr(e).bind((function(e){return so(e,pu.firstSelectedSelector)})).fold(g(e),(function(e){return e[0]}))},wu=function(e){return function(t,n){var r=nn(t),i="col"===r||"colgroup"===r?yu(t):t;return Kn(i,e,n)}},xu=wu("th,td,caption"),_u=wu("th,td"),Cu=function(e){return ru(e)},ku=function(e,t){var n=_u(e),r=n.bind((function(e){return Nr(e)})).map((function(e){return Pr(e)}));return or(n,r,(function(e,n){return j(n,(function(n){return R(Hs(n.dom.cells),(function(n){return"1"===Qn(n,t)||_t(n,e)}))}))})).getOr([])},Su=function(e){return Nr(e[0]).map((function(e){var t=_s(e,hu);return Js(t),[t]}))},Ou=function(e,t){return B(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")},Eu=function(e){return B(e,(function(e){return e.dom.innerText})).join("")},Tu=function(e,t,n){e.on("BeforeGetContent",(function(n){var r=function(t){n.preventDefault(),Su(t).each((function(t){n.content="text"===n.format?Eu(t):Ou(e,t)}))};!0===n.selection&&ho(t.get(),p,r,p)})),e.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var i=Cu(t);te(i).each((function(t){Nr(t).each((function(i){var o=j(Vs(r.content),(function(e){return"meta"!==nn(e)})),a=fn("table");if(1===o.length&&a(o[0])){r.preventDefault();var s=gt.fromDom(e.getDoc()),u=js(s),c=gu(t,o[0],u);n.pasteCells(i,c).each((function(){e.focus()}))}}))}))}}))},Du=lo.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Mu=ie({},Du),Au=function(e,t){return 0===e.length?Mu.none():1===e.length?Mu.only(0):0===t?Mu.left(0,1):t===e.length-1?Mu.right(t-1,t):t>0&&t<e.length-1?Mu.middle(t-1,t,t+1):Mu.none()},Nu=function(e,t,n,r,i){var o=e.slice(0),a=Au(e,t),s=g(B(o,g(0))),u=function(e){return r.singleColumnWidth(o[e],n)},c=function(e,t){return i.calcLeftEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)},l=function(e,t,a){return i.calcMiddleDeltas(o,e,t,a,n,r.minCellWidth(),r.isRelative)},f=function(e,t){return i.calcRightEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)};return a.fold(s,u,c,l,f)},Pu=function(e,t,n){for(var r=0,i=e;i<t;i++)r+=void 0!==n[i]?n[i]:0;return r},Iu=function(e,t){var n=ci.justCells(e);return B(n,(function(e){var n=Pu(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))},Ru=function(e,t){var n=ci.justColumns(e);return B(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))},zu=function(e,t){var n=ci.justCells(e);return B(n,(function(e){var n=Pu(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Bu=function(e,t){return B(e.all,(function(e,n){return{element:e.element,height:t[n]}}))},Lu=function(e){return V(e,(function(e,t){return e+t}),0)},$u=function(e,t){return ci.hasColumns(e)?Ru(e,t):Iu(e,t)},Fu=function(e,t,n){var r=$u(e,t);L(r,(function(e){n.setElementWidth(e.element,e.width)}))},ju=function(e,t,n,r,i){var o=ci.fromTable(e),a=i.getCellDelta(t),s=i.getWidths(o,i),u=n===o.grid.columns-1,c=r.clampTableDelta(s,n,a,i.minCellWidth(),u),l=Nu(s,n,c,i,r),f=B(l,(function(e,t){return e+s[t]}));Fu(o,f,i),r.resizeTable(i.adjustTableWidth,c,u)},Vu=function(e,t,n,r){var i=ci.fromTable(e),o=ss(i,e,r),a=B(o,(function(e,r){return n===r?Math.max(t+e,Sr()):e})),s=zu(i,a),u=Bu(i,a);L(u,(function(e){Da(e.element,e.height)})),L(s,(function(e){Da(e.element,e.height)}));var c=Lu(a);Da(e,c)},Hu=function(e,t,n,r,i){var o=ci.generate(t),a=r.getWidths(o,r),s=r.pixelWidth(),u=i.calcRedestributedWidths(a,s,n.pixelDelta,r.isRelative),c=u.newSizes,l=u.delta;Fu(o,c,r),r.adjustTableWidth(l)},Wu=function(e,t,n,r){var i=ci.generate(t),o=r.getWidths(i,r);Fu(i,o,r)},Uu=function(e){return B(e,g(0))},qu=function(e,t,n,r,i){return i(e.slice(0,t)).concat(r).concat(i(e.slice(n)))},Gu=function(e){return function(t,n,r,i){if(e(r)){var o=Math.max(i,t[n]-Math.abs(r)),a=Math.abs(o-t[n]);return r>=0?a:-a}return r}},Ku=Gu((function(e){return e<0})),Yu=Gu(k),Xu=function(){var e=function(e,t,n,r,i){var o=Ku(e,t,r,i);return qu(e,t,n+1,[o,0],Uu)},t=function(e,t,n,r){var i=(100+n)/100,o=Math.max(r,(e[t]+n)/i);return B(e,(function(e,n){var r=n===t?o:e/i;return r-e}))},n=function(n,r,i,o,a,s){return s?t(n,r,o,a):e(n,r,i,o,a)},r=function(e,t,r,i,o,a,s){return n(e,r,i,o,a,s)},i=function(e,t){return e(t)},o=function(e,n,r,i,o,a){if(a)return t(e,r,i,o);var s=Ku(e,r,i,o);return Uu(e.slice(0,r)).concat([s])},a=function(e,t,n,r){if(r){var i=t+n,o=i/t,a=B(e,(function(e){return e/o}));return{delta:100*o-100,newSizes:a}}return{delta:n,newSizes:e}};return{resizeTable:i,clampTableDelta:Ku,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:o,calcRedestributedWidths:a}},Ju=function(){var e=function(e,t,n,r,i){var o=r>=0?n:t,a=Yu(e,o,r,i);return qu(e,t,n+1,[a,-a],Uu)},t=function(t,n,r,i,o,a){return e(t,r,i,o,a)},n=function(e,t,n){n&&e(t)},r=function(e,t,n,r,i,o){if(o)return Uu(e);var a=r/e.length;return B(e,g(a))},i=function(e,t,n,r,i){if(i){if(n>=0)return n;var o=H(e,(function(e,t){return e+t-r}),0);return Math.max(-o,n)}return Ku(e,t,n,r)},o=function(e,t,n,r){return{delta:0,newSizes:e}};return{resizeTable:n,clampTableDelta:i,calcLeftEdgeDeltas:e,calcMiddleDeltas:t,calcRightEdgeDeltas:r,calcRedestributedWidths:o}},Zu=function(e,t){var n=D.from(e.dom.documentElement).map(gt.fromDom).getOr(e);return{parent:g(n),view:g(e),origin:g(Zo(0,0)),isResizable:t}},Qu=function(e,t,n){var r=function(){return ta(t)};return{parent:g(t),view:g(e),origin:r,isResizable:n}},ec=function(e,t,n){return{parent:g(t),view:g(e),origin:g(Zo(0,0)),isResizable:n}},tc={only:Zu,detached:Qu,body:ec},nc=lo.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),rc=function(e,t,n){var r=n.substring(0,n.length-e.length),i=parseFloat(r);return r===i.toString()?t(i):nc.invalid(n)},ic=function(e){return Ce(e,"%")?rc("%",nc.percent,e):Ce(e,"px")?rc("px",nc.pixels,e):nc.invalid(e)},oc=ie(ie({},nc),{from:ic}),ac=function(e,t){return B(e,(function(e){var n=oc.from(e);return n.fold((function(){return e}),(function(e){var n=e/t*100;return n+"%"}),(function(e){return e+"%"}))}))},sc=function(e,t,n){var r=n/t;return B(e,(function(e){var t=oc.from(e);return t.fold((function(){return e}),(function(e){return e*r+"px"}),(function(e){return e/100*n+"px"}))}))},uc=function(e,t){var n=e.fold((function(){return g("")}),(function(e){var n=e/t;return g(n+"px")}),(function(){var e=100/t;return g(e+"%")}));return z(t,n)},cc=function(e,t,n){return e.fold((function(){return t}),(function(e){return sc(t,n,e)}),(function(e){return ac(t,n)}))},lc=function(e,t,n){var r=oc.from(n),i=Y(e,(function(e){return"0px"===e}))?uc(r,e.length):cc(r,e,t);return pc(i)},fc=function(e,t){return 0===e.length?t:V(e,(function(e,t){return oc.from(t).fold(g(0),b,b)+e}),0)},dc=function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}},hc=function(e,t){return oc.from(e).fold(g(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},pc=function(e){if(0===e.length)return e;var t=V(e,(function(e,t){var n=oc.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return dc(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([hc(n[n.length-1],Math.round(t.remainder))])},mc=oc.from,vc=function(e,t,n){L(t,(function(t){var r=e.slice(t.column,t.colspan+t.column),i=fc(r,kr());dr(t.element,"width",i+n)}))},gc=function(e,t,n){L(t,(function(t,r){var i=fc([e[r]],kr());dr(t.element,"width",i+n)}))},bc=function(e,t,n,r){L(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),i=fc(n,Sr());dr(t.element,"height",i+r)})),L(t,(function(t,n){dr(t.element,"height",e[n])}))},yc=function(e){return mc(e).fold(g("px"),g("px"),g("%"))},wc=function(e,t,n){var r=ci.fromTable(e),i=r.all,o=ci.justCells(r),a=ci.justColumns(r);t.each((function(t){var n=yc(t),i=Bo(e),s=rs(r,e),u=lc(s,i,t);ci.hasColumns(r)?gc(u,a,n):vc(u,o,n),dr(e,"width",t)})),n.each((function(t){var n=yc(t),a=Ko(e),s=us(r,e,pa),u=lc(s,a,t);bc(u,i,o,n),dr(e,"height",t)}))},xc=Ua,_c=qa,Cc=Ga,kc=function(e){var t=ci.fromTable(e);return t.grid},Sc=function(e){var t=[],n=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},r=function(e){t=j(t,(function(t){return t!==e}))},i=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};L(e,(function(e,t){i[e]=n[t]})),L(t,(function(e){e(i)}))};return{bind:n,unbind:r,trigger:i}},Oc=function(e){var t=Mt(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=Mt(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},Ec=function(e,t){var n=null,r=function(){s(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},Tc=function(e){return e.slice(0).sort()},Dc=function(e,t){throw new Error("All required keys ("+Tc(e).join(", ")+") were not specified. Specified keys were: "+Tc(t).join(", ")+".")},Mc=function(e){throw new Error("Unsupported keys for object: "+Tc(e).join(", "))},Ac=function(e,t){if(!a(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");L(t,(function(t){if(!i(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},Nc=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+Tc(e).join(", ")+") were not.")},Pc=function(e){var t=Tc(e),n=U(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},Ic=function(e,t){return Rc(e,t,{validate:d,label:"function"})},Rc=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return Ac("required",t),Pc(t),function(r){var i=Et(r),o=Y(t,(function(e){return I(i,e)}));o||Dc(t,i),e(t,i);var a=j(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&Nc(a,n.label),r}},zc=function(e,t){var n=j(t,(function(t){return!I(e,t)}));n.length>0&&Mc(n)},Bc=function(e){return Ic(zc,e)},Lc=Bc(["compare","extract","mutate","sink"]),$c=Bc(["element","start","stop","destroy"]),Fc=Bc(["forceDrop","drop","move","delayDrop"]),jc=function(){var e=D.none(),t=function(){e=D.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=D.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){i.trigger.move(e)}))}))},i=Oc({move:Sc(["info"])});return{onEvent:r,reset:t,events:i.registry}},Vc=function(){var e=Oc({move:Sc(["info"])});return{onEvent:p,reset:p,events:e.registry}},Hc=function(){var e=Vc(),t=jc(),n=e,r=function(){n.reset(),n=t},i=function(){n.reset(),n=e},o=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:i,isOn:a,onEvent:o,events:t.events}},Wc=function(e,t,n){var r=!1,i=Oc({start:Sc([]),stop:Sc([])}),o=Hc(),a=function(){h.stop(),o.isOn()&&(o.off(),i.trigger.stop())},s=Ec(a,200),u=function(e){h.start(e),o.on(),i.trigger.start()},c=function(e){s.cancel(),o.onEvent(e,t)};o.events.move.bind((function(n){t.mutate(e,n.info)}));var l=function(){r=!0},f=function(){r=!1},d=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},h=t.sink(Fc({forceDrop:a,drop:d(a),move:d(c),delayDrop:d(s.throttle)}),n),p=function(){h.destroy()};return{element:h.element,go:u,on:l,off:f,destroy:p,events:i.registry}},Uc=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},qc=function(e){var t=gt.fromDom(Dn(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=m(r,n);return Uc(t,e.clientX,e.clientY,n,r,i,e)},Gc=function(e,t){return function(n){e(n)&&t(qc(n))}},Kc=function(e,t,n,r,i){var o=Gc(n,r);return e.dom.addEventListener(t,o,i),{unbind:w(Xc,e,t,o,i)}},Yc=function(e,t,n,r){return Kc(e,t,n,r,!1)},Xc=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Jc=k,Zc=function(e,t,n){return Yc(e,t,Jc,n)},Qc=qc,el=function(e,t){var n=Qn(e,t);return void 0===n||""===n?[]:n.split(" ")},tl=function(e,t,n){var r=el(e,t),i=r.concat([n]);return Xn(e,t,i.join(" ")),!0},nl=function(e,t,n){var r=j(el(e,t),(function(e){return e!==n}));return r.length>0?Xn(e,t,r.join(" ")):tr(e,t),!1},rl=function(e){return void 0!==e.dom.classList},il=function(e){return el(e,"class")},ol=function(e,t){return tl(e,"class",t)},al=function(e,t){return nl(e,"class",t)},sl=function(e,t){rl(e)?e.dom.classList.add(t):ol(e,t)},ul=function(e){var t=rl(e)?e.dom.classList:il(e);0===t.length&&tr(e,"class")},cl=function(e,t){if(rl(e)){var n=e.dom.classList;n.remove(t)}else al(e,t);ul(e)},ll=function(e,t){return rl(e)&&e.dom.classList.contains(t)},fl=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},dl=fl("ephox-dragster"),hl=dl.resolve,pl=function(e){var t=ie({layerClass:hl("blocker")},e),n=gt.fromTag("div");Xn(n,"role","presentation"),hr(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),sl(n,hl("blocker")),sl(n,t.layerClass);var r=g(n),i=function(){Ii(n)};return{element:r,destroy:i}},ml=function(e,t){return Zo(t.left-e.left,t.top-e.top)},vl=function(e){return D.some(Zo(e.x,e.y))},gl=function(e,t){e.mutate(t.left,t.top)},bl=function(e,t){var n=pl(t),r=Zc(n.element(),"mousedown",e.forceDrop),i=Zc(n.element(),"mouseup",e.drop),o=Zc(n.element(),"mousemove",e.move),a=Zc(n.element(),"mouseout",e.delayDrop),s=function(){n.destroy(),i.unbind(),o.unbind(),a.unbind(),r.unbind()},u=function(e){Ei(e,n.element())},c=function(){Ii(n.element())};return $c({element:n.element,start:u,stop:c,destroy:s})},yl=Lc({compare:ml,extract:vl,sink:bl,mutate:gl}),wl=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:yl;return Wc(e,n,t)},xl=function(e){return Kn(e,"[contenteditable]")},_l=function(e,t){return void 0===t&&(t=!1),!it().browser.isIE()&&An(e)?e.dom.isContentEditable:xl(e).fold(g(t),(function(e){return"true"===Cl(e)}))},Cl=function(e){return e.dom.contentEditable},kl=fl("ephox-snooker"),Sl=kl.resolve,Ol=function(){var e=Oc({drag:Sc(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},El=function(){var e=Oc({drag:Sc(["xDelta","yDelta","target"])}),t=D.none(),n=Ol();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))}));var r=function(e){t=D.some(e)},i=function(){return t};return{assign:r,get:i,mutate:n.mutate,events:e.registry}},Tl=function(e,t,n,r,i){var o=gt.fromTag("div");return hr(o,{position:"absolute",left:t-r/2+"px",top:n+"px",height:i+"px",width:r+"px"}),Jn(o,{"data-column":e,role:"presentation"}),o},Dl=function(e,t,n,r,i){var o=gt.fromTag("div");return hr(o,{position:"absolute",left:t+"px",top:n-i/2+"px",height:i+"px",width:r+"px"}),Jn(o,{"data-row":e,role:"presentation"}),o},Ml=Sl("resizer-bar"),Al=Sl("resizer-rows"),Nl=Sl("resizer-cols"),Pl=7,Il=function(e,t){return K(e.all,(function(e,n){return t(e.element)?[n]:[]}))},Rl=function(e,t){var n=[];return z(e.grid.columns,(function(r){var i=ci.getColumnAt(e,r).map((function(e){return e.element}));i.forall(t)&&n.push(r)})),j(n,(function(n){var r=ci.filterItems(e,(function(e){return e.column===n}));return Y(r,(function(e){return t(e.element)}))}))},zl=function(e){var t=$n(e.parent(),"."+Ml);L(t,Ii)},Bl=function(e,t,n){var r=e.origin();L(t,(function(t){t.each((function(t){var i=n(r,t);sl(i,Ml),Ei(e.parent(),i)}))}))},Ll=function(e,t,n,r){Bl(e,t,(function(e,t){var i=Tl(t.col,t.x-e.left,n.top-e.top,Pl,r);return sl(i,Nl),i}))},$l=function(e,t,n,r){Bl(e,t,(function(e,t){var i=Dl(t.row,n.left-e.left,t.y-e.top,r,Pl);return sl(i,Al),i}))},Fl=function(e,t,n,r,i){var o=ta(n),a=t.isResizable,s=r.length>0?pa.positions(r,n):[],u=s.length>0?Il(e,a):[],c=j(s,(function(e,t){return R(u,(function(e){return t===e}))}));$l(t,c,o,Lo(n));var l=i.length>0?ba.positions(i,n):[],f=l.length>0?Rl(e,a):[],d=j(l,(function(e,t){return R(f,(function(e){return t===e}))}));Ll(t,d,o,Yo(n))},jl=function(e,t){if(zl(e),e.isResizable(t)){var n=ci.fromTable(t),r=Ho(n),i=jo(n);Fl(n,e,t,r,i)}},Vl=function(e,t){var n=$n(e.parent(),"."+Ml);L(n,t)},Hl=function(e){Vl(e,(function(e){dr(e,"display","none")}))},Wl=function(e){Vl(e,(function(e){dr(e,"display","block")}))},Ul=function(e){return ll(e,Al)},ql=function(e){return ll(e,Nl)},Gl=Sl("resizer-bar-dragging"),Kl=function(e){var t=El(),n=wl(t,{}),r=D.none(),i=function(e,t){return D.from(Qn(e,t))};t.events.drag.bind((function(e){i(e.target,"data-row").each((function(t){var n=Cr(e.target,"top");dr(e.target,"top",n+e.yDelta+"px")})),i(e.target,"data-column").each((function(t){var n=Cr(e.target,"left");dr(e.target,"left",n+e.xDelta+"px")}))}));var o=function(e,t){var n=Cr(e,t),r=yr(e,"data-initial-"+t,0);return n-r};n.events.stop.bind((function(){t.get().each((function(t){r.each((function(n){i(t,"data-row").each((function(e){var r=o(t,"top");tr(t,"data-initial-top"),h.trigger.adjustHeight(n,r,parseInt(e,10))})),i(t,"data-column").each((function(e){var r=o(t,"left");tr(t,"data-initial-left"),h.trigger.adjustWidth(n,r,parseInt(e,10))})),jl(e,n)}))}))}));var a=function(r,i){h.trigger.startAdjust(),t.assign(r),Xn(r,"data-initial-"+i,Cr(r,i)),sl(r,Gl),dr(r,"opacity","0.2"),n.go(e.parent())},s=Zc(e.parent(),"mousedown",(function(e){Ul(e.target)&&a(e.target,"top"),ql(e.target)&&a(e.target,"left")})),u=function(t){return _t(t,e.view())},c=function(e){return Kn(e,"table",u).filter(_l)},l=Zc(e.view(),"mouseover",(function(t){c(t.target).fold((function(){An(t.target)&&zl(e)}),(function(t){r=D.some(t),jl(e,t)}))})),f=function(){s.unbind(),l.unbind(),n.destroy(),zl(e)},d=function(t){jl(e,t)},h=Oc({adjustHeight:Sc(["table","delta","row"]),adjustWidth:Sc(["table","delta","column"]),startAdjust:Sc([])});return{destroy:f,refresh:d,on:n.on,off:n.off,hideBars:w(Hl,e),showBars:w(Wl,e),events:h.registry}},Yl=function(e,t,n){var r=pa,i=ba,o=Kl(e),a=Oc({beforeResize:Sc(["table","type"]),afterResize:Sc(["table","type"]),startDrag:Sc([])});return o.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=r.delta(e.delta,t);Vu(t,n,e.row,r),a.trigger.afterResize(t,"row")})),o.events.startAdjust.bind((function(e){a.trigger.startDrag()})),o.events.adjustWidth.bind((function(e){var r=e.table;a.trigger.beforeResize(r,"col");var o=i.delta(e.delta,r),s=n(r);ju(r,o,e.column,t,s),a.trigger.afterResize(r,"col")})),{on:o.on,off:o.off,hideBars:o.hideBars,showBars:o.showBars,destroy:o.destroy,events:a.registry}},Xl={create:Yl},Jl=function(e,t){return e.fire("newrow",{node:t})},Zl=function(e,t){return e.fire("newcell",{node:t})},Ql=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},ef=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},tf=function(e,t,n,r,i){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:i})},nf=function(e){e.fire("TableSelectionClear")},rf=function(e,t,n){e.fire("TableModified",ie(ie({},n),{table:t}))},of={structure:!1,style:!0},af={structure:!0,style:!1},sf={structure:!0,style:!0},uf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",cf={"border-collapse":"collapse",width:"100%"},lf=z(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),ff=B(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),df=function(e){var t;if(Pf(e)){var n=e.dom,r=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),i=$o(gt.fromDom(r));return ie(ie({},cf),{width:i+"px"})}return If(e)?It(cf,(function(e,t){return"width"!==t})):cf},hf={border:"1"},pf="preservetable",mf=function(e){return e.getParam("table_sizing_mode","auto")},vf=function(e){return e.getParam("table_responsive_width")},gf=function(e){return e.getParam("table_border_widths",lf,"array")},bf=function(e){return e.getParam("table_border_styles",ff,"array")},yf=function(e){return e.getParam("table_default_attributes",hf,"object")},wf=function(e){return e.getParam("table_default_styles",df(e),"object")},xf=function(e){return e.getParam("table_resize_bars",!0,"boolean")},_f=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},Cf=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},kf=function(e){return e.getParam("table_row_advtab",!0,"boolean")},Sf=function(e){return e.getParam("table_advtab",!0,"boolean")},Of=function(e){return e.getParam("table_appearance_options",!0,"boolean")},Ef=function(e){return e.getParam("table_grid",!0,"boolean")},Tf=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Df=function(e){return e.getParam("table_cell_class_list",[],"array")},Mf=function(e){return e.getParam("table_row_class_list",[],"array")},Af=function(e){return e.getParam("table_class_list",[],"array")},Nf=function(e){return"relative"===mf(e)||!0===vf(e)},Pf=function(e){return"fixed"===mf(e)||!1===vf(e)},If=function(e){return"responsive"===mf(e)},Rf=function(e){return e.getParam("table_toolbar",uf)},zf=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},Bf=function(e){var t="section",n=e.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return I(r,n)?n:t},Lf=function(e){var t=["preservetable","resizetable"],n=e.getParam("table_column_resizing",pf,"string");return U(t,(function(e){return e===n})).getOr(pf)},$f=function(e){return"preservetable"===Lf(e)},Ff=function(e){return"resizetable"===Lf(e)},jf=function(e){var t=e.getParam("table_clone_elements");return i(t)?D.some(t.split(/[ ,]/)):Array.isArray(t)?D.some(t):D.none()},Vf=function(e){var t=e.getParam("object_resizing",!0);return i(t)?"table"===t:t},Hf=function(e){return e.getParam("table_background_color_map",[],"array")},Wf=function(e){return e.getParam("table_border_color_map",[],"array")},Uf=function(e,t){return Nf(e)?ms.percentageSize(t):Pf(e)?ms.pixelSize(t):ms.getTableSize(t)},qf=function(e){tr(e,"width")},Gf=function(e){var t=Wa(e);wc(e,D.some(t),D.none()),qf(e)},Kf=function(e){var t=Ha(e);wc(e,D.some(t),D.none()),qf(e)},Yf=function(e){gr(e,"width");var t=Ar(e),n=t.length>0?t:Mr(e);L(n,(function(e){gr(e,"width"),qf(e)})),qf(e)},Xf=Gf,Jf=Kf,Zf=Yf,Qf=function(e){var t=ci.fromTable(e);ci.hasColumns(t)||L(Mr(e),(function(e){var t=pr(e,"width");dr(e,"width",t),tr(e,"width")}))},ed=function(){var e=gt.fromTag("div");return hr(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Ei(Nn(),e),e},td=function(e,t){return e.inline?tc.body(Us(e),ed(),t):tc.only(gt.fromDom(e.getDoc()),t)},nd=function(e,t){e.inline&&Ii(t.parent())},rd="bar-",id=function(e){return"false"!==Qn(e,"data-mce-resize")},od=function(e){var t,n,r=D.none(),i=D.none(),o=D.none(),a=function(e){return"TABLE"===e.nodeName},s=function(){return i},u=function(){return o.getOr(tc.only(gt.fromDom(e.getBody()),id))},c=function(t){return Uf(e,t)},l=function(){return $f(e)?Ju():Xu()},f=function(e){return kc(e).columns},d=function(r,i,o){var a=Ce(i,"e");if(""===n&&Xf(r),o!==t&&""!==n){dr(r,"width",n);var s=l(),u=c(r),d=$f(e)||a?f(r)-1:0;ju(r,o-t,d,s,u)}else if(Qs(n)){var h=parseFloat(n.replace("%","")),p=o*h/t;dr(r,"width",p+"%")}eu(n)&&Qf(r)},h=function(){i.each((function(e){e.destroy()})),o.each((function(t){nd(e,t)}))};return e.on("init",(function(){var t=td(e,id);if(o=D.some(t),Vf(e)&&xf(e)){var n=l(),a=Xl.create(t,n,c);a.on(),a.events.startDrag.bind((function(t){r=D.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table.dom;Ql(e,n,qs(n),Gs(n),rd+t.type)})),a.events.afterResize.bind((function(t){var n=t.table,i=n.dom;Js(n),r.each((function(t){e.selection.setRng(t),e.focus()})),ef(e,i,qs(i),Gs(i),rd+t.type),e.undoManager.add()})),i=D.some(a)}})),e.on("ObjectResizeStart",(function(r){var i=r.target;if(a(i)){var o=gt.fromDom(i);L(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+Lf(e)+"-columns")})),!_c(o)&&Pf(e)?Jf(o):!xc(o)&&Nf(e)&&Xf(o),Cc(o)&&_e(r.origin,rd)&&Xf(o),t=r.width,n=If(e)?"":Zs(e,i).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(a(n)){var r=gt.fromDom(n),i=t.origin;_e(i,"corner-")&&d(r,i,t.width),Js(r),rf(e,r.dom,of)}})),e.on("SwitchMode",(function(){s().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:s,lazyWire:u,destroy:h}},ad=function(e,t){return{element:e,offset:t}},sd=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return sd(e,t,n).orThunk((function(){return D.some(t)}))})):D.none()},ud=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},cd=function(e,t){var n=sd(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return ad(n,ud(e,n));var r=e.property().children(n);return r.length>0?cd(e,r[r.length-1]):ad(n,ud(e,n))},ld=cd,fd=Vi(),dd=function(e){return ld(fd,e)},hd=function(e,t){var n=wr(e,"colspan");if(1===n){var r=ja(e);r.each((function(n){var r=n.value/2;Va(e,r,n.unit),Va(t,r,n.unit)}))}},pd=fn("th"),md=function(e){return Y(e,(function(e){return pd(e.element)}))},vd=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},gd=function(e){var t="thead"===e.section,n=rr(bd(e.cells),"th");return t||n?{type:"header",subType:vd(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},bd=function(e){var t=j(e,(function(e){return pd(e.element)}));return 0===t.length?D.some("td"):t.length===e.length?D.some("th"):D.none()},yd=function(e){var t=B(e,(function(e){return gd(e).type})),n=I(t,"header"),r=I(t,"footer");if(n||r){var i=I(t,"body");return!n||i||r?n||i||!r?D.none():D.some("footer"):D.some("header")}return D.some("body")},wd=function(e){return re(e.all,(function(e){var t=gd(e);return"header"===t.type?D.from(t.subType):D.none()}))},xd=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},_d=function(e,t){return e.section!==t?Zt(e.element,e.cells,t,e.isNew):e},Cd=function(){return{transformRow:_d,transformCell:function(e,t,n){var r=n(e.element,t),i="td"!==nn(r)?ko(r,"td"):r;return Jt(i,e.isNew,e.isLocked)}}},kd=function(){return{transformRow:_d,transformCell:xd}},Sd=function(){return{transformRow:function(e,t){var n="thead"===t?"tbody":t;return _d(e,n)},transformCell:xd}},Od=function(){return{transformRow:b,transformCell:xd}},Ed=function(e,t){var n=ci.fromTable(e),r=wd(n).getOr(t);switch(r){case"section":return Cd();case"sectionCells":return kd();case"cells":return Sd()}},Td={getTableSectionType:Ed,section:Cd,sectionCells:kd,cells:Sd,fallback:Od},Dd=function(e,t,n,r){n===r?tr(e,t):Xn(e,t,n)},Md=function(e,t,n){ne(Ln(e,t)).fold((function(){return Oi(e,n)}),(function(e){return Si(e,n)}))},Ad=function(e,t){var n=qn(e,t).getOrThunk((function(){var n=gt.fromTag(t,dn(e).dom);return"thead"===t?Md(e,"caption,colgroup",n):"colgroup"===t?Md(e,"caption",n):Ei(e,n),n}));return Pi(n),n},Nd=function(e,t){var n=[],r=[],i=function(e){return B(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return Pi(t),L(e.cells,(function(e){e.isNew&&r.push(e.element),Dd(e.element,"colspan",e.colspan,1),Dd(e.element,"rowspan",e.rowspan,1),Ei(t,e.element)})),t}))},o=function(e){return K(e,(function(e){return B(e.cells,(function(e){return Dd(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var r=Ad(e,n),a="colgroup"===n?o:i,s=a(t);Ni(r,s)},s=function(t){qn(e,t).each(Ii)},u=function(e,t){e.length>0?a(e,t):s(t)},c=[],l=[],f=[],d=[];return L(t,(function(e){switch(e.section){case"thead":c.push(e);break;case"tbody":l.push(e);break;case"tfoot":f.push(e);break;case"colgroup":d.push(e);break}})),u(d,"colgroup"),u(c,"thead"),u(l,"tbody"),u(f,"tfoot"),{newRows:n,newCells:r}},Pd=function(e){return B(e,(function(e){var t=wo(e.element);return L(e.cells,(function(e){var n=xo(e.element);Dd(n,"colspan",e.colspan,1),Dd(n,"rowspan",e.rowspan,1),Ei(t,n)})),t}))},Id=function(e,t){return B(e,(function(e){return Wr(e,t)}))},Rd=function(e,t){return e[t]},zd=function(e,t){if(0===e.length)return 0;var n=e[0],r=q(e,(function(e){return!t(n.element,e.element)}));return r.getOr(e.length)},Bd=function(e,t,n,r){var i=Rd(e,t),o="colgroup"===i.section,a=zd(i.cells.slice(n),r),s=o?1:zd(Id(e.slice(t),n),r);return{colspan:a,rowspan:s}},Ld=function(e,t){var n=B(e,(function(e){return B(e.cells,C)})),r=function(e,t,r,i){for(var o=e;o<e+r;o++)for(var a=t;a<t+i;a++)n[o][a]=!0};return B(e,(function(i,o){var a=K(i.cells,(function(i,a){if(!1===n[o][a]){var s=Bd(e,o,a,t);return r(o,a,s.rowspan,s.colspan),[Gt(i.element,s.rowspan,s.colspan,i.isNew)]}return[]}));return Xt(i.element,a,i.section,i.isNew)}))},$d=function(e,t,n){var r=[];L(e.colgroups,(function(i){for(var o=[],a=0;a<e.grid.columns;a++){var s=ci.getColumnAt(e,a).map((function(e){return Jt(e.element,n,!1)})).getOrThunk((function(){return Jt(t.colGap(),!0,!1)}));o.push(s)}r.push(Zt(i.element,o,"colgroup",n))}));for(var i=0;i<e.grid.rows;i++){for(var o=[],a=0;a<e.grid.columns;a++){var s=ci.getAt(e,i,a).map((function(e){return Jt(e.element,n,e.isLocked)})).getOrThunk((function(){return Jt(t.gap(),!0,!1)}));o.push(s)}var u=e.all[i],c=Zt(u.element,o,u.section,n);r.push(c)}return r},Fd=function(e,t){return $d(e,t,!1)},jd=function(e){return Ld(e,_t)},Vd=function(e,t){return re(e.all,(function(e){return U(e.cells,(function(e){return _t(t,e.element)}))}))},Hd=function(e,t,n){var r=B(t.selection,(function(t){return Dr(t).bind((function(t){return Vd(e,t)})).filter(n)})),i=ir(r);return ur(i.length>0,i)},Wd=function(e,t,n,r,i){return function(o,a,s,u,c){var l=ci.fromTable(a),f=D.from(null===c||void 0===c?void 0:c.section).getOrThunk(Td.fallback),d=t(l,s).map((function(t){var n=Fd(l,u),r=e(n,t,_t,i(u),f),o=Jr(r.grid),a=jd(r.grid);return{info:t,grid:a,cursor:r.cursor,lockedColumns:o}}));return d.bind((function(e){var t=Nd(a,e.grid),i=D.from(null===c||void 0===c?void 0:c.sizing).getOrThunk((function(){return ms.getTableSize(a)})),s=D.from(null===c||void 0===c?void 0:c.resize).getOrThunk(Ju);return n(a,e.grid,e.info,{sizing:i,resize:s,section:f}),r(a),jl(o,a),tr(a,Yr),e.lockedColumns.length>0&&Xn(a,Yr,e.lockedColumns.join(",")),D.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Ud=function(e,t){return Dr(t.element).bind((function(n){return Vd(e,n).map((function(e){var n=ie(ie({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},qd=function(e,t){return Hd(e,t,k).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Gd=function(e,t){return t.mergable},Kd=function(e,t){return t.unmergable},Yd=function(e,t){return Hd(e,t,k)},Xd=function(e,t){return Hd(e,t,(function(e){return!e.isLocked}))},Jd=function(e,t){return Vd(e,t).exists((function(e){return!e.isLocked}))},Zd=function(e,t){return Y(t,(function(t){return Jd(e,t)}))},Qd=function(e,t){return Gd(e,t).filter((function(t){return Zd(e,t.cells)}))},eh=function(e,t){return Kd(e,t).filter((function(t){return Zd(e,t)}))},th=function(e,t,n,r){var i=Gr(e).rows;if(0===i.length)return e;for(var o=t.startRow;o<=t.finishRow;o++)for(var a=t.startCol;a<=t.finishCol;a++){var s=i[o],u=Wr(s,a).isLocked;jr(s,a,Jt(r(),!1,u))}return e},nh=function(e,t,n,r){for(var i=Gr(e).rows,o=!0,a=0;a<i.length;a++)for(var s=0;s<qr(i[0]);s++){var u=i[a],c=Wr(u,s),l=c.element,f=n(l,t);!0===f&&!1===o?jr(u,s,Jt(r(),!0,c.isLocked)):!0===f&&(o=!1)}return e},rh=function(e,t){return H(e,(function(e,n){return R(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])},ih=function(e,t,n,r){return t>0&&t<e[0].cells.length&&L(e,(function(e){var i=e.cells[t-1],o=e.cells[t],a=n(o.element,i.element);a&&jr(e,t,Jt(r(),!0,o.isLocked))})),e},oh=function(e,t,n,r){var i=Gr(e).rows;if(t>0&&t<i.length){var o=i[t-1].cells,a=rh(o,n);L(a,(function(e){for(var o=D.none(),a=t;a<i.length;a++)for(var s=function(t){var s=i[a],u=Wr(s,t),c=n(u.element,e.element);c&&(o.isNone()&&(o=D.some(r())),o.each((function(e){jr(s,t,Jt(e,!0,u.isLocked))})))},u=0;u<qr(i[0]);u++)s(u)}))}return e},ah=function(e){var t=function(t){return ah(e)},n=function(t){return ah(e)},r=function(t){return ah(t(e))},i=function(t){return ah(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},u=function(t){return t(e)},c=function(t){return t(e)},l=function(){return D.some(e)};return{isValue:k,isError:C,getOr:g(e),getOrThunk:g(e),getOrDie:g(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:u,forall:c,toOptional:l}},sh=function(e){var t=function(e){return e()},n=function(){return _(String(e))()},r=b,i=function(e){return e()},o=function(t){return sh(e)},a=function(t){return sh(t(e))},s=function(t){return sh(e)},u=function(t,n){return t(e)};return{isValue:C,isError:k,getOr:b,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:u,map:o,mapError:a,each:p,bind:s,exists:C,forall:k,toOptional:D.none}},uh=function(e,t){return e.fold((function(){return sh(t)}),ah)},ch={value:ah,error:sh,fromOption:uh},lh=function(e,t,n){if(e.row>=t.length||e.column>qr(t[0]))return ch.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var r=t.slice(e.row),i=r[0].cells.slice(e.column),o=qr(n[0]),a=n.length;return ch.value({rowDelta:r.length-a,colDelta:i.length-o})},fh=function(e,t){var n=qr(e[0]),r=qr(t[0]);return{rowDelta:0,colDelta:n-r}},dh=function(e,t){var n=e.length,r=t.length;return{rowDelta:n-r,colDelta:0}},hh=function(e,t,n,r){var i="colgroup"===t.section?n.col:n.cell;return z(e,(function(e){return Jt(i(),!0,r(e))}))},ph=function(e,t,n,r){var i=e[e.length-1];return e.concat(z(t,(function(){var e="colgroup"===i.section?n.colgroup:n.row,t=Kr(i,e,b),o=hh(t.cells.length,t,n,(function(e){return $t(r,e.toString())}));return Vr(t,o)})))},mh=function(e,t,n,r){return B(e,(function(e){var i=hh(t,e,n,C);return $r(e,r,i)}))},vh=function(e,t,n){return B(e,(function(e){return H(n,(function(n,r){var i=hh(1,e,t,k)[0];return Fr(n,r,i)}),e)}))},gh=function(e,t,n){var r=t.colDelta<0?mh:b,i=t.rowDelta<0?ph:b,o=Jr(e),a=qr(e[0]),s=R(o,(function(e){return e===a-1})),u=r(e,Math.abs(t.colDelta),n,s?a-1:a),c=Jr(u);return i(u,Math.abs(t.rowDelta),n,J(c,k))},bh=function(e,t,n,r){var i=Wr(e[t],n),o=w(r,i.element),a=e[t];return e.length>1&&qr(a)>1&&(n>0&&o(Ur(a,n-1))||n<a.cells.length-1&&o(Ur(a,n+1))||t>0&&o(Ur(e[t-1],n))||t<e.length-1&&o(Ur(e[t+1],n)))},yh=function(e,t,n,r,i,o){for(var a=e.row,s=e.column,u=n.length,c=qr(n[0]),l=a+u,f=s+c+o.length,d=J(o,k),h=a;h<l;h++)for(var p=0,m=s;m<f;m++)if(d[m])p++;else{bh(t,h,m,i)&&nh(t,Ur(t[h],m),i,r.cell);var v=m-s-p,g=Wr(n[h-a],v),b=g.element,y=r.replace(b);jr(t[h],m,Jt(y,!0,g.isLocked))}return t},wh=function(e,t,n){var r=qr(t[0]),i=Gr(t).cols.length+e.row,o=z(r-e.column,(function(t){return t+e.column})),a=U(o,(function(e){return Y(n,(function(t){return t!==e}))})).getOr(r-1);return{row:i,column:a}},xh=function(e,t,n){return j(n,(function(n){return n>=e.column&&n<=qr(t[0])+e.column}))},_h=function(e,t,n,r,i){var o=Jr(t),a=wh(e,t,o),s=Gr(n).rows,u=xh(a,s,o),c=lh(a,t,s);return c.map((function(e){var n=ie(ie({},e),{colDelta:e.colDelta-u.length}),o=gh(t,n,r),c=Jr(o),l=xh(a,s,c);return yh(a,o,s,r,i,l)}))},Ch=function(e,t,n,r,i){ih(t,e,i,r.cell);var o=dh(n,t),a=gh(n,o,r),s=dh(t,a),u=gh(t,s,r);return B(u,(function(t,n){return $r(t,e,a[n].cells)}))},kh=function(e,t,n,r,i){oh(t,e,i,r.cell);var o=Jr(t),a=fh(t,n),s=ie(ie({},a),{colDelta:a.colDelta-o.length}),u=gh(t,s,r),c=Gr(u),l=c.cols,f=c.rows,d=Jr(u),h=fh(n,t),p=ie(ie({},h),{colDelta:h.colDelta+d.length}),m=vh(n,r,d),v=gh(m,p,r);return l.concat(f.slice(0,e)).concat(v).concat(f.slice(e,f.length))},Sh=function(e,t,n,r){return Kr(e,(function(e){return r(e,n)}),t)},Oh=function(e,t,n,r,i){var o=Gr(e),a=o.rows,s=o.cols,u=a.slice(0,t),c=a.slice(t),l=Sh(a[n],(function(e,n){var o=t>0&&t<a.length&&r(Ur(a[t-1],n),Ur(a[t],n)),s=o?Wr(a[t],n):Jt(i(e.element,r),!0,e.isLocked);return s}),r,i);return s.concat(u).concat([l]).concat(c)},Eh=function(e,t,n,r,i,o,a){if("colgroup"!==n&&r)return Wr(e,t);var s=Wr(e,i);return Jt(a(s.element,o),!0,!1)},Th=function(e,t,n,r,i){return B(e,(function(e){var o=t>0&&t<qr(e)&&r(Ur(e,t-1),Ur(e,t)),a=Eh(e,t,e.section,o,n,r,i);return Fr(e,t,a)}))},Dh=function(e,t){return K(e,(function(e){var n=e.cells,r=V(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return r.length>0?[Zt(e.element,r,e.section,e.isNew)]:[]}))},Mh=function(e,t,n){var r=Gr(e),i=r.rows,o=r.cols;return o.concat(i.slice(0,t)).concat(i.slice(n+1))},Ah=function(e,t,n,r){return void 0!==Ur(e[t],n)&&t>0&&r(Ur(e[t-1],n),Ur(e[t],n))},Nh=function(e,t,n){return t>0&&n(Ur(e,t-1),Ur(e,t))},Ph=function(e,t,n,r){return Ah(e,t,n,r)||Nh(e[t],n,r)},Ih=function(e,t){var n=Y(t,b)&&md(e.cells);return n?k:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[r])}},Rh=function(e,t){var n=Y(t,b)&&md(e);return n?k:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[n])}},zh=function(e,t,n,r){var i=function(e){return"row"===e?_r(t):xr(t)},o=function(e){return i(e)?e+"group":e};if(e)return pd(t)?o(n):null;if(r&&pd(t)){var a="row"===n?"col":"row";return o(a)}return null},Bh=function(e,t){return function(n,r,i){return D.some(zh(e,n.element,"col",t[i]))}},Lh=function(e,t){return function(n,r){return D.some(zh(e,n.element,"row",t[r]))}},$h=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},Fh=function(e,t,n,r,i,o,a){var s=function(e){return R(t,(function(t){return n(e.element,t.element)}))};return B(e,(function(e,t){return Hr(e,(function(e,u){if(s(e)){var c=a(e,t,u)?i(e,n,r):e;return o(c,t,u).each((function(e){Zn(c.element,{scope:D.from(e)})})),c}return e}))}))},jh=function(e,t,n){return K(e,(function(r,i){return Ph(e,i,t,n)?[]:[Wr(r,t)]}))},Vh=function(e,t,n){var r=e[t];return K(r.cells,(function(r,i){return Ph(e,t,i,n)?[]:[r]}))},Hh=function(e,t,n,r,i){var o=Gr(e).rows,a=K(t,(function(e){return jh(o,e,r)})),s=B(e,(function(e){return md(e.cells)})),u=Rh(a,s),c=Lh(n,s);return Fh(e,a,r,i,$h,c,u)},Wh=function(e,t,n,r,i,o,a){var s=Gr(e),u=s.cols,c=s.rows,l=c[t[0]],f=K(t,(function(e){return Vh(c,e,i)})),d=B(l.cells,(function(e,t){return md(jh(c,t,i))})),h=oe([],c,!0);L(t,(function(e){h[e]=a.transformRow(c[e],n)}));var p=u.concat(h),m=Ih(l,d),v=Bh(r,d);return Fh(p,f,i,o,a.transformCell,v,m)},Uh=function(e,t,n,r){var i=Gr(e).rows,o=B(t,(function(e){return Wr(i[e.row],e.column)}));return Fh(e,o,n,r,$h,D.none,k)},qh=function(e){var t=function(e,t){var n=R(e,(function(e){return e.column===t.column}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.column-t.column}))},Gh=fn("col"),Kh=fn("colgroup"),Yh=function(e){return"tr"===nn(e)||Kh(e)},Xh=function(e){var t=yr(e,"colspan",1),n=yr(e,"rowspan",1);return{element:e,colspan:t,rowspan:n}},Jh=function(e,t){void 0===t&&(t=Xh);var n=function(t){return Gh(t.element)?e.col(t):e.cell(t)},r=function(t){return Kh(t.element)?e.colgroup(t):e.row(t)},i=function(e){if(Yh(e))return r({element:e});var i=n(t(e));return o=D.some({item:e,replacement:i}),i},o=D.none(),a=function(e,t){return o.fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.replacement:i(e)}))};return{getOrInit:a}},Zh=function(e){return function(t){var n=[],r=function(e,t){return U(n,(function(n){return t(n.item,e)}))},i=function(r){var i="td"===e?{scope:null}:{},o=t.replace(r,e,i);return n.push({item:r,sub:o}),o},o=function(e,t){return Yh(e)||Gh(e)?e:r(e,t).fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.sub:i(e)}))};return{replaceOrInit:o}}},Qh=function(e){return er(e,"scope").map((function(e){return e.substr(0,3)}))},ep=function(e){var t=function(t){var n=Qh(t);return n.each((function(e){return Xn(t,"scope",e)})),function(){var r=e.cell({element:t,colspan:1,rowspan:1});return gr(r,"width"),gr(t,"width"),n.each((function(e){return Xn(r,"scope",e)})),r}},n=function(e){var t=function(){var t=ir(B(e,Qh));if(0===t.length)return D.none();var n=t[0],r=["row","col"],i=R(t,(function(e){return e!==n&&I(r,e)}));return i?D.none():D.from(n)};return gr(e[0],"width"),t().fold((function(){return tr(e[0],"scope")}),(function(t){return Xn(e[0],"scope",t+"group")})),g(e[0])};return{unmerge:t,merge:n}},tp={modification:Jh,transform:Zh,merging:ep},np=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],rp=function(e,t){var n=e.property().name(t);return I(["ol","ul"],n)},ip=function(e,t){var n=e.property().name(t);return I(np,n)},op=function(e,t){return I(["br","img","hr","input"],e.property().name(t))},ap=Vi(),sp=function(e){return ip(ap,e)},up=function(e){return rp(ap,e)},cp=function(e){return op(ap,e)},lp=function(e){var t=function(e){return"br"===nn(e)},n=function(e){return Y(e,(function(e){return t(e)||un(e)&&0===Li(e).trim().length}))},r=function(e){return"li"===nn(e)||jn(e,up).isSome()},i=function(e){return yn(e).map((function(e){return!!sp(e)||!!cp(e)&&"img"!==nn(e)})).getOr(!1)},o=function(e){return Ds(e).bind((function(n){var o=i(n);return mn(n).map((function(i){return!0===o||r(i)||t(n)||sp(i)&&!_t(e,i)?[]:[gt.fromTag("br")]}))})).getOr([])},a=function(){var t=K(e,(function(e){var t=wn(e);return n(t)?[]:t.concat(o(e))}));return 0===t.length?[gt.fromTag("br")]:t},s=a();Pi(e[0]),Ni(e[0],s)},fp=function(e){return _l(e,!0)},dp=function(e){var t=Mr(e);0===t.length&&Ii(e)},hp=function(e,t){return{grid:e,cursor:t}},pp=function(e){return re(e,(function(e){return re(e.cells,(function(e){var t=e.element;return ur(fp(t),t)}))}))},mp=function(e,t,n){var r,i,o=Gr(e).rows;return D.from(null===(i=null===(r=o[t])||void 0===r?void 0:r.cells[n])||void 0===i?void 0:i.element).filter(fp).orThunk((function(){return pp(o)}))},vp=function(e,t,n){var r=mp(e,t,n);return hp(e,r)},gp=function(e){var t=function(e,t){var n=R(e,(function(e){return e.row===t.row}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.row-t.row}))},bp=function(e,t,n,r){var i=t[0].row,o=gp(t),a=V(o,(function(e,t){var o=Oh(e.grid,i,t.row+e.delta,n,r.getOrInit);return{grid:o,delta:e.delta+1}}),{grid:e,delta:0}).grid;return vp(a,i,t[0].column)},yp=function(e,t,n,r){var i=gp(t),o=i[i.length-1],a=o.row+o.rowspan,s=V(i,(function(e,t){return Oh(e,a,t.row,n,r.getOrInit)}),e);return vp(s,a,t[0].column)},wp=function(e,t,n,r){var i=t.details,o=qh(i),a=o[0].column,s=V(o,(function(e,t){var i=Th(e.grid,a,t.column+e.delta,n,r.getOrInit);return{grid:i,delta:e.delta+1}}),{grid:e,delta:0}).grid;return vp(s,i[0].row,a)},xp=function(e,t,n,r){var i=t.details,o=i[i.length-1],a=o.column+o.colspan,s=qh(i),u=V(s,(function(e,t){return Th(e,a,t.column,n,r.getOrInit)}),e);return vp(u,i[0].row,a)},_p=function(e,t,n,r){var i=qh(t),o=B(i,(function(e){return e.column})),a=Hh(e,o,!0,n,r.replaceOrInit);return vp(a,t[0].row,t[0].column)},Cp=function(e,t,n,r){var i=Uh(e,t,n,r.replaceOrInit);return vp(i,t[0].row,t[0].column)},kp=function(e,t,n,r){var i=qh(t),o=B(i,(function(e){return e.column})),a=Hh(e,o,!1,n,r.replaceOrInit);return vp(a,t[0].row,t[0].column)},Sp=function(e,t,n,r){var i=Uh(e,t,n,r.replaceOrInit);return vp(i,t[0].row,t[0].column)},Op=function(e,t){return function(n,r,i,o,a){var s=gp(r),u=B(s,(function(e){return e.row})),c=Wh(n,u,e,t,i,o.replaceOrInit,a);return vp(c,r[0].row,r[0].column)}},Ep=Op("thead",!0),Tp=Op("tbody",!1),Dp=Op("tfoot",!1),Mp=function(e,t,n,r){var i=qh(t.details),o=Dh(e,B(i,(function(e){return e.column}))),a=o.length>0?o[0].cells.length-1:0;return vp(o,i[0].row,Math.min(i[0].column,a))},Ap=function(e,t,n,r){var i=gp(t),o=Mh(e,i[0].row,i[i.length-1].row),a=o.length>0?o.length-1:0;return vp(o,Math.min(t[0].row,a),t[0].column)},Np=function(e,t,n,r){var i=t.cells;lp(i);var o=th(e,t.bounds,n,r.merge(i));return hp(o,D.from(i[0]))},Pp=function(e,t,n,r){var i=function(e,t){return nh(e,t,n,r.unmerge(t))},o=V(t,i,e);return hp(o,D.from(t[0]))},Ip=function(e,t,n,r){var i=function(e,t){var n=ci.fromTable(e);return $d(n,t,!0)},o=i(t.clipboard,t.generators),a=Ut(t.row,t.column),s=_h(a,e,o,t.generators,n);return s.fold((function(){return hp(e,D.some(t.element))}),(function(e){return vp(e,t.row,t.column)}))},Rp=function(e,t,n){var r=Lr(e,n.section),i=ci.generate(r);return $d(i,t,!0)},zp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].column,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),u=Ch(o,e,s,t.generators,n);return vp(u,t.cells[0].row,t.cells[0].column)},Bp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),u=Ch(o,e,s,t.generators,n);return vp(u,t.cells[0].row,t.cells[0].column)},Lp=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].row,a=i[o],s=Rp(t.clipboard,t.generators,a),u=kh(o,e,s,t.generators,n);return vp(u,t.cells[0].row,t.cells[0].column)},$p=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=i[t.cells[0].row],s=Rp(t.clipboard,t.generators,a),u=kh(o,e,s,t.generators,n);return vp(u,t.cells[0].row,t.cells[0].column)},Fp=function(e,t){var n=ci.fromTable(e),r=Yd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=G(B(n.all,(function(e){return j(e.cells,(function(e){return e.column>=r&&e.column<i}))})));return bd(o)})).getOr("")},jp=function(e,t){var n=ci.fromTable(e),r=Yd(n,t);return r.bind(bd).getOr("")},Vp=function(e,t){var n=ci.fromTable(e),r=Yd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].row,i=t.row+t.rowspan,o=n.all.slice(r,i);return yd(o)})).getOr("")},Hp=function(e,t,n,r){return Wu(e,t,n,r.sizing)},Wp=function(e,t,n,r){return Hu(e,t,n,r.sizing,r.resize)},Up=function(e,t){return R(t,(function(e){return 0===e.column&&e.isLocked}))},qp=function(e,t){return R(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Gp=function(e,t){var n=jo(e),r=qh(t);return H(r,(function(e,t){var r=n[t.column],i=r.map(Lo).getOr(0);return e+i}),0)},Kp=function(e){return function(t,n){return Yd(t,n).filter((function(n){var r=e?Up:qp;return!r(t,n)})).map((function(e){return{details:e,pixelDelta:Gp(t,e)}}))}},Yp=function(e,t){return Xd(e,t).map((function(t){return{details:t,pixelDelta:-Gp(e,t)}}))},Xp=function(e){return function(t,n){return qd(t,n).filter((function(n){var r=e?Up:qp;return!r(t,n.cells)}))}},Jp=tp.transform("th"),Zp=tp.transform("td"),Qp=Wd(bp,Yd,p,p,tp.modification),em=Wd(yp,Yd,p,p,tp.modification),tm=Wd(wp,Kp(!0),Wp,p,tp.modification),nm=Wd(xp,Kp(!1),Wp,p,tp.modification),rm=Wd(Mp,Yp,Wp,dp,tp.modification),im=Wd(Ap,Yd,p,dp,tp.modification),om=Wd(_p,Xd,p,p,Jp),am=Wd(kp,Xd,p,p,Zp),sm=Wd(Ep,Xd,p,p,Jp),um=Wd(Tp,Xd,p,p,Zp),cm=Wd(Dp,Xd,p,p,Zp),lm=Wd(Cp,Xd,p,p,Jp),fm=Wd(Sp,Xd,p,p,Zp),dm=Wd(Np,Qd,Hp,p,tp.merging),hm=Wd(Pp,eh,Hp,p,tp.merging),pm=Wd(Ip,Ud,Hp,p,tp.modification),mm=Wd(zp,Xp(!0),p,p,tp.modification),vm=Wd(Bp,Xp(!1),p,p,tp.modification),gm=Wd(Lp,qd,p,p,tp.modification),bm=Wd($p,qd,p,p,tp.modification),ym=Fp,wm=jp,xm=Vp,_m=function(e,t,n){var r=function(e){return"table"===nn(Us(e))},i=function(t){return!1===r(e)||kc(t).rows>1},o=function(t){return!1===r(e)||kc(t).columns>1},a=jf(e),s=Ff(e)?p:hd,u=function(t){switch(Bf(e)){case"section":return Td.section();case"sectionCells":return Td.sectionCells();case"cells":return Td.cells();default:return Td.getTableSectionType(t,"section")}},c=function(n,r){return r.cursor.fold((function(){var r=Mr(n);return te(r).filter(An).map((function(r){t.clear(n);var i=e.dom.createRng();return i.selectNode(r.dom),e.selection.setRng(i),Xn(r,"data-mce-selected","1"),i}))}),(function(r){var i=dd(r),o=e.dom.createRng();return o.setStart(i.element.dom,i.offset),o.setEnd(i.element.dom,i.offset),e.selection.setRng(o),t.clear(n),D.some(o)}))},l=function(t,n,r,i,o){return function(s,l,f){void 0===f&&(f=!1),Js(s);var d=i(),h=gt.fromDom(e.getDoc()),p=Fs(r,h,a),m={sizing:Uf(e,s),resize:Ff(e)?Xu():Ju(),section:u(s)};return n(s)?t(d,s,l,p,m).bind((function(t){L(t.newRows,(function(t){Jl(e,t.dom)})),L(t.newCells,(function(t){Zl(e,t.dom)}));var n=c(s,t);return An(s)&&(Js(s),f||rf(e,s.dom,o)),n.map((function(e){return{rng:e,effect:o}}))})):D.none()}},f=l(im,i,p,n,af),d=l(rm,o,p,n,af),h=l(Qp,k,p,n,af),m=l(em,k,p,n,af),v=l(tm,k,s,n,af),g=l(nm,k,s,n,af),b=l(dm,k,p,n,af),y=l(hm,k,p,n,af),w=l(mm,k,p,n,af),x=l(vm,k,p,n,af),_=l(gm,k,p,n,af),C=l(bm,k,p,n,af),S=l(pm,k,p,n,sf),O=l(lm,k,p,n,af),E=l(fm,k,p,n,af),T=l(om,k,p,n,af),M=l(am,k,p,n,af),A=l(sm,k,p,n,af),N=l(um,k,p,n,af),P=l(cm,k,p,n,af),I=wm,R=ym,z=xm;return{deleteRow:f,deleteColumn:d,insertRowsBefore:h,insertRowsAfter:m,insertColumnsBefore:v,insertColumnsAfter:g,mergeCells:b,unmergeCells:y,pasteColsBefore:w,pasteColsAfter:x,pasteRowsBefore:_,pasteRowsAfter:C,pasteCells:S,makeCellsHeader:O,unmakeCellsHeader:E,makeColumnsHeader:T,unmakeColumnsHeader:M,makeRowsHeader:A,makeRowsBody:N,makeRowsFooter:P,getTableRowType:z,getTableCellType:I,getTableColType:R}},Cm={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},km=function(){return gt.fromTag("th")},Sm=function(){return gt.fromTag("td")},Om=function(){return gt.fromTag("col")},Em=function(e,t,n,r){for(var i=gt.fromTag("tr"),o=0;o<e;o++){var a=r<t||o<n?km():Sm();o<n&&Xn(a,"scope","row"),r<t&&Xn(a,"scope","col"),Ei(a,gt.fromTag("br")),Ei(i,a)}return i},Tm=function(e){var t=gt.fromTag("colgroup");return z(e,(function(){return Ei(t,Om())})),t},Dm=function(e,t,n,r){return z(e,(function(e){return Em(t,n,r,e)}))},Mm=function(e,t,n,r,i,o){void 0===o&&(o=Cm);var a=gt.fromTag("table"),s="cells"!==i;hr(a,o.styles),Jn(a,o.attributes),o.colGroups&&Ei(a,Tm(t));var u=Math.min(e,n);if(s&&n>0){var c=gt.fromTag("thead");Ei(a,c);var l="sectionCells"===i?u:0,f=Dm(n,t,l,r);Ni(c,f)}var d=gt.fromTag("tbody");Ei(a,d);var h=s?e-u:e,p=s?0:n,m=Dm(h,t,p,r);return Ni(d,m),a},Am=function(e){return e.dom.innerHTML},Nm=function(e){var t=gt.fromTag("div"),n=gt.fromDom(e.dom.cloneNode(!0));return Ei(t,n),Am(t)},Pm=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},Im=function(e,t){Gn(t,"td,th").each(w(Pm,e))},Rm=function(e,t){L($n(t,"tr"),(function(t){Jl(e,t.dom),L($n(t,"th,td"),(function(t){Zl(e,t.dom)}))}))},zm=function(e){return i(e)&&-1!==e.indexOf("%")},Bm=function(e,t,n,r,i){var o=wf(e),a={styles:o,attributes:yf(e),colGroups:zf(e)};return e.undoManager.ignore((function(){var o=Mm(n,t,i,r,Bf(e),a);Xn(o,"data-mce-id","__mce");var s=Nm(o);e.insertContent(s),e.addVisual()})),Gn(Us(e),'table[data-mce-id="__mce"]').map((function(t){return Pf(e)?Jf(t):If(e)?Zf(t):(Nf(e)||zm(o.width))&&Xf(t),Js(t),tr(t,"data-mce-id"),Rm(e,t),Im(e,t),t.dom})).getOr(null)},Lm=function(e,t,n,r,i){void 0===r&&(r={});var o=function(e){return h(e)&&e>0};if(o(t)&&o(n)){var a=r.headerRows||0,s=r.headerColumns||0;return Bm(e,n,t,s,a)}return console.error(i),null},$m=function(e){return function(){return e().fold((function(){return[]}),(function(e){return B(e,(function(e){return e.dom}))}))}},Fm=function(e){return function(t){var n=t.length>0?D.some(Hs(t)):D.none();e(n)}},jm=function(e){return function(t,n,r){void 0===r&&(r={});var i=Lm(e,n,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return e.undoManager.add(),i}},Vm=function(e,t,n,r){return{insertTable:jm(e),setClipboardRows:Fm(t.setRows),getClipboardRows:$m(t.getRows),setClipboardCols:Fm(t.setColumns),getClipboardCols:$m(t.getColumns),resizeHandler:n,selectionTargets:r}},Hm=function(e,t,n){var r=yr(e,t,1);1===n||r<=1?tr(e,t):Xn(e,t,Math.min(n,r))},Wm=function(e,t,n){if(ci.hasColumns(e)){var r=j(ci.justColumns(e),(function(e){return e.column>=t&&e.column<n})),i=B(r,(function(e){var r=xo(e.element);return Hm(r,"span",n-t),r})),o=gt.fromTag("colgroup");return Ni(o,i),[o]}return[]},Um=function(e,t,n){return B(e.all,(function(e){var r=j(e.cells,(function(e){return e.column>=t&&e.column<n})),i=B(r,(function(e){var r=xo(e.element);return Hm(r,"colspan",n-t),r})),o=gt.fromTag("tr");return Ni(o,i),o}))},qm=function(e,t){var n=ci.fromTable(e),r=Xd(n,t);return r.map((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=Wm(n,r,i),a=Um(n,r,i);return oe(oe([],o,!0),a,!0)}))},Gm=function(e,t,n){var r=ci.fromTable(e),i=Yd(r,t);return i.bind((function(e){var t=$d(r,n,!1),i=Gr(t).rows,o=i.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=K(o,(function(e){var t=j(e.cells,(function(e){return!e.isLocked}));return t.length>0?[ie(ie({},e),{cells:t})]:[]})),s=jd(a);return ur(s.length>0,s)})).map((function(e){return Pd(e)}))},Km=tinymce.util.Tools.resolve("tinymce.util.Tools"),Ym=function(e,t,n){var r,i=e.select("td,th",t),o=function(t,r){for(var i=0;i<r.length;i++){var o=e.getStyle(r[i],n);if("undefined"===typeof t&&(t=o),t!==o)return""}return t};return o(r,i)},Xm=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Jm=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Zm=function(e,t){Km.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},Qm=function(e,t){Km.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},ev=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],tv=function(e){return{value:e}},nv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,iv=function(e){return nv.test(e)||rv.test(e)},ov=function(e){return we(e,"#").toUpperCase()},av=function(e){return iv(e)?D.some({value:ov(e)}):D.none()},sv=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},uv=function(e){var t=sv(e.red)+sv(e.green)+sv(e.blue);return tv(t)},cv=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,lv=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,fv=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},dv=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return fv(i,o,a,s)},hv=function(e){if("transparent"===e)return D.some(fv(0,0,0,0));var t=cv.exec(e);if(null!==t)return D.some(dv(t[1],t[2],t[3],"1"));var n=lv.exec(e);return null!==n?D.some(dv(n[1],n[2],n[3],n[4])):D.none()},pv=function(e){return av(e).orThunk((function(){return hv(e).map(uv)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return uv(fv(i,o,a,s))}))},mv=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},vv=function(e){var t=mv(D.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(D.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(D.some(e))};return{clear:r,isSet:i,get:o,set:a}},gv=function(){return vv((function(e){return e.unbind()}))},bv=function(){var e=vv(p),t=function(t){return e.get().each(t)};return ie(ie({},e),{on:t})},yv=function(e,t,n,r){return function(i){var o=gv(),a=Ee(r),s=function(){var s=Cu(t),u=function(t){return e.formatter.match(n,{value:r},t.dom,a)};a?(i.setActive(!R(s,u)),o.set(e.formatter.formatChanged(n,(function(e){return i.setActive(!e)}),!0))):(i.setActive(Y(s,u)),o.set(e.formatter.formatChanged(n,i.setActive,!1,{value:r})))};return e.initialized?s():e.on("init",s),o.clear}},wv=function(e){return Ft(e,"menu")},xv=function(e){return B(e,(function(e){var t=e.text||e.title;return wv(e)?{text:t,items:xv(e.menu)}:{text:t,value:e.value}}))},_v=function(e,t,n,r,i){return B(n,(function(n){var o=n.text||n.title;return wv(n)?{type:"nestedmenuitem",text:o,getSubmenuItems:function(){return _v(e,t,n.menu,r,i)}}:{text:o,type:"togglemenuitem",onAction:function(){return i(n.value)},onSetup:yv(e,t,r,n.value)}}))},Cv=function(e,t){return function(n){var r;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[t]=n,r))}},kv=function(e){return K(e,(function(e){return wv(e)?[ie(ie({},e),{menu:kv(e.menu)})]:Oe(e.value)?[e]:[]}))},Sv=function(e,t,n,r,i){return function(o){return o(_v(e,t,n,r,i))}},Ov=function(e,t,n){var r=B(t,(function(e){return{text:e.title,value:"#"+pv(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(t){var r,i="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[n]=i,r))}}]},Ev=function(e){return function(){var t=e.queryCommandValue("mceTableRowType"),n="header"===t?"body":"header";e.execCommand("mceTableRowType",!1,{type:n})}},Tv=function(e){return function(){var t=e.queryCommandValue("mceTableColType"),n="th"===t?"td":"th";e.execCommand("mceTableColType",!1,{type:n})}},Dv=function(e){var t=xv(Df(e));return t.length>0?D.some({name:"class",type:"listbox",label:"Class",items:t}):D.none()},Mv=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:ev}],Av=function(e){return Mv.concat(Dv(e).toArray())},Nv=function(e,t){var n=[{text:"Select...",value:""}],r=[{name:"borderstyle",type:"listbox",label:"Border style",items:n.concat(xv(bf(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],i={name:"borderwidth",type:"input",label:"Border width"},o="cell"===t?[i].concat(r):r;return{title:"Advanced",name:"advanced",items:o}},Pv=function(e){return function(t,n){var r=t.dom,i=function(t,i){e&&!i||r.setAttrib(n,t,i)},o=function(t,i){e&&!i||r.setStyle(n,t,i)},a=function(r,i){e&&!i||(""===i?t.formatter.remove(r,{value:null},n,!0):t.formatter.apply(r,{value:i},n))};return{setAttrib:i,setStyle:o,setFormat:a}}},Iv={normal:Pv(!1),ifTruthy:Pv(!0)},Rv=function(e){return function(t){return _e(t,"rgb")?e.toHex(t):t}},zv=function(e,t){var n=gt.fromDom(t);return{borderwidth:vr(n,"border-width").getOr(""),borderstyle:vr(n,"border-style").getOr(""),bordercolor:vr(n,"border-color").map(Rv(e)).getOr(""),backgroundcolor:vr(n,"background-color").map(Rv(e)).getOr("")}},Bv=function(e){var t=e[0],n=e.slice(1);return L(n,(function(e){L(Et(t),(function(n){Dt(e,(function(e,r){var i=t[n];""!==i&&n===r&&i!==e&&(t[n]="")}))}))})),t},Lv=function(e,t,n,r){return U(e,(function(e){return!c(n.formatter.matchNode(r,t+e))})).getOr("")},$v=w(Lv,["left","center","right"],"align"),Fv=w(Lv,["top","middle","bottom"],"valign"),jv=function(e,t){var n=wf(e),r=yf(e),i=function(e){return{borderstyle:Lt(n,"border-style").getOr(""),bordercolor:Rv(e)(Lt(n,"border-color").getOr("")),backgroundcolor:Rv(e)(Lt(n,"background-color").getOr(""))}},o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return Tf(e)&&t?{border:t}:Lt(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},s=t?i(e.dom):{},u=function(){var e=Lt(n,"border-spacing").or(Lt(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=Lt(n,"border-padding").or(Lt(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return ie(ie({},e),t)},c=ie(ie(ie(ie(ie(ie({},o),n),r),s),a()),u());return c},Vv=function(e){return Nr(gt.fromDom(e)).map((function(t){var n={selection:Hs(e.cells)};return xm(t,n)})).getOr("")},Hv=function(e,t,n){var r=function(t,n){var r=vr(gt.fromDom(n),"border-width");return Tf(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Ym(e.dom,n,"border-width")||Ym(e.dom,n,"border")},i=e.dom,o=Tf(e)?i.getStyle(t,"border-spacing")||i.getAttrib(t,"cellspacing"):i.getAttrib(t,"cellspacing")||i.getStyle(t,"border-spacing"),a=Tf(e)?Ym(i,t,"padding")||i.getAttrib(t,"cellpadding"):i.getAttrib(t,"cellpadding")||Ym(i,t,"padding");return ie({width:i.getStyle(t,"width")||i.getAttrib(t,"width"),height:i.getStyle(t,"height")||i.getAttrib(t,"height"),cellspacing:o,cellpadding:a,border:r(i,t),caption:!!i.select("caption",t)[0],class:i.getAttrib(t,"class",""),align:$v(e,t)},n?zv(i,t):{})},Wv=function(e,t,n){var r=e.dom;return ie({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:Vv(t),align:$v(e,t)},n?zv(r,t):{})},Uv=function(e,t,n,r){var i=e.dom,o=r.getOr(t),a=function(e,t){return i.getStyle(e,t)||i.getAttrib(e,t)};return ie({width:a(o,"width"),height:a(t,"height"),scope:i.getAttrib(t,"scope"),celltype:Ws(t),class:i.getAttrib(t,"class",""),halign:$v(e,t),valign:Fv(e,t)},n?zv(i,t):{})},qv=function(e,t){var n=ci.fromTable(e),r=ci.justCells(n),i=j(r,(function(e){return R(t,(function(t){return _t(e.element,t)}))}));return B(i,(function(e){return{element:e.element.dom,column:ci.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},Gv=function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",Xs(n.height)),t.setStyle("width",Xs(n.width))},Kv=function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",Xs(t.borderwidth))},Yv=function(e,t,n){var r=1===t.length;L(t,(function(t){var i=t.element,o=r?Iv.normal(e,i):Iv.ifTruthy(e,i),a=t.column.map((function(t){return r?Iv.normal(e,t):Iv.ifTruthy(e,t)})).getOr(o);Gv(o,a,n),Cf(e)&&Kv(o,n),r&&(Zm(e,i),Qm(e,i)),n.halign&&Xm(e,i,n.halign),n.valign&&Jm(e,i,n.valign)}))},Xv=function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})},Jv=function(e,t,n,r){var i=It(r,(function(e,t){return n[t]!==e}));Bt(i)>0&&t.length>=1&&Nr(t[0]).each((function(n){var o=qv(n,t),a=Bt(It(i,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,s=$t(i,"celltype");(a||$t(i,"scope"))&&Yv(e,o,r),s&&Xv(e,r),rf(e,n.dom,{structure:s,style:a})}))},Zv=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){Jv(e,t,n,i),e.focus()}))},Qv=function(e,t){var n=Nr(t[0]).map((function(n){return B(qv(n,t),(function(t){return Uv(e,t.element,Cf(e),t.column)}))}));return Bv(n.getOrDie())},eg=function(e,t){var n=Cu(t);if(0!==n.length){var r=Qv(e,n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:Av(e)},Nv(e,"cell")]},o={type:"panel",items:[{type:"grid",columns:2,items:Av(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:Cf(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(Zv,e,n,r)})}},tg=function(e){var t=xv(Mf(e));return t.length>0?D.some({name:"class",type:"listbox",label:"Class",items:t}):D.none()},ng=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],rg=function(e){return ng.concat(tg(e).toArray())},ig=function(e,t){e.setAttrib("class",t.class),e.setStyle("height",Xs(t.height))},og=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},ag=function(e,t,n,r){var i=1===t.length;L(t,(function(t){var o=i?Iv.normal(e,t):Iv.ifTruthy(e,t);ig(o,n),kf(e)&&og(o,n),n.align!==r.align&&(Zm(e,t),Xm(e,t,n.align))}))},sg=function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})},ug=function(e,t,n,r){var i=It(r,(function(e,t){return n[t]!==e}));if(Bt(i)>0){var o=$t(i,"type"),a=!o||Bt(i)>1;a&&ag(e,t,r,n),o&&sg(e,r),Nr(gt.fromDom(t[0])).each((function(t){return rf(e,t.dom,{structure:o,style:a})}))}},cg=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){ug(e,t,n,i),e.focus()}))},lg=function(e){var t=ku(tu(e),pu.selected);if(0!==t.length){var n=B(t,(function(t){return Wv(e,t.dom,kf(e))})),r=Bv(n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:rg(e)},Nv(e,"row")]},o={type:"panel",items:[{type:"grid",columns:2,items:rg(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:kf(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(cg,e,B(t,(function(e){return e.dom})),r)})}},fg=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],i=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],o=Of(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],s=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return r.concat(i).concat(o).concat(a).concat(s)},dg=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)i(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var o=0;o<t.children.length;o++)dg(e,t.children[o],n,r)},hg=function(e,t,n){var r=e.dom,i={},o={};if(i.class=n.class,o.height=Xs(n.height),r.getAttrib(t,"width")&&!Tf(e)?i.width=Ys(n.width):o.width=Xs(n.width),Tf(e)?(o["border-width"]=Xs(n.border),o["border-spacing"]=Xs(n.cellspacing)):(i.border=n.border,i.cellpadding=n.cellpadding,i.cellspacing=n.cellspacing),Tf(e)&&t.children)for(var a=0;a<t.children.length;a++)dg(r,t.children[a],{"border-width":Xs(n.border),padding:Xs(n.cellpadding)}),Sf(e)&&dg(r,t.children[a],{"border-color":n.bordercolor});Sf(e)&&(o["background-color"]=n.backgroundcolor,o["border-color"]=n.bordercolor,o["border-style"]=n.borderstyle),i.style=r.serializeStyle(ie(ie({},wf(e)),o)),r.setAttribs(t,ie(ie({},yf(e)),i))},pg=function(e,t,n,r){var i=e.dom,o=r.getData(),a=It(o,(function(e,t){return n[t]!==e}));r.close(),""===o.class&&delete o.class,e.undoManager.transact((function(){if(!t){var n=parseInt(o.cols,10)||1,r=parseInt(o.rows,10)||1;t=Bm(e,n,r,0,0)}if(Bt(a)>0){hg(e,t,o);var s=i.select("caption",t)[0];(s&&!o.caption||!s&&o.caption)&&e.execCommand("mceTableToggleCaption"),""===o.align?Zm(e,t):Xm(e,t,o.align)}if(e.focus(),e.addVisual(),Bt(a)>0){var u=$t(a,"caption"),c=!u||Bt(a)>1;rf(e,t,{structure:u,style:c})}}))},mg=function(e,t){var n,r=e.dom,i=jv(e,Sf(e));!1===t?(n=r.getParent(e.selection.getStart(),"table",e.getBody()),n?i=Hv(e,n,Sf(e)):Sf(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",Sf(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var o=xv(Af(e));o.length>0&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:fg(e,o,t)},s=function(){return{type:"panel",items:[a]}},u=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Nv(e,"table")]}},c=Sf(e)?u():s();e.windowManager.open({title:"Table Properties",size:"normal",body:c,onSubmit:w(pg,e,n,i),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},vg=function(e){return xu(tu(e),Ks(e))},gg=function(e){return _u(tu(e),Ks(e))},bg=function(e,t,n,r,a){var s=Ks(e),u=function(){return vg(e).each((function(t){Nr(t,s).filter(x(s)).each((function(t){var n=gt.fromText("");if(Si(t,n),Ii(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),e.selection.setRng(r),e.nodeChanged()}}))}))},c=function(t){return vg(e).each((function(n){var r=If(e)||Pf(e)||Nf(e);r||Nr(n,s).each((function(n){"relative"!==t||xc(n)?"fixed"!==t||_c(n)?"responsive"!==t||Cc(n)||Zf(n):Jf(n):Xf(n),Js(n),rf(e,n.dom,af)}))}))},l=function(e){return Nr(e,s)},f=function(t){return gg(e).bind((function(e){return l(e).map((function(n){return t(n,e)}))}))},d=function(t,n){f((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),rf(e,t.dom,of)}))},h=function(t,n){f((function(t){var i=Cu(r),o=Y(i,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)})),a=o?e.formatter.remove:e.formatter.apply;L(i,(function(e){return a("tablecellclass",{value:n},e.dom)})),rf(e,t.dom,of)}))},m=function(){vg(e).each((function(t){Nr(t,s).each((function(n){qn(n,"caption").fold((function(){var t=gt.fromTag("caption");Ei(t,gt.fromText("Caption")),Ti(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(r){fn("caption")(t)&&xt("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Ii(r)})),rf(e,n.dom,af)}))}))},v=function(t){e.focus()},g=function(e,t){return void 0===t&&(t=!1),f((function(n,i){var o=vu(r,n,i);e(n,o,t).each(v)}))},b=function(){return f((function(t,n){var i=vu(r,t,n),o=Fs(p,gt.fromDom(e.getDoc()),D.none());return Gm(t,i,o)}))},y=function(){return f((function(e,t){var n=vu(r,e,t);return qm(e,n)}))},_=function(t,n){return n().each((function(n){var i=B(n,(function(e){return xo(e)}));f((function(n,o){var a=js(gt.fromDom(e.getDoc())),s=bu(r,o,i,a);t(n,s).each(v)}))}))},C=function(e){return function(t,n){return Lt(n,"type").each((function(t){g(e(t),n.no_events)}))}};Dt({mceTableSplitCells:function(){return g(t.unmergeCells)},mceTableMergeCells:function(){return g(t.mergeCells)},mceTableInsertRowBefore:function(){return g(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return g(t.insertRowsAfter)},mceTableInsertColBefore:function(){return g(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return g(t.insertColumnsAfter)},mceTableDeleteCol:function(){return g(t.deleteColumn)},mceTableDeleteRow:function(){return g(t.deleteRow)},mceTableCutCol:function(){return y().each((function(e){a.setColumns(e),g(t.deleteColumn)}))},mceTableCutRow:function(){return b().each((function(e){a.setRows(e),g(t.deleteRow)}))},mceTableCopyCol:function(){return y().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return b().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return _(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return _(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return _(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return _(t.pasteRowsAfter,a.getRows)},mceTableDelete:u,mceTableCellToggleClass:h,mceTableToggleClass:d,mceTableToggleCaption:m,mceTableSizingMode:function(e,t){return c(t)},mceTableCellType:C((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:C((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:C((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Dt({mceTableProps:w(mg,e,!1),mceTableRowProps:w(lg,e),mceTableCellProps:w(eg,e,r)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){o(n)&&Et(n).length>0?Lm(e,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):mg(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(o(n)){var s=Cu(r);if(0!==s.length){var u=It(n,(function(t,n){return e.formatter.has(a(n))&&i(t)}));jt(u)||(Dt(u,(function(t,n){L(s,(function(r){Iv.normal(e,r.dom).setFormat(a(n),t)}))})),l(s[0]).each((function(t){return rf(e,t.dom,of)})))}}}))},yg=function(e,t,n){var r=Ks(e),i=function(t){return _u(tu(e)).bind((function(e){return Nr(e,r).map((function(r){var i=vu(n,r,e);return t(r,i)}))})).getOr("")};Dt({mceTableRowType:function(){return i(t.getTableRowType)},mceTableCellType:function(){return i(t.getTableCellType)},mceTableColType:function(){return i(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))},wg=function(){var e=bv(),t=bv();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}},xg={remove_similar:!0,inherit:!1},_g=ie({selector:"td,th"},xg),Cg={tablecellbackgroundcolor:ie({styles:{backgroundColor:"%value"}},_g),tablecellverticalalign:ie({styles:{"vertical-align":"%value"}},_g),tablecellbordercolor:ie({styles:{borderColor:"%value"}},_g),tablecellclass:ie({classes:["%value"]},_g),tableclass:ie({selector:"table",classes:["%value"]},xg),tablecellborderstyle:ie({styles:{borderStyle:"%value"}},_g),tablecellborderwidth:ie({styles:{borderWidth:"%value"}},_g)},kg=function(e){e.formatter.register(Cg)},Sg=lo.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Og=function(e){return void 0===e&&(e=void 0),Sg.none(e)},Eg=ie(ie({},Sg),{none:Og}),Tg=function(e,t,n,r,i){void 0===i&&(i=k);var o=1===r;if(!o&&n<=0)return Eg.first(e[0]);if(o&&n>=e.length-1)return Eg.last(e[e.length-1]);var a=n+r,s=e[a];return i(s)?Eg.middle(t,s):Tg(e,t,a,r,i)},Dg=function(e,t){return Nr(e,t).bind((function(t){var n=Mr(t),r=q(n,(function(t){return _t(e,t)}));return r.map((function(e){return{index:e,all:n}}))}))},Mg=function(e,t,n){var r=Dg(e,n);return r.fold((function(){return Eg.none(e)}),(function(n){return Tg(n.all,e,n.index,1,t)}))},Ag=function(e,t,n){var r=Dg(e,n);return r.fold((function(){return Eg.none()}),(function(n){return Tg(n.all,e,n.index,-1,t)}))},Ng=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},Pg={create:Ng},Ig=lo.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Rg=function(e,t,n,r){return e.fold(t,n,r)},zg=function(e){return e.fold(b,b,b)},Bg=Ig.before,Lg=Ig.on,$g=Ig.after,Fg={before:Bg,on:Lg,after:$g,cata:Rg,getStart:zg},jg=lo.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Vg=function(e){return jg.exact(e.start,e.soffset,e.finish,e.foffset)},Hg=function(e){return e.match({domRange:function(e){return gt.fromDom(e.startContainer)},relative:function(e,t){return Fg.getStart(e)},exact:function(e,t,n,r){return e}})},Wg=jg.domRange,Ug=jg.relative,qg=jg.exact,Gg=function(e){var t=Hg(e);return pn(t)},Kg=Pg.create,Yg={domRange:Wg,relative:Ug,exact:qg,exactFromRange:Vg,getWin:Gg,range:Kg},Xg=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Jg=function(e,t){var n=e.document.createRange();return Zg(n,t),n},Zg=function(e,t){return e.selectNodeContents(t.dom)},Qg=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},eb=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},tb=function(e,t,n){var r=e.document.createRange();return Qg(r,t),eb(r,n),r},nb=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rb=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},ib=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?D.some(n).map(rb):D.none()},ob=lo.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),ab=function(e,t,n){return t(gt.fromDom(n.startContainer),n.startOffset,gt.fromDom(n.endContainer),n.endOffset)},sb=function(e,t){return t.match({domRange:function(e){return{ltr:g(e),rtl:D.none}},relative:function(t,n){return{ltr:ae((function(){return tb(e,t,n)})),rtl:ae((function(){return D.some(tb(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:ae((function(){return nb(e,t,n,r,i)})),rtl:ae((function(){return D.some(nb(e,r,i,t,n))}))}}})},ub=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return ob.rtl(gt.fromDom(e.endContainer),e.endOffset,gt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return ab(e,ob.ltr,n)}))}return ab(e,ob.ltr,n)},cb=function(e,t){var n=sb(e,t);return ub(e,n)},lb=function(e,t){var n=cb(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};ob.ltr,ob.rtl;var fb=function(e,t,n,r,i){if(0===i)return 0;if(t===r)return i-1;for(var o=r,a=1;a<i;a++){var s=e(a),u=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||u>o)return a-1;o=u}}return 0},db=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},hb=function(e,t,n,r,i){var o=function(n){var r=e.dom.createRange();return r.setStart(t.dom,n),r.collapse(!0),r},a=function(e){var t=o(e);return t.getBoundingClientRect()},s=Li(t).length,u=fb(a,n,r,i.right,s);return o(u)},pb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getClientRects(),a=re(o,(function(e){return db(e,n,r)?D.some(e):D.none()}));return a.map((function(i){return hb(e,t,n,r,i)}))},mb=function(e,t,n,r){var i=e.dom.createRange(),o=wn(t);return re(o,(function(t){return i.selectNode(t.dom),db(i.getBoundingClientRect(),n,r)?vb(e,t,n,r):D.none()}))},vb=function(e,t,n,r){return un(t)?pb(e,t,n,r):mb(e,t,n,r)},gb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return vb(e,t,a,s)},bb=!0,yb=!1,wb=function(e,t){return t-e.left<e.right-t?bb:yb},xb=function(e,t,n){var r=e.dom.createRange();return r.selectNode(t.dom),r.collapse(n),r},_b=function(e,t,n){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect(),o=wb(i,n),a=o===bb?Ts:Ds;return a(t).map((function(t){return xb(e,t,o)}))},Cb=function(e,t,n){var r=t.dom.getBoundingClientRect(),i=wb(r,n);return D.some(xb(e,t,i))},kb=function(e,t,n){var r=0===wn(t).length?Cb:_b;return r(e,t,n)},Sb=function(e,t,n){var r,i;return D.from(null===(i=(r=e.dom).caretPositionFromPoint)||void 0===i?void 0:i.call(r,t,n)).bind((function(t){if(null===t.offsetNode)return D.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),D.some(n)}))},Ob=function(e,t,n){var r,i;return D.from(null===(i=(r=e.dom).caretRangeFromPoint)||void 0===i?void 0:i.call(r,t,n))},Eb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return gb(e,t,a,s)},Tb=function(e,t,n){return gt.fromPoint(e,t,n).bind((function(r){var i=function(){return kb(e,r,t)};return 0===wn(r).length?i():Eb(e,r,t,n).orThunk(i)}))},Db=function(){return document.caretPositionFromPoint?Sb:document.caretRangeFromPoint?Ob:Tb}(),Mb=function(e,t,n){var r=gt.fromDom(e.document);return Db(r,t,n).map((function(e){return Pg.create(gt.fromDom(e.startContainer),e.startOffset,gt.fromDom(e.endContainer),e.endOffset)}))},Ab=function(e,t){var n=nn(e);return"input"===n?Fg.after(e):I(["br","img"],n)?0===t?Fg.before(e):Fg.after(e):Fg.on(e,t)},Nb=function(e,t){var n=e.fold(Fg.before,Ab,Fg.after),r=t.fold(Fg.before,Ab,Fg.after);return Yg.relative(n,r)},Pb=function(e,t,n,r){var i=Ab(e,t),o=Ab(n,r);return Yg.relative(i,o)},Ib=function(e){return e.match({domRange:function(e){var t=gt.fromDom(e.startContainer),n=gt.fromDom(e.endContainer);return Pb(t,e.startOffset,n,e.endOffset)},relative:Nb,exact:Pb})},Rb=function(e,t,n,r){var i=dn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},zb=function(e,t,n,r){var i=Rb(e,t,n,r),o=_t(e,n)&&t===r;return i.collapsed&&!o},Bb=function(e){return D.from(e.getSelection())},Lb=function(e,t){Bb(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},$b=function(e,t,n,r,i){var o=nb(e,t,n,r,i);Lb(e,o)},Fb=function(e,t,n,r,i,o){t.collapse(n.dom,r),t.extend(i.dom,o)},jb=function(e,t){return cb(e,t).match({ltr:function(t,n,r,i){$b(e,t,n,r,i)},rtl:function(t,n,r,i){Bb(e).each((function(o){if(o.setBaseAndExtent)o.setBaseAndExtent(t.dom,n,r.dom,i);else if(o.extend)try{Fb(e,o,t,n,r,i)}catch(a){$b(e,r,i,t,n)}else $b(e,r,i,t,n)}))}})},Vb=function(e,t,n,r,i){var o=Pb(t,n,r,i);jb(e,o)},Hb=function(e,t,n){var r=Nb(t,n);jb(e,r)},Wb=function(e){var t=Yg.getWin(e).dom,n=function(e,n,r,i){return nb(t,e,n,r,i)},r=Ib(e);return cb(t,r).match({ltr:n,rtl:n})},Ub=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return D.some(Pg.create(gt.fromDom(t.startContainer),t.startOffset,gt.fromDom(n.endContainer),n.endOffset))}return D.none()},qb=function(e){if(null===e.anchorNode||null===e.focusNode)return Ub(e);var t=gt.fromDom(e.anchorNode),n=gt.fromDom(e.focusNode);return zb(t,e.anchorOffset,n,e.focusOffset)?D.some(Pg.create(t,e.anchorOffset,n,e.focusOffset)):Ub(e)},Gb=function(e,t,n){void 0===n&&(n=!0);var r=n?Jg:Xg,i=r(e,t);Lb(e,i)},Kb=function(e){return Bb(e).filter((function(e){return e.rangeCount>0})).bind(qb)},Yb=function(e){return Kb(e).map((function(e){return Yg.exact(e.start,e.soffset,e.finish,e.foffset)}))},Xb=function(e,t){var n=lb(e,t);return ib(n)},Jb=function(e,t,n){return Mb(e,t,n)},Zb=function(e){Bb(e).each((function(e){return e.removeAllRanges()}))},Qb=tinymce.util.Tools.resolve("tinymce.util.VK"),ey=function(e,t,n){return ry(e,t,Mg(n,_l))},ty=function(e,t,n){return ry(e,t,Ag(n,_l))},ny=function(e,t){var n=Yg.exact(t,0,t,0);return Wb(n)},ry=function(e,t,n){return n.fold(D.none,D.none,(function(t,n){return Ts(n).map((function(t){return ny(e,t)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),ey(e,t,n)}))},iy=["table","li","dl"],oy=function(e,t,n){if(e.keyCode===Qb.TAB){var r=Us(t),i=function(e){var t=nn(e);return _t(e,r)||I(iy,t)},o=t.selection.getRng(),a=gt.fromDom(e.shiftKey?o.startContainer:o.endContainer);Dr(a,i).each((function(r){e.preventDefault(),Nr(r,i).each(n.clear),t.selection.collapse(e.shiftKey);var o=e.shiftKey?ty:ey,a=o(t,i,r);a.each((function(e){t.selection.setRng(e)}))}))}},ay=function(e,t){return{selection:e,kill:t}},sy={create:ay},uy=function(e,t,n,r){return{start:Fg.on(e,t),finish:Fg.on(n,r)}},cy={create:uy},ly=function(e,t){var n=lb(e,t);return Pg.create(gt.fromDom(n.startContainer),n.startOffset,gt.fromDom(n.endContainer),n.endOffset)},fy=cy.create,dy=function(e,t,n,r,i,o,a){return _t(n,i)&&r===o?D.none():Kn(n,"td,th",t).bind((function(n){return Kn(i,"td,th",t).bind((function(r){return hy(e,t,n,r,a)}))}))},hy=function(e,t,n,r,i){return _t(n,r)?D.none():to(n,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>1?(i(e,r,t.start,t.finish),D.some(sy.create(D.some(fy(n,0,n,ks(n))),!0))):D.none()}))},py=function(e,t,n,r,i){var o=function(e){return i.clearBeforeUpdate(n),i.selectRange(n,e.boxes,e.start,e.finish),e.boxes};return ao(r,e,t,i.firstSelectedSelector,i.lastSelectedSelector).map(o)},my=function(e,t){return{item:e,mode:t}},vy=function(e,t,n,r){return void 0===r&&(r=gy),e.property().parent(t).map((function(e){return my(e,r)}))},gy=function(e,t,n,r){return void 0===r&&(r=by),n.sibling(e,t).map((function(e){return my(e,r)}))},by=function(e,t,n,r){void 0===r&&(r=by);var i=e.property().children(t),o=n.first(i);return o.map((function(e){return my(e,r)}))},yy=[{current:vy,next:gy,fallback:D.none()},{current:gy,next:by,fallback:D.some(vy)},{current:by,next:by,fallback:D.some(gy)}],wy=function(e,t,n,r,i){void 0===i&&(i=yy);var o=U(i,(function(e){return e.current===n}));return o.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return wy(e,t,n,r)}))}))}))},xy=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?D.some(e[e.length-1]):D.none()};return{sibling:e,first:t}},_y=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?D.some(e[0]):D.none()};return{sibling:e,first:t}},Cy={left:xy,right:_y},ky=function(e,t,n,r,i,o){var a=wy(e,t,r,i);return a.bind((function(t){return o(t.item)?D.none():n(t.item)?D.some(t.item):ky(e,t.item,n,t.mode,i,o)}))},Sy=function(e,t,n,r){return ky(e,t,n,gy,Cy.left(),r)},Oy=function(e,t,n,r){return ky(e,t,n,gy,Cy.right(),r)},Ey=function(e){return function(t){return 0===e.property().children(t).length}},Ty=function(e,t,n){return My(e,t,Ey(e),n)},Dy=function(e,t,n){return Ay(e,t,Ey(e),n)},My=Sy,Ay=Oy,Ny=Vi(),Py=function(e,t){return Ty(Ny,e,t)},Iy=function(e,t){return Dy(Ny,e,t)},Ry=function(e,t,n){return My(Ny,e,t,n)},zy=function(e,t,n){return Ay(Ny,e,t,n)},By=function(e,t,n){return jn(e,t,n).isSome()},Ly=lo.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),$y=function(e,t,n){var r=e.getRect(t),i=e.getRect(n);return i.right>r.left&&i.left<r.right},Fy=function(e){return Kn(e,"tr")},jy=function(e,t,n,r,i,o,a){return Kn(r,"td,th",a).bind((function(n){return Kn(t,"td,th",a).map((function(t){return _t(n,t)?_t(r,n)&&ks(n)===i?o(t):Ly.none("in same cell"):Zi(Fy,[n,t]).fold((function(){return $y(e,t,n)?Ly.success():o(t)}),(function(e){return o(t)}))}))})).getOr(Ly.none("default"))},Vy=function(e,t,n,r,i){return e.fold(t,n,r,i)},Hy=ie(ie({},Ly),{verify:jy,cata:Vy}),Wy=function(e,t,n,r){return{parent:e,children:t,element:n,index:r}},Uy=function(e){return mn(e).bind((function(t){var n=wn(t);return qy(n,e).map((function(r){return Wy(t,n,e,r)}))}))},qy=function(e,t){return q(e,w(_t,t))},Gy=function(e){return"br"===nn(e)},Ky=function(e,t,n){return t(e,n).bind((function(e){return un(e)&&0===Li(e).trim().length?Ky(e,t,n):D.some(e)}))},Yy=function(e,t,n){return n.traverse(t).orThunk((function(){return Ky(t,n.gather,e)})).map(n.relative)},Xy=function(e,t){return xn(e,t).filter(Gy).orThunk((function(){return xn(e,t-1).filter(Gy)}))},Jy=function(e,t,n,r){return Xy(t,n).bind((function(t){return r.traverse(t).fold((function(){return Ky(t,r.gather,e).map(r.relative)}),(function(e){return Uy(e).map((function(e){return Fg.on(e.parent,e.index)}))}))}))},Zy=function(e,t,n,r){var i=Gy(t)?Yy(e,t,r):Jy(e,t,n,r);return i.map((function(e){return{start:e,finish:e}}))},Qy=function(e){return Hy.cata(e,(function(e){return D.none()}),(function(){return D.none()}),(function(e){return D.some(ad(e,0))}),(function(e){return D.some(ad(e,ks(e)))}))},ew=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},tw=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},nw=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},rw=function(e){return e.top},iw=function(e){return e.bottom},ow=function(e,t,n){return n>=0&&n<ks(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):D.none()},aw=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},sw=function(e,t){return D.some(e.getRect(t))},uw=function(e,t,n){return sn(t)?sw(e,t).map(aw):un(t)?ow(e,t,n).map(aw):D.none()},cw=function(e,t){return sn(t)?sw(e,t).map(aw):un(t)?e.getRangedRect(t,0,t,ks(t)).map(aw):D.none()},lw=5,fw=100,dw=lo.generate([{none:[]},{retry:["caret"]}]),hw=function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right},pw=function(e,t,n){return Vn(t,sp).fold(C,(function(t){return cw(e,t).exists((function(e){return hw(n,e)}))}))},mw=function(e,t,n,r,i){var o=ew(i,lw);return Math.abs(n.bottom-r.bottom)<1||n.top>i.bottom?dw.retry(o):n.top===i.bottom?dw.retry(ew(i,1)):pw(e,t,i)?dw.retry(nw(o,lw,0)):dw.none()},vw=function(e,t,n,r,i){var o=tw(i,lw);return Math.abs(n.top-r.top)<1||n.bottom<i.top?dw.retry(o):n.bottom===i.top?dw.retry(tw(i,1)):pw(e,t,i)?dw.retry(nw(o,lw,0)):dw.none()},gw={point:rw,adjuster:vw,move:tw,gather:Py},bw={point:iw,adjuster:mw,move:ew,gather:Iy},yw=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===nn(e)})).isSome()},ww=function(e,t,n,r,i){return xw(e,t,n,t.move(r,lw),i)},xw=function(e,t,n,r,i){return 0===i?D.some(r):yw(e,r.left,t.point(r))?ww(e,t,n,r,i-1):e.situsFromPoint(r.left,t.point(r)).bind((function(o){return o.start.fold(D.none,(function(o){return cw(e,o).bind((function(a){return t.adjuster(e,o,a,n,r).fold(D.none,(function(r){return xw(e,t,n,r,i-1)}))})).orThunk((function(){return D.some(r)}))}),D.none)}))},_w=function(e,t){return e.situsFromPoint(t.left,t.bottom+lw)},Cw=function(e,t){return e.situsFromPoint(t.left,t.top-lw)},kw=function(e,t,n){return e.point(t)>n.getInnerHeight()?D.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?D.some(-e.point(t)):D.none()},Sw=function(e,t,n){var r=e.move(n,lw),i=xw(t,e,n,r,fw).getOr(r);return kw(e,i,t).fold((function(){return t.situsFromPoint(i.left,e.point(i))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(i.left,e.point(i)-n)}))},Ow={tryUp:w(Sw,gw),tryDown:w(Sw,bw),ieTryUp:Cw,ieTryDown:_w,getJumpSize:g(lw)},Ew=20,Tw=function(e,t,n){return e.getSelection().bind((function(r){return Zy(t,r.finish,r.foffset,n).fold((function(){return D.some(ad(r.finish,r.foffset))}),(function(i){var o=e.fromSitus(i),a=Hy.verify(e,r.finish,r.foffset,o.finish,o.foffset,n.failure,t);return Qy(a)}))}))},Dw=function(e,t,n,r,i,o){return 0===o?D.none():Nw(e,t,n,r,i).bind((function(a){var s=e.fromSitus(a),u=Hy.verify(e,n,r,s.finish,s.foffset,i.failure,t);return Hy.cata(u,(function(){return D.none()}),(function(){return D.some(a)}),(function(a){return _t(n,a)&&0===r?Mw(e,n,r,tw,i):Dw(e,t,a,0,i,o-1)}),(function(a){return _t(n,a)&&r===ks(a)?Mw(e,n,r,ew,i):Dw(e,t,a,ks(a),i,o-1)}))}))},Mw=function(e,t,n,r,i){return uw(e,t,n).bind((function(t){return Aw(e,i,r(t,Ow.getJumpSize()))}))},Aw=function(e,t,n){var r=it().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(e,n):r.isIE()?t.ieRetry(e,n):D.none()},Nw=function(e,t,n,r,i){return uw(e,n,r).bind((function(t){return Aw(e,i,t)}))},Pw=function(e,t,n){return Tw(e,t,n).bind((function(r){return Dw(e,t,r.element,r.offset,n,Ew).map(e.fromSitus)}))},Iw=function(e,t){return By(e,(function(e){return mn(e).exists((function(e){return _t(e,t)}))}))},Rw=function(e,t,n,r,i){return Kn(r,"td,th",t).bind((function(r){return Kn(r,"table",t).bind((function(o){return Iw(i,o)?Pw(e,t,n).bind((function(e){return Kn(e.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:e}}))})):D.none()}))}))},zw=function(e,t,n,r,i,o){return it().browser.isIE()?D.none():o(r,t).orThunk((function(){return Rw(e,t,n,r,i).map((function(e){var t=e.range;return sy.create(D.some(fy(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},Bw=function(e,t){return Kn(e,"tr",t).bind((function(e){return Kn(e,"table",t).bind((function(n){var r=$n(n,"tr");return _t(e,r[0])?Ry(n,(function(e){return Ds(e).isSome()}),t).map((function(e){var t=ks(e);return sy.create(D.some(fy(e,t,e,t)),!0)})):D.none()}))}))},Lw=function(e,t){return Kn(e,"tr",t).bind((function(e){return Kn(e,"table",t).bind((function(n){var r=$n(n,"tr");return _t(e,r[r.length-1])?zy(n,(function(e){return Ts(e).isSome()}),t).map((function(e){return sy.create(D.some(fy(e,0,e,0)),!0)})):D.none()}))}))},$w=function(e,t,n,r,i,o,a){return Rw(e,n,r,i,o).bind((function(e){return hy(t,n,e.start,e.finish,a)}))},Fw=function(e,t){return Kn(e,"td,th",t)},jw=function(e,t,n,r){var i=bv(),o=i.clear,a=function(o){i.on((function(i){r.clearBeforeUpdate(t),Fw(o.target,n).each((function(a){to(i,a,n).each((function(n){var i=n.boxes.getOr([]);if(1===i.length){var s=i[0],u="false"===Cl(s),c=rr(xl(o.target),s,_t);u&&c&&(r.selectRange(t,i,s,s),e.selectContents(s))}else i.length>1&&(r.selectRange(t,i,n.start,n.finish),e.selectContents(a))}))}))}))},s=function(e){r.clear(t),Fw(e.target,n).each(i.set)},u=function(e){a(e)},c=function(e){a(e),o()};return{clearstate:o,mousedown:s,mouseover:u,mouseup:c}},Vw={traverse:yn,gather:Iy,relative:Fg.before,otherRetry:Ow.tryDown,ieRetry:Ow.ieTryDown,failure:Hy.failedDown},Hw={traverse:bn,gather:Py,relative:Fg.before,otherRetry:Ow.tryUp,ieRetry:Ow.ieTryUp,failure:Hy.failedUp},Ww=function(e){return function(t){return t===e}},Uw=Ww(38),qw=Ww(40),Gw=function(e){return e>=37&&e<=40},Kw={isBackward:Ww(37),isForward:Ww(39)},Yw={isBackward:Ww(39),isForward:Ww(37)},Xw=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Zo(n,r)},Jw=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollBy(e,t)},Zw=function(e){var t=function(t,n){return gt.fromPoint(gt.fromDom(e.document),t,n)},n=function(e){return e.dom.getBoundingClientRect()},r=function(t,n,r,i){var o=Yg.exact(t,n,r,i);return Xb(e,o)},i=function(){return Yb(e).map((function(t){return ly(e,t)}))},o=function(t){var n=Yg.relative(t.start,t.finish);return ly(e,n)},a=function(t,n){return Jb(e,t,n).map((function(e){return cy.create(e.start,e.soffset,e.finish,e.foffset)}))},s=function(){Zb(e)},u=function(t){void 0===t&&(t=!1),Yb(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,r){var i=t?n:r;Hb(e,i,i)}),(function(n,r,i,o){var a=t?n:i,s=t?r:o;Vb(e,a,s,a,s)}))}))},c=function(t){Gb(e,t,!1)},l=function(t){Gb(e,t)},f=function(t){Vb(e,t.start,t.soffset,t.finish,t.foffset)},d=function(t,n){Hb(e,t,n)},h=function(){return e.innerHeight},p=function(){var t=Xw(gt.fromDom(e.document));return t.top},m=function(t,n){Jw(t,n,gt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:i,fromSitus:o,situsFromPoint:a,clearSelection:s,collapseSelection:u,setSelection:f,setRelativeSelection:d,selectNode:c,selectContents:l,getInnerHeight:h,getScrollY:p,scrollBy:m}},Qw=function(e,t){return{rows:e,cols:t}},ex=function(e,t,n,r){var i=Zw(e),o=jw(i,t,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},tx=function(e,t,n,r){var i=Zw(e),o=function(){return r.clear(t),D.none()},a=function(e,a,s,u,c,l){var f=e.raw,d=f.which,h=!0===f.shiftKey,p=no(t,r.selectedSelector).fold((function(){return Gw(d)&&!h&&r.clearBeforeUpdate(t),qw(d)&&h?w($w,i,t,n,Vw,u,a,r.selectRange):Uw(d)&&h?w($w,i,t,n,Hw,u,a,r.selectRange):qw(d)?w(zw,i,n,Vw,u,a,Lw):Uw(d)?w(zw,i,n,Hw,u,a,Bw):D.none}),(function(e){var n=function(n){return function(){var o=re(n,(function(n){return py(n.rows,n.cols,t,e,r)}));return o.fold((function(){return io(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){var n=qw(d)||l.isForward(d)?Fg.after:Fg.before;return i.setRelativeSelection(Fg.on(e.first,0),n(e.table)),r.clear(t),sy.create(D.none(),!0)}))}),(function(e){return D.some(sy.create(D.none(),!0))}))}};return qw(d)&&h?n([Qw(1,0)]):Uw(d)&&h?n([Qw(-1,0)]):l.isBackward(d)&&h?n([Qw(0,-1),Qw(-1,0)]):l.isForward(d)&&h?n([Qw(0,1),Qw(1,0)]):Gw(d)&&!h?o:D.none}));return p()},s=function(e,i,o,a,s){return no(t,r.selectedSelector).fold((function(){var u=e.raw,c=u.which,l=!0===u.shiftKey;return l&&Gw(c)?dy(t,n,i,o,a,s,r.selectRange):D.none()}),D.none)};return{keydown:a,keyup:s}},nx=function(e,t,n,r){var i=Zw(e);return function(e,o){r.clearBeforeUpdate(t),to(e,o,n).each((function(e){var n=e.boxes.getOr([]);r.selectRange(t,n,e.start,e.finish),i.selectContents(o),i.collapseSelection()}))}},rx=function(e,t){L(t,(function(t){cl(e,t)}))},ix=function(e){return function(t){sl(t,e)}},ox=function(e){return function(t){rx(t,e)}},ax=function(e){var t=ix(e.selected),n=ox([e.selected,e.lastSelected,e.firstSelected]),r=function(t){var r=$n(t,e.selectedSelector);L(r,n)},i=function(n,i,o,a){r(n),L(i,t),sl(o,e.firstSelected),sl(a,e.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:i,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},sx=function(e,t,n){var r=function(t){tr(t,e.selected),tr(t,e.firstSelected),tr(t,e.lastSelected)},i=function(t){Xn(t,e.selected,"1")},o=function(e){a(e),n()},a=function(t){var n=$n(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);L(n,r)},s=function(n,r,a,s){o(n),L(r,i),Xn(a,e.firstSelected,"1"),Xn(s,e.lastSelected,"1"),t(r,a,s)};return{clearBeforeUpdate:a,clear:o,selectRange:s,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},ux={byClass:ax,byAttr:sx},cx=function(e,t){var n=e.slice(0,t[t.length-1].row+1),r=jd(n);return K(r,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return B(n,(function(e){return e.element}))}))},lx=function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),r=jd(n);return K(r,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return B(n,(function(e){return e.element}))}))},fx=function(e,t,n){var r=ci.fromTable(e),i=Yd(r,t);return i.map((function(e){var t=$d(r,n,!1),i=cx(t,e),o=lx(t,e);return{upOrLeftCells:i,downOrRightCells:o}}))},dx=tinymce.util.Tools.resolve("tinymce.Env"),hx=function(e){return!1===ll(gt.fromDom(e.target),"ephox-snooker-resizer-bar")};function px(e,t,n){var r=function(t,r,i){n.targets().each((function(n){var o=Nr(r);o.each((function(o){var a=jf(e),s=Fs(p,gt.fromDom(e.getDoc()),a),u=fx(o,n,s);tf(e,t,r,i,u)}))}))},i=function(){return nf(e)},o=ux.byAttr(pu,r,i);return e.on("init",(function(n){var r=e.getWin(),i=Us(e),a=Ks(e),s=function(){var t=e.selection,n=gt.fromDom(t.getStart()),r=gt.fromDom(t.getEnd()),a=Zi(Nr,[n,r]);a.fold((function(){return o.clear(i)}),p)},u=ex(r,i,a,o),c=tx(r,i,a,o),l=nx(r,i,a,o),f=function(e){return!0===e.raw.shiftKey};e.on("TableSelectorChange",(function(e){return l(e.start,e.finish)}));var d=function(t,n){f(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Yg.relative(t.start,t.finish),i=lb(r,n);e.selection.setRng(i)})))},h=function(t){var n=Qc(t);if(n.raw.shiftKey&&Gw(n.raw.which)){var r=e.selection.getRng(),i=gt.fromDom(r.startContainer),o=gt.fromDom(r.endContainer);c.keyup(n,i,r.startOffset,o,r.endOffset).each((function(e){d(n,e)}))}},m=function(n){var r=Qc(n);t().each((function(e){return e.hideBars()}));var i=e.selection.getRng(),o=gt.fromDom(i.startContainer),a=gt.fromDom(i.endContainer),s=Uo(Kw,Yw)(gt.fromDom(e.selection.getStart()));c.keydown(r,o,i.startOffset,a,i.endOffset,s).each((function(e){d(r,e)})),t().each((function(e){return e.showBars()}))},v=function(e){return 0===e.button},g=function(e){return void 0===e.buttons||(!(!dx.browser.isEdge()||0!==e.buttons)||0!==(1&e.buttons))},b=function(e){u.clearstate()},y=function(e){v(e)&&hx(e)&&u.mousedown(Qc(e))},w=function(e){g(e)&&hx(e)&&u.mouseover(Qc(e))},x=function(e){v(e)&&hx(e)&&u.mouseup(Qc(e))},_=function(){var e=mv(gt.fromDom(i)),t=mv(0),n=function(n){var r=gt.fromDom(n.target);if("td"===nn(r)||"th"===nn(r)){var i=e.get(),o=t.get();_t(i,r)&&n.timeStamp-o<300&&(n.preventDefault(),l(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},C=_();e.on("dragstart",b),e.on("mousedown",y),e.on("mouseover",w),e.on("mouseup",x),e.on("touchend",C.touchEnd),e.on("keyup",h),e.on("keydown",m),e.on("NodeChange",s)})),{clear:o.clear}}var mx=function(e,t){return qn(e,t).isSome()},vx=function(e,t){var n=mv(D.none()),r=mv([]),i=D.none(),o=fn("caption"),a=function(e){return i.forall((function(t){return!t[e]}))},s=function(){return xu(tu(e),Ks(e))},u=function(){return xu(nu(e),Ks(e))},c=function(){return s().bind((function(e){return sr(or(Nr(e),u().bind(Nr),(function(n,r){return _t(n,r)?o(e)?D.some(mu(e)):D.some(vu(t,n,e)):D.none()})))}))},l=function(e){var t=Nr(e.element);return t.map((function(t){var n=ci.fromTable(t),r=Yd(n,e).getOr([]),i=H(r,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Qd(n,e).isSome(),unmergeable:eh(n,e).isSome(),locked:i}}))},f=function(){n.set(ae(c)()),i=n.get().bind(l),L(r.get(),(function(e){return e()}))},d=function(e){return e(),r.set(r.get().concat([e])),function(){r.set(j(r.get(),(function(t){return t!==e})))}},h=function(e,t){return d((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},p=function(e,t,r){return d((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(r(n))}))}))},m=function(e){return i.exists((function(t){return t.locked[e]}))},v=function(e){return h(e,(function(e){return!1}))},g=function(e){return h(e,(function(e){return o(e.element)}))},b=function(e){return function(t){return h(t,(function(t){return o(t.element)||m(e)}))}},y=function(e){return function(t){return h(t,(function(t){return o(t.element)||e().isNone()}))}},w=function(e,t){return function(n){return h(n,(function(n){return o(n.element)||e().isNone()||m(t)}))}},x=function(e){return h(e,(function(e){return a("mergeable")}))},_=function(e){return h(e,(function(e){return a("unmergeable")}))},k=function(t){return p(t,C,(function(t){var n=Nr(t.element,Ks(e));return n.exists((function(e){return mx(e,"caption")}))}))},S=function(t,n){return function(r){return p(r,(function(e){return o(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},O=S("mceTableRowType","header"),E=S("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",f),{onSetupTable:v,onSetupCellOrRow:g,onSetupColumn:b,onSetupPasteable:y,onSetupPasteableColumn:w,onSetupMergeable:x,onSetupUnmergeable:_,resetTargets:f,onSetupTableWithCaption:k,onSetupTableRowHeaders:O,onSetupTableColumnHeaders:E,targets:n.get}},gx=function(e,t,n,r){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var i=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:i("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:i("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:i("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:i("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:i("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:i("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:i("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:i("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:i("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:i("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:i("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:i("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:i("mceInsertTable"),icon:"table"});var o=kv(Af(e));0!==o.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Sv(e,t,o,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=kv(Df(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Sv(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Sv(e,t,ev,"tablecellverticalalign",Cv(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Sv(e,t,gf(e),"tablecellborderwidth",Cv(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Sv(e,t,bf(e),"tablecellborderstyle",Cv(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:i("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Ov(e,Hf(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Ov(e,Wf(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Ev(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Tv(e),onSetup:n.onSetupTableColumnHeaders})},bx=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Rf(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},yx=function(e,t,n,r){var i=function(t){return function(){return e.execCommand(t)}},o=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:i("mceTableProps")},s={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:i("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:i("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:i("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:i("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:i("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var u={type:"nestedmenuitem",text:"Row",getSubmenuItems:g("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:i("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:i("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:i("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var c={type:"nestedmenuitem",text:"Column",getSubmenuItems:g("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:i("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:i("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:i("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var l={type:"nestedmenuitem",text:"Cell",getSubmenuItems:g("tablecellprops tablemergecells tablesplitcells")};!1===Ef(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:i("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:o}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:i("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",s),e.ui.registry.addNestedMenuItem("row",u),e.ui.registry.addNestedMenuItem("column",c),e.ui.registry.addNestedMenuItem("cell",l),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(g(""),(function(e){return"caption"===nn(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var f=kv(Af(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return _v(e,t,f,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var d=kv(Df(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return _v(e,t,d,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return _v(e,t,ev,"tablecellverticalalign",Cv(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return _v(e,t,gf(e),"tablecellborderwidth",Cv(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return _v(e,t,bf(e),"tablecellborderstyle",Cv(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:i("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Ov(e,Hf(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Ov(e,Wf(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Ev(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Tv(e),onSetup:n.onSetupTableColumnHeaders})},wx=function(e){var t=go((function(){return Us(e)}),(function(){return _u(tu(e),Ks(e))}),pu.selectedSelector),n=vx(e,t),r=od(e),i=px(e,r.lazyResize,n),o=_m(e,i,r.lazyWire),a=wg();return bg(e,o,i,t,a),yg(e,o,t),Tu(e,t,o),yx(e,t,n,a),gx(e,t,n,a),bx(e),e.on("PreInit",(function(){e.serializer.addTempAttr(pu.firstSelected),e.serializer.addTempAttr(pu.lastSelected),kg(e)})),_f(e)&&e.on("keydown",(function(t){oy(t,e,i)})),e.on("remove",(function(){r.destroy()})),Vm(e,a,r,n)};function xx(){bo.add("table",wx)}xx()})()},"94f8":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],u=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}var r=2,i=0;while(i<64)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),u[i]=n(t.pow(r,1/3)),i++),r++})();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=c[h-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[h]=m+c[h-7]+g+c[h-16]}var b=s&l^~s&f,y=r&i^r&o^i&o,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),_=d+x+b+u[h]+c[h],C=w+y;d=f,f=l,l=s,s=a+_|0,a=o,o=i,i=r,r=_+C|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(l),n.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256}))},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},9742:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9876:function(e,t,n){var r=n("03d6"),i=n("9742");e.exports=Object.keys||function(e){return r(e,i)}},9911:function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("link")},{link:function(e){return i(this,"a","href",e)}})},9917:function(e,t,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"],i=function(e){return-1!==r.indexOf(e)},o=function(e,t,n){Object.keys(t).filter(i).forEach((function(r){var i=t[r];"function"===typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),(function(e){return i(e,n)})))}))},a=function(e,t){var n,r=e.$props.modelEvents?e.$props.modelEvents:null,i=Array.isArray(r)?r.join(" "):r;e.$watch("value",(function(e,r){t&&"string"===typeof e&&e!==n&&e!==r&&(t.setContent(e),n=e)})),t.on(i||"change keyup undo redo",(function(){n=t.getContent(),e.$emit("input",n)}))},s=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||i),t.$listeners.input&&a(t,n),o(e,t.$listeners,n)},u=0,c=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return u++,e+"_"+n+u+String(t)},l=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},f=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},d=function(e,t){return f(e).concat(f(t))},h=function(e,t,n,r){var i=t.createElement("script");i.type="application/javascript",i.id=e,i.addEventListener("load",r),i.src=n,t.head&&t.head.appendChild(i)},p=function(){return{listeners:[],scriptId:c("tiny-script"),scriptLoaded:!1}},m=function(e,t,n,r){e.scriptLoaded?r():(e.listeners.push(r),t.getElementById(e.scriptId)||h(e.scriptId,t,n,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},v=n("1f38"),g={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},b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},b.apply(this,arguments)},y=p(),w=function(e,t,n){return e(n||"div",{attrs:{id:t}})},x=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},_=function(e){return function(){var t=b({},e.$props.init,{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:d(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return s(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});l(e.element)&&(e.element.style.visibility=""),Object(v["a"])().init(t)}},C={props:g,created:function(){this.elementId=this.$props.id||c("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(v["a"])())_(this)();else if(this.element&&this.element.ownerDocument){var e=this.element.ownerDocument,t=this.$props.cloudChannel?this.$props.cloudChannel:"5",n=this.$props.apiKey?this.$props.apiKey:"no-api-key";m(y,e,"https://cdn.tiny.cloud/1/"+n+"/tinymce/"+t+"/tinymce.min.js",_(this))}},beforeDestroy:function(){null!==Object(v["a"])()&&Object(v["a"])().remove(this.editor)},render:function(e){return this.inlineEditor?w(e,this.elementId,this.$props.tagName):x(e,this.elementId)}};t["a"]=C},"99af":function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),u=n("07fa"),c=n("3511"),l=n("8418"),f=n("65f0"),d=n("1dde"),h=n("b622"),p=n("1212"),m=h("isConcatSpreadable"),v=p>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)},b=!v||!d("concat");r({target:"Array",proto:!0,arity:1,forced:b},{concat:function(e){var t,n,r,i,o,a=s(this),d=f(a,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],g(o))for(i=u(o),c(h+i),n=0;n<i;n++,h++)n in o&&l(d,h,o[n]);else c(h+1),l(d,h++,o);return d.length=h,d}})},"9a1f":function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),o=n("825a"),a=n("0d51"),s=n("35a1"),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new u(a(e)+" is not iterable")}},"9adc":function(e,t,n){"use strict";var r=n("8558");e.exports="NODE"===r},"9bdd":function(e,t,n){"use strict";var r=n("825a"),i=n("2a62");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},"9bf2":function(e,t,n){"use strict";var r=n("83ab"),i=n("0cfb"),o=n("aed9"),a=n("825a"),s=n("a04b"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=l(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c0c":function(e,t,n){var r=n("1609");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c0e":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"9d11":function(e,t,n){var r=n("fc5e"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"9d7e":function(e,t,n){"use strict";t.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(o,(function(t,r,o,a){var s=void 0;return"{"===e[a-1]&&"}"===e[a+t.length]?o:(s=(0,i.hasOwn)(n,o)?n[o]:null,null===s||void 0===s?"":s)}))}return t};var i=n("8122"),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},"9f7f":function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp,a=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),u=a||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:s,UNSUPPORTED_Y:a}},"9fbb":function(e,t,n){var r=n("4d88");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},a04b:function(e,t,n){"use strict";var r=n("c04e"),i=n("d9b5");e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},a11b:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}))},a15b:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("44ad"),a=n("fc6a"),s=n("a640"),u=i([].join),c=o!==Object,l=c||!s("join",",");r({target:"Array",proto:!0,forced:l},{join:function(e){return u(a(this),void 0===e?",":e)}})},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,u=function(){};function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var a=String(i).replace(s,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),u=t[r];r<o;u=t[++r])a+=" "+u;return a}return i}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function d(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e),i++,i===o&&n(r)}e.forEach((function(e){t(e,a)}))}function h(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,r){if(t.first){var i=p(e);return h(i,n,r)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,u=0,c=[],l=function(e){c.push.apply(c,e),u++,u===s&&r(c)};a.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?h(r,n,l):d(r,n,l)}))}function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function g(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}function b(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!f(t,o||e.type)||r.push(c(i.messages.required,e.fullField))}var y=b;function w(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(c(i.messages.whitespace,e.fullField))}var x=w,_={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},C={integer:function(e){return C.number(e)&&parseInt(e,10)===e},float:function(e){return C.number(e)&&!C.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!C.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(_.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(_.url)},hex:function(e){return"string"===typeof e&&!!e.match(_.hex)}};function k(e,t,n,r,i){if(e.required&&void 0===t)y(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?C[s](t)||r.push(c(i.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(c(i.messages.types[s],e.fullField,e.type))}}var S=k;function O(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(l=t.length),h&&(l=t.replace(u,"_").length),o?l!==e.len&&r.push(c(i.messages[f].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(c(i.messages[f].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(c(i.messages[f].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(c(i.messages[f].range,e.fullField,e.min,e.max))}var E=O,T="enum";function D(e,t,n,r,i){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(t)&&r.push(c(i.messages[T],e.fullField,e[T].join(", ")))}var M=D;function A(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(c(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(c(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var N=A,P={required:y,whitespace:x,type:S,range:E,enum:M,pattern:N};function I(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();P.required(e,t,r,o,i,"string"),f(t,"string")||(P.type(e,t,r,o,i),P.range(e,t,r,o,i),P.pattern(e,t,r,o,i),!0===e.whitespace&&P.whitespace(e,t,r,o,i))}n(o)}var R=I;function z(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var B=z;function L(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var $=L;function F(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var j=F;function V(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),f(t)||P.type(e,t,r,o,i)}n(o)}var H=V;function W(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var U=W;function q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var G=q;function K(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"array")&&!e.required)return n();P.required(e,t,r,o,i,"array"),f(t,"array")||(P.type(e,t,r,o,i),P.range(e,t,r,o,i))}n(o)}var Y=K;function X(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),void 0!==t&&P.type(e,t,r,o,i)}n(o)}var J=X,Z="enum";function Q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();P.required(e,t,r,o,i),t&&P[Z](e,t,r,o,i)}n(o)}var ee=Q;function te(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();P.required(e,t,r,o,i),f(t,"string")||P.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();if(P.required(e,t,r,o,i),!f(t)){var s=void 0;s="number"===typeof t?new Date(t):t,P.type(e,s,r,o,i),s&&P.range(e,s.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);P.required(e,t,r,o,i,s),n(o)}var ae=oe;function se(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,o)&&!e.required)return n();P.required(e,t,r,a,i,o),f(t,o)||P.type(e,t,r,a,i)}n(a)}var ue=se,ce={string:R,method:B,number:$,boolean:j,regexp:H,integer:U,float:G,array:Y,object:J,enum:ee,pattern:ne,date:ie,url:ue,hex:ue,email:ue,required:ae};function le(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var fe=le();function de(e){this.rules=null,this._messages=fe,this.define(e)}de.prototype={messages:function(e){return e&&(this._messages=g(le(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=e,s=n,l=r;if("function"===typeof s&&(l=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var f=this.messages();f===fe&&(f=le()),g(f,s.messages),s.messages=f}else s.messages=this.messages();var d=void 0,h=void 0,p={},b=s.keys||Object.keys(this.rules);b.forEach((function(n){d=t.rules[n],h=o[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===e&&(o=i()({},o)),h=o[n]=a.transform(h)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:o,field:n}))}))}));var y={};m(p,s,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=a;if(Array.isArray(l)||(l=[l]),l.length&&u("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(v(n)),s.first&&l.length)return y[n.field]=1,t(l);if(r){if(n.required&&!e.value)return l=n.message?[].concat(n.message).map(v(n)):s.error?[s.error(n,c(s.messages.required,n.field))]:[],t(l);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=i()({},f,e.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(o.bind(null,h))}var m=new de(f);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?l.concat(e):e)}))}else t(l)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=n.validator(n,e.value,l,e.source,s);f&&f.then&&f.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){w(e)}))}else l&&l();function w(e){var t=void 0,n=void 0,r=[],i={};function o(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,i[n]=i[n]||[],i[n].push(r[t]);else r=null,i=null;l(r,i)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ce.hasOwnProperty(e.type))throw new Error(c("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ce.required:ce[this.getType(e)]||!1}},de.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ce[e]=t},de.messages=fe;t["default"]=de},a38e:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("53ca");n("8172"),n("d9e2"),n("efec"),n("a9e3");function i(e,t){if("object"!=Object(r["a"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Object(r["a"])(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==Object(r["a"])(t)?t:t+""}},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},a40e:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],r=0;r<56;r++){var i=a[r]-1;n[r]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var l=o[c]=[],f=u[c];for(r=0;r<24;r++)l[r/6|0]|=n[(s[r]-1+f)%28]<<31-r%6,l[4+(r/6|0)]|=n[28+(s[r+24]-1+f)%28]<<31-r%6;l[0]=l[0]<<1|l[0]>>>31;for(r=1;r<7;r++)l[r]=l[r]>>>4*(r-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(r=0;r<16;r++)d[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=c[u][((a^i[u])&l[u])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=i._createHelper(f);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key,t=e.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),o=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=f.createEncryptor(r.create(n)),this._des2=f.createEncryptor(r.create(i)),this._des3=f.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),e.TripleDES}))},a434:function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("23cb"),a=n("5926"),s=n("07fa"),u=n("3a34"),c=n("3511"),l=n("65f0"),f=n("8418"),d=n("083a"),h=n("1dde"),p=h("splice"),m=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,h,p,g,b,y=i(this),w=s(y),x=o(e,w),_=arguments.length;for(0===_?n=r=0:1===_?(n=0,r=w-x):(n=_-2,r=v(m(a(t),0),w-x)),c(w+n-r),h=l(y,r),p=0;p<r;p++)g=x+p,g in y&&f(h,p,y[g]);if(h.length=r,n<r){for(p=x;p<w-r;p++)g=p+r,b=p+n,g in y?y[b]=y[g]:d(y,b);for(p=w;p>w-r+n;p--)d(y,p-1)}else if(n>r)for(p=w-r;p>x;p--)g=p+r-1,b=p+n-1,g in y?y[b]=y[g]:d(y,b);for(p=0;p<n;p++)y[p+x]=arguments[p+2];return u(y,w-r+n),h}})},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a630:function(e,t,n){"use strict";var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},a732:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),a=n("59ed"),s=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),f=l("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{some:function(e){s(this);try{a(e)}catch(r){c(this,"throw",r)}if(f)return i(f,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},a742:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isString=s,t.isObject=u,t.isHtmlElement=c;var i=n("2b0e"),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return e&&e.nodeType===Node.ELEMENT_NODE}var l=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":r(Int8Array))||!o.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=l=function(e){return"function"===typeof e||!1}),t.isFunction=l;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},a79d:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("d256"),a=n("d039"),s=n("d066"),u=n("1626"),c=n("4840"),l=n("cdf9"),f=n("cb2d"),d=o&&o.prototype,h=!!o&&a((function(){d["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=c(this,s("Promise")),n=u(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!i&&u(o)){var p=s("Promise").prototype["finally"];d["finally"]!==p&&f(d,"finally",p,{unsafe:!0})}},a817:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}))},a8ce:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}};function o(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16}))},a925:function(e,t,n){"use strict";
  45. /*!
  46. * vue-i18n v8.28.2
  47. * (c) 2022 kazuya kawaguchi
  48. * Released under the MIT License.
  49. */var r=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],i=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function o(e,t){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function a(e,t){"undefined"!==typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}var s=Array.isArray;function u(e){return null!==e&&"object"===typeof e}function c(e){return"boolean"===typeof e}function l(e){return"string"===typeof e}var f=Object.prototype.toString,d="[object Object]";function h(e){return f.call(e)===d}function p(e){return null===e||void 0===e}function m(e){return"function"===typeof e}function v(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,r=null;return 1===e.length?u(e[0])||s(e[0])?r=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(u(e[1])||s(e[1]))&&(r=e[1])),{locale:n,params:r}}function g(e){return JSON.parse(JSON.stringify(e))}function b(e,t){if(e.delete(t))return e}function y(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function w(e,t){return!!~e.indexOf(t)}var x=Object.prototype.hasOwnProperty;function _(e,t){return x.call(e,t)}function C(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var i=t[r];if(void 0!==i&&null!==i){var o=void 0;for(o in i)_(i,o)&&(u(i[o])?n[o]=C(n[o],i[o]):n[o]=i[o])}}return n}function k(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=s(e),o=s(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return k(e,t[n])}));if(i||o)return!1;var a=Object.keys(e),c=Object.keys(t);return a.length===c.length&&a.every((function(n){return k(e[n],t[n])}))}catch(l){return!1}}function S(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function O(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=S(e[t]))})),e}function E(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}function T(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n)if(e.i18n instanceof Oe){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{},n=e.__i18nBridge||e.__i18n;n.forEach((function(e){t=C(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(u){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(h(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Oe?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var i=e.i18n&&e.i18n.messages?e.i18n.messages:{},o=e.__i18nBridge||e.__i18n;o.forEach((function(e){i=C(i,JSON.parse(e))})),e.i18n.messages=i}catch(u){0}var a=e.i18n,s=a.sharedMessages;s&&h(s)&&(e.i18n.messages=C(e.i18n.messages,s)),this._i18n=new Oe(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Oe?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Oe&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof Oe||h(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Oe||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Oe)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}var D={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,i=t.props,o=t.slots,a=r.$i18n;if(a){var s=i.path,u=i.locale,c=i.places,l=o(),f=a.i(s,u,M(l)||c?A(l.default,c):l),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?e(d,n,f):f}}};function M(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}function A(e,t){var n=t?N(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(R);return e.reduce(r?P:I,n)}function N(e){return Array.isArray(e)?e.reduce(I,{}):Object.assign({},e)}function P(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function I(e,t,n){return e[n]=t,e}function R(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var z,B={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,i=t.parent,o=t.data,a=i.$i18n;if(!a)return null;var s=null,c=null;l(n.format)?s=n.format:u(n.format)&&(n.format.key&&(s=n.format.key),c=Object.keys(n.format).reduce((function(e,t){var i;return w(r,t)?Object.assign({},e,(i={},i[t]=n.format[t],i)):e}),null));var f=n.locale||a.locale,d=a._ntp(n.value,f,s,c),h=d.map((function(e,t){var n,r=o.scopedSlots&&o.scopedSlots[e.type];return r?r((n={},n[e.type]=e.value,n.index=t,n.parts=d,n)):e.value})),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?e(p,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},h):h}};function L(e,t,n){j(e,n)&&H(e,t,n)}function $(e,t,n,r){if(j(e,n)){var i=n.context.$i18n;V(e,n)&&k(t.value,t.oldValue)&&k(e._localeMessage,i.getLocaleMessage(i.locale))||H(e,t,n)}}function F(e,t,n,r){var i=n.context;if(i){var a=n.context.$i18n||{};t.modifiers.preserve||a.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e["_vt"],e._locale=void 0,delete e["_locale"],e._localeMessage=void 0,delete e["_localeMessage"]}else o("Vue instance does not exists in VNode context")}function j(e,t){var n=t.context;return n?!!n.$i18n||(o("VueI18n instance does not exists in Vue instance"),!1):(o("Vue instance does not exists in VNode context"),!1)}function V(e,t){var n=t.context;return e._locale===n.$i18n.locale}function H(e,t,n){var r,i,a=t.value,s=W(a),u=s.path,c=s.locale,l=s.args,f=s.choice;if(u||c||l)if(u){var d=n.context;e._vt=e.textContent=null!=f?(r=d.$i18n).tc.apply(r,[u,f].concat(U(c,l))):(i=d.$i18n).t.apply(i,[u].concat(U(c,l))),e._locale=d.$i18n.locale,e._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else o("`path` is required in v-t directive");else o("value type not supported")}function W(e){var t,n,r,i;return l(e)?t=e:h(e)&&(t=e.path,n=e.locale,r=e.args,i=e.choice),{path:t,locale:n,args:r,choice:i}}function U(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||h(t))&&n.push(t),n}function q(e,t){void 0===t&&(t={bridge:!1}),q.installed=!0,z=e;z.version&&Number(z.version.split(".")[0]);E(z),z.mixin(T(t.bridge)),z.directive("t",{bind:L,update:$,unbind:F}),z.component(D.name,D),z.component(B.name,B);var n=z.config.optionMergeStrategies;n.i18n=function(e,t){return void 0===t?e:t}}var G=function(){this._caches=Object.create(null)};G.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=X(e),this._caches[e]=n),J(n,t)};var K=/^(?:\d)+/,Y=/^(?:\w)+/;function X(e){var t=[],n=0,r="";while(n<e.length){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r}),r="";var o="";i=e[n++];while(void 0!==i&&"}"!==i)o+=i,i=e[n++];var a="}"===i,s=K.test(o)?"list":a&&Y.test(o)?"named":"unknown";t.push({value:o,type:s})}else"%"===i?"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}function J(e,t){var n=[],r=0,i=Array.isArray(t)?"list":u(t)?"named":"unknown";if("unknown"===i)return n;while(r<e.length){var o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(t[o.value]);break;case"unknown":0;break}r++}return n}var Z=0,Q=1,ee=2,te=3,ne=0,re=1,ie=2,oe=3,ae=4,se=5,ue=6,ce=7,le=8,fe=[];fe[ne]={ws:[ne],ident:[oe,Z],"[":[ae],eof:[ce]},fe[re]={ws:[re],".":[ie],"[":[ae],eof:[ce]},fe[ie]={ws:[ie],ident:[oe,Z],0:[oe,Z],number:[oe,Z]},fe[oe]={ident:[oe,Z],0:[oe,Z],number:[oe,Z],ws:[re,Q],".":[ie,Q],"[":[ae,Q],eof:[ce,Q]},fe[ae]={"'":[se,Z],'"':[ue,Z],"[":[ae,ee],"]":[re,te],eof:le,else:[ae,Z]},fe[se]={"'":[ae,Z],eof:le,else:[se,Z]},fe[ue]={'"':[ae,Z],eof:le,else:[ue,Z]};var de=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function he(e){return de.test(e)}function pe(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function me(e){if(void 0===e||null===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function ve(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(he(t)?pe(t):"*"+t)}function ge(e){var t,n,r,i,o,a,s,u=[],c=-1,l=ne,f=0,d=[];function h(){var t=e[c+1];if(l===se&&"'"===t||l===ue&&'"'===t)return c++,r="\\"+t,d[Z](),!0}d[Q]=function(){void 0!==n&&(u.push(n),n=void 0)},d[Z]=function(){void 0===n?n=r:n+=r},d[ee]=function(){d[Z](),f++},d[te]=function(){if(f>0)f--,l=ae,d[Z]();else{if(f=0,void 0===n)return!1;if(n=ve(n),!1===n)return!1;d[Q]()}};while(null!==l)if(c++,t=e[c],"\\"!==t||!h()){if(i=me(t),s=fe[l],o=s[i]||s["else"]||le,o===le)return;if(l=o[0],a=d[o[1]],a&&(r=o[2],r=void 0===r?t:r,!1===a()))return;if(l===ce)return u}}var be=function(){this._cache=Object.create(null)};be.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=ge(e),t&&(this._cache[e]=t)),t||[]},be.prototype.getPathValue=function(e,t){if(!u(e))return null;var n=this.parsePath(t);if(0===n.length)return null;var r=n.length,i=e,o=0;while(o<r){var a=i[n[o]];if(void 0===a||null===a)return null;i=a,o++}return i};var ye,we=/<\/?[\w\s="/.':;#-\/]+>/,xe=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,_e=/^@(?:\.([a-zA-Z]+))?:/,Ce=/[()]/g,ke={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Se=new G,Oe=function(e){var t=this;void 0===e&&(e={}),!z&&"undefined"!==typeof window&&window.Vue&&q(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},o=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Se,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new be,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex){var i=r.getChoiceIndex;return i.call(t,e,n)}var o=function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):o(e,n)},this._exist=function(e,n){return!(!e||!n)&&(!p(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:o,numberFormats:a})},Ee={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};Oe.prototype._checkLocaleMessage=function(e,t,n){var r=[],i=function(e,t,n,r){if(h(n))Object.keys(n).forEach((function(o){var a=n[o];h(a)?(r.push(o),r.push("."),i(e,t,a,r),r.pop(),r.pop()):(r.push(o),i(e,t,a,r),r.pop())}));else if(s(n))n.forEach((function(n,o){h(n)?(r.push("["+o+"]"),r.push("."),i(e,t,n,r),r.pop(),r.pop()):(r.push("["+o+"]"),i(e,t,n,r),r.pop())}));else if(l(n)){var u=we.test(n);if(u){var c="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?o(c):"error"===e&&a(c)}}};i(t,e,n,r)},Oe.prototype._initVM=function(e){var t=z.config.silent;z.config.silent=!0,this._vm=new z({data:e,__VUE18N__INSTANCE__:!0}),z.config.silent=t},Oe.prototype.destroyVM=function(){this._vm.$destroy()},Oe.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},Oe.prototype.unsubscribeDataChanging=function(e){b(this._dataListeners,e)},Oe.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=y(e._dataListeners),n=t.length;while(n--)z.nextTick((function(){t[n]&&t[n].$forceUpdate()}))}),{deep:!0})},Oe.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){r.$set(r,"locale",e),r.$forceUpdate()}),{immediate:!0})},Oe.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Ee.vm.get=function(){return this._vm},Ee.messages.get=function(){return g(this._getMessages())},Ee.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},Ee.numberFormats.get=function(){return g(this._getNumberFormats())},Ee.availableLocales.get=function(){return Object.keys(this.messages).sort()},Ee.locale.get=function(){return this._vm.locale},Ee.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Ee.fallbackLocale.get=function(){return this._vm.fallbackLocale},Ee.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Ee.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Ee.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Ee.missing.get=function(){return this._missing},Ee.missing.set=function(e){this._missing=e},Ee.formatter.get=function(){return this._formatter},Ee.formatter.set=function(e){this._formatter=e},Ee.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Ee.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Ee.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Ee.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Ee.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Ee.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Ee.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Ee.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},Ee.postTranslation.get=function(){return this._postTranslation},Ee.postTranslation.set=function(e){this._postTranslation=e},Ee.sync.get=function(){return this._sync},Ee.sync.set=function(e){this._sync=e},Oe.prototype._getMessages=function(){return this._vm.messages},Oe.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Oe.prototype._getNumberFormats=function(){return this._vm.numberFormats},Oe.prototype._warnDefault=function(e,t,n,r,i,o){if(!p(n))return n;if(this._missing){var a=this._missing.apply(null,[e,t,r,i]);if(l(a))return a}else 0;if(this._formatFallbackMessages){var s=v.apply(void 0,i);return this._render(t,o,s.params,t)}return t},Oe.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:p(e))&&!p(this._root)&&this._fallbackRoot},Oe.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},Oe.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},Oe.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},Oe.prototype._interpolate=function(e,t,n,r,i,o,a){if(!t)return null;var u,c=this._path.getPathValue(t,n);if(s(c)||h(c))return c;if(p(c)){if(!h(t))return null;if(u=t[n],!l(u)&&!m(u))return null}else{if(!l(c)&&!m(c))return null;u=c}return l(u)&&(u.indexOf("@:")>=0||u.indexOf("@.")>=0)&&(u=this._link(e,t,u,r,"raw",o,a)),this._render(u,i,o,n)},Oe.prototype._link=function(e,t,n,r,i,o,a){var u=n,c=u.match(xe);for(var l in c)if(c.hasOwnProperty(l)){var f=c[l],d=f.match(_e),h=d[0],p=d[1],m=f.replace(h,"").replace(Ce,"");if(w(a,m))return u;a.push(m);var v=this._interpolate(e,t,m,r,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;v=g._translate(g._getMessages(),g.locale,g.fallbackLocale,m,r,i,o)}v=this._warnDefault(e,m,v,r,s(o)?o:[o],i),this._modifiers.hasOwnProperty(p)?v=this._modifiers[p](v):ke.hasOwnProperty(p)&&(v=ke[p](v)),a.pop(),u=v?u.replace(f,v):u}return u},Oe.prototype._createMessageContext=function(e,t,n,r){var i=this,o=s(e)?e:[],a=u(e)?e:{},c=function(e){return o[e]},l=function(e){return a[e]},f=this._getMessages(),d=this.locale;return{list:c,named:l,values:e,formatter:t,path:n,messages:f,locale:d,linked:function(e){return i._interpolate(d,f[d]||{},e,null,r,void 0,[e])}}},Oe.prototype._render=function(e,t,n,r){if(m(e))return e(this._createMessageContext(n,this._formatter||Se,r,t));var i=this._formatter.interpolate(e,n,r);return i||(i=Se.interpolate(e,n,r)),"string"!==t||l(i)?i:i.join("")},Oe.prototype._appendItemToChain=function(e,t,n){var r=!1;return w(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},Oe.prototype._appendLocaleToChain=function(e,t,n){var r,i=t.split("-");do{var o=i.join("-");r=this._appendItemToChain(e,o,n),i.splice(-1,1)}while(i.length&&!0===r);return r},Oe.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&c(r);i++){var o=t[i];l(o)&&(r=this._appendLocaleToChain(e,o,n))}return r},Oe.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];var r,i=[e];while(s(i))i=this._appendBlockToChain(n,i,t);r=s(t)?t:u(t)?t["default"]?t["default"]:null:t,i=l(r)?[r]:r,i&&this._appendBlockToChain(n,i,null),this._localeChainCache[e]=n}return n},Oe.prototype._translate=function(e,t,n,r,i,o,a){for(var s,u=this._getLocaleChain(t,n),c=0;c<u.length;c++){var l=u[c];if(s=this._interpolate(l,e[l],r,i,o,a,[r]),!p(s))return s}return null},Oe.prototype._t=function(e,t,n,r){var i,o=[],a=arguments.length-4;while(a-- >0)o[a]=arguments[a+4];if(!e)return"";var s=v.apply(void 0,o);this._escapeParameterHtml&&(s.params=O(s.params));var u=s.locale||t,c=this._translate(n,u,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(o))}return c=this._warnDefault(u,e,c,r,o,"string"),this._postTranslation&&null!==c&&void 0!==c&&(c=this._postTranslation(c,e)),c},Oe.prototype.t=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},Oe.prototype._i=function(e,t,n,r,i){var o=this._translate(n,t,this.fallbackLocale,e,r,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,o,r,[i],"raw")},Oe.prototype.i=function(e,t,n){return e?(l(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},Oe.prototype._tc=function(e,t,n,r,i){var o,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var u={count:i,n:i},c=v.apply(void 0,a);return c.params=Object.assign(u,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((o=this)._t.apply(o,[e,t,n,r].concat(a)),i)},Oe.prototype.fetchChoice=function(e,t){if(!e||!l(e))return null;var n=e.split("|");return t=this.getChoiceIndex(t,n.length),n[t]?n[t].trim():e},Oe.prototype.tc=function(e,t){var n,r=[],i=arguments.length-2;while(i-- >0)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},Oe.prototype._te=function(e,t,n){var r=[],i=arguments.length-3;while(i-- >0)r[i]=arguments[i+3];var o=v.apply(void 0,r).locale||t;return this._exist(n[o],e)},Oe.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},Oe.prototype.getLocaleMessage=function(e){return g(this._vm.messages[e]||{})},Oe.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},Oe.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,C("undefined"!==typeof this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},Oe.prototype.getDateTimeFormat=function(e){return g(this._vm.dateTimeFormats[e]||{})},Oe.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},Oe.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,C(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},Oe.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},Oe.prototype._localizeDateTime=function(e,t,n,r,i,o){for(var a=t,s=r[a],u=this._getLocaleChain(t,n),c=0;c<u.length;c++){var l=u[c];if(s=r[l],a=l,!p(s)&&!p(s[i]))break}if(p(s)||p(s[i]))return null;var f,d=s[i];if(o)f=new Intl.DateTimeFormat(a,Object.assign({},d,o));else{var h=a+"__"+i;f=this._dateTimeFormatters[h],f||(f=this._dateTimeFormatters[h]=new Intl.DateTimeFormat(a,d))}return f.format(e)},Oe.prototype._d=function(e,t,n,r){if(!n){var i=r?new Intl.DateTimeFormat(t,r):new Intl.DateTimeFormat(t);return i.format(e)}var o=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return o||""},Oe.prototype.d=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,o=null,a=null;return 1===t.length?(l(t[0])?o=t[0]:u(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key)),a=Object.keys(t[0]).reduce((function(e,n){var r;return w(i,n)?Object.assign({},e,(r={},r[n]=t[0][n],r)):e}),null)):2===t.length&&(l(t[0])&&(o=t[0]),l(t[1])&&(r=t[1])),this._d(e,r,o,a)},Oe.prototype.getNumberFormat=function(e){return g(this._vm.numberFormats[e]||{})},Oe.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},Oe.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,C(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},Oe.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},Oe.prototype._getNumberFormatter=function(e,t,n,r,i,o){for(var a=t,s=r[a],u=this._getLocaleChain(t,n),c=0;c<u.length;c++){var l=u[c];if(s=r[l],a=l,!p(s)&&!p(s[i]))break}if(p(s)||p(s[i]))return null;var f,d=s[i];if(o)f=new Intl.NumberFormat(a,Object.assign({},d,o));else{var h=a+"__"+i;f=this._numberFormatters[h],f||(f=this._numberFormatters[h]=new Intl.NumberFormat(a,d))}return f},Oe.prototype._n=function(e,t,n,r){if(!Oe.availabilities.numberFormat)return"";if(!n){var i=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return i.format(e)}var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.format(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return a||""},Oe.prototype.n=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this.locale,o=null,a=null;return 1===t.length?l(t[0])?o=t[0]:u(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(o=t[0].key),a=Object.keys(t[0]).reduce((function(e,n){var i;return w(r,n)?Object.assign({},e,(i={},i[n]=t[0][n],i)):e}),null)):2===t.length&&(l(t[0])&&(o=t[0]),l(t[1])&&(i=t[1])),this._n(e,i,o,a)},Oe.prototype._ntp=function(e,t,n,r){if(!Oe.availabilities.numberFormat)return[];if(!n){var i=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return i.formatToParts(e)}var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.formatToParts(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return a||[]},Object.defineProperties(Oe.prototype,Ee),Object.defineProperty(Oe,"availabilities",{get:function(){if(!ye){var e="undefined"!==typeof Intl;ye={dateTimeFormat:e&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:e&&"undefined"!==typeof Intl.NumberFormat}}return ye}}),Oe.install=q,Oe.version="8.28.2",t["a"]=Oe},a9e3:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("83ab"),a=n("cfe9"),s=n("428f"),u=n("e330"),c=n("94ca"),l=n("1a2d"),f=n("7156"),d=n("3a9b"),h=n("d9b5"),p=n("c04e"),m=n("d039"),v=n("241c").f,g=n("06cf").f,b=n("9bf2").f,y=n("408a"),w=n("58a8").trim,x="Number",_=a[x],C=s[x],k=_.prototype,S=a.TypeError,O=u("".slice),E=u("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:D(t)},D=function(e){var t,n,r,i,o,a,s,u,c=p(e,"number");if(h(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),t=E(c,0),43===t||45===t){if(n=E(c,2),88===n||120===n)return NaN}else if(48===t){switch(E(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=O(c,2),a=o.length,s=0;s<a;s++)if(u=E(o,s),u<48||u>i)return NaN;return parseInt(o,r)}return+c},M=c(x,!_(" 0o1")||!_("0b1")||_("+0x1")),A=function(e){return d(k,e)&&m((function(){y(e)}))},N=function(e){var t=arguments.length<1?0:_(T(e));return A(this)?f(Object(t),this,N):t};N.prototype=k,M&&!i&&(k.constructor=N),r({global:!0,constructor:!0,wrap:!0,forced:M},{Number:N});var P=function(e,t){for(var n,r=o?v(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(t,n=r[i])&&!l(e,n)&&b(e,n,g(t,n))};i&&C&&P(s[x],C),(M||i)&&P(s[x],_)},aaef:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){
  50. /** @preserve
  51. * Counter block mode compatible with Dr Brian Gladman fileenc.c
  52. * derived from CryptoJS.mode.CTR
  53. * Jan Hruby jhruby.web@gmail.com
  54. */
  55. return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u<i;u++)e[t+u]^=s[u]}});return t.Decryptor=i,t}(),e.mode.CTRGladman}))},ab13:function(e,t,n){"use strict";var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ab36:function(e,t,n){"use strict";var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},ab43:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("825a"),s=n("46c4"),u=n("c5cc"),c=n("9bdd"),l=n("2a62"),f=n("f99f"),d=n("c430"),h=!d&&f("map",TypeError),p=u((function(){var e=this.iterator,t=a(i(this.next,e)),n=this.done=!!t.done;if(!n)return c(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:d||h},{map:function(e){a(this);try{o(e)}catch(t){l(this,"throw",t)}return h?i(h,this,e):new p(s(this),{mapper:e})}})},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a38e");function i(e,t,n){return(t=Object(r["a"])(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae68:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=Object.hasOwnProperty,n=function(e,n){return t.call(e,n)},r=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=tinymce.util.Tools.resolve("tinymce.Env"),o=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=function(e){return e.fire("ResizeEditor")},s=function(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")},u=function(e){return e.getParam("max_height",0,"number")},c=function(e){return e.getParam("autoresize_overflow_padding",1,"number")},l=function(e){return e.getParam("autoresize_bottom_margin",50,"number")},f=function(e){return e.getParam("autoresize_on_init",!0,"boolean")},d=function(e){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()},h=function(e,t,n,r,i){o.setEditorTimeout(e,(function(){g(e,t),n--?h(e,t,n,r,i):i&&i()}),r)},p=function(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))},m=function(e,t,n,r){var i=parseInt(e.getStyle(t,n,r),10);return isNaN(i)?0:i},v=function(e){if("setcontent"===(null===e||void 0===e?void 0:e.type.toLowerCase())){var t=e;return!0===t.selection||!0===t.paste}return!1},g=function(e,t,n){var r=e.dom,o=e.getDoc();if(o)if(d(e))p(e,!0);else{var c=o.documentElement,f=l(e),h=s(e),b=m(r,c,"margin-top",!0),y=m(r,c,"margin-bottom",!0),w=c.offsetHeight+b+y+f;w<0&&(w=0);var x=e.getContainer().offsetHeight,_=e.getContentAreaContainer().offsetHeight,C=x-_;w+C>s(e)&&(h=w+C);var k=u(e);if(k&&h>k?(h=k,p(e,!0)):p(e,!1),h!==t.get()){var S=h-t.get();if(r.setStyle(e.getContainer(),"height",h+"px"),t.set(h),a(e),i.browser.isSafari()&&i.mac){var O=e.getWin();O.scrollTo(O.pageXOffset,O.pageYOffset)}e.hasFocus()&&v(n)&&e.selection.scrollIntoView(),i.webkit&&S<0&&g(e,t,n)}}},b=function(e,t){e.on("init",(function(){var t=c(e),n=e.dom;n.setStyles(e.getDoc().documentElement,{height:"auto"}),n.setStyles(e.getBody(),{paddingLeft:t,paddingRight:t,"min-height":0})})),e.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(function(n){g(e,t,n)})),f(e)&&e.on("init",(function(){h(e,t,20,100,(function(){h(e,t,5,1e3)}))}))},y=function(e,t){e.addCommand("mceAutoResize",(function(){g(e,t)}))};function w(){r.add("autoresize",(function(t){if(n(t.settings,"resize")||(t.settings.resize=!1),!t.inline){var r=e(0);y(t,r),b(t,r)}}))}w()})()},ae93:function(e,t,n){"use strict";var r,i,o,a=n("d039"),s=n("1626"),u=n("861d"),c=n("7c73"),l=n("e163"),f=n("cb2d"),d=n("b622"),h=n("c430"),p=d("iterator"),m=!1;[].keys&&(o=[].keys(),"next"in o?(i=l(l(o)),i!==Object.prototype&&(r=i)):m=!0);var v=!u(r)||a((function(){var e={};return r[p].call(e)!==e}));v?r={}:h&&(r=c(r)),s(r[p])||f(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},aeb0:function(e,t,n){"use strict";var r=n("9bf2").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039");e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af03:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},af5b:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,i=t.algo;const o=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,r=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][i],a+=e.sbox[3][o],a}function l(e,t,n){let r,i=t,a=n;for(let s=0;s<o;++s)i^=e.pbox[s],a=c(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:a}}function f(e,t,n){let r,i=t,a=n;for(let s=o+1;s>1;--s)i^=e.pbox[s],a=c(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[1],i^=e.pbox[0],{left:i,right:a}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=s[o][t]}let r=0;for(let s=0;s<o+2;s++)e.pbox[s]=a[s]^t[r],r++,r>=n&&(r=0);let i=0,u=0,c=0;for(let a=0;a<o+2;a+=2)c=l(e,i,u),i=c.left,u=c.right,e.pbox[a]=i,e.pbox[a+1]=u;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)c=l(e,i,u),i=c.left,u=c.right,e.sbox[o][t]=i,e.sbox[o][t+1]=u;return!0}var h=i.Blowfish=r.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(u,t,n)}},encryptBlock:function(e,t){var n=l(u,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=f(u,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=r._createHelper(h)}(),e.Blowfish}))},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(e,t,n){"use strict";var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("edd0"),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec),f="name";r&&!i&&a(s,f,{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},b2d6:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"OK",clear:"Clear"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:""},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},empty:{description:"No Data"}}}},b367:function(e,t,n){var r=n("5524"),i=n("ef08"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b42e:function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},b4f8:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("1a2d"),a=n("577e"),s=n("5692"),u=n("0b43"),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(o(c,t))return c[t];var n=i("Symbol")(t);return c[t]=n,l[n]=t,n}})},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),a=n("83b9"),s=n("c345"),u=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,l){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+m)}var v=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?h.response:h.responseText,o={data:r,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,l,o),h=null}},h.onabort=function(){h&&(l(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){l(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n("7aac"),b=(e.withCredentials||u(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),l(e),h=null)})),void 0===f&&(f=null),h.send(f)}))}},b575:function(e,t,n){"use strict";var r,i,o,a,s,u=n("cfe9"),c=n("157a"),l=n("0366"),f=n("2cf4").set,d=n("01b4"),h=n("52c8"),p=n("ebc1"),m=n("ec87"),v=n("9adc"),g=u.MutationObserver||u.WebKitMutationObserver,b=u.document,y=u.process,w=u.Promise,x=c("queueMicrotask");if(!x){var _=new d,C=function(){var e,t;v&&(e=y.domain)&&e.exit();while(t=_.get())try{t()}catch(n){throw _.head&&r(),n}e&&e.enter()};h||v||m||!g||!b?!p&&w&&w.resolve?(a=w.resolve(void 0),a.constructor=w,s=l(a.then,a),r=function(){s(C)}):v?r=function(){y.nextTick(C)}:(f=l(f,u),r=function(){f(C)}):(i=!0,o=b.createTextNode(""),new g(C).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),x=function(e){_.head||r(),_.add(e)}}e.exports=x},b5db:function(e,t,n){"use strict";var r=n("cfe9"),i=r.navigator,o=i&&i.userAgent;e.exports=o?String(o):""},b622:function(e,t,n){"use strict";var r=n("cfe9"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),u=n("fdbf"),c=r.Symbol,l=i("wks"),f=u?c["for"]||c:c&&c.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),l[e]}},b64b:function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5926"),a=n("408a"),s=n("1148"),u=n("d039"),c=RangeError,l=String,f=Math.floor,d=i(s),h=i("".slice),p=i(1..toFixed),m=function(e,t,n){return 0===t?n:t%2===1?m(e,t-1,n*e):m(e*e,t/2,n)},v=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},g=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=f(i/1e7)},b=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=f(r/t),r=r%t*1e7},y=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+d("0",7-r.length)+r}return n},w=u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}));r({target:"Number",proto:!0,forced:w},{toFixed:function(e){var t,n,r,i,s=a(this),u=o(e),f=[0,0,0,0,0,0],p="",w="0";if(u<0||u>20)throw new c("Incorrect fraction digits");if(s!==s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(p="-",s=-s),s>1e-21)if(t=v(s*m(2,69,1))-69,n=t<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,t=52-t,t>0){g(f,0,n),r=u;while(r>=7)g(f,1e7,0),r-=7;g(f,m(10,r,1),0),r=t-1;while(r>=23)b(f,1<<23),r-=23;b(f,1<<r),g(f,1,1),b(f,2),w=y(f)}else g(f,0,n),g(f,1<<-t,0),w=y(f)+d("0",u);return u>0?(i=w.length,w=p+(i<=u?"0."+d("0",u-i)+w:h(w,0,i-u)+"."+h(w,i-u))):w=p+w,w}})},b727:function(e,t,n){"use strict";var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),u=n("65f0"),c=i([].push),l=function(e){var t=1===e,n=2===e,i=3===e,l=4===e,f=6===e,d=7===e,h=5===e||f;return function(p,m,v,g){for(var b,y,w=a(p),x=o(w),_=s(x),C=r(m,v),k=0,S=g||u,O=t?S(p,_):n||d?S(p,0):void 0;_>k;k++)if((h||k in x)&&(b=x[k],y=C(b,k,w),e))if(t)O[k]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return k;case 2:c(O,b)}else switch(e){case 4:return!1;case 7:c(O,b)}return f?-1:i||l?l:O}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},b85c:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d28b"),n("d9e2"),n("d3b7"),n("3ca3"),n("ddb0");var r=n("06c5");function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(r["a"])(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}},b86b:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("3252"),n("d6e6"))})(0,(function(e){return function(){var t=e,n=t.x64,r=n.Word,i=n.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384}))},b86c:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}))},b980:function(e,t,n){"use strict";var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},b9c7:function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},ba01:function(e,t,n){e.exports=n("051b")},bb2f:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc3a:function(e,t,n){e.exports=n("cee4")},be7f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("array"),u=o(null),c=i("boolean"),l=i("function"),f=function(){},d=function(e){return function(){return e}},h=function(e){return e},p=function(e,t){return e===t},m=d(!1),v=d(!0),g=function(){return b},b=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:m,isNone:v,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:g,each:f,bind:g,exists:m,forall:v,filter:function(){return g()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:v,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},w=function(e){return null===e||void 0===e?b:y(e)},x={some:y,none:g,from:w},_=Array.prototype.indexOf,C=Array.prototype.push,k=function(e,t){return _.call(e,t)},S=function(e,t){return k(e,t)>-1},O=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},E=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},T=function(e,t,n){return E(e,(function(e,r){n=t(n,e,r)})),n},D=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);C.apply(t,e[n])}return t},M=function(e,t){return D(O(e,t))},A=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return x.none()},N=function(e,t,n){return void 0===n&&(n=p),e.exists((function(e){return n(e,t)}))},P=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},I=function(e,t){return e?x.some(t):x.none()},R=function(e){var t=e.getParam("link_assume_external_targets",!1);return c(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},z=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},B=function(e){return e.getParam("link_list")},L=function(e){return e.getParam("default_link_target")},$=function(e){return e.getParam("target_list",!0)},F=function(e){return e.getParam("rel_list",[],"array")},j=function(e){return e.getParam("link_class_list",[],"array")},V=function(e){return e.getParam("link_title",!0,"boolean")},H=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},W=function(e){return e.getParam("link_quicklink",!1,"boolean")},U=function(e){return e.getParam("link_default_protocol","http","string")},q=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return a(e.value)?e.value:""},K=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},Y=function(e,t){var n=[];return q.each(e,(function(e){var r=K(e);if(void 0!==e.menu){var i=Y(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},X=function(e){return void 0===e&&(e=G),function(t){return x.from(t).map((function(t){return Y(t,e)}))}},J=function(e){return X(G)(e)},Z=function(e,t){return function(n){return{name:e,type:"listbox",label:t,items:n}}},Q={sanitize:J,sanitizeWith:X,createUi:Z,getValue:G},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)},te=Object.keys,ne=Object.hasOwnProperty,re=function(e,t){for(var n=te(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},ie=function(e){return function(t,n){e[n]=t}},oe=function(e,t,n,r){var i={};return re(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},ae=function(e,t){var n={};return oe(e,t,ie(n),f),n},se=function(e,t){return ne.call(e,t)},ue=function(e,t){return se(e,t)&&void 0!==e[t]&&null!==e[t]},ce=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),le=tinymce.util.Tools.resolve("tinymce.util.URI"),fe=function(e){return e&&"a"===e.nodeName.toLowerCase()},de=function(e){return fe(e)&&!!me(e)},he=function(e,t){if(e.collapsed)return[];var n=e.cloneContents(),r=new ce(n.firstChild,n),i=[],o=n.firstChild;do{t(o)&&i.push(o)}while(o=r.next());return i},pe=function(e){return/^\w+:/i.test(e)},me=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},ve=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],i=function(e){return q.trim(e.sort().join(" "))},o=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===q.inArray(n,e)}))},s=t?o(r):a(r);return s.length>0?i(s):""},ge=function(e){return e.replace(/\uFEFF/g,"")},be=function(e,t){return t=t||e.selection.getNode(),Ce(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},ye=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return ge(n)},we=function(e){return q.grep(e,de).length>0},xe=function(e){return he(e,de).length>0},_e=function(e){var t=e.schema.getTextInlineElements(),n=function(e){return 1===e.nodeType&&!fe(e)&&!se(t,e.nodeName.toLowerCase())},r=he(e.selection.getRng(),n);return 0===r.length},Ce=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},ke=function(e){var t=["title","rel","class","target"];return T(t,(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},Se=function(e,t){return"http"!==t&&"https"!==t||pe(e)?e:t+"://"+e},Oe=function(e,t){var n=ee({},t);if(!(F(e).length>0)&&!1===H(e)){var r=ve(n.rel,"_blank"===n.target);n.rel=r||null}return x.from(n.target).isNone()&&!1===$(e)&&(n.target=L(e)),n.href=Se(n.href,R(e)),n},Ee=function(e,t,n,r){n.each((function(e){se(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},Te=function(e,t,n,r){Ce(t)?Be(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},De=function(e,t,n){var r=e.selection.getNode(),i=be(e,r),o=Oe(e,ke(n));e.undoManager.transact((function(){n.href===t.href&&t.attach(),i?(e.focus(),Ee(e,i,n.text,o)):Te(e,r,n.text,o)}))},Me=function(e){var t=e.dom,n=e.selection,r=n.getBookmark(),i=n.getRng().cloneRange(),o=t.getParent(i.startContainer,"a[href]",e.getBody()),a=t.getParent(i.endContainer,"a[href]",e.getBody());o&&i.setStartBefore(o),a&&i.setEndAfter(a),n.setRng(i),e.execCommand("unlink"),n.moveToBookmark(r)},Ae=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();Ce(t)?ze(e,t):Me(e),e.focus()}))},Ne=function(e){var t=e.class,n=e.href,r=e.rel,i=e.target,o=e.text,a=e.title;return ae({class:t.getOrNull(),href:n,rel:r.getOrNull(),target:i.getOrNull(),text:o.getOrNull(),title:a.getOrNull()},(function(e,t){return!1===u(e)}))},Pe=function(e,t){var n=t.href;return ee(ee({},t),{href:le.isDomSafe(n,"a",e.settings)?n:""})},Ie=function(e,t,n){var r=Pe(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Ne(r)):De(e,t,r)},Re=function(e){e.hasPlugin("rtc",!0)?e.execCommand("unlink"):Ae(e)},ze=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},Be=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var i=e.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},Le=function(e){return ue(e,"items")},$e=function(e,t){return A(t,(function(t){return Le(t)?$e(e,t.items):I(t.value===e,t)}))},Fe=function(e,t,n,r){var i=r[t],o=e.length>0;return void 0!==i?$e(i,n).map((function(t){return{url:{value:t.value,meta:{text:o?e:t.text,attach:f}},text:o?e:t.text}})):x.none()},je=function(e,t){return"link"===t?e.link:"anchor"===t?e.anchor:x.none()},Ve=function(e,t){var n={text:e.text,title:e.title},r=function(e){return I(n.title.length<=0,x.from(e.meta.title).getOr(""))},i=function(e){return I(n.text.length<=0,x.from(e.meta.text).getOr(e.value))},o=function(e){var t=i(e.url),n=r(e.url);return t.isSome()||n.isSome()?x.some(ee(ee({},t.map((function(e){return{text:e}})).getOr({})),n.map((function(e){return{title:e}})).getOr({}))):x.none()},a=function(e,r){var i=je(t,r.name).getOr([]);return Fe(n.text,r.name,i,e)},s=function(e,t){var r=t.name;return"url"===r?o(e()):S(["anchor","link"],r)?a(e(),t):"text"===r||"title"===r?(n[r]=e()[r],x.none()):x.none()};return{onChange:s}},He={init:Ve,getDelta:Fe},We=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ue=tinymce.util.Tools.resolve("tinymce.util.Promise"),qe=function(e,t,n){var r=e.selection.getRng();We.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},Ge=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return n?x.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return ee(ee({},e),{href:"mailto:"+t})}}):x.none()},Ke=function(e,t){return function(n){var r=n.href,i=1===e&&!pe(r)||0===e&&/^\s*www(\.|\d\.)/i.test(r);return i?x.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+t+":// prefix?",preprocess:function(e){return ee(ee({},e),{href:t+"://"+r})}}):x.none()}},Ye=function(e,t){return A([Ge,Ke(R(e),U(e))],(function(e){return e(t)})).fold((function(){return Ue.resolve(t)}),(function(n){return new Ue((function(r){qe(e,n.message,(function(e){r(e?n.preprocess(t):t)}))}))}))},Xe={preprocess:Ye},Je=function(e){var t=e.dom.select("a:not([href])"),n=M(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?x.some([{text:"None",value:""}].concat(n)):x.none()},Ze={getAnchors:Je},Qe=function(e){var t=j(e);return t.length>0?Q.sanitize(t):x.none()},et={getClasses:Qe},tt=tinymce.util.Tools.resolve("tinymce.util.XHR"),nt=function(e){try{return x.some(JSON.parse(e))}catch(t){return x.none()}},rt=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=B(e);return new Ue((function(e){a(n)?tt.send({url:n,success:function(t){return e(nt(t))},error:function(t){return e(x.none())}}):l(n)?n((function(t){return e(x.some(t))})):e(x.from(n))})).then((function(e){return e.bind(Q.sanitizeWith(t)).map((function(e){if(e.length>0){var t=[{text:"None",value:""}];return t.concat(e)}return e}))}))},it={getLinks:rt},ot=function(e,t){var n=F(e);if(n.length>0){var r=N(t,"_blank"),i=!1===H(e),o=function(e){return ve(Q.getValue(e),r)},a=i?Q.sanitizeWith(o):Q.sanitize;return a(n)}return x.none()},at={getRels:ot},st=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ut=function(e){var t=$(e);return s(t)?Q.sanitize(t).orThunk((function(){return x.some(st)})):!1===t?x.none():x.some(st)},ct={getTargets:ut},lt=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?x.some(r):x.none()},ft=function(e,t){var n=e.dom,r=_e(e),i=r?x.some(ye(e.selection,t)):x.none(),o=t?x.some(n.getAttrib(t,"href")):x.none(),a=t?x.from(n.getAttrib(t,"target")):x.none(),s=lt(n,t,"rel"),u=lt(n,t,"class"),c=lt(n,t,"title");return{url:o,text:i,title:c,target:a,rel:s,linkClass:u}},dt=function(e,t){return it.getLinks(e).then((function(n){var r=ft(e,t);return{anchor:r,catalogs:{targets:ct.getTargets(e),rels:at.getRels(e,r.target),classes:et.getClasses(e),anchor:Ze.getAnchors(e),link:n},optNode:x.from(t),flags:{titleEnabled:V(e)}}}))},ht={collect:dt},pt=function(e,t){return function(n){var r=n.getData();if(!r.url.value)return Re(e),void n.close();var i=function(e){return x.from(r[e]).filter((function(n){return!N(t.anchor[e],n)}))},o={href:r.url.value,text:i("text"),target:i("target"),rel:i("rel"),class:i("linkClass"),title:i("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:f};Xe.preprocess(e,o).then((function(t){Ie(e,a,t)})),n.close()}},mt=function(e){var t=be(e);return ht.collect(e,t)},vt=function(e,t){var n=e.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(t).getOr(""),linkClass:n.linkClass.getOr("")}},gt=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],i=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=x.from(L(n)),s=vt(e,a),u=e.catalogs,c=He.init(s,u),l={type:"panel",items:D([r,i,o,P([u.anchor.map(Q.createUi("anchor","Anchors")),u.rels.map(Q.createUi("rel","Rel")),u.targets.map(Q.createUi("target","Open link in...")),u.link.map(Q.createUi("link","Link list")),u.classes.map(Q.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:s,onChange:function(e,t){var n=t.name;c.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},bt=function(e){var t=mt(e);t.then((function(t){var n=pt(e,t);return gt(t,n,e)})).then((function(t){e.windowManager.open(t)}))},yt=function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},wt=function(e){var t=document.createElement("a");t.target="_blank",t.href=e,t.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),yt(t,n)},xt=function(e,t){return e.dom.getParent(t,"a[href]")},_t=function(e){return xt(e,e.selection.getStart())},Ct=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},kt=function(e,t){if(t){var n=me(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else wt(t.href)}},St=function(e){return function(){bt(e)}},Ot=function(e){return function(){kt(e,_t(e))}},Et=function(e){e.on("click",(function(n){var r=xt(e,n.target);r&&t.metaKeyPressed(n)&&(n.preventDefault(),kt(e,r))})),e.on("keydown",(function(t){var n=_t(e);n&&13===t.keyCode&&Ct(t)&&(t.preventDefault(),kt(e,n))}))},Tt=function(e,t){return e.on("NodeChange",t),function(){return e.off("NodeChange",t)}},Dt=function(e){return function(t){var n=function(){return t.setActive(!e.mode.isReadOnly()&&null!==be(e,e.selection.getNode()))};return n(),Tt(e,n)}},Mt=function(e){return function(t){var n=function(){return t.setDisabled(null===be(e,e.selection.getNode()))};return n(),Tt(e,n)}},At=function(e){return function(t){var n=function(t){return we(t)||xe(e.selection.getRng())},r=e.dom.getParents(e.selection.getStart());return t.setDisabled(!n(r)),Tt(e,(function(e){return t.setDisabled(!n(e.parents))}))}},Nt=function(e){e.addCommand("mceLink",(function(){W(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):St(e)()}))},Pt=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},It=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:St(e),onSetup:Dt(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Ot(e),onSetup:Mt(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Re(e)},onSetup:At(e)})},Rt=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Ot(e),onSetup:Mt(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:St(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Re(e)},onSetup:At(e)})},zt=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return we(e.dom.getParents(r,"a"))?t:n}})},Bt=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!be(e,n)),f},r=function(t){var n=be(e),r=_e(e);if(!n&&r){var i=ye(e.selection,n);return x.some(i.length>0?i:t)}return x.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Dt(e)},label:"Link",predicate:function(t){return!!be(e,t)&&z(e)},initValue:function(){var t=be(e);return t?me(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!be(e,n)),Dt(e)(t)},onAction:function(n){var i=n.getValue(),o=r(i),a={href:i,attach:f};Ie(e,a,{href:i,text:o,title:x.none(),rel:x.none(),target:x.none(),class:x.none()}),t(e),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){Re(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){Ot(e)(),t.hide()}}]})};function Lt(){e.add("link",(function(e){It(e),Rt(e),zt(e),Bt(e),Et(e),Nt(e),Pt(e)}))}Lt()})()},bee2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("a38e");function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Object(r["a"])(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},c04e:function(e,t,n){"use strict";var r=n("c65b"),i=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),u=n("b622"),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c098:function(e,t,n){e.exports=n("d4af")},c198:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,i=t.algo,o=[],a=[],s=[],u=[],c=[],l=[],f=[],d=[],h=[],p=[];(function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var i=r^r<<1^r<<2^r<<3^r<<4;i=i>>>8^255&i^99,o[n]=i,a[i]=n;var m=e[n],v=e[m],g=e[v],b=257*e[i]^16843008*i;s[n]=b<<24|b>>>8,u[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,l[n]=b;b=16843009*g^65537*v^257*m^16843008*n;f[i]=b<<24|b>>>8,d[i]=b<<16|b>>>16,h[i]=b<<8|b>>>24,p[i]=b,n?(n=m^e[e[e[g^m]]],r^=e[e[r]]):n=r=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],v=i.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=this._nRounds=n+6,i=4*(r+1),a=this._keySchedule=[],s=0;s<i;s++)s<n?a[s]=t[s]:(l=a[s-1],s%n?n>6&&s%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=l<<8|l>>>24,l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=m[s/n|0]<<24),a[s]=a[s-n]^l);for(var u=this._invKeySchedule=[],c=0;c<i;c++){s=i-c;if(c%4)var l=a[s];else l=a[s-4];u[c]=c<4||s<=4?l:f[o[l>>>24]]^d[o[l>>>16&255]]^h[o[l>>>8&255]]^p[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,u,c,l,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,f,d,h,p,a);n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var u=this._nRounds,c=e[t]^n[0],l=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],h=4,p=1;p<u;p++){var m=r[c>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&d]^n[h++],v=r[l>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^n[h++],g=r[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&l]^n[h++],b=r[d>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&f]^n[h++];c=m,l=v,f=g,d=b}m=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[h++],v=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[h++],g=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^n[h++],b=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^n[h++];e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=b},keySize:8});t.AES=r._createHelper(v)}(),e.AES}))},c1bc:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc;i.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<r;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,u=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,l=s<<16|u<<8|c,f=0;f<4&&a+.75*f<r;f++)o.push(i.charAt(l>>>6*(3-f)&63));var d=i.charAt(64);if(d)while(o.length%4)o.push(d);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,r=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<r.length;a++)i[r.charCodeAt(a)]=a}var s=r.charAt(64);if(s){var u=e.indexOf(s);-1!==u&&(n=u)}return o(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,u=n[e.charCodeAt(a)]>>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return r.create(i,o)}}(),e.enc.Base64url}))},c284:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=104)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},104:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px",backgroundColor:e.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:e.textColor}},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:e.defineBackColor,"stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px",color:e.textColor}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},i=[];r._withStripped=!0;var o={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},a=o,s=n(0),u=Object(s["a"])(a,r,i,!1,null,null,null);u.options.__file="packages/progress/src/progress.vue";var c=u.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},c345:function(e,t,n){"use strict";var r=n("c532"),i=["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"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c3b6:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.StreamCipher,i=t.algo,o=i.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var u=r[i];r[i]=r[o],r[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){t=(t+1)%256,n=(n+e[t])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=r._createHelper(o);var s=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=r._createHelper(s)}(),e.RC4}))},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c430:function(e,t,n){"use strict";e.exports=!1},c513:function(e,t,n){"use strict";var r=n("23e7"),i=n("1a2d"),o=n("d9b5"),a=n("0d51"),s=n("5692"),u=n("0b43"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(c,e))return c[e]}})},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function u(e){return"[object ArrayBuffer]"===i.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){return"[object Date]"===i.call(e)}function m(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function g(e){return"[object Function]"===i.call(e)}function b(e){return h(e)&&g(e.pipe)}function y(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function _(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function C(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=C(e[n],t):e[n]=t}for(var n=0,r=arguments.length;n<r;n++)_(arguments[n],t);return e}function k(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=k(e[n],t):e[n]="object"===typeof t?k({},t):t}for(var n=0,r=arguments.length;n<r;n++)_(arguments[n],t);return e}function S(e,t,n){return _(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}e.exports={isArray:o,isArrayBuffer:u,isBuffer:s,isFormData:c,isArrayBufferView:l,isString:f,isNumber:d,isObject:h,isUndefined:a,isDate:p,isFile:m,isBlob:v,isFunction:g,isStream:b,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:_,merge:C,deepMerge:k,extend:S,trim:w}},c56a:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},c5cc:function(e,t,n){"use strict";var r=n("c65b"),i=n("7c73"),o=n("9112"),a=n("6964"),s=n("b622"),u=n("69f3"),c=n("dc4a"),l=n("ae93").IteratorPrototype,f=n("4754"),d=n("2a62"),h=s("toStringTag"),p="IteratorHelper",m="WrapForValidIterator",v=u.set,g=function(e){var t=u.getterFor(e?m:p);return a(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:f(r,n.done)}catch(i){throw n.done=!0,i}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=c(i,"return");return o?r(o,i):f(void 0,!0)}if(n.inner)try{d(n.inner.iterator,"normal")}catch(a){return d(i,"throw",a)}return i&&d(i,"normal"),f(void 0,!0)}})},b=g(!0),y=g(!1);o(y,h,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?m:p,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,v(this,i)};return r.prototype=t?b:y,r}},c60d:function(e,t,n){"use strict";var r=n("1a2d");e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},c65b:function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(e,t,n){"use strict";var r=n("e330"),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},c6cd:function(e,t,n){"use strict";var r=n("c430"),i=n("cfe9"),o=n("6374"),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.42.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},c6d2:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("c430"),a=n("5e77"),s=n("1626"),u=n("dcc3"),c=n("e163"),l=n("d2bb"),f=n("d44e"),d=n("9112"),h=n("cb2d"),p=n("b622"),m=n("3f8c"),v=n("ae93"),g=a.PROPER,b=a.CONFIGURABLE,y=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=p("iterator"),_="keys",C="values",k="entries",S=function(){return this};e.exports=function(e,t,n,a,p,v,O){u(n,t,a);var E,T,D,M=function(e){if(e===p&&R)return R;if(!w&&e&&e in P)return P[e];switch(e){case _:return function(){return new n(this,e)};case C:return function(){return new n(this,e)};case k:return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",N=!1,P=e.prototype,I=P[x]||P["@@iterator"]||p&&P[p],R=!w&&I||M(p),z="Array"===t&&P.entries||I;if(z&&(E=c(z.call(new e)),E!==Object.prototype&&E.next&&(o||c(E)===y||(l?l(E,y):s(E[x])||h(E,x,S)),f(E,A,!0,!0),o&&(m[A]=S))),g&&p===C&&I&&I.name!==C&&(!o&&b?d(P,"name",C):(N=!0,R=function(){return i(I,this)})),p)if(T={values:M(C),keys:v?R:M(_),entries:M(k)},O)for(D in T)(w||N||!(D in P))&&h(P,D,T[D]);else r({target:t,proto:!0,forced:w||N},T);return o&&!O||P[x]===R||h(P,x,R,{name:p}),m[t]=R,T}},c740:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},c7eb:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d9e2"),n("14d9"),n("fb6a"),n("b0c0"),n("e9f5"),n("7d54"),n("3410"),n("1f68"),n("131a"),n("d3b7"),n("159b");var r=n("53ca");function i(){
  56. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
  57. i=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(t,n,r,i){var o=n&&n.prototype instanceof p?n:p,a=Object.create(o.prototype);return l(a,"_invoke",function(t,n,r){var i=1;return function(o,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===i)throw i=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=3;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?4:2,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=4,r.method="throw",r.arg=c.arg)}}}(t,r,new O(i||[])),!0),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function p(){}function m(){}function v(){}var g={};l(g,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(E([])));y&&y!==n&&o.call(y,s)&&(g=y);var w=v.prototype=p.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,a,s,u){var c=d(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Object(r["a"])(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;l(this,"_invoke",(function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}),!0)}function C(t,n){var r=n.method,i=t.i[r];if(i===e)return n.delegate=null,"throw"===r&&t.i["return"]&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=d(i,t.i,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var a=o.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function k(e){this.tryEntries.push(e)}function S(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function O(e){this.tryEntries=[[-1]],e.forEach(k,this),this.reset(!0)}function E(t){if(null!=t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Object(r["a"])(t)+" is not iterable")}return m.prototype=v,l(w,"constructor",v),l(v,"constructor",m),m.displayName=l(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=E,O.prototype={constructor:O,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var i=n.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o[4],s=this.prev,u=o[1],c=o[2];if(-1===o[0])return r("end"),!1;if(!u&&!c)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=s){if(s<u)return this.method="next",this.arg=e,r(u),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var i=r;break}}i&&("break"===e||"continue"===e)&&i[0]<=t&&t<=i[2]&&(i=null);var o=i?i[4]:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i[2],h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:E(t),r:n,n:r},"next"===this.method&&(this.arg=e),h}},t}},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("d039"),o=n("5899"),a="​…᠎";e.exports=function(e){return i((function(){return!!o[e]()||a[e]()!==a||r&&o[e].name!==e}))}},c901:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},ca84:function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);while(t.length>c)i(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("d039"),a=n("44d2"),s=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cb2d:function(e,t,n){"use strict";var r=n("1626"),i=n("9bf2"),o=n("13d2"),a=n("6374");e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cc12:function(e,t,n){"use strict";var r=n("cfe9"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},cc15:function(e,t,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},cc98:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("4738").CONSTRUCTOR,a=n("d256"),s=n("d066"),u=n("1626"),c=n("cb2d"),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)){var f=s("Promise").prototype["catch"];l["catch"]!==f&&c(l,"catch",f,{unsafe:!0})}},cca6:function(e,t,n){"use strict";var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},cdce:function(e,t,n){"use strict";var r=n("cfe9"),i=n("1626"),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("object"),u=r("array"),c=o(null),l=i("boolean"),f=function(e){return null===e||void 0===e},d=function(e){return!f(e)},h=i("function"),p=i("number"),m=function(){},v=function(e){return function(){return e}},g=function(e){return e},b=v(!1),y=v(!0),w=function(){return x},x=function(){var e=function(e){return e()},t=g,n={fold:function(e,t){return e()},isSome:b,isNone:y,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:t,orThunk:e,map:w,each:m,bind:w,exists:b,forall:y,filter:function(){return w()},toArray:function(){return[]},toString:v("none()")};return n}(),_=function(e){var t=v(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:y,isNone:b,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return _(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:x},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},C=function(e){return null===e||void 0===e?x:_(e)},k={some:_,none:w,from:C},S=Object.keys,O=Object.hasOwnProperty,E=function(e,t){for(var n=S(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},T=function(e){return function(t,n){e[n]=t}},D=function(e,t,n,r){var i={};return E(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},M=function(e,t){var n={};return D(e,t,T(n),m),n},A=function(e,t){return O.call(e,t)},N=function(e,t){return A(e,t)&&void 0!==e[t]&&null!==e[t]},P=Array.prototype.push,I=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!u(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);P.apply(t,e[n])}return t},R=function(e,t){return t>=0&&t<e.length?k.some(e[t]):k.none()},z=function(e){return R(e,0)},B=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return k.none()};"undefined"!==typeof window?window:Function("return this;")();var L=function(e,t,n){if(!(a(n)||l(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},$=function(e,t,n){L(e.dom,t,n)},F=function(e,t){e.dom.removeAttribute(t)},j=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return W(r.childNodes[0])},V=function(e,t){var n=t||document,r=n.createElement(e);return W(r)},H=function(e,t){var n=t||document,r=n.createTextNode(e);return W(r)},W=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},U=function(e,t,n){return k.from(e.dom.elementFromPoint(t,n)).map(W)},q={fromHtml:j,fromTag:V,fromText:H,fromDom:W,fromPoint:U},G=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),K=tinymce.util.Tools.resolve("tinymce.util.Promise"),Y=tinymce.util.Tools.resolve("tinymce.util.URI"),X=tinymce.util.Tools.resolve("tinymce.util.XHR"),J=function(e){return e.getParam("image_dimensions",!0,"boolean")},Z=function(e){return e.getParam("image_advtab",!1,"boolean")},Q=function(e){return e.getParam("image_uploadtab",!0,"boolean")},ee=function(e){return e.getParam("image_prepend_url","","string")},te=function(e){return e.getParam("image_class_list")},ne=function(e){return e.getParam("image_description",!0,"boolean")},re=function(e){return e.getParam("image_title",!1,"boolean")},ie=function(e){return e.getParam("image_caption",!1,"boolean")},oe=function(e){return e.getParam("image_list",!1)},ae=function(e){return d(e.getParam("images_upload_url"))},se=function(e){return d(e.getParam("images_upload_handler"))},ue=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},ce=function(e){return e.getParam("automatic_uploads",!0,"boolean")},le=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},fe=function(e){return new K((function(t){var n=document.createElement("img"),r=function(e){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=le(n.width,n.clientWidth),t=le(n.height,n.clientHeight),i={width:e,height:t};r(K.resolve(i))},n.onerror=function(){r(K.reject("Failed to get image dimensions for: "+e))};var i=n.style;i.visibility="hidden",i.position="fixed",i.bottom=i.left="0px",i.width=i.height="auto",document.body.appendChild(n),n.src=e}))},de=function(e){return e&&(e=e.replace(/px$/,"")),e},he=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},pe=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},me=function(e,t){var n=oe(e);a(n)?X.send({url:n,success:function(e){t(JSON.parse(e))}}):h(n)?n(t):t(n)},ve=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!J(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ge=function(e){return new K((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},be=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},ye=function(e,t){return Y.isDomSafe(t,"img",e.settings)},we=G.DOM,xe=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?de(e.style.marginLeft):""},_e=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?de(e.style.marginTop):""},Ce=function(e){return e.style.borderWidth?de(e.style.borderWidth):""},ke=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},Se=function(e,t){return e.style[t]?e.style[t]:""},Oe=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Ee=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Te=function(e){var t=we.create("figure",{class:"image"});we.insertAfter(t,e),t.appendChild(e),t.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},De=function(e){var t=e.parentNode;we.insertAfter(e,t),we.remove(t)},Me=function(e){Oe(e)?De(e):Te(e)},Ae=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Ne=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=he(r),Ae(e,t)):Ee(e,n,r)}},Pe=function(e,t){return e.style[t]?de(e.style[t]):ke(e,t)},Ie=function(e,t){var n=he(t);e.style.marginLeft=n,e.style.marginRight=n},Re=function(e,t){var n=he(t);e.style.marginTop=n,e.style.marginBottom=n},ze=function(e,t){var n=he(t);e.style.borderWidth=n},Be=function(e,t){e.style.borderStyle=t},Le=function(e){return Se(e,"borderStyle")},$e=function(e){return"FIGURE"===e.nodeName},Fe=function(e){return"IMG"===e.nodeName},je=function(e){return 0===we.getAttrib(e,"alt").length&&"presentation"===we.getAttrib(e,"role")},Ve=function(e){return je(e)?"":ke(e,"alt")},He=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},We=function(e,t){var n=document.createElement("img");return Ee(n,"style",t.style),(xe(n)||""!==t.hspace)&&Ie(n,t.hspace),(_e(n)||""!==t.vspace)&&Re(n,t.vspace),(Ce(n)||""!==t.border)&&ze(n,t.border),(Le(n)||""!==t.borderStyle)&&Be(n,t.borderStyle),e(n.getAttribute("style"))},Ue=function(e,n){var r=document.createElement("img");if(Je(e,t(t({},n),{caption:!1}),r),Ke(r,n.alt,n.isDecorative),n.caption){var i=we.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},qe=function(e,t){return{src:ke(t,"src"),alt:Ve(t),title:ke(t,"title"),width:Pe(t,"width"),height:Pe(t,"height"),class:ke(t,"class"),style:e(ke(t,"style")),caption:Oe(t),hspace:xe(t),vspace:_e(t),border:Ce(t),borderStyle:Se(t,"borderStyle"),isDecorative:je(t)}},Ge=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},Ke=function(e,t,n){if(n){we.setAttrib(e,"role","presentation");var r=q.fromDom(e);$(r,"alt","")}else{if(c(t)){r=q.fromDom(e);F(r,"alt")}else{r=q.fromDom(e);$(r,"alt",t)}"presentation"===we.getAttrib(e,"role")&&we.setAttrib(e,"role","")}},Ye=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Ke(e,n.alt,n.isDecorative)},Xe=function(e,t){return function(n,r,i){e(n,i),Ae(n,t)}},Je=function(e,t,n){var r=qe(e,n);Ge(n,r,t,"caption",(function(e,t,n){return Me(e)})),Ge(n,r,t,"src",Ee),Ge(n,r,t,"title",Ee),Ge(n,r,t,"width",Ne("width",e)),Ge(n,r,t,"height",Ne("height",e)),Ge(n,r,t,"class",Ee),Ge(n,r,t,"style",Xe((function(e,t){return Ee(e,"style",t)}),e)),Ge(n,r,t,"hspace",Xe(Ie,e)),Ge(n,r,t,"vspace",Xe(Re,e)),Ge(n,r,t,"border",Xe(ze,e)),Ge(n,r,t,"borderStyle",Xe(Be,e)),Ye(n,r,t)},Ze=function(e,t){var n=e.dom.styles.parse(t),r=pe(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},Qe=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||be(t))?null:t},et=function(e,t){var n=e.dom,r=M(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),i=n.getParent(t.parentNode,(function(e){return N(r,e.nodeName)}),e.getBody());return i?n.split(i,t):t},tt=function(e){var t=Qe(e);return t?qe((function(t){return Ze(e,t)}),t):He()},nt=function(e,t){var n=Ue((function(t){return Ze(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),$e(r)){var i=et(e,r);e.selection.select(i)}else e.selection.select(r)},rt=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},it=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},ot=function(e,t){var n=Qe(e);if(Je((function(t){return Ze(e,t)}),t,n),rt(e,n),$e(n.parentNode)){var r=n.parentNode;et(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),ve(e,t,n)},at=function(e,n){var r=n.src;return t(t({},n),{src:ye(e,r)?r:""})},st=function(e,n){var r=Qe(e);if(r){var i=qe((function(t){return Ze(e,t)}),r),o=t(t({},i),n),a=at(e,o);o.src?ot(e,a):it(e,r)}else n.src&&nt(e,t(t({},He()),n))},ut=function(e,t){var n=s(e)&&s(t);return n?lt(e,t):t},ct=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)A(o,a)&&(r[a]=e(r[a],o[a]))}return r}},lt=ct(ut),ft=function(e){return e.length>0},dt=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),ht=tinymce.util.Tools.resolve("tinymce.util.Tools"),pt=function(e){return a(e.value)?e.value:""},mt=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},vt=function(e,t){var n=[];return ht.each(e,(function(e){var r=mt(e);if(void 0!==e.menu){var i=vt(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},gt=function(e){return void 0===e&&(e=pt),function(t){return t?k.from(t).map((function(t){return vt(t,e)})):k.none()}},bt=function(e){return gt(pt)(e)},yt=function(e){return A(e,"items")},wt=function(e,t){return B(e,(function(e){return yt(e)?wt(e.items,t):e.value===t?k.some(e):k.none()}))},xt=function(e,t){return e.bind((function(e){return wt(e,t)}))},_t={sanitizer:gt,sanitize:bt,findEntry:xt},Ct=function(e){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"}]}]}]}},kt={makeTab:Ct},St=function(e){var t=_t.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new K((function(n){me(e,(function(e){n(t(e).map((function(e){return I([[{text:"None",value:""}],e])})))}))})),r=_t.sanitize(te(e)),i=Z(e),o=Q(e),s=ae(e),u=se(e),c=tt(e),l=ne(e),f=re(e),d=J(e),h=ie(e),p=ue(e),m=ce(e),v=k.some(ee(e)).filter((function(e){return a(e)&&e.length>0}));return n.then((function(e){return{image:c,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:s,hasUploadHandler:u,hasDescription:l,hasImageTitle:f,hasDimensions:d,hasImageCaption:h,prependURL:v,hasAccessibilityOptions:p,automaticUploads:m}}))},Ot=function(e){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),i={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},o={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},s={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},u=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),c={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},l=function(e){return e?{type:"grid",columns:2}:{type:"panel"}};return I([[n],r.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[s]:[],e.hasDescription?[i]:[],e.hasImageTitle?[o]:[],e.hasDimensions?[a]:[],[t(t({},l(e.classList.isSome()&&e.hasImageCaption)),{items:I([u.toArray(),e.hasImageCaption?[c]:[]])})]])},Et=function(e){return{title:"General",name:"general",items:Ot(e)}},Tt={makeTab:Et,makeItems:Ot},Dt=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},Mt={makeTab:Dt},At=function(e){return{prevImage:_t.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Nt=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Pt=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},It=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?k.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?k.some(e+t):k.none()}))},Rt=function(e,t){var n=t.getData();It(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},zt=function(e,t,n){e.hasDescription&&a(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&a(n.title)&&(t.title=n.title),e.hasDimensions&&(a(n.width)&&(t.dimensions.width=n.width),a(n.height)&&(t.dimensions.height=n.height)),a(n.class)&&_t.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&l(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(a(n.style)&&(t.style=n.style),a(n.vspace)&&(t.vspace=n.vspace),a(n.border)&&(t.border=n.border),a(n.hspace)&&(t.hspace=n.hspace),a(n.borderstyle)&&(t.borderstyle=n.borderstyle))},Bt=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=lt({},n);zt(e,i,r),t.setData(i)}},Lt=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||(ft(o)?e.imageSize(o).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){return console.error(e)})):r.setData({dimensions:{width:"",height:""}}))},$t=function(e,t,n){var r=n.getData(),i=_t.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map((function(e){return e.value})).getOr("")})},Ft=function(e,t,n,r){Rt(t,r),Bt(t,r),Lt(e,t,n,r),$t(t,n,r)},jt=function(e,t,n,r){var i=r.getData(),o=_t.findEntry(t.imageList,i.images);o.each((function(e){var t=""===i.alt||n.prevImage.map((function(e){return e.text===i.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=o,Ft(e,t,n,r)},Vt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?de(String(e["margin-top"])):""},Ht=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?de(String(e["margin-right"])):""},Wt=function(e){return e["border-width"]?de(String(e["border-width"])):""},Ut=function(e){return e["border-style"]?String(e["border-style"]):""},qt=function(e,t,n){return t(e(t(n)))},Gt=function(e,t,n){var r=pe(e(n.style)),i=lt({},n);return i.vspace=Vt(r),i.hspace=Ht(r),i.border=Wt(r),i.borderstyle=Ut(r),i.style=qt(e,t,r),i},Kt=function(e,t){var n=t.getData(),r=Gt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Yt=function(e,t,n){var r=lt(Nt(t.image),n.getData()),i=We(e.normalizeCss,Pt(r,!1));n.setData({style:i})},Xt=function(e,t,n,r){var i=r.getData();r.block("Uploading image"),z(i.fileinput).fold((function(){r.unblock()}),(function(i){var o=URL.createObjectURL(i),a=function(){r.unblock(),URL.revokeObjectURL(o)},s=function(i){r.setData({src:{value:i,meta:{}}}),r.showTab("general"),Ft(e,t,n,r)};ge(i).then((function(n){var u=e.createBlobCache(i,o,n);t.automaticUploads?e.uploadImage(u).then((function(e){s(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(u),s(u.blobUri()),r.unblock())}))}))},Jt=function(e,t,n){return function(r,i){"src"===i.name?Ft(e,t,n,r):"images"===i.name?jt(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?Kt(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?Yt(e,t,r):"fileinput"===i.name?Xt(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Zt=function(e){return function(){e.open=!1}},Qt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:I([[Tt.makeTab(e)],e.hasAdvTab?[kt.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[Mt.makeTab(e)]:[]])};return t}var n={type:"panel",items:Tt.makeItems(e)};return n},en=function(e){return function(t){var n=At(t);return{title:"Insert/Edit Image",size:"normal",body:Qt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Nt(t.image),onSubmit:e.onSubmit(t),onChange:Jt(e,t,n),onClose:Zt(n)}}},tn=function(e){return function(t){return function(n){var r=lt(Nt(t.image),n.getData());e.execCommand("mceUpdateImage",!1,Pt(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(e){return function(t){return ye(e,t)?fe(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}})):K.resolve({width:"",height:""})}},rn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},on=function(e){return function(t){e.editorUpload.blobCache.add(t)}},an=function(e){return function(t){e.windowManager.alert(t)}},sn=function(e){return function(t){return Ze(e,t)}},un=function(e){return function(t){return e.dom.parseStyle(t)}},cn=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},ln=function(e){return function(t){return dt(e).upload([t],!1).then((function(e){return 0===e.length?K.reject("Failed to upload image"):!1===e[0].status?K.reject(e[0].error.message):e[0]}))}},fn=function(e){var t={onSubmit:tn(e),imageSize:nn(e),addToBlobCache:on(e),createBlobCache:rn(e),alertErr:an(e),normalizeCss:sn(e),parseStyle:un(e),serializeStyle:cn(e),uploadImage:ln(e)},n=function(){St(e).then(en(t)).then(e.windowManager.open)};return{open:n}},dn=function(e){e.addCommand("mceImage",fn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return st(e,n)}))}))},hn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},pn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var i=t[n];hn(i)&&(i.attr("contenteditable",e?"false":null),ht.each(i.getAll("figcaption"),r))}}},mn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",pn(!0)),e.serializer.addNodeFilter("figure",pn(!1))}))},vn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:fn(e).open,onSetup:function(t){return t.setActive(d(Qe(e))),e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:fn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return $e(e)||Fe(e)&&!be(e)?["image"]:[]}})};function gn(){e.add("image",(function(e){mn(e),vn(e),dn(e)}))}gn()})()},cdf9:function(e,t,n){"use strict";var r=n("825a"),i=n("861d"),o=n("f069");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},ce7a:function(e,t,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function u(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=u(s);c.Axios=o,c.create=function(e){return u(a(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),e.exports=c,e.exports.default=c},cfe9:function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},d010:function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(i){var o=i.$options.componentName;o===e?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,i=r.$options.componentName;while(r&&(!i||i!==e))r=r.$parent,r&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){"use strict";var r=n("cfe9"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d16a:function(e,t,n){var r=n("fc5e"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d256:function(e,t,n){"use strict";var r=n("cfe9");e.exports=r.Promise},d28b:function(e,t,n){"use strict";var r=n("e065");r("iterator")},d2bb:function(e,t,n){"use strict";var r=n("7282"),i=n("861d"),o=n("1d80"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},d397:function(e,t,n){"use strict";function r(e){return void 0!==e&&null!==e}function i(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=r,t.isKorean=i},d3b7:function(e,t,n){"use strict";var r=n("00ee"),i=n("cb2d"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function u(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}u.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=u},d4ec:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("d9e2");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},d6d6:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},d6e6:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("3252"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Hasher,i=t.x64,o=i.Word,a=i.WordArray,s=t.algo;function u(){return o.create.apply(o,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],l=[];(function(){for(var e=0;e<80;e++)l[e]=u()})();var f=s.SHA512=r.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],f=n[6],d=n[7],h=r.high,p=r.low,m=i.high,v=i.low,g=o.high,b=o.low,y=a.high,w=a.low,x=s.high,_=s.low,C=u.high,k=u.low,S=f.high,O=f.low,E=d.high,T=d.low,D=h,M=p,A=m,N=v,P=g,I=b,R=y,z=w,B=x,L=_,$=C,F=k,j=S,V=O,H=E,W=T,U=0;U<80;U++){var q,G,K=l[U];if(U<16)G=K.high=0|e[t+2*U],q=K.low=0|e[t+2*U+1];else{var Y=l[U-15],X=Y.high,J=Y.low,Z=(X>>>1|J<<31)^(X>>>8|J<<24)^X>>>7,Q=(J>>>1|X<<31)^(J>>>8|X<<24)^(J>>>7|X<<25),ee=l[U-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=l[U-7],ae=oe.high,se=oe.low,ue=l[U-16],ce=ue.high,le=ue.low;q=Q+se,G=Z+ae+(q>>>0<Q>>>0?1:0),q+=ie,G=G+re+(q>>>0<ie>>>0?1:0),q+=le,G=G+ce+(q>>>0<le>>>0?1:0),K.high=G,K.low=q}var fe=B&$^~B&j,de=L&F^~L&V,he=D&A^D&P^A&P,pe=M&N^M&I^N&I,me=(D>>>28|M<<4)^(D<<30|M>>>2)^(D<<25|M>>>7),ve=(M>>>28|D<<4)^(M<<30|D>>>2)^(M<<25|D>>>7),ge=(B>>>14|L<<18)^(B>>>18|L<<14)^(B<<23|L>>>9),be=(L>>>14|B<<18)^(L>>>18|B<<14)^(L<<23|B>>>9),ye=c[U],we=ye.high,xe=ye.low,_e=W+be,Ce=H+ge+(_e>>>0<W>>>0?1:0),ke=(_e=_e+de,Ce=Ce+fe+(_e>>>0<de>>>0?1:0),_e=_e+xe,Ce=Ce+we+(_e>>>0<xe>>>0?1:0),_e=_e+q,Ce=Ce+G+(_e>>>0<q>>>0?1:0),ve+pe),Se=me+he+(ke>>>0<ve>>>0?1:0);H=j,W=V,j=$,V=F,$=B,F=L,L=z+_e|0,B=R+Ce+(L>>>0<z>>>0?1:0)|0,R=P,z=I,P=A,I=N,A=D,N=M,M=_e+ke|0,D=Ce+Se+(M>>>0<_e>>>0?1:0)|0}p=r.low=p+M,r.high=h+D+(p>>>0<M>>>0?1:0),v=i.low=v+N,i.high=m+A+(v>>>0<N>>>0?1:0),b=o.low=b+I,o.high=g+P+(b>>>0<I>>>0?1:0),w=a.low=w+z,a.high=y+R+(w>>>0<z>>>0?1:0),_=s.low=_+L,s.high=x+B+(_>>>0<L>>>0?1:0),k=u.low=k+F,u.high=C+$+(k>>>0<F>>>0?1:0),O=f.low=O+V,f.high=S+j+(O>>>0<V>>>0?1:0),T=d.low=T+W,d.high=E+H+(T>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process();var i=this._hash.toX32();return i},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(f),t.HmacSHA512=r._createHmacHelper(f)}(),e.SHA512}))},d784:function(e,t,n){"use strict";n("ac1f");var r=n("c65b"),i=n("cb2d"),o=n("9263"),a=n("d039"),s=n("b622"),u=n("9112"),c=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,f){var d=s(e),h=!a((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),p=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!h||!p||n){var m=/./[d],v=t(d,""[e],(function(e,t,n,i,a){var s=t.exec;return s===o||s===l.exec?h&&!a?{done:!0,value:r(m,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,v[0]),i(l,d,v[1])}f&&u(l[d],"sham",!0)}},d7d1:function(e,t,n){"use strict";var r;(function(i){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",u="\\d{3}",c="\\d{4}",l="[^\\s]+",f=/\[([^]*?)\]/gm,d=function(){};function h(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}function m(e){return function(t,n,r){var i=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)}}function v(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b=["January","February","March","April","May","June","July","August","September","October","November","December"],y=p(b,3),w=p(g,3);o.i18n={dayNamesShort:w,dayNames:g,monthNamesShort:y,monthNames:b,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var x={D:function(e){return e.getDay()},DD:function(e){return v(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return v(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return v(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return v(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return v(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return v(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return v(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return v(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return v(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return v(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return v(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+v(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},_={d:[s,function(e,t){e.day=t}],Do:[s+l,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?r-1:r)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[c,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[u,function(e,t){e.millisecond=t}],D:[s,d],ddd:[l,d],MMM:[l,m("monthNamesShort")],MMMM:[l,m("monthNames")],a:[l,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,r=(t+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};_.dd=_.d,_.dddd=_.ddd,_.DD=_.D,_.mm=_.m,_.hh=_.H=_.HH=_.h,_.MM=_.M,_.ss=_.s,_.A=_.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(e,t,n){var r=n||o.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks["default"];var i=[];return t=t.replace(f,(function(e,t){return i.push(t),"@@@"})),t=t.replace(a,(function(t){return t in x?x[t](e,r):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(e,t,n){var r=n||o.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return null;var i={},s=[],u=[];t=t.replace(f,(function(e,t){return u.push(t),"@@@"}));var c=h(t).replace(a,(function(e){if(_[e]){var t=_[e];return s.push(t[1]),"("+t[0]+")"}return e}));c=c.replace(/@@@/g,(function(){return u.shift()}));var l=e.match(new RegExp(c,"i"));if(!l)return null;for(var d=1;d<l.length;d++)s[d-1](i,l[d],r);var p,m=new Date;return!0===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12===+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||m.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||m.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},e.exports?e.exports=o:(r=function(){return o}.call(t,n,t,e),void 0===r||(e.exports=r))})()},d81d:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=o("map");r({target:"Array",proto:!0,forced:!a},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},d86b:function(e,t,n){"use strict";var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d940:function(e,t,n){"use strict";t.__esModule=!0,t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var r=n("d7d1"),i=a(r),o=n("4897");function a(e){return e&&e.__esModule?e:{default:e}}var s=["sun","mon","tue","wed","thu","fri","sat"],u=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],c=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},l=t.getI18nSettings=function(){return{dayNamesShort:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),dayNames:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),monthNamesShort:u.map((function(e){return(0,o.t)("el.datepicker.months."+e)})),monthNames:u.map((function(e,t){return(0,o.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},f=t.toDate=function(e){return d(e)?new Date(e):null},d=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},h=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=f(e),e?i.default.format(e,t||"yyyy-MM-dd",l()):""},t.parseDate=function(e,t){return i.default.parse(e,t||"yyyy-MM-dd",l())}),p=t.getDayCountOfMonth=function(e,t){return isNaN(+t)?31:new Date(e,+t+1,0).getDate()},m=(t.getDayCountOfYear=function(e){var t=e%400===0||e%100!==0&&e%4===0;return t?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),r=n.getDay();return m(n,0===r?7:r)},t.getWeekNumber=function(e){if(!d(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(c(t[0],t[1]))})),n.length)for(var r=0;r<24;r++)t[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)t[i]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return g(t).map((function(e,n){return r-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return g(n).map((function(e,t){return t+1}))};function v(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var r=e[0],i=e[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),u=i.getMinutes();o===t&&s!==t?v(n,a,60,!0):o===t&&s===t?v(n,a,u+1,!0):o!==t&&s===t?v(n,0,u+1,!0):o<t&&s>t&&v(n,0,60,!0)})):v(n,0,60,!0),n};var g=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},b=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},y=t.modifyTime=function(e,t,n,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,e.getMilliseconds())},w=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=h(t,"HH:mm:ss"),y(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var r=function(e){return i.default.parse(i.default.format(e,n),n)},o=r(e),a=t.map((function(e){return e.map(r)}));if(a.some((function(e){return o>=e[0]&&o<=e[1]})))return e;var s=a[0][0],u=a[0][0];a.forEach((function(e){s=new Date(Math.min(e[0],s)),u=new Date(Math.max(e[1],s))}));var c=o<s?s:u;return b(c,e.getFullYear(),e.getMonth(),e.getDate())}),x=(t.timeWithinRange=function(e,t,n){var r=w(e,t,n);return r.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var r=Math.min(e.getDate(),p(t,n));return b(e,t,n,r)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?x(e,t-1,11):x(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?x(e,t+1,0):x(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return x(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return x(e,n+t,r)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},d9b5:function(e,t,n){"use strict";var r=n("d066"),i=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},d9e2:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",u=i[s],c=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=a(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},f=function(e,t){if(u&&u[e]){var n={};n[e]=a(s+"."+e,t,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(e){return function(t){return o(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),l("URIError",(function(e){return function(t){return o(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},d9f5:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("c65b"),a=n("e330"),s=n("c430"),u=n("83ab"),c=n("04f8"),l=n("d039"),f=n("1a2d"),d=n("3a9b"),h=n("825a"),p=n("fc6a"),m=n("a04b"),v=n("577e"),g=n("5c6c"),b=n("7c73"),y=n("df75"),w=n("241c"),x=n("057f"),_=n("7418"),C=n("06cf"),k=n("9bf2"),S=n("37e8"),O=n("d1e7"),E=n("cb2d"),T=n("edd0"),D=n("5692"),M=n("f772"),A=n("d012"),N=n("90e3"),P=n("b622"),I=n("e538"),R=n("e065"),z=n("57b9"),B=n("d44e"),L=n("69f3"),$=n("b727").forEach,F=M("hidden"),j="Symbol",V="prototype",H=L.set,W=L.getterFor(j),U=Object[V],q=i.Symbol,G=q&&q[V],K=i.RangeError,Y=i.TypeError,X=i.QObject,J=C.f,Z=k.f,Q=x.f,ee=O.f,te=a([].push),ne=D("symbols"),re=D("op-symbols"),ie=D("wks"),oe=!X||!X[V]||!X[V].findChild,ae=function(e,t,n){var r=J(U,t);r&&delete U[t],Z(e,t,n),r&&e!==U&&Z(U,t,r)},se=u&&l((function(){return 7!==b(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?ae:Z,ue=function(e,t){var n=ne[e]=b(G);return H(n,{type:j,tag:e,description:t}),u||(n.description=t),n},ce=function(e,t,n){e===U&&ce(re,t,n),h(e);var r=m(t);return h(n),f(ne,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(f(e,F)||Z(e,F,g(1,b(null))),e[F][r]=!0),se(e,r,n)):Z(e,r,n)},le=function(e,t){h(e);var n=p(t),r=y(n).concat(me(n));return $(r,(function(t){u&&!o(de,n,t)||ce(e,t,n[t])})),e},fe=function(e,t){return void 0===t?b(e):le(b(e),t)},de=function(e){var t=m(e),n=o(ee,this,t);return!(this===U&&f(ne,t)&&!f(re,t))&&(!(n||!f(this,t)||!f(ne,t)||f(this,F)&&this[F][t])||n)},he=function(e,t){var n=p(e),r=m(t);if(n!==U||!f(ne,r)||f(re,r)){var i=J(n,r);return!i||!f(ne,r)||f(n,F)&&n[F][r]||(i.enumerable=!0),i}},pe=function(e){var t=Q(p(e)),n=[];return $(t,(function(e){f(ne,e)||f(A,e)||te(n,e)})),n},me=function(e){var t=e===U,n=Q(t?re:p(e)),r=[];return $(n,(function(e){!f(ne,e)||t&&!f(U,e)||te(r,ne[e])})),r};c||(q=function(){if(d(G,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=N(e),n=function(e){var r=void 0===this?i:this;r===U&&o(n,re,e),f(r,F)&&f(r[F],t)&&(r[F][t]=!1);var a=g(1,e);try{se(r,t,a)}catch(s){if(!(s instanceof K))throw s;ae(r,t,a)}};return u&&oe&&se(U,t,{configurable:!0,set:n}),ue(t,e)},G=q[V],E(G,"toString",(function(){return W(this).tag})),E(q,"withoutSetter",(function(e){return ue(N(e),e)})),O.f=de,k.f=ce,S.f=le,C.f=he,w.f=x.f=pe,_.f=me,I.f=function(e){return ue(P(e),e)},u&&(T(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||E(U,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),$(y(ie),(function(e){R(e)})),r({target:j,stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:fe,defineProperty:ce,defineProperties:le,getOwnPropertyDescriptor:he}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pe}),z(),B(q,j),A[F]=!0},dbb4:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),u=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,c=o(r),l={},f=0;while(c.length>f)n=i(r,t=c[f++]),void 0!==n&&u(l,t,n);return l}})},dc4a:function(e,t,n){"use strict";var r=n("59ed"),i=n("7234");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},dca8:function(e,t,n){"use strict";var r=n("23e7"),i=n("bb2f"),o=n("d039"),a=n("861d"),s=n("f183").onFreeze,u=Object.freeze,c=o((function(){u(1)}));r({target:"Object",stat:!0,forced:c,sham:!i},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},dcc3:function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,l,!1,!0),s[l]=u,e}},dcdc:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=91)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},91:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckbox",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},u=s,c=n(0),l=Object(c["a"])(u,r,i,!1,null,null,null);l.options.__file="packages/checkbox/src/checkbox.vue";var f=l.exports;f.install=function(e){e.component(f.name,f)};t["default"]=f}})},ddb0:function(e,t,n){"use strict";var r=n("cfe9"),i=n("fdbc"),o=n("785a"),a=n("e260"),s=n("9112"),u=n("d44e"),c=n("b622"),l=c("iterator"),f=a.values,d=function(e,t){if(e){if(e[l]!==f)try{s(e,l,f)}catch(r){e[l]=f}if(u(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var h in i)d(r[h]&&r[h].prototype,h);d(o,"DOMTokenList")},df2f:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(r<<5|r>>>27)+u+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,u=s,s=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),e.SHA1}))},df75:function(e,t,n){"use strict";var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},dfe5:function(e,t){},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("cfe9"),a=n("e330"),s=n("1a2d"),u=n("1626"),c=n("3a9b"),l=n("577e"),f=n("edd0"),d=n("e893"),h=o.Symbol,p=h&&h.prototype;if(i&&u(h)&&(!("description"in p)||void 0!==h().description)){var m={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};d(v,h),v.prototype=p,p.constructor=v;var g="Symbol(description detection)"===String(h("description detection")),b=a(p.valueOf),y=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),_=a("".slice);f(p,"description",{configurable:!0,get:function(){var e=b(this);if(s(m,e))return"";var t=y(e),n=g?_(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},e065:function(e,t,n){"use strict";var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},e163:function(e,t,n){"use strict";var r=n("1a2d"),i=n("1626"),o=n("7b0b"),a=n("f772"),s=n("e177"),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(r(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},e177:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e198:function(e,t,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("9bf2").f,u=n("c6d2"),c=n("4754"),l=n("c430"),f=n("83ab"),d="Array Iterator",h=a.set,p=a.getterFor(d);e.exports=u(Array,"Array",(function(e,t){h(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(v){}},e267:function(e,t,n){"use strict";var r=n("e330"),i=n("e8b5"),o=n("1626"),a=n("c6b6"),s=n("577e"),u=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var c=e[r];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||u(n,s(c))}var l=n.length,f=!0;return function(e,t){if(f)return f=!1,t;if(i(this))return t;for(var r=0;r<l;r++)if(n[r]===e)return t}}}},e330:function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},e34a:function(e,t,n){var r=n("8b1a")("meta"),i=n("7a41"),o=n("9c0e"),a=n("1a14").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("4b8b")((function(){return u(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},h=function(e){return c&&p.NEED&&u(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},e391:function(e,t,n){"use strict";var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e439:function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),u=!s||i((function(){a(1)}));r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e444:function(e,t){e.exports=!0},e450:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},2:function(e,t){e.exports=n("5924")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},30:function(e,t,n){"use strict";var r=n(2),i=n(3);t["a"]={bind:function(e,t,n){var o=null,a=void 0,s=Object(i["isMac"])()?100:200,u=function(){return n.context[t.expression].apply()},c=function(){Date.now()-a<s&&u(),clearInterval(o),o=null};Object(r["on"])(e,"mousedown",(function(e){0===e.button&&(a=Date.now(),Object(r["once"])(document,"mouseup",c),clearInterval(o),o=setInterval(u,s))}))}}},87:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},i=[];r._withStripped=!0;var o=n(10),a=n.n(o),s=n(22),u=n.n(s),c=n(30),l={name:"ElInputNumber",mixins:[u()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:c["a"]},components:{ElInput:a.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},f=l,d=n(0),h=Object(d["a"])(f,r,i,!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var p=h.exports;p.install=function(e){e.component(p.name,p)};t["default"]=p}})},e452:function(e,t,n){"use strict";t.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(e){if(!r.Utils.isFocusable(e))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},r.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=r.Utils},e507:function(e,t,n){var r=n("512c");r(r.S+r.F,"Object",{assign:n("072d")})},e538:function(e,t,n){"use strict";var r=n("b622");t.f=r},e562:function(e,t,n){(function(t){(function(){"use strict";var n=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},i=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},o=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},s=a((function(e,t){return e===t})),u=s,c=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e.eq(t[i],n[i]))return!1;return!0}))},l=function(e,t){return o(c(e),(function(e){return i(e,t)}))},f=function(e){return a((function(t,n){var r=Object.keys(t),i=Object.keys(n);if(!l(u).eq(r,i))return!1;for(var o=r.length,a=0;a<o;a++){var s=r[a];if(!e.eq(t[s],n[s]))return!1}return!0}))},d=a((function(e,t){if(e===t)return!0;var i=n(e),o=n(t);return i===o&&(r(i)?e===t:"array"===i?c(d).eq(e,t):"object"===i&&f(d).eq(e,t))})),h=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},p=function(e){return function(t){return h(t)===e}},m=function(e){return function(t){return typeof t===e}},v=function(e){return function(t){return e===t}},g=p("string"),b=p("object"),y=p("array"),w=v(null),x=m("boolean"),_=v(void 0),C=function(e){return null===e||void 0===e},k=function(e){return!C(e)},S=m("function"),O=m("number"),E=function(){},T=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},D=function(e,t){return function(n){return e(t(n))}},M=function(e){return function(){return e}},A=function(e){return e},N=function(e,t){return e===t};function P(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var I=function(e){return function(t){return!e(t)}},R=function(e){return function(){throw new Error(e)}},z=function(e){return e()},B=function(e){e()},L=M(!1),$=M(!0),F=function(){return j},j=function(){var e=function(e){return e()},t=A,n={fold:function(e,t){return e()},isSome:L,isNone:$,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:M(null),getOrUndefined:M(void 0),or:t,orThunk:e,map:F,each:E,bind:F,exists:L,forall:$,filter:function(){return F()},toArray:function(){return[]},toString:M("none()")};return n}(),V=function(e){var t=M(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:$,isNone:L,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return V(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:j},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},H=function(e){return null===e||void 0===e?j:V(e)},W={some:V,none:F,from:H},U=Array.prototype.slice,q=Array.prototype.indexOf,G=Array.prototype.push,K=function(e,t){return q.call(e,t)},Y=function(e,t){var n=K(e,t);return-1===n?W.none():W.some(n)},X=function(e,t){return K(e,t)>-1},J=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},Z=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},Q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},ee=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},te=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},ne=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},re=function(e,t,n){return ee(e,(function(e,r){n=t(n,e,r)})),n},ie=function(e,t,n){return Q(e,(function(e,r){n=t(n,e,r)})),n},oe=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return W.some(o);if(n(o,r))break}return W.none()},ae=function(e,t){return oe(e,t,L)},se=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return W.some(n)}return W.none()},ue=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!y(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);G.apply(t,e[n])}return t},ce=function(e,t){return ue(Z(e,t))},le=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},fe=function(e){var t=U.call(e,0);return t.reverse(),t},de=function(e,t){return ne(e,(function(e){return!X(t,e)}))},he=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},pe=function(e,t){var n=U.call(e,0);return n.sort(t),n},me=function(e,t){return t>=0&&t<e.length?W.some(e[t]):W.none()},ve=function(e){return me(e,0)},ge=function(e){return me(e,e.length-1)},be=S(Array.from)?Array.from:function(e){return U.call(e)},ye=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return W.none()},we=Object.keys,xe=Object.hasOwnProperty,_e=function(e,t){for(var n=we(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Ce=function(e,t){return ke(e,(function(e,n){return{k:n,v:t(e,n)}}))},ke=function(e,t){var n={};return _e(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Se=function(e){return function(t,n){e[n]=t}},Oe=function(e,t,n,r){var i={};return _e(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Ee=function(e,t){var n={},r={};return Oe(e,t,Se(n),Se(r)),{t:n,f:r}},Te=function(e,t){var n={};return Oe(e,t,Se(n),E),n},De=function(e,t){var n=[];return _e(e,(function(e,r){n.push(t(e,r))})),n},Me=function(e){return De(e,A)},Ae=function(e,t){return Ne(e,t)?W.from(e[t]):W.none()},Ne=function(e,t){return xe.call(e,t)},Pe=function(e,t){return Ne(e,t)&&void 0!==e[t]&&null!==e[t]},Ie=function(e,t,n){return void 0===n&&(n=d),f(n).eq(e,t)},Re=Array.isArray,ze=function(e){if(Re(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},Be=function(e,t,n){var r,i;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(Ne(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Le=function(e,t){var n=[];return Be(e,(function(r,i){n.push(t(r,i,e))})),n},$e=function(e,t){var n=[];return Be(e,(function(r,i){t&&!t(r,i,e)||n.push(r)})),n},Fe=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},je=function(e,t,n,r){for(var i=_(n)?e[0]:n,o=0;o<e.length;o++)i=t.call(r,i,e[o],o);return i},Ve=function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1},He=function(e){return e[e.length-1]},We=function(){return We=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},We.apply(this,arguments)};function Ue(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function qe(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var Ge=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},Ke=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),c=o||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!c&&!u&&!l;return{isiPad:M(i),isiPhone:M(o),isTablet:M(u),isPhone:M(c),isTouch:M(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:M(l),isDesktop:M(f)}},Ye=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Xe=function(e,t){var n=Ye(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Qe(r(1),r(2))},Je=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Ze():Xe(e,n)},Ze=function(){return Qe(0,0)},Qe=function(e,t){return{major:e,minor:t}},et={nu:Qe,detect:Je,unknown:Ze},tt=function(e,t){return ye(t.brands,(function(t){var n=t.brand.toLowerCase();return ae(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:et.nu(parseInt(t.version,10),0)}}))}))},nt=function(e,t){var n=String(t).toLowerCase();return ae(e,(function(e){return e.search(n)}))},rt=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},it=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ot=function(e,t){return e.substring(t)},at=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},st=function(e,t){return ct(e,t)?ot(e,t.length):e},ut=function(e,t){return-1!==e.indexOf(t)},ct=function(e,t){return at(e,t,0)},lt=function(e){return function(t){return t.replace(e,"")}},ft=lt(/^\s+|\s+$/g),dt=lt(/^\s+/g),ht=lt(/\s+$/g),pt=function(e){return e.length>0},mt=function(e){return!pt(e)},vt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,gt=function(e){return function(t){return ut(t,e)}},bt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ut(e,"edge/")&&ut(e,"chrome")&&ut(e,"safari")&&ut(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,vt],search:function(e){return ut(e,"chrome")&&!ut(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ut(e,"msie")||ut(e,"trident")}},{name:"Opera",versionRegexes:[vt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:gt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:gt("firefox")},{name:"Safari",versionRegexes:[vt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ut(e,"safari")||ut(e,"mobile/"))&&ut(e,"applewebkit")}}],yt=[{name:"Windows",search:gt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ut(e,"iphone")||ut(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:gt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:gt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:gt("linux"),versionRegexes:[]},{name:"Solaris",search:gt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:gt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:gt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],wt={browsers:M(bt),oses:M(yt)},xt="Edge",_t="Chrome",Ct="IE",kt="Opera",St="Firefox",Ot="Safari",Et=function(){return Tt({current:void 0,version:et.unknown()})},Tt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(xt),isChrome:r(_t),isIE:r(Ct),isOpera:r(kt),isFirefox:r(St),isSafari:r(Ot)}},Dt={unknown:Et,nu:Tt,edge:M(xt),chrome:M(_t),ie:M(Ct),opera:M(kt),firefox:M(St),safari:M(Ot)},Mt="Windows",At="iOS",Nt="Android",Pt="Linux",It="OSX",Rt="Solaris",zt="FreeBSD",Bt="ChromeOS",Lt=function(){return $t({current:void 0,version:et.unknown()})},$t=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Mt),isiOS:r(At),isAndroid:r(Nt),isOSX:r(It),isLinux:r(Pt),isSolaris:r(Rt),isFreeBSD:r(zt),isChromeOS:r(Bt)}},Ft={unknown:Lt,nu:$t,windows:M(Mt),ios:M(At),android:M(Nt),linux:M(Pt),osx:M(It),solaris:M(Rt),freebsd:M(zt),chromeos:M(Bt)},jt=function(e,t,n){var r=wt.browsers(),i=wt.oses(),o=t.bind((function(e){return tt(r,e)})).orThunk((function(){return rt(r,e)})).fold(Dt.unknown,Dt.nu),a=it(i,e).fold(Ft.unknown,Ft.nu),s=Ke(a,o,e,n);return{browser:o,os:a,deviceType:s}},Vt={detect:jt},Ht=function(e){return window.matchMedia(e).matches},Wt=Ge((function(){return Vt.detect(navigator.userAgent,W.from(navigator.userAgentData),Ht)})),Ut=function(){return Wt()},qt=navigator.userAgent,Gt=Ut(),Kt=Gt.browser,Yt=Gt.os,Xt=Gt.deviceType,Jt=/WebKit/.test(qt)&&!Kt.isEdge(),Zt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Qt=-1!==qt.indexOf("Windows Phone"),en={opera:Kt.isOpera(),webkit:Jt,ie:!(!Kt.isIE()&&!Kt.isEdge())&&Kt.version.major,gecko:Kt.isFirefox(),mac:Yt.isOSX()||Yt.isiOS(),iOS:Xt.isiPad()||Xt.isiPhone(),android:Yt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Kt.isIE()?document.documentMode||7:10,fileApi:Zt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Kt.isIE(),desktop:Xt.isDesktop(),windowsPhone:Qt,browser:{current:Kt.current,version:Kt.version,isChrome:Kt.isChrome,isEdge:Kt.isEdge,isFirefox:Kt.isFirefox,isIE:Kt.isIE,isOpera:Kt.isOpera,isSafari:Kt.isSafari},os:{current:Yt.current,version:Yt.version,isAndroid:Yt.isAndroid,isChromeOS:Yt.isChromeOS,isFreeBSD:Yt.isFreeBSD,isiOS:Yt.isiOS,isLinux:Yt.isLinux,isOSX:Yt.isOSX,isSolaris:Yt.isSolaris,isWindows:Yt.isWindows},deviceType:{isDesktop:Xt.isDesktop,isiPad:Xt.isiPad,isiPhone:Xt.isiPhone,isPhone:Xt.isPhone,isTablet:Xt.isTablet,isTouch:Xt.isTouch,isWebView:Xt.isWebView}},tn=/^\s*|\s*$/g,nn=function(e){return null===e||void 0===e?"":(""+e).replace(tn,"")},rn=function(e,t){return t?!("array"!==t||!Re(e))||typeof e===t:void 0!==e},on=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},an=Ne,sn=function(e,t,n){var r,i,o,a=this,s=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var u=e[3].match(/(^|\.)(\w+)$/i)[2],c=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!c[u]){if("static"===e[2])return c[u]=t,void(this.onCreate&&this.onCreate(e[2],e[3],c[u]));t[u]||(t[u]=function(){},s=1),c[u]=t[u],a.extend(c[u].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=c[u],c[u]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},c[u].prototype[u]=c[u],a.each(r,(function(e,t){c[u].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?c[u].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==u&&(c[u].prototype[t]=e)}))),a.each(t.static,(function(e,t){c[u][t]=e}))}},un=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var o in i)if(Ne(i,o)){var a=i[o];void 0!==a&&(e[o]=a)}}return e},cn=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Be(e,(function(e,i){if(!1===t.call(r,e,i,n))return!1;cn(e,t,n,r)})))},ln=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},fn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},dn=function(e,t){return!e||rn(e,"array")?e:Le(e.split(t||","),nn)},hn=function(e){var t=en.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},pn={trim:nn,isArray:Re,is:rn,toArray:ze,makeMap:on,each:Be,map:Le,grep:$e,inArray:Fe,hasOwn:an,extend:un,create:sn,walk:cn,createNS:ln,resolve:fn,explode:dn,_addCacheSuffix:hn},mn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return bn(r.childNodes[0])},vn=function(e,t){var n=t||document,r=n.createElement(e);return bn(r)},gn=function(e,t){var n=t||document,r=n.createTextNode(e);return bn(r)},bn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},yn=function(e,t,n){return W.from(e.dom.elementFromPoint(t,n)).map(bn)},wn={fromHtml:mn,fromTag:vn,fromText:gn,fromDom:bn,fromPoint:yn},xn=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},i=t(e);do{i=i.bind(r)}while(i.isSome());return n},_n=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Cn=function(e,t){return _n(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},kn=8,Sn=9,On=11,En=1,Tn=3,Dn=function(e,t){var n=e.dom;if(n.nodeType!==En)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Mn=function(e){return e.nodeType!==En&&e.nodeType!==Sn&&e.nodeType!==On||0===e.childElementCount},An=function(e,t){var n=void 0===t?document:t.dom;return Mn(n)?[]:Z(n.querySelectorAll(e),wn.fromDom)},Nn=function(e,t){var n=void 0===t?document:t.dom;return Mn(n)?W.none():W.from(n.querySelector(e)).map(wn.fromDom)},Pn=function(e,t){return e.dom===t.dom},In=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Rn=function(e,t){return Cn(e.dom,t.dom)},zn=function(e,t){return Ut().browser.isIE()?Rn(e,t):In(e,t)};"undefined"!==typeof window?window:Function("return this;")();var Bn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Ln=function(e){return e.dom.nodeType},$n=function(e){return function(t){return Ln(t)===e}},Fn=function(e){return Ln(e)===kn||"#comment"===Bn(e)},jn=$n(En),Vn=$n(Tn),Hn=$n(Sn),Wn=$n(On),Un=function(e){return function(t){return jn(t)&&Bn(t)===e}},qn=function(e){return wn.fromDom(e.dom.ownerDocument)},Gn=function(e){return Hn(e)?e:qn(e)},Kn=function(e){return wn.fromDom(Gn(e).dom.documentElement)},Yn=function(e){return wn.fromDom(Gn(e).dom.defaultView)},Xn=function(e){return W.from(e.dom.parentNode).map(wn.fromDom)},Jn=function(e,t){var n=S(t)?t:L,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=wn.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},Zn=function(e){var t=function(t){return ne(t,(function(t){return!Pn(e,t)}))};return Xn(e).map(rr).map(t).getOr([])},Qn=function(e){return W.from(e.dom.previousSibling).map(wn.fromDom)},er=function(e){return W.from(e.dom.nextSibling).map(wn.fromDom)},tr=function(e){return fe(xn(e,Qn))},nr=function(e){return xn(e,er)},rr=function(e){return Z(e.dom.childNodes,wn.fromDom)},ir=function(e,t){var n=e.dom.childNodes;return W.from(n[t]).map(wn.fromDom)},or=function(e){return ir(e,0)},ar=function(e){return ir(e,e.dom.childNodes.length-1)},sr=function(e){return e.dom.childNodes.length},ur=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return wn.fromDom(t)},cr=function(e){return Wn(e)&&k(e.dom.host)},lr=S(Element.prototype.attachShadow)&&S(Node.prototype.getRootNode),fr=M(lr),dr=lr?function(e){return wn.fromDom(e.dom.getRootNode())}:Gn,hr=function(e){return cr(e)?e:ur(Gn(e))},pr=function(e){var t=dr(e);return cr(t)?W.some(t):W.none()},mr=function(e){return wn.fromDom(e.dom.host)},vr=function(e){if(fr()&&k(e.target)){var t=wn.fromDom(e.target);if(jn(t)&&gr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return ve(n)}}return W.from(e.target)},gr=function(e){return k(e.dom.shadowRoot)},br=function(e,t){var n=Xn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},yr=function(e,t){var n=er(e);n.fold((function(){var n=Xn(e);n.each((function(e){xr(e,t)}))}),(function(e){br(e,t)}))},wr=function(e,t){var n=or(e);n.fold((function(){xr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},xr=function(e,t){e.dom.appendChild(t.dom)},_r=function(e,t){br(e,t),xr(t,e)},Cr=function(e,t){Q(t,(function(t){br(e,t)}))},kr=function(e,t){Q(t,(function(t){xr(e,t)}))},Sr=function(e){e.dom.textContent="",Q(rr(e),(function(e){Or(e)}))},Or=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Er=function(e){var t=rr(e);t.length>0&&Cr(e,t),Or(e)},Tr=function(e){var t=Vn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return pr(wn.fromDom(t)).fold((function(){return n.body.contains(t)}),D(Tr,mr))},Dr=function(e,t){var n=function(n,r){return Dr(e+n,t+r)};return{left:e,top:t,translate:n}},Mr=Dr,Ar=function(e){var t=e.getBoundingClientRect();return Mr(t.left,t.top)},Nr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Pr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Mr(n.offsetLeft,n.offsetTop);var o=Nr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Nr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Nr(i.clientTop,n.clientTop),u=Nr(i.clientLeft,n.clientLeft);return Ir(e).translate(a-u,o-s)},Ir=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Mr(r.offsetLeft,r.offsetTop):Tr(e)?Ar(t):Mr(0,0)},Rr=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Mr(n,r)},zr=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},Br=function(e,t){var n=Ut().browser.isSafari();n&&S(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Lr=function(e){var t=void 0===e?window:e;return Ut().browser.isFirefox()?W.none():W.from(t["visualViewport"])},$r=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Fr=function(e){var t=void 0===e?window:e,n=t.document,r=Rr(wn.fromDom(n));return Lr(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return $r(r.left,r.top,n,i)}),(function(e){return $r(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},jr=function(e){return function(t){return!!t&&t.nodeType===e}},Vr=function(e){return!!e&&!Object.getPrototypeOf(e)},Hr=jr(1),Wr=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return X(t,n)}return!1}},Ur=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Hr(t))for(var r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null),o=i?i.getPropertyValue(e):null;if(o===n[r])return!0}return!1}},qr=function(e){return function(t){return Hr(t)&&t.hasAttribute(e)}},Gr=function(e,t){return function(n){return Hr(n)&&n.getAttribute(e)===t}},Kr=function(e){return Hr(e)&&e.hasAttribute("data-mce-bogus")},Yr=function(e){return Hr(e)&&"all"===e.getAttribute("data-mce-bogus")},Xr=function(e){return Hr(e)&&"TABLE"===e.tagName},Jr=function(e){return function(t){if(Hr(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Zr=Wr(["textarea","input"]),Qr=jr(3),ei=jr(8),ti=jr(9),ni=jr(11),ri=Wr(["br"]),ii=Wr(["img"]),oi=Jr("true"),ai=Jr("false"),si=Wr(["td","th"]),ui=Wr(["video","audio","object","embed"]),ci=function(e,t,n){return void 0===n&&(n=N),e.exists((function(e){return n(e,t)}))},li=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},fi=function(e,t,n){return e.isSome()&&t.isSome()?W.some(n(e.getOrDie(),t.getOrDie())):W.none()},di=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?W.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):W.none()},hi=function(e,t){return e?W.some(t):W.none()},pi=function(e){return void 0!==e.style&&S(e.style.getPropertyValue)},mi=function(e,t,n){if(!(g(n)||x(n)||O(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},vi=function(e,t,n){mi(e.dom,t,n)},gi=function(e,t){var n=e.dom;_e(t,(function(e,t){mi(n,t,e)}))},bi=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},yi=function(e,t){return W.from(bi(e,t))},wi=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},xi=function(e,t){e.dom.removeAttribute(t)},_i=function(e){return ie(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},Ci=function(e,t,n){if(!g(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);pi(e)&&e.style.setProperty(t,n)},ki=function(e,t){var n=e.dom;_e(t,(function(e,t){Ci(n,t,e)}))},Si=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Tr(e)?i:Oi(n,t)},Oi=function(e,t){return pi(e)?e.style.getPropertyValue(t):""},Ei=function(e,t){var n=e.dom,r=Oi(n,t);return W.from(r).filter((function(e){return e.length>0}))},Ti=function(e){var t={},n=e.dom;if(pi(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},Di=function(e){return e.dom.offsetWidth},Mi=Ut().browser,Ai=function(e){return ae(e,jn)},Ni=function(e){return Mi.isFirefox()&&"table"===Bn(e)?Ai(rr(e)).filter((function(e){return"caption"===Bn(e)})).bind((function(e){return Ai(nr(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,i=e.dom.offsetHeight;return n<=r?-i:0}))})).getOr(0):0},Pi=function(e,t){return e.children&&X(e.children,t)},Ii=function(e,t,n){var r=0,i=0,o=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Si(wn.fromDom(e),"position")){var a=t.getBoundingClientRect();return r=a.left+(o.documentElement.scrollLeft||e.scrollLeft)-o.documentElement.clientLeft,i=a.top+(o.documentElement.scrollTop||e.scrollTop)-o.documentElement.clientTop,{x:r,y:i}}var s=t;while(s&&s!==n&&s.nodeType&&!Pi(s,n)){var u=s;r+=u.offsetLeft||0,i+=u.offsetTop||0,s=u.offsetParent}s=t.parentNode;while(s&&s!==n&&s.nodeType&&!Pi(s,n))r-=s.scrollLeft||0,i-=s.scrollTop||0,s=s.parentNode;i+=Ni(wn.fromDom(t))}return{x:r,y:i}},Ri={},zi={exports:Ri};(function(e,n,r,i){(function(t,i){"object"===typeof n&&"undefined"!==typeof r?r.exports=i():"function"===typeof e&&e.amd?e(i):(t="undefined"!==typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=i())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},n={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(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=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void u(t.promise,i)}s(t.promise,r)}else(1===e._state?s:u)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void c(e);if("function"===typeof n)return void f(i(n,t),e)}e._state=1,e._value=t,c(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(u){n(u)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},t.exports?t.exports=o:e.Promise||(e.Promise=o)})(e)})(n);var r=n.exports,i=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),o={boltExport:i.Promise||r};return o}))})(void 0,Ri,zi);var Bi=zi.exports.boltExport,Li=function(e){var t=W.none(),n=[],r=function(e){return Li((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?u(e):n.push(e)},o=function(e){a()||(t=W.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){Q(e,u)},u=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},$i=function(e){return Li((function(t){t(e)}))},Fi={nu:Li,pure:$i},ji=function(e){setTimeout((function(){throw e}),0)},Vi=function(e){var t=function(t){e().then(t,ji)},n=function(t){return Vi((function(){return e().then(t)}))},r=function(t){return Vi((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return Vi((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return Fi.nu(t)},a=function(){var t=null;return Vi((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},Hi=function(e){return Vi((function(){return new Bi(e)}))},Wi=function(e){return Vi((function(){return Bi.resolve(e)}))},Ui={nu:Hi,pure:Wi},qi=function(e,t){return t((function(t){var n=[],r=0,i=function(i){return function(o){n[i]=o,r++,r>=e.length&&t(n)}};0===e.length?t([]):Q(e,(function(e,t){e.get(i(t))}))}))},Gi=function(e){return qi(e,Ui.nu)},Ki=function(e){var t=function(t){return Ki(e)},n=function(t){return Ki(e)},r=function(t){return Ki(t(e))},i=function(t){return Ki(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},u=function(t){return t(e)},c=function(t){return t(e)},l=function(){return W.some(e)};return{isValue:$,isError:L,getOr:M(e),getOrThunk:M(e),getOrDie:M(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:u,forall:c,toOptional:l}},Yi=function(e){var t=function(e){return e()},n=function(){return R(String(e))()},r=A,i=function(e){return e()},o=function(t){return Yi(e)},a=function(t){return Yi(t(e))},s=function(t){return Yi(e)},u=function(t,n){return t(e)};return{isValue:L,isError:$,getOr:A,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:u,map:o,mapError:a,each:E,bind:s,exists:L,forall:$,toOptional:W.none}},Xi=function(e,t){return e.fold((function(){return Yi(t)}),Ki)},Ji={value:Ki,error:Yi,fromOption:Xi},Zi=function(e){if(!y(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Q(e,(function(r,i){var o=we(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=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(!y(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var u=function(e){var r=we(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=le(t,(function(e){return X(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:u,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},Qi={generate:Zi};Qi.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var eo=function(e){return e.fold(A,A)};function to(e,t,n,r,i){return e(n,r)?W.some(n):S(i)&&i(n)?W.none():t(n,r,i)}var no,ro,io,oo,ao,so,uo,co,lo,fo,ho,po,mo,vo,go,bo,yo,wo,xo,_o=function(e,t,n){var r=e.dom,i=S(n)?n:L;while(r.parentNode){r=r.parentNode;var o=wn.fromDom(r);if(t(o))return W.some(o);if(i(o))break}return W.none()},Co=function(e,t,n){var r=function(e,t){return t(e)};return to(r,_o,e,t,n)},ko=function(e,t){var n=e.dom;return n.parentNode?So(wn.fromDom(n.parentNode),(function(n){return!Pn(e,n)&&t(n)})):W.none()},So=function(e,t){var n=function(e){return t(wn.fromDom(e))},r=ae(e.dom.childNodes,n);return r.map(wn.fromDom)},Oo=function(e,t,n){return _o(e,(function(e){return Dn(e,t)}),n)},Eo=function(e,t){return Nn(t,e)},To=function(e,t,n){var r=function(e,t){return Dn(e,t)};return to(r,Oo,e,t,n)},Do=window.Promise?window.Promise:Bi,Mo=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],i=function(e){window.setTimeout(e,0)},o=0;o<r.length&&!n;o++)n=window[r[o]+"RequestAnimationFrame"];n||(n=i),n(e,t)},Ao=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},No=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Po=function(e){return clearTimeout(e)},Io=function(e){return clearInterval(e)},Ro=function(e,t){var n,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=Ao((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},zo={requestAnimationFrame:function(e,t){no?no.then(e):no=new Do((function(e){t||(t=document.body),Mo(e,t)})).then(e)},setTimeout:Ao,setInterval:No,setEditorTimeout:function(e,t,n){return Ao((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=No((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:Ro,throttle:Ro,clearInterval:Io,clearTimeout:Po},Bo=function(e,t){void 0===t&&(t={});var n=0,r={},i=wn.fromDom(e),o=Gn(i),a=t.maxLoadTime||5e3,s=function(e){t.referrerPolicy=e},u=function(e){xr(hr(i),e)},c=function(e){var t=hr(i);Eo(t,"#"+e).each(Or)},l=function(e){return Ae(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},f=function(n,i,s){var c,f=pn._addCacheSuffix(n),d=l(f);r[f]=d,d.count++;var h=function(e,t){var n=e.length;while(n--)e[n]();d.status=t,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)},v=function(e,t){e()||(Date.now()-y<a?zo.setTimeout(t):m())},g=function(){v((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],i=r.ownerNode;if(i&&i.id===c.id)return p(),!0}return!1}),g)};if(i&&d.passed.push(i),s&&d.failed.push(s),1!==d.status)if(2!==d.status)if(3!==d.status){d.status=1;var b=wn.fromTag("link",o.dom);gi(b,{rel:"stylesheet",type:"text/css",id:d.id});var y=Date.now();t.contentCssCors&&vi(b,"crossOrigin","anonymous"),t.referrerPolicy&&vi(b,"referrerpolicy",t.referrerPolicy),c=b.dom,c.onload=g,c.onerror=m,u(b),vi(b,"href",f)}else m();else p()},d=function(e){return Ui.nu((function(t){f(e,T(t,M(Ji.value(e))),T(t,M(Ji.error(e))))}))},h=function(e,t,n){Gi(Z(e,d)).get((function(e){var r=te(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(eo)):t(r.pass.map(eo))}))},p=function(e){var t=pn._addCacheSuffix(e);Ae(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],c(e.id))}))},m=function(e){Q(e,(function(e){p(e)}))};return{load:f,loadAll:h,unload:p,unloadAll:m,_setReferrerPolicy:s}},Lo=function(){var e=new WeakMap,t=function(t,n){var r=dr(t),i=r.dom;return W.from(e.get(i)).getOrThunk((function(){var t=Bo(i,n);return e.set(i,t),t}))};return{forElement:t}},$o=Lo(),Fo=function(){function e(e,t){this.node=e,this.rootNode=t,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 e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var i,o;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(i=e[n],i)return i;for(o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n],i)return i}}},e.prototype.findPreviousNode=function(e,t,n,r){var i,o,a;if(e){if(i=e[n],this.rootNode&&i===this.rootNode)return;if(i){if(!r)for(a=i[t];a;a=a[t])if(!a[t])return a;return i}if(o=e.parentNode,o&&o!==this.rootNode)return o}},e}(),jo=["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"],Vo=["td","th"],Ho=["thead","tbody","tfoot"],Wo=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Uo=["h1","h2","h3","h4","h5","h6"],qo=["li","dd","dt"],Go=["ul","ol","dl"],Ko=["pre","script","textarea","style"],Yo=function(e){var t;return function(n){return t=t||he(e,$),Ne(t,Bn(n))}},Xo=Yo(Uo),Jo=Yo(jo),Zo=function(e){return"table"===Bn(e)},Qo=function(e){return jn(e)&&!Jo(e)},ea=function(e){return jn(e)&&"br"===Bn(e)},ta=Yo(Wo),na=Yo(Go),ra=Yo(qo),ia=Yo(Ho),oa=Yo(Vo),aa=Yo(Ko),sa=function(e,t,n){return Oo(e,t,n).isSome()},ua="\ufeff",ca=" ",la=function(e){return e===ua},fa=function(e){return e.replace(/\uFEFF/g,"")},da=ua,ha=la,pa=fa,ma=Hr,va=Qr,ga=function(e){return va(e)&&(e=e.parentNode),ma(e)&&e.hasAttribute("data-mce-caret")},ba=function(e){return va(e)&&ha(e.data)},ya=function(e){return ga(e)||ba(e)},wa=function(e){return e.firstChild!==e.lastChild||!ri(e.firstChild)},xa=function(e,t){var n=e.ownerDocument,r=n.createTextNode(da),i=e.parentNode;if(t){o=e.previousSibling;if(va(o)){if(ya(o))return o;if(Ea(o))return o.splitText(o.data.length-1)}i.insertBefore(r,e)}else{var o=e.nextSibling;if(va(o)){if(ya(o))return o;if(Oa(o))return o.splitText(1),o}e.nextSibling?i.insertBefore(r,e.nextSibling):i.appendChild(r)}return r},_a=function(e){var t=e.container();return!!Qr(t)&&(t.data.charAt(e.offset())===da||e.isAtStart()&&ba(t.previousSibling))},Ca=function(e){var t=e.container();return!!Qr(t)&&(t.data.charAt(e.offset()-1)===da||e.isAtEnd()&&ba(t.nextSibling))},ka=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},Sa=function(e,t,n){var r=t.ownerDocument,i=r.createElement(e);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(ka());var o=t.parentNode;return n?o.insertBefore(i,t):t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i),i},Oa=function(e){return va(e)&&e.data[0]===da},Ea=function(e){return va(e)&&e.data[e.data.length-1]===da},Ta=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Kr(n)&&n.parentNode.removeChild(n)},Da=function(e){return e&&e.hasAttribute("data-mce-caret")?(Ta(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Ma=function(e){return ga(e.startContainer)},Aa=oi,Na=ai,Pa=ri,Ia=Qr,Ra=Wr(["script","style","textarea"]),za=Wr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ba=Wr(["table"]),La=ya,$a=function(e){return!La(e)&&(Ia(e)?!Ra(e.parentNode):za(e)||Pa(e)||Ba(e)||ja(e))},Fa=function(e){return Hr(e)&&"true"===e.getAttribute("unselectable")},ja=function(e){return!1===Fa(e)&&Na(e)},Va=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(ja(e))return!1;if(Aa(e))return!0}return!0},Ha=function(e){return!!ja(e)&&!0!==ie(be(e.getElementsByTagName("*")),(function(e,t){return e||Aa(t)}),!1)},Wa=function(e){return za(e)||Ha(e)},Ua=function(e,t){return $a(e)&&Va(e,t)},qa=/^[ \t\r\n]*$/,Ga=function(e){return qa.test(e)},Ka=function(e,t){var n=wn.fromDom(t),r=wn.fromDom(e);return sa(r,"pre,code",P(Pn,n))},Ya=function(e,t){return Qr(e)&&Ga(e.data)&&!1===Ka(e,t)},Xa=function(e){return Hr(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Ja=function(e,t){return $a(e)&&!1===Ya(e,t)||Xa(e)||Za(e)},Za=qr("data-mce-bookmark"),Qa=qr("data-mce-bogus"),es=Gr("data-mce-bogus","all"),ts=function(e,t){var n=0;if(Ja(e,e))return!1;var r=e.firstChild;if(!r)return!0;var i=new Fo(r,e);do{if(t){if(es(r)){r=i.next(!0);continue}if(Qa(r)){r=i.next();continue}}if(ri(r))n++,r=i.next();else{if(Ja(r,e))return!1;r=i.next()}}while(r);return n<=1},ns=function(e,t){return void 0===t&&(t=!0),ts(e.dom,t)},rs=function(e){return"span"===e.nodeName.toLowerCase()},is=function(e,t){return k(e)&&(Ja(e,t)||Qo(wn.fromDom(e)))},os=function(e,t){var n=new Fo(e,t).prev(!1),r=new Fo(e,t).next(!1),i=_(n)||is(n,t),o=_(r)||is(r,t);return i&&o},as=function(e){return rs(e)&&"bookmark"===e.getAttribute("data-mce-type")},ss=function(e,t){return Qr(e)&&e.data.length>0&&os(e,t)},us=function(e){return!!Hr(e)&&e.childNodes.length>0},cs=function(e){return ni(e)||ti(e)},ls=function(e,t,n){var r=n||t;if(Hr(t)&&as(t))return t;for(var i=t.childNodes,o=i.length-1;o>=0;o--)ls(e,i[o],r);if(Hr(t)){var a=t.childNodes;1===a.length&&as(a[0])&&t.parentNode.insertBefore(a[0],t)}return cs(t)||Ja(t,r)||us(t)||ss(t,r)||e.remove(t),t},fs=pn.makeMap,ds=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hs=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ps=/[<>&\"\']/g,ms=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,vs={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:"Ÿ"},gs={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},bs={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},ys=function(e){var t=wn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},ws=function(e,t){var n,r,i,o={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),gs[r]||(i="&"+e[n+1]+";",o[r]=i,o[i]=r);return o}},xs=ws("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),_s=function(e,t){return e.replace(t?ds:hs,(function(e){return gs[e]||e}))},Cs=function(e){return(""+e).replace(ps,(function(e){return gs[e]||e}))},ks=function(e,t){return e.replace(t?ds:hs,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":gs[e]||"&#"+e.charCodeAt(0)+";"}))},Ss=function(e,t,n){return n=n||xs,e.replace(t?ds:hs,(function(e){return gs[e]||n[e]||e}))},Os=function(e,t){var n=ws(t)||xs,r=function(e,t){return e.replace(t?ds:hs,(function(e){return void 0!==gs[e]?gs[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},i=function(e,t){return Ss(e,t,n)},o=fs(e.replace(/\+/g,","));return o.named&&o.numeric?r:o.named?t?i:Ss:o.numeric?ks:_s},Es=function(e){return e.replace(ms,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):vs[t]||String.fromCharCode(t)):bs[e]||xs[e]||ys(e)}))},Ts={encodeRaw:_s,encodeAllRaw:Cs,encodeNumeric:ks,encodeNamed:Ss,getEncodeFunc:Os,decode:Es},Ds={},Ms={},As=pn.makeMap,Ns=pn.each,Ps=pn.extend,Is=pn.explode,Rs=pn.inArray,zs=function(e,t){return e=pn.trim(e),e?e.split(t||" "):[]},Bs=function(e,t){var n=As(e," ",As(e.toUpperCase()," "));return Ps(n,t)},Ls=function(e){return Bs("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},$s=function(e){var t,n,r,i,o,a,s={},u=function(e,n,r){var i,o,a,u=function(e,t){var n,r,i={};for(n=0,r=e.length;n<r;n++)i[e[n]]=t||{};return i};r=r||[],n=n||"","string"===typeof r&&(r=zs(r));var c=zs(e);i=c.length;while(i--)o=zs([t,n].join(" ")),a={attributes:u(o),attributesOrder:o,children:u(r,Ms)},s[c[i]]=a},c=function(e,t){var n,r,i,o,a=zs(e);n=a.length;var u=zs(t);while(n--)for(r=s[a[n]],i=0,o=u.length;i<o;i++)r.attributes[u[i]]={},r.attributesOrder.push(u[i])};return Ds[e]?Ds[e]:(t="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"!==e&&(t+=" 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"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Ns(zs(a),(function(e){u(e,"",r)})),o="center dir isindex noframes",n=[n,o].join(" "),i=[n,r].join(" "),Ns(zs(o),(function(e){u(e,"",i)}))),i=i||[n,r].join(" "),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),u("address dt dd div caption","",i),u("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),u("blockquote","cite",i),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",i),u("dl","","dt dd"),u("a","href target rel media hreflang type",r),u("q","cite",r),u("ins del","cite datetime",i),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",i),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),u("param","name value"),u("map","name",[i,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",i),u("th","colspan rowspan headers scope abbr",i),u("form","accept-charset action autocomplete enctype method name novalidate target",i),u("fieldset","disabled form name",[i,"legend"].join(" ")),u("label","form for",r),u("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"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?i:r),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[i,"li"].join(" ")),u("noscript","",i),"html4"!==e&&(u("wbr"),u("ruby","",[r,"rt rp"].join(" ")),u("figcaption","",i),u("mark rt rp summary bdi","",r),u("canvas","width height",i),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[r,"option"].join(" ")),u("article section nav aside main header footer","",i),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[i,"figcaption"].join(" ")),u("time","datetime",r),u("dialog","open",i),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",r),u("progress","value max",r),u("meter","value min max low high optimum",r),u("details","open",[i,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(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"!==e&&(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")),Ns(zs("a form meter progress dfn"),(function(e){s[e]&&delete s[e].children[e]})),delete s.caption.children.table,delete s.script,Ds[e]=s,s)},Fs=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Ns(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?As(e,/[, ]/):Is(e,/[, ]/)}))),n},js=function(e){var t={},n={},r=[],i={},o={},a=function(t,n,r){var i=e[t];return i?i=As(i,/[, ]/,As(i.toUpperCase(),/[, ]/)):(i=Ds[t],i||(i=Bs(n,r),Ds[t]=i)),i};e=e||{};var s=$s(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var u=Fs(e.valid_styles),c=Fs(e.invalid_styles,"map"),l=Fs(e.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",v=a("non_empty_elements",m+" pre",h),g=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),w=a("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");Ns((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){o[e]=new RegExp("</"+e+"[^>]*>","gi")}));var x=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},_=function(e){var n,i,o,a,s,u,c,l,f,d,h,p,m,v,g,b,y,w,_=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,C=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,k=/[*?+]/;if(e){var S=zs(e,",");for(t["@"]&&(b=t["@"].attributes,y=t["@"].attributesOrder),n=0,i=S.length;n<i;n++)if(s=_.exec(S[n]),s){if(v=s[1],f=s[2],g=s[3],l=s[5],p={},m=[],u={attributes:p,attributesOrder:m},"#"===v&&(u.paddEmpty=!0),"-"===v&&(u.removeEmpty=!0),"!"===s[4]&&(u.removeEmptyAttrs=!0),b&&(_e(b,(function(e,t){p[t]=e})),m.push.apply(m,y)),l)for(l=zs(l,"|"),o=0,a=l.length;o<a;o++)if(s=C.exec(l[o]),s){if(c={},h=s[1],d=s[2].replace(/[\\:]:/g,":"),v=s[3],w=s[4],"!"===h&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(d),c.required=!0),"-"===h){delete p[d],m.splice(Rs(m,d),1);continue}v&&("="===v&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:d,value:w}),c.defaultValue=w),":"===v&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:d,value:w}),c.forcedValue=w),"<"===v&&(c.validValues=As(w,"?"))),k.test(d)?(u.attributePatterns=u.attributePatterns||[],c.pattern=x(d),u.attributePatterns.push(c)):(p[d]||m.push(d),p[d]=c)}b||"@"!==f||(b=p,y=m),g&&(u.outputName=f,t[g]=u),k.test(f)?(u.pattern=x(f),r.push(u)):t[f]=u}}},C=function(e){t={},r=[],_(e),Ns(s,(function(e,t){n[t]=e.children}))},k=function(e){var r=/^(~)?(.+)$/;e&&(Ds.text_block_elements=Ds.block_elements=null,Ns(zs(e,","),(function(e){var o=r.exec(e),a="~"===o[1],s=a?"span":"div",u=o[2];if(n[u]=n[s],i[u]=s,a||(y[u.toUpperCase()]={},y[u]={}),!t[u]){var c=t[s];c=Ps({},c),delete c.removeEmptyAttrs,delete c.removeEmpty,t[u]=c}Ns(n,(function(e,t){e[s]&&(n[t]=e=Ps({},n[t]),e[u]=e[s])}))})))},S=function(t){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]+)\[([^\]]+)]$/;Ds[e.schema]=null,t&&Ns(zs(t,","),(function(e){var t,i,o=r.exec(e);o&&(i=o[1],t=i?n[o[2]]:n[o[2]]={"#comment":{}},t=n[o[2]],Ns(zs(o[3],"|"),(function(e){"-"===i?delete t[e]:t[e]={}})))}))},O=function(e){var n,i=t[e];if(i)return i;n=r.length;while(n--)if(i=r[n],i.pattern.test(e))return i};e.valid_elements?C(e.valid_elements):(Ns(s,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&Ns(zs("strong/b em/i"),(function(e){var n=zs(e,"/");t[n[1]].outputName=n[0]})),Ns(w,(function(n,r){t[r]&&(e.padd_empty_block_inline_children&&(t[r].paddInEmptyBlock=!0),t[r].removeEmpty=!0)})),Ns(zs("ol ul blockquote a table tbody"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),Ns(zs("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),Ns(zs("span"),(function(e){t[e].removeEmptyAttrs=!0}))),k(e.custom_elements),S(e.valid_children),_(e.extended_valid_elements),S("+ol[ul|ol],+ul[ul|ol]"),Ns({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(e,n){t[n]&&(t[n].parentsRequired=zs(e))})),e.invalid_elements&&Ns(Is(e.invalid_elements),(function(e){t[e]&&delete t[e]})),O("span")||_("span[!data-mce-type|*]");var E=M(u),T=M(c),D=M(l),A=M(p),N=M(y),P=M(b),I=M(w),R=M(h),z=M(d),B=M(v),L=M(g),$=M(f),F=M(o),j=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},V=function(e,t){var n,r,i=O(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},H=M(i);return{children:n,elements:t,getValidStyles:E,getValidClasses:D,getBlockElements:N,getInvalidStyles:T,getShortEndedElements:R,getTextBlockElements:P,getTextInlineElements:I,getBoolAttrs:A,getElementRule:O,getSelfClosingElements:z,getNonEmptyElements:B,getMoveCaretBeforeOnEnterElements:L,getWhiteSpaceElements:$,getSpecialElements:F,isValidChild:j,isValid:V,getCustomElements:H,addValidElements:_,setValidElements:C,addCustomElements:k,addValidChildren:S}},Vs=function(e,t,n,r){var i=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+i(t)+i(n)+i(r)},Hs=function(e,t){var n,r,i,o=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,l={},f=ua;e=e||{},t&&(r=t.getValidStyles(),i=t.getInvalidStyles());var d=("\\\" \\' \\; \\: ; : "+f).split(" ");for(n=0;n<d.length;n++)l[d[n]]=f+n,l[f+n]=d[n];return{toHex:function(e){return e.replace(a,Vs)},parse:function(t){var r,i,d,h,p={},m=e.url_converter,v=e.url_converter_scope||o,g=function(e,t,r){var i=p[e+"-top"+t];if(i){var o=p[e+"-right"+t];if(o){var a=p[e+"-bottom"+t];if(a){var s=p[e+"-left"+t];if(s){var u=[i,o,a,s];n=u.length-1;while(n--)if(u[n]!==u[n+1])break;n>-1&&r||(p[e+t]=-1===n?u[0]:u.join(" "),delete p[e+"-top"+t],delete p[e+"-right"+t],delete p[e+"-bottom"+t],delete p[e+"-left"+t])}}}}},b=function(e){var t,n=p[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return p[e]=n[0],!0}},y=function(e,t,n,r){b(t)&&b(n)&&b(r)&&(p[e]=p[t]+" "+p[n]+" "+p[r],delete p[t],delete p[n],delete p[r])},w=function(e){return h=!0,l[e]},x=function(e,t){return h&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return l[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},_=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},C=function(e){return e.replace(/\\[0-9a-f]+/gi,_)},k=function(t,n,r,i,o,a){if(o=o||a,o)return o=x(o),"'"+o.replace(/\'/g,"\\'")+"'";if(n=x(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return m&&(n=m.call(v,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,w).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,w)}));while(r=u.exec(t))if(u.lastIndex=r.index+r[0].length,i=r[1].replace(c,"").toLowerCase(),d=r[2].replace(c,""),i&&d){if(i=C(i),d=C(d),-1!==i.indexOf(f)||-1!==i.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(d)))continue;"font-weight"===i&&"700"===d?d="bold":"color"!==i&&"background-color"!==i||(d=d.toLowerCase()),d=d.replace(a,Vs),d=d.replace(s,k),p[i]=h?x(d,!0):d}g("border","",!0),g("border","-width"),g("border","-color"),g("border","-style"),g("padding",""),g("margin",""),y("border","border-width","border-style","border-color"),"medium none"===p.border&&delete p.border,"none"===p["border-image"]&&delete p["border-image"]}return p},serialize:function(e,t){var n="",o=function(t){var i,o=r[t];if(o)for(var a=0,s=o.length;a<s;a++)t=o[a],i=e[t],i&&(n+=(n.length>0?" ":"")+t+": "+i+";")},a=function(e,t){var n=i["*"];return(!n||!n[e])&&(n=i[t],!(n&&n[e]))};return t&&r?(o("*"),o(t)):_e(e,(function(e,r){!e||i&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},Ws={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Us=function(e){return e instanceof Event||S(e.initEvent)},qs=function(e){return e.isDefaultPrevented===$||e.isDefaultPrevented===L},Gs=function(e){return C(e.preventDefault)||Us(e)},Ks=function(e,t){var n=null!==t&&void 0!==t?t:{};for(var r in e)Ne(Ws,r)||(n[r]=e[r]);return k(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n},Ys=function(e,t,n,r){var i,o=Ks(t,r);return o.type=e,C(o.target)&&(o.target=null!==(i=o.srcElement)&&void 0!==i?i:n),Gs(t)&&(o.preventDefault=function(){o.defaultPrevented=!0,o.isDefaultPrevented=$,S(t.preventDefault)?t.preventDefault():Us(t)&&(t.returnValue=!1)},o.stopPropagation=function(){o.cancelBubble=!0,o.isPropagationStopped=$,S(t.stopPropagation)?t.stopPropagation():Us(t)&&(t.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=$,o.stopPropagation()},qs(o)||(o.isDefaultPrevented=!0===o.defaultPrevented?$:L,o.isPropagationStopped=!0===o.cancelBubble?$:L,o.isImmediatePropagationStopped=L)),o},Xs="mce-data-",Js=/^(?:mouse|contextmenu)|click/,Zs=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Qs=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},eu=function(e){return k(e)&&Js.test(e.type)},tu=function(e,t){var n=Ys(e.type,e,document,t);if(eu(e)&&_(e.pageX)&&!_(e.clientX)){var r=n.target.ownerDocument||document,i=r.documentElement,o=r.body,a=n;a.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),a.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}return _(n.metaKey)&&(n.metaKey=!1),n},nu=function(e,t,n){var r=e.document,i={type:"ready"};if(n.domLoaded)t(i);else{var o=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Qs(e,"DOMContentLoaded",a),Qs(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(i)),e=null};o()?a():Zs(e,"DOMContentLoaded",a),n.domLoaded||Zs(e,"load",a)}},ru=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Xs+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var i,o,a,s,u,c,l,f=this,d=window,h=function(e){f.executeHandlers(tu(e||d.event),i)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?i=e[f.expando]:(i=f.count++,e[f.expando]=i,f.events[i]={}),r=r||e;var p=t.split(" ");a=p.length;while(a--)s=p[a],c=h,u=l=!1,"DOMContentLoaded"===s&&(s="ready"),f.domLoaded&&"ready"===s&&"complete"===e.readyState?n.call(r,tu({type:s})):(f.hasMouseEnterLeave||(u=f.mouseEnterLeave[s],u&&(c=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=tu(e||d.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,i))})),f.hasFocusIn||"focusin"!==s&&"focusout"!==s||(l=!0,u="focusin"===s?"focus":"blur",c=function(e){e=tu(e||d.event),e.type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,i)}),o=f.events[i][s],o?"ready"===s&&f.domLoaded?n(tu({type:s})):o.push({func:n,scope:r}):(f.events[i][s]=o=[{func:n,scope:r}],o.fakeName=u,o.capture=l,o.nativeHandler=c,"ready"===s?nu(e,c,f):Zs(e,u||s,c,l)));return e=o=null,n}},e.prototype.unbind=function(e,t,n){var r,i,o,a,s;if(!e||3===e.nodeType||8===e.nodeType)return this;var u=e[this.expando];if(u){if(s=this.events[u],t){var c=t.split(" ");i=c.length;while(i--)if(a=c[i],r=s[a],r){if(n){o=r.length;while(o--)if(r[o].func===n){var l=r.nativeHandler,f=r.fakeName,d=r.capture;r=r.slice(0,o).concat(r.slice(o+1)),r.nativeHandler=l,r.fakeName=f,r.capture=d,s[a]=r}}n&&0!==r.length||(delete s[a],Qs(e,r.fakeName||a,r.nativeHandler,r.capture))}}else _e(s,(function(t,n){Qs(e,t.fakeName||n,t.nativeHandler,t.capture)})),s={};for(a in s)if(Ne(s,a))return this;delete this.events[u];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var i=tu({type:t,target:e},n);do{r=e[this.expando],r&&this.executeHandlers(i,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!i.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),iu="sizzle"+-new Date,ou=window.document,au=0,su=0,uu=Vu(),cu=Vu(),lu=Vu(),fu=function(e,t){return e===t&&(ho=!0),0},du="undefined",hu=1<<31,pu={}.hasOwnProperty,mu=[],vu=mu.pop,gu=mu.push,bu=mu.push,yu=mu.slice,wu=mu.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},xu="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",_u="[\\x20\\t\\r\\n\\f]",Cu="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ku="\\["+_u+"*("+Cu+")(?:"+_u+"*([*^$|!~]?=)"+_u+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Cu+"))|)"+_u+"*\\]",Su=":("+Cu+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ku+")*)|.*)\\)|)",Ou=new RegExp("^"+_u+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_u+"+$","g"),Eu=new RegExp("^"+_u+"*,"+_u+"*"),Tu=new RegExp("^"+_u+"*([>+~]|"+_u+")"+_u+"*"),Du=new RegExp("="+_u+"*([^\\]'\"]*?)"+_u+"*\\]","g"),Mu=new RegExp(Su),Au=new RegExp("^"+Cu+"$"),Nu={ID:new RegExp("^#("+Cu+")"),CLASS:new RegExp("^\\.("+Cu+")"),TAG:new RegExp("^("+Cu+"|[*])"),ATTR:new RegExp("^"+ku),PSEUDO:new RegExp("^"+Su),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_u+"*(even|odd|(([+-]|)(\\d*)n|)"+_u+"*(?:([+-]|)"+_u+"*(\\d+)|))"+_u+"*\\)|)","i"),bool:new RegExp("^(?:"+xu+")$","i"),needsContext:new RegExp("^"+_u+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_u+"*((?:-\\d)?\\d*)"+_u+"*\\)|)(?=[^-]|$)","i")},Pu=/^(?:input|select|textarea|button)$/i,Iu=/^h\d$/i,Ru=/^[^{]+\{\s*\[native \w/,zu=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Bu=/[+~]/,Lu=/'|\\/g,$u=new RegExp("\\\\([\\da-f]{1,6}"+_u+"?|("+_u+")|.)","ig"),Fu=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{bu.apply(mu=yu.call(ou.childNodes),ou.childNodes),mu[ou.childNodes.length].nodeType}catch(Mj){bu={apply:mu.length?function(e,t){gu.apply(e,yu.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var ju=function(e,t,n,r){var i,o,a,s,u,c,l,f,d,h;if((t?t.ownerDocument||t:ou)!==mo&&po(t),t=t||mo,n=n||[],!e||"string"!==typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(go&&!r){if(i=zu.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&xo(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return bu.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&ro.getElementsByClassName)return bu.apply(n,t.getElementsByClassName(a)),n}if(ro.qsa&&(!bo||!bo.test(e))){if(f=l=iu,d=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){c=so(e),(l=t.getAttribute("id"))?f=l.replace(Lu,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=c.length;while(u--)c[u]=f+Xu(c[u]);d=Bu.test(e)&&Ku(t.parentNode)||t,h=c.join(",")}if(h)try{return bu.apply(n,d.querySelectorAll(h)),n}catch(p){}finally{l||t.removeAttribute("id")}}}return co(e.replace(Ou,"$1"),t,n,r)};function Vu(){var e=[];function t(n,r){return e.push(n+" ")>io.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function Hu(e){return e[iu]=!0,e}function Wu(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||hu)-(~e.sourceIndex||hu);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function Uu(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function qu(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function Gu(e){return Hu((function(t){return t=+t,Hu((function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function Ku(e){return e&&typeof e.getElementsByTagName!==du&&e}function Yu(){}function Xu(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ju(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=su++;return t.first?function(t,n,o){while(t=t[r])if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,c=[au,o];if(a){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||i){if(u=t[iu]||(t[iu]={}),(s=u[r])&&s[0]===au&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function Zu(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Qu(e,t,n){for(var r=0,i=t.length;r<i;r++)ju(e,t[r],n);return n}function ec(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function tc(e,t,n,r,i,o){return r&&!r[iu]&&(r=tc(r)),i&&!i[iu]&&(i=tc(i,o)),Hu((function(o,a,s,u){var c,l,f,d=[],h=[],p=a.length,m=o||Qu(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?m:ec(m,d,e,s,u),g=n?i||(o?e:p||r)?[]:a:v;if(n&&n(v,g,s,u),r){c=ec(g,h),r(c,[],s,u),l=c.length;while(l--)(f=c[l])&&(g[h[l]]=!(v[h[l]]=f))}if(o){if(i||e){if(i){c=[],l=g.length;while(l--)(f=g[l])&&c.push(v[l]=f);i(null,g=[],c,u)}l=g.length;while(l--)(f=g[l])&&(c=i?wu.call(o,f):d[l])>-1&&(o[c]=!(a[c]=f))}}else g=ec(g===a?g.splice(p,g.length):g),i?i(null,a,g,u):bu.apply(a,g)}))}function nc(e){for(var t,n,r,i=e.length,o=io.relative[e[0].type],a=o||io.relative[" "],s=o?1:0,u=Ju((function(e){return e===t}),a,!0),c=Ju((function(e){return wu.call(t,e)>-1}),a,!0),l=[function(e,n,r){var i=!o&&(r||n!==lo)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];s<i;s++)if(n=io.relative[e[s].type])l=[Ju(Zu(l),n)];else{if(n=io.filter[e[s].type].apply(null,e[s].matches),n[iu]){for(r=++s;r<i;r++)if(io.relative[e[r].type])break;return tc(s>1&&Zu(l),s>1&&Xu(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Ou,"$1"),n,s<r&&nc(e.slice(s,r)),r<i&&nc(e=e.slice(r)),r<i&&Xu(e))}l.push(n)}return Zu(l)}function rc(e,t){var n=t.length>0,r=e.length>0,i=function(i,o,a,s,u){var c,l,f,d=0,h="0",p=i&&[],m=[],v=lo,g=i||r&&io.find.TAG("*",u),b=au+=null==v?1:Math.random()||.1,y=g.length;for(u&&(lo=o!==mo&&o);h!==y&&null!=(c=g[h]);h++){if(r&&c){l=0;while(f=e[l++])if(f(c,o,a)){s.push(c);break}u&&(au=b)}n&&((c=!f&&c)&&d--,i&&p.push(c))}if(d+=h,n&&h!==d){l=0;while(f=t[l++])f(p,m,o,a);if(i){if(d>0)while(h--)p[h]||m[h]||(m[h]=vu.call(s));m=ec(m)}bu.apply(s,m),u&&!i&&m.length>0&&d+t.length>1&&ju.uniqueSort(s)}return u&&(au=b,lo=v),p};return n?Hu(i):i}ro=ju.support={},ao=ju.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},po=ju.setDocument=function(e){var t,n=e?e.ownerDocument||e:ou,r=n.defaultView;function i(e){try{return e.top}catch(t){}return null}return n!==mo&&9===n.nodeType&&n.documentElement?(mo=n,vo=n.documentElement,go=!ao(n),r&&r!==i(r)&&(r.addEventListener?r.addEventListener("unload",(function(){po()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){po()}))),ro.attributes=!0,ro.getElementsByTagName=!0,ro.getElementsByClassName=Ru.test(n.getElementsByClassName),ro.getById=!0,io.find.ID=function(e,t){if(typeof t.getElementById!==du&&go){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},io.filter.ID=function(e){var t=e.replace($u,Fu);return function(e){return e.getAttribute("id")===t}},io.find.TAG=ro.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==du)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},io.find.CLASS=ro.getElementsByClassName&&function(e,t){if(go)return t.getElementsByClassName(e)},yo=[],bo=[],ro.disconnectedMatch=!0,bo=bo.length&&new RegExp(bo.join("|")),yo=yo.length&&new RegExp(yo.join("|")),t=Ru.test(vo.compareDocumentPosition),xo=t||Ru.test(vo.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},fu=t?function(e,t){if(e===t)return ho=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!ro.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===ou&&xo(ou,e)?-1:t===n||t.ownerDocument===ou&&xo(ou,t)?1:fo?wu.call(fo,e)-wu.call(fo,t):0:4&r?-1:1)}:function(e,t){if(e===t)return ho=!0,0;var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],u=[t];if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:fo?wu.call(fo,e)-wu.call(fo,t):0;if(o===a)return Wu(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)u.unshift(r);while(s[i]===u[i])i++;return i?Wu(s[i],u[i]):s[i]===ou?-1:u[i]===ou?1:0},n):mo},ju.matches=function(e,t){return ju(e,null,null,t)},ju.matchesSelector=function(e,t){if((e.ownerDocument||e)!==mo&&po(e),t=t.replace(Du,"='$1']"),ro.matchesSelector&&go&&(!yo||!yo.test(t))&&(!bo||!bo.test(t)))try{var n=wo.call(e,t);if(n||ro.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Mj){}return ju(t,mo,null,[e]).length>0},ju.contains=function(e,t){return(e.ownerDocument||e)!==mo&&po(e),xo(e,t)},ju.attr=function(e,t){(e.ownerDocument||e)!==mo&&po(e);var n=io.attrHandle[t.toLowerCase()],r=n&&pu.call(io.attrHandle,t.toLowerCase())?n(e,t,!go):void 0;return void 0!==r?r:ro.attributes||!go?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ju.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ju.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ho=!ro.detectDuplicates,fo=!ro.sortStable&&e.slice(0),e.sort(fu),ho){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return fo=null,e},oo=ju.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=oo(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=oo(t);return n},io=ju.selectors={cacheLength:50,createPseudo:Hu,match:Nu,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($u,Fu),e[3]=(e[3]||e[4]||e[5]||"").replace($u,Fu),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ju.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ju.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Nu.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Mu.test(n)&&(t=so(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace($u,Fu).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=uu[e+" "];return t||(t=new RegExp("(^|"+_u+")"+e+"("+_u+"|$)"))&&uu(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==du&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ju.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,h,p,m=o!==a?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!u&&!s;if(v){if(o){while(m){f=t;while(f=f[m])if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&b){l=v[iu]||(v[iu]={}),c=l[e]||[],h=c[0]===au&&c[1],d=c[0]===au&&c[2],f=h&&v.childNodes[h];while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if(1===f.nodeType&&++d&&f===t){l[e]=[au,h,d];break}}else if(b&&(c=(t[iu]||(t[iu]={}))[e])&&c[0]===au)d=c[1];else while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if((s?f.nodeName.toLowerCase()===g:1===f.nodeType)&&++d&&(b&&((f[iu]||(f[iu]={}))[e]=[au,d]),f===t))break;return d-=i,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=io.pseudos[e]||io.setFilters[e.toLowerCase()]||ju.error("unsupported pseudo: "+e);return r[iu]?r(t):r.length>1?(n=[e,e,"",t],io.setFilters.hasOwnProperty(e.toLowerCase())?Hu((function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=wu.call(e,o[a]),e[i]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:Hu((function(e){var t=[],n=[],r=uo(e.replace(Ou,"$1"));return r[iu]?Hu((function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:Hu((function(e){return function(t){return ju(e,t).length>0}})),contains:Hu((function(e){return e=e.replace($u,Fu),function(t){return(t.textContent||t.innerText||oo(t)).indexOf(e)>-1}})),lang:Hu((function(e){return Au.test(e||"")||ju.error("unsupported lang: "+e),e=e.replace($u,Fu).toLowerCase(),function(t){var n;do{if(n=go?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===vo},focus:function(e){return e===mo.activeElement&&(!mo.hasFocus||mo.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!io.pseudos.empty(e)},header:function(e){return Iu.test(e.nodeName)},input:function(e){return Pu.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Gu((function(){return[0]})),last:Gu((function(e,t){return[t-1]})),eq:Gu((function(e,t,n){return[n<0?n+t:n]})),even:Gu((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Gu((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Gu((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:Gu((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},io.pseudos.nth=io.pseudos.eq,Q(["radio","checkbox","file","password","image"],(function(e){io.pseudos[e]=Uu(e)})),Q(["submit","reset"],(function(e){io.pseudos[e]=qu(e)})),Yu.prototype=io.filters=io.pseudos,io.setFilters=new Yu,so=ju.tokenize=function(e,t){var n,r,i,o,a,s,u,c=cu[e+" "];if(c)return t?0:c.slice(0);a=e,s=[],u=io.preFilter;while(a){for(o in n&&!(r=Eu.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=Tu.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(Ou," ")}),a=a.slice(n.length)),io.filter)io.filter.hasOwnProperty(o)&&(!(r=Nu[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?ju.error(e):cu(e,s).slice(0)},uo=ju.compile=function(e,t){var n,r=[],i=[],o=lu[e+" "];if(!o){t||(t=so(e)),n=t.length;while(n--)o=nc(t[n]),o[iu]?r.push(o):i.push(o);o=lu(e,rc(i,r)),o.selector=e}return o},co=ju.select=function(e,t,n,r){var i,o,a,s,u,c="function"===typeof e&&e,l=!r&&so(e=c.selector||e);if(n=n||[],1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&ro.getById&&9===t.nodeType&&go&&io.relative[o[1].type]){if(t=(io.find.ID(a.matches[0].replace($u,Fu),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=Nu.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],io.relative[s=a.type])break;if((u=io.find[s])&&(r=u(a.matches[0].replace($u,Fu),Bu.test(o[0].type)&&Ku(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&Xu(o),!e)return bu.apply(n,r),n;break}}}return(c||uo(e,l))(r,t,!go,n,Bu.test(e)&&Ku(t.parentNode)||t),n},ro.sortStable=iu.split("").sort(fu).join("")===iu,ro.detectDuplicates=!!ho,po(),ro.sortDetached=!0;var ic=document,oc=Array.prototype.push,ac=Array.prototype.slice,sc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,uc=ru.Event,cc=pn.makeMap("children,contents,next,prev"),lc=function(e){return"undefined"!==typeof e},fc=function(e){return"string"===typeof e},dc=function(e){return e&&e===e.window},hc=function(e,t){t=t||ic;var n,r=t.createElement("div"),i=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)i.appendChild(n);return i},pc=function(e,t,n,r){var i;if(fc(t))t=hc(t,Dc(e[0]));else if(t.length&&!t.nodeType){if(t=Pc.makeArray(t),r)for(i=t.length-1;i>=0;i--)pc(e,t[i],n,r);else for(i=0;i<t.length;i++)pc(e,t[i],n,r);return e}if(t.nodeType){i=e.length;while(i--)n.call(e[i],t)}return e},mc=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},vc=function(e,t,n){var r,i;return t=Pc(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,i=t.cloneNode(!1),e.parentNode.insertBefore(i,e)),i.appendChild(e)})),e},gc=pn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),bc=pn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),yc={for:"htmlFor",class:"className",readonly:"readOnly"},wc={float:"cssFloat"},xc={},_c={},Cc=function(e,t){return new Pc.fn.init(e,t)},kc=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},Sc=/^\s*|\s*$/g,Oc=function(e){return null===e||void 0===e?"":(""+e).replace(Sc,"")},Ec=function(e,t){var n,r,i,o;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(o=e[r],!1===t.call(o,r,o)))break}else for(i=0;i<n;i++)if(o=e[i],!1===t.call(o,i,o))break;return e},Tc=function(e,t){var n=[];return Ec(e,(function(e,r){t(r,e)&&n.push(r)})),n},Dc=function(e){return e?9===e.nodeType?e:e.ownerDocument:ic};Cc.fn=Cc.prototype={constructor:Cc,selector:"",context:null,length:0,init:function(e,t){var n,r,i=this;if(!e)return i;if(e.nodeType)return i.context=i[0]=e,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return Pc(e).attr(t);i.context=t=document}if(fc(e)){if(i.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:sc.exec(e),!n)return Pc(t).find(e);if(n[1]){r=hc(e,Dc(t)).firstChild;while(r)oc.call(i,r),r=r.nextSibling}else{if(r=Dc(t).getElementById(n[2]),!r)return i;if(r.id!==n[2])return i.find(e);i.length=1,i[0]=r}}else this.add(e,!1);return i},toArray:function(){return pn.toArray(this)},add:function(e,t){var n,r,i=this;if(fc(e))return i.add(Pc(e));if(!1!==t)for(n=Pc.unique(i.toArray().concat(Pc.makeArray(e))),i.length=n.length,r=0;r<n.length;r++)i[r]=n[r];else oc.apply(i,Pc.makeArray(e));return i},attr:function(e,t){var n,r=this;if("object"===typeof e)Ec(e,(function(e,t){r.attr(e,t)}));else{if(!lc(t)){if(r[0]&&1===r[0].nodeType){if(n=xc[e],n&&n.get)return n.get(r[0],e);if(bc[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=xc[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=yc[e]||e,"object"===typeof e)Ec(e,(function(e,t){n.prop(e,t)}));else{if(!lc(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,i=this,o=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)Ec(e,(function(e,t){i.css(e,t)}));else if(lc(t))e=o(e),"number"!==typeof t||gc[e]||(t=t.toString()+"px"),i.each((function(){var n=this.style;if(r=_c[e],r&&r.set)r.set(this,t);else{try{this.style[wc[e]||e]=t}catch(i){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=i[0],r=_c[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[o(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(s){return}}return i},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],uc.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(lc(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Pc(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(lc(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return pc(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return pc(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?pc(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?pc(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Pc(e).append(this),this},prependTo:function(e){return Pc(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return vc(this,e)},wrapAll:function(e){return vc(this,e,!0)},wrapInner:function(e){return this.each((function(){Pc(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Pc(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Pc(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?Ec(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var i=mc(r,e);if(i!==t){var o=r.className;i?r.className=Oc((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e}}))),n},hasClass:function(e){return mc(this[0],e)},each:function(e){return Ec(this,e)},on:function(e,t){return this.each((function(){uc.bind(this,e,t)}))},off:function(e,t){return this.each((function(){uc.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?uc.fire(this,e.type,e):uc.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Pc(ac.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Pc.find(e,this[t],r);return Pc(r)},filter:function(e){return Pc("function"===typeof e?Tc(this.toArray(),(function(t,n){return e(n,t)})):Pc.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Pc&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Pc(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Pc(t)},offset:function(e){var t,n,r,i,o=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(i=t.getBoundingClientRect(),o=i.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:oc,sort:Array.prototype.sort,splice:Array.prototype.splice},pn.extend(Cc,{extend:pn.extend,makeArray:function(e){return dc(e)||e.nodeType?[e]:pn.toArray(e)},inArray:kc,isArray:pn.isArray,each:Ec,trim:Oc,grep:Tc,find:ju,expr:ju.selectors,unique:ju.uniqueSort,text:ju.getText,contains:ju.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Pc.find.matchesSelector(t[0],e)?[t[0]]:[]:Pc.find.matches(e,t),t}});var Mc=function(e,t,n){var r=[],i=e[t];"string"!==typeof n&&n instanceof Pc&&(n=n[0]);while(i&&9!==i.nodeType){if(void 0!==n){if(i===n)break;if("string"===typeof n&&Pc(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r},Ac=function(e,t,n,r){var i=[];for(r instanceof Pc&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Pc(e).is(r))break}i.push(e)}return i},Nc=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Ec({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Mc(e,"parentNode")},next:function(e){return Nc(e,"nextSibling",1)},prev:function(e){return Nc(e,"previousSibling",1)},children:function(e){return Ac(e.firstChild,"nextSibling",1)},contents:function(e){return pn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){Cc.fn[e]=function(n){var r=this,i=[];r.each((function(){var e=t.call(i,this,n,i);e&&(Pc.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(cc[e]||(i=Pc.unique(i)),0===e.indexOf("parents")&&(i=i.reverse()));var o=Pc(i);return n?o.filter(n):o}})),Ec({parentsUntil:function(e,t){return Mc(e,"parentNode",t)},nextUntil:function(e,t){return Ac(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Ac(e,"previousSibling",1,t).slice(1)}},(function(e,t){Cc.fn[e]=function(n,r){var i=this,o=[];i.each((function(){var e=t.call(o,this,n,o);e&&(Pc.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(o=Pc.unique(o),0!==e.indexOf("parents")&&"prevUntil"!==e||(o=o.reverse()));var a=Pc(o);return r?a.filter(r):a}})),Cc.fn.is=function(e){return!!e&&this.filter(e).length>0},Cc.fn.init.prototype=Cc.fn,Cc.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i||(i=t.context),new n.fn.init(r,i)};return Pc.extend(n,this),n},Cc.attrHooks=xc,Cc.cssHooks=_c;var Pc=Cc,Ic=pn.each,Rc=pn.grep,zc=en.ie,Bc=/^([a-z0-9],?)+$/i,Lc=function(e,t,n){var r=t.keep_values,i={set:function(e,r,i){t.url_converter&&null!==r&&(r=t.url_converter.call(t.url_converter_scope||n(),r,i,e[0])),e.attr("data-mce-"+i,r).attr(i,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},o={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(o.href=o.src=i),o},$c=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Fc=function(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i},jc=function(e,t){void 0===t&&(t={});var n={},r=window,i={},o=0,a=!0,s=!0,u=$o.forElement(wn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),c=[],l=t.schema?t.schema:js({}),f=Hs({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),d=t.ownEvents?new ru:ru.Event,h=l.getBlockElements(),p=Pc.overrideDefaults((function(){return{context:e,element:Ae.getRoot()}})),m=function(e){if("string"===typeof e)return!!h[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!h[e.nodeName])}return!1},v=function(t){return t&&e&&g(t)?e.getElementById(t):t},b=function(e){return p("string"===typeof e?v(e):e)},y=function(e,t,n){var r,i,o=b(e);return o.length&&(r=Ne[t],i=r&&r.get?r.get(o,t):o.attr(t)),"undefined"===typeof i&&(i=n||""),i},w=function(e){var t=v(e);return t?t.attributes:[]},x=function(e,n,r){""===r&&(r=null);var i=b(e),o=i.attr(n);if(i.length){var a=Ne[n];a&&a.set?a.set(i,r,n):i.attr(n,r),o!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:i,attrName:n,attrValue:r})}},_=function(t,n){if(!zc||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Ic(w(t),(function(e){x(r,e.nodeName,y(t,e.nodeName))})),r},k=function(){return t.root_element||e.body},S=function(e){var t=Fr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},O=function(t,n){return Ii(e.body,v(t),n)},T=function(e,n,r){var i=g(n)?b(e).css(n,r):b(e).css(n);t.update_styles&&$c(f,i)},D=function(e,n){var r=b(e).css(n);t.update_styles&&$c(f,r)},A=function(e,t,n){var r=b(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=en.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},N=function(e){var t,n;return e=v(e),t=A(e,"width"),n=A(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},P=function(e){e=v(e);var t=O(e),n=N(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},I=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Bc.test(t)){var r=t.toLowerCase().split(/,/),i=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var o=Array.isArray(e)?e:[e];return ju(t,o[0].ownerDocument||o[0],null,o).length>0},R=function(e,t,n,r){var i,o=[],a=v(e);r=void 0===r,n=n||("BODY"!==k().nodeName?k().parentNode:null),pn.is(t,"string")&&(i=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return I(e,i)});while(a){if(a===n||C(a.nodeType)||ti(a)||ni(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];o.push(a)}a=a.parentNode}return r?o:null},z=function(e,t,n){var r=R(e,t,n,!1);return r&&r.length>0?r[0]:null},B=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return I(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},L=function(e,t){return B(e,t,"nextSibling")},$=function(e,t){return B(e,t,"previousSibling")},F=function(n,r){return ju(n,v(r)||t.root_element||e,[])},j=function(e,t,n){var r,i="string"===typeof e?v(e):e;if(!i)return!1;if(pn.isArray(i)&&(i.length||0===i.length))return r=[],Ic(i,(function(e,i){e&&r.push(t.call(n,"string"===typeof e?v(e):e,i))})),r;var o=n||this;return t.call(o,i)},V=function(e,t){b(e).each((function(e,n){Ic(t,(function(e,t){x(n,t,e)}))}))},H=function(e,t){var n=b(e);zc?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Pc("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},W=function(t,n,r,i,o){return j(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return V(a,r),i&&("string"!==typeof i&&i.nodeType?a.appendChild(i):"string"===typeof i&&H(a,i)),o?a:t.appendChild(a)}))},U=function(t,n,r){return W(e.createElement(t),t,n,r,!0)},q=Ts.decode,G=Ts.encodeAllRaw,K=function(e,t,n){var r,i="";for(r in i+="<"+e,t)Pe(t,r)&&(i+=" "+r+'="'+G(t[r])+'"');return"undefined"!==typeof n?i+">"+n+"</"+e+">":i+" />"},Y=function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();i.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)i.appendChild(n);return i.removeChild(r),i},X=function(e,t){var n=b(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},J=function(e){return j(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},Z=function(e){return f.parse(e)},ee=function(e,t){return f.serialize(e,t)},te=function(t){var r,i;if(Ae!==jc.DOM&&e===document){if(n[t])return;n[t]=!0}i=e.getElementById("mceDefaultStyles"),i||(i=e.createElement("style"),i.id="mceDefaultStyles",i.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(e.createTextNode(t))},ne=function(e){e||(e=""),Q(e.split(","),(function(e){i[e]=!0,u.load(e,E)}))},re=function(e,t,n){b(e).toggleClass(t,n).each((function(){""===this.className&&Pc(this).attr("class",null)}))},ie=function(e,t){b(e).addClass(t)},oe=function(e,t){re(e,t,!1)},ae=function(e,t){return b(e).hasClass(t)},se=function(e){b(e).show()},ue=function(e){b(e).hide()},ce=function(e){return"none"===b(e).css("display")},le=function(e){return(e||"mce_")+o++},fe=function(e){var t="string"===typeof e?v(e):e;return Hr(t)?t.outerHTML:Pc("<div></div>").append(Pc(t).clone()).html()},de=function(e,t){b(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}X(Pc(this).html(t),!0)}))},he=function(e,t){var n=v(t);return j(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},pe=function(e,t,n){return j(t,(function(t){return pn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Ic(Rc(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},me=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=U(t),Ic(w(e),(function(t){x(n,t.nodeName,y(e,t.nodeName))})),pe(n,e,!0)),n||e},ve=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ge=function(e){return f.toHex(pn.trim(e))},be=function(e){if(Hr(e)){var t="a"===e.nodeName.toLowerCase()&&!y(e,"href")&&y(e,"id");if(y(e,"name")||y(e,"data-mce-bookmark")||t)return!0}return!1},ye=function(e,t){var n,r,i=0;if(be(e))return!1;if(e=e.firstChild,e){var o=new Fo(e,e.parentNode),a=l?l.getWhiteSpaceElements():{};t=t||(l?l.getNonEmptyElements():null);do{if(n=e.nodeType,Hr(e)){var s=e.getAttribute("data-mce-bogus");if(s){e=o.next("all"===s);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){i++,e=o.next();continue}return!1}if(be(e))return!1}if(8===n)return!1;if(3===n&&!Ga(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Ga(e.nodeValue))return!1;e=o.next()}while(e)}return i<=1},we=function(){return e.createRange()},xe=function(e,t,n){var r,i,o,a=we();if(e&&t)return a.setStart(e.parentNode,Fc(e)),a.setEnd(t.parentNode,Fc(t)),r=a.extractContents(),a=we(),a.setStart(t.parentNode,Fc(t)+1),a.setEnd(e.parentNode,Fc(e)+1),i=a.extractContents(),o=e.parentNode,o.insertBefore(ls(Ae,r),e),n?o.insertBefore(n,e):o.insertBefore(t,e),o.insertBefore(ls(Ae,i),e),X(e),n||t},Ce=function(n,i,o,a){if(pn.isArray(n)){var s=n.length,u=[];while(s--)u[s]=Ce(n[s],i,o,a);return u}!t.collect||n!==e&&n!==r||c.push([n,i,o,a]);var l=d.bind(n,i,o,a||Ae);return l},ke=function(t,n,i){if(pn.isArray(t)){var o=t.length,a=[];while(o--)a[o]=ke(t[o],n,i);return a}if(c.length>0&&(t===e||t===r)){o=c.length;while(o--){var s=c[o];t!==s[0]||n&&n!==s[1]||i&&i!==s[2]||d.unbind(s[0],s[1],s[2])}}return d.unbind(t,n,i)},Se=function(e,t,n){return d.fire(e,t,n)},Oe=function(e){if(e&&Hr(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Ee=function(e){for(var t=k(),n=null;e&&e!==t;e=e.parentNode)if(n=Oe(e),null!==n)break;return n},Te=function(){if(c.length>0){var e=c.length;while(e--){var t=c[e];d.unbind(t[0],t[1],t[2])}}_e(i,(function(e,t){u.unload(t),delete i[t]})),ju.setDocument&&ju.setDocument()},De=function(e,t){if(zc){while(e){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},Me=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Ae={doc:e,settings:t,win:r,files:i,stdMode:a,boxModel:s,styleSheetLoader:u,boundEvents:c,styles:f,schema:l,events:d,isBlock:m,$:p,$$:b,root:null,clone:_,getRoot:k,getViewPort:S,getRect:P,getSize:N,getParent:z,getParents:R,get:v,getNext:L,getPrev:$,select:F,is:I,add:W,create:U,createHTML:K,createFragment:Y,remove:X,setStyle:T,getStyle:A,setStyles:D,removeAllAttribs:J,setAttrib:x,setAttribs:V,getAttrib:y,getPos:O,parseStyle:Z,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:ie,removeClass:oe,hasClass:ae,toggleClass:re,show:se,hide:ue,isHidden:ce,uniqueId:le,setHTML:H,getOuterHTML:fe,setOuterHTML:de,decode:q,encode:G,insertAfter:he,replace:pe,rename:me,findCommonAncestor:ve,toHex:ge,run:j,getAttribs:w,isEmpty:ye,createRng:we,nodeIndex:Fc,split:xe,bind:Ce,unbind:ke,fire:Se,getContentEditable:Oe,getContentEditableParent:Ee,destroy:Te,isChildOf:De,dumpRng:Me},Ne=Lc(f,t,M(Ae));return Ae};jc.DOM=jc(document),jc.nodeIndex=Fc;var Vc=jc.DOM,Hc=pn.each,Wc=pn.grep,Uc=0,qc=1,Gc=2,Kc=3,Yc=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,i=Vc,o=function(){i.remove(u),r&&(r.onerror=r.onload=r=null)},a=function(){o(),t()},s=function(){o(),S(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+e)},u=i.uniqueId();r=document.createElement("script"),r.id=u,r.type="text/javascript",r.src=pn._addCacheSuffix(e),this.settings.referrerPolicy&&i.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=s,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===Gc},e.prototype.markDone=function(e){this.states[e]=Gc},e.prototype.add=function(e,t,n,r){var i=this.states[e];this.queue.push(e),void 0===i&&(this.states[e]=Uc),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var i=this,o=[],a=function(e,t){Hc(i.scriptLoadedCallbacks[t],(function(t){S(t[e])&&t[e].call(t.scope)})),i.scriptLoadedCallbacks[t]=void 0};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var s=function(){var t=Wc(e);if(e.length=0,Hc(t,(function(e){i.states[e]!==Gc?i.states[e]!==Kc?i.states[e]!==qc&&(i.states[e]=qc,i.loading++,i.loadScript(e,(function(){i.states[e]=Gc,i.loading--,a("success",e),s()}),(function(){i.states[e]=Kc,i.loading--,o.push(e),a("failure",e),s()}))):a("failure",e):a("success",e)})),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Hc(n,(function(e){0===o.length?S(e.success)&&e.success.call(e.scope):S(e.failure)&&e.failure.call(e.scope,o)}))}};s()},e.ScriptLoader=new e,e}(),Xc=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Jc=function(e){return b(e)&&Ne(e,"raw")},Zc=function(e){return y(e)&&e.length>1},Qc={},el=Xc("en"),tl=function(){return Ae(Qc,el.get())},nl=function(){return Ce(Qc,(function(e){return We({},e)}))},rl=function(e){e&&el.set(e)},il=function(){return el.get()},ol=function(e,t){var n=Qc[e];n||(Qc[e]=n={}),_e(t,(function(e,t){n[t.toLowerCase()]=e}))},al=function(e){var t=tl().getOr({}),n=function(e){return S(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},i=function(e){var r=n(e);return Ae(t,r.toLowerCase()).map(n).getOr(r)},o=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Jc(e))return n(e.raw);if(Zc(e)){var a=e.slice(1),s=i(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Ne(a,t)?n(a[t]):e}));return o(s)}return o(i(e))},sl=function(){return tl().bind((function(e){return Ae(e,"_dir")})).exists((function(e){return"rtl"===e}))},ul=function(e){return Ne(Qc,e)},cl={getData:nl,setCode:rl,getCode:il,add:ol,translate:al,isRtl:sl,hasCode:ul},ll=function(){var e=[],t={},n={},r=[],i=function(e,t){var n=ne(r,(function(n){return n.name===e&&n.state===t}));Q(n,(function(e){return e.callback()}))},o=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},s=function(e,n){!1!==ll.languageLoad&&p(e,(function(){var r=cl.getCode(),i=","+(n||"")+",";!r||n&&-1===i.indexOf(","+r+",")||Yc.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},u=function(t,r,o){var a=r;return e.push(a),n[t]={instance:a,dependencies:o},i(t,"added"),a},c=function(e){delete t[e],delete n[e]},l=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},f=function(e,n){var r=t[e];Q(n,(function(e){Yc.ScriptLoader.add(r+"/"+e)}))},d=function(e,t,n,r){var i=a(e);Q(i,(function(e){var n=l(t,e);h(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Yc))},h=function(e,r,o,a,s){if(!t[e]){var u="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==u.indexOf("/")&&-1===u.indexOf("://")&&(u=ll.baseURL+"/"+u),t[e]=u.substring(0,u.lastIndexOf("/"));var c=function(){i(e,"loaded"),d(e,r,o,a)};n[e]?c():Yc.ScriptLoader.add(u,c,a,s)}},p=function(e,i,o){void 0===o&&(o="added"),Ne(n,e)&&"added"===o||Ne(t,e)&&"loaded"===o?i():r.push({name:e,state:o,callback:i})};return{items:e,urls:t,lookup:n,_listeners:r,get:o,dependencies:a,requireLangPack:s,add:u,remove:c,createUrl:l,addComponents:f,load:h,waitFor:p}};ll.languageLoad=!0,ll.baseURL="",ll.PluginManager=ll(),ll.ThemeManager=ll();var fl=function(e){var t=Xc(W.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(W.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(W.some(e))};return{clear:r,isSet:i,get:o,set:a}},dl=function(){var e=fl(E),t=function(t){return e.get().each(t)};return We(We({},e),{on:t})},hl=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];w(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:i}},pl=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},ml=function(e,t){var n=bi(e,t);return void 0===n||""===n?[]:n.split(" ")},vl=function(e,t,n){var r=ml(e,t),i=r.concat([n]);return vi(e,t,i.join(" ")),!0},gl=function(e,t,n){var r=ne(ml(e,t),(function(e){return e!==n}));return r.length>0?vi(e,t,r.join(" ")):xi(e,t),!1},bl=function(e){return void 0!==e.dom.classList},yl=function(e){return ml(e,"class")},wl=function(e,t){return vl(e,"class",t)},xl=function(e,t){return gl(e,"class",t)},_l=function(e,t){bl(e)?e.dom.classList.add(t):wl(e,t)},Cl=function(e){var t=bl(e)?e.dom.classList:yl(e);0===t.length&&xi(e,"class")},kl=function(e,t){if(bl(e)){var n=e.dom.classList;n.remove(t)}else xl(e,t);Cl(e)},Sl=function(e,t){return bl(e)&&e.dom.classList.contains(t)},Ol=function(e,t){var n=[];return Q(rr(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Ol(e,t))})),n},El=function(e,t){return An(t,e)},Tl=M("mce-annotation"),Dl=M("data-mce-annotation"),Ml=M("data-mce-annotation-uid"),Al=function(e,t){var n=e.selection.getRng(),r=wn.fromDom(n.startContainer),i=wn.fromDom(e.getBody()),o=t.fold((function(){return"."+Tl()}),(function(e){return"["+Dl()+'="'+e+'"]'})),a=ir(r,n.startOffset).getOr(r),s=To(a,o,(function(e){return Pn(e,i)})),u=function(e,t){return wi(e,t)?W.some(bi(e,t)):W.none()};return s.bind((function(t){return u(t,""+Ml()).bind((function(n){return u(t,""+Dl()).map((function(t){var r=Pl(e,n);return{uid:n,name:t,elements:r}}))}))}))},Nl=function(e){return jn(e)&&Sl(e,Tl())},Pl=function(e,t){var n=wn.fromDom(e.getBody());return El(n,"["+Ml()+'="'+t+'"]')},Il=function(e,t){var n=wn.fromDom(e.getBody()),r=El(n,"["+Dl()+'="'+t+'"]'),i={};return Q(r,(function(e){var t=bi(e,Ml()),n=Ae(i,t).getOr([]);i[t]=n.concat([e])})),i},Rl=function(e,t){var n=Xc({}),r=function(){return{listeners:[],previous:dl()}},i=function(e,t){o(e,(function(e){return t(e),e}))},o=function(e,t){var i=n.get(),o=Ae(i,e).getOrThunk(r),a=t(o);i[e]=a,n.set(i)},a=function(e,t,n){i(e,(function(r){Q(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:Z(n,(function(e){return e.dom}))})}))}))},s=function(e){i(e,(function(t){Q(t.listeners,(function(t){return t(!1,e)}))}))},u=pl((function(){var t=n.get(),r=pe(we(t));Q(r,(function(t){o(t,(function(n){var r=n.previous.get();return Al(e,W.some(t)).fold((function(){r.isSome()&&(s(t),n.previous.clear())}),(function(e){var t=e.uid,i=e.name,o=e.elements;ci(r,t)||(a(i,t,o),n.previous.set(t))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){u.cancel()})),e.on("NodeChange",(function(){u.throttle()}));var c=function(e,t){o(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:c}},zl=function(e,t){var n=function(e){return W.from(e.attr(Dl())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Q(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Bl=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return Ae(e,t).map((function(e){return e.settings}))};return{register:t,lookup:n}},Ll=0,$l=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Ll++,e+"_"+r+Ll+String(n)},Fl=function(e,t){Q(t,(function(t){_l(e,t)}))},jl=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,rr(wn.fromDom(r))},Vl=function(e){return Z(e,wn.fromDom)},Hl=function(e){return e.dom.innerHTML},Wl=function(e,t){var n=qn(e),r=n.dom,i=wn.fromDom(r.createDocumentFragment()),o=jl(t,r);kr(i,o),Sr(e),xr(e,i)},Ul=function(e,t){return wn.fromDom(e.dom.cloneNode(t))},ql=function(e){return Ul(e,!1)},Gl=function(e){return Ul(e,!0)},Kl=function(e,t,n){void 0===n&&(n=L);var r=new Fo(e,t),i=function(e){var t;do{t=r[e]()}while(t&&!Qr(t)&&!n(t));return W.from(t).filter(Qr)};return{current:function(){return W.from(r.current()).filter(Qr)},next:function(){return i("next")},prev:function(){return i("prev")},prev2:function(){return i("prev2")}}},Yl=function(e,t){var n=t||function(t){return e.isBlock(t)||ri(t)||ai(t)},r=function(e,t,n,i){if(Qr(e)){var o=i(e,t,e.data);if(-1!==o)return W.some({container:e,offset:o})}return n().bind((function(e){return r(e.container,e.offset,n,i)}))},i=function(e,t,i,o){var a=Kl(e,o,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),i).getOrNull()},o=function(e,t,i,o){var a=Kl(e,o,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),i).getOrNull()};return{backwards:i,forwards:o}},Xl=Math.round,Jl=function(e){return e?{left:Xl(e.left),top:Xl(e.top),bottom:Xl(e.bottom),right:Xl(e.right),width:Xl(e.width),height:Xl(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Zl=function(e,t){return e=Jl(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Ql=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},ef=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},tf=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&ef(t.top-e.bottom,e,t)},nf=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ef(t.bottom-e.top,e,t)},rf=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},of=function(e,t,n){return Math.min(Math.max(e,t),n)},af=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},sf=function(e,t){if(Hr(e)&&e.hasChildNodes()){var n=e.childNodes,r=of(t,0,n.length-1);return n[r]}return e},uf=function(e,t){return t<0&&Hr(e)&&e.hasChildNodes()?void 0:sf(e,t)},cf=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),lf=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&cf.test(e)},ff=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}},df=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}},hf=Hr,pf=$a,mf=Ur("display","block table"),vf=Ur("float","left right"),gf=df(hf,pf,I(vf)),bf=I(Ur("white-space","pre pre-line pre-wrap")),yf=Qr,wf=ri,xf=jc.nodeIndex,_f=uf,Cf=function(e){return"createRange"in e?e.createRange():jc.DOM.createRng()},kf=function(e){return e&&/[\r\n\t ]/.test(e)},Sf=function(e){return!!e.setStart&&!!e.setEnd},Of=function(e){var t=e.startContainer,n=e.startOffset;if(kf(e.toString())&&bf(t.parentNode)&&Qr(t)){var r=t.data;if(kf(r[n-1])||kf(r[n+1]))return!0}return!1},Ef=function(e){var t=e.ownerDocument,n=Cf(t),r=t.createTextNode(ca),i=e.parentNode;i.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var o=Jl(n.getBoundingClientRect());return i.removeChild(r),o},Tf=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&Qr(n)&&0===r&&1===i){var o=e.cloneRange();return o.setEndAfter(n),Mf(o)}return null},Df=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Mf=function(e){var t,n=e.getClientRects();return t=n.length>0?Jl(n[0]):Jl(e.getBoundingClientRect()),!Sf(e)&&wf(e)&&Df(t)?Ef(e):Df(t)&&Sf(e)?Tf(e):t},Af=function(e,t){var n=Zl(e,t);return n.width=1,n.right=n.left+1,n},Nf=function(e){var t=[],n=function(e){0!==e.height&&(t.length>0&&Ql(e,t[t.length-1])||t.push(e))},r=function(e,r){var i=Cf(e.ownerDocument);if(r<e.data.length){if(lf(e.data[r]))return t;if(lf(e.data[r-1])&&(i.setStart(e,r),i.setEnd(e,r+1),!Of(i)))return n(Af(Mf(i),!1)),t}r>0&&(i.setStart(e,r-1),i.setEnd(e,r),Of(i)||n(Af(Mf(i),!1))),r<e.data.length&&(i.setStart(e,r),i.setEnd(e,r+1),Of(i)||n(Af(Mf(i),!0)))},i=e.container(),o=e.offset();if(yf(i))return r(i,o),t;if(hf(i))if(e.isAtEnd()){var a=_f(i,o);yf(a)&&r(a,a.data.length),gf(a)&&!wf(a)&&n(Af(Mf(a),!1))}else{a=_f(i,o);if(yf(a)&&r(a,0),gf(a)&&e.isAtEnd())return n(Af(Mf(a),!1)),t;var s=_f(e.container(),e.offset()-1);gf(s)&&!wf(s)&&(mf(s)||mf(a)||!gf(a))&&n(Af(Mf(s),!1)),gf(a)&&n(Af(Mf(a),!0))}return t},Pf=function(e,t,n){var r=function(){return yf(e),0===t},i=function(){return yf(e)?t>=e.data.length:t>=e.childNodes.length},o=function(){var n=Cf(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Nf(Pf(e,t))),n},s=function(){return a().length>0},u=function(n){return n&&e===n.container()&&t===n.offset()},c=function(n){return _f(e,n?t-1:t)};return{container:M(e),offset:M(t),toRange:o,getClientRects:a,isVisible:s,isAtStart:r,isAtEnd:i,isEqual:u,getNode:c}};Pf.fromRangeStart=function(e){return Pf(e.startContainer,e.startOffset)},Pf.fromRangeEnd=function(e){return Pf(e.endContainer,e.endOffset)},Pf.after=function(e){return Pf(e.parentNode,xf(e)+1)},Pf.before=function(e){return Pf(e.parentNode,xf(e))},Pf.isAbove=function(e,t){return fi(ve(t.getClientRects()),ge(e.getClientRects()),tf).getOr(!1)},Pf.isBelow=function(e,t){return fi(ge(t.getClientRects()),ve(e.getClientRects()),nf).getOr(!1)},Pf.isAtStart=function(e){return!!e&&e.isAtStart()},Pf.isAtEnd=function(e){return!!e&&e.isAtEnd()},Pf.isTextPosition=function(e){return!!e&&Qr(e.container())},Pf.isElementPosition=function(e){return!1===Pf.isTextPosition(e)};var If,Rf=function(e,t){Qr(t)&&0===t.data.length&&e.remove(t)},zf=function(e,t,n){t.insertNode(n),Rf(e,n.previousSibling),Rf(e,n.nextSibling)},Bf=function(e,t,n){var r=W.from(n.firstChild),i=W.from(n.lastChild);t.insertNode(n),r.each((function(t){return Rf(e,t.previousSibling)})),i.each((function(t){return Rf(e,t.nextSibling)}))},Lf=function(e,t,n){ni(n)?Bf(e,t,n):zf(e,t,n)},$f=Qr,Ff=Kr,jf=jc.nodeIndex,Vf=function(e){var t=e.parentNode;return Ff(t)?Vf(t):t},Hf=function(e){return e?je(e.childNodes,(function(e,t){return Ff(t)&&"BR"!==t.nodeName?e=e.concat(Hf(t)):e.push(t),e}),[]):[]},Wf=function(e,t){while(e=e.previousSibling){if(!$f(e))break;t+=e.data.length}return t},Uf=function(e){return function(t){return e===t}},qf=function(e){var t,n;t=Hf(Vf(e)),n=Ve(t,Uf(e),e),t=t.slice(0,n+1);var r=je(t,(function(e,n,r){return $f(n)&&$f(t[r-1])&&e++,e}),0);return t=$e(t,Wr([e.nodeName])),n=Ve(t,Uf(e),e),n-r},Gf=function(e){var t;return t=$f(e)?"text()":e.nodeName.toLowerCase(),t+"["+qf(e)+"]"},Kf=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Yf=function(e,t){var n,r,i,o,a,s=[];return n=t.container(),r=t.offset(),$f(n)?i=Wf(n,r):(o=n.childNodes,r>=o.length?(i="after",r=o.length-1):i="before",n=o[r]),s.push(Gf(n)),a=Kf(e,n),a=$e(a,I(Kr)),s=s.concat(Le(a,(function(e){return Gf(e)}))),s.reverse().join("/")+","+i},Xf=function(e,t,n){var r=Hf(e);return r=$e(r,(function(e,t){return!$f(e)||!$f(r[t-1])})),r=$e(r,Wr([t])),r[n]},Jf=function(e,t){var n,r=e,i=0;while($f(r)){if(n=r.data.length,t>=i&&t<=i+n){e=r,t-=i;break}if(!$f(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return $f(e)&&t>e.data.length&&(t=e.data.length),Pf(e,t)},Zf=function(e,t){var n;if(!t)return null;var r=t.split(","),i=r[0].split("/");n=r.length>1?r[1]:"before";var o=je(i,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Xf(e,n[1],parseInt(n[2],10))):null}),e);return o?$f(o)?Jf(o,parseInt(n,10)):(n="after"===n?jf(o)+1:jf(o),Pf(o.parentNode,n)):null},Qf=ai,ed=function(e,t,n){var r,i;for(i=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Qr(r);r=r.previousSibling)i+=e(r.data).length;return i},td=function(e,t,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],u=[],c=0,l=e.getRoot();for(Qr(a)?u.push(n?ed(t,a,s):s):(o=a.childNodes,s>=o.length&&o.length&&(c=1,s=Math.max(0,o.length-1)),u.push(e.nodeIndex(o[s],n)+c));a&&a!==l;a=a.parentNode)u.push(e.nodeIndex(a,n));return u},nd=function(e,t,n,r){var i=t.dom,o={};return o.start=td(i,e,n,r,!0),t.isCollapsed()||(o.end=td(i,e,n,r,!1)),Ma(r)&&(o.isFakeCaret=!0),o},rd=function(e,t,n){var r=0;return pn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},id=function(e,t){var n,r,i,o=t?"start":"end";n=e[o+"Container"],r=e[o+"Offset"],Hr(n)&&"TR"===n.nodeName&&(i=n.childNodes,n=i[Math.min(t?r:r-1,i.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},od=function(e){return id(e,!0),id(e,!1),e},ad=function(e,t){var n;if(Hr(e)&&(e=sf(e,t),Qf(e)))return e;if(ya(e)){if(Qr(e)&&ga(e)&&(e=e.parentNode),n=e.previousSibling,Qf(n))return n;if(n=e.nextSibling,Qf(n))return n}},sd=function(e){return ad(e.startContainer,e.startOffset)||ad(e.endContainer,e.endOffset)},ud=function(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(Qf(r)||"IMG"===i)return{name:i,index:rd(n.dom,i,r)};var a=sd(o);return a?(i=a.tagName,{name:i,index:rd(n.dom,i,a)}):nd(e,n,t,o)},cd=function(e){var t=e.getRng();return{start:Yf(e.dom.getRoot(),Pf.fromRangeStart(t)),end:Yf(e.dom.getRoot(),Pf.fromRangeEnd(t))}},ld=function(e){return{rng:e.getRng()}},fd=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},dd=function(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),o=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:rd(n,s,a)};var u=od(r.cloneRange());if(!o){u.collapse(!1);var c=fd(n,i+"_end",t);Lf(n,u,c)}r=od(r),r.collapse(!0);var l=fd(n,i+"_start",t);return Lf(n,r,l),e.moveToBookmark({id:i,keep:!0}),{id:i}},hd=function(e,t,n){return 2===t?ud(pa,n,e):3===t?cd(e):t?ld(e):dd(e,!1)},pd=P(ud,A,!0),md=jc.DOM,vd="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",gd=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var i=e.getParam(t,"","hash");return Ae(i,e.id).getOr(n)}return r},bd=function(e){return e.getParam("iframe_attrs",{})},yd=function(e){return e.getParam("doctype","<!DOCTYPE html>")},wd=function(e){return e.getParam("document_base_url","")},xd=function(e){return gd(e,"body_id","tinymce")},_d=function(e){return gd(e,"body_class","")},Cd=function(e){return e.getParam("content_security_policy","")},kd=function(e){return e.getParam("br_in_pre",!0)},Sd=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Od=function(e){return e.getParam("forced_root_block_attrs",{})},Ed=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Td=function(e){return e.getParam("no_newline_selector","")},Dd=function(e){return e.getParam("keep_styles",!0)},Md=function(e){return e.getParam("end_container_on_empty_block",!1)},Ad=function(e){return pn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Nd=function(e){return pn.explode(e.getParam("font_size_classes",""))},Pd=function(e){return e.getParam("images_dataimg_filter",$,"function")},Id=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Rd=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},zd=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Bd=function(e){return e.getParam("icons","","string")},Ld=function(e){return e.getParam("icons_url","","string")},$d=function(e){return e.getParam("images_upload_url","","string")},Fd=function(e){return e.getParam("images_upload_base_path","","string")},jd=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Vd=function(e){return e.getParam("images_upload_handler",null,"function")},Hd=function(e){return e.getParam("content_css_cors",!1,"boolean")},Wd=function(e){return e.getParam("referrer_policy","","string")},Ud=function(e){return e.getParam("language","en","string")},qd=function(e){return e.getParam("language_url","","string")},Gd=function(e){return e.getParam("indent_use_margin",!1)},Kd=function(e){return e.getParam("indentation","40px","string")},Yd=function(e){var t=e.getParam("content_css");return g(t)?Z(t.split(","),ft):y(t)?t:!1===t||e.inline?[]:["default"]},Xd=function(e){var t=e.getParam("font_css",[]);return y(t)?t:Z(t.split(","),ft)},Jd=function(e){return e.getParam("directionality",cl.isRtl()?"rtl":void 0)},Zd=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Qd=function(e){var t=e.getParam("object_resizing");return!1!==t&&!en.iOS&&(g(t)?t:"table,img,figure.image,div,video,iframe")},eh=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},th=function(e){return e.getParam("placeholder",md.getAttrib(e.getElement(),"placeholder"),"string")},nh=function(e){return e.getParam("event_root")},rh=function(e){return e.getParam("service_message")},ih=function(e){return e.getParam("theme")},oh=function(e){return e.getParam("validate")},ah=function(e){return!1!==e.getParam("inline_boundaries")},sh=function(e){return e.getParam("formats")},uh=function(e){var t=e.getParam("preview_styles",vd);return g(t)?t:""},ch=function(e){return e.getParam("format_empty_lines",!1,"boolean")},lh=function(e){return e.getParam("custom_ui_selector","","string")},fh=function(e){return e.getParam("theme_url")},dh=function(e){return e.getParam("inline")},hh=function(e){return e.getParam("hidden_input")},ph=function(e){return e.getParam("submit_patch")},mh=function(e){return"xml"===e.getParam("encoding")},vh=function(e){return e.getParam("add_form_submit_trigger")},gh=function(e){return e.getParam("add_unload_trigger")},bh=function(e){return""!==Sd(e)},yh=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},wh=function(e){return e.getParam("disable_nodechange")},xh=function(e){return e.getParam("readonly")},_h=function(e){return e.getParam("content_css_cors")},Ch=function(e){return e.getParam("plugins","","string")},kh=function(e){return e.getParam("external_plugins")},Sh=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},Oh=function(e){return e.getParam("visual",!0,"boolean")},Eh=function(e){return e.getParam("visual_table_class","mce-item-table","string")},Th=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},Dh=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},Mh=Hr,Ah=Qr,Nh=function(e){var t=e.parentNode;t&&t.removeChild(e)},Ph=function(e){var t=pa(e);return{count:e.length-t.length,text:t}},Ih=function(e){var t;while(-1!==(t=e.data.lastIndexOf(da)))e.deleteData(t,1)},Rh=function(e,t){return jh(e),t},zh=function(e,t){var n=Ph(e.data.substr(0,t.offset())),r=Ph(e.data.substr(t.offset())),i=n.text+r.text;return i.length>0?(Ih(e),Pf(e,t.offset()-n.count)):t},Bh=function(e,t){var n=t.container(),r=Y(be(n.childNodes),e).map((function(e){return e<t.offset()?Pf(n,t.offset()-1):t})).getOr(t);return jh(e),r},Lh=function(e,t){return Ah(e)&&t.container()===e?zh(e,t):Rh(e,t)},$h=function(e,t){return t.container()===e.parentNode?Bh(e,t):Rh(e,t)},Fh=function(e,t){return Pf.isTextPosition(t)?Lh(e,t):$h(e,t)},jh=function(e){Mh(e)&&ya(e)&&(wa(e)?e.removeAttribute("data-mce-caret"):Nh(e)),Ah(e)&&(Ih(e),0===e.data.length&&Nh(e))},Vh=Ut().browser,Hh=ai,Wh=ui,Uh=si,qh="*[contentEditable=false],video,audio,embed,object",Gh=function(e,t,n){var r,i,o=Zl(t.getBoundingClientRect(),n);if("BODY"===e.tagName){var a=e.ownerDocument.documentElement;r=e.scrollLeft||a.scrollLeft,i=e.scrollTop||a.scrollTop}else{var s=e.getBoundingClientRect();r=e.scrollLeft-s.left,i=e.scrollTop-s.top}o.left+=r,o.right+=r,o.top+=i,o.bottom+=i,o.width=1;var u=t.offsetWidth-t.clientWidth;return u>0&&(n&&(u*=-1),o.left+=u,o.right+=u),o},Kh=function(e){for(var t=El(wn.fromDom(e),qh),n=0;n<t.length;n++){var r=t[n].dom,i=r.previousSibling;if(Ea(i)){var o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(o.length-1,1)}if(i=r.nextSibling,Oa(i)){o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(0,1)}}},Yh=function(e,t,n,r){var i,o,a=dl(),s=Sd(e),u=s.length>0?s:"p",c=function(e,r){var i;if(l(),Uh(r))return null;if(!n(r))return o=xa(r,e),i=r.ownerDocument.createRange(),Jh(o.nextSibling)?(i.setStart(o,0),i.setEnd(o,0)):(i.setStart(o,1),i.setEnd(o,1)),i;o=Sa(u,r,e);var s=Gh(t,r,e);Pc(o).css("top",s.top);var c=Pc('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(We({},s)).appendTo(t)[0];return a.set({caret:c,element:r,before:e}),e&&Pc(c).addClass("mce-visual-caret-before"),f(),i=r.ownerDocument.createRange(),i.setStart(o,0),i.setEnd(o,0),i},l=function(){Kh(t),o&&(jh(o),o=null),a.on((function(e){Pc(e.caret).remove(),a.clear()})),i&&(zo.clearInterval(i),i=void 0)},f=function(){i=zo.setInterval((function(){r()?Pc("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Pc("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},d=function(){a.on((function(e){var n=Gh(t,e.element,e.before);Pc(e.caret).css(We({},n))}))},h=function(){return zo.clearInterval(i)},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}},Xh=function(){return Vh.isIE()||Vh.isEdge()||Vh.isFirefox()},Jh=function(e){return Hh(e)||Wh(e)},Zh=function(e){return Jh(e)||Xr(e)&&Xh()},Qh=ai,ep=ui,tp=Ur("display","block table table-cell table-caption list-item"),np=ya,rp=ga,ip=Hr,op=$a,ap=function(e){return e>0},sp=function(e){return e<0},up=function(e,t){var n;while(n=e(t))if(!rp(n))return n;return null},cp=function(e,t,n,r,i){var o=new Fo(e,r),a=Qh(e)||rp(e);if(sp(t)){if(a&&(e=up(o.prev.bind(o),!0),n(e)))return e;while(e=up(o.prev.bind(o),i))if(n(e))return e}if(ap(t)){if(a&&(e=up(o.next.bind(o),!0),n(e)))return e;while(e=up(o.next.bind(o),i))if(n(e))return e}return null},lp=function(e,t){while(e&&e!==t){if(tp(e))return e;e=e.parentNode}return null},fp=function(e,t,n){return lp(e.container(),n)===lp(t.container(),n)},dp=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return ip(n)?n.childNodes[r+e]:null},hp=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},pp=function(e,t,n){return lp(t,e)===lp(n,e)},mp=function(e,t,n){var r=e?"previousSibling":"nextSibling";while(n&&n!==t){var i=n[r];if(np(i)&&(i=i[r]),Qh(i)||ep(i)){if(pp(t,i,n))return i;break}if(op(i))break;n=n.parentNode}return null},vp=P(hp,!0),gp=P(hp,!1),bp=function(e,t,n){var r,i=P(mp,!0,t),o=P(mp,!1,t),a=n.startContainer,s=n.startOffset;if(ga(a)){ip(a)||(a=a.parentNode);var u=a.getAttribute("data-mce-caret");if("before"===u&&(r=a.nextSibling,Zh(r)))return vp(r);if("after"===u&&(r=a.previousSibling,Zh(r)))return gp(r)}if(!n.collapsed)return n;if(Qr(a)){if(np(a)){if(1===e){if(r=o(a),r)return vp(r);if(r=i(a),r)return gp(r)}if(-1===e){if(r=i(a),r)return gp(r);if(r=o(a),r)return vp(r)}return n}if(Ea(a)&&s>=a.data.length-1)return 1===e&&(r=o(a),r)?vp(r):n;if(Oa(a)&&s<=1)return-1===e&&(r=i(a),r)?gp(r):n;if(s===a.data.length)return r=o(a),r?vp(r):n;if(0===s)return r=i(a),r?gp(r):n}return n},yp=function(e,t){return W.from(dp(e?0:-1,t)).filter(Qh)},wp=function(e,t,n){var r=bp(e,t,n);return-1===e?Pf.fromRangeStart(r):Pf.fromRangeEnd(r)},xp=function(e){return W.from(e.getNode()).map(wn.fromDom)},_p=function(e){return W.from(e.getNode(!0)).map(wn.fromDom)},Cp=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},kp=function(e,t){var n=fp(e,t);return!(n||!ri(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(If||(If={}));var Sp=ai,Op=Qr,Ep=Hr,Tp=ri,Dp=$a,Mp=Wa,Ap=Ua,Np=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Pp=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Ip=function(e,t){if(ap(e)){if(Dp(t.previousSibling)&&!Op(t.previousSibling))return Pf.before(t);if(Op(t))return Pf(t,0)}if(sp(e)){if(Dp(t.nextSibling)&&!Op(t.nextSibling))return Pf.after(t);if(Op(t))return Pf(t,t.data.length)}return sp(e)?Tp(t)?Pf.before(t):Pf.after(t):Pf.before(t)},Rp=function(e,t){var n=t.nextSibling;return n&&Dp(n)?Op(n)?Pf(n,0):Pf.before(n):zp(If.Forwards,Pf.after(t),e)},zp=function(e,t,n){var r,i,o,a;if(!Ep(n)||!t)return null;if(t.isEqual(Pf.after(n))&&n.lastChild){if(a=Pf.after(n.lastChild),sp(e)&&Dp(n.lastChild)&&Ep(n.lastChild))return Tp(n.lastChild)?Pf.before(n.lastChild):a}else a=t;var s=a.container(),u=a.offset();if(Op(s)){if(sp(e)&&u>0)return Pf(s,--u);if(ap(e)&&u<s.length)return Pf(s,++u);r=s}else{if(sp(e)&&u>0&&(i=Pp(s,u-1),Dp(i)))return!Mp(i)&&(o=cp(i,e,Ap,i),o)?Op(o)?Pf(o,o.data.length):Pf.after(o):Op(i)?Pf(i,i.data.length):Pf.before(i);if(ap(e)&&u<s.childNodes.length&&(i=Pp(s,u),Dp(i)))return Tp(i)?Rp(n,i):!Mp(i)&&(o=cp(i,e,Ap,i),o)?Op(o)?Pf(o,0):Pf.before(o):Op(i)?Pf(i,0):Pf.after(i);r=i||a.getNode()}if((ap(e)&&a.isAtEnd()||sp(e)&&a.isAtStart())&&(r=cp(r,e,$,n,!0),Ap(r,n)))return Ip(e,r);i=cp(r,e,Ap,n);var c=He(ne(Np(s,n),Sp));return!c||i&&c.contains(i)?i?Ip(e,i):null:(a=ap(e)?Pf.after(c):Pf.before(c),a)},Bp=function(e){return{next:function(t){return zp(If.Forwards,t,e)},prev:function(t){return zp(If.Backwards,t,e)}}},Lp=function(e,t,n){var r=e?Pf.before(n):Pf.after(n);return Up(e,t,r)},$p=function(e){return ri(e)?Pf.before(e):Pf.after(e)},Fp=function(e){return Pf.isTextPosition(e)?0===e.offset():$a(e.getNode())},jp=function(e){if(Pf.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return $a(e.getNode(!0))},Vp=function(e,t){return!Pf.isTextPosition(e)&&!Pf.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Hp=function(e){return!Pf.isTextPosition(e)&&ri(e.getNode())},Wp=function(e,t,n){return e?!Vp(t,n)&&!Hp(t)&&jp(t)&&Fp(n):!Vp(n,t)&&Fp(t)&&jp(n)},Up=function(e,t,n){var r=Bp(t);return W.from(e?r.next(n):r.prev(n))},qp=function(e,t,n){return Up(e,t,n).bind((function(r){return fp(n,r,t)&&Wp(e,n,r)?Up(e,t,r):W.some(r)}))},Gp=function(e,t,n,r){return qp(e,t,n).bind((function(n){return r(n)?Gp(e,t,n,r):W.some(n)}))},Kp=function(e,t){var n=e?t.firstChild:t.lastChild;return Qr(n)?W.some(Pf(n,e?0:n.data.length)):n?$a(n)?W.some(e?Pf.before(n):$p(n)):Lp(e,t,n):W.none()},Yp=P(Up,!0),Xp=P(Up,!1),Jp=P(Kp,!0),Zp=P(Kp,!1),Qp="_mce_caret",em=function(e){return Hr(e)&&e.id===Qp},tm=function(e,t){while(t&&t!==e){if(t.id===Qp)return t;t=t.parentNode}return null},nm=function(e){return g(e.start)},rm=function(e){return Ne(e,"rng")},im=function(e){return Ne(e,"id")},om=function(e){return Ne(e,"name")},am=function(e){return pn.isArray(e.start)},sm=function(e,t){return Hr(t)&&e.isBlock(t)&&!t.innerHTML&&!en.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},um=function(e,t){var n,r=e.createRng();return n=Zf(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Zf(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},cm=function(e,t){var n=e.ownerDocument.createTextNode(da);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},lm=function(e){return!1===e.hasChildNodes()},fm=function(e,t){return Zp(e).fold(L,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},dm=function(e,t,n){return!(!lm(t)||!tm(e,t))&&(cm(t,n),!0)},hm=function(e,t,n,r){var i,o,a,s,u=n[t?"start":"end"],c=e.getRoot();if(u){for(a=u[0],o=c,i=u.length-1;i>=1;i--){if(s=o.childNodes,dm(c,o,r))return!0;if(u[i]>s.length-1)return!!dm(c,o,r)||fm(o,r);o=s[u[i]]}3===o.nodeType&&(a=Math.min(u[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(u[0],o.childNodes.length)),t?r.setStart(o,a):r.setEnd(o,a)}return!0},pm=function(e){return Qr(e)&&e.data.length>0},mm=function(e,t,n){var r,i,o,a,s,u,c=e.get(n.id+"_"+t),l=n.keep;if(c){if(r=c.parentNode,"start"===t?(l?c.hasChildNodes()?(r=c.firstChild,i=1):pm(c.nextSibling)?(r=c.nextSibling,i=0):pm(c.previousSibling)?(r=c.previousSibling,i=c.previousSibling.data.length):(r=c.parentNode,i=e.nodeIndex(c)+1):i=e.nodeIndex(c),s=r,u=i):(l?c.hasChildNodes()?(r=c.firstChild,i=1):pm(c.previousSibling)?(r=c.previousSibling,i=c.previousSibling.data.length):(r=c.parentNode,i=e.nodeIndex(c)):i=e.nodeIndex(c),s=r,u=i),!l){a=c.previousSibling,o=c.nextSibling,pn.each(pn.grep(c.childNodes),(function(e){Qr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(c=e.get(n.id+"_"+t))e.remove(c,!0);a&&o&&a.nodeType===o.nodeType&&Qr(a)&&!en.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),e.remove(o),s=a,u=i)}return W.some(Pf(s,u))}return W.none()},vm=function(e,t){var n=e.createRng();return hm(e,!0,t,n)&&hm(e,!1,t,n)?W.some(n):W.none()},gm=function(e,t){var n=mm(e,"start",t),r=mm(e,"end",t);return fi(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(sm(e,t.container()),t.offset()),r.setEnd(sm(e,n.container()),n.offset()),r}))},bm=function(e,t){return W.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},ym=function(e,t){var n=e.dom;if(t){if(am(t))return vm(n,t);if(nm(t))return W.some(um(n,t));if(im(t))return gm(n,t);if(om(t))return bm(n,t);if(rm(t))return W.some(t.rng)}return W.none()},wm=function(e,t,n){return hd(e,t,n)},xm=function(e,t){ym(e,t).each((function(t){e.setRng(t)}))},_m=function(e){return Hr(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Cm=function(e){return function(t){return e===t}},km=Cm(ca),Sm=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},Om=function(e){return!Sm(e)&&!km(e)},Em=function(e){return!!e.nodeType},Tm=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Dm=function(e,t,n){var r=n.startOffset,i=n.startContainer;if((i!==n.endContainer||!Tm(i.childNodes[r]))&&Hr(i)){var o=i.childNodes,a=void 0;r<o.length?(i=o[r],a=new Fo(i,e.getParent(i,e.isBlock))):(i=o[o.length-1],a=new Fo(i,e.getParent(i,e.isBlock)),a.next(!0));for(var s=a.current();s;s=a.next())if(Qr(s)&&!Pm(s))return n.setStart(s,0),void t.setRng(n)}},Mm=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Hr(e)||!Pm(e))return e}},Am=function(e,t){return Em(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Nm=function(e,t,n){return e.schema.isValidChild(t,n)},Pm=function(e,t){if(void 0===t&&(t=!1),k(e)&&Qr(e)){var n=t?e.data.replace(/ /g," "):e.data;return Ga(n)}return!1},Im=function(e){return k(e)&&Qr(e)&&0===e.length},Rm=function(e,t){return S(e)?e=e(t):k(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},zm=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Bm=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Lm=function(e,t,n){return Bm(e,e.getStyle(t,n),n)},$m=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},Fm=function(e,t,n){return e.getParents(t,n,e.getRoot())},jm=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return J(["styles","attributes"],(function(n){return Ae(e,n).exists((function(e){var n=y(e)?e:Me(e);return J(n,t)}))}))};return J(e.formatter.get(t),n)},Vm=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],i=function(e){return Te(e,(function(e,t){return J(r,(function(e){return e===t}))}))};return J(e.formatter.get(t),(function(t){var r=i(t);return J(e.formatter.get(n),(function(e){var t=i(e);return Ie(r,t)}))}))},Hm=function(e){return Pe(e,"block")},Wm=function(e){return Pe(e,"selector")},Um=function(e){return Pe(e,"inline")},qm=function(e){return Wm(e)&&Um(e)&&ci(Ae(e,"mixed"),!0)},Gm=function(e){return Wm(e)&&!1!==e.expand&&!Um(e)},Km=_m,Ym=Fm,Xm=Pm,Jm=Am,Zm=function(e){return ri(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},Qm=function(e,t){var n=t;while(n){if(Hr(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},ev=function(e,t,n,r){for(var i=t.data,o=n;e?o>=0:o<i.length;e?o--:o++)if(r(i.charAt(o)))return e?o+1:o;return-1},tv=function(e,t,n){return ev(e,t,n,(function(e){return km(e)||Sm(e)}))},nv=function(e,t,n){return ev(e,t,n,Om)},rv=function(e,t,n,r,i,o){var a,s=e.getParent(n,e.isBlock)||t,u=function(t,n,r){var o=Yl(e),u=i?o.backwards:o.forwards;return W.from(u(t,n,(function(e,t){return Km(e.parentNode)?-1:(a=e,r(i,e,t))}),s))},c=u(n,r,tv);return c.bind((function(e){return o?u(e.container,e.offset+(i?-1:0),nv):W.some(e)})).orThunk((function(){return a?W.some({container:a,offset:i?0:a.length}):W.none()}))},iv=function(e,t,n,r,i){Qr(r)&&mt(r.data)&&r[i]&&(r=r[i]);for(var o=Ym(e,r),a=0;a<o.length;a++)for(var s=0;s<t.length;s++){var u=t[s];if((!k(u.collapsed)||u.collapsed===n.collapsed)&&(Wm(u)&&e.is(o[a],u.selector)))return o[a]}return r},ov=function(e,t,n,r){var i=n,o=e.dom,a=o.getRoot(),s=t[0];if(Hm(s)&&(i=s.wrapper?null:o.getParent(n,s.block,a)),!i){var u=o.getParent(n,"LI,TD,TH");i=o.getParent(Qr(n)?n.parentNode:n,(function(t){return t!==a&&Jm(e,t)}),u)}if(i&&Hm(s)&&s.wrapper&&(i=Ym(o,i,"ul,ol").reverse()[0]||i),!i){i=n;while(i[r]&&!o.isBlock(i[r]))if(i=i[r],zm(i,"br"))break}return i||n},av=function(e,t,n,r){var i=n.parentNode;return!k(n[r])&&(!(i!==t&&!C(i)&&!e.isBlock(i))||av(e,t,i,r))},sv=function(e,t,n,r,i){var o=n,a=i?"previousSibling":"nextSibling",s=e.getRoot();if(Qr(n)&&!Xm(n)&&(i?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(o))return o;for(var u=o[a];u;u=u[a]){var c=Qr(u)&&!av(e,s,u,a);if(!Km(u)&&!Zm(u)&&!Xm(u,c))return o}if(o===s||o.parentNode===s){n=o;break}o=o.parentNode}return n},uv=function(e){return Km(e.parentNode)||Km(e)},cv=function(e,t,n,r){void 0===r&&(r=!1);var i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset,u=e.dom,c=n[0];if(Hr(i)&&i.hasChildNodes()&&(i=sf(i,o),Qr(i)&&(o=0)),Hr(a)&&a.hasChildNodes()&&(a=sf(a,t.collapsed?s:s-1),Qr(a)&&(s=a.nodeValue.length)),i=Qm(u,i),a=Qm(u,a),uv(i)&&(i=Km(i)?i:i.parentNode,i=t.collapsed?i.previousSibling||i:i.nextSibling||i,Qr(i)&&(o=t.collapsed?i.length:0)),uv(a)&&(a=Km(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Qr(a)&&(s=t.collapsed?0:a.length)),t.collapsed){var l=rv(u,e.getBody(),i,o,!0,r);l.each((function(e){var t=e.container,n=e.offset;i=t,o=n}));var f=rv(u,e.getBody(),a,s,!1,r);f.each((function(e){var t=e.container,n=e.offset;a=t,s=n}))}return(Um(c)||c.block_expand)&&(Um(c)&&Qr(i)&&0!==o||(i=sv(u,n,i,o,!0)),Um(c)&&Qr(a)&&s!==a.nodeValue.length||(a=sv(u,n,a,s,!1))),Gm(c)&&(i=iv(u,n,t,i,"previousSibling"),a=iv(u,n,t,a,"nextSibling")),(Hm(c)||Wm(c))&&(i=ov(e,n,i,"previousSibling"),a=ov(e,n,a,"nextSibling"),Hm(c)&&(u.isBlock(i)||(i=sv(u,n,i,o,!0)),u.isBlock(a)||(a=sv(u,n,a,s,!1)))),Hr(i)&&(o=u.nodeIndex(i),i=i.parentNode),Hr(a)&&(s=u.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}},lv=function(e,t,n){var r=t.startOffset,i=sf(t.startContainer,r),o=t.endOffset,a=sf(t.endContainer,o-1),s=function(e){var t=e[0];Qr(t)&&t===i&&r>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===o&&e.length>0&&n===a&&Qr(n)&&e.splice(e.length-1,1),e},u=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},c=function(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)},l=function(e,t,r){for(var i=r?"nextSibling":"previousSibling",o=e,a=o.parentNode;o&&o!==t;o=a){a=o.parentNode;var c=u(o===e?o:o[i],i);c.length&&(r||c.reverse(),n(s(c)))}};if(i===a)return n(s([i]));var f=e.findCommonAncestor(i,a);if(e.isChildOf(i,a))return l(i,f,!0);if(e.isChildOf(a,i))return l(a,f);var d=c(i,f)||i,h=c(a,f)||a;l(i,d,!0);var p=u(d===i?d:d.nextSibling,"nextSibling",h===a?h.nextSibling:h);p.length&&n(s(p)),l(a,h)},fv=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},dv=function(e){return ce(e,(function(e){var t=af(e);return t?[wn.fromDom(t)]:[]}))},hv=function(e){return fv(e).length>1},pv=function(e){return ne(dv(e),oa)},mv=function(e){return El(e,"td[data-mce-selected],th[data-mce-selected]")},vv=function(e,t){var n=mv(t);return n.length>0?n:pv(e)},gv=function(e){return vv(fv(e.selection.getSel()),wn.fromDom(e.getBody()))},bv=function(e,t){return Oo(e,"table",t)},yv=function(e){var t=e.startContainer,n=e.startOffset;return Qr(t)?0===n?W.some(wn.fromDom(t)):W.none():W.from(t.childNodes[n]).map(wn.fromDom)},wv=function(e){var t=e.endContainer,n=e.endOffset;return Qr(t)?n===t.data.length?W.some(wn.fromDom(t)):W.none():W.from(t.childNodes[n-1]).map(wn.fromDom)},xv=function(e){return or(e).fold(M([e]),(function(t){return[e].concat(xv(t))}))},_v=function(e){return ar(e).fold(M([e]),(function(t){return"br"===Bn(t)?Qn(t).map((function(t){return[e].concat(_v(t))})).getOr([]):[e].concat(_v(t))}))},Cv=function(e,t){return fi(yv(t),wv(t),(function(t,n){var r=ae(xv(e),P(Pn,t)),i=ae(_v(e),P(Pn,n));return r.isSome()&&i.isSome()})).getOr(!1)},kv=function(e,t,n,r){var i=n,o=new Fo(n,i),a=Te(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!X(["td","th","table"],t.toLowerCase())}));do{if(Qr(n)&&0!==pn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))},Sv=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},Ov=function(e,t){var n=gv(e);n.length>0?Q(n,(function(n){var r=n.dom,i=e.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),t(i,!0)})):t(e.selection.getRng(),!1)},Ev=function(e,t,n){var r=dd(e,t);n(r),e.moveToBookmark(r)},Tv=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?W.from(t.dom.nodeValue):W.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Dv=Tv(Vn,"text"),Mv=function(e){return Dv.get(e)},Av=function(e){return Vn(e)&&Mv(e)===da},Nv=function(e,t,n,r){return Xn(t).fold((function(){return"skipping"}),(function(i){return"br"===r||Av(t)?"valid":Nl(t)?"existing":em(t.dom)?"caret":Nm(e,n,r)&&Nm(e,Bn(i),n)?"valid":"invalid-child"}))},Pv=function(e,t){var n=cv(e,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Iv=function(e,t,n,r){var i=t.uid,o=void 0===i?$l("mce-annotation"):i,a=Ue(t,["uid"]),s=wn.fromTag("span",e);_l(s,Tl()),vi(s,""+Ml(),o),vi(s,""+Dl(),n);var u=r(o,a),c=u.attributes,l=void 0===c?{}:c,f=u.classes,d=void 0===f?[]:f;return gi(s,l),Fl(s,d),s},Rv=function(e,t,n,r,i){var o=[],a=Iv(e.getDoc(),i,n,r),s=dl(),u=function(){s.clear()},c=function(){return s.get().getOrThunk((function(){var e=ql(a);return o.push(e),s.set(e),e}))},l=function(e){Q(e,f)},f=function(t){var n=Nv(e,t,"span",Bn(t));switch(n){case"invalid-child":u();var r=rr(t);l(r),u();break;case"valid":var i=c();_r(t,i);break}},d=function(e){var t=Z(e,wn.fromDom);l(t)};return lv(e.dom,t,(function(e){u(),d(e)})),o},zv=function(e,t,n,r){e.undoManager.transact((function(){var i=e.selection,o=i.getRng(),a=gv(e).length>0;if(o.collapsed&&!a&&Pv(e,o),i.getRng().collapsed&&!a){var s=Iv(e.getDoc(),r,t,n.decorate);Wl(s,ca),i.getRng().insertNode(s.dom),i.select(s.dom)}else Ev(i,!1,(function(){Ov(e,(function(i){Rv(e,i,t,n.decorate,r)}))}))}))},Bv=function(e){var t=Bl();zl(e,t);var n=Rl(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){zv(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Al(e,W.some(t)).each((function(e){var t=e.elements;Q(t,Er)}))},getAll:function(t){var n=Il(e,t);return Ce(n,(function(e){return Z(e,(function(e){return e.dom}))}))}}},Lv=function(e){return{getBookmark:P(wm,e),moveToBookmark:P(xm,e)}};Lv.isBookmarkNode=_m;var $v=function(e,t){while(t&&t!==e){if(oi(t)||ai(t))return t;t=t.parentNode}return null},Fv=function(e,t,n){if(n.collapsed)return!1;if(en.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Hr(r))return J(r.getClientRects(),(function(n){return rf(n,e,t)}))}return J(n.getClientRects(),(function(n){return rf(n,e,t)}))},jv=function(e,t){return e.fire("PreProcess",t)},Vv=function(e,t){return e.fire("PostProcess",t)},Hv=function(e){return e.fire("remove")},Wv=function(e){return e.fire("detach")},Uv=function(e,t){return e.fire("SwitchMode",{mode:t})},qv=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},Gv=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},Kv=function(e){return e.fire("PreInit")},Yv=function(e){return e.fire("PostRender")},Xv=function(e){return e.fire("Init")},Jv=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Zv=function(e,t,n){return e.fire(t,n)},Qv=function(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})},eg=function(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})},tg={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||tg.metaKeyPressed(e)},metaKeyPressed:function(e){return en.mac?e.metaKey:e.ctrlKey&&!e.altKey}},ng=ai,rg=function(e,t){var n,r,i,o,a,s,u,c,l,f,d,h,p,m,v,g,b,y="data-mce-selected",w=t.dom,x=pn.each,_=t.getDoc(),C=document,S=Math.abs,O=Math.round,E=t.getBody(),T={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},D=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},M=function(e){return ui(e)||w.hasClass(e,"mce-preview-object")},A=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return D(e.target)&&!Fv(n.clientX,n.clientY,t)}return D(e.target)&&!Fv(e.clientX,e.clientY,t)},N=function(e){var n=e.target;A(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},P=function(e){return w.is(e,"figure.image")?[e.querySelector("img")]:w.hasClass(e,"mce-preview-object")&&k(e.firstElementChild)?[e,e.firstElementChild]:[e]},I=function(e){var n=Qd(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(w.hasClass(e,"mce-preview-object")?Dn(wn.fromDom(e.firstElementChild),n):Dn(wn.fromDom(e),n))))},R=function(e){return M(e)?w.create("img",{src:en.transparentSrc}):e.cloneNode(!0)},z=function(e,n,r){if(k(r)){var i=P(e);Q(i,(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?w.setStyle(e,n,r):w.setAttrib(e,n,""+r)}))}},B=function(e,t,n){z(e,"width",t),z(e,"height",n)},L=function(e){var a,y,x,_,C;a=e.screenX-s,y=e.screenY-u,m=a*o[2]+f,v=y*o[3]+d,m=m<5?5:m,v=v<5?5:v,x=(D(n)||M(n))&&!1!==eh(t)?!tg.modifierPressed(e):tg.modifierPressed(e),x&&(S(a)>S(y)?(v=O(m*h),m=O(v/h)):(m=O(v/h),v=O(m*h))),B(r,m,v),_=o.startPos.x+a,C=o.startPos.y+y,_=_>0?_:0,C=C>0?C:0,w.setStyles(i,{left:_,top:C,display:"block"}),i.innerHTML=m+" &times; "+v,o[2]<0&&r.clientWidth<=m&&w.setStyle(r,"left",c+(f-m)),o[3]<0&&r.clientHeight<=v&&w.setStyle(r,"top",l+(d-v)),a=E.scrollWidth-g,y=E.scrollHeight-b,a+y!==0&&w.setStyles(i,{left:_-a,top:C-y}),p||(qv(t,n,f,d,"corner-"+o.name),p=!0)},$=function(){var e=p;p=!1,e&&(z(n,"width",m),z(n,"height",v)),w.unbind(_,"mousemove",L),w.unbind(_,"mouseup",$),C!==_&&(w.unbind(C,"mousemove",L),w.unbind(C,"mouseup",$)),w.remove(r),w.remove(i),w.remove(a),F(n),e&&(Gv(t,n,m,v,"corner-"+o.name),w.setAttrib(n,"style",w.getAttrib(n,"style"))),t.nodeChanged()},F=function(e){W();var c=w.getPos(e,E),l=c.x,p=c.y,k=e.getBoundingClientRect(),S=k.width||k.right-k.left,O=k.height||k.bottom-k.top;n!==e&&(j(),n=e,m=v=0);var D=t.fire("ObjectSelected",{target:e}),M=w.getAttrib(n,y,"1");I(e)&&!D.isDefaultPrevented()?x(T,(function(e,t){var c,m=function(c){var m=P(n)[0];s=c.screenX,u=c.screenY,f=m.clientWidth,d=m.clientHeight,h=d/f,o=e,o.name=t,o.startPos={x:S*e[0]+l,y:O*e[1]+p},g=E.scrollWidth,b=E.scrollHeight,a=w.add(E,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),w.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=R(n),w.addClass(r,"mce-clonedresizable"),w.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",w.setStyles(r,{left:l,top:p,margin:0}),B(r,S,O),r.removeAttribute(y),E.appendChild(r),w.bind(_,"mousemove",L),w.bind(_,"mouseup",$),C!==_&&(w.bind(C,"mousemove",L),w.bind(C,"mouseup",$)),i=w.add(E,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" &times; "+d)};c=w.get("mceResizeHandle"+t),c&&w.remove(c),c=w.add(E,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===en.ie&&(c.contentEditable=!1),w.bind(c,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),m(e)})),e.elm=c,w.setStyles(c,{left:S*e[0]+l-c.offsetWidth/2,top:O*e[1]+p-c.offsetHeight/2})})):j(),w.getAttrib(n,y)||n.setAttribute(y,M)},j=function(){W(),n&&n.removeAttribute(y),_e(T,(function(e,t){var n=w.get("mceResizeHandle"+t);n&&(w.unbind(n),w.remove(n))}))},V=function(n){var r,i,o=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};p||t.removed||(x(w.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(y)})),i="mousedown"===n.type?n.target:e.getNode(),i=w.$(i).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],o(i,E)&&(U(),r=e.getStart(!0),o(r,i)&&o(e.getEnd(!0),i))?F(i):j())},H=function(e){return ng($v(t.getBody(),e))},W=function(){_e(T,(function(e){e.elm&&(w.unbind(e.elm),delete e.elm)}))},U=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if(U(),en.browser.isIE()||en.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;p||!/^(TABLE|IMG|HR)$/.test(r)||H(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){zo.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(H(e.target)||ui(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))};w.bind(E,"mscontrolselect",e),t.on("remove",(function(){return w.unbind(E,"mscontrolselect",e)}))}var r=zo.throttle((function(e){t.composing||V(e)}));t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",j),t.on("contextmenu longpress",N,!0)})),t.on("remove",W);var q=function(){n=r=a=null};return{isResizable:I,showResizeRect:F,hideResizeRect:j,updateResizeRect:V,destroy:q}},ig=function(e){return oi(e)||ai(e)},og=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},ag=function(e,t,n){var r,i=n.elementFromPoint(e,t),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),r=pn.toArray(o.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null},sg=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ai(og(n,t,ig))?null:e},ug=function(e,t,n){var r,i,o=n;if(o.caretPositionFromPoint)i=o.caretPositionFromPoint(e,t),i&&(r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0));else if(o.caretRangeFromPoint)r=o.caretRangeFromPoint(e,t);else if(o.body.createTextRange){r=o.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=ag(e,t,n)}return sg(r,n.body)}return r},cg=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},lg=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},fg=function(e,t,n){return null!==lg(e,t,n)},dg=function(e,t,n){return fg(e,t,(function(e){return e.nodeName===n}))},hg=function(e){return e&&"TABLE"===e.nodeName},pg=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},mg=function(e,t){return ya(e)&&!1===fg(e,t,em)},vg=function(e,t,n){var r=new Fo(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(ri(t))return!0},gg=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},bg=function(e,t){while(t&&t!==e){if(ai(t))return!0;t=t.parentNode}return!1},yg=function(e,t,n,r,i){var o,a,s=e.getRoot(),u=e.schema.getNonEmptyElements(),c=e.getParent(i.parentNode,e.isBlock)||s;if(r&&ri(i)&&t&&e.isEmpty(c))return W.some(Pf(i.parentNode,e.nodeIndex(i)));var l=new Fo(i,c);while(a=l[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||mg(a,s))return W.none();if(Qr(a)&&a.nodeValue.length>0)return!1===dg(a,s,"A")?W.some(Pf(a,r?a.nodeValue.length:0)):W.none();if(e.isBlock(a)||u[a.nodeName.toLowerCase()])return W.none();o=a}return n&&o?W.some(Pf(o,0)):W.none()},wg=function(e,t,n,r){var i,o,a,s,u=e.getRoot(),c=!1;i=r[(n?"start":"end")+"Container"],o=r[(n?"start":"end")+"Offset"];var l=Hr(i)&&o===i.childNodes.length,f=e.schema.getNonEmptyElements();if(s=n,ya(i))return W.none();if(Hr(i)&&o>i.childNodes.length-1&&(s=!1),ti(i)&&(i=u,o=0),i===u){if(s&&(a=i.childNodes[o>0?o-1:0],a)){if(ya(a))return W.none();if(f[a.nodeName]||hg(a))return W.none()}if(i.hasChildNodes()){if(o=Math.min(!s&&o>0?o-1:o,i.childNodes.length-1),i=i.childNodes[o],o=Qr(i)&&l?i.data.length:0,!t&&i===u.lastChild&&hg(i))return W.none();if(bg(u,i)||ya(i))return W.none();if(i.hasChildNodes()&&!1===hg(i)){a=i;var d=new Fo(i,u);do{if(ai(a)||ya(a)){c=!1;break}if(Qr(a)&&a.nodeValue.length>0){o=s?0:a.nodeValue.length,i=a,c=!0;break}if(f[a.nodeName.toLowerCase()]&&!pg(a)){o=e.nodeIndex(a),i=a.parentNode,s||o++,c=!0;break}}while(a=s?d.next():d.prev())}}}return t&&(Qr(i)&&0===o&&yg(e,l,t,!0,i).each((function(e){i=e.container(),o=e.offset(),c=!0})),Hr(i)&&(a=i.childNodes[o],a||(a=i.childNodes[o-1]),!a||!ri(a)||gg(a,"A")||vg(e,a,!1)||vg(e,a,!0)||yg(e,l,t,!0,a).each((function(e){i=e.container(),o=e.offset(),c=!0})))),s&&!t&&Qr(i)&&o===i.nodeValue.length&&yg(e,l,t,!1,i).each((function(e){i=e.container(),o=e.offset(),c=!0})),c?W.some(Pf(i,o)):W.none()},xg=function(e,t){var n=t.collapsed,r=t.cloneRange(),i=Pf.fromRangeStart(t);return wg(e,n,!0,r).each((function(e){n&&Pf.isAbove(i,e)||r.setStart(e.container(),e.offset())})),n||wg(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),cg(t,r)?W.none():W.some(r)},_g=function(e,t){return e.splitText(t)},Cg=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&Qr(t)?n>0&&n<t.nodeValue.length&&(r=_g(t,n),t=r.previousSibling,i>n?(i-=n,t=r=_g(r,i).previousSibling,i=r.nodeValue.length,n=0):i=0):(Qr(t)&&n>0&&n<t.nodeValue.length&&(t=_g(t,n),n=0),Qr(r)&&i>0&&i<r.nodeValue.length&&(r=_g(r,i).previousSibling,i=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}},kg=function(e){var t=function(t,n){return lv(e,t,n)},n=Cg,r=function(t){return xg(e,t).fold(L,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};kg.compareRanges=cg,kg.getCaretRangeFromPoint=ug,kg.getSelectedNode=af,kg.getNode=sf;var Sg,Og=function(e,t){var n=function(t,n){if(!O(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;pi(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Si(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return ie(t,(function(t,n){var r=Si(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},Eg=Og("height",(function(e){var t=e.dom;return Tr(e)?t.getBoundingClientRect().height:t.offsetHeight})),Tg=function(e){return Eg.get(e)},Dg=function(e,t){var n=e.view(t);return n.fold(M([]),(function(t){var n=e.owner(t),r=Dg(e,n);return[t].concat(r)}))},Mg=function(e,t){var n=t.owner(e);return Dg(t,n)},Ag=function(e){var t,n=e.dom===document?W.none():W.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(wn.fromDom)},Ng=function(e){return Gn(e)},Pg=Object.freeze({__proto__:null,view:Ag,owner:Ng}),Ig=function(e){var t=wn.fromDom(document),n=Rr(t),r=Mg(e,Pg),i=Ir(e),o=re(r,(function(e,t){var n=Ir(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Mr(o.left+i.left+n.left,o.top+i.top+n.top)},Rg=function(e){return"textarea"===Bn(e)},zg=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Bg=function(e,t){e.fire("AfterScrollIntoView",t)},Lg=function(e,t){var n=rr(e);if(0===n.length||Rg(e))return{element:e,offset:t};if(t<n.length&&!Rg(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Rg(r)?{element:e,offset:t}:"img"===Bn(r)?{element:r,offset:1}:Vn(r)?{element:r,offset:Mv(r).length}:{element:r,offset:rr(r).length}},$g=function(e,t){var n=Pr(e),r=Tg(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},Fg=function(e,t){var n=Lg(e,t),r=wn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+da+"</span>");return br(n.element,r),$g(r,(function(){return Or(r)}))},jg=function(e){return $g(wn.fromDom(e),E)},Vg=function(e,t,n,r){qg(e,(function(i,o){return Wg(e,t,n,r)}),n)},Hg=function(e,t,n,r,i){var o={elm:r.element.dom,alignToTop:i};if(!zg(e,o)){var a=Rr(t).top;n(t,a,r,i),Bg(e,o)}},Wg=function(e,t,n,r){var i=wn.fromDom(e.getBody()),o=wn.fromDom(e.getDoc());Di(i);var a=Fg(wn.fromDom(n.startContainer),n.startOffset);Hg(e,o,t,a,r),a.cleanup()},Ug=function(e,t,n,r){var i=wn.fromDom(e.getDoc());Hg(e,i,n,jg(t),r)},qg=function(e,t,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;t(wn.fromDom(r),wn.fromDom(o));var s=e.dom.createRng();s.setStart(r,i),s.setEnd(o,a),e.selection.setRng(n)},Gg=function(e,t,n,r){var i=e.pos;if(n)zr(i.left,i.top,r);else{var o=i.top-t+e.height;zr(i.left,o,r)}},Kg=function(e,t,n,r,i){var o=n+t,a=r.pos.top,s=r.bottom,u=s-a>=n;if(a<t)Gg(r,n,!1!==i,e);else if(a>o){var c=u?!1!==i:!0===i;Gg(r,n,c,e)}else s>o&&!u&&Gg(r,n,!0===i,e)},Yg=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Kg(e,t,i,n,r)},Xg=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Kg(e,t,i,n,r);var o=Ig(n.element),a=Fr(window);o.top<a.y?Br(n.element,!1!==r):o.top>a.bottom&&Br(n.element,!0===r)},Jg=function(e,t,n){return Vg(e,Yg,t,n)},Zg=function(e,t,n){return Ug(e,t,Yg,n)},Qg=function(e,t,n){return Vg(e,Xg,t,n)},eb=function(e,t,n){return Ug(e,t,Xg,n)},tb=function(e,t,n){var r=e.inline?Zg:eb;r(e,t,n)},nb=function(e,t,n){var r=e.inline?Jg:Qg;r(e,t,n)},rb=function(){return wn.fromDom(document)},ib=function(e){return e.dom.focus()},ob=function(e){var t=dr(e).dom;return e.dom===t.activeElement},ab=function(e){return void 0===e&&(e=rb()),W.from(e.dom.activeElement).map(wn.fromDom)},sb=function(e){return ab(dr(e)).filter((function(t){return e.dom.contains(t.dom)}))},ub=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},cb={create:ub},lb=Qi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),fb=function(e,t,n,r){return e.fold(t,n,r)},db=function(e){return e.fold(A,A,A)},hb=lb.before,pb=lb.on,mb=lb.after,vb={before:hb,on:pb,after:mb,cata:fb,getStart:db},gb=Qi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),bb=function(e){return gb.exact(e.start,e.soffset,e.finish,e.foffset)},yb=function(e){return e.match({domRange:function(e){return wn.fromDom(e.startContainer)},relative:function(e,t){return vb.getStart(e)},exact:function(e,t,n,r){return e}})},wb=gb.domRange,xb=gb.relative,_b=gb.exact,Cb=function(e){var t=yb(e);return Yn(t)},kb=cb.create,Sb={domRange:wb,relative:xb,exact:_b,exactFromRange:bb,getWin:Cb,range:kb},Ob=Ut().browser,Eb=function(e,t){var n=Vn(t)?Mv(t).length:rr(t).length+1;return e>n?n:e<0?0:e},Tb=function(e){return Sb.range(e.start,Eb(e.soffset,e.start),e.finish,Eb(e.foffset,e.finish))},Db=function(e,t){return!Vr(t.dom)&&(zn(e,t)||Pn(e,t))},Mb=function(e){return function(t){return Db(e,t.start)&&Db(e,t.finish)}},Ab=function(e){return!0===e.inline||Ob.isIE()},Nb=function(e){return Sb.range(wn.fromDom(e.startContainer),e.startOffset,wn.fromDom(e.endContainer),e.endOffset)},Pb=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?W.from(t.getRangeAt(0)):W.none();return n.map(Nb)},Ib=function(e){var t=Yn(e);return Pb(t.dom).filter(Mb(e))},Rb=function(e,t){return W.from(t).filter(Mb(e)).map(Tb)},zb=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),W.some(t)}catch(n){return W.none()}},Bb=function(e){var t=Ab(e)?Ib(wn.fromDom(e.getBody())):W.none();e.bookmark=t.isSome()?t:e.bookmark},Lb=function(e,t){var n=wn.fromDom(e.getBody()),r=Ab(e)?W.from(t):W.none(),i=r.map(Nb).filter(Mb(n));e.bookmark=i.isSome()?i:e.bookmark},$b=function(e){var t=e.bookmark?e.bookmark:W.none();return t.bind((function(t){return Rb(wn.fromDom(e.getBody()),t)})).bind(zb)},Fb=function(e){$b(e).each((function(t){return e.selection.setRng(t)}))},jb=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},Vb={isEditorUIElement:jb},Hb=function(e){return"nodechange"===e.type&&e.selectionChange},Wb=function(e,t){var n=function(){t.throttle()};jc.DOM.bind(document,"mouseup",n),e.on("remove",(function(){jc.DOM.unbind(document,"mouseup",n)}))},Ub=function(e){e.on("focusout",(function(){Bb(e)}))},qb=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},Gb=function(e,t){var n=Ut().browser;n.isIE()?Ub(e):qb(e,t),e.on("keyup NodeChange",(function(t){Hb(t)||Bb(e)}))},Kb=function(e){var t=hl((function(){Bb(e)}),0);e.on("init",(function(){e.inline&&Wb(e,t),Gb(e,t)})),e.on("remove",(function(){t.cancel()}))},Yb=jc.DOM,Xb=function(e){return Vb.isEditorUIElement(e)},Jb=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Zb=function(e,t){var n=lh(e),r=Yb.getParent(t,(function(t){return Xb(t)||!!n&&e.dom.is(t,n)}));return null!==r},Qb=function(e){try{var t=dr(wn.fromDom(e.getElement()));return ab(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},ey=function(e,t){var n=t.editor;Kb(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){zo.setEditorTimeout(n,(function(){var t=e.focusedEditor;Zb(n,Qb(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Sg||(Sg=function(t){var n=e.activeEditor;n&&vr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Zb(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Yb.bind(document,"focusin",Sg))},ty=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Yb.unbind(document,"focusin",Sg),Sg=null)},ny=function(e){e.on("AddEditor",P(ey,e)),e.on("RemoveEditor",P(ty,e))},ry=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},iy=function(e){return e.collapsed?W.from(sf(e.startContainer,e.startOffset)).map(wn.fromDom):W.none()},oy=function(e,t){return iy(t).bind((function(t){return ia(t)?W.some(t):!1===zn(e,t)?W.some(e):W.none()}))},ay=function(e,t){oy(wn.fromDom(e.getBody()),t).bind((function(e){return Jp(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},sy=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},uy=function(e){return ob(e)||sb(e).isSome()},cy=function(e){return e.iframeElement&&ob(wn.fromDom(e.iframeElement))},ly=function(e){var t=e.getBody();return t&&uy(wn.fromDom(t))},fy=function(e){var t=dr(wn.fromDom(e.getElement()));return ab(t).filter((function(t){return!Jb(t.dom)&&Zb(e,t.dom)})).isSome()},dy=function(e){return e.inline?ly(e):cy(e)},hy=function(e){return dy(e)||fy(e)},py=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===dy(e)&&$b(e).each((function(t){e.selection.setRng(t),r=t}));var i=ry(e,t.getNode());if(e.$.contains(n,i))return sy(i),ay(e,r),void my(e);e.inline||(en.opera||sy(n),e.getWin().focus()),(en.gecko||e.inline)&&(sy(n),ay(e,r)),my(e)},my=function(e){return e.editorManager.setActive(e)},vy=function(e,t){e.removed||(t?my(e):py(e))},gy=function(e,t,n,r,i){var o=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return W.from(o).map(wn.fromDom).map((function(e){return r&&t.collapsed?e:ir(e,i(e,a)).getOr(e)})).bind((function(e){return jn(e)?W.some(e):Xn(e).filter(jn)})).map((function(e){return e.dom})).getOr(e)},by=function(e,t,n){return gy(e,t,!0,n,(function(e,t){return Math.min(sr(e),t)}))},yy=function(e,t,n){return gy(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},wy=function(e,t){var n=e;while(e&&Qr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},xy=function(e,t){var n,r,i;if(!t)return e;r=t.startContainer,i=t.endContainer;var o=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===i&&a-o<2&&r.hasChildNodes()&&(n=r.childNodes[o]),3===r.nodeType&&3===i.nodeType&&(r=r.length===o?wy(r.nextSibling,!0):r.parentNode,i=0===a?wy(i.previousSibling,!1):i.parentNode,r&&r===i))?r:n&&3===n.nodeType?n.parentNode:n},_y=function(e,t,n,r){var i,o=[],a=e.getRoot();if(n=e.getParent(n||by(a,t,t.collapsed),e.isBlock),r=e.getParent(r||yy(a,t,t.collapsed),e.isBlock),n&&n!==a&&o.push(n),n&&r&&n!==r){i=n;var s=new Fo(n,a);while((i=s.next())&&i!==r)e.isBlock(i)&&o.push(i)}return r&&n!==r&&r!==a&&o.push(r),o},Cy=function(e,t,n){return W.from(t).map((function(t){var r=e.nodeIndex(t),i=e.createRng();return i.setStart(t.parentNode,r),i.setEnd(t.parentNode,r+1),n&&(kv(e,i,t,!0),kv(e,i,t,!1)),i}))},ky=function(e,t){return Z(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},Sy={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Oy=function(e,t,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(e[r])return e[r];if(e!==t){var o=e[i];if(o)return o;for(var a=e.parent;a&&a!==t;a=a.parent)if(o=a[i],o)return o}},Ey=function(e){if(!Ga(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},Ty=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Dy=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,Sy[t]||1);return n&&_e(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&_e(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var i=n.length;while(i--)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){i=n.length;while(i--)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var i=[];i.map={};for(var o=0,a=t.length;o<a;o++){var s=t[o];"id"!==s.name&&(i[i.length]={name:s.name,value:s.value},i.map[s.name]=s.value)}r.attributes=i}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Oy(r,t))r.name===e&&n.push(r);return n},e.prototype.children=function(){for(var e=this,t=[],n=e.firstChild;n;n=n.next)t.push(n);return t},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Oy(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,i=r.firstChild;if(Ty(r))return!1;if(i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(e[i.name])return!1;if(Ty(i))return!1}if(8===i.type)return!1;if(3===i.type&&!Ey(i))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&Ga(i.value))return!1;if(n&&n(i))return!1}while(i=Oy(i,r));return!0},e.prototype.walk=function(e){return Oy(this,null,e)},e}(),My=pn.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT"," "),Ay=function(e){return g(e.nodeValue)&&ut(e.nodeValue,da)},Ny=function(e){return(0===e.length?"":Z(e,(function(e){return"["+e+"]"})).join(",")+",")+'[data-mce-bogus="all"]'},Py=function(e,t){return t.querySelectorAll(Ny(e))},Iy=function(e,t,n){return document.createTreeWalker(e,t,n,!1)},Ry=function(e){return Iy(e,NodeFilter.SHOW_COMMENT,(function(e){return Ay(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}))},zy=function(e){return Iy(e,NodeFilter.SHOW_TEXT,(function(e){if(Ay(e)){var t=e.parentNode;return t&&Ne(My,t.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}))},By=function(e){return null!==Ry(e).nextNode()},Ly=function(e){return null!==zy(e).nextNode()},$y=function(e,t){return null!==t.querySelector(Ny(e))},Fy=function(e,t){Q(Py(e,t),(function(t){var n=wn.fromDom(t);"all"===bi(n,"data-mce-bogus")?Or(n):Q(e,(function(e){wi(n,e)&&xi(n,e)}))}))},jy=function(e){var t=e.nextNode();while(null!==t)t.nodeValue=null,t=e.nextNode()},Vy=T(jy,Ry),Hy=T(jy,zy),Wy=function(e,t){var n=[{condition:P($y,t),action:P(Fy,t)},{condition:By,action:Vy},{condition:Ly,action:Hy}],r=e,i=!1;return Q(n,(function(t){var n=t.condition,o=t.action;n(r)&&(i||(r=e.cloneNode(!0),i=!0),o(r))})),r},Uy=function(e,t){var n=Sd(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},qy=function(e,t){return We(We({},e),{format:t,get:!0,getInner:!0})},Gy=function(e,t,n,r){var i,o=qy(t,n),a=t.no_events?o:e.fire("BeforeGetContent",o);return i="raw"===a.format?pn.trim(pa(Wy(r,e.serializer.getTempAttrs()).innerHTML)):"text"===a.format?e.dom.isEmpty(r)?"":pa(r.innerText||r.textContent):"tree"===a.format?e.serializer.serialize(r,a):Uy(e,e.serializer.serialize(r,a)),X(["text","tree"],a.format)||aa(wn.fromDom(r))?a.content=i:a.content=pn.trim(i),a.no_events?a.content:e.fire("GetContent",a).content},Ky=function(e,t,n){return W.from(e.getBody()).fold(M("tree"===t.format?new Dy("body",11):""),(function(r){return Gy(e,t,n,r)}))},Yy=pn.each,Xy=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return Yy(e.getAttribs(t),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))})),n},i=function(e,t){var n,r;for(r in e)if(Ne(e,r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(Ne(t,r))return!1;return!0};return!!i(r(t),r(n))&&(!!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!_m(t)&&!_m(n)))};return{compare:t}},Jy=pn.makeMap,Zy=function(e){var t=[];e=e||{};var n=e.indent,r=Jy(e.indent_before||""),i=Jy(e.indent_after||""),o=Ts.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,s,u){var c,l,f,d;if(n&&r[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n")),t.push("<",e),s)for(c=0,l=s.length;c<l;c++)f=s[c],t.push(" ",f.name,'="',o(f.value,!0),'"');t[t.length]=!u||a?">":" />",u&&n&&i[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&i[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:o(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",o(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}},Qy=function(e,t){void 0===t&&(t=js());var n=Zy(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r=o[e.type];if(r)r(e);else{var s=e.name,u=e.shortEnded,c=e.attributes;if(i&&c&&c.length>1){var l=[];l.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,h=f.attributesOrder.length;d<h;d++){var p=f.attributesOrder[d];if(p in c.map){var m=c.map[p];l.map[p]=m,l.push({name:p,value:m})}}for(d=0,h=c.length;d<h;d++){p=c[d].name;if(!(p in l.map)){m=c.map[p];l.map[p]=m,l.push({name:p,value:m})}}c=l}}if(n.start(e.name,c,u),!u){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(s)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},ew=new Set;(function(){var e=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];Q(e,(function(e){ew.add(e)}))})();var tw=["font","text-decoration","text-emphasis"],nw=function(e,t){return we(e.parseStyle(e.getAttrib(t,"style")))},rw=function(e){return ew.has(e)},iw=function(e,t){return le(nw(e,t),(function(e){return!rw(e)}))},ow=function(e){return ne(e,(function(e){return J(tw,(function(t){return ct(e,t)}))}))},aw=function(e,t,n){var r=nw(e,t),i=nw(e,n),o=function(r){var i=e.getStyle(t,r),o=e.getStyle(n,r);return pt(i)&&pt(o)&&i!==o};return J(r,(function(e){var t=function(t){return J(t,(function(t){return t===e}))};if(!t(i)&&t(tw)){var n=ow(i);return J(n,o)}return o(e)}))},sw=function(e,t,n){return W.from(n.container()).filter(Qr).exists((function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))}))},uw=P(sw,!0,Sm),cw=P(sw,!1,Sm),lw=function(e){var t=e.container();return Qr(t)&&(0===t.data.length||ha(t.data)&&Lv.isBookmarkNode(t.parentNode))},fw=function(e,t){return function(n){return W.from(dp(e?0:-1,n)).filter(t).isSome()}},dw=function(e){return ii(e)&&"block"===Si(wn.fromDom(e),"display")},hw=function(e){return ai(e)&&!Yr(e)},pw=fw(!0,dw),mw=fw(!1,dw),vw=fw(!0,ui),gw=fw(!1,ui),bw=fw(!0,Xr),yw=fw(!1,Xr),ww=fw(!0,hw),xw=fw(!1,hw),_w=function(e){var t=[],n=e.dom;while(n)t.push(wn.fromDom(n)),n=n.lastChild;return t},Cw=function(e){var t=El(e,"br"),n=ne(_w(e).slice(-1),ea);t.length===n.length&&Q(n,Or)},kw=function(e){Sr(e),xr(e,wn.fromHtml('<br data-mce-bogus="1">'))},Sw=function(e){ar(e).each((function(t){Qn(t).each((function(n){Jo(e)&&ea(t)&&Jo(n)&&Or(t)}))}))},Ow=function(e){return e.slice(0,-1)},Ew=function(e,t,n){return zn(t,e)?Ow(Jn(e,(function(e){return n(e)||Pn(e,t)}))):[]},Tw=function(e,t){return Ew(e,t,L)},Dw=function(e,t){return[e].concat(Tw(e,t))},Mw=function(e,t,n){return Gp(e,t,n,lw)},Aw=function(e,t){return ae(Dw(wn.fromDom(t.container()),e),Jo)},Nw=function(e,t,n){return Mw(e,t.dom,n).forall((function(e){return Aw(t,n).fold((function(){return!1===fp(e,n,t.dom)}),(function(r){return!1===fp(e,n,t.dom)&&zn(r,wn.fromDom(e.container()))}))}))},Pw=function(e,t,n){return Aw(t,n).fold((function(){return Mw(e,t.dom,n).forall((function(e){return!1===fp(e,n,t.dom)}))}),(function(t){return Mw(e,t.dom,n).isNone()}))},Iw=P(Pw,!1),Rw=P(Pw,!0),zw=P(Nw,!1),Bw=P(Nw,!0),Lw=function(e){return xp(e).exists(ea)},$w=function(e,t,n){var r=ne(Dw(wn.fromDom(n.container()),t),Jo),i=ve(r).getOr(t);return Up(e,i.dom,n).filter(Lw)},Fw=function(e,t){return xp(t).exists(ea)||$w(!0,e,t).isSome()},jw=function(e,t){return _p(t).exists(ea)||$w(!1,e,t).isSome()},Vw=P($w,!1),Hw=P($w,!0),Ww=function(e){return Pf.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},Uw=function(e,t){var n=ne(Dw(wn.fromDom(t.container()),e),Jo);return ve(n).getOr(e)},qw=function(e,t){return Ww(t)?cw(t):cw(t)||Xp(Uw(e,t).dom,t).exists(cw)},Gw=function(e,t){return Ww(t)?uw(t):uw(t)||Yp(Uw(e,t).dom,t).exists(uw)},Kw=function(e){return X(["pre","pre-wrap"],e)},Yw=function(e){return xp(e).bind((function(e){return Co(e,jn)})).exists((function(e){return Kw(Si(e,"white-space"))}))},Xw=function(e,t){return Xp(e.dom,t).isNone()},Jw=function(e,t){return Yp(e.dom,t).isNone()},Zw=function(e,t){return Xw(e,t)||Jw(e,t)||Iw(e,t)||Rw(e,t)||jw(e,t)||Fw(e,t)},Qw=function(e,t){return!Yw(t)&&(Zw(e,t)||qw(e,t)||Gw(e,t))},ex=function(e,t){return!Yw(t)&&(Iw(e,t)||zw(e,t)||jw(e,t)||qw(e,t))},tx=function(e){var t=e.container(),n=e.offset();return Qr(t)&&n<t.data.length?Pf(t,n+1):e},nx=function(e,t){return!Yw(t)&&(Rw(e,t)||Bw(e,t)||Fw(e,t)||Gw(e,t))},rx=function(e,t){return ex(e,t)||nx(e,tx(t))},ix=function(e,t){return km(e.charAt(t))},ox=function(e){var t=e.container();return Qr(t)&&ut(t.data,ca)},ax=function(e){var t=e.split("");return Z(t,(function(e,n){return km(e)&&n>0&&n<t.length-1&&Om(t[n-1])&&Om(t[n+1])?" ":e})).join("")},sx=function(e,t){var n=t.data,r=Pf(t,0);return!(!ix(n,0)||rx(e,r))&&(t.data=" "+n.slice(1),!0)},ux=function(e){var t=e.data,n=ax(t);return n!==t&&(e.data=n,!0)},cx=function(e,t){var n=t.data,r=Pf(t,n.length-1);return!(!ix(n,n.length-1)||rx(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},lx=function(e,t){return W.some(t).filter(ox).bind((function(t){var n=t.container(),r=sx(e,n)||ux(n)||cx(e,n);return r?W.some(t):W.none()}))},fx=function(e){var t=wn.fromDom(e.getBody());e.selection.isCollapsed()&&lx(t,Pf.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},dx=function(e,t,n){var r=ie(e,(function(r,i){return Sm(i)||km(i)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+ca}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}}),{previousCharIsSpace:!1,str:""});return r.str},hx=function(e,t,n){if(0!==n){var r=wn.fromDom(e),i=_o(r,Jo).getOr(r),o=e.data.slice(t,t+n),a=t+n>=e.data.length&&nx(i,Pf(e,e.data.length)),s=0===t&&ex(i,Pf(e,0));e.replaceData(t,n,dx(o,s,a))}},px=function(e,t){var n=e.data.slice(t),r=n.length-dt(n).length;hx(e,t,r)},mx=function(e,t){var n=e.data.slice(0,t),r=n.length-ht(n).length;hx(e,t-r,r)},vx=function(e,t,n,r){void 0===r&&(r=!0);var i=ht(e.data).length,o=r?e:t,a=r?t:e;return r?o.appendData(a.data):o.insertData(0,a.data),Or(wn.fromDom(a)),n&&px(o,i),o},gx=function(e,t){var n=e.container(),r=e.offset();return!1===Pf.isTextPosition(e)&&n===t.parentNode&&r>Pf.before(t).offset()},bx=function(e,t){return gx(t,e)?Pf(t.container(),t.offset()-1):t},yx=function(e){return Qr(e)?Pf(e,0):Pf.before(e)},wx=function(e){return Qr(e)?Pf(e,e.data.length):Pf.after(e)},xx=function(e){return $a(e.previousSibling)?W.some(wx(e.previousSibling)):e.previousSibling?Zp(e.previousSibling):W.none()},_x=function(e){return $a(e.nextSibling)?W.some(yx(e.nextSibling)):e.nextSibling?Jp(e.nextSibling):W.none()},Cx=function(e,t){var n=Pf.before(t.previousSibling?t.previousSibling:t.parentNode);return Xp(e,n).fold((function(){return Yp(e,Pf.after(t))}),W.some)},kx=function(e,t){return Yp(e,Pf.after(t)).fold((function(){return Xp(e,Pf.before(t))}),W.some)},Sx=function(e,t){return xx(t).orThunk((function(){return _x(t)})).orThunk((function(){return Cx(e,t)}))},Ox=function(e,t){return _x(t).orThunk((function(){return xx(t)})).orThunk((function(){return kx(e,t)}))},Ex=function(e,t,n){return e?Ox(t,n):Sx(t,n)},Tx=function(e,t,n){return Ex(e,t,n).map(P(bx,n))},Dx=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},Mx=function(e){return function(t){return t.dom===e}},Ax=function(e,t){return t&&Ne(e.schema.getBlockElements(),Bn(t))},Nx=function(e){if(ns(e)){var t=wn.fromHtml('<br data-mce-bogus="1">');return Sr(e),xr(e,t),W.some(Pf.before(t.dom))}return W.none()},Px=function(e,t,n){var r=Qn(e).filter(Vn),i=er(e).filter(Vn);return Or(e),di(r,i,t,(function(e,t,r){var i=e.dom,o=t.dom,a=i.data.length;return vx(i,o,n),r.container()===o?Pf(i,a):r})).orThunk((function(){return n&&(r.each((function(e){return mx(e.dom,e.dom.length)})),i.each((function(e){return px(e.dom,0)}))),t}))},Ix=function(e,t){return Ne(e.schema.getTextInlineElements(),Bn(t))},Rx=function(e,t,n,r){void 0===r&&(r=!0);var i=Tx(t,e.getBody(),n.dom),o=_o(n,P(Ax,e),Mx(e.getBody())),a=Px(n,i,Ix(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):o.bind(Nx).fold((function(){r&&Dx(e,t,a)}),(function(n){r&&Dx(e,t,W.some(n))}))},zx=function(e){return function(t){return Pn(e,t)}},Bx=function(e){return El(e,"td,th")},Lx=function(e,t){var n=function(e){return bv(wn.fromDom(e),t)},r=n(e.startContainer),i=n(e.endContainer),o=r.isSome(),a=i.isSome(),s=fi(r,i,Pn).getOr(!1),u=!s&&o&&a;return{startTable:r,endTable:i,isStartInTable:o,isEndInTable:a,isSameTable:s,isMultiTable:u}},$x=function(e,t){return{start:e,end:t}},Fx=function(e,t,n){return{rng:e,table:t,cells:n}},jx=Qi.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Vx=function(e,t){return To(wn.fromDom(e),"td,th",t)},Hx=function(e){return!Pn(e.start,e.end)},Wx=function(e,t){return bv(e.start,t).bind((function(n){return bv(e.end,t).bind((function(e){return hi(Pn(n,e),n)}))}))},Ux=function(e,t){return!Hx(e)&&Wx(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},qx=function(e,t){var n=Vx(e.startContainer,t),r=Vx(e.endContainer,t);return fi(n,r,$x)},Gx=function(e){return function(t){return bv(t,e).bind((function(e){return ge(Bx(e)).map((function(e){return $x(t,e)}))}))}},Kx=function(e){return function(t){return bv(t,e).bind((function(e){return ve(Bx(e)).map((function(e){return $x(e,t)}))}))}},Yx=function(e){return function(t){return Wx(t,e).map((function(e){return Fx(t,e,Bx(e))}))}},Xx=function(e,t,n,r){if(n.collapsed||!e.forall(Hx))return W.none();if(t.isSameTable){var i=e.bind(Yx(r));return W.some({start:i,end:i})}var o=Vx(n.startContainer,r),a=Vx(n.endContainer,r),s=o.bind(Gx(r)).bind(Yx(r)),u=a.bind(Kx(r)).bind(Yx(r));return W.some({start:s,end:u})},Jx=function(e,t){return se(e,(function(e){return Pn(e,t)}))},Zx=function(e){return fi(Jx(e.cells,e.rng.start),Jx(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},Qx=function(e,t,n){return e.exists((function(e){return Ux(e,n)&&Cv(e.start,t)}))},e_=function(e,t){var n=t.startTable,r=t.endTable,i=e.cloneRange();return n.each((function(e){return i.setStartAfter(e.dom)})),r.each((function(e){return i.setEndBefore(e.dom)})),i},t_=function(e,t,n,r){return Xx(e,t,n,r).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var r=t.isSameTable,i=Zx(e).getOr([]);if(r&&e.cells.length===i.length)return W.some(jx.fullTable(e.table));if(i.length>0){if(r)return W.some(jx.partialTable(i,W.none()));var o=e_(n,t);return W.some(jx.partialTable(i,W.some(We(We({},t),{rng:o}))))}return W.none()}))},n_=function(e,t,n,r){return Xx(e,t,n,r).bind((function(e){var r=e.start,i=e.end,o=r.bind(Zx).getOr([]),a=i.bind(Zx).getOr([]);if(o.length>0&&a.length>0){var s=e_(n,t);return W.some(jx.multiTable(o,a,s))}return W.none()}))},r_=function(e,t){var n=zx(e),r=qx(t,n),i=Lx(t,n);return Qx(r,t,n)?r.map((function(e){return jx.singleCellTable(t,e.start)})):i.isMultiTable?n_(r,i,t,n):t_(r,i,t,n)},i_=function(e){var t=Fn(e)?Qn(e):ar(e);return t.bind(i_).orThunk((function(){return W.some(e)}))},o_=function(e){return Q(e,(function(e){xi(e,"contenteditable"),kw(e)}))},a_=function(e,t){return W.from(e.dom.getParent(t,e.dom.isBlock)).map(wn.fromDom)},s_=function(e,t,n){n.each((function(n){t?Or(n):(kw(n),e.selection.setCursorLocation(n.dom,0))}))},u_=function(e,t,n,r){var i=n.cloneRange();r?(i.setStart(n.startContainer,n.startOffset),i.setEndAfter(t.dom.lastChild)):(i.setStartBefore(t.dom.firstChild),i.setEnd(n.endContainer,n.endOffset)),d_(e,i,t,!1)},c_=function(e){var t=gv(e),n=wn.fromDom(e.selection.getNode());si(n.dom)&&ns(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&J(t,(function(e){return Pn(e,n)}))&&vi(n,"data-mce-selected","1")},l_=function(e,t,n){var r=e.selection.getRng(),i=n.bind((function(n){var i=n.rng,o=n.isStartInTable,a=a_(e,o?i.endContainer:i.startContainer);i.deleteContents(),s_(e,o,a.filter(ns));var s=o?t[0]:t[t.length-1];return u_(e,s,r,o),ns(s)?W.none():W.some(o?t.slice(1):t.slice(0,-1))})).getOr(t);return o_(i),c_(e),!0},f_=function(e,t,n,r){var i=e.selection.getRng(),o=t[0],a=n[n.length-1];u_(e,o,i,!0),u_(e,a,i,!1);var s=ns(o)?t:t.slice(1),u=ns(a)?n:n.slice(0,-1);return o_(s.concat(u)),r.deleteContents(),c_(e),!0},d_=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var i=i_(n).getOr(n),o=wn.fromDom(e.dom.getParent(i.dom,e.dom.isBlock));if(ns(o)&&(kw(o),r&&e.selection.setCursorLocation(o.dom,0)),!Pn(n,o)){var a=ci(Xn(o),n)?[]:Zn(o);Q(a.concat(rr(n)),(function(e){Pn(e,o)||zn(e,o)||!ns(e)||Or(e)}))}return!0},h_=function(e,t){return Rx(e,!1,t),!0},p_=function(e,t,n){return r_(t,n).map((function(t){return t.fold(P(d_,e),P(h_,e),P(l_,e),P(f_,e))}))},m_=function(e,t){return x_(e,t)},v_=function(e,t,n,r){return y_(t,r).fold((function(){return p_(e,t,n)}),(function(t){return m_(e,t)})).getOr(!1)},g_=function(e,t,n){var r=wn.fromDom(e.getBody()),i=e.selection.getRng();return 0!==n.length?l_(e,n,W.none()):v_(e,r,i,t)},b_=function(e,t){return ae(Dw(t,e),oa)},y_=function(e,t){return ae(Dw(t,e),Un("caption"))},w_=function(e,t,n,r,i){return qp(n,e.getBody(),i).bind((function(e){return b_(t,wn.fromDom(e.getNode())).map((function(e){return!1===Pn(e,r)}))}))},x_=function(e,t){return kw(t),e.selection.setCursorLocation(t.dom,0),W.some(!0)},__=function(e,t,n,r){return Jp(e.dom).bind((function(i){return Zp(e.dom).map((function(e){return t?n.isEqual(i)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(i)}))})).getOr(!0)},C_=function(e,t){return x_(e,t)},k_=function(e,t,n){return y_(e,wn.fromDom(n.getNode())).map((function(e){return!1===Pn(e,t)}))},S_=function(e,t,n,r,i){return qp(n,e.getBody(),i).bind((function(o){return __(r,n,i,o)?C_(e,r):k_(t,r,o)})).or(W.some(!0))},O_=function(e,t,n,r){var i=Pf.fromRangeStart(e.selection.getRng());return b_(n,r).bind((function(r){return ns(r)?x_(e,r):w_(e,n,t,r,i)})).getOr(!1)},E_=function(e,t,n,r){var i=Pf.fromRangeStart(e.selection.getRng());return ns(r)?x_(e,r):S_(e,n,t,r,i)},T_=function(e,t){return e?bw(t):yw(t)},D_=function(e,t){var n=Pf.fromRangeStart(e.selection.getRng());return T_(t,n)||Up(t,e.getBody(),n).exists((function(e){return T_(t,e)}))},M_=function(e,t,n){var r=wn.fromDom(e.getBody());return y_(r,n).fold((function(){return O_(e,t,r,n)||D_(e,t)}),(function(n){return E_(e,t,r,n).getOr(!1)}))},A_=function(e,t){var n=wn.fromDom(e.selection.getStart(!0)),r=gv(e);return e.selection.isCollapsed()&&0===r.length?M_(e,t,n):g_(e,n,r)},N_=function(e,t,n,r){var i=document.createRange();return i.setStart(e,t),i.setEnd(n,r),i},P_=function(e){var t=Pf.fromRangeStart(e),n=Pf.fromRangeEnd(e),r=e.commonAncestorContainer;return Up(!1,r,n).map((function(i){return!fp(t,n,r)&&fp(t,i,r)?N_(t.container(),t.offset(),i.container(),i.offset()):e})).getOr(e)},I_=function(e){return e.collapsed?e:P_(e)},R_=function(e){return e.firstChild&&e.firstChild===e.lastChild},z_=function(e){return"br"===e.name||e.value===ca},B_=function(e,t){var n=e.getBlockElements();return n[t.name]&&R_(t)&&z_(t.firstChild)},L_=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||B_(e,t))},$_=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),L_(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},F_=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},j_=function(e,t,n){var r=t.serialize(n),i=e.createFragment(r);return F_(i)},V_=function(e){return ne(e.childNodes,(function(e){return"LI"===e.nodeName}))},H_=function(e){return e.data===ca||ri(e)},W_=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&H_(e.firstChild)},U_=function(e){return!e.firstChild||W_(e)},q_=function(e){return e.length>0&&U_(e[e.length-1])?e.slice(0,-1):e},G_=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},K_=function(e,t){return!!G_(e,t)},Y_=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},X_=function(e,t){var n=Pf.before(e),r=Bp(t),i=r.next(n);return i?i.toRange():null},J_=function(e,t){var n=Pf.after(e),r=Bp(t),i=r.prev(n);return i?i.toRange():null},Z_=function(e,t,n,r){var i=Y_(e,r),o=e.parentNode;return o.insertBefore(i[0],e),pn.each(t,(function(t){o.insertBefore(t,e)})),o.insertBefore(i[1],e),o.removeChild(e),J_(t[t.length-1],n)},Q_=function(e,t,n){var r=e.parentNode;return pn.each(t,(function(t){r.insertBefore(t,e)})),X_(e,n)},eC=function(e,t,n,r){return r.insertAfter(t.reverse(),e),J_(t[0],n)},tC=function(e,t,n,r){var i=j_(t,e,r),o=G_(t,n.startContainer),a=q_(V_(i.firstChild)),s=1,u=2,c=t.getRoot(),l=function(e){var r=Pf.fromRangeStart(n),i=Bp(t.getRoot()),a=e===s?i.prev(r):i.next(r);return!a||G_(t,a.getNode())!==o};return l(s)?Q_(o,a,c):l(u)?eC(o,a,c,t):Z_(o,a,c,n)},nC=function(e,t,n){var r=wn.fromDom(e.getRoot());return n=ex(r,Pf.fromRangeStart(t))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=nx(r,Pf.fromRangeEnd(t))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," "),n},rC=si,iC=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,rC);return n===r&&Cv(wn.fromDom(n),t)}return!1},oC=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},aC=function(e,t){W.from(e.getParent(t,"td,th")).map(wn.fromDom).each(Sw)},sC=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var i=e.getBody(),o=Xy(r);pn.each(r.select("*[data-mce-fragment]"),(function(e){var t=k(n[e.nodeName.toLowerCase()]);if(t&&iw(r,e))for(var a=e.parentNode;k(a)&&a!==i;a=a.parentNode){var s=aw(r,e,a);if(s)break;if(o.compare(a,e)){r.remove(e,!0);break}}}))}},uC=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},cC=function(e){pn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},lC=function(e){return!!e.getAttribute("data-mce-fragment")},fC=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},dC=function(e,t){var n,r=e.dom,i=e.selection;if(t){i.scrollIntoView(t);var o=$v(e.getBody(),t);if("false"===r.getContentEditable(o))return r.remove(t),void i.select(o);var a=r.createRng(),s=t.previousSibling;if(Qr(s)){if(a.setStart(s,s.nodeValue.length),!en.ie){var u=t.nextSibling;Qr(u)&&(s.appendData(u.data),u.parentNode.removeChild(u))}}else a.setStartBefore(t),a.setEndBefore(t);var c=function(t){var n=Pf.fromRangeStart(t),r=Bp(e.getBody());if(n=r.next(n),n)return n.toRange()},l=r.getParent(t,r.isBlock);r.remove(t),l&&r.isEmpty(l)&&(e.$(l).empty(),a.setStart(l,0),a.setEnd(l,0),rC(l)||lC(l)||!(n=c(a))?r.add(l,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(l))),i.setRng(a)}},hC=function(e){var t=e.dom,n=I_(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,rC);iC(t,n,r)?d_(e,n,wn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},pC=function(e,t,n){var r,i,o,a=e.selection,s=e.dom;/^ | $/.test(t)&&(t=nC(s,a.getRng(),t));var u=e.parser,c=n.merge,l=Qy({validate:oh(e)},e.schema),f='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',d=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(d.isDefaultPrevented())e.fire("SetContent",{content:d.content,format:"html",selection:!0,paste:n.paste});else{t=d.content,n.preserve_zwsp||(t=pa(t)),-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f),i=a.getRng();var h=i.startContainer||(i.parentElement?i.parentElement():null),p=e.getBody();h===p&&a.isCollapsed()&&s.isBlock(p.firstChild)&&fC(e,p.firstChild)&&s.isEmpty(p.firstChild)&&(i=s.createRng(),i.setStart(p.firstChild,0),i.setEnd(p.firstChild,0),a.setRng(i)),a.isCollapsed()||hC(e),r=a.getNode();var m={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},v=u.parse(t,m);if(!0===n.paste&&$_(e.schema,v)&&K_(s,r))return i=tC(l,s,a.getRng(),v),a.setRng(i),void e.fire("SetContent",d);if(uC(v),o=v.lastChild,"mce_marker"===o.attr("id")){var g=o;for(o=o.prev;o;o=o.walk(!0))if(3===o.type||!s.isBlock(o.name)){e.schema.isValidChild(o.parent.name,"span")&&o.parent.insert(g,o,"br"===o.name);break}}if(e._selectionOverrides.showBlockCaretContainer(r),m.invalid){e.selection.setContent(f),r=a.getNode();var b=e.getBody();9===r.nodeType?r=o=b:o=r;while(o!==b)r=o,o=o.parentNode;t=r===b?b.innerHTML:s.getOuterHTML(r),t=l.serialize(u.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return l.serialize(v)})))),r===b?s.setHTML(b,t):s.setOuterHTML(r,t)}else t=l.serialize(v),oC(e,t,r);sC(e,c),dC(e,s.get("mce_marker")),cC(e.getBody()),aC(s,a.getStart()),e.fire("SetContent",d),e.addVisual()}},mC=function(e,t){t(e),e.firstChild&&mC(e.firstChild,t),e.next&&mC(e.next,t)},vC=function(e,t,n){var r={},i={},o=[];for(var a in n.firstChild&&mC(n.firstChild,(function(n){Q(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Q(t,(function(e){"string"===typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})}))})),r)Ne(r,a)&&o.push(r[a]);for(var s in i)Ne(i,s)&&o.push(i[s]);return o},gC=function(e,t,n){var r=vC(e,t,n);Q(r,(function(e){Q(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},bC="html",yC=function(e){return e instanceof Dy},wC=function(e){dy(e)&&Jp(e.getBody()).each((function(t){var n=t.getNode(),r=Xr(n)?Jp(n).getOr(t):t;e.selection.setRng(r.toRange())}))},xC=function(e,t,n){e.dom.setHTML(e.getBody(),t),!0!==n&&wC(e)},_C=function(e,t,n,r){if(n=pa(n),0===n.length||/^\s+$/.test(n)){var i='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+i+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+i+"</li>");var o=Sd(e);o&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=e.dom.createHTML(o,Od(e),n)):n||(n='<br data-mce-bogus="1">'),xC(e,n,r.no_selection),e.fire("SetContent",r)}else"raw"!==r.format&&(n=Qy({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=aa(wn.fromDom(t))?n:pn.trim(n),xC(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r);return r.content},CC=function(e,t,n,r){gC(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var i=Qy({validate:e.validate},e.schema).serialize(n);return r.content=pa(aa(wn.fromDom(t))?i:pn.trim(i)),xC(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n},kC=function(e,t){return We(We({format:bC},e),{set:!0,content:yC(t)?"":t})},SC=function(e,t,n){var r=kC(n,t),i=n.no_events?r:e.fire("BeforeSetContent",r);return yC(t)||(t=i.content),W.from(e.getBody()).fold(M(t),(function(n){return yC(t)?CC(e,n,t,i):_C(e,n,t,i)}))},OC=function(e,t){return ko(e,t).isSome()},EC=function(e){return S(e)?e:L},TC=function(e,t,n){var r=e.dom,i=EC(n);while(r.parentNode){r=r.parentNode;var o=wn.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return W.none()},DC=function(e,t,n){var r=t(e),i=EC(n);return r.orThunk((function(){return i(e)?W.none():TC(e,t,i)}))},MC=zm,AC=function(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i];if(Wm(o)&&!1===o.inherit&&e.dom.is(t,o.selector))return!0}return!1},NC=function(e,t,n,r,i){var o=e.dom.getRoot();return t!==o&&(t=e.dom.getParent(t,(function(t){return!!AC(e,t,n)||(t.parentNode===o||!!RC(e,t,n,r,!0))})),!!RC(e,t,n,r,i))},PC=function(e,t,n){return!!MC(t,n.inline)||(!!MC(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},IC=function(e,t,n,r,i,o){var a=n[r];if(S(n.onmatch))return n.onmatch(t,n,r);if(a)if(_(a.length)){for(var s in a)if(Ne(a,s)){var u="attributes"===r?e.getAttrib(t,s):Lm(e,t,s),c=Rm(a[s],o),l=C(u)||mt(u);if(l&&C(c))continue;if(i&&l&&!n.exact)return!1;if((!i||n.exact)&&!MC(u,Bm(e,c,s)))return!1}}else for(var f=0;f<a.length;f++)if("attributes"===r?e.getAttrib(t,a[f]):Lm(e,t,a[f]))return!0;return!0},RC=function(e,t,n,r,i){var o=e.formatter.get(n),a=e.dom;if(o&&t)for(var s=0;s<o.length;s++){var u=o[s];if(PC(e.dom,t,u)&&IC(a,t,u,"attributes",i,r)&&IC(a,t,u,"styles",i,r)){var c=u.classes;if(c)for(var l=0;l<c.length;l++)if(!e.dom.hasClass(t,Rm(c[l],r)))return;return u}}},zC=function(e,t,n,r,i){if(r)return NC(e,r,t,n,i);if(r=e.selection.getNode(),NC(e,r,t,n,i))return!0;var o=e.selection.getStart();return!(o===r||!NC(e,o,t,n,i))},BC=function(e,t,n){var r=[],i={},o=e.selection.getStart();return e.dom.getParent(o,(function(o){for(var a=0;a<t.length;a++){var s=t[a];!i[s]&&RC(e,o,s,n)&&(i[s]=!0,r.push(s))}}),e.dom.getRoot()),r},LC=function(e,t){var n=function(t){return Pn(t,wn.fromDom(e.getBody()))},r=function(t,n){return RC(e,t.dom,n)?W.some(n):W.none()};return W.from(e.selection.getStart(!0)).bind((function(e){return DC(wn.fromDom(e),(function(e){return ye(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},$C=function(e,t){var n=e.formatter.get(t),r=e.dom;if(n)for(var i=e.selection.getStart(),o=Fm(r,i),a=n.length-1;a>=0;a--){var s=n[a];if(!Wm(s)||k(s.defaultBlock))return!0;for(var u=o.length-1;u>=0;u--)if(r.is(o[u],s.selector))return!0}return!1},FC=function(e,t,n){return ie(n,(function(n,r){var i=jm(e,r);return e.formatter.matchNode(t,r,{},i)?n.concat([r]):n}),[])},jC=da,VC="_mce_caret",HC=function(e,t){return e.importNode(t,!0)},WC=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==jC||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},UC=function(e){return WC(e).length>0},qC=function(e){if(e){var t=new Fo(e,e);for(e=t.current();e;e=t.next())if(Qr(e))return e}return null},GC=function(e){var t=wn.fromTag("span");return gi(t,{id:VC,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&xr(t,wn.fromText(jC)),t},KC=function(e){var t=qC(e);return t&&t.nodeValue.charAt(0)===jC&&t.deleteData(0,1),t},YC=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(UC(t))Rx(e,!1,wn.fromDom(t),n);else{var o=i.getRng(),a=r.getParent(t,r.isBlock),s=o.startContainer,u=o.startOffset,c=o.endContainer,l=o.endOffset,f=KC(t);r.remove(t,!0),s===f&&u>0&&o.setStart(f,u-1),c===f&&l>0&&o.setEnd(f,l-1),a&&r.isEmpty(a)&&kw(wn.fromDom(a)),i.setRng(o)}},XC=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)YC(e,t,n);else if(t=tm(e.getBody(),i.getStart()),!t)while(t=r.get(VC))YC(e,t,!1)},JC=function(e,t,n){var r=e.dom,i=r.getParent(n,P(Am,e));i&&r.isEmpty(i)?n.parentNode.replaceChild(t,n):(Cw(wn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},ZC=function(e,t){return e.appendChild(t),t},QC=function(e,t){var n=re(e,(function(e,t){return ZC(e,t.cloneNode(!1))}),t);return ZC(n,n.ownerDocument.createTextNode(jC))},ek=function(e,t,n,r,i,o){var a=e.formatter,s=e.dom,u=ne(we(a.get()),(function(e){return e!==r&&!ut(e,"removeformat")})),c=FC(e,n,u),l=ne(c,(function(t){return!Vm(e,t,r)}));if(l.length>0){var f=n.cloneNode(!1);return s.add(t,f),a.remove(r,i,f,o),s.remove(f),W.some(f)}return W.none()},tk=function(e,t,n){var r,i,o=e.selection,a=o.getRng(),s=a.startOffset,u=a.startContainer,c=u.nodeValue;r=tm(e.getBody(),o.getStart()),r&&(i=qC(r));var l=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(c&&s>0&&s<c.length&&l.test(c.charAt(s))&&l.test(c.charAt(s-1))){var f=o.getBookmark();a.collapse(!0);var d=cv(e,a,e.formatter.get(t));d=Cg(d),e.formatter.apply(t,n,d),o.moveToBookmark(f)}else r&&i.nodeValue===jC||(r=HC(e.getDoc(),GC(!0).dom),i=r.firstChild,a.insertNode(r),s=1),e.formatter.apply(t,n,r),o.setCursorLocation(i,s)},nk=function(e,t,n,r){var i,o,a,s=e.dom,u=e.selection,c=[],l=u.getRng(),f=l.startContainer,d=l.startOffset;o=f,3===f.nodeType&&(d!==f.nodeValue.length&&(i=!0),o=o.parentNode);while(o){if(RC(e,o,t,n,r)){a=o;break}o.nextSibling&&(i=!0),c.push(o),o=o.parentNode}if(a)if(i){var h=u.getBookmark();l.collapse(!0);var p=cv(e,l,e.formatter.get(t),!0);p=Cg(p),e.formatter.remove(t,n,p,r),u.moveToBookmark(h)}else{var m=tm(e.getBody(),a),v=GC(!1).dom;JC(e,v,null!==m?m:a);var g=ek(e,v,a,t,n,r),b=QC(c.concat(g.toArray()),v);YC(e,m,!1),u.setCursorLocation(b,1),s.isEmpty(a)&&s.remove(a)}},rk=function(e,t){var n=e.selection,r=e.getBody();XC(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==jC||XC(e,tm(r,n.getStart())),37!==t&&39!==t||XC(e,tm(r,n.getStart()))},ik=function(e){e.on("mouseup keydown",(function(t){rk(e,t.keyCode)}))},ok=function(e,t){var n=GC(!1),r=QC(t,n.dom);return br(wn.fromDom(e),n),Or(wn.fromDom(e)),Pf(r,0)},ak=function(e,t){var n=e.schema.getTextInlineElements();return Ne(n,Bn(t))&&!em(t.dom)&&!Kr(t.dom)},sk=function(e){return em(e.dom)&&UC(e.dom)},uk={},ck=$e,lk=Be,fk=function(e,t){var n=uk[e];n||(uk[e]=[]),uk[e].push(t)},dk=function(e,t){lk(uk[e],(function(e){e(t)}))};fk("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return o(e.previousSibling)&&-1!==Fe(t,e.previousSibling)},i=function(e,t){Pc(t).remove(),Pc(e).append("<br><br>").append(t.childNodes)},o=Wr(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),lk(ck(ck(t,o),r),(function(e){i(e.previousSibling,e)})))}));var hk=pn.each,pk=function(e){return Hr(e)&&!_m(e)&&!em(e)&&!Kr(e)},mk=function(e,t){for(var n=e;n;n=n[t]){if(Qr(n)&&pt(n.data))return e;if(Hr(n)&&!_m(n))return n}return e},vk=function(e,t,n){var r=Xy(e);if(t&&n&&(t=mk(t,"previousSibling"),n=mk(n,"nextSibling"),r.compare(t,n))){for(var i=t.nextSibling;i&&i!==n;){var o=i;i=i.nextSibling,t.appendChild(o)}return e.remove(n),pn.each(pn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},gk=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var i=vk(e,Mm(r),r);vk(e,i,Mm(i,!0))}},bk=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";hk(e.select(r,n),(function(n){pk(n)&&hk(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},yk=function(e,t,n){hk(e.childNodes,(function(e){pk(e)&&(t(e)&&n(e),e.hasChildNodes()&&yk(e,t,n))}))},wk=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},xk=function(e,t){return function(n){return!(!n||!Lm(e,n,t))}},_k=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),wk(e,r)}},Ck=Qi.generate([{keep:[]},{rename:["name"]},{removed:[]}]),kk=/^(src|href|style)$/,Sk=pn.each,Ok=zm,Ek=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},Tk=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},Dk=function(e,t,n){var r=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"];if(Hr(r)){var o=r.childNodes.length-1;!n&&i&&i--,r=r.childNodes[i>o?o:i]}return Qr(r)&&n&&i>=r.nodeValue.length&&(r=new Fo(r,e.getBody()).next()||r),Qr(r)&&!n&&0===i&&(r=new Fo(r,e.getBody()).prev()||r),r},Mk=function(e,t){var n=t?"firstChild":"lastChild";if(Ek(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},Ak=function(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i},Nk=function(e,t,n,r,i){var o=wn.fromDom(t),a=wn.fromDom(e.create(r,i)),s=n?nr(o):tr(o);return kr(a,s),n?(br(o,a),wr(a,o)):(yr(o,a),xr(a,o)),a.dom},Pk=function(e,t,n){return!(!Um(n)||!Ok(t,n.inline))||(!(!Hm(n)||!Ok(t,n.block))||(Wm(n)?Hr(t)&&e.is(t,n.selector):void 0))},Ik=function(e,t){return t.links&&"A"===e.nodeName},Rk=function(e,t,n,r){var i=Mm(t,n,r);return C(i)||"BR"===i.nodeName||e.isBlock(i)},zk=function(e,t,n){var r,i=t.parentNode,o=e.dom,a=Sd(e);Hm(n)&&(a?i===o.getRoot()&&(n.list_block&&Ok(t,n.list_block)||Q(be(t.childNodes),(function(t){Nm(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=Ak(o,t,a),o.setAttribs(r,e.settings.forced_root_block_attrs)):r=null}))):o.isBlock(t)&&!o.isBlock(i)&&(Rk(o,t,!1)||Rk(o,t.firstChild,!0,!0)||t.insertBefore(o.create("br"),t.firstChild),Rk(o,t,!0)||Rk(o,t.lastChild,!1,!0)||t.appendChild(o.create("br")))),qm(n)&&!Ok(n.inline,t)||o.remove(t,!0)},Bk=function(e,t,n,r,i){var o,a=e.dom;if(!Pk(a,r,t)&&!Ik(r,t))return Ck.keep();var s=r;if(Um(t)&&"all"===t.remove&&y(t.preserve_attributes)){var u=ne(a.getAttribs(s),(function(e){return X(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(s),Q(u,(function(e){return a.setAttrib(s,e.name,e.value)})),u.length>0)return Ck.rename("span")}if("all"!==t.remove){Sk(t.styles,(function(e,r){e=Bm(a,Rm(e,n),r+""),O(r)&&(r=e,i=null),(t.remove_similar||!i||Ok(Lm(a,i,r),e))&&a.setStyle(s,r,""),o=!0})),o&&""===a.getAttrib(s,"style")&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style")),Sk(t.attributes,(function(e,r){var o;if(e=Rm(e,n),O(r)&&(r=e,i=null),t.remove_similar||!i||Ok(a.getAttrib(i,r),e)){if("class"===r&&(e=a.getAttrib(s,r),e&&(o="",Q(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(o+=(o?" ":"")+e)})),o)))return void a.setAttrib(s,r,o);if(kk.test(r)&&s.removeAttribute("data-mce-"+r),"style"===r&&Wr(["li"])(s)&&"none"===a.getStyle(s,"list-style-type"))return s.removeAttribute(r),void a.setStyle(s,"list-style-type","none");"class"===r&&s.removeAttribute("className"),s.removeAttribute(r)}})),Sk(t.classes,(function(e){e=Rm(e,n),i&&!a.hasClass(i,e)||a.removeClass(s,e)}));for(var c=a.getAttribs(s),l=0;l<c.length;l++){var f=c[l].nodeName;if(0!==f.indexOf("_")&&0!==f.indexOf("data-"))return Ck.keep()}}return"none"!==t.remove?(zk(e,s,t),Ck.removed()):Ck.keep()},Lk=function(e,t,n,r,i){return Bk(e,t,n,r,i).fold(L,(function(t){return e.dom.rename(r,t),!0}),$)},$k=function(e,t,n,r,i){var o;return Q(Fm(e.dom,t.parentNode).reverse(),(function(t){if(!o&&"_start"!==t.id&&"_end"!==t.id){var a=RC(e,t,n,r,i);a&&!1!==a.split&&(o=t)}})),o},Fk=function(e,t,n,r){return Bk(e,t,n,r,r).fold(M(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),M(null))},jk=function(e,t,n,r,i,o,a,s){var u,c,l,f=e.dom;if(n){for(var d=n.parentNode,h=r.parentNode;h&&h!==d;h=h.parentNode){u=f.clone(h,!1);for(var p=0;p<t.length;p++)if(u=Fk(e,t[p],s,u),null===u)break;u&&(c&&u.appendChild(c),l||(l=u),c=u)}!o||a.mixed&&f.isBlock(n)||(r=f.split(n,r)),c&&(i.parentNode.insertBefore(c,i),l.appendChild(i),Um(a)&&gk(f,a,s,c))}return r},Vk=function(e,t,n,r,i){var o=e.formatter.get(t),a=o[0],s=!0,u=e.dom,c=e.selection,l=function(r){var s=$k(e,r,t,n,i);return jk(e,o,s,r,r,!0,a,n)},f=function(e){return _m(e)&&Hr(e)&&("_start"===e.id||"_end"===e.id)},d=function(t){return J(o,(function(r){return Lk(e,r,n,t,t)}))},h=function(t){var n=!0,r=!1;Hr(t)&&u.getContentEditable(t)&&(n=s,s="true"===u.getContentEditable(t),r=!0);var i=be(t.childNodes);if(s&&!r){var c=d(t),l=c||J(o,(function(e){return PC(u,t,e)})),f=t.parentNode;!l&&k(f)&&Gm(a)&&d(f)}if(a.deep&&i.length){for(var p=0;p<i.length;p++)h(i[p]);r&&(s=n)}var m=["underline","line-through","overline"];Q(m,(function(n){Hr(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&$m(u,t.parentNode)===n&&Lk(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))},p=function(e){var t=u.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return f(n)&&(n=n[e?"firstChild":"lastChild"]),Qr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),u.remove(t,!0),n},m=function(t){var n,r,i=cv(e,t,o,t.collapsed);if(a.split){if(i=Cg(i),n=Dk(e,i,!0),r=Dk(e,i),n!==r){if(n=Mk(n,!0),r=Mk(r,!1),Tk(u,n,r)){var s=W.from(n.firstChild).getOr(n);return l(Nk(u,s,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void p(!0)}if(Tk(u,r,n)){s=W.from(r.lastChild).getOr(r);return l(Nk(u,s,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void p(!1)}n=Ak(u,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=Ak(u,r,"span",{id:"_end","data-mce-type":"bookmark"});var c=u.createRng();c.setStartAfter(n),c.setEndBefore(r),lv(u,c,(function(e){Q(e,(function(e){_m(e)||_m(e.parentNode)||l(e)}))})),l(n),l(r),n=p(!0),r=p()}else n=r=l(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=u.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=u.nodeIndex(r)+1}lv(u,i,(function(e){Q(e,h)}))};if(r){if(Em(r)){var v=u.createRng();v.setStartBefore(r),v.setEndAfter(r),m(v)}else m(r);eg(e,t,r,n)}else if("false"!==u.getContentEditable(c.getNode()))c.isCollapsed()&&Um(a)&&!gv(e).length?nk(e,t,n,i):(Ev(c,!0,(function(){Ov(e,m)})),Um(a)&&zC(e,t,n,c.getStart())&&Dm(u,c,c.getRng()),e.nodeChanged()),eg(e,t,r,n);else{r=c.getNode();for(var g=0;g<o.length;g++)if(o[g].ceFalseOverride&&Lk(e,o[g],n,r,r))break;eg(e,t,r,n)}},Hk=pn.each,Wk=function(e,t,n,r){var i=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=$m(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(pn.walk(r,i,"childNodes"),i(r))},Uk=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&yk(r,xk(e,"fontSize"),_k(e,"backgroundColor",Rm(t.styles.backgroundColor,n)))},qk=function(e,t,n,r){!Um(t)||"sub"!==t.inline&&"sup"!==t.inline||(yk(r,xk(e,"fontSize"),_k(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Gk=function(e,t,n,r){Hk(t,(function(t){Um(t)&&Hk(e.dom.select(t.inline,r),(function(r){pk(r)&&Lk(e,t,n,r,t.exact?r:null)})),bk(e.dom,t,r)}))},Kk=function(e,t,n,r,i){RC(e,i.parentNode,n,r)&&Lk(e,t,r,i)||t.merge_with_parents&&e.dom.getParent(i.parentNode,(function(o){if(RC(e,o,n,r))return Lk(e,t,r,i),!0}))},Yk=pn.each,Xk=function(e){return Hr(e)&&!_m(e)&&!em(e)&&!Kr(e)},Jk=function(e,t,n,r){if(ch(e)&&Um(t)){var i=Ls(e.schema),o=OC(wn.fromDom(n),(function(e){return em(e.dom)}));return Pe(i,r)&&ns(wn.fromDom(n.parentNode),!1)&&!o}return!1},Zk=function(e,t,n,r){var i=e.formatter.get(t),o=i[0],a=!r&&e.selection.isCollapsed(),s=e.dom,u=e.selection,c=function(e,t){if(void 0===t&&(t=o),S(t.onformat)&&t.onformat(e,t,n,r),Yk(t.styles,(function(t,r){s.setStyle(e,r,Rm(t,n))})),t.styles){var i=s.getAttrib(e,"style");i&&s.setAttrib(e,"data-mce-style",i)}Yk(t.attributes,(function(t,r){s.setAttrib(e,r,Rm(t,n))})),Yk(t.classes,(function(t){t=Rm(t,n),s.hasClass(e,t)||s.addClass(e,t)}))},l=function(e,t){var n=!1;return Yk(e,(function(e){return!!Wm(e)&&(k(e.collapsed)&&e.collapsed!==a?void 0:s.is(t,e.selector)&&!em(t)?(c(t,e),n=!0,!1):void 0)})),n},f=function(e){if(g(e)){var t=s.create(e);return c(t),t}return null},d=function(r,a,s){var u=[],d=!0,h=o.inline||o.block,p=f(h);lv(r,a,(function(a){var f,m=function(a){var v=!1,g=d,b=a.nodeName.toLowerCase(),y=a.parentNode,w=y.nodeName.toLowerCase();if(Hr(a)&&r.getContentEditable(a)&&(g=d,d="true"===r.getContentEditable(a),v=!0),ri(a)&&!Jk(e,o,a,w))return f=null,void(Hm(o)&&r.remove(a));if(Hm(o)&&o.wrapper&&RC(e,a,t,n))f=null;else{if(d&&!v&&Hm(o)&&!o.wrapper&&Am(e,b)&&Nm(e,w,h)){var x=r.rename(a,h);return c(x),u.push(x),void(f=null)}if(Wm(o)){var _=l(i,a);if(!_&&k(y)&&Gm(o)&&(_=l(i,y)),!Um(o)||_)return void(f=null)}!d||v||!Nm(e,h,b)||!Nm(e,w,h)||!s&&Qr(a)&&ha(a.data)||em(a)||Um(o)&&r.isBlock(a)?(f=null,Q(be(a.childNodes),m),v&&(d=g),f=null):(f||(f=r.clone(p,!1),a.parentNode.insertBefore(f,a),u.push(f)),f.appendChild(a))}};Q(a,m)})),!0===o.links&&Q(u,(function(e){var t=function(e){"A"===e.nodeName&&c(e,o),Q(be(e.childNodes),t)};t(e)})),Q(u,(function(a){var s=function(e){var t=0;return Q(e.childNodes,(function(e){Im(e)||_m(e)||t++})),t},l=function(e){var t=ae(e.childNodes,Xk).filter((function(e){return PC(r,e,o)}));return t.map((function(t){var n=r.clone(t,!1);return c(n),r.replace(n,e,!0),r.remove(t,!0),n})).getOr(e)},f=s(a);!(u.length>1)&&r.isBlock(a)||0!==f?(Um(o)||Hm(o)&&o.wrapper)&&(o.exact||1!==f||(a=l(a)),Gk(e,i,n,a),Kk(e,o,t,n,a),Uk(r,o,n,a),Wk(r,o,n,a),qk(r,o,n,a),gk(r,o,n,a)):r.remove(a,!0)}))};if("false"!==s.getContentEditable(u.getNode())){if(o){if(r)if(Em(r)){if(!l(i,r)){var h=s.createRng();h.setStartBefore(r),h.setEndAfter(r),d(s,cv(e,h,i),!0)}}else d(s,r,!0);else if(a&&Um(o)&&!gv(e).length)tk(e,t,n);else{var p=u.getNode(),m=i[0];e.settings.forced_root_block||!m.defaultBlock||s.getParent(p,s.isBlock)||Zk(e,m.defaultBlock),u.setRng(I_(u.getRng())),Ev(u,!0,(function(){Ov(e,(function(t,n){var r=n?t:cv(e,t,i);d(s,r,!1)}))})),Dm(s,u,u.getRng()),e.nodeChanged()}dk(t,e)}Qv(e,t,r,n)}else{r=u.getNode();for(var v=0,b=i.length;v<b;v++){var y=i[v];if(y.ceFalseOverride&&Wm(y)&&s.is(r,y.selector)){c(r,y);break}}Qv(e,t,r,n)}},Qk=function(e){return Ne(e,"vars")},eS=function(e,t){e.set({}),t.on("NodeChange",(function(n){iS(t,n.element,e.get())})),t.on("FormatApply FormatRemove",(function(n){var r=W.from(n.node).map((function(e){return Em(e)?e:e.startContainer})).bind((function(e){return Hr(e)?W.some(e):W.from(e.parentElement)})).getOrThunk((function(){return tS(t)}));iS(t,r,e.get())}))},tS=function(e){return e.selection.getStart()},nS=function(e,t,n,r,i){var o=function(t){var o=e.formatter.matchNode(t,n,null!==i&&void 0!==i?i:{},r);return!_(o)},a=function(t){return!!AC(e,t,n)||!r&&k(e.formatter.matchNode(t,n,i,!0))};return oe(t,o,a)},rS=function(e,t){var n=null!==t&&void 0!==t?t:tS(e);return ne(Fm(e.dom,n),(function(e){return Hr(e)&&!Kr(e)}))},iS=function(e,t,n){var r=rS(e,t);_e(n,(function(n,i){var o=function(n){var o=nS(e,r,i,n.similar,Qk(n)?n.vars:void 0),a=o.isSome();if(n.state.get()!==a){n.state.set(a);var s=o.getOr(t);Qk(n)?n.callback(a,{node:s,format:i,parents:r}):Q(n.callbacks,(function(e){return e(a,{node:s,format:i,parents:r})}))}};Q([n.withSimilar,n.withoutSimilar],o),Q(n.withVars,o)}))},oS=function(e,t,n,r,i,o){var a=t.get();Q(n.split(","),(function(t){var n=Ae(a,t).getOrThunk((function(){var e={withSimilar:{state:Xc(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Xc(!1),similar:!1,callbacks:[]},withVars:[]};return a[t]=e,e})),s=function(){var n=rS(e);return nS(e,n,t,i,o).isSome()};if(_(o)){var u=i?n.withSimilar:n.withoutSimilar;u.callbacks.push(r),1===u.callbacks.length&&u.state.set(s())}else n.withVars.push({state:Xc(s()),similar:i,vars:o,callback:r})})),t.set(a)},aS=function(e,t,n){var r=e.get();Q(t.split(","),(function(e){return Ae(r,e).each((function(t){r[e]={withSimilar:We(We({},t.withSimilar),{callbacks:ne(t.withSimilar.callbacks,(function(e){return e!==n}))}),withoutSimilar:We(We({},t.withoutSimilar),{callbacks:ne(t.withoutSimilar.callbacks,(function(e){return e!==n}))}),withVars:ne(t.withVars,(function(e){return e.callback!==n}))}}))})),e.set(r)},sS=function(e,t,n,r,i,o){return null===t.get()&&eS(t,e),oS(e,t,n,r,i,o),{unbind:function(){return aS(t,n,r)}}},uS=function(e,t,n,r){var i=e.formatter.get(t);!zC(e,t,n,r)||"toggle"in i[0]&&!i[0].toggle?Zk(e,t,n,r):Vk(e,t,n,r)},cS=function(e,t){var n=t||document,r=n.createDocumentFragment();return Q(e,(function(e){r.appendChild(e.dom)})),wn.fromDom(r)},lS=function(e,t,n){return{element:e,width:t,rows:n}},fS=function(e,t){return{element:e,cells:t}},dS=function(e,t){return{x:e,y:t}},hS=function(e,t){var n=parseInt(bi(e,t),10);return isNaN(n)?1:n},pS=function(e,t,n,r,i){for(var o=hS(i,"rowspan"),a=hS(i,"colspan"),s=e.rows,u=n;u<n+o;u++){s[u]||(s[u]=fS(Gl(r),[]));for(var c=t;c<t+a;c++){var l=s[u].cells;l[c]=u===n&&c===t?i:ql(i)}}},mS=function(e,t,n){var r=e.rows,i=r[n]?r[n].cells:[];return!!i[t]},vS=function(e,t,n){while(mS(e,t,n))t++;return t},gS=function(e){return ie(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},bS=function(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(Pn(i[o],t))return W.some(dS(o,r));return W.none()},yS=function(e,t,n,r,i){for(var o=[],a=e.rows,s=n;s<=i;s++){var u=a[s].cells,c=t<r?u.slice(t,r+1):u.slice(r,t+1);o.push(fS(a[s].element,c))}return o},wS=function(e,t,n){var r=t.x,i=t.y,o=n.x,a=n.y,s=i<a?yS(e,r,i,o,a):yS(e,r,a,o,i);return lS(e.element,gS(s),s)},xS=function(e,t){var n=ql(e.element),r=wn.fromTag("tbody");return kr(r,t),xr(n,r),n},_S=function(e){return Z(e.rows,(function(e){var t=Z(e.cells,(function(e){var t=Gl(e);return xi(t,"colspan"),xi(t,"rowspan"),t})),n=ql(e.element);return kr(n,t),n}))},CS=function(e){var t=lS(ql(e),0,[]);return Q(El(e,"tr"),(function(e,n){Q(El(e,"td,th"),(function(r,i){pS(t,vS(t,i,n),n,e,r)}))})),lS(t.element,gS(t.rows),t.rows)},kS=function(e){return xS(e,_S(e))},SS=function(e,t,n){return bS(e,t).bind((function(t){return bS(e,n).map((function(n){return wS(e,t,n)}))}))},OS=function(e){return ae(e,(function(e){return"ul"===Bn(e)||"ol"===Bn(e)}))},ES=function(e,t){return ae(e,(function(e){return"li"===Bn(e)&&Cv(e,t)})).fold(M([]),(function(t){return OS(e).map((function(e){var t=wn.fromTag(Bn(e)),n=Te(Ti(e),(function(e,t){return ct(t,"list-style")}));return ki(t,n),[wn.fromTag("li"),t]})).getOr([])}))},TS=function(e,t){var n=ie(t,(function(e,t){return xr(t,e),t}),e);return t.length>0?cS([n]):n},DS=function(e){return ra(e)?Xn(e).filter(na).fold(M([]),(function(t){return[e,t]})):na(e)?[e]:[]},MS=function(e,t){var n=wn.fromDom(t.commonAncestorContainer),r=Dw(n,e),i=ne(r,(function(e){return Qo(e)||Xo(e)})),o=ES(r,t),a=i.concat(o.length?o:DS(n));return Z(a,ql)},AS=function(){return cS([])},NS=function(e,t){return TS(wn.fromDom(t.cloneContents()),MS(e,t))},PS=function(e,t){return Oo(t,"table",P(Pn,e))},IS=function(e,t){return PS(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],i=CS(e);return SS(i,n,r).map((function(e){return cS([kS(e)])}))})).getOrThunk(AS)},RS=function(e,t){return t.length>0&&t[0].collapsed?AS():NS(e,t[0])},zS=function(e,t){var n=vv(t,e);return n.length>0?IS(e,n):RS(e,t)},BS=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},LS=function(e,t){return t>=0&&t<e.length&&Sm(e.charAt(t))},$S=function(e,t){var n=pa(e.innerText);return t?BS(n):n},FS=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},jS=function(e){return W.from(e.selection.getRng()).map((function(t){var n=W.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),i=FS(n),o=en.browser.isIE()&&"pre"!==i,a=e.dom.add(r,i,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),s=$S(a,o),u=pa(a.textContent);if(e.dom.remove(a),LS(u,0)||LS(u,u.length-1)){var c=n.getOr(r),l=$S(c,o),f=l.indexOf(s);if(-1===f)return s;var d=LS(l,f-1),h=LS(l,f+s.length);return(d?" ":"")+s+(h?" ":"")}return s})).getOr("")},VS=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),i=e.selection.getSel(),o=ky(e,fv(i)),a=t.contextual?zS(wn.fromDom(e.getBody()),o).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},HS=function(e,t){return We(We({},e),{format:t,get:!0,selection:!0})},WS=function(e,t,n){void 0===n&&(n={});var r=HS(n,t),i=e.fire("BeforeGetContent",r);if(i.isDefaultPrevented())return e.fire("GetContent",i),i.content;if("text"===i.format)return jS(e);i.getInner=!0;var o=VS(e,i);return"tree"===i.format?o:(i.content=e.selection.isCollapsed()?"":o,e.fire("GetContent",i),i.content)},US=0,qS=1,GS=2,KS=function(e,t){var n=e.length+t.length+2,r=new Array(n),i=new Array(n),o=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,i,o,s){var c=u(n,r,i,o);if(null===c||c.start===r&&c.diag===r-o||c.end===n&&c.diag===n-i){var l=n,f=i;while(l<r||f<o)l<r&&f<o&&e[l]===t[f]?(s.push([US,e[l]]),++l,++f):r-n>o-i?(s.push([GS,e[l]]),++l):(s.push([qS,t[f]]),++f)}else{a(n,c.start,i,c.start-c.diag,s);for(var d=c.start;d<c.end;++d)s.push([US,e[d]]);a(c.end,r,c.end-c.diag,o,s)}},s=function(n,r,i,a){var s=n;while(s-r<a&&s<i&&e[s]===t[s-r])++s;return o(n,s,r)},u=function(n,o,a,u){var c=o-n,l=u-a;if(0===c||0===l)return null;var f,d,h,p,m,v=c-l,g=l+c,b=(g%2===0?g:g+1)/2;for(r[1+b]=n,i[1+b]=o+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<o&&m<u&&e[p]===t[m])r[h]=++p,++m;if(v%2!==0&&v-f<=d&&d<=v+f&&i[h-v]<=r[h])return s(i[h-v],d+n-a,o,u)}for(d=v-f;d<=v+f;d+=2){h=d+b-v,d===v-f||d!==v+f&&i[h+1]<=i[h-1]?i[h]=i[h+1]-1:i[h]=i[h-1],p=i[h]-1,m=p-n+a-d;while(p>=n&&m>=a&&e[p]===t[m])i[h]=p--,m--;if(v%2===0&&-f<=d&&d<=f&&i[h]<=r[h+v])return s(i[h],d+n-a,o,u)}}},c=[];return a(0,e.length,0,t.length,c),c},YS=function(e){return Hr(e)?e.outerHTML:Qr(e)?Ts.encodeRaw(e.data,!1):ei(e)?"\x3c!--"+e.data+"--\x3e":""},XS=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},JS=function(e,t,n){var r=XS(t);if(e.hasChildNodes()&&n<e.childNodes.length){var i=e.childNodes[n];i.parentNode.insertBefore(r,i)}else e.appendChild(r)},ZS=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},QS=function(e,t){var n=0;Q(e,(function(e){e[0]===US?n++:e[0]===qS?(JS(t,e[1],n),n++):e[0]===GS&&ZS(t,n)}))},eO=function(e,t){return ne(Z(be(e.childNodes),t?T(pa,YS):YS),(function(e){return e.length>0}))},tO=function(e,t){var n=Z(be(t.childNodes),YS);return QS(KS(n,e),t),t},nO=Ge((function(){return document.implementation.createHTMLDocument("undo")})),rO=function(e){return null!==e.querySelector("iframe")},iO=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},oO=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},aO=function(e){var t=e.serializer.getTempAttrs(),n=Wy(e.getBody(),t);return rO(n)?iO(eO(n,!0)):oO(pa(n.innerHTML))},sO=function(e,t,n){var r=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?tO(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!k(r)||!am(r)||!r.isFakeCaret}),e.selection.moveToBookmark(r)},uO=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},cO=function(e){var t=wn.fromTag("body",nO());return Wl(t,uO(e)),Q(El(t,"*[data-mce-bogus]"),Er),Hl(t)},lO=function(e,t){return uO(e)===uO(t)},fO=function(e,t){return cO(e)===cO(t)},dO=function(e,t){return!(!e||!t)&&(!!lO(e,t)||fO(e,t))},hO=function(e){return 0===e.get()},pO=function(e,t,n){hO(n)&&(e.typing=t)},mO=function(e,t){e.typing&&(pO(e,!1,t),e.add())},vO=function(e){e.typing&&(e.typing=!1,e.add())},gO=function(e,t,n){hO(t)&&n.set(pd(e.selection))},bO=function(e,t,n,r,i,o,a){var s=aO(e);if(o=o||{},o=pn.extend(o,s),!1===hO(r)||e.removed)return null;var u=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:o,lastLevel:u,originalEvent:a}).isDefaultPrevented())return null;if(u&&dO(u,o))return null;t.data[n.get()]&&i.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var c=yh(e);if(c&&t.data.length>c){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}o.bookmark=pd(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(o),n.set(t.data.length-1);var f={level:o,lastLevel:u,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),o},yO=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},wO=function(e,t,n,r,i){if(t.transact(r)){var o=t.data[n.get()].bookmark,a=t.data[n.get()-1];sO(e,a,!0),t.transact(i)&&(t.data[n.get()-1].beforeBookmark=o)}},xO=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],sO(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},_O=function(e,t,n,r){var i;return t.typing&&(t.add(),t.typing=!1,pO(t,!1,n)),r.get()>0&&(r.set(r.get()-1),i=t.data[r.get()],sO(e,i,!0),e.setDirty(!0),e.fire("Undo",{level:i})),i},CO=function(e){e.clear(),e.add()},kO=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!dO(aO(e),t.data[0])},SO=function(e,t){return t.get()<e.data.length-1&&!e.typing},OO=function(e,t,n){return mO(e,t),e.beforeChange(),e.ignore(n),e.add()},EO=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},TO=function(e,t){var n=e.dom,r=k(t)?t:e.getBody();_(e.hasVisual)&&(e.hasVisual=Oh(e)),Q(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=Eh(e),i=n.getAttrib(t,"border");i&&"0"!==i||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var o=n.getAttrib(t,"name")||t.id,a=Th(e);o&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},DO=function(e){return{undoManager:{beforeChange:function(t,n){return gO(e,t,n)},add:function(t,n,r,i,o,a){return bO(e,t,n,r,i,o,a)},undo:function(t,n,r){return _O(e,t,n,r)},redo:function(t,n){return xO(e,t,n)},clear:function(t,n){return yO(e,t,n)},reset:function(e){return CO(e)},hasUndo:function(t,n){return kO(e,t,n)},hasRedo:function(e,t){return SO(e,t)},transact:function(e,t,n){return OO(e,t,n)},ignore:function(e,t){return EO(e,t)},extra:function(t,n,r,i){return wO(e,t,n,r,i)}},formatter:{match:function(t,n,r,i){return zC(e,t,n,r,i)},matchAll:function(t,n){return BC(e,t,n)},matchNode:function(t,n,r,i){return RC(e,t,n,r,i)},canApply:function(t){return $C(e,t)},closest:function(t){return LC(e,t)},apply:function(t,n,r){return Zk(e,t,n,r)},remove:function(t,n,r,i){return Vk(e,t,n,r,i)},toggle:function(t,n,r){return uS(e,t,n,r)},formatChanged:function(t,n,r,i,o){return sS(e,t,n,r,i,o)}},editor:{getContent:function(t,n){return Ky(e,t,n)},setContent:function(t,n){return SC(e,t,n)},insertContent:function(t,n){return pC(e,t,n)},addVisual:function(t){return TO(e,t)}},selection:{getContent:function(t,n){return WS(e,t,n)}},raw:{getModel:function(){return W.none()}}}},MO=function(e){var t=function(e){return b(e)?e:{}},n=e.undoManager,r=e.formatter,i=e.editor,o=e.selection,a=e.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(e,t,r){return n.transact(r)},ignore:function(e,t){return n.ignore(t)},extra:function(e,t,r,i){return n.extra(r,i)}},formatter:{match:function(e,n,i,o){return r.match(e,t(n),o)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,n,i){return r.apply(e,t(n))},remove:function(e,n,i,o){return r.remove(e,t(n))},toggle:function(e,n,i){return r.toggle(e,t(n))},formatChanged:function(e,t,n,i,o){return r.formatChanged(t,n,i,o)}},editor:{getContent:function(e,t){return i.getContent(e)},setContent:function(e,t){return i.setContent(e,t)},insertContent:function(e,t){return i.insertContent(e)},addVisual:i.addVisual},selection:{getContent:function(e,t){return o.getContent(t)}},raw:{getModel:function(){return W.some(a.getRawModel())}}}},AO=function(){var e=M(null),t=M("");return{undoManager:{beforeChange:E,add:e,undo:e,redo:e,clear:E,reset:E,hasUndo:L,hasRedo:L,transact:e,ignore:E,extra:E},formatter:{match:L,matchAll:M([]),matchNode:M(void 0),canApply:L,closest:t,apply:E,remove:E,toggle:E,formatChanged:M({unbind:E})},editor:{getContent:t,setContent:t,insertContent:E,addVisual:E},selection:{getContent:t},raw:{getModel:M(W.none())}}},NO=function(e){return Ne(e.plugins,"rtc")},PO=function(e){return Ae(e.plugins,"rtc").bind((function(e){return W.from(e.setup)}))},IO=function(e){var t=e;return PO(e).fold((function(){return t.rtcInstance=DO(e),W.none()}),(function(e){return t.rtcInstance=AO(),W.some((function(){return e().then((function(e){return t.rtcInstance=MO(e),e.rtc.isRemote}))}))}))},RO=function(e){return e.rtcInstance?e.rtcInstance:DO(e)},zO=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},BO=function(e,t,n){zO(e).undoManager.beforeChange(t,n)},LO=function(e,t,n,r,i,o,a){return zO(e).undoManager.add(t,n,r,i,o,a)},$O=function(e,t,n,r){return zO(e).undoManager.undo(t,n,r)},FO=function(e,t,n){return zO(e).undoManager.redo(t,n)},jO=function(e,t,n){zO(e).undoManager.clear(t,n)},VO=function(e,t){zO(e).undoManager.reset(t)},HO=function(e,t,n){return zO(e).undoManager.hasUndo(t,n)},WO=function(e,t,n){return zO(e).undoManager.hasRedo(t,n)},UO=function(e,t,n,r){return zO(e).undoManager.transact(t,n,r)},qO=function(e,t,n){zO(e).undoManager.ignore(t,n)},GO=function(e,t,n,r,i){zO(e).undoManager.extra(t,n,r,i)},KO=function(e,t,n,r,i){return zO(e).formatter.match(t,n,r,i)},YO=function(e,t,n){return zO(e).formatter.matchAll(t,n)},XO=function(e,t,n,r,i){return zO(e).formatter.matchNode(t,n,r,i)},JO=function(e,t){return zO(e).formatter.canApply(t)},ZO=function(e,t){return zO(e).formatter.closest(t)},QO=function(e,t,n,r){zO(e).formatter.apply(t,n,r)},eE=function(e,t,n,r,i){zO(e).formatter.remove(t,n,r,i)},tE=function(e,t,n,r){zO(e).formatter.toggle(t,n,r)},nE=function(e,t,n,r,i,o){return zO(e).formatter.formatChanged(t,n,r,i,o)},rE=function(e,t,n){return RO(e).editor.getContent(t,n)},iE=function(e,t,n){return RO(e).editor.setContent(t,n)},oE=function(e,t,n){return RO(e).editor.insertContent(t,n)},aE=function(e,t,n){return zO(e).selection.getContent(t,n)},sE=function(e,t){return zO(e).editor.addVisual(t)},uE=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return aE(e,n,t)},cE=function(e){return 0===e.dom.length?(Or(e),W.none()):W.some(e)},lE=function(e,t){return e.filter((function(e){return Lv.isBookmarkNode(e.dom)})).bind(t?er:Qn)},fE=function(e,t,n,r){var i=e.dom,o=t.dom,a=r?i.length:o.length;r?(vx(i,o,!1,!r),n.setStart(o,a)):(vx(o,i,!1,!r),n.setEnd(o,a))},dE=function(e,t){Xn(e).each((function(n){var r=e.dom;t&&ex(n,Pf(r,0))?px(r,0):!t&&nx(n,Pf(r,r.length))&&mx(r,r.length)}))},hE=function(e,t,n,r){e.bind((function(e){var i=r?mx:px;return i(e.dom,r?e.dom.length:0),t.filter(Vn).map((function(t){return fE(e,t,n,r)}))})).orThunk((function(){var e=lE(t,r).or(t).filter(Vn);return e.map((function(e){return dE(e,r)}))}))},pE=function(e,t){var n=W.from(t.firstChild).map(wn.fromDom),r=W.from(t.lastChild).map(wn.fromDom);e.deleteContents(),e.insertNode(t);var i=n.bind(Qn).filter(Vn).bind(cE),o=r.bind(er).filter(Vn).bind(cE);hE(i,n,e,!0),hE(o,r,e,!1),e.collapse(!1)},mE=function(e,t){return We(We({format:"html"},e),{set:!0,selection:!0,content:t})},vE=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=e.parser.parse(t.content,We(We({isRootContent:!0,forced_root_block:!1},i),t));return Qy({validate:e.validate},e.schema).serialize(o)}return t.content},gE=function(e,t,n){void 0===n&&(n={});var r=mE(n,t),i=r;if(!r.no_events){var o=e.fire("BeforeSetContent",r);if(o.isDefaultPrevented())return void e.fire("SetContent",o);i=o}i.content=vE(e,i);var a=e.selection.getRng();pE(a,a.createContextualFragment(i.content)),e.selection.setRng(a),nb(e,a),i.no_events||e.fire("SetContent",i)},bE=function(e,t,n){if(e&&Ne(e,t)){var r=ne(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function yE(e,t){var n,r,i=function(t,n){return ae(n,(function(n){return e.is(n,t)}))},o=function(t){return e.getParents(t,null,e.getRoot())};return{selectorChangedWithUnbind:function(e,a){return n||(n={},r={},t.on("NodeChange",(function(e){var t=e.element,a=o(t),s={};pn.each(n,(function(e,t){i(t,a).each((function(n){r[t]||(Q(e,(function(e){e(!0,{node:n,selector:t,parents:a})})),r[t]=e),s[t]=e}))})),pn.each(r,(function(e,n){s[n]||(delete r[n],pn.each(e,(function(e){e(!1,{node:t,selector:n,parents:a})})))}))}))),n[e]||(n[e]=[]),n[e].push(a),i(e,o(t.selection.getStart())).each((function(){r[e]=n[e]})),{unbind:function(){bE(n,e,a),bE(r,e,a)}}}}}var wE=function(e){return!!e.select},xE=function(e){return!(!e||!e.ownerDocument)&&zn(wn.fromDom(e.ownerDocument),wn.fromDom(e))},_E=function(e){return!!e&&(!!wE(e)||xE(e.startContainer)&&xE(e.endContainer))},CE=function(e,t,n,r){var i,o,a=yE(e,r).selectorChangedWithUnbind,s=function(t,n){var i=e.createRng();k(t)&&k(n)?(i.setStart(t,n),i.setEnd(t,n),y(i),v(!1)):(kv(e,i,r.getBody(),!0),y(i))},u=function(e){return uE(r,e)},c=function(e,t){return gE(r,e,t)},l=function(e){return by(r.getBody(),b(),e)},f=function(e){return yy(r.getBody(),b(),e)},d=function(e,t){return P.getBookmark(e,t)},h=function(e){return P.moveToBookmark(e)},p=function(t,n){return Cy(e,t,n).each(y),t},m=function(){var e=b(),t=g();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},v=function(e){var t=b();t.collapse(!!e),y(t)},g=function(){return t.getSelection?t.getSelection():t.document.selection},b=function(){var n,a,s,u=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},c=t.document;if(void 0!==r.bookmark&&!1===dy(r)){var l=$b(r);if(l.isSome())return l.map((function(e){return ky(r,[e])[0]})).getOr(c.createRange())}try{(n=g())&&!Vr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange(),a=ky(r,[a])[0])}catch(f){}return a||(a=c.createRange?c.createRange():c.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(s=e.getRoot(),a.setStart(s,0),a.setEnd(s,0)),i&&o&&(0===u(a.START_TO_START,a,i)&&0===u(a.END_TO_END,a,i)?a=o:(i=null,o=null)),a},y=function(e,t){var n;if(_E(e)){var a=wE(e)?e:null;if(a){o=null;try{a.select()}catch(c){}}else{var s=g(),u=r.fire("SetSelectionRange",{range:e,forward:t});if(e=u.range,s){o=e;try{s.removeAllRanges(),s.addRange(e)}catch(c){}!1===t&&s.extend&&(s.collapse(e.endContainer,e.endOffset),s.extend(e.startContainer,e.startOffset)),i=s.rangeCount>0?s.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!s.setBaseAndExtent||en.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(s.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),s.anchorNode===e.startContainer&&s.focusNode===e.endContainer||s.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},w=function(t){return c(e.getOuterHTML(t)),t},x=function(){return xy(r.getBody(),b())},_=function(t,n){return _y(e,b(),t,n)},C=function(){var t=g(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||Vr(n)||Vr(r))return!0;var i=e.createRng();i.setStart(n,t.anchorOffset),i.collapse(!0);var o=e.createRng();return o.setStart(r,t.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0},S=function(){var t=b(),n=g();if(!hv(n)&&Sv(r)){var i=xg(e,t);return i.each((function(e){y(e,C())})),i.getOr(t)}return t},O=function(e,t){return a(e,t),N},E=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},T=function(e,t){k(e)?tb(r,e,t):nb(r,b(),t)},D=function(e,t){return y(ug(e,t,r.getDoc()))},M=function(){var e=b();return e.collapsed?Pf.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},A=function(){t=i=o=null,I.destroy()},N={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:v,setCursorLocation:s,getContent:u,setContent:c,getBookmark:d,moveToBookmark:h,select:p,isCollapsed:m,isForward:C,setNode:w,getNode:x,getSel:g,setRng:y,getRng:b,getStart:l,getEnd:f,getSelectedBlocks:_,normalize:S,selectorChanged:O,selectorChangedWithUnbind:a,getScrollContainer:E,scrollIntoView:T,placeCaretAt:D,getBoundingClientRect:M,destroy:A},P=Lv(N),I=rg(N,r);return N.bookmarkManager=P,N.controlSelection=I,N},kE=function(e,t){Q(t,(function(t){e.attr(t,null)}))},SE=function(e,t,n){e.addNodeFilter("font",(function(e){Q(e,(function(e){var r=t.parse(e.attr("style")),i=e.attr("color"),o=e.attr("face"),a=e.attr("size");i&&(r.color=i),o&&(r["font-family"]=o),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),kE(e,["color","face","size"])}))}))},OE=function(e,t){e.addNodeFilter("strike",(function(e){Q(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},EE=function(e,t){var n=Hs();t.convert_fonts_to_spans&&SE(e,n,pn.explode(t.font_size_legacy_values)),OE(e,n)},TE=function(e,t){t.inline_styles&&EE(e,t)},DE=function(e){return new Do((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200===i.status?t(i.response):r()},i.onerror=r,i.send()}catch(o){r()}}))},ME=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},AE=function(e,t){var n;try{n=atob(t)}catch(Mj){return W.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return W.some(new Blob([r],{type:e}))},NE=function(e){return new Do((function(t){var n=ME(e),r=n.type,i=n.data;AE(r,i).fold((function(){return t(new Blob([]))}),t)}))},PE=function(e){return 0===e.indexOf("blob:")?DE(e):0===e.indexOf("data:")?NE(e):null},IE=function(e){return new Do((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},RE=0,zE=function(e){return(e||"blobid")+RE++},BE=function(e,t,n,r){var i,o;if(0===t.src.indexOf("blob:"))return o=e.getByUri(t.src),void(o?n({image:t,blobInfo:o}):PE(t.src).then((function(r){IE(r).then((function(a){i=ME(a).data,o=e.create(zE(),r,i),e.add(o),n({image:t,blobInfo:o})}))}),(function(e){r(e)})));var a=ME(t.src),s=a.data,u=a.type;i=s,o=e.getByData(i,u),o?n({image:t,blobInfo:o}):PE(t.src).then((function(r){o=e.create(zE(),r,i),e.add(o),n({image:t,blobInfo:o})}),(function(e){r(e)}))},LE=function(e){return e?be(e.getElementsByTagName("img")):[]},$E=function(e,t){var n={},r=function(r,i){i||(i=$);var o=ne(LE(r),(function(t){var n=t.src;return!!en.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===en.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t)))))})),a=Z(o,(function(e){if(void 0!==n[e.src])return new Do((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new Do((function(n,r){BE(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return Do.all(a)};return{findAll:r}},FE=function(e){var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],i={},o=$l("img"),a=0,s=0;while(t=n.exec(e)){var u=t[0],c=o+"_"+s++;i[c]=u,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(c),a=t.index+u.length}var l=new RegExp(o+"_[0-9]+","g");return 0===a?{prefix:o,uris:i,html:e,re:l}:(a<e.length&&r.push(e.substr(a)),{prefix:o,uris:i,html:r.join(""),re:l})},jE=function(e,t){return e.replace(t.re,(function(e){return Ae(t.uris,e).getOr(e)}))},VE=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return t?W.some({type:t[1],data:decodeURIComponent(t[2])}):W.none()},HE=function(e,t,n,r){var i=e.padd_empty_with_br||t.insert;i&&n[r.name]?r.empty().append(new Dy("br",1)).shortEnded=!0:r.empty().append(new Dy("#text",3)).value=ca},WE=function(e){return UE(e,"#text")&&e.firstChild.value===ca},UE=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},qE=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},GE=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return qE(e,t)}))},KE=function(e,t){return e&&(Ne(t,e.name)||"br"===e.name)},YE=function(e){return k(e.attr("data-mce-bogus"))},XE=function(e){return e.attr("src")===en.transparentSrc||k(e.attr("data-mce-placeholder"))},JE=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),_e(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},ZE=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");XE(e)||YE(e)||VE(r).filter((function(){return JE(e,t)})).bind((function(e){var t=e.type,r=e.data;return W.from(n.getByData(r,t)).orThunk((function(){return AE(t,r).map((function(e){var t=n.create(zE(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Q(e,r)}))},QE=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,i){var o,a,s,u,c,l,f,d,h=e.length,p=pn.extend({},n.getBlockElements()),m=n.getNonEmptyElements(),v=n.getWhiteSpaceElements();for(p.body=1,o=0;o<h;o++)if(a=e[o],s=a.parent,p[a.parent.name]&&a===s.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(),GE(n,m,v,s)&&(f=n.getElementRule(s.name),f&&(f.removeEmpty?s.remove():f.paddEmpty&&HE(t,i,p,s))))}else{u=a;while(s&&s.firstChild===u&&s.lastChild===u){if(u=s,p[s.name])break;s=s.parent}u===s&&!0!==t.padd_empty_with_br&&(d=new Dy("#text",3),d.value=ca,a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},i=function(e){var t=e?pn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var o=e[n];"a"===o.name&&"_blank"===o.attr("target")&&o.attr("rel",i(o.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,i,o=e.length;while(o--)if(i=e[o],"a"===i.name&&i.firstChild&&!i.attr("href")){r=i.parent,t=i.lastChild;do{n=t.prev,r.insert(t,i),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var i=new Dy("li",1);i.attr("style","list-style-type: none"),t.wrap(i)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t=n.getValidClasses(),r=e.length;while(r--){for(var i=e[r],o=i.attr("class").split(" "),a="",s=0;s<o.length;s++){var u=o[s],c=!1,l=t["*"];l&&l[u]&&(c=!0),l=t[i.name],!c&&l&&l[u]&&(c=!0),c&&(a&&(a+=" "),a+=u)}a.length||(a=null),i.attr("class",a)}})),ZE(e,t)},eT=pn.each,tT=pn.trim,nT="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),rT={ftp:21,http:80,https:443,mailto:25},iT=["img","video"],oT=function(e,t){return k(e)?!e:!k(t)||!X(iT,t)},aT=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?oT(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},sT=function(){function e(t,n){t=tT(t),this.settings=n||{};var r=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))i.source=t;else{var o=0===t.indexOf("//");if(0!==t.indexOf("/")||o||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+i.toAbsPath(a,t);else{var s=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+i.toAbsPath(a,s[1])+s[2]}}t=t.replace(/@@/g,"(mce_at)");var u=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);eT(nT,(function(e,t){var n=u[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n})),r&&(i.protocol||(i.protocol=r.protocol),i.userInfo||(i.userInfo=r.userInfo),i.port||"mce_host"!==i.host||(i.port=r.port),i.host&&"mce_host"!==i.host||(i.host=r.host),i.source=""),o&&(i.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.isDomSafe=function(e,t,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=Ts.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(i){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!aT(n,r,t)},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{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 i=this.getURI(),o=r.getURI();return i===o||"/"===i.charAt(i.length-1)&&i.substr(0,i.length-1)===o?i:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=rT[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,i=0,o="",a=e.substring(0,e.lastIndexOf("/")).split("/"),s=t.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return t;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},e.prototype.toAbsPath=function(e,t){var n,r,i=0,o=[],a=/\/$/.test(t)?"/":"",s=e.split("/"),u=t.split("/");for(eT(s,(function(e){e&&o.push(e)})),s=o,n=u.length-1,o=[];n>=0;n--)0!==u[n].length&&"."!==u[n]&&(".."!==u[n]?i>0?i--:o.push(u[n]):i++);return n=s.length-i,r=n<=0?fe(o).join("/"):s.slice(0,n).join("/")+"/"+fe(o).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),uT=pn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),cT=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},lT=Ge((function(){return document.implementation.createHTMLDocument("parser")})),fT=function(e,t,n){var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,i=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,o=e.getShortEndedElements(),a=1,s=n;while(0!==a){r.lastIndex=s;while(1){var u=r.exec(t);if(null===u)return s;if("!"===u[1]){s=ct(u[2],"--")?hT(t,!1,u.index+"!--".length):hT(t,!0,u.index+1);break}i.lastIndex=r.lastIndex;var c=i.exec(t);if(!w(c)&&c.index===r.lastIndex){"/"===u[1]?a-=1:Ne(o,u[2])||(a+=1),s=r.lastIndex+c[0].length;break}}}return s},dT=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},hT=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&dT(r,n)){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(t){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/g;a.lastIndex=n;var s=a.exec(e);return s?s.index+s[0].length:r.length},pT=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null},mT=function(e,t){void 0===t&&(t=js()),e=e||{};var n=lT(),r=n.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment?e.comment:E,o=e.cdata?e.cdata:E,a=e.text?e.text:E,s=e.start?e.start:E,u=e.end?e.end:E,c=e.pi?e.pi:E,l=e.doctype?e.doctype:E,f=function(f,d){void 0===d&&(d="html");var h,p,m,v,g,b,y,w,x,_,C,k,S,O,E,T,D,M,A,N,P=f.html,I=0,R=[],z=0,B=Ts.decode,L=pn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),$="html"===d?0:1,F=function(e){var t,n;t=R.length;while(t--)if(R[t].name===e)break;if(t>=0){for(n=R.length-1;n>=t;n--)e=R[n],e.valid&&u(e.name);R.length=t}},j=function(e,t){return a(jE(e,f),t)},V=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(jE(t,f)))},H=function(e){return jE(e,f)},W=function(e,t){var n=e||"",r=!ct(n,"--"),i=hT(P,r,t);return e=P.substr(t,i-t),V(r?n+e:e),i+1},U=function(t,i,o,a,s){if(i=i.toLowerCase(),o=H(i in X?i:B(o||a||s||"")),J&&!w&&!1===cT(i)){var u=O[i];if(!u&&E){var c=E.length;while(c--)if(u=E[c],u.pattern.test(i))break;-1===c&&(u=null)}if(!u)return;if(u.validValues&&!(o in u.validValues))return}var l="name"===i||"id"===i;l&&t in uT&&(o in n||o in r)||L[i]&&!sT.isDomSafe(o,t,e)||w&&(i in L||0===i.indexOf("on"))||(v.map[i]=o,v.push({name:i,value:o}))},q=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"),G=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,K=t.getShortEndedElements(),Y=e.self_closing_elements||t.getSelfClosingElements(),X=t.getBoolAttrs(),J=e.validate,Z=e.remove_internals,Q=e.fix_self_closing,ee=t.getSpecialElements(),te=P+">";while(h=q.exec(te)){var ne=h[0];if(I<h.index&&j(B(P.substr(I,h.index-I))),p=h[7])p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),F(p);else if(p=h[8]){if(h.index+ne.length>P.length){j(B(P.substr(h.index))),I=h.index+ne.length;continue}p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),x=p in K,Q&&Y[p]&&R.length>0&&R[R.length-1].name===p&&F(p);var re=pT(G,h[9]);if(null!==re){if("all"===re){I=fT(t,P,q.lastIndex),q.lastIndex=I;continue}C=!1}if(!J||(_=t.getElementRule(p))){if(C=!0,J&&(O=_.attributes,E=_.attributePatterns),(S=h[9])?(w=-1!==S.indexOf("data-mce-type"),w&&Z&&(C=!1),v=[],v.map={},S.replace(G,(function(e,t,n,r,i){return U(p,t,n,r,i),""}))):(v=[],v.map={}),J&&!w){if(T=_.attributesRequired,D=_.attributesDefault,M=_.attributesForced,A=_.removeEmptyAttrs,A&&!v.length&&(C=!1),M){g=M.length;while(g--)k=M[g],y=k.name,N=k.value,"{$uid}"===N&&(N="mce_"+z++),v.map[y]=N,v.push({name:y,value:N})}if(D){g=D.length;while(g--)k=D[g],y=k.name,y in v.map||(N=k.value,"{$uid}"===N&&(N="mce_"+z++),v.map[y]=N,v.push({name:y,value:N}))}if(T){g=T.length;while(g--)if(T[g]in v.map)break;-1===g&&(C=!1)}if(k=v.map["data-mce-bogus"]){if("all"===k){I=fT(t,P,q.lastIndex),q.lastIndex=I;continue}C=!1}}C&&s(p,v,x)}else C=!1;if(m=ee[p]){m.lastIndex=I=h.index+ne.length,(h=m.exec(P))?(C&&(b=P.substr(I,h.index-I)),I=h.index+h[0].length):(b=P.substr(I),I=P.length),C&&(b.length>0&&j(b,!0),u(p)),q.lastIndex=I;continue}x||(S&&S.indexOf("/")===S.length-1?C&&u(p):R.push({name:p,valid:C}))}else if(p=h[1])V(p);else if(p=h[2]){var ie=1===$||e.preserve_cdata||R.length>0&&t.isValidChild(R[R.length-1].name,"#cdata");if(!ie){I=W("",h.index+2),q.lastIndex=I;continue}o(p)}else if(p=h[3])l(p);else{if((p=h[4])||"<!"===ne){I=W(p,h.index+ne.length),q.lastIndex=I;continue}if(p=h[5]){if(1!==$){I=W("?",h.index+2),q.lastIndex=I;continue}c(p,h[6])}}I=h.index+ne.length}for(I<P.length&&j(B(P.substr(I))),g=R.length-1;g>=0;g--)p=R[g],p.valid&&u(p.name)},d=function(e,t){void 0===t&&(t="html"),f(FE(e),t)};return{parse:d}};mT.findEndTag=fT;var vT=pn.makeMap,gT=pn.each,bT=pn.explode,yT=pn.extend,wT=function(e,t){void 0===t&&(t=js());var n={},r=[],i={},o={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){for(var n=vT("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),i=t.getWhiteSpaceElements(),o=t.getTextBlockElements(),a=t.getSpecialElements(),u=function(e,n){if(void 0===n&&(n=e.parent),a[e.name])e.empty().remove();else{for(var r=e.children(),i=0,o=r;i<o.length;i++){var s=o[i];t.isValidChild(n.name,s.name)||u(s,n)}e.unwrap()}},c=0;c<e.length;c++){var l=e[c],f=void 0,d=void 0,h=void 0;if(l.parent&&!l.fixed)if(o[l.name]&&"li"===l.parent.name){var p=l.next;while(p){if(!o[p.name])break;p.name="li",p.fixed=!0,l.parent.insert(p,l.parent),p=p.next}l.unwrap()}else{var m=[l];for(f=l.parent;f&&!t.isValidChild(f.name,l.name)&&!n[f.name];f=f.parent)m.push(f);if(f&&m.length>1)if(t.isValidChild(f.name,l.name)){m.reverse(),d=s(m[0].clone());for(var v=d,g=0;g<m.length-1;g++){t.isValidChild(v.name,m[g].name)?(h=s(m[g].clone()),v.append(h)):h=v;for(var b=m[g].firstChild;b&&b!==m[g+1];){var y=b.next;h.append(b),b=y}v=h}GE(t,r,i,d)?f.insert(l,m[0],!0):(f.insert(d,m[0],!0),f.insert(l,d)),f=m[0],(GE(t,r,i,f)||UE(f,"br"))&&f.empty().remove()}else u(l);else if(l.parent){if("li"===l.name){p=l.prev;if(p&&("ul"===p.name||"ol"===p.name)){p.append(l);continue}if(p=l.next,p&&("ul"===p.name||"ol"===p.name)){p.insert(l,p.firstChild,!0);continue}l.wrap(s(new Dy("ul",1)));continue}t.isValidChild(l.parent.name,"div")&&t.isValidChild("div",l.name)?l.wrap(s(new Dy("div",1))):u(l)}}}},s=function(e){var t=e.name;if(t in n){var a=i[t];a?a.push(e):i[t]=[e]}var s=r.length;while(s--){var u=r[s].name;if(u in e.attributes.map){a=o[u];a?a.push(e):o[u]=[e]}}return e},u=function(e,t){gT(bT(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},c=function(){var e=[];for(var t in n)Ne(n,t)&&e.push({name:t,callbacks:n[t]});return e},l=function(e,t){gT(bT(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},f=function(){return[].concat(r)},d=function(s,u){var c,l,f,d,h,p,m,v,g=[],b=function(e){return!1===e?"":!0===e?"p":e};u=u||{},i={},o={};var y=yT(vT("script,style,head,html,body,title,meta,param"),t.getBlockElements()),w=Ls(t),x=t.getNonEmptyElements(),_=t.children,C=e.validate,S="forced_root_block"in u?u.forced_root_block:e.forced_root_block,O=b(S),E=t.getWhiteSpaceElements(),T=/^[ \t\r\n]+/,D=/[ \t\r\n]+$/,M=/[ \t\r\n]+/g,A=/^[ \t\r\n]+$/,N=Ne(E,u.context)||Ne(E,e.root_name),P=function(){var n=$.firstChild,r=null,i=function(e){e&&(n=e.firstChild,n&&3===n.type&&(n.value=n.value.replace(T,"")),n=e.lastChild,n&&3===n.type&&(n.value=n.value.replace(D,"")))};if(t.isValidChild($.name,O.toLowerCase())){while(n){var o=n.next;3===n.type||1===n.type&&"p"!==n.name&&!y[n.name]&&!n.attr("data-mce-type")?(r||(r=I(O,1),r.attr(e.forced_root_block_attrs),$.insert(r,n)),r.append(n)):(i(r),r=null),n=o}i(r)}},I=function(e,t){var r,o=new Dy(e,t);return e in n&&(r=i[e],r?r.push(o):i[e]=[o]),o},R=function(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var i=r.value.replace(D,"");if(i.length>0)return void(r.value=i);var o=r.next;if(o){if(3===o.type&&o.value.length){r=r.prev;continue}if(!n[o.name]&&"script"!==o.name&&"style"!==o.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},z=function(e){var t={};for(var n in e)"li"!==n&&"p"!==n&&(t[n]=e[n]);return t},B=function(e){var n=e;while(k(n)){if(n.name in w)return GE(t,x,E,n);n=n.parent}return!1},L=mT({validate:C,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:z(t.getSelfClosingElements()),cdata:function(e){v.append(I("#cdata",4)).value=e},text:function(e,t){var n;N||(e=e.replace(M," "),KE(v.lastChild,y)&&(e=e.replace(T,""))),0!==e.length&&(n=I("#text",3),n.raw=!!t,v.append(n).value=e)},comment:function(e){v.append(I("#comment",8)).value=e},pi:function(e,t){v.append(I(e,7)).value=t,R(v)},doctype:function(e){var t=v.append(I("#doctype",10));t.value=e,R(v)},start:function(e,n,i){var a=C?t.getElementRule(e):{};if(a){var s=I(a.outputName||e,1);s.attributes=n,s.shortEnded=i,v.append(s);var u=_[v.name];u&&_[s.name]&&!u[s.name]&&g.push(s);var c=r.length;while(c--){var l=r[c].name;l in n.map&&(p=o[l],p?p.push(s):o[l]=[s])}y[e]&&R(s),i||(v=s),!N&&E[e]&&(N=!0)}},end:function(n){var r,i,o,a=C?t.getElementRule(n):{};if(a){if(y[n]&&!N){if(r=v.firstChild,r&&3===r.type)if(i=r.value.replace(T,""),i.length>0)r.value=i,r=r.next;else{o=r.next,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.next,(0===i.length||A.test(i))&&(r.remove(),r=o),r=o}if(r=v.lastChild,r&&3===r.type)if(i=r.value.replace(D,""),i.length>0)r.value=i,r=r.prev;else{o=r.prev,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.prev,(0===i.length||A.test(i))&&(r.remove(),r=o),r=o}}N&&E[n]&&(N=!1);var s=GE(t,x,E,v),c=v.parent;a.paddInEmptyBlock&&s&&B(v)?HE(e,u,y,v):a.removeEmpty&&s?y[v.name]?v.empty().remove():v.unwrap():a.paddEmpty&&(WE(v)||s)&&HE(e,u,y,v),v=c}}},t),$=v=new Dy(u.context||e.root_name,11);if(L.parse(s,u.format),C&&g.length&&(u.context?u.invalid=!0:a(g)),O&&("body"===$.name||u.isRootContent)&&P(),!u.invalid){for(m in i)if(Ne(i,m)){p=n[m],c=i[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,u)}for(l=0,f=r.length;l<f;l++)if(p=r[l],p.name in o){c=o[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,u)}}return $},h={schema:t,addAttributeFilter:l,getAttributeFilters:f,addNodeFilter:u,getNodeFilters:c,filterNode:s,parse:d};return QE(h,e),TE(h,e),h},xT=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n=e.length;while(n--){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),e.addAttributeFilter("src,href,style",(function(e,r){var i="data-mce-"+r,o=t.url_converter,a=t.url_converter_scope,s=e.length;while(s--){var u=e[s],c=u.attr(i);void 0!==c?(u.attr(r,c.length>0?c:null),u.attr(i,null)):(c=u.attr(r),"style"===r?c=n.serializeStyle(n.parseStyle(c),u.name):o&&(c=o.call(a,c,r,u.name)),u.attr(r,c.length>0?c:null))}})),e.addAttributeFilter("class",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r=e.length;while(r--){var i=e[r];if("bookmark"===i.attr("data-mce-type")&&!n.cleanup){var o=W.from(i.firstChild).exists((function(e){return!ha(e.value)}));o?i.unwrap():i.remove()}}})),e.addNodeFilter("noscript",(function(e){var t=e.length;while(t--){var n=e[t].firstChild;n&&(n.value=Ts.decode(n.value))}})),e.addNodeFilter("script,style",(function(e,n){var r=function(e){return e.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,"")},i=e.length;while(i--){var o=e[i],a=o.firstChild?o.firstChild.value:"";if("script"===n){var s=o.attr("type");s&&o.attr("type","mce-no/type"===s?null:s.replace(/^mce\-/,"")),"xhtml"===t.element_format&&a.length>0&&(o.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===t.element_format&&a.length>0&&(o.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}})),e.addNodeFilter("#comment",(function(e){var r=e.length;while(r--){var i=e[r];t.preserve_cdata&&0===i.value.indexOf("[CDATA[")?(i.name="#cdata",i.type=4,i.value=n.decode(i.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===i.value.indexOf("mce:protected ")&&(i.name="#text",i.type=3,i.raw=!0,i.value=unescape(i.value).substr(14))}})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n=e.length;while(n--){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),e.addAttributeFilter("data-mce-type",(function(t){Q(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.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(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},_T=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},CT=function(e,t,n){var r,i=e.dom,o=t.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var s=a.createHTMLDocument("");pn.each("BODY"===o.nodeName?o.childNodes:[o],(function(e){s.body.appendChild(s.importNode(e,!0))})),o="BODY"!==o.nodeName?s.body.firstChild:s.body,r=i.doc,i.doc=s}return jv(e,We(We({},n),{node:o})),r&&(i.doc=r),o},kT=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},ST=function(e,t,n){return kT(e,n)?CT(e,t,n):t},OT=function(e,t,n){-1===pn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},ET=function(e,t,n){if(!t.no_events&&e){var r=Vv(e,We(We({},t),{content:n}));return r.content}return n},TT=function(e,t,n){var r=pa(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||aa(wn.fromDom(t))?r:pn.trim(r)},DT=function(e,t,n){var r=n.selection?We({forced_root_block:!1},n):n,i=e.parse(t,r);return _T(i),i},MT=function(e,t,n){var r=Qy(e,t);return r.serialize(n)},AT=function(e,t,n,r,i){var o=MT(t,n,r);return ET(e,i,o)},NT=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:jc.DOM,i=t&&t.schema?t.schema:js(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var o=wT(e,i);xT(o,e,r);var a=function(n,a){void 0===a&&(a={});var s=We({format:"html"},a),u=ST(t,n,s),c=TT(r,u,s),l=DT(o,c,s);return"tree"===s.format?l:AT(t,e,i,l,s)};return{schema:i,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:a,addRules:i.addValidElements,setRules:i.setValidElements,addTempAttr:P(OT,o,n),getTempAttrs:M(n),getNodeFilters:o.getNodeFilters,getAttributeFilters:o.getAttributeFilters}},PT=function(e,t){var n=NT(e,t);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}},IT="html",RT=function(e,t){void 0===t&&(t={});var n=t.format?t.format:IT;return rE(e,t,n)},zT=function(e,t,n){return void 0===n&&(n={}),iE(e,t,n)},BT=jc.DOM,LT=function(e){BT.setStyle(e.id,"display",e.orgDisplay)},$T=function(e){return W.from(e).each((function(e){return e.destroy()}))},FT=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},jT=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),BT.unbind(t,"submit reset",e.formEventDelegate))},VT=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&BT.remove(i.nextSibling),Hv(e),e.editorManager.remove(e),!e.inline&&r&&LT(e),Wv(e),BT.remove(e.getContainer()),$T(t),$T(n),e.destroy()}},HT=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),$T(n),$T(r)),jT(e),FT(e),e.destroyed=!0):e.remove())},WT=function(e,t){var n=b(e)&&b(t);return n?qT(e,t):t},UT=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Ne(o,a)&&(r[a]=e(r[a],o[a]))}return r}},qT=UT(WT),GT="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),KT="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),YT="imagetools,toc".split(","),XT=function(e){var t=ne(GT,(function(t){return Ne(e,t)})),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),pe(t)},JT=function(e){var t=pn.makeMap(e.plugins," "),n=function(e){return Ne(t,e)},r=qe(qe([],ne(KT,n),!0),ce(YT,(function(e){return n(e)?[e+" (moving to premium)"]:[]})),!0);return pe(r)},ZT=function(e,t){var n=XT(e),r=JT(t),i=r.length>0,o=n.length>0,a="mobile"===t.theme;if(i||o||a){var s="\n- ",u=a?"\n\nThemes:"+s+"mobile":"",c=i?"\n\nPlugins:"+s+r.join(s):"",l=o?"\n\nSettings:"+s+n.join(s):"";console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+u+c+l)}},QT=function(e,t){return{sections:M(e),settings:M(t)}},eD=Ut().deviceType,tD=eD.isTouch(),nD=eD.isPhone(),rD=eD.isTablet(),iD=["lists","autolink","autosave"],oD={table_grid:!1,object_resizing:!1,resize:!1},aD=function(e){var t=y(e)?e.join(" "):e,n=Z(g(t)?t.split(" "):[],ft);return ne(n,(function(e){return e.length>0}))},sD=function(e){return ne(e,P(X,iD))},uD=function(e,t){var n=Ee(t,(function(t,n){return X(e,n)}));return QT(n.t,n.f)},cD=function(e,t,n){void 0===n&&(n={});var r=e.sections(),i=Ae(r,t).getOr({});return pn.extend({},n,i)},lD=function(e,t){return Ne(e.sections(),t)},fD=function(e,t,n){var r=e.sections();return lD(e,t)&&r[t].theme===n},dD=function(e,t){return lD(e,t)?e.sections()[t]:{}},hD=function(e,t){return Ae(e,"toolbar_mode").orThunk((function(){return Ae(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},pD=function(e,t,n,r,i){var o={id:t,theme:"silver",toolbar_mode:hD(e,"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:i.convertURL,url_converter_scope:i};return We(We({},o),r?oD:{})},mD=function(e,t){var n={resize:!1,toolbar_mode:hD(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return We(We(We({},oD),n),t?r:{})},vD=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?pn.extend({},e.external_plugins,n):n},gD=function(e,t){return[].concat(aD(e)).concat(aD(t))},bD=function(e,t,n,r){return e&&fD(t,"mobile","mobile")?sD(r):e&&lD(t,"mobile")?r:n},yD=function(e,t,n,r){var i=aD(n.forced_plugins),o=aD(r.plugins),a=dD(t,"mobile"),s=a.plugins?aD(a.plugins):o,u=bD(e,t,o,s),c=gD(i,u);if(en.browser.isIE()&&X(c,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return pn.extend(r,{plugins:c.join(" ")})},wD=function(e,t){return e&&lD(t,"mobile")},xD=function(e,t,n,r,i){var o=e?{mobile:mD(i.mobile||{},t)}:{},a=uD(["mobile"],qT(o,i)),s=pn.extend(n,r,a.settings(),wD(e,a)?cD(a,"mobile"):{},{validate:!0,external_plugins:vD(r,a.settings())});return yD(e,a,r,s)},_D=function(e,t,n,r,i){var o=pD(i,t,n,tD,e),a=xD(nD||rD,nD,o,r,i);return!1!==a.deprecation_warnings&&ZT(i,a),a},CD=function(e,t,n){return W.from(t.settings[n]).filter(e)},kD=function(e){var t={};return"string"===typeof e?Q(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[pn.trim(n[0])]=pn.trim(n[1]):t[pn.trim(n[0])]=pn.trim(n[0])})):t=e,t},SD=function(e){return function(t){return y(t)&&le(t,e)}},OD=function(e,t,n,r){var i=t in e.settings?e.settings[t]:n;return"hash"===r?kD(i):"string"===r?CD(g,e,t).getOr(n):"number"===r?CD(O,e,t).getOr(n):"boolean"===r?CD(x,e,t).getOr(n):"object"===r?CD(b,e,t).getOr(n):"array"===r?CD(y,e,t).getOr(n):"string[]"===r?CD(SD(g),e,t).getOr(n):"function"===r?CD(S,e,t).getOr(n):i},ED=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Ne(e,t)};return{add:t,get:n,has:r}},TD=ED(),DD=function(e,t){var n=t.dom;return n[e]},MD=function(e,t){return parseInt(Si(t,e),10)},AD=P(DD,"clientWidth"),ND=P(DD,"clientHeight"),PD=P(MD,"margin-top"),ID=P(MD,"margin-left"),RD=function(e){return e.dom.getBoundingClientRect()},zD=function(e,t,n){var r=AD(e),i=ND(e);return t>=0&&n>=0&&t<=r&&n<=i},BD=function(e,t,n,r){var i=RD(t),o=e?i.left+t.dom.clientLeft+ID(t):0,a=e?i.top+t.dom.clientTop+PD(t):0,s=n-o,u=r-a;return{x:s,y:u}},LD=function(e,t,n){var r=wn.fromDom(e.getBody()),i=e.inline?r:Kn(r),o=BD(e.inline,i,t,n);return zD(i,o.x,o.y)},$D=function(e){return W.from(e).map(wn.fromDom)},FD=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return $D(t).map(Tr).getOr(!1)},jD=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},VD=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():jD()},r=function(){return W.from(t[0])},i=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},o=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},s=function(e){se(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},u=function(u,c){if(void 0===c&&(c=!0),!e.removed&&FD(e))return c&&e.fire("BeforeOpenNotification",{notification:u}),ae(t,(function(e){return i(n().getArgs(e),u)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(u,(function(){s(t),o(),r().fold((function(){return e.focus()}),(function(e){return ib(wn.fromDom(e.getEl()))}))}));return a(t),o(),e.fire("OpenNotification",{notification:We({},t)}),t}))},c=function(){r().each((function(e){n().close(e),s(e),o()}))},l=M(t),f=function(e){e.on("SkinLoaded",(function(){var t=rh(e);t&&u({text:t,type:"warning",timeout:0},!1),o()})),e.on("show ResizeEditor ResizeWindow NodeChange",(function(){zo.requestAnimationFrame(o)})),e.on("remove",(function(){Q(t.slice(),(function(e){n().close(e)}))}))};return f(e),{open:u,close:c,getNotifications:l}},HD=ll.PluginManager,WD=ll.ThemeManager;function UD(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var qD=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():UD()},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}},i=function(t){e.fire("OpenWindow",{dialog:t})},o=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),i(e)},s=function(n){o(n),t=ne(t,(function(e){return e!==n})),0===t.length&&e.focus()},u=function(){return W.from(t[t.length-1])},c=function(t){e.editorManager.setActive(e),Bb(e);var n=t();return a(n),n},l=function(e,t){return c((function(){return n().open(e,t,s)}))},f=function(e){return c((function(){return n().openUrl(e,s)}))},d=function(e,t,i){var o=n();o.alert(e,r(i||o,t))},h=function(e,t,i){var o=n();o.confirm(e,r(i||o,t))},p=function(){u().each((function(e){n().close(e),s(e)}))};return e.on("remove",(function(){Q(t,(function(e){n().close(e)}))})),{open:l,openUrl:f,alert:d,confirm:h,close:p}},GD=function(e,t){e.notificationManager.open({type:"error",text:t})},KD=function(e,t){e._skinLoaded?GD(e,t):e.on("SkinLoaded",(function(){GD(e,t)}))},YD=function(e,t){KD(e,cl.translate(["Failed to upload image: {0}",t]))},XD=function(e,t,n){Zv(e,t,{message:n}),console.error(n)},JD=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},ZD=function(e,t,n){XD(e,"PluginLoadError",JD("plugin",t,n))},QD=function(e,t,n){XD(e,"IconsLoadError",JD("icons",t,n))},eM=function(e,t,n){XD(e,"LanguageLoadError",JD("language",t,n))},tM=function(e,t,n){var r=cl.translate(["Failed to initialize plugin: {0}",t]);Zv(e,"PluginLoadError",{message:r}),nM(r,n),KD(e,r)},nM=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,qe([e],t,!1)):r.log.apply(r,qe([e],t,!1)))},rM=function(e){return/^[a-z0-9\-]+$/i.test(e)},iM=function(e){return aM(e,Yd(e))},oM=function(e){return aM(e,Xd(e))},aM=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,i="content"+r+".css",o=!0===e.inline;return Z(t,(function(t){return rM(t)&&!o?n+"/"+t+"/"+i:e.documentBaseURI.toAbsolute(t)}))},sM=function(e){e.contentCSS=e.contentCSS.concat(iM(e),oM(e))},uM=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},i=function(e){return e in n},o=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!i(t)&&n[t].status===e},s=function(e){return!!i(e)&&n[e].status===t},u=function(t){n[t]=r(e,null)},c=function(e,i){n[e]=r(t,i)},l=function(e){delete n[e]},f=function(){n={}};return{hasBlobUri:i,getResultUri:o,isPending:a,isUploaded:s,markPending:u,markUploaded:c,removeFailed:l,destroy:f}},cM=0,lM=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},fM=function(e){return e+cM+++lM()},dM=function(){var e=[],t=function(e){var t={"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 t[e.toLowerCase()]||"dat"},n=function(e,t,n,i,o){if(g(e)){var a=e;return r({id:a,name:i,filename:o,blob:t,base64:n})}if(b(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||fM("blobid"),r=e.name||n,i=e.blob;return{id:M(n),name:M(r),filename:M(e.filename||r+"."+t(i.type)),blob:M(i),base64:M(e.base64),blobUri:M(e.blobUri||URL.createObjectURL(i)),uri:M(e.uri)}},i=function(t){a(t.id())||e.push(t)},o=function(t){return ae(e,t).getOrUndefined()},a=function(e){return o((function(t){return t.id()===e}))},s=function(e){return o((function(t){return t.blobUri()===e}))},u=function(e,t){return o((function(n){return n.base64()===e&&n.blob().type===t}))},c=function(t){e=ne(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},l=function(){Q(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:i,get:a,getByUri:s,getByData:u,findFirst:o,removeByUri:c,destroy:l}},hM=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},i=function(e,n,i,o){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){o(e.loaded/e.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)i("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):i("Invalid JSON: "+a.responseText)}};var s=new FormData;s.append("file",e.blob(),e.filename()),a.send(s)},o=function(){return new Do((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},s=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},u=function(e,t){pn.each(n[e],(function(e){e(t)})),delete n[e]},c=function(t,n,r){return e.markPending(t.blobUri()),new Do((function(i){var o,c;try{var l=function(){o&&(o.close(),c=E)},f=function(n){l(),e.markUploaded(t.blobUri(),n),u(t.blobUri(),a(t,n)),i(a(t,n))},d=function(n,r){var o=r||{};l(),e.removeFailed(t.blobUri()),u(t.blobUri(),s(t,n,o)),i(s(t,n,o))};c=function(e){e<0||e>100||W.from(o).orThunk((function(){return W.from(r).map(z)})).each((function(t){o=t,t.progressBar.value(e)}))},n(t,f,d,c)}catch(h){i(s(t,h.message,{}))}}))},l=function(e){return e===i},f=function(e){var t=e.blobUri();return new Do((function(e){n[t]=n[t]||[],n[t].push(e)}))},d=function(n,r){return n=pn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),Do.all(pn.map(n,(function(n){return e.isPending(n.blobUri())?f(n):c(n,t.handler,r)})))},h=function(e,n){return!t.url&&l(t.handler)?o():d(e,n)};return!1===S(t.handler)&&(t.handler=i),{upload:h}},pM=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},mM=function(e,t){return hM(t,{url:$d(e),basePath:Fd(e),credentials:jd(e),handler:Vd(e)})},vM=function(e){var t=uM(),n=mM(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?pM(e):void 0)}}},gM=function(e){var t=Xc(null);e.on("change AddUndo",(function(e){t.set(We({},e.level))}));var n=function(){var n=e.undoManager.data;ge(n).filter((function(e){return!dO(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:me(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},bM=function(e){var t,n,r=dM(),i=uM(),o=[],a=gM(e),s=function(t){return function(n){return e.selection?t(n):[]}},u=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},c=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},l=function(e,t,n){var r='src="'+n+'"'+(n===en.transparentSrc?' data-mce-placeholder="1"':"");return e=c(e,'src="'+t+'"',r),e=c(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},f=function(t,n){Q(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=Z(e.fragments,(function(e){return l(e,t,n)})):e.content=l(e.content,t,n)}))},d=function(t,n){var r=e.convertURL(n,"src");f(t.src,n),e.$(t).attr({src:Rd(e)?u(n):n,"data-mce-src":r})},h=function(n){return t||(t=mM(e,i)),g().then(s((function(i){var o=Z(i,(function(e){return e.blobInfo}));return t.upload(o,pM(e)).then(s((function(t){var o=[],s=Z(t,(function(t,n){var a=i[n].blobInfo,s=i[n].image;return t.status&&zd(e)?(r.removeByUri(s.src),NO(e)||d(s,t.url)):t.error&&(t.error.options.remove&&(f(s.getAttribute("src"),en.transparentSrc),o.push(s)),YD(e,t.error.message)),{element:s,status:t.status,uploadUri:t.url,blobInfo:a}}));return s.length>0&&a.fireIfChanged(),o.length>0&&(NO(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){Q(o,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(s),s})))})))},p=function(t){if(Id(e))return h(t)},m=function(t){if(!1===le(o,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Pd(e);return n(t)}return!0},v=function(e){o.push(e)},g=function(){return n||(n=$E(i,r)),n.findAll(e.getBody(),m).then(s((function(t){return t=ne(t,(function(t){return"string"!==typeof t||(KD(e,t),!1)})),NO(e)||Q(t,(function(e){f(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},b=function(){r.destroy(),i.destroy(),n=t=null},y=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var o=i.getResultUri(n);if(o)return'src="'+o+'"';var a=r.getByUri(n);if(a||(a=ie(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var s=a.blob();return'src="data:'+s.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Id(e)?p():g()})),e.on("RawSaveContent",(function(e){e.content=y(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=y(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Q(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=i.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:v,uploadImages:h,uploadImagesAuto:p,scanForImages:g,destroy:b}},yM=function(e){var t={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,audio,video",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,audio,video",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,audio,video",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(e,t,n){return Hr(e)&&e.hasAttribute("href")},onformat:function(t,n,r){pn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",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 pn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},wM=function(e){var t={},n=function(e){return k(e)?t[e]:t},r=function(e){return Ne(t,e)},i=function(e,n){e&&(g(e)?(y(n)||(n=[n]),Q(n,(function(e){_(e.deep)&&(e.deep=!Wm(e)),_(e.split)&&(e.split=!Wm(e)||Um(e)),_(e.remove)&&Wm(e)&&!Um(e)&&(e.remove="none"),Wm(e)&&Um(e)&&(e.mixed=!0,e.block_expand=!0),g(e.classes)&&(e.classes=e.classes.split(/\s+/))})),t[e]=n):_e(e,(function(e,t){i(t,e)})))},o=function(e){return e&&t[e]&&delete t[e],t};return i(yM(e.dom)),i(sh(e)),{get:n,has:r,register:i,unregister:o}},xM=pn.each,_M=jc.DOM,CM=function(e,t){var n,r,i,o=t&&t.schema||js({}),a=function(e,t){t.classes.length&&_M.addClass(e,t.classes.join(" ")),_M.setAttribs(e,t.attrs)},s=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=_M.create(r.name);return a(t,r),t},u=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=o.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(t&&-1!==pn.inArray(i,t)?t:i[0])},c=function(e,t,n){var r,i,o=t.length>0&&t[0],a=o&&o.name,l=u(e,a);if(l)a===l?(i=t[0],t=t.slice(1)):i=l;else if(o)i=t[0],t=t.slice(1);else if(!n)return e;return i&&(r=s(i),r.appendChild(e)),n&&(r||(r=_M.create("div"),r.appendChild(e)),pn.each(n,(function(t){var n=s(t);r.insertBefore(n,e)}))),c(r,t,i&&i.siblings)};return e&&e.length?(r=e[0],n=s(r),i=_M.create("div"),i.appendChild(c(n,e.slice(1),r.siblings)),i):""},kM=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=pn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,i,o){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==pn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===i){var a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},SM=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),pn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=pn.map(e.split(/(?:~\+|~|\+)/),kM),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},OM=function(e,t){var n,r,i,o="",a=uh(e);if(""===a)return"";var s=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var u=Ae(t,"preview");if(ci(u,!1))return"";a=u.getOr(a)}n=t.block||t.inline||"span";var c=SM(t.selector);c.length?(c[0].name||(c[0].name=n),n=t.selector,r=CM(c,e)):r=CM([n],e);var l=_M.select(n,r)[0]||r.firstChild;return xM(t.styles,(function(e,t){var n=s(e);n&&_M.setStyle(l,t,n)})),xM(t.attributes,(function(e,t){var n=s(e);n&&_M.setAttrib(l,t,n)})),xM(t.classes,(function(e){var t=s(e);_M.hasClass(l,t)||_M.addClass(l,t)})),e.fire("PreviewFormats"),_M.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),i=_M.getStyle(e.getBody(),"fontSize",!0),i=/px$/.test(i)?parseInt(i,10):0,xM(a.split(" "),(function(t){var n=_M.getStyle(l,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=_M.getStyle(e.getBody(),t,!0),"#ffffff"!==_M.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==_M.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===i)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*i+"px"}"border"===t&&n&&(o+="padding:0 2px;"),o+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),_M.remove(r),o},EM=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},TM=function(e){var t=wM(e),n=Xc(null);return EM(e),ik(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){QO(e,t,n,r)},remove:function(t,n,r,i){eE(e,t,n,r,i)},toggle:function(t,n,r){tE(e,t,n,r)},match:function(t,n,r,i){return KO(e,t,n,r,i)},closest:function(t){return ZO(e,t)},matchAll:function(t,n){return YO(e,t,n)},matchNode:function(t,n,r,i){return XO(e,t,n,r,i)},canApply:function(t){return JO(e,t)},formatChanged:function(t,r,i,o){return nE(e,n,t,r,i,o)},getCssText:P(OM,e)}},DM=function(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},MM=function(e,t,n){var r=Xc(!1),i=function(e){pO(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;DM(r)||(mO(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;DM(t)||i(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",i),e.on("dragend",i),e.on("keyup",(function(n){var o=n.keyCode;n.isDefaultPrevented()||((o>=33&&o<=36||o>=37&&o<=40||45===o||n.ctrlKey)&&(i(),e.nodeChanged()),46!==o&&8!==o||e.nodeChanged(),r.get()&&t.typing&&!1===dO(aO(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var o=e.keyCode;if(!e.isDefaultPrevented())if(o>=33&&o<=36||o>=37&&o<=40||45===o)t.typing&&i(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(o<16||o>20)||224===o||91===o||t.typing||a||(t.beforeChange(),pO(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&i(e)}));var o=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},s=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(o(e)||a(e)||s(e))&&i(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},AM=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},NM=function(e){var t=dl(),n=Xc(0),r=Xc(0),i={data:[],typing:!1,beforeChange:function(){BO(e,n,t)},add:function(o,a){return LO(e,i,r,n,t,o,a)},undo:function(){return $O(e,i,n,r)},redo:function(){return FO(e,r,i.data)},clear:function(){jO(e,i,r)},reset:function(){VO(e,i)},hasUndo:function(){return HO(e,i,r)},hasRedo:function(){return WO(e,i,r)},transact:function(t){return UO(e,i,n,t)},ignore:function(t){qO(e,n,t)},extra:function(t,n){GO(e,i,r,t,n)}};return NO(e)||MM(e,i,n),AM(e),i},PM=[9,27,tg.HOME,tg.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,tg.DOWN,tg.UP,tg.LEFT,tg.RIGHT].concat(en.browser.isFirefox()?[224]:[]),IM="data-mce-placeholder",RM=function(e){return"keydown"===e.type||"keyup"===e.type},zM=function(e){var t=e.keyCode;return t===tg.BACKSPACE||t===tg.DELETE},BM=function(e){if(RM(e)){var t=e.keyCode;return!zM(e)&&(tg.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||X(PM,t))}return!1},LM=function(e){return RM(e)&&!(zM(e)||"keyup"===e.type&&229===e.keyCode)},$M=function(e,t,n){if(ns(wn.fromDom(t),!1)){var r=""===n,i=t.firstElementChild;return!i||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(i):n===i.nodeName.toLowerCase())}return!1},FM=function(e){var t=e.dom,n=Sd(e),r=th(e),i=function(o,a){if(!BM(o)){var s=e.getBody(),u=!LM(o)&&$M(t,s,n),c=""!==t.getAttrib(s,IM);(c!==u||a)&&(t.setAttrib(s,IM,u?r:null),t.setAttrib(s,"aria-placeholder",u?r:null),Jv(e,u),e.on(u?"keydown":"keyup",i),e.off(u?"keyup":"keydown",i))}};r&&e.on("init",(function(t){i(t,!0),e.on("change SetContent ExecCommand",i),e.on("paste",(function(t){return zo.setEditorTimeout(e,(function(){return i(t)}))}))}))},jM=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,VM=function(e){return jM.test(e)},HM=function(e,t){return Dn(wn.fromDom(t),Zd(e))},WM=function(e){return"rtl"===jc.DOM.getStyle(e,"direction",!0)||VM(e.textContent)},UM=function(e,t,n){return ne(jc.DOM.getParents(n.container(),"*",t),e)},qM=function(e,t,n){var r=UM(e,t,n);return W.from(r[r.length-1])},GM=function(e,t,n){var r=lp(t,e),i=lp(n,e);return r&&r===i},KM=function(e){return _a(e)||Ca(e)},YM=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ba(n)?Qr(n.nextSibling)?Pf(n.nextSibling,0):Pf.after(n):_a(t)?Pf(n,r+1):t:ba(n)?Qr(n.previousSibling)?Pf(n.previousSibling,n.previousSibling.data.length):Pf.before(n):Ca(t)?Pf(n,r-1):t},XM=P(YM,!0),JM=P(YM,!1),ZM=function(e){return function(t){return Pn(e,wn.fromDom(t.dom.parentNode))}},QM=function(e){return ta(e)||ra(e)},eA=function(e,t){return zn(e,t)?Co(t,QM,ZM(e)):W.none()},tA=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},nA=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),tA(e))},rA=function(e,t,n){return fi(Jp(n),Zp(n),(function(r,i){var o=YM(!0,r),a=YM(!1,i),s=YM(!1,t);return e?Yp(n,s).exists((function(e){return e.isEqual(a)&&t.isEqual(o)})):Xp(n,s).exists((function(e){return e.isEqual(o)&&t.isEqual(a)}))})).getOr(!0)},iA=function(e,t){return{block:e,position:t}},oA=function(e,t){return{from:e,to:t}},aA=function(e,t){var n=wn.fromDom(e),r=wn.fromDom(t.container());return eA(n,r).map((function(e){return iA(e,t)}))},sA=function(e){return!1===Pn(e.from.block,e.to.block)},uA=function(e){return Xn(e.from.block).bind((function(t){return Xn(e.to.block).filter((function(e){return Pn(t,e)}))})).isSome()},cA=function(e){return!1===ai(e.from.block.dom)&&!1===ai(e.to.block.dom)},lA=function(e,t,n){return ri(n.position.getNode())&&!1===ns(n.block)?Kp(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?Up(t,e,r).bind((function(t){return aA(e,t)})):W.some(n)})).getOr(n):n},fA=function(e,t,n){var r=aA(e,Pf.fromRangeStart(n)),i=r.bind((function(n){return Up(t,e,n.position).bind((function(n){return aA(e,n).map((function(n){return lA(e,t,n)}))}))}));return fi(r,i,oA).filter((function(e){return sA(e)&&uA(e)&&cA(e)}))},dA=function(e,t,n){return n.collapsed?fA(e,t,n):W.none()},hA=function(e){var t=rr(e);return se(t,Jo).fold(M(t),(function(e){return t.slice(0,e)}))},pA=function(e){var t=hA(e);return Q(t,Or),t},mA=function(e,t){var n=Dw(t,e);return ae(n.reverse(),(function(e){return ns(e)})).each(Or)},vA=function(e){return 0===ne(tr(e),(function(e){return!ns(e)})).length},gA=function(e,t,n,r){if(ns(n))return kw(n),Jp(n.dom);vA(r)&&ns(t)&&br(r,wn.fromTag("br"));var i=Xp(n.dom,Pf.before(r.dom));return Q(pA(t),(function(e){br(r,e)})),mA(e,t),i},bA=function(e,t,n){if(ns(n))return Or(n),ns(t)&&kw(t),Jp(t.dom);var r=Zp(n.dom);return Q(pA(t),(function(e){xr(n,e)})),mA(e,t),r},yA=function(e,t){var n=Dw(t,e);return W.from(n[n.length-1])},wA=function(e,t){return zn(t,e)?yA(t,e):W.none()},xA=function(e,t){Kp(e,t.dom).map((function(e){return e.getNode()})).map(wn.fromDom).filter(ea).each(Or)},_A=function(e,t,n){return xA(!0,t),xA(!1,n),wA(t,n).fold(P(bA,e,t,n),P(gA,e,t,n))},CA=function(e,t,n,r){return t?_A(e,r,n):_A(e,n,r)},kA=function(e,t){var n=wn.fromDom(e.getBody()),r=dA(n.dom,t,e.selection.getRng()).bind((function(e){return CA(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},SA=function(e,t){var n=t.getRng();return fi(eA(e,wn.fromDom(n.startContainer)),eA(e,wn.fromDom(n.endContainer)),(function(r,i){return!1===Pn(r,i)&&(n.deleteContents(),CA(e,!0,r,i).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},OA=function(e,t){var n=wn.fromDom(t),r=P(Pn,e);return _o(n,oa,r).isSome()},EA=function(e,t){return OA(e,t.startContainer)||OA(e,t.endContainer)},TA=function(e,t){var n=Xp(e.dom,Pf.fromRangeStart(t)).isNone(),r=Yp(e.dom,Pf.fromRangeEnd(t)).isNone();return!EA(e,t)&&n&&r},DA=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},MA=function(e){var t=wn.fromDom(e.getBody()),n=e.selection.getRng();return TA(t,n)?DA(e):SA(t,e.selection)},AA=function(e,t){return!e.selection.isCollapsed()&&MA(e)},NA=oi,PA=ai,IA=function(e,t,n,r,i){return W.from(t._selectionOverrides.showCaret(e,n,r,i))},RA=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},zA=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?W.none():W.some(RA(t))},BA=function(e,t,n){var r=bp(1,e.getBody(),t),i=Pf.fromRangeStart(r),o=i.getNode();if(Jh(o))return IA(1,e,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(Jh(a))return IA(1,e,a,!1,!1);var s=e.dom.getParent(i.getNode(),(function(e){return PA(e)||NA(e)}));return Jh(s)?IA(1,e,s,!1,n):W.none()},LA=function(e,t,n){return t.collapsed?BA(e,t,n).getOr(t):t},$A=function(e){return ww(e)||vw(e)},FA=function(e){return xw(e)||gw(e)},jA=function(e,t){Qr(t)&&0===t.data.length&&e.remove(t)},VA=function(e,t,n,r,i,o){return IA(r,e,o.getNode(!i),i,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),jA(e.dom,n),!0},HA=function(e,t){var n=e.selection.getRng();if(!Qr(n.commonAncestorContainer))return!1;var r=t?If.Forwards:If.Backwards,i=Bp(e.getBody()),o=P(Cp,t?i.next:i.prev),a=t?$A:FA,s=wp(r,e.getBody(),n),u=YM(t,o(s));if(!u||!kp(s,u))return!1;if(a(u))return VA(e,n,s.getNode(),r,t,u);var c=o(u);return!!(c&&a(c)&&kp(u,c))&&VA(e,n,s.getNode(),r,t,c)},WA=function(e,t){return HA(e,t)},UA=function(e){return oa(wn.fromDom(e))||ra(wn.fromDom(e))},qA=Qi.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),GA=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return Hr(n)&&n.getAttribute("data-mce-caret")===r},KA=function(e,t,n,r){var i=function(t){return Qo(wn.fromDom(t))&&!fp(n,r,e)};return yp(!t,n).fold((function(){return yp(t,r).fold(L,i)}),i)},YA=function(e,t,n,r){var i=r.getNode(!1===t);return eA(wn.fromDom(e),wn.fromDom(n.getNode())).map((function(e){return ns(e)?qA.remove(e.dom):qA.moveToElement(i)})).orThunk((function(){return W.some(qA.moveToElement(i))}))},XA=function(e,t,n){return Up(t,e,n).bind((function(r){return UA(r.getNode())||KA(e,t,n,r)?W.none():t&&ai(r.getNode())||!1===t&&ai(r.getNode(!0))?YA(e,t,n,r):t&&xw(n)||!1===t&&ww(n)?W.some(qA.moveToPosition(r)):W.none()}))},JA=function(e,t){return e&&ai(t.nextSibling)?W.some(qA.moveToElement(t.nextSibling)):!1===e&&ai(t.previousSibling)?W.some(qA.moveToElement(t.previousSibling)):W.none()},ZA=function(e,t,n){return n.fold((function(e){return W.some(qA.remove(e))}),(function(e){return W.some(qA.moveToElement(e))}),(function(n){return fp(t,n,e)?W.none():W.some(qA.moveToPosition(n))}))},QA=function(e,t,n){return GA(t,n)?JA(t,n.getNode(!1===t)).fold((function(){return XA(e,t,n)}),W.some):XA(e,t,n).bind((function(t){return ZA(e,n,t)}))},eN=function(e,t,n){var r=bp(t?1:-1,e,n),i=Pf.fromRangeStart(r),o=wn.fromDom(e);return!1===t&&xw(i)?W.some(qA.remove(i.getNode(!0))):t&&ww(i)?W.some(qA.remove(i.getNode())):!1===t&&ww(i)&&jw(o,i)?Vw(o,i).map((function(e){return qA.remove(e.getNode())})):t&&xw(i)&&Fw(o,i)?Hw(o,i).map((function(e){return qA.remove(e.getNode())})):QA(e,t,i)},tN=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),Rx(e,t,wn.fromDom(n)),!0}},nN=function(e,t){return function(n){var r=t?Pf.before(n):Pf.after(n);return e.selection.setRng(r.toRange()),!0}},rN=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},iN=function(e,t){return W.from($v(e.getBody(),t))},oN=function(e,t){var n=e.selection.getNode();return iN(e,n).filter(ai).fold((function(){return eN(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(tN(e,t),nN(e,t),rN(e))}))}),$)},aN=function(e){Q(El(e,".mce-offscreen-selection"),Or)},sN=function(e,t){var n=e.selection.getNode();if(ai(n)&&!si(n)){var r=iN(e,n.parentNode).filter(ai);return r.fold((function(){return aN(wn.fromDom(e.getBody())),Rx(e,t,wn.fromDom(e.selection.getNode())),nA(e),!0}),$)}return!1},uN=function(e){var t=e.dom,n=e.selection,r=$v(e.getBody(),n.getNode());if(oi(r)&&t.isBlock(r)&&t.isEmpty(r)){var i=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(i),n.setRng(Pf.before(i).toRange())}return!0},cN=function(e,t){return e.selection.isCollapsed()?oN(e,t):sN(e,t)},lN=function(e,t){var n=Pf.fromRangeStart(e.selection.getRng());return Up(t,e.getBody(),n).filter((function(e){return t?pw(e):mw(e)})).bind((function(e){return W.from(dp(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},fN=function(e,t){return!!e.selection.isCollapsed()&&lN(e,t)},dN=Qr,hN=function(e){return dN(e)&&e.data[0]===da},pN=function(e){return dN(e)&&e.data[e.data.length-1]===da},mN=function(e){return e.ownerDocument.createTextNode(da)},vN=function(e){if(dN(e.previousSibling))return pN(e.previousSibling)||e.previousSibling.appendData(da),e.previousSibling;if(dN(e))return hN(e)||e.insertData(0,da),e;var t=mN(e);return e.parentNode.insertBefore(t,e),t},gN=function(e){if(dN(e.nextSibling))return hN(e.nextSibling)||e.nextSibling.insertData(0,da),e.nextSibling;if(dN(e))return pN(e)||e.appendData(da),e;var t=mN(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},bN=function(e,t){return e?vN(t):gN(t)},yN=P(bN,!0),wN=P(bN,!1),xN=function(e,t){return Qr(e.container())?bN(t,e.container()):bN(t,e.getNode())},_N=function(e,t){var n=t.get();return n&&e.container()===n&&ba(n)},CN=function(e,t){return t.fold((function(t){jh(e.get());var n=yN(t);return e.set(n),W.some(Pf(n,n.length-1))}),(function(t){return Jp(t).map((function(t){if(_N(t,e))return Pf(e.get(),1);jh(e.get());var n=xN(t,!0);return e.set(n),Pf(n,1)}))}),(function(t){return Zp(t).map((function(t){if(_N(t,e))return Pf(e.get(),e.get().length-1);jh(e.get());var n=xN(t,!1);return e.set(n),Pf(n,n.length-1)}))}),(function(t){jh(e.get());var n=wN(t);return e.set(n),W.some(Pf(n,1))}))},kN=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return W.none()},SN=Qi.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),ON=function(e,t){var n=lp(t,e);return n||e},EN=function(e,t,n){var r=XM(n),i=ON(t,r.container());return qM(e,i,r).fold((function(){return Yp(i,r).bind(P(qM,e,i)).map((function(e){return SN.before(e)}))}),W.none)},TN=function(e,t){return null===tm(e,t)},DN=function(e,t,n){return qM(e,t,n).filter(P(TN,t))},MN=function(e,t,n){var r=JM(n);return DN(e,t,r).bind((function(e){var t=Xp(e,r);return t.isNone()?W.some(SN.start(e)):W.none()}))},AN=function(e,t,n){var r=XM(n);return DN(e,t,r).bind((function(e){var t=Yp(e,r);return t.isNone()?W.some(SN.end(e)):W.none()}))},NN=function(e,t,n){var r=JM(n),i=ON(t,r.container());return qM(e,i,r).fold((function(){return Xp(i,r).bind(P(qM,e,i)).map((function(e){return SN.after(e)}))}),W.none)},PN=function(e){return!1===WM(RN(e))},IN=function(e,t,n){var r=kN([EN,MN,AN,NN],[e,t,n]);return r.filter(PN)},RN=function(e){return e.fold(A,A,A,A)},zN=function(e){return e.fold(M("before"),M("start"),M("end"),M("after"))},BN=function(e){return e.fold(SN.before,SN.before,SN.after,SN.after)},LN=function(e){return e.fold(SN.start,SN.start,SN.end,SN.end)},$N=function(e,t){return zN(e)===zN(t)&&RN(e)===RN(t)},FN=function(e,t,n,r,i,o){return fi(qM(t,n,r),qM(t,n,i),(function(t,r){return t!==r&&GM(n,t,r)?SN.after(e?t:r):o})).getOr(o)},jN=function(e,t){return e.fold($,(function(e){return!$N(e,t)}))},VN=function(e,t,n,r,i){var o=YM(e,i),a=Up(e,n,o).map(P(YM,e)),s=a.fold((function(){return r.map(BN)}),(function(i){return IN(t,n,i).map(P(FN,e,t,n,o,i)).filter(P(jN,r))}));return s.filter(PN)},HN=function(e,t){return e?t.fold(T(W.some,SN.start),W.none,T(W.some,SN.after),W.none):t.fold(W.none,T(W.some,SN.before),W.none,T(W.some,SN.end))},WN=function(e,t,n,r){var i=YM(e,r),o=IN(t,n,i);return IN(t,n,i).bind(P(HN,e)).orThunk((function(){return VN(e,t,n,o,r)}))};P(WN,!1),P(WN,!0);var UN,qN=function(e){return S(e.selection.getSel().modify)},GN=function(e,t,n){var r=e?1:-1;return t.setRng(Pf(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},KN=function(e,t){var n=t.selection.getRng(),r=e?Pf.fromRangeEnd(n):Pf.fromRangeStart(n);return!!qN(t)&&(e&&_a(r)?GN(!0,t.selection,r):!(e||!Ca(r))&&GN(!1,t.selection,r))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(UN||(UN={}));var YN,XN=function(e,t){return e===If.Backwards?fe(t):t},JN=function(e,t,n){return e===If.Forwards?t.next(n):t.prev(n)},ZN=function(e,t,n,r){return ri(r.getNode(t===If.Forwards))?UN.Br:!1===fp(n,r)?UN.Block:UN.Wrap},QN=function(e,t,n,r){var i=Bp(n),o=r,a=[];while(o){var s=JN(t,i,o);if(!s)break;if(ri(s.getNode(!1)))return t===If.Forwards?{positions:XN(t,a).concat([s]),breakType:UN.Br,breakAt:W.some(s)}:{positions:XN(t,a),breakType:UN.Br,breakAt:W.some(s)};if(s.isVisible()){if(e(o,s)){var u=ZN(n,t,o,s);return{positions:XN(t,a),breakType:u,breakAt:W.some(s)}}a.push(s),o=s}else o=s}return{positions:XN(t,a),breakType:UN.Eol,breakAt:W.none()}},eP=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var i=t(n,r).positions;return e===If.Backwards?i.concat(r):[r].concat(i)})).getOr([])},tP=function(e,t){return ie(e,(function(e,n){return e.fold((function(){return W.some(n)}),(function(r){return fi(ve(r.getClientRects()),ve(n.getClientRects()),(function(e,i){var o=Math.abs(t-e.left),a=Math.abs(t-i.left);return a<=o?n:r})).or(e)}))}),W.none())},nP=function(e,t){return ve(t.getClientRects()).bind((function(t){return tP(e,t.left)}))},rP=P(QN,Pf.isAbove,-1),iP=P(QN,Pf.isBelow,1),oP=P(eP,-1,rP),aP=P(eP,1,iP),sP=function(e,t){return rP(e,t).breakAt.isNone()},uP=function(e,t){return iP(e,t).breakAt.isNone()},cP=function(e){return Jp(e).map((function(t){return[t].concat(iP(e,t).positions)})).getOr([])},lP=function(e){return Zp(e).map((function(t){return rP(e,t).positions.concat(t)})).getOr([])},fP=function(e){var t=function(t){return Z(t,(function(t){var n=Jl(t);return n.node=e,n}))};if(Hr(e))return t(e.getClientRects());if(Qr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},dP=function(e){return ce(e,fP)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(YN||(YN={}));var hP,pP,mP=function(e,t,n,r){while(r=cp(r,e,Ua,t))if(n(r))return},vP=function(e,t,n,r,i,o){var a=0,s=[],u=function(r){var o=dP([r]);-1===e&&(o=o.reverse());for(var u=0;u<o.length;u++){var l=o[u];if(!n(l,c)){if(s.length>0&&t(l,He(s))&&a++,l.line=a,i(l))return!0;s.push(l)}}},c=He(o.getClientRects());if(!c)return s;var l=o.getNode();return u(l),mP(e,r,u,l),s},gP=function(e,t){return t.line>e},bP=function(e,t){return t.line===e},yP=P(vP,YN.Up,tf,nf),wP=P(vP,YN.Down,nf,tf),xP=function(e,t,n,r){var i,o,a,s,u=Bp(t),c=[],l=0,f=function(e){return He(e.getClientRects())};1===e?(i=u.next,o=nf,a=tf,s=Pf.after(r)):(i=u.prev,o=tf,a=nf,s=Pf.before(r));var d=f(s);do{if(s.isVisible()){var h=f(s);if(!a(h,d)){c.length>0&&o(h,He(c))&&l++;var p=Jl(h);if(p.position=s,p.line=l,n(p))return c;c.push(p)}}}while(s=i(s));return c},_P=function(e){return function(t){return gP(e,t)}},CP=function(e){return function(t){return bP(e,t)}},kP=ai,SP=cp,OP=function(e,t){return Math.abs(e.left-t)},EP=function(e,t){return Math.abs(e.right-t)},TP=function(e,t){return e>=t.left&&e<=t.right},DP=function(e,t){return e>=t.top&&e<=t.bottom},MP=function(e){return Pe(e,"node")},AP=function(e,t,n){return void 0===n&&(n=$),je(e,(function(e,r){if(TP(t,r))return n(r)?r:e;if(TP(t,e))return n(e)?e:r;var i=Math.min(OP(e,t),EP(e,t)),o=Math.min(OP(r,t),EP(r,t));return o===i&&MP(r)&&kP(r.node)||o<i?r:e}))},NP=function(e,t,n,r,i){var o=SP(r,e,Ua,t,!i);do{if(!o||n(o))return}while(o=SP(o,e,Ua,t))},PP=function(e,t,n){void 0===n&&(n=!0);var r=[],i=function(e,n){var i=ne(dP([n]),(function(n){return!e(n,t)}));return r=r.concat(i),0===i.length};return r.push(t),NP(YN.Up,e,P(i,tf),t.node,n),NP(YN.Down,e,P(i,nf),t.node,n),r},IP=function(e){return ne(be(e.getElementsByTagName("*")),Zh)},RP=function(e,t){return{node:e.node,before:OP(e,t)<EP(e,t)}},zP=function(e,t,n){var r=dP(IP(e)),i=ne(r,P(DP,n)),o=function(e){return!Xr(e.node)&&!ui(e.node)},a=AP(i,t,o);if(a){var s=o(a);if(a=AP(PP(e,a,s),t,o),a&&Zh(a.node))return RP(a,t)}return null},BP=function(e,t){e.selection.setRng(t),nb(e,e.selection.getRng())},LP=function(e,t,n){return W.some(LA(e,t,n))},$P=function(e,t,n,r,i,o){var a=t===If.Forwards,s=Bp(e.getBody()),u=P(Cp,a?s.next:s.prev),c=a?r:i;if(!n.collapsed){var l=af(n);if(o(l))return IA(t,e,l,t===If.Backwards,!1)}var f=wp(t,e.getBody(),n);if(c(f))return zA(e,f.getNode(!a));var d=YM(a,u(f)),h=Ma(n);if(!d)return h?W.some(n):W.none();if(c(d))return IA(t,e,d.getNode(!a),a,!1);var p=u(d);return p&&c(p)&&kp(d,p)?IA(t,e,p.getNode(!a),a,!1):h?LP(e,d.toRange(),!1):W.none()},FP=function(e,t,n,r,i,o){var a=wp(t,e.getBody(),n),s=He(a.getClientRects()),u=t===YN.Down;if(!s)return W.none();var c,l=u?wP:yP,f=l(e.getBody(),_P(1),a),d=ne(f,CP(1)),h=s.left,p=AP(d,h);if(p&&o(p.node)){var m=Math.abs(h-p.left),v=Math.abs(h-p.right);return IA(t,e,p.node,m<v,!1)}if(c=r(a)?a.getNode():i(a)?a.getNode(!0):af(n),c){var g=xP(t,e.getBody(),_P(1),c),b=AP(ne(g,CP(1)),h);if(b)return LP(e,b.position.toRange(),!1);if(b=He(ne(g,CP(0))),b)return LP(e,b.position.toRange(),!1)}return 0===d.length?jP(e,u).filter(u?i:r).map((function(t){return LA(e,t.toRange(),!1)})):W.none()},jP=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var i=Pf.fromRangeEnd(n),o=iP(r,i);return ge(o.positions)}i=Pf.fromRangeStart(n),o=rP(r,i);return ve(o.positions)},VP=function(e,t,n){return jP(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},HP=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},WP=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},UP=function(e,t,n){return CN(t,n).map((function(t){return HP(e,t),n}))},qP=function(e,t,n){var r=e.getBody(),i=Pf.fromRangeStart(e.selection.getRng()),o=P(HM,e),a=WN(n,o,r,i);return a.bind((function(n){return UP(e,t,n)}))},GP=function(e,t,n){var r=Z(El(wn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),i=ne(r,e),o=ne(n,e);Q(de(i,o),P(WP,!1)),Q(de(o,i),P(WP,!0))},KP=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Pf.fromRangeStart(e.selection.getRng());Pf.isTextPosition(n)&&!1===KM(n)&&(HP(e,Fh(t.get(),n)),t.set(null))}},YP=function(e,t,n,r){if(t.selection.isCollapsed()){var i=ne(r,e);Q(i,(function(r){var i=Pf.fromRangeStart(t.selection.getRng());IN(e,t.getBody(),i).bind((function(e){return UP(t,n,e)}))}))}},XP=function(e,t,n){return!!ah(e)&&qP(e,t,n).isSome()},JP=function(e,t,n){return!!ah(t)&&KN(e,t)},ZP=function(e){var t=Xc(null),n=P(HM,e);return e.on("NodeChange",(function(r){!ah(e)||en.browser.isIE()&&r.initial||(GP(n,e.dom,r.parents),KP(e,t),YP(n,e,t,r.parents))})),t},QP=P(JP,!0),eI=P(JP,!1),tI=function(e,t,n){if(ah(e)){var r=jP(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?Pf.fromRangeEnd(n):Pf.fromRangeStart(n)}));return IN(P(HM,e),e.getBody(),r).exists((function(t){var r=BN(t);return CN(n,r).exists((function(t){return HP(e,t),!0}))}))}return!1},nI=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},rI=function(e){return fi(Jp(e),Zp(e),(function(t,n){var r=YM(!0,t),i=YM(!1,n);return Yp(e,r).forall((function(e){return e.isEqual(i)}))})).getOr(!0)},iI=function(e,t){return function(n){return CN(t,n).exists((function(t){return HP(e,t),!0}))}},oI=function(e,t,n,r){var i=e.getBody(),o=P(HM,e);e.undoManager.ignore((function(){e.selection.setRng(nI(n,r)),e.execCommand("Delete"),IN(o,i,Pf.fromRangeStart(e.selection.getRng())).map(LN).map(iI(e,t))})),e.nodeChanged()},aI=function(e,t){var n=lp(t,e);return n||e},sI=function(e,t,n,r){var i=aI(e.getBody(),r.container()),o=P(HM,e),a=IN(o,i,r);return a.bind((function(e){return n?e.fold(M(W.some(LN(e))),W.none,M(W.some(BN(e))),W.none):e.fold(W.none,M(W.some(BN(e))),W.none,M(W.some(LN(e))))})).map(iI(e,t)).getOrThunk((function(){var s=qp(n,i,r),u=s.bind((function(e){return IN(o,i,e)}));return fi(a,u,(function(){return qM(o,i,r).exists((function(t){return!!rI(t)&&(Rx(e,n,wn.fromDom(t)),!0)}))})).orThunk((function(){return u.bind((function(i){return s.map((function(i){return n?oI(e,t,r,i):oI(e,t,i,r),!0}))}))})).getOr(!1)}))},uI=function(e,t,n){if(e.selection.isCollapsed()&&ah(e)){var r=Pf.fromRangeStart(e.selection.getRng());return sI(e,t,n,r)}return!1},cI=function(e,t){var n=Dw(t,e);return se(n,Jo).fold(M(n),(function(e){return n.slice(0,e)}))},lI=function(e){return 1===sr(e)},fI=function(e,t,n,r){var i=P(ak,t),o=Z(ne(r,i),(function(e){return e.dom}));if(0===o.length)Rx(t,e,n);else{var a=ok(n.dom,o);t.selection.setRng(a.toRange())}},dI=function(e,t){var n=wn.fromDom(e.getBody()),r=wn.fromDom(e.selection.getStart()),i=ne(cI(n,r),lI);return ge(i).exists((function(n){var r=Pf.fromRangeStart(e.selection.getRng());return!(!rA(t,r,n.dom)||sk(n))&&(fI(t,e,n,i),!0)}))},hI=function(e,t){return!!e.selection.isCollapsed()&&dI(e,t)},pI=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),Rx(e,t,wn.fromDom(n)),!0},mI=function(e,t){var n=t?vw:gw,r=t?If.Forwards:If.Backwards,i=wp(r,e.getBody(),e.selection.getRng());return n(i)?pI(e,t,i.getNode(!t)):W.from(YM(t,i)).filter((function(e){return n(e)&&kp(i,e)})).exists((function(n){return pI(e,t,n.getNode(!t))}))},vI=function(e,t){var n=e.selection.getNode();return!!ui(n)&&pI(e,t,n)},gI=function(e,t){return e.selection.isCollapsed()?mI(e,t):vI(e,t)},bI=function(e){return Co(e,(function(e){return oi(e.dom)||ai(e.dom)})).exists((function(e){return oi(e.dom)}))},yI=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},wI=function(e,t){var n=e||Zo(t)?"margin":"padding",r="rtl"===Si(t,"direction")?"-right":"-left";return n+r},xI=function(e,t,n,r,i,o){var a=wI(n,wn.fromDom(o));if("outdent"===t){var s=Math.max(0,yI(o.style[a])-r);e.setStyle(o,a,s?s+i:"")}else{s=yI(o.style[a])+r+i;e.setStyle(o,a,s)}},_I=function(e,t){return le(t,(function(t){var n=wI(Gd(e),t),r=Ei(t,n).map(yI).getOr(0),i=e.dom.getContentEditable(t.dom);return"false"!==i&&r>0}))},CI=function(e){var t=OI(e);return!e.mode.isReadOnly()&&(t.length>1||_I(e,t))},kI=function(e){return na(e)||ra(e)},SI=function(e){return Xn(e).exists(kI)},OI=function(e){return ne(Vl(e.selection.getSelectedBlocks()),(function(e){return!kI(e)&&!SI(e)&&bI(e)}))},EI=function(e,t){var n=e.dom,r=e.selection,i=e.formatter,o=Kd(e),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),u=Gd(e),c=Sd(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==c||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),Q(OI(e),(function(e){xI(n,t,u,s,a,e.dom)}))},TI=function(e,t){if(e.selection.isCollapsed()&&CI(e)){var n=e.dom,r=e.selection.getRng(),i=Pf.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&Iw(wn.fromDom(o),i))return EI(e,"outdent"),!0}return!1},DI=function(e,t){e.getDoc().execCommand(t,!1,null)},MI=function(e,t){TI(e)||cN(e,!1)||WA(e,!1)||uI(e,t,!1)||kA(e,!1)||A_(e)||fN(e,!1)||gI(e,!1)||AA(e)||hI(e,!1)||(DI(e,"Delete"),nA(e))},AI=function(e,t){cN(e,!0)||WA(e,!0)||uI(e,t,!0)||kA(e,!0)||A_(e)||fN(e,!0)||gI(e,!0)||AA(e)||hI(e,!0)||DI(e,"ForwardDelete")},NI=function(e,t){e.addCommand("delete",(function(){MI(e,t)})),e.addCommand("forwardDelete",(function(){AI(e,t)}))},PI=5,II=400,RI=function(e){return void 0===e.touches||1!==e.touches.length?W.none():W.some(e.touches[0])},zI=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>PI||r>PI},BI=function(e){var t=dl(),n=Xc(!1),r=pl((function(t){e.fire("longpress",We(We({},t),{type:"longpress"})),n.set(!0)}),II);e.on("touchstart",(function(e){RI(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(o)}))}),!0),e.on("touchmove",(function(i){r.cancel(),RI(i).each((function(r){t.on((function(i){zI(r,i)&&(t.clear(),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(i){r.cancel(),"touchcancel"!==i.type&&t.get().filter((function(e){return e.target.isEqualNode(i.target)})).each((function(){n.get()?i.preventDefault():e.fire("tap",We(We({},i),{type:"tap"}))}))}),!0)},LI=function(e,t){return Ne(e,t.nodeName)},$I=function(e,t){return!!Qr(t)||!!Hr(t)&&(!LI(e,t)&&!_m(t))},FI=function(e,t,n){return J(Tw(wn.fromDom(n),wn.fromDom(t)),(function(t){return LI(e,t.dom)}))},jI=function(e,t){if(Qr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||LI(e,t.nextSibling)))return!0}return!1},VI=function(e){var t,n,r,i=e.dom,o=e.selection,a=e.schema,s=a.getBlockElements(),u=o.getStart(),c=e.getBody(),l=Sd(e);if(u&&Hr(u)&&l){var f=c.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&!FI(s,c,u)){var d=o.getRng(),h=d.startContainer,p=d.startOffset,m=d.endContainer,v=d.endOffset,g=dy(e);u=c.firstChild;while(u)if($I(s,u)){if(jI(s,u)){n=u,u=u.nextSibling,i.remove(n);continue}t||(t=i.create(l,Od(e)),u.parentNode.insertBefore(t,u),r=!0),n=u,u=u.nextSibling,t.appendChild(n)}else t=null,u=u.nextSibling;r&&g&&(d.setStart(h,p),d.setEnd(m,v),o.setRng(d),e.nodeChanged())}}},HI=function(e){Sd(e)&&e.on("NodeChange",P(VI,e))},WI=function(e){return Eo(wn.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull()},UI=function(e){e.selection.setRng(e.selection.getRng())},qI=function(e,t){t.hasAttribute("data-mce-caret")&&(Da(t),UI(e),e.selection.scrollIntoView(t))},GI=function(e,t){var n=WI(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void qI(e,n)):void(wa(n)&&(qI(e,n),e.undoManager.add()))},KI=function(e){e.on("keyup compositionstart",P(GI,e))},YI=ai,XI=function(e,t,n){return $P(t,e,n,ww,xw,YI)},JI=function(e,t,n){var r=function(e){return ww(e)||bw(e)},i=function(e){return xw(e)||yw(e)};return FP(t,e,n,r,i,YI)},ZI=function(e){var t=e.dom.create(Sd(e));return(!en.ie||en.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},QI=function(e,t,n){var r=Bp(e.getBody()),i=P(Cp,1===t?r.next:r.prev);if(n.collapsed&&bh(e)){var o=e.dom.getParent(n.startContainer,"PRE");if(!o)return;var a=i(Pf.fromRangeStart(n));if(!a){var s=ZI(e);1===t?e.$(o).after(s):e.$(o).before(s),e.selection.select(s,!0),e.selection.collapse()}}},eR=function(e,t){var n=t?If.Forwards:If.Backwards,r=e.selection.getRng();return XI(n,e,r).orThunk((function(){return QI(e,n,r),W.none()}))},tR=function(e,t){var n=t?1:-1,r=e.selection.getRng();return JI(n,e,r).orThunk((function(){return QI(e,n,r),W.none()}))},nR=function(e,t){return eR(e,t).exists((function(t){return BP(e,t),!0}))},rR=function(e,t){return tR(e,t).exists((function(t){return BP(e,t),!0}))},iR=function(e,t){var n=t?xw:ww;return VP(e,t,n)},oR=function(e){return X(["figcaption"],Bn(e))},aR=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},sR=function(e,t,n){n?xr(e,t):wr(e,t)},uR=function(e,t){var n=wn.fromTag("br");return sR(e,n,t),aR(n)},cR=function(e,t,n,r){var i=wn.fromTag(n),o=wn.fromTag("br");return gi(i,r),xr(i,o),sR(e,i,t),aR(o)},lR=function(e,t,n,r){return""===t?uR(e,r):cR(e,r,t,n)},fR=function(e,t){var n=P(Pn,t);return Co(wn.fromDom(e.container()),Jo,n).filter(oR)},dR=function(e,t,n){return t?uP(e.dom,n):sP(e.dom,n)},hR=function(e,t){var n=wn.fromDom(e.getBody()),r=Pf.fromRangeStart(e.selection.getRng()),i=Sd(e),o=Od(e);return fR(r,n).exists((function(){if(dR(n,t,r)){var a=lR(n,i,o,t);return e.selection.setRng(a),!0}return!1}))},pR=function(e,t){return!!e.selection.isCollapsed()&&hR(e,t)},mR=function(e){return Z(e,(function(e){return We({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:E},e)}))},vR=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},gR=function(e,t){return ce(mR(e),(function(e){return vR(e,t)?[e]:[]}))},bR=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},yR=function(e,t){return ae(gR(e,t),(function(e){return e.action()}))},wR=function(e,t){var n=t?If.Forwards:If.Backwards,r=e.selection.getRng();return $P(e,n,r,vw,gw,ui).exists((function(t){return BP(e,t),!0}))},xR=function(e,t){var n=t?1:-1,r=e.selection.getRng();return FP(e,n,r,vw,gw,ui).exists((function(t){return BP(e,t),!0}))},_R=function(e,t){var n=t?gw:vw;return VP(e,t,n)},CR=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},kR=function(e,t){return ce(t,(function(t){var n=CR(Jl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},SR=function(e,t,n){return ie(e,(function(e,r){return e.fold((function(){return W.some(r)}),(function(e){var i=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),o=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return W.some(o<i?r:e)}))}),W.none())},OR=function(e,t,n,r,i){var o=El(wn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=ne(kR(e,o),(function(e){return t(e,i)}));return SR(a,r,i).map((function(e){return e.cell}))},ER=function(e){return e.bottom},TR=function(e){return e.top},DR=function(e,t){return e.y<t},MR=function(e,t){return e.y>t},AR=P(OR,ER,DR),NR=P(OR,TR,MR),PR=function(e,t){return ve(t.getClientRects()).bind((function(t){return AR(e,t.left,t.top)})).bind((function(e){return nP(lP(e),t)}))},IR=function(e,t){return ge(t.getClientRects()).bind((function(t){return NR(e,t.left,t.top)})).bind((function(e){return nP(cP(e),t)}))},RR=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},zR=function(e){return e.breakType===UN.Wrap&&0===e.positions.length},BR=function(e){return e.breakType===UN.Br&&1===e.positions.length},LR=function(e,t,n){var r=e(t,n);return zR(r)||!ri(n.getNode())&&BR(r)?!RR(e,t,r):r.breakAt.isNone()},$R=P(LR,rP),FR=P(LR,iP),jR=function(e,t,n){var r=Pf.fromRangeStart(t);return Kp(!e,n).exists((function(e){return e.isEqual(r)}))},VR=function(e,t,n,r){var i=e.selection.getRng(),o=t?1:-1;return!(!Xh()||!jR(t,i,n))&&(IA(o,e,n,!t,!1).each((function(t){BP(e,t)})),!0)},HR=function(e,t,n){return PR(t,n).orThunk((function(){return ve(n.getClientRects()).bind((function(n){return tP(oP(e,Pf.before(t)),n.left)}))})).getOr(Pf.before(t))},WR=function(e,t,n){return IR(t,n).orThunk((function(){return ve(n.getClientRects()).bind((function(n){return tP(aP(e,Pf.after(t)),n.left)}))})).getOr(Pf.after(t))},UR=function(e,t){var n=t.getNode(e);return Hr(n)&&"TABLE"===n.nodeName?W.some(n):W.none()},qR=function(e,t,n,r){var i=Sd(t);i?t.undoManager.transact((function(){var r=wn.fromTag(i);gi(r,Od(t)),xr(r,wn.fromTag("br")),e?yr(wn.fromDom(n),r):br(wn.fromDom(n),r);var o=t.dom.createRng();o.setStart(r.dom,0),o.setEnd(r.dom,0),BP(t,o)})):BP(t,r.toRange())},GR=function(e,t,n){var r=UR(!!t,n),i=!1===t;r.fold((function(){return BP(e,n.toRange())}),(function(r){return Kp(i,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return BP(e,n.toRange())}),(function(i){return qR(t,e,r,n)}))}))},KR=function(e,t,n,r){var i=e.selection.getRng(),o=Pf.fromRangeStart(i),a=e.getBody();if(!t&&$R(r,o)){var s=HR(a,n,o);return GR(e,t,s),!0}if(t&&FR(r,o)){s=WR(a,n,o);return GR(e,t,s),!0}return!1},YR=function(e,t,n){return W.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return W.from(e.dom.getParent(r,"table")).map((function(i){return n(e,t,i,r)}))})).getOr(!1)},XR=function(e,t){return YR(e,t,VR)},JR=function(e,t){return YR(e,t,KR)},ZR=function(e,t,n){var r=Ut().os;yR([{keyCode:tg.RIGHT,action:bR(nR,e,!0)},{keyCode:tg.LEFT,action:bR(nR,e,!1)},{keyCode:tg.UP,action:bR(rR,e,!1)},{keyCode:tg.DOWN,action:bR(rR,e,!0)},{keyCode:tg.RIGHT,action:bR(XR,e,!0)},{keyCode:tg.LEFT,action:bR(XR,e,!1)},{keyCode:tg.UP,action:bR(JR,e,!1)},{keyCode:tg.DOWN,action:bR(JR,e,!0)},{keyCode:tg.RIGHT,action:bR(wR,e,!0)},{keyCode:tg.LEFT,action:bR(wR,e,!1)},{keyCode:tg.UP,action:bR(xR,e,!1)},{keyCode:tg.DOWN,action:bR(xR,e,!0)},{keyCode:tg.RIGHT,action:bR(XP,e,t,!0)},{keyCode:tg.LEFT,action:bR(XP,e,t,!1)},{keyCode:tg.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:bR(QP,e,t)},{keyCode:tg.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:bR(eI,e,t)},{keyCode:tg.UP,action:bR(pR,e,!1)},{keyCode:tg.DOWN,action:bR(pR,e,!0)}],n).each((function(e){n.preventDefault()}))},QR=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&ZR(e,t,n)}))},ez=function(e,t,n){yR([{keyCode:tg.BACKSPACE,action:bR(TI,e,!1)},{keyCode:tg.BACKSPACE,action:bR(cN,e,!1)},{keyCode:tg.DELETE,action:bR(cN,e,!0)},{keyCode:tg.BACKSPACE,action:bR(WA,e,!1)},{keyCode:tg.DELETE,action:bR(WA,e,!0)},{keyCode:tg.BACKSPACE,action:bR(uI,e,t,!1)},{keyCode:tg.DELETE,action:bR(uI,e,t,!0)},{keyCode:tg.BACKSPACE,action:bR(A_,e,!1)},{keyCode:tg.DELETE,action:bR(A_,e,!0)},{keyCode:tg.BACKSPACE,action:bR(fN,e,!1)},{keyCode:tg.DELETE,action:bR(fN,e,!0)},{keyCode:tg.BACKSPACE,action:bR(gI,e,!1)},{keyCode:tg.DELETE,action:bR(gI,e,!0)},{keyCode:tg.BACKSPACE,action:bR(AA,e,!1)},{keyCode:tg.DELETE,action:bR(AA,e,!0)},{keyCode:tg.BACKSPACE,action:bR(kA,e,!1)},{keyCode:tg.DELETE,action:bR(kA,e,!0)},{keyCode:tg.BACKSPACE,action:bR(hI,e,!1)},{keyCode:tg.DELETE,action:bR(hI,e,!0)}],n).each((function(e){n.preventDefault()}))},tz=function(e,t){yR([{keyCode:tg.BACKSPACE,action:bR(uN,e)},{keyCode:tg.DELETE,action:bR(uN,e)}],t)},nz=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&ez(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&tz(e,t)}))},rz=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},iz=function(e,t){var n,r=t,i=e.dom,o=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=rz(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(i.doc.createTextNode(ca),t.firstChild)}var s=i.createRng();if(t.normalize(),t.hasChildNodes()){var u=new Fo(t,t);while(n=u.current()){if(Qr(n)){s.setStart(n,0),s.setEnd(n,0);break}if(o[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}r=n,n=u.next()}n||(s.setStart(r,0),s.setEnd(r,0))}else ri(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(s.setStartBefore(t),s.setEndBefore(t)):(s.setStartAfter(t),s.setEndAfter(t)):(s.setStart(t,0),s.setEnd(t,0));e.selection.setRng(s),nb(e,s)}},oz=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},az=function(e){return W.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},sz=function(e){return az(e).fold(M(""),(function(e){return e.nodeName.toUpperCase()}))},uz=function(e){return az(e).filter((function(e){return ra(wn.fromDom(e))})).isSome()},cz=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},lz=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},fz=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},dz=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},hz=function(e){return dz(e)&&dz(e.parentNode)},pz=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},mz=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(Hr(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},vz=function(e,t,n,r,i){var o=e.dom,a=e.selection.getRng();if(n!==e.getBody()){hz(n)&&(i="LI");var s=i?t(i):o.create("BR");if(mz(n,r,!0)&&mz(n,r,!1))if(fz(n,"LI")){var u=pz(n);o.insertAfter(s,u),lz(n)?o.remove(u):o.remove(n)}else o.replace(s,n);else if(mz(n,r,!0))fz(n,"LI")?(o.insertAfter(s,pz(n)),s.appendChild(o.doc.createTextNode(" ")),s.appendChild(n)):n.parentNode.insertBefore(s,n),o.remove(r);else if(mz(n,r,!1))o.insertAfter(s,pz(n)),o.remove(r);else{n=pz(n);var c=a.cloneRange();c.setStartAfter(r),c.setEndAfter(n);var l=c.extractContents();"LI"===i&&cz(l,"LI")?(s=l.firstChild,o.insertAfter(l,n)):(o.insertAfter(l,n),o.insertAfter(s,n)),o.remove(r)}iz(e,s)}},gz=function(e){Q(Ol(wn.fromDom(e),Vn),(function(e){var t=e.dom;t.nodeValue=pa(t.nodeValue)}))},bz=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},yz=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},wz=function(e){e.innerHTML='<br data-mce-bogus="1">'},xz=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},_z=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},Cz=function(e,t,n){var r,i=n,o=[];if(i){while(i=i.firstChild){if(e.isBlock(i))return;Hr(i)&&!t[i.nodeName.toLowerCase()]&&o.push(i)}r=o.length;while(r--)i=o[r],(!i.hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||bz(e,i))&&e.remove(i)}},kz=function(e,t,n){return!1===Qr(t)?n:e?1===n&&t.data.charAt(n-1)===da?0:n:n===t.data.length-1&&t.data.charAt(n)===da?t.data.length:n},Sz=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,kz(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,kz(!1,e.endContainer,e.endOffset)),t},Oz=function(e){do{Qr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},Ez=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},Tz=function(e,t,n){var r=e.dom;W.from(n.style).map(r.parseStyle).each((function(e){var n=Ti(wn.fromDom(t)),i=We(We({},n),e);r.setStyles(t,i)}));var i=W.from(n.class).map((function(e){return e.split(/\s+/)})),o=W.from(t.className).map((function(e){return ne(e.split(/\s+/),(function(e){return""!==e}))}));fi(i,o,(function(e,n){var i=ne(n,(function(t){return!X(e,t)})),o=qe(qe([],e,!0),i,!0);r.setAttrib(t,"class",o.join(" "))}));var a=["style","class"],s=Te(n,(function(e,t){return!X(a,t)}));r.setAttribs(t,s)},Dz=function(e,t){var n=Sd(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=Od(e);Tz(e,t,r)}},Mz=function(e,t,n,r,i){var o,a,s,u,c,l,f=t||"P",d=e.dom,h=Ez(d,r);if(a=d.getParent(r,d.isBlock),!a||!_z(d,a)){if(a=a||h,l=a===e.getBody()||yz(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return o=d.create(f),Dz(e,o),a.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o;u=r;while(u.parentNode!==a)u=u.parentNode;while(u&&!d.isBlock(u))s=u,u=u.previousSibling;if(s&&e.schema.isValidChild(l,f.toLowerCase())){o=d.create(f),Dz(e,o),s.parentNode.insertBefore(o,s),u=s;while(u&&!d.isBlock(u))c=u.nextSibling,o.appendChild(u),u=c;n.setStart(r,i),n.setEnd(r,i)}}return r},Az=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},Nz=function(e,t){var n,r,i,o,a,s,u,c,l,f,d=e.dom,h=e.schema,p=h.getNonEmptyElements(),m=e.selection.getRng(),v=function(t){var n,i,a,s=r,u=h.getTextInlineElements();if(n=t||"TABLE"===c||"HR"===c?d.create(t||l):o.cloneNode(!1),a=n,!1===Dd(e))d.setAttrib(n,"style",null),d.setAttrib(n,"class",null);else do{if(u[s.nodeName]){if(em(s)||_m(s))continue;i=s.cloneNode(!1),d.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(a=i,n.appendChild(i))}}while((s=s.parentNode)&&s!==x);return Dz(e,n),wz(a),n},g=function(e){var t,n,a=kz(e,r,i);if(Qr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===o&&f&&!e)return!0;if(e&&Hr(r)&&r===o.firstChild)return!0;if(xz(r,"TABLE")||xz(r,"HR"))return f&&!e||!f&&e;var s=new Fo(r,o);Qr(r)&&(e&&0===a?s.prev():e||a!==r.nodeValue.length||s.next());while(t=s.current()){if(Hr(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Qr(t)&&!Ga(t.nodeValue))return!1;e?s.prev():s.next()}return!0},b=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(c)&&"HGROUP"!==_?v(l):v(),Md(e)&&_z(d,u)&&d.isEmpty(o)?a=d.split(u,o):d.insertAfter(a,o),iz(e,a)};xg(d,m).each((function(e){m.setStart(e.startContainer,e.startOffset),m.setEnd(e.endContainer,e.endOffset)})),r=m.startContainer,i=m.startOffset,l=Sd(e);var y=!(!t||!t.shiftKey),w=!(!t||!t.ctrlKey);Hr(r)&&r.hasChildNodes()&&(f=i>r.childNodes.length-1,r=r.childNodes[Math.min(i,r.childNodes.length-1)]||r,i=f&&Qr(r)?r.nodeValue.length:0);var x=Ez(d,r);if(x){(l&&!y||!l&&y)&&(r=Mz(e,l,m,r,i)),o=d.getParent(r,d.isBlock),u=o?d.getParent(o.parentNode,d.isBlock):null,c=o?o.nodeName.toUpperCase():"";var _=u?u.nodeName.toUpperCase():"";"LI"!==_||w||(o=u,u=u.parentNode,c=_),/^(LI|DT|DD)$/.test(c)&&d.isEmpty(o)?vz(e,v,u,o,l):l&&o===e.getBody()||(l=l||"P",ga(o)?(a=Da(o),d.isEmpty(o)&&wz(o),Dz(e,a),iz(e,a)):g()?b():g(!0)?(a=o.parentNode.insertBefore(v(),o),iz(e,xz(o,"HR")?a:o)):(n=Sz(m).cloneRange(),n.setEndAfter(o),s=n.extractContents(),gz(s),Oz(s),a=s.firstChild,d.insertAfter(s,o),Cz(d,p,a),Az(d,o),d.isEmpty(o)&&wz(o),a.normalize(),d.isEmpty(a)?(d.remove(a),b()):(Dz(e,a),iz(e,a))),d.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},Pz=function(e,t,n){var r,i=new Fo(t,n),o=e.getNonEmptyElements();while(r=i.next())if(o[r.nodeName.toLowerCase()]||r.length>0)return!0},Iz=function(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),nb(e,r)},Rz=function(e,t){var n,r,i=e.selection,o=e.dom,a=i.getRng();xg(o,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var s=a.startOffset,u=a.startContainer;if(1===u.nodeType&&u.hasChildNodes()){var c=s>u.childNodes.length-1;u=u.childNodes[Math.min(s,u.childNodes.length-1)]||u,s=c&&3===u.nodeType?u.nodeValue.length:0}var l=o.getParent(u,o.isBlock),f=l?o.getParent(l.parentNode,o.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(l=f),u&&3===u.nodeType&&s>=u.nodeValue.length&&(Pz(e.schema,u,l)||(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=o.create("br"),Lf(o,a,n),Iz(e,n,r),e.undoManager.add()},zz=function(e,t){var n=wn.fromTag("br");br(wn.fromDom(t),n),e.undoManager.add()},Bz=function(e,t){$z(e.getBody(),t)||yr(wn.fromDom(t),wn.fromTag("br"));var n=wn.fromTag("br");yr(wn.fromDom(t),n),Iz(e,n.dom,!1),e.undoManager.add()},Lz=function(e){return ri(e.getNode())},$z=function(e,t){return!!Lz(Pf.after(t))||Yp(e,Pf.after(t)).map((function(e){return ri(e.getNode())})).getOr(!1)},Fz=function(e){return e&&"A"===e.nodeName&&"href"in e},jz=function(e){return e.fold(L,Fz,Fz,L)},Vz=function(e){var t=P(HM,e),n=Pf.fromRangeStart(e.selection.getRng());return IN(t,e.getBody(),n).filter(jz)},Hz=function(e,t){t.fold(E,P(zz,e),P(Bz,e),E)},Wz=function(e,t){var n=Vz(e);n.isSome()?n.each(P(Hz,e)):Rz(e,t)},Uz=function(e,t){return az(e).filter((function(e){return t.length>0&&Dn(wn.fromDom(e),t)})).isSome()},qz=function(e){return Uz(e,Ed(e))},Gz=function(e){return Uz(e,Td(e))},Kz=Qi.generate([{br:[]},{block:[]},{none:[]}]),Yz=function(e,t){return Gz(e)},Xz=function(e){return function(t,n){var r=""===Sd(t);return r===e}},Jz=function(e){return function(t,n){return uz(t)===e}},Zz=function(e,t){return function(n,r){var i=sz(n)===e.toUpperCase();return i===t}},Qz=function(e){return Zz("pre",e)},eB=function(){return Zz("summary",!0)},tB=function(e){return function(t,n){return kd(t)===e}},nB=function(e,t){return qz(e)},rB=function(e,t){return t},iB=function(e){var t=Sd(e),n=oz(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},oB=function(e,t){return function(n,r){var i=ie(e,(function(e,t){return e&&t(n,r)}),!0);return i?W.some(t):W.none()}},aB=function(e,t){return kN([oB([Yz],Kz.none()),oB([eB()],Kz.br()),oB([Qz(!0),tB(!1),rB],Kz.br()),oB([Qz(!0),tB(!1)],Kz.block()),oB([Qz(!0),tB(!0),rB],Kz.block()),oB([Qz(!0),tB(!0)],Kz.br()),oB([Jz(!0),rB],Kz.br()),oB([Jz(!0)],Kz.block()),oB([Xz(!0),rB,iB],Kz.block()),oB([Xz(!0)],Kz.br()),oB([nB],Kz.br()),oB([Xz(!1),rB],Kz.br()),oB([iB],Kz.block())],[e,!(!t||!t.shiftKey)]).getOr(Kz.none())},sB=function(e,t){aB(e,t).fold((function(){Wz(e,t)}),(function(){Nz(e,t)}),E)},uB=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),vO(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),sB(e,t)})))},cB=function(e){e.on("keydown",(function(t){t.keyCode===tg.ENTER&&uB(e,t)}))},lB=function(e,t,n){yR([{keyCode:tg.END,action:bR(iR,e,!0)},{keyCode:tg.HOME,action:bR(iR,e,!1)},{keyCode:tg.END,action:bR(_R,e,!0)},{keyCode:tg.HOME,action:bR(_R,e,!1)},{keyCode:tg.END,action:bR(tI,e,!0,t)},{keyCode:tg.HOME,action:bR(tI,e,!1,t)}],n).each((function(e){n.preventDefault()}))},fB=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&lB(e,t,n)}))},dB=Ut().browser,hB=function(e){var t=hl((function(){e.composing||fx(e)}),0);dB.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},pB=function(e){hB(e),e.on("input",(function(t){!1===t.isComposing&&fx(e)}))},mB=Ut(),vB=function(e,t,n){yR([{keyCode:tg.PAGE_UP,action:bR(tI,e,!1,t)},{keyCode:tg.PAGE_DOWN,action:bR(tI,e,!0,t)}],n)},gB=function(e){return e.stopImmediatePropagation()},bB=function(e){return e.keyCode===tg.PAGE_UP||e.keyCode===tg.PAGE_DOWN},yB=function(e,t,n){n&&!e.get()?t.on("NodeChange",gB,!0):!n&&e.get()&&t.off("NodeChange",gB),e.set(n)},wB=function(e,t){if(!mB.os.isOSX()){var n=Xc(!1);e.on("keydown",(function(t){bB(t)&&yB(n,e,!0)})),e.on("keyup",(function(r){!1===r.isDefaultPrevented()&&vB(e,t,r),bB(r)&&n.get()&&(yB(n,e,!1),e.nodeChanged())}))}},xB=function(e,t){var n=t.container(),r=t.offset();return Qr(n)?(n.insertData(r,e),W.some(Pf(n,r+e.length))):xp(t).map((function(n){var r=wn.fromText(e);return t.isAtEnd()?yr(n,r):br(n,r),Pf(r.dom,e.length)}))},_B=P(xB,ca),CB=P(xB," "),kB=function(e){return function(t){return t.fold((function(t){return Xp(e.dom,Pf.before(t))}),(function(e){return Jp(e)}),(function(e){return Zp(e)}),(function(t){return Yp(e.dom,Pf.after(t))}))}},SB=function(e,t){return function(n){return Qw(e,n)?_B(t):CB(t)}},OB=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},EB=function(e){var t=Pf.fromRangeStart(e.selection.getRng()),n=wn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=P(HM,e),i=Pf.fromRangeStart(e.selection.getRng());return IN(r,e.getBody(),i).bind(kB(n)).bind(SB(n,t)).exists(OB(e))}return!1},TB=function(e,t){yR([{keyCode:tg.SPACEBAR,action:bR(EB,e)}],t).each((function(e){t.preventDefault()}))},DB=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&TB(e,t)}))},MB=function(e){var t=ZP(e);return KI(e),QR(e,t),nz(e,t),cB(e),DB(e),pB(e),fB(e,t),wB(e,t),t},AB=function(e){return NO(e)?Xc(null):MB(e)},NB=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&cg(i,t)||e.fire("SelectionChange"),t=i})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!en.range&&e.selection.isCollapsed()||Sv(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&Sv(e)&&("IMG"===e.selection.getNode().nodeName?zo.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,i=this.editor.selection;this.editor.initialized&&i&&!wh(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=i.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),PB=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},IB=function(e){e.parser.addNodeFilter("details",(function(e){Q(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Q(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",g(t)?t:null),e.attr("data-mce-open",null)}))}))},RB=function(e){PB(e),IB(e)},zB=function(e){return Hr(e)&&ta(wn.fromDom(e))},BB=function(e){var t=e.selection.getRng(),n=Pf.fromRangeStart(t),r=Pf.fromRangeEnd(t);if(Pf.isElementPosition(n)){var i=n.container();zB(i)&&Jp(i).each((function(e){return t.setStart(e.container(),e.offset())}))}if(Pf.isElementPosition(r)){i=n.container();zB(i)&&Zp(i).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(I_(t))},LB=function(e){e.on("click",(function(t){t.detail>=3&&BB(e)}))},$B=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}},FB=function(e){return e.inline?$B(e.getBody()):{left:0,top:0}},jB=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},VB=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},i={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:i},HB=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=$B(e.getContentAreaContainer()),r=VB(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},WB=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},UB=function(e,t){return WB(FB(e),jB(e),HB(e,t))},qB=ai,GB=oi,KB=function(e,t){return qB(t)&&t!==e},YB=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!qB(t)},XB=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},JB=function(e,t,n,r){var i=e.dom,o=t.cloneNode(!0);i.setStyles(o,{width:n,height:r}),i.setAttrib(o,"data-mce-selected",null);var a=i.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return i.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),i.setStyles(o,{margin:0,boxSizing:"border-box"}),a.appendChild(o),a},ZB=function(e,t){e.parentNode!==t&&t.appendChild(e)},QB=function(e,t,n,r,i,o){var a=0,s=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>i&&(a=t.pageX+n-i),t.pageY+r>o&&(s=t.pageY+r-o),e.style.width=n-a+"px",e.style.height=r-s+"px"},eL=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},tL=function(e){return 0===e.button},nL=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},rL=function(e,t){return function(n){if(tL(n)){var r=ae(t.dom.getParents(n.target),ff(qB,GB)).getOr(null);if(KB(t.getBody(),r)){var i=t.dom.getPos(r),o=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?o.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?o.scrollHeight:a.offsetHeight)-2,relX:n.pageX-i.x,relY:n.pageY-i.y,width:r.offsetWidth,height:r.offsetHeight,ghost:JB(t,r,r.offsetWidth,r.offsetHeight)})}}}},iL=function(e,t){var n=zo.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var i=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&i>10){var o=t.fire("dragstart",{target:e.element});if(o.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=nL(e,UB(t,r));ZB(e.ghost,t.getBody()),QB(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},oL=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},aL=function(e,t){return function(n){e.on((function(e){if(e.dragging){if(YB(t,oL(t.selection),e.element)){var r=XB(e.element),i=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});i.isDefaultPrevented()||t.undoManager.transact((function(){eL(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}t.fire("dragend")}})),uL(e)}},sL=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),uL(e)}},uL=function(e){e.on((function(e){eL(e.ghost)})),e.clear()},cL=function(e){var t=dl(),n=jc.DOM,r=document,i=rL(t,e),o=iL(t,e),a=aL(t,e),s=sL(t,e);e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",a),n.bind(r,"mousemove",o),n.bind(r,"mouseup",s),e.on("remove",(function(){n.unbind(r,"mousemove",o),n.unbind(r,"mouseup",s)})),e.on("keydown",(function(e){e.keyCode===tg.ESC&&s()}))},lL=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(qB(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},fL=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(X(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&KD(e,"Dropped file type is not supported"))}},n=function(n){Zb(e,n.target)&&t(n)},r=function(){var r=jc.DOM,i=e.dom,o=document,a=e.inline?e.getBody():e.getDoc(),s=["drop","dragover"];Q(s,(function(e){r.bind(o,e,n),i.bind(a,e,t)})),e.on("remove",(function(){Q(s,(function(e){r.unbind(o,e,n),i.unbind(a,e,t)}))}))};e.on("init",(function(){zo.setEditorTimeout(e,r,0)}))},dL=function(e){cL(e),lL(e),Sh(e)&&fL(e)},hL=function(e){var t=hl((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=LA(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},pL=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(ui(n)){var r=$v(e.getBody(),n),i=ai(r)?r:n;e.selection.getNode()!==i&&zA(e,i).each((function(t){return e.selection.setRng(t)}))}}))}))},mL=oi,vL=ai,gL=function(e,t){return $v(e.getBody(),t)},bL=function(e){var t,n=e.selection,r=e.dom,i=r.isBlock,o=e.getBody(),a=Yh(e,o,i,(function(){return dy(e)})),s="sel-"+r.uniqueId(),u="data-mce-selected",c=function(e){return r.hasClass(e,"mce-offscreen-selection")},l=function(e){return e!==o&&(vL(e)||ui(e))&&r.isChildOf(e,o)},f=function(e){return ww(e)||xw(e)||vw(e)||gw(e)},d=function(){var e=r.get(s);return e?e.getElementsByTagName("*")[0]:e},h=function(e){e&&n.setRng(e)},p=n.getRng,m=function(t,r,i,o){void 0===o&&(o=!0);var s=e.fire("ShowCaret",{target:r,direction:t,before:i});return s.isDefaultPrevented()?null:(o&&n.scrollIntoView(r,-1===t),a.show(i,r))},v=function(e){e.hasAttribute("data-mce-caret")&&(Da(e),h(p()),n.scrollIntoView(e))},g=function(){e.on("mouseup",(function(t){var n=p();n.collapsed&&LD(e,t.clientX,t.clientY)&&BA(e,n,!1).each(h)})),e.on("click",(function(t){var i=gL(e,t.target);i&&(vL(i)&&(t.preventDefault(),e.focus()),mL(i)&&r.isChildOf(i,n.getNode())&&S())})),e.on("blur NewBlock",S),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var s=function(e){var t=e.firstChild;if(C(t))return!1;var n=Pf.before(t);if(ri(n.getNode())&&1===e.childNodes.length)return!f(n);var r=Bp(e),i=r.next(n);return i&&!f(i)},u=function(e,t){var n=r.getParent(e,i),o=r.getParent(t,i);return n===o},v=function(t,n){var o=r.getParent(t,i),a=r.getParent(n,i);return!C(o)&&(!(t===a||!r.isChildOf(o,a)||!1!==vL(gL(e,o)))||!r.isChildOf(a,o)&&!u(o,a)&&s(o))};e.on("tap",(function(t){var n=t.target,r=gL(e,n);vL(r)?(t.preventDefault(),zA(e,r).each(k)):l(n)&&zA(e,n).each(k)}),!0),e.on("mousedown",(function(t){var i=t.target;if((i===o||"HTML"===i.nodeName||r.isChildOf(i,o))&&!1!==LD(e,t.clientX,t.clientY)){var a=gL(e,i);if(a)vL(a)?(t.preventDefault(),zA(e,a).each(k)):(S(),mL(a)&&t.shiftKey||Fv(t.clientX,t.clientY,n.getRng())||(E(),n.placeCaretAt(t.clientX,t.clientY)));else if(l(i))zA(e,i).each(k);else if(!1===Zh(i)){S(),E();var s=zP(o,t.clientX,t.clientY);if(s&&!v(i,s.node)){t.preventDefault();var u=m(1,s.node,s.before,!1);h(u),e.getBody().focus()}}}})),e.on("keypress",(function(e){tg.modifierPressed(e)||vL(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=w(e.range);var t=k(e.range,e.forward);t&&(e.range=t)}));var g=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;y(t)||g(n)||E(),c(n)||S()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!en.ie){var n=d();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),dL(e),hL(e),pL(e)},b=function(e){return ya(e)||Oa(e)||Ea(e)},y=function(e){return b(e.startContainer)||b(e.endContainer)},w=function(t){var n=e.schema.getShortEndedElements(),i=r.createRng(),o=t.startContainer,a=t.startOffset,s=t.endContainer,u=t.endOffset;return Ne(n,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),Ne(n,s.nodeName.toLowerCase())?0===u?i.setEndBefore(s):i.setEndAfter(s):i.setEnd(s,u),i},x=function(t,i,o){var a=e.$,u=Eo(wn.fromDom(e.getBody()),"#"+s).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===u.length&&(u=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",s),u.appendTo(e.getBody()));var c=r.createRng();i===o&&en.ie?(u.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(i),c.setStartAfter(u[0].firstChild.firstChild),c.setEndAfter(i)):(u.empty().append(ca).append(i).append(ca),c.setStart(u[0].firstChild,1),c.setEnd(u[0].lastChild,0)),u.css({top:r.getPos(t,e.getBody()).y}),u[0].focus();var l=n.getSel();return l.removeAllRanges(),l.addRange(c),c},_=function(n){var i=n.cloneNode(!0),o=e.fire("ObjectSelected",{target:n,targetClone:i});if(o.isDefaultPrevented())return null;var a=x(n,o.targetClone,i),s=wn.fromDom(n);return Q(El(wn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Pn(s,e)||xi(e,u)})),r.getAttrib(n,u)||n.setAttribute(u,"1"),t=n,E(),a},k=function(e,t){if(!e)return null;if(e.collapsed){if(!y(e)){var n=t?1:-1,i=wp(n,o,e),a=i.getNode(!t);if(Zh(a))return m(n,a,!!t&&!i.isAtEnd(),!1);var s=i.getNode(t);if(Zh(s))return m(n,s,!t&&!i.isAtEnd(),!1)}return null}var u=e.startContainer,c=e.startOffset,f=e.endOffset;if(3===u.nodeType&&0===c&&vL(u.parentNode)&&(u=u.parentNode,c=r.nodeIndex(u),u=u.parentNode),1!==u.nodeType)return null;if(f===c+1&&u===e.endContainer){var d=u.childNodes[c];if(l(d))return _(d)}return null},S=function(){t&&t.removeAttribute(u),Eo(wn.fromDom(e.getBody()),"#"+s).each(Or),t=null},O=function(){a.destroy(),t=null},E=function(){a.hide()};return en.ceFalse&&!NO(e)&&g(),{showCaret:m,showBlockCaretContainer:v,hideFakeCaret:E,destroy:O}},yL=function(e){var t=pn.each,n=tg.BACKSPACE,r=tg.DELETE,i=e.dom,o=e.selection,a=e.parser,s=en.gecko,u=en.ie,c=en.webkit,l="data:text/mce-internal,",f=u?"Text":"URL",d=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},h=function(e){return e.isDefaultPrevented()},p=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&o.select(t.target),n=e.selection.getContent(),n.length>0&&(r=l+escape(e.id)+","+escape(n),t.dataTransfer.setData(f,r)))},m=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(f),t&&t.indexOf(l)>=0)?(t=t.substr(l.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},v=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},g=function(){var t=function(e){var t=i.create("body"),n=e.cloneContents();return t.appendChild(n),o.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),o=i.createRng();o.selectNode(e.getBody());var a=t(o);return r===a};e.on("keydown",(function(t){var o,s,u=t.keyCode;if(!h(t)&&(u===r||u===n)){if(o=e.selection.isCollapsed(),s=e.getBody(),o&&!i.isEmpty(s))return;if(!o&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),s.firstChild&&i.isBlock(s.firstChild)?e.selection.setCursorLocation(s.firstChild,0):e.selection.setCursorLocation(s,0),e.nodeChanged()}}))},b=function(){e.shortcuts.add("meta+a",null,"SelectAll")},y=function(){e.inline||i.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=o.getRng(),e.getBody().focus(),"mousedown"===t.type){if(ya(n.startContainer))return;o.placeCaretAt(t.clientX,t.clientY)}else o.setRng(n)}))},w=function(){e.on("keydown",(function(t){if(!h(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(o.isCollapsed()&&0===o.getRng().startOffset){var r=o.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return i.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(i.remove(a),t.preventDefault())}}}))},x=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!h(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),zo.setEditorTimeout(e,(function(){n.focus()}))}}))},_=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),o.select(n))}))},C=function(){var n=function(){var n=i.getAttribs(o.getStart().cloneNode(!1));return function(){var r=o.getStart();r!==e.getBody()&&(i.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!o.isCollapsed()&&i.getParent(o.getStart(),i.isBlock)!==i.getParent(o.getEnd(),i.isBlock)};e.on("keypress",(function(t){var i;if(!h(t)&&(8===t.keyCode||46===t.keyCode)&&r())return i=n(),e.getDoc().execCommand("delete",!1,null),i(),t.preventDefault(),!1})),i.bind(e.getDoc(),"cut",(function(t){var i;!h(t)&&r()&&(i=n(),zo.setEditorTimeout(e,(function(){i()})))}))},k=function(){e.on("keydown",(function(e){if(!h(e)&&e.keyCode===n&&o.isCollapsed()&&0===o.getRng().startOffset){var t=o.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},S=function(){e.on("keydown",(function(t){var n,r;if(!h(t)&&t.keyCode===tg.BACKSPACE){n=o.getRng();var a=n.startContainer,s=n.startOffset,u=i.getRoot();if(r=a,n.collapsed&&0===s){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==u)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=i.createRng(),n.setStart(a,0),n.setEnd(a,0),o.setRng(n))}}}))},O=function(){var t=function(){d("StyleWithCSS",!1),d("enableInlineTableEditing",!1),Qd(e)||d("enableObjectResizing",!1)};xh(e)||e.on("BeforeExecCommand mousedown",t)},T=function(){var n=function(){t(i.select("a"),(function(e){var t=e.parentNode,n=i.getRoot();if(t.lastChild===e){while(t&&!i.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},D=function(){Sd(e)&&e.on("init",(function(){d("DefaultParagraphSeparator",Sd(e))}))},M=function(){e.on("keyup focusin mouseup",(function(e){tg.modifierPressed(e)||o.normalize()}),!0)},A=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},N=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},P=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(en.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},I=function(){en.mac&&e.on("keydown",(function(t){if(tg.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},R=function(){d("AutoUrlDetect",!1)},z=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},B=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},L=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},$=function(){e.on("dragstart",(function(e){p(e)})),e.on("drop",(function(t){if(!h(t)){var n=m(t);if(n&&n.id!==e.id){t.preventDefault();var r=ug(t.x,t.y,e.getDoc());o.setRng(r),v(n.html,!0)}}}))},F=E,j=function(){if(!s||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},V=function(){c&&(y(),_(),B(),b(),en.iOS&&(N(),P(),z())),s&&(x(),O(),A(),I())},H=function(){S(),g(),en.windowsPhone||M(),c&&(y(),_(),D(),B(),k(),L(),en.iOS?(N(),P(),z()):b()),en.ie>=11&&(P(),k()),en.ie&&(b(),R(),$()),s&&(w(),x(),C(),O(),T(),A(),I(),k())};return NO(e)?V():H(),{refreshContentEditable:F,isHidden:j}},wL=jc.DOM,xL=function(e,t){var n=wn.fromDom(e.getBody()),r=hr(dr(n)),i=wn.fromTag("style");vi(i,"type","text/css"),xr(i,wn.fromText(t)),xr(r,i),e.on("remove",(function(){Or(i)}))},_L=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},CL=function(e){return Te(e,(function(e){return!1===_(e)}))},kL=function(e){var t=e.settings;return CL({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})},SL=function(e){var t=e.settings,n=e.editorUpload.blobCache;return CL({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:_L(e),validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})},OL=function(e){var t=e.settings;return We(We(We({},SL(e)),kL(e)),CL({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before}))},EL=function(e){var t=wT(SL(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,i,o=t.length,a=e.dom,s="data-mce-"+n;while(o--)if(r=t[o],i=r.attr(n),i&&!r.attr(s)){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?(i=a.serializeStyle(a.parseStyle(i),r.name),i.length||(i=null),r.attr(s,i),r.attr(n,i)):"tabindex"===n?(r.attr(s,i),r.attr(n,null)):r.attr(s,e.convertURL(i,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var i=t[n];i.isEmpty(r)&&0===i.getAll("br").length&&(i.append(new Dy("br",1)).shortEnded=!0)}})),t},TL=function(e){e.settings.auto_focus&&zo.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},DL=function(e){var t=e.dom.getRoot();e.inline||Sv(e)&&e.selection.getStart(!0)!==t||Jp(t).each((function(t){var n=t.getNode(),r=Xr(n)?Jp(n).getOr(t):t;en.browser.isIE()?Lb(e,r.toRange()):e.selection.setRng(r.toRange())}))},ML=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Xv(e),e.focus(!0),DL(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),TL(e)},AL=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},NL=function(e,t,n){var r=[new Do((function(n,r){return AL(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new Do((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},PL=function(e){var t=AL(e),n=Xd(e),r=e.contentCSS,i=function(){t.unloadAll(r),e.inline||e.ui.styleSheetLoader.unloadAll(n)},o=function(){e.removed?i():e.on("remove",i)};if(e.contentStyles.length>0){var a="";pn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}var s=Do.all(NL(e,r,n)).then(o).catch(o);return e.settings.content_style&&xL(e,e.settings.content_style),s},IL=function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();Kv(e),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,wL.setAttrib(r,"spellcheck","false")),e.quirks=yL(e),Yv(e);var i=Jd(e);void 0!==i&&(r.dir=i),t.protect&&e.on("BeforeSetContent",(function(e){pn.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))},RL=function(e){NO(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},zL=function(e){!0!==e.removed&&(RL(e),ML(e))},BL=function(e,t){var n=e.settings,r=e.getElement(),i=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(i.open(),i.write(e.iframeHTML),i.close()),e.inline&&(wL.addClass(r,"mce-content-body"),e.contentDocument=i=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var o=e.getBody();o.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===wL.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable=e.getParam("content_editable_state",!0)),o.disabled=!1,e.editorUpload=bM(e),e.schema=js(kL(e)),e.dom=jc(i,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:Hd(e),referrerPolicy:Wd(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=EL(e),e.serializer=PT(OL(e),e),e.selection=CE(e.dom,e.getWin(),e.serializer,e),e.annotator=Bv(e),e.formatter=TM(e),e.undoManager=NM(e),e._nodeChangeDispatcher=new NB(e),e._selectionOverrides=bL(e),BI(e),RB(e),NO(e)||LB(e);var a=AB(e);NI(e,a),HI(e),FM(e);var s=IO(e);IL(e),s.fold((function(){PL(e).then((function(){return zL(e)}))}),(function(t){e.setProgressState(!0),PL(e).then((function(){t().then((function(t){e.setProgressState(!1),zL(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),zL(e)}))}))}))},LL=jc.DOM,$L=function(e,t){if(document.domain!==window.location.hostname&&en.browser.isIE()){var n=fM("mce");e[n]=function(){BL(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return LL.setAttrib(t,"src",r),!0}return!1},FL=function(e,t,n,r){var i=wn.fromTag("iframe");return gi(i,r),gi(i,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),_l(i,"tox-edit-area__iframe"),i},jL=function(e){var t=yd(e)+"<html><head>";wd(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=xd(e),r=_d(e),i=e.translate(Dh(e));return Cd(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+Cd(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+i+'"><br></body></html>',t},VL=function(e,t){var n=e.translate("Rich Text Area"),r=FL(e.id,n,t.height,bd(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var i=$L(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=jL(e),LL.add(t.iframeContainer,r),i},HL=function(e,t){var n=VL(e,t);t.editorContainer&&(LL.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=LL.isHidden(t.editorContainer)),e.getElement().style.display="none",LL.setAttrib(e.id,"aria-hidden","true"),n||BL(e)},WL=jc.DOM,UL=function(e,t,n){var r=HD.get(n),i=HD.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=pn.trim(n),r&&-1===pn.inArray(t,n)){if(pn.each(HD.dependencies(n),(function(n){UL(e,t,n)})),e.plugins[n])return;try{var o=new r(e,i,e.$);e.plugins[n]=o,o.init&&(o.init(e,i),t.push(n))}catch(Mj){tM(e,n,Mj)}}},qL=function(e){return e.replace(/^\-/,"")},GL=function(e){var t=[];pn.each(Ch(e).split(/[ ,]/),(function(n){UL(e,t,qL(n))}))},KL=function(e){var t=pn.trim(Bd(e)),n=e.ui.registry.getAll().icons,r=We(We({},TD.get("default").icons),TD.get(t).icons);_e(r,(function(t,r){Ne(n,r)||e.ui.registry.addIcon(r,t)}))},YL=function(e){var t=ih(e);if(g(t)){e.settings.theme=qL(t);var n=WD.get(t);e.theme=new n(e,WD.urls[t]),e.theme.init&&e.theme.init(e,WD.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},XL=function(e){return e.theme.renderUI()},JL=function(e){var t=e.getElement(),n=ih(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},ZL=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},QL=function(e){var t=WL.create("div");return WL.insertAfter(t,e),ZL(t)},e$=function(e){var t=e.getElement();return e.inline?ZL(null):QL(t)},t$=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,g(ih(e))?XL(e):S(ih(e))?JL(e):e$(e)},n$=function(e,t){var n={show:W.from(t.show).getOr(E),hide:W.from(t.hide).getOr(E),disable:W.from(t.disable).getOr(E),isDisabled:W.from(t.isDisabled).getOr(L),enable:function(){e.mode.isReadOnly()||W.from(t.enable).map(B)}};e.ui=We(We({},e.ui),n)},r$=function(e){e.fire("ScriptsLoaded"),KL(e),YL(e),GL(e);var t=t$(e);n$(e,W.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,sM(e),e.inline?BL(e):HL(e,n)},i$=jc.DOM,o$=function(e){return"-"===e.charAt(0)},a$=function(e,t){var n=Ud(t),r=qd(t);if(!1===cl.hasCode(n)&&"en"!==n){var i=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(i,E,void 0,(function(){eM(t,i,n)}))}},s$=function(e,t,n,r){var i=ih(t);if(g(i)){if(!o$(i)&&!Ne(WD.urls,i)){var o=fh(t);o?WD.load(i,t.documentBaseURI.toAbsolute(o)):WD.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue((function(){WD.waitFor(i,r)}))}else r()},u$=function(e){return W.from(Ld(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:W.none()}}))},c$=function(e,t,n){return W.from(t).filter((function(e){return e.length>0&&!TD.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:W.some(t)}}))},l$=function(e,t,n){var r=c$(t,"default",n),i=u$(t).orThunk((function(){return c$(t,Bd(t),"")}));Q(li([r,i]),(function(n){e.add(n.url,E,void 0,(function(){QD(t,n.url,n.name.getOrUndefined())}))}))},f$=function(e,t){pn.each(kh(e),(function(t,n){HD.load(n,t,E,void 0,(function(){ZD(e,t,n)})),e.settings.plugins+=" "+n})),pn.each(Ch(e).split(/[ ,]/),(function(n){if(n=pn.trim(n),n&&!HD.urls[n])if(o$(n)){n=n.substr(1,n.length);var r=HD.dependencies(n);pn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},i=HD.createUrl(r,n);HD.load(i.resource,i,E,void 0,(function(){ZD(e,i.prefix+i.resource+i.suffix,i.resource)}))}))}else{var i={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};HD.load(n,i,E,void 0,(function(){ZD(e,i.prefix+i.resource+i.suffix,n)}))}}))},d$=function(e,t){var n=Yc.ScriptLoader;s$(n,e,t,(function(){a$(n,e),l$(n,e,t),f$(e,t),n.loadQueue((function(){e.removed||r$(e)}),e,(function(){e.removed||r$(e)}))}))},h$=function(e,t){return $o.forElement(e,{contentCssCors:_h(t),referrerPolicy:Wd(t)})},p$=function(e){var t=e.id;cl.setCode(Ud(e));var n=function(){i$.unbind(window,"ready",n),e.render()};if(ru.Event.domLoaded){if(e.getElement()&&en.contentEditable){var r=wn.fromDom(e.getElement()),i=_i(r);e.on("remove",(function(){ee(r.dom.attributes,(function(e){return xi(r,e.name)})),gi(r,i)})),e.ui.styleSheetLoader=h$(r,e),dh(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var o=e.getElement().form||i$.getParent(t,"form");o&&(e.formElement=o,hh(e)&&!Zr(e.getElement())&&(i$.insertAfter(i$.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},i$.bind(o,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!ph(e)||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),o._mceOldSubmit(o)})),e.windowManager=qD(e),e.notificationManager=VD(e),mh(e)&&e.on("GetContent",(function(e){e.save&&(e.content=i$.encode(e.content))})),vh(e)&&e.on("submit",(function(){e.initialized&&e.save()})),gh(e)&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),d$(e,e.suffix)}}else i$.bind(window,"ready",n)},m$=function(e,t){return sE(e,t)},v$={"font-size":"size","font-family":"face"},g$=function(e,t,n){var r=function(t){return Ei(t,e).orThunk((function(){return"font"===Bn(t)?Ae(v$,e).bind((function(e){return yi(t,e)})):W.none()}))},i=function(e){return Pn(wn.fromDom(t),e)};return DC(wn.fromDom(n),(function(e){return r(e)}),i)},b$=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},y$=function(e,t){return W.from(jc.DOM.getStyle(t,e,!0))},w$=function(e){return function(t,n){return W.from(n).map(wn.fromDom).filter(jn).bind((function(n){return g$(e,t,n.dom).or(y$(e,n.dom))})).getOr("")}},x$=w$("font-size"),_$=T(b$,w$("font-family")),C$=function(e){return Jp(e.getBody()).map((function(e){var t=e.container();return Qr(t)?t.parentNode:t}))},k$=function(e){return W.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?W.none():W.from(e.selection.getStart(!0))}))},S$=function(e,t){return k$(e).orThunk(P(C$,e)).map(wn.fromDom).filter(jn).bind(t)},O$=function(e,t){return S$(e,D(W.some,t))},E$=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Ad(e),i=Nd(e);return i?i[n-1]||t:r[n-1]||t}return t}return t},T$=function(e){var t=e.split(/\s*,\s*/);return Z(t,(function(e){return-1===e.indexOf(" ")||ct(e,'"')||ct(e,"'")?e:"'"+e+"'"})).join(",")},D$=function(e,t){var n=E$(e,t);e.formatter.toggle("fontname",{value:T$(n)}),e.nodeChanged()},M$=function(e){return O$(e,(function(t){return _$(e.getBody(),t.dom)})).getOr("")},A$=function(e,t){e.formatter.toggle("fontsize",{value:E$(e,t)}),e.nodeChanged()},N$=function(e){return O$(e,(function(t){return x$(e.getBody(),t.dom)})).getOr("")},P$=function(e){return O$(e,(function(t){var n=wn.fromDom(e.getBody()),r=DC(t,(function(e){return Ei(e,"line-height")}),P(Pn,n)),i=function(){var e=parseFloat(Si(t,"line-height")),n=parseFloat(Si(t,"font-size"));return String(e/n)};return r.getOrThunk(i)})).getOr("")},I$=function(e,t){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},R$=function(e){if("string"!==typeof e){var t=pn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},z$=function(e,t){var n=R$(t);oE(e,n.content,n.details)},B$=pn.each,L$=pn.map,$$=pn.inArray,F$=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var i,o=!1,a=this;if(!a.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?Fb(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var s=e.toLowerCase();if(i=a.commands.exec[s])return i(s,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(B$(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),o=!0,!1})),o)return o;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{o=a.editor.getDoc().execCommand(e,t,n)}catch(u){}return!!o&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;B$(e,(function(e,r){B$(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,i,o,a){return t.call(n||r.editor,i,o,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":E,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){vy(e,r)},"Cut,Copy,Paste":function(n){var r,i=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||i.queryCommandEnabled(n)||(r=!0),r||!i.queryCommandSupported(n)){var o=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");en.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),B$("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var i=e.dom.getParent(e.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,i),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){D$(e,r)},FontSize:function(t,n,r){A$(e,r)},LineHeight:function(t,n,r){I$(e,r)},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,i){var o=i||e.selection.getNode();o!==e.getBody()&&(t.storeSelection(),e.dom.remove(o,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var i=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&i++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){z$(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var i=e.getContent();e.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){sB(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){EI(e,t)},mceRepaint:E,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"===typeof r&&(r={href:r});var i=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,i)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),oi);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return Wz(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),i=L$(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==$$(i,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return CI(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return M$(e)}),this),t.addQueryValueHandler("FontSize",(function(){return N$(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return P$(e)}),this)},e}(),j$="data-mce-contenteditable",V$=function(e,t,n){Sl(e,t)&&!1===n?kl(e,t):n&&_l(e,t)},H$=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},W$=function(e,t){e.dom.contentEditable=t?"true":"false"},U$=function(e){Q(El(e,'*[contenteditable="true"]'),(function(e){vi(e,j$,"true"),W$(e,!1)}))},q$=function(e){Q(El(e,"*["+j$+'="true"]'),(function(e){xi(e,j$),W$(e,!0)}))},G$=function(e){W.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},K$=function(e){e.selection.setRng(e.selection.getRng())},Y$=function(e,t){var n=wn.fromDom(e.getBody());V$(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),G$(e),e.readonly=!0,W$(n,!1),U$(n)):(e.readonly=!1,W$(n,!0),q$(n),H$(e,"StyleWithCSS",!1),H$(e,"enableInlineTableEditing",!1),H$(e,"enableObjectResizing",!1),hy(e)&&e.focus(),K$(e),e.nodeChanged())},X$=function(e){return e.readonly},J$=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){X$(e)&&Q(t,(function(e){e.attr(j$,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(j$,(function(t){X$(e)&&Q(t,(function(e){e.attr("contenteditable",e.attr(j$))}))})),e.serializer.addTempAttr(j$)},Z$=function(e){e.serializer?J$(e):e.on("PreInit",(function(){J$(e)}))},Q$=function(e){return"click"===e.type},eF=function(e,t){var n=function(t){return Pn(t,wn.fromDom(e.getBody()))};return To(t,"a",n).bind((function(e){return yi(e,"href")}))},tF=function(e,t){if(Q$(t)&&!tg.metaKeyPressed(t)){var n=wn.fromDom(t.target);eF(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+st(n,"#")+'"]');r.length&&e.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")}))}},nF=function(e){e.on("ShowCaret",(function(t){X$(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){X$(e)&&t.preventDefault()}))},rF=pn.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"," "),iF=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||L}return e.isNative=function(e){return!!rF[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=Ys(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(!s.removed){if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=L),t){var i={func:t,removed:!1};r&&pn.extend(i,r);var o=e.toLowerCase().split(" "),a=o.length;while(a--){var s=o[a],u=this.bindings[s];u||(u=[],this.toggleEvent(s,!0)),u=n?qe([i],u,!0):qe(qe([],u,!0),[i],!1),this.bindings[s]=u}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),i=r.length;while(i--){var o=r[i],a=this.bindings[o];if(!o)return _e(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var s=te(a,(function(e){return e.func===t}));a=s.fail,this.bindings[o]=a,Q(s.pass,(function(e){e.removed=!0}))}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[o])}}}else _e(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),oF=function(e){return e._eventDispatcher||(e._eventDispatcher=new iF({scope:e,toggleEvent:function(t,n){iF.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},aF={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var i=oF(r).fire(e,t);if(!1!==n&&r.parent){var o=r.parent();while(o&&!i.isPropagationStopped())o.fire(e,i,!1),o=o.parent()}return i},on:function(e,t,n){return oF(this).on(e,t,n)},off:function(e,t){return oF(this).off(e,t)},once:function(e,t){return oF(this).once(e,t)},hasEventListeners:function(e){return oF(this).has(e)}},sF=jc.DOM,uF=function(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=nh(e);return n?(e.eventRoot||(e.eventRoot=sF.select(n)[0]),e.eventRoot):e.getBody()},cF=function(e){return!e.hidden&&!X$(e)},lF=function(e,t,n){cF(e)?e.fire(t,n):X$(e)&&tF(e,n)},fF=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=uF(e,t);if(nh(e)){if(hP||(hP={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||hP&&(_e(hP,(function(t,n){e.dom.unbind(uF(e,n))})),hP=null)}))),hP[t])return;n=function(n){var r=n.target,i=e.editorManager.get(),o=i.length;while(o--){var a=i[o].getBody();(a===r||sF.isChildOf(r,a))&&lF(i[o],t,n)}},hP[t]=n,sF.bind(r,t,n)}else n=function(n){lF(e,t,n)},sF.bind(r,t,n),e.delegates[t]=n}},dF=We(We({},aF),{bindPendingEventDelegates:function(){var e=this;pn.each(e._pendingNativeEvents,(function(t){fF(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?fF(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(uF(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(_e(e.delegates,(function(t,n){e.dom.unbind(uF(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),hF=["design","readonly"],pF=function(e,t,n,r){var i=n[t.get()],o=n[r];try{o.activate()}catch(Mj){return void console.error("problem while activating editor mode "+r+":",Mj)}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&Y$(e,o.editorReadOnly),t.set(r),Uv(e,r)},mF=function(e,t,n,r){if(r!==n.get()){if(!Ne(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?pF(e,n,t,r):e.on("init",(function(){return pF(e,n,t,r)}))}},vF=function(e,t,n){var r;if(X(hF,t))throw new Error("Cannot override default mode "+t);return We(We({},e),(r={},r[t]=We(We({},n),{deactivate:function(){try{n.deactivate()}catch(Mj){console.error("problem while deactivating editor mode "+t+":",Mj)}}}),r))},gF=function(e){var t=Xc("design"),n=Xc({design:{activate:E,deactivate:E,editorReadOnly:!1},readonly:{activate:E,deactivate:E,editorReadOnly:!0}});return Z$(e),nF(e),{isReadOnly:function(){return X$(e)},set:function(r){return mF(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(vF(n.get(),e,t))}}},bF=pn.each,yF=pn.explode,wF={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},xF=pn.makeMap("alt,ctrl,shift,meta,access"),_F=function(e){var t,n={};bF(yF(e.toLowerCase(),"+"),(function(e){e in xF?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=wF[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in xF)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,en.mac?n.ctrl=!0:n.shift=!0),n.meta&&(en.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},CF=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(bF(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var i=this,o=i.normalizeCommandFunc(n);return bF(yF(pn.trim(e)),(function(e){var n=i.createShortcut(e,t,o,r);i.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:pn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var i=pn.map(yF(e,">"),_F);return i[i.length-1]=pn.extend(i[i.length-1],{func:n,scope:r||this.editor}),pn.extend(i[0],{desc:this.editor.translate(t),subpatterns:i.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),kF=function(){var e={},t={},n={},r={},i={},o={},a={},s=function(e,t){return function(n,r){return e[n.toLowerCase()]=We(We({},r),{type:t})}},u=function(e,t){return r[e.toLowerCase()]=t};return{addButton:s(e,"button"),addGroupToolbarButton:s(e,"grouptoolbarbutton"),addToggleButton:s(e,"togglebutton"),addMenuButton:s(e,"menubutton"),addSplitButton:s(e,"splitbutton"),addMenuItem:s(t,"menuitem"),addNestedMenuItem:s(t,"nestedmenuitem"),addToggleMenuItem:s(t,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(i,"contextmenu"),addContextToolbar:s(o,"contexttoolbar"),addContextForm:s(o,"contextform"),addSidebar:s(a,"sidebar"),addIcon:u,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:i,contextToolbars:o,sidebars:a}}}},SF=function(){var e=kF();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},OF=jc.DOM,EF=pn.extend,TF=pn.each,DF=pn.resolve,MF=en.ie,AF=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,EF(this,dF),this.settings=_D(this,e,this.documentBaseUrl,n.defaultSettings,t),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&&(Yc.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),jc.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ll.languageLoad=this.settings.language_load,ll.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new sT(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new CF(this),this.editorCommands=new F$(this),this.settings.cache_suffix&&(en.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:SF(),styleSheetLoader:void 0,show:E,hide:E,enable:E,disable:E,isDisabled:L};var i=this,o=gF(i);this.mode=o,this.setMode=o.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Pc.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){p$(this)},e.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},e.prototype.hasFocus=function(){return dy(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this,o=i.settings[e];if(o)return i.callbackLookup&&(r=i.callbackLookup[e])&&(o=r.func,r=r.scope),"string"===typeof o&&(r=o.replace(/\.\w+$/,""),r=r?DF(r):0,o=DF(o),i.callbackLookup=i.callbackLookup||{},i.callbackLookup[e]={func:o,scope:r}),o.apply(r||i,t)},e.prototype.translate=function(e){return cl.translate(e)},e.prototype.getParam=function(e,t,n){return OD(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=X(Ch(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==HD.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(OF.show(e.getContainer()),OF.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(MF&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(OF.hide(e.getContainer()),OF.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var i=Zr(r)?r.value:r.innerHTML;return t=n.setContent(i,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=i,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Zr(i)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=OF.getParent(r.id,"form"))&&TF(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return zT(this,e,t)},e.prototype.getContent=function(e){return RT(this,e)},e.prototype.insertContent=function(e,t){t&&(e=EF({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?zT(this,this.startContent,{format:"raw"}):zT(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=OF.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=OF.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!i.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:i.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,i.remove_script_host),e)},e.prototype.addVisual=function(e){m$(this,e)},e.prototype.remove=function(){VT(this)},e.prototype.destroy=function(e){HT(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.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")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),NF=jc.DOM,PF=pn.explode,IF=pn.each,RF=pn.extend,zF=0,BF=!1,LF=[],$F=[],FF=function(e){return"length"!==e},jF=function(e){var t=e.type;IF(qF.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},VF=function(e){e!==BF&&(e?Pc(window).on("resize scroll",jF):Pc(window).off("resize scroll",jF),BF=e)},HF=function(e){var t=$F;delete LF[e.id];for(var n=0;n<LF.length;n++)if(LF[n]===e){LF.splice(n,1);break}return $F=ne($F,(function(t){return e!==t})),qF.activeEditor===e&&(qF.activeEditor=$F.length>0?$F[0]:null),qF.focusedEditor===e&&(qF.focusedEditor=null),t.length!==$F.length},WF=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(HF(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},UF="CSS1Compat"!==document.compatMode,qF=We(We({},aF),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Pc,majorVersion:"5",minorVersion:"10.9",releaseDate:"2023-11-15",editors:LF,i18n:cl,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=sT.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)e=i.base||i.baseURL,r=i.suffix;else{for(var o=document.getElementsByTagName("script"),a=0;a<o.length;a++){var s=o[a].src||"";if(""!==s){var u=s.substring(s.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(s)){-1!==u.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"));break}}}if(!e&&document.currentScript){s=document.currentScript.src;-1!==s.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"))}}n.baseURL=new sT(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new sT(n.baseURL),n.suffix=r,ny(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&_e(r,(function(e,t){ll.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=pn.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"," "),i=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},o=function(e){var t=e.id;return t||(t=Ae(e,"name").filter((function(e){return!NF.get(e)})).getOrThunk(NF.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},s=function(e,t){return t.constructor===RegExp?t.test(e.className):NF.hasClass(e,t)},u=function(e){var t=[];if(en.browser.isIE()&&en.browser.version.major<11)return nM("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(UF)return nM("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return IF(e.types,(function(e){t=t.concat(NF.select(e.selector))})),t;if(e.selector)return NF.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&IF(PF(n),(function(e){var n=NF.get(e);n?t.push(n):IF(document.forms,(function(n){IF(n.elements,(function(n){n.name===e&&(e="mce_editor_"+zF++,NF.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":IF(NF.select("textarea"),(function(n){e.editor_deselector&&s(n,e.editor_deselector)||e.editor_selector&&!s(n,e.editor_selector)||t.push(n)}));break}return t},c=function(e){t=e},l=function(){var t,r=0,s=[],f=function(e,i,o){var a=new AF(e,i,n);s.push(a),a.on("init",(function(){++r===t.length&&c(s)})),a.targetElm=a.targetElm||o,a.render()};NF.unbind(window,"ready",l),a("onpageload"),t=Pc.unique(u(e)),e.types?IF(e.types,(function(n){pn.each(t,(function(t){return!NF.is(t,n.selector)||(f(o(t),RF({},e,n),t),!1)}))})):(pn.each(t,(function(e){WF(n.get(e.id))})),t=pn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?c([]):IF(t,(function(t){i(e,t)?nM("Could not initialize inline editor on invalid inline target element",t):f(o(t),e,t)})))};return n.settings=e,NF.bind(window,"ready",l),new Do((function(e){t?e(t):c=function(t){e(t)}}))},get:function(e){return 0===arguments.length?$F.slice(0):g(e)?ae($F,(function(t){return t.id===e})).getOr(null):O(e)&&$F[e]?$F[e]:null},add:function(e){var t=this,n=LF[e.id];return n===e||(null===t.get(e.id)&&(FF(e.id)&&(LF[e.id]=e),LF.push(e),$F.push(e)),VF(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),pP||(pP=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",pP))),e},createEditor:function(e,t){return this.add(new AF(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!g(e))return n=e,w(r.get(n.id))?null:(HF(n)&&r.fire("RemoveEditor",{editor:n}),0===$F.length&&window.removeEventListener("beforeunload",pP),n.remove(),VF($F.length>0),n);IF(NF.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=$F.length-1;t>=0;t--)r.remove($F[t])},execCommand:function(e,t,n){var r=this,i=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new AF(n,r.settings,r).render(),!0;case"mceRemoveEditor":return i&&i.remove(),!0;case"mceToggleEditor":return i?(i.isHidden()?i.show():i.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){IF($F,(function(e){e.save()}))},addI18n:function(e,t){cl.add(e,t)},translate:function(e){return cl.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new sT(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new sT(this.baseURL)}});qF.setup();var GF,KF,YF=Math.min,XF=Math.max,JF=Math.round,ZF=function(e,t,n){var r=t.x,i=t.y,o=e.w,a=e.h,s=t.w,u=t.h,c=(n||"").split("");return"b"===c[0]&&(i+=u),"r"===c[1]&&(r+=s),"c"===c[0]&&(i+=JF(u/2)),"c"===c[1]&&(r+=JF(s/2)),"b"===c[3]&&(i-=a),"r"===c[4]&&(r-=o),"c"===c[3]&&(i-=JF(a/2)),"c"===c[4]&&(r-=JF(o/2)),rj(r,i,o,a)},QF=function(e,t,n,r){var i,o;for(o=0;o<r.length;o++)if(i=ZF(e,t,r[o]),i.x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},ej=function(e,t,n){return rj(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},tj=function(e,t){var n=XF(e.x,t.x),r=XF(e.y,t.y),i=YF(e.x+e.w,t.x+t.w),o=YF(e.y+e.h,t.y+t.h);return i-n<0||o-r<0?null:rj(n,r,i-n,o-r)},nj=function(e,t,n){var r=e.x,i=e.y,o=e.x+e.w,a=e.y+e.h,s=t.x+t.w,u=t.y+t.h,c=XF(0,t.x-r),l=XF(0,t.y-i),f=XF(0,o-s),d=XF(0,a-u);return r+=c,i+=l,n&&(o+=c,a+=l,r-=f,i-=d),o-=f,a-=d,rj(r,i,o-r,a-i)},rj=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},ij=function(e){return rj(e.left,e.top,e.width,e.height)},oj={inflate:ej,relativePosition:ZF,findBestRelativePosition:QF,intersect:tj,clamp:nj,create:rj,fromClientRect:ij},aj=function(e,t,n){void 0===n&&(n=1e3);var r=!1,i=null,o=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==i&&(clearTimeout(i),i=null),e.apply(null,t))}},a=o(e),s=o(t),u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==i||(i=setTimeout((function(){return s.apply(null,e)}),n))};return{start:u,resolve:a,reject:s}},sj=function(){var e={},t={},n=function(n,r){var i='Script at URL "'+r+'" failed to load',o='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new Do((function(e,a){var s=aj(e,a);t[n]=s.resolve,Yc.ScriptLoader.loadScript(r,(function(){return s.start(o)}),(function(){return s.reject(i)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=Do.resolve(r)};return{load:n,add:r}},uj=sj(),cj=pn.each,lj=pn.extend,fj=function(){};fj.extend=GF=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!KF&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},i=function(){return this},o=function(e,t){return function(){var r=this,i=r._super;r._super=n[e];var o=t.apply(r,arguments);return r._super=i,o}};KF=!0;var a=new t;return KF=!1,e.Mixins&&(cj(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&cj(e.Methods.split(","),(function(t){e[t]=i})),e.Properties&&cj(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&cj(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=lj({},n.Defaults,e.Defaults)),_e(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=o(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=GF,r};var dj,hj=Math.min,pj=Math.max,mj=Math.round,vj=function(e){var t={},n=0,r=0,i=0,o=function(e,t,n){var r,i,o;r=0,i=0,o=0,e/=255,t/=255,n/=255;var a=hj(e,hj(t,n)),s=pj(e,pj(t,n));if(a===s)return o=a,{h:0,s:0,v:100*o};var u=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-u/(s-a)),i=(s-a)/s,o=s,{h:mj(r),s:mj(100*i),v:mj(100*o)}},a=function(e,t,o){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,o=parseInt(o,10)/100,t=pj(0,hj(t,1)),o=pj(0,hj(o,1)),0!==t){var a=e/60,s=o*t,u=s*(1-Math.abs(a%2-1)),c=o-s;switch(Math.floor(a)){case 0:n=s,r=u,i=0;break;case 1:n=u,r=s,i=0;break;case 2:n=0,r=s,i=u;break;case 3:n=0,r=u,i=s;break;case 4:n=u,r=0,i=s;break;case 5:n=s,r=0,i=u;break;default:n=r=i=0}n=mj(255*(n+c)),r=mj(255*(r+c)),i=mj(255*(i+c))}else n=r=i=mj(255*o)},s=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(i)},u=function(){return{r:n,g:r,b:i}},c=function(){return o(n,r,i)},l=function(e){var o;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,i=e.b):"v"in e&&a(e.h,e.s,e.v):(o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(o[1],10),r=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,t};return e&&l(e),t.toRgb=u,t.toHsv=c,t.toHex=s,t.parse=l,t},gj=function(e){var t=JSON.stringify(e);return g(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},bj={serialize:gj,parse:function(e){try{return JSON.parse(e)}catch(t){}}},yj={callbacks:{},count:0,send:function(e){var t=this,n=jc.DOM,r=void 0!==e.count?e.count:t.count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(o){n.remove(i),delete t.callbacks[r],e.callback(o)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},wj=We(We({},aF),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):zo.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",wj.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&pn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=wj.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();zo.setTimeout(r,10)}}),xj=pn.extend,_j=function(){function e(e){this.settings=xj({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=xj(this.settings,e);r.success=function(e,i){e=bj.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,i):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=bj.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",wj.send(r)},e}(),Cj=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var kj="__storage_test__";dj=window.localStorage,dj.setItem(kj,kj),dj.removeItem(kj)}catch(Mj){dj=Cj()}var Sj=dj,Oj={geom:{Rect:oj},util:{Promise:Do,Delay:zo,Tools:pn,VK:tg,URI:sT,Class:fj,EventDispatcher:iF,Observable:aF,I18n:cl,XHR:wj,JSON:bj,JSONRequest:_j,JSONP:yj,LocalStorage:Sj,Color:vj,ImageUploader:vM},dom:{EventUtils:ru,Sizzle:ju,DomQuery:Pc,TreeWalker:Fo,TextSeeker:Yl,DOMUtils:jc,ScriptLoader:Yc,RangeUtils:kg,Serializer:PT,StyleSheetLoader:Bo,ControlSelection:rg,BookmarkManager:Lv,Selection:CE,Event:ru.Event},html:{Styles:Hs,Entities:Ts,Node:Dy,Schema:js,SaxParser:mT,DomParser:wT,Writer:Zy,Serializer:Qy},Env:en,AddOnManager:ll,Annotator:Bv,Formatter:TM,UndoManager:NM,EditorCommands:F$,WindowManager:qD,NotificationManager:VD,EditorObservable:dF,Shortcuts:CF,Editor:AF,FocusManager:Vb,EditorManager:qF,DOM:jc.DOM,ScriptLoader:Yc.ScriptLoader,PluginManager:HD,ThemeManager:WD,IconManager:TD,Resource:uj,trim:pn.trim,isArray:pn.isArray,is:pn.is,toArray:pn.toArray,makeMap:pn.makeMap,each:pn.each,map:pn.map,grep:pn.grep,inArray:pn.inArray,extend:pn.extend,create:pn.create,walk:pn.walk,createNS:pn.createNS,resolve:pn.resolve,explode:pn.explode,_addCacheSuffix:pn._addCacheSuffix,isOpera:en.opera,isWebKit:en.webkit,isIE:en.ie,isGecko:en.gecko,isMac:en.mac},Ej=pn.extend(qF,Oj),Tj=function(t){try{e.exports=t}catch(n){}},Dj=function(e){window.tinymce=e,window.tinyMCE=e};Dj(Ej),Tj(Ej)})()}).call(this,n("c8ba"))},e5cb:function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),u=n("e893"),c=n("aeb0"),l=n("7156"),f=n("e391"),d=n("ab36"),h=n("6f19"),p=n("83ab"),m=n("c430");e.exports=function(e,t,n,v){var g="stackTraceLimit",b=v?2:1,y=e.split("."),w=y[y.length-1],x=r.apply(null,y);if(x){var _=x.prototype;if(!m&&i(_,"cause")&&delete _.cause,!n)return x;var C=r("Error"),k=t((function(e,t){var n=f(v?t:e,void 0),r=v?new x(e):new x;return void 0!==n&&o(r,"message",n),h(r,k,r.stack,2),this&&a(_,this)&&l(r,this,k),arguments.length>b&&d(r,arguments[b]),r}));if(k.prototype=_,"Error"!==w?s?s(k,C):u(k,C,{name:!0}):p&&g in x&&(c(k,x,g),c(k,x,"prepareStackTrace")),u(k,x),!m)try{_.name!==w&&o(_,"name",w),_.constructor=k}catch(S){}return k}}},e61b:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("3252"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.x64,s=a.Word,u=n.algo,c=[],l=[],f=[];(function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,i=(2*e+3*t)%5;e=r,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,a=0;a<24;a++){for(var u=0,d=0,h=0;h<7;h++){if(1&o){var p=(1<<h)-1;p<32?d^=1<<p:u^=1<<p-32}128&o?o=o<<1^113:o<<=1}f[a]=s.create(u,d)}})();var d=[];(function(){for(var e=0;e<25;e++)d[e]=s.create()})();var h=u.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[i];s.high^=a,s.low^=o}for(var u=0;u<24;u++){for(var h=0;h<5;h++){for(var p=0,m=0,v=0;v<5;v++){s=n[h+5*v];p^=s.high,m^=s.low}var g=d[h];g.high=p,g.low=m}for(h=0;h<5;h++){var b=d[(h+4)%5],y=d[(h+1)%5],w=y.high,x=y.low;for(p=b.high^(w<<1|x>>>31),m=b.low^(x<<1|w>>>31),v=0;v<5;v++){s=n[h+5*v];s.high^=p,s.low^=m}}for(var _=1;_<25;_++){s=n[_];var C=s.high,k=s.low,S=c[_];S<32?(p=C<<S|k>>>32-S,m=k<<S|C>>>32-S):(p=k<<S-32|C>>>64-S,m=C<<S-32|k>>>64-S);var O=d[l[_]];O.high=p,O.low=m}var E=d[0],T=n[0];E.high=T.high,E.low=T.low;for(h=0;h<5;h++)for(v=0;v<5;v++){_=h+5*v,s=n[_];var D=d[_],M=d[(h+1)%5+5*v],A=d[(h+2)%5+5*v];s.high=D.high^~M.high&A.high,s.low=D.low^~M.low&A.low}s=n[0];var N=f[u];s.high^=N.high,s.low^=N.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,c=[],l=0;l<u;l++){var f=a[l],d=f.high,h=f.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(d)}return new i.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(h),n.HmacSHA3=o._createHmacHelper(h)}(Math),e.SHA3}))},e62d:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==a)return a;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),a=t-r,a};var r=n("2b0e"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=void 0},e667:function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e772:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=54)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},3:function(e,t){e.exports=n("8122")},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":u(e))&&"object"===("undefined"===typeof t?"undefined":u(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},l=c,f=n(0),d=Object(f["a"])(l,r,i,!1,null,null,null);d.options.__file="packages/select/src/option.vue";t["a"]=d.exports},4:function(e,t){e.exports=n("d010")},54:function(e,t,n){"use strict";n.r(t);var r=n(33);r["a"].install=function(e){e.component(r["a"].name,r["a"])},t["default"]=r["a"]}})},e893:function(e,t,n){"use strict";var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t,n){for(var s=i(t),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];r(e,f)||n&&r(n,f)||u(e,f,c(t,f))}}},e8b0:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e},n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r="\ufeff",i=function(e){return e.replace(/\uFEFF/g,"")},o=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",s={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f…\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[­؀-؃۝܏឴឵‎‏‪-‮⁠-⁤-\ufeff-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:a},u={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},c=[new RegExp(s.aletter),new RegExp(s.midnumlet),new RegExp(s.midletter),new RegExp(s.midnum),new RegExp(s.numeric),new RegExp(s.cr),new RegExp(s.lf),new RegExp(s.newline),new RegExp(s.extend),new RegExp(s.format),new RegExp(s.katakana),new RegExp(s.extendnumlet),new RegExp("@")],l="",f=new RegExp("^"+s.punctuation+"$"),d=/^\s+$/,h=c,p=u.OTHER,m=function(e){for(var t=p,n=h.length,r=0;r<n;++r){var i=h[r];if(i&&i.test(e)){t=r;break}}return t},v=function(e){var t={};return function(n){if(t[n])return t[n];var r=e(n);return t[n]=r,r}},g=function(e){var t=v(m);return o(e,t)},b=function(e,t){var n=e[t],r=e[t+1];if(t<0||t>e.length-1&&0!==t)return!1;if(n===u.ALETTER&&r===u.ALETTER)return!1;var i=e[t+2];if(n===u.ALETTER&&(r===u.MIDLETTER||r===u.MIDNUMLET||r===u.AT)&&i===u.ALETTER)return!1;var o=e[t-1];return(n!==u.MIDLETTER&&n!==u.MIDNUMLET&&r!==u.AT||r!==u.ALETTER||o!==u.ALETTER)&&((n!==u.NUMERIC&&n!==u.ALETTER||r!==u.NUMERIC&&r!==u.ALETTER)&&((n!==u.MIDNUM&&n!==u.MIDNUMLET||r!==u.NUMERIC||o!==u.NUMERIC)&&((n!==u.NUMERIC||r!==u.MIDNUM&&r!==u.MIDNUMLET||i!==u.NUMERIC)&&(n!==u.EXTEND&&n!==u.FORMAT&&o!==u.EXTEND&&o!==u.FORMAT&&r!==u.EXTEND&&r!==u.FORMAT&&((n!==u.CR||r!==u.LF)&&(n===u.NEWLINE||n===u.CR||n===u.LF||(r===u.NEWLINE||r===u.CR||r===u.LF||(n!==u.KATAKANA||r!==u.KATAKANA)&&((r!==u.EXTENDNUMLET||n!==u.ALETTER&&n!==u.NUMERIC&&n!==u.KATAKANA&&n!==u.EXTENDNUMLET)&&((n!==u.EXTENDNUMLET||r!==u.ALETTER&&r!==u.NUMERIC&&r!==u.KATAKANA)&&n!==u.AT)))))))))},y=l,w=d,x=f,_=function(e){return"http"===e||"https"===e},C=function(e,t){var n;for(n=t;n<e.length;n++)if(w.test(e[n]))break;return n},k=function(e,t){var n=C(e,t+1),r=e.slice(t+1,n).join(y);return"://"===r.substr(0,3)?n:t},S=function(e,t,n,r){for(var i=[],o=[],a=0;a<n.length;++a)if(o.push(e[a]),b(n,a)){var s=t[a];if((r.includeWhitespace||!w.test(s))&&(r.includePunctuation||!x.test(s))){var u=a-o.length+1,c=a+1,l=t.slice(u,c).join(y);if(_(l)){var f=k(t,a),d=e.slice(c,f);Array.prototype.push.apply(o,d),a=f}i.push(o)}o=[]}return i},O=function(){return{includeWhitespace:!1,includePunctuation:!1}},E=function(e,t,i){i=n(n({},O()),i);for(var o=[],a=[],s=0;s<e.length;s++){var u=t(e[s]);u!==r&&(o.push(e[s]),a.push(u))}var c=g(a);return S(o,a,c,i)},T=E,D=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),M=function(e,t){var n=t.getBlockElements(),r=t.getShortEndedElements(),o=function(e){return n[e.nodeName]||r[e.nodeName]},a=[],s="",u=new D(e,e);while(e=u.next())3===e.nodeType?s+=i(e.data):o(e)&&s.length&&(a.push(s),s="");return s.length&&a.push(s),a},A=function(e){return e.replace(/\u200B/g,"")},N=function(e){return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},P=function(e,n){var r=A(M(e,n).join("\n"));return T(r.split(""),t).length},I=function(e,t){var n=M(e,t).join("");return N(n)},R=function(e,t){var n=M(e,t).join("").replace(/\s/g,"");return N(n)},z=function(e,t){return function(){return t(e.getBody(),e.schema)}},B=function(e,t){return function(){return t(e.selection.getRng().cloneContents(),e.schema)}},L=function(e){return z(e,P)},$=function(e){return{body:{getWordCount:L(e),getCharacterCount:z(e,I),getCharacterCountWithoutSpaces:z(e,R)},selection:{getWordCount:B(e,P),getCharacterCount:B(e,I),getCharacterCountWithoutSpaces:B(e,R)},getCount:L(e)}},F=function(e,t){e.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(t.body.getWordCount()),String(t.selection.getWordCount())],["Characters (no spaces)",String(t.body.getCharacterCountWithoutSpaces()),String(t.selection.getCharacterCountWithoutSpaces())],["Characters",String(t.body.getCharacterCount()),String(t.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},j=function(e,t){e.addCommand("mceWordCount",(function(){return F(e,t)}))},V=tinymce.util.Tools.resolve("tinymce.util.Delay"),H=function(e,t){e.fire("wordCountUpdate",{wordCount:{words:t.body.getWordCount(),characters:t.body.getCharacterCount(),charactersWithoutSpaces:t.body.getCharacterCountWithoutSpaces()}})},W=function(e,t){H(e,t)},U=function(e,t,n){var r=V.debounce((function(){return W(e,t)}),n);e.on("init",(function(){W(e,t),V.setEditorTimeout(e,(function(){e.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",r)}),0)}))},q=function(e){var t=function(){return e.execCommand("mceWordCount")};e.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:t}),e.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:t})};function G(t){void 0===t&&(t=300),e.add("wordcount",(function(e){var n=$(e);return j(e,n),q(e),U(e,n,t),n}))}G()})()},e8b5:function(e,t,n){"use strict";var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"===r(e)}},e95a:function(e,t,n){"use strict";var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},e974:function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5128");function a(e){return e&&e.__esModule?e:{default:e}}var s=i.default.prototype.$isServer?function(){}:n("6167"),u=function(e){return e.stopPropagation()};t.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,t),this.popperJS.onCreate((function(t){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"===typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",u))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e={top:"bottom",bottom:"top",left:"right",right:"left"},t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=e[t];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var r=document.createElement("div");t&&r.setAttribute(t,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",e.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",u),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},e9c4:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("c65b"),s=n("e330"),u=n("d039"),c=n("1626"),l=n("d9b5"),f=n("f36a"),d=n("e267"),h=n("04f8"),p=String,m=i("JSON","stringify"),v=s(/./.exec),g=s("".charAt),b=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,k=!h||u((function(){var e=i("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),S=u((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),O=function(e,t){var n=f(arguments),r=d(t);if(c(r)||void 0!==e&&!l(e))return n[1]=function(e,t){if(c(r)&&(t=a(r,this,p(e),t)),!l(t))return t},o(m,null,n)},E=function(e,t,n){var r=g(n,t-1),i=g(n,t+1);return v(_,e)&&!v(C,i)||v(C,e)&&!v(_,r)?"\\u"+w(b(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:k||S},{stringify:function(e,t,n){var r=f(arguments),i=o(k?O:m,null,r);return S&&"string"==typeof i?y(i,x,E):i}})},e9f5:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("19aa"),a=n("825a"),s=n("1626"),u=n("e163"),c=n("edd0"),l=n("8418"),f=n("d039"),d=n("1a2d"),h=n("b622"),p=n("ae93").IteratorPrototype,m=n("83ab"),v=n("c430"),g="constructor",b="Iterator",y=h("toStringTag"),w=TypeError,x=i[b],_=v||!s(x)||x.prototype!==p||!f((function(){x({})})),C=function(){if(o(this,p),u(this)===p)throw new w("Abstract class Iterator not directly constructable")},k=function(e,t){m?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===p)throw new w("You can't redefine this property");d(this,e)?this[e]=t:l(this,e,t)}}):p[e]=t};d(p,y)||k(y,b),!_&&d(p,g)&&p[g]!==Object||k(g,C),C.prototype=p,r({global:!0,constructor:!0,forced:_},{Iterator:C})},ea34:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},ebc1:function(e,t,n){"use strict";var r=n("b5db");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},ec87:function(e,t,n){"use strict";var r=n("b5db");e.exports=/web0s(?!.*chrome)/i.test(r)},edd0:function(e,t,n){"use strict";var r=n("13d2"),i=n("9bf2");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},eedf:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},96:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},i=[];r._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},a=o,s=n(0),u=Object(s["a"])(a,r,i,!1,null,null,null);u.options.__file="packages/button/src/button.vue";var c=u.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},ef08:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},ef1f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){e.focus(),e.undoManager.transact((function(){e.setContent(t)})),e.selection.setCursorLocation(),e.nodeChanged()},n=function(e){return e.getContent({source_view:!0})},r=function(e){var r=n(e);e.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){t(e,n.getData().code),n.close()}})},i=function(e){e.addCommand("mceCodeEditor",(function(){r(e)}))},o=function(e){var t=function(){return e.execCommand("mceCodeEditor")};e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:t})};function a(){e.add("code",(function(e){return i(e),o(e),{}}))}a()})()},efec:function(e,t,n){"use strict";var r=n("1a2d"),i=n("cb2d"),o=n("51eb"),a=n("b622"),s=a("toPrimitive"),u=Date.prototype;r(u,s)||i(u,s,o)},f069:function(e,t,n){"use strict";var r=n("59ed"),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},f183:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("d012"),a=n("861d"),s=n("1a2d"),u=n("9bf2").f,c=n("241c"),l=n("057f"),f=n("4fad"),d=n("90e3"),h=n("bb2f"),p=!1,m=d("meta"),v=0,g=function(e){u(e,m,{value:{objectID:"O"+v++,weakData:{}}})},b=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!f(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},y=function(e,t){if(!s(e,m)){if(!f(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},w=function(e){return h&&p&&f(e)&&!s(e,m)&&g(e),e},x=function(){_.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===m){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},_=e.exports={enable:x,fastKey:b,getWeakData:y,onFreeze:w};o[m]=!0},f22b:function(e,t,n){"use strict";var r=n("23e7"),i=n("f069"),o=n("4738").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:o},{reject:function(e){var t=i.f(this),n=t.reject;return n(e),t.promise}})},f36a:function(e,t,n){"use strict";var r=n("e330");e.exports=r([].slice)},f3ad:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=75)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n("2bb5")},21:function(e,t){e.exports=n("d397")},4:function(e,t){e.exports=n("d010")},75:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(11),u=n.n(s),c=void 0,l="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",f=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function d(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=f.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:r,borderSize:i,boxSizing:n}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;c||(c=document.createElement("textarea"),document.body.appendChild(c));var r=d(e),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;c.setAttribute("style",s+";"+l),c.value=e.value||e.placeholder||"";var u=c.scrollHeight,f={};"border-box"===a?u+=o:"content-box"===a&&(u-=i),c.value="";var h=c.scrollHeight-i;if(null!==t){var p=h*t;"border-box"===a&&(p=p+i+o),u=Math.max(p,u),f.minHeight=p+"px"}if(null!==n){var m=h*n;"border-box"===a&&(m=m+i+o),u=Math.min(m,u)}return f.height=u+"px",c.parentNode&&c.parentNode.removeChild(c),c=null,f}var p=n(9),m=n.n(p),v=n(21),g={name:"ElInput",componentName:"ElInput",mixins:[a.a,u.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return m()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,r=e.maxRows;this.textareaCalcStyle=h(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:h(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(v["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},b=g,y=n(0),w=Object(y["a"])(b,r,i,!1,null,null,null);w.options.__file="packages/input/src/input.vue";var x=w.exports;x.install=function(e){e.component(x.name,x)};t["default"]=x},9:function(e,t){e.exports=n("7f4d")}})},f494:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=88)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},88:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElRadio",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},u=s,c=n(0),l=Object(c["a"])(u,r,i,!1,null,null,null);l.options.__file="packages/radio/src/radio.vue";var f=l.exports;f.install=function(e){e.component(f.name,f)};t["default"]=f}})},f4ea:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}});return t.Decryptor=n,t}(),e.mode.CTR}))},f557:function(e,t,n){n("5e4c")},f5df:function(e,t,n){"use strict";var r=n("00ee"),i=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),u=Object,c="Arguments"===o(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=u(e),s))?n:c?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},f665:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),a=n("59ed"),s=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),f=l("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{find:function(e){s(this);try{a(e)}catch(r){c(this,"throw",r)}if(f)return i(f,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f772:function(e,t,n){"use strict";var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f893:function(e,t,n){e.exports={default:n("8119"),__esModule:!0}},f99f:function(e,t,n){"use strict";var r=n("cfe9");e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,o=i&&i[e],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(s){s instanceof t||(a=!1)}if(!a)return o}},faf5:function(e,t,n){e.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("23cb"),u=n("07fa"),c=n("fc6a"),l=n("8418"),f=n("b622"),d=n("1dde"),h=n("f36a"),p=d("slice"),m=f("species"),v=Array,g=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,f,d=c(this),p=u(d),b=s(e,p),y=s(void 0===t?p:t,p);if(i(d)&&(n=d.constructor,o(n)&&(n===v||i(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===v||void 0===n))return h(d,b,y);for(r=new(void 0===n?v:n)(g(y-b,0)),f=0;b<y;b++,f++)b in d&&l(r,f,d[b]);return r.length=f,r}})},fc39:function(e,t){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},fc5e:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},fc6a:function(e,t,n){"use strict";var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fcd4:function(e,t,n){t.f=n("cc15")},fce3:function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},fdbc:function(e,t,n){"use strict";e.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(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fed5:function(e,t){t.f=Object.getOwnPropertySymbols}}]);